google-api-client 0.43.0 → 0.45.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (863) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +462 -0
  3. data/api_names.yaml +1 -0
  4. data/docs/oauth-server.md +4 -6
  5. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +7 -9
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
  8. data/generated/google/apis/accessapproval_v1.rb +1 -1
  9. data/generated/google/apis/accessapproval_v1/classes.rb +53 -86
  10. data/generated/google/apis/accessapproval_v1/service.rb +93 -132
  11. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  12. data/generated/google/apis/accesscontextmanager_v1/classes.rb +198 -236
  13. data/generated/google/apis/accesscontextmanager_v1/service.rb +128 -171
  14. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  15. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +153 -184
  16. data/generated/google/apis/accesscontextmanager_v1beta/service.rb +82 -111
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +17 -6
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
  20. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  21. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +47 -2
  22. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +18 -0
  23. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  24. data/generated/google/apis/admin_datatransfer_v1.rb +6 -4
  25. data/generated/google/apis/admin_datatransfer_v1/classes.rb +16 -4
  26. data/generated/google/apis/admin_datatransfer_v1/service.rb +30 -48
  27. data/generated/google/apis/admin_directory_v1.rb +6 -8
  28. data/generated/google/apis/admin_directory_v1/classes.rb +209 -242
  29. data/generated/google/apis/admin_directory_v1/representations.rb +0 -39
  30. data/generated/google/apis/admin_directory_v1/service.rb +535 -998
  31. data/generated/google/apis/admin_reports_v1.rb +6 -5
  32. data/generated/google/apis/admin_reports_v1/classes.rb +31 -33
  33. data/generated/google/apis/admin_reports_v1/service.rb +131 -187
  34. data/generated/google/apis/admob_v1.rb +4 -1
  35. data/generated/google/apis/admob_v1/classes.rb +2 -2
  36. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  37. data/generated/google/apis/analyticsadmin_v1alpha.rb +43 -0
  38. data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +1361 -0
  39. data/generated/google/apis/analyticsadmin_v1alpha/representations.rb +610 -0
  40. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +2135 -0
  41. data/generated/google/apis/analyticsdata_v1alpha.rb +37 -0
  42. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +1610 -0
  43. data/generated/google/apis/analyticsdata_v1alpha/representations.rb +789 -0
  44. data/generated/google/apis/analyticsdata_v1alpha/service.rb +220 -0
  45. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  46. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  47. data/generated/google/apis/androidenterprise_v1/service.rb +2 -2
  48. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  49. data/generated/google/apis/androidmanagement_v1/classes.rb +98 -61
  50. data/generated/google/apis/androidmanagement_v1/representations.rb +17 -0
  51. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  52. data/generated/google/apis/androidpublisher_v3/service.rb +2 -2
  53. data/generated/google/apis/apigateway_v1alpha1.rb +34 -0
  54. data/generated/google/apis/apigateway_v1alpha1/classes.rb +633 -0
  55. data/generated/google/apis/apigateway_v1alpha1/representations.rb +250 -0
  56. data/generated/google/apis/apigateway_v1alpha1/service.rb +623 -0
  57. data/generated/google/apis/apigateway_v1alpha2.rb +34 -0
  58. data/generated/google/apis/apigateway_v1alpha2/classes.rb +633 -0
  59. data/generated/google/apis/apigateway_v1alpha2/representations.rb +250 -0
  60. data/generated/google/apis/apigateway_v1alpha2/service.rb +623 -0
  61. data/generated/google/apis/apigateway_v1beta.rb +34 -0
  62. data/generated/google/apis/apigateway_v1beta/classes.rb +1162 -0
  63. data/generated/google/apis/{memcache_v1 → apigateway_v1beta}/representations.rb +156 -157
  64. data/generated/google/apis/apigateway_v1beta/service.rb +1172 -0
  65. data/generated/google/apis/apigee_v1.rb +6 -7
  66. data/generated/google/apis/apigee_v1/classes.rb +432 -82
  67. data/generated/google/apis/apigee_v1/representations.rb +139 -1
  68. data/generated/google/apis/apigee_v1/service.rb +158 -41
  69. data/generated/google/apis/appengine_v1.rb +1 -1
  70. data/generated/google/apis/appengine_v1/classes.rb +96 -59
  71. data/generated/google/apis/appengine_v1/representations.rb +17 -0
  72. data/generated/google/apis/appengine_v1/service.rb +38 -47
  73. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  74. data/generated/google/apis/appengine_v1alpha/classes.rb +9 -11
  75. data/generated/google/apis/appengine_v1beta.rb +1 -1
  76. data/generated/google/apis/appengine_v1beta/classes.rb +103 -59
  77. data/generated/google/apis/appengine_v1beta/representations.rb +18 -0
  78. data/generated/google/apis/appengine_v1beta/service.rb +37 -47
  79. data/generated/google/apis/appsmarket_v2.rb +1 -1
  80. data/generated/google/apis/appsmarket_v2/classes.rb +14 -16
  81. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  82. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +242 -337
  83. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +1 -0
  84. data/generated/google/apis/artifactregistry_v1beta1/service.rb +44 -57
  85. data/generated/google/apis/{accessapproval_v1beta1.rb → assuredworkloads_v1beta1.rb} +8 -8
  86. data/generated/google/apis/assuredworkloads_v1beta1/classes.rb +458 -0
  87. data/generated/google/apis/assuredworkloads_v1beta1/representations.rb +230 -0
  88. data/generated/google/apis/assuredworkloads_v1beta1/service.rb +328 -0
  89. data/generated/google/apis/bigquery_v2.rb +1 -1
  90. data/generated/google/apis/bigquery_v2/classes.rb +403 -553
  91. data/generated/google/apis/bigquery_v2/representations.rb +17 -0
  92. data/generated/google/apis/bigquery_v2/service.rb +32 -40
  93. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  94. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +192 -337
  95. data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +29 -32
  96. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  97. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +132 -158
  98. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +232 -282
  99. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  100. data/generated/google/apis/bigqueryreservation_v1/classes.rb +116 -123
  101. data/generated/google/apis/bigqueryreservation_v1/representations.rb +2 -0
  102. data/generated/google/apis/bigqueryreservation_v1/service.rb +137 -183
  103. data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
  104. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +88 -100
  105. data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +77 -100
  106. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  107. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +93 -98
  108. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +2 -0
  109. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +114 -151
  110. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  111. data/generated/google/apis/bigtableadmin_v1/classes.rb +137 -119
  112. data/generated/google/apis/bigtableadmin_v1/representations.rb +29 -0
  113. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  114. data/generated/google/apis/bigtableadmin_v2/classes.rb +455 -607
  115. data/generated/google/apis/bigtableadmin_v2/representations.rb +29 -0
  116. data/generated/google/apis/bigtableadmin_v2/service.rb +194 -247
  117. data/generated/google/apis/billingbudgets_v1beta1.rb +4 -1
  118. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +15 -5
  119. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
  120. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  121. data/generated/google/apis/binaryauthorization_v1/classes.rb +433 -354
  122. data/generated/google/apis/binaryauthorization_v1/representations.rb +75 -0
  123. data/generated/google/apis/binaryauthorization_v1/service.rb +109 -89
  124. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  125. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +433 -354
  126. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +75 -0
  127. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +109 -89
  128. data/generated/google/apis/calendar_v3.rb +1 -1
  129. data/generated/google/apis/calendar_v3/classes.rb +13 -10
  130. data/generated/google/apis/chat_v1.rb +1 -1
  131. data/generated/google/apis/chat_v1/classes.rb +165 -116
  132. data/generated/google/apis/chat_v1/representations.rb +35 -0
  133. data/generated/google/apis/chat_v1/service.rb +30 -42
  134. data/generated/google/apis/civicinfo_v2.rb +1 -1
  135. data/generated/google/apis/civicinfo_v2/classes.rb +18 -8
  136. data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
  137. data/generated/google/apis/classroom_v1.rb +7 -1
  138. data/generated/google/apis/classroom_v1/classes.rb +132 -0
  139. data/generated/google/apis/classroom_v1/representations.rb +43 -0
  140. data/generated/google/apis/classroom_v1/service.rb +240 -0
  141. data/generated/google/apis/cloudasset_v1.rb +1 -1
  142. data/generated/google/apis/cloudasset_v1/classes.rb +764 -1039
  143. data/generated/google/apis/cloudasset_v1/representations.rb +16 -0
  144. data/generated/google/apis/cloudasset_v1/service.rb +125 -167
  145. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  146. data/generated/google/apis/cloudasset_v1beta1/classes.rb +531 -777
  147. data/generated/google/apis/cloudasset_v1beta1/service.rb +59 -75
  148. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  149. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +204 -349
  150. data/generated/google/apis/cloudasset_v1p1beta1/service.rb +35 -47
  151. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  152. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +222 -276
  153. data/generated/google/apis/cloudasset_v1p4beta1/service.rb +75 -93
  154. data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
  155. data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +481 -720
  156. data/generated/google/apis/cloudasset_v1p5beta1/service.rb +25 -28
  157. data/generated/google/apis/cloudbilling_v1.rb +7 -1
  158. data/generated/google/apis/cloudbilling_v1/classes.rb +284 -445
  159. data/generated/google/apis/cloudbilling_v1/service.rb +104 -124
  160. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  161. data/generated/google/apis/cloudbuild_v1/classes.rb +337 -343
  162. data/generated/google/apis/cloudbuild_v1/representations.rb +8 -0
  163. data/generated/google/apis/cloudbuild_v1/service.rb +268 -66
  164. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  165. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +291 -329
  166. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +2 -0
  167. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +15 -18
  168. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  169. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +277 -313
  170. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +2 -0
  171. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +22 -28
  172. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  173. data/generated/google/apis/clouddebugger_v2/classes.rb +185 -252
  174. data/generated/google/apis/clouddebugger_v2/service.rb +53 -59
  175. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  176. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +127 -156
  177. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +53 -69
  178. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  179. data/generated/google/apis/cloudfunctions_v1/classes.rb +335 -494
  180. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
  181. data/generated/google/apis/cloudfunctions_v1/service.rb +79 -93
  182. data/generated/google/apis/cloudidentity_v1.rb +4 -1
  183. data/generated/google/apis/cloudidentity_v1/classes.rb +943 -75
  184. data/generated/google/apis/cloudidentity_v1/representations.rb +371 -0
  185. data/generated/google/apis/cloudidentity_v1/service.rb +841 -62
  186. data/generated/google/apis/cloudidentity_v1beta1.rb +4 -1
  187. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +1233 -307
  188. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +424 -21
  189. data/generated/google/apis/cloudidentity_v1beta1/service.rb +906 -96
  190. data/generated/google/apis/cloudiot_v1.rb +1 -1
  191. data/generated/google/apis/cloudiot_v1/classes.rb +270 -373
  192. data/generated/google/apis/cloudiot_v1/representations.rb +1 -0
  193. data/generated/google/apis/cloudiot_v1/service.rb +147 -154
  194. data/generated/google/apis/cloudkms_v1.rb +1 -1
  195. data/generated/google/apis/cloudkms_v1/classes.rb +509 -692
  196. data/generated/google/apis/cloudkms_v1/representations.rb +18 -0
  197. data/generated/google/apis/cloudkms_v1/service.rb +170 -216
  198. data/generated/google/apis/cloudprofiler_v2.rb +1 -1
  199. data/generated/google/apis/cloudprofiler_v2/classes.rb +28 -33
  200. data/generated/google/apis/cloudprofiler_v2/service.rb +17 -19
  201. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  202. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +14 -7
  203. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +1 -0
  204. data/generated/google/apis/cloudresourcemanager_v1/service.rb +62 -60
  205. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  206. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +11 -4
  207. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +1 -0
  208. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +26 -25
  209. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  210. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +7 -0
  211. data/generated/google/apis/cloudresourcemanager_v2/representations.rb +1 -0
  212. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  213. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +7 -0
  214. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +1 -0
  215. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  216. data/generated/google/apis/cloudscheduler_v1/classes.rb +272 -383
  217. data/generated/google/apis/cloudscheduler_v1/service.rb +45 -62
  218. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  219. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +273 -384
  220. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +45 -62
  221. data/generated/google/apis/cloudsearch_v1.rb +2 -2
  222. data/generated/google/apis/cloudsearch_v1/classes.rb +650 -781
  223. data/generated/google/apis/cloudsearch_v1/representations.rb +15 -0
  224. data/generated/google/apis/cloudsearch_v1/service.rb +286 -326
  225. data/generated/google/apis/cloudshell_v1.rb +1 -1
  226. data/generated/google/apis/cloudshell_v1/classes.rb +36 -227
  227. data/generated/google/apis/cloudshell_v1/representations.rb +0 -67
  228. data/generated/google/apis/cloudshell_v1/service.rb +21 -25
  229. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  230. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +69 -78
  231. data/generated/google/apis/cloudshell_v1alpha1/service.rb +20 -24
  232. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  233. data/generated/google/apis/cloudtasks_v2/classes.rb +612 -933
  234. data/generated/google/apis/cloudtasks_v2/representations.rb +1 -0
  235. data/generated/google/apis/cloudtasks_v2/service.rb +146 -217
  236. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  237. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +608 -964
  238. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -0
  239. data/generated/google/apis/cloudtasks_v2beta2/service.rb +178 -270
  240. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  241. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +616 -938
  242. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
  243. data/generated/google/apis/cloudtasks_v2beta3/service.rb +146 -217
  244. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  245. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -61
  246. data/generated/google/apis/cloudtrace_v1/service.rb +37 -51
  247. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  248. data/generated/google/apis/cloudtrace_v2/classes.rb +92 -107
  249. data/generated/google/apis/cloudtrace_v2/service.rb +8 -11
  250. data/generated/google/apis/cloudtrace_v2beta1.rb +1 -1
  251. data/generated/google/apis/cloudtrace_v2beta1/classes.rb +23 -33
  252. data/generated/google/apis/cloudtrace_v2beta1/service.rb +30 -37
  253. data/generated/google/apis/composer_v1.rb +1 -1
  254. data/generated/google/apis/composer_v1/classes.rb +190 -242
  255. data/generated/google/apis/composer_v1/service.rb +79 -150
  256. data/generated/google/apis/composer_v1beta1.rb +1 -1
  257. data/generated/google/apis/composer_v1beta1/classes.rb +203 -262
  258. data/generated/google/apis/composer_v1beta1/service.rb +92 -179
  259. data/generated/google/apis/compute_alpha.rb +1 -1
  260. data/generated/google/apis/compute_alpha/classes.rb +681 -127
  261. data/generated/google/apis/compute_alpha/representations.rb +110 -6
  262. data/generated/google/apis/compute_alpha/service.rb +695 -692
  263. data/generated/google/apis/compute_beta.rb +1 -1
  264. data/generated/google/apis/compute_beta/classes.rb +570 -70
  265. data/generated/google/apis/compute_beta/representations.rb +112 -1
  266. data/generated/google/apis/compute_beta/service.rb +608 -605
  267. data/generated/google/apis/compute_v1.rb +1 -1
  268. data/generated/google/apis/compute_v1/classes.rb +977 -85
  269. data/generated/google/apis/compute_v1/representations.rb +372 -0
  270. data/generated/google/apis/compute_v1/service.rb +747 -15
  271. data/generated/google/apis/container_v1.rb +1 -1
  272. data/generated/google/apis/container_v1/classes.rb +970 -965
  273. data/generated/google/apis/container_v1/representations.rb +60 -0
  274. data/generated/google/apis/container_v1/service.rb +435 -502
  275. data/generated/google/apis/container_v1beta1.rb +1 -1
  276. data/generated/google/apis/container_v1beta1/classes.rb +1094 -1044
  277. data/generated/google/apis/container_v1beta1/representations.rb +91 -0
  278. data/generated/google/apis/container_v1beta1/service.rb +403 -466
  279. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  280. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +463 -596
  281. data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +1 -0
  282. data/generated/google/apis/containeranalysis_v1alpha1/service.rb +149 -169
  283. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  284. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +461 -613
  285. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +1 -0
  286. data/generated/google/apis/containeranalysis_v1beta1/service.rb +75 -90
  287. data/generated/google/apis/content_v2.rb +1 -1
  288. data/generated/google/apis/content_v2/classes.rb +5 -2
  289. data/generated/google/apis/content_v2_1.rb +1 -1
  290. data/generated/google/apis/content_v2_1/classes.rb +107 -5
  291. data/generated/google/apis/content_v2_1/representations.rb +35 -0
  292. data/generated/google/apis/content_v2_1/service.rb +54 -3
  293. data/generated/google/apis/customsearch_v1.rb +1 -1
  294. data/generated/google/apis/customsearch_v1/service.rb +2 -2
  295. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  296. data/generated/google/apis/datacatalog_v1beta1/classes.rb +389 -573
  297. data/generated/google/apis/datacatalog_v1beta1/representations.rb +1 -0
  298. data/generated/google/apis/datacatalog_v1beta1/service.rb +319 -440
  299. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  300. data/generated/google/apis/dataflow_v1b3/classes.rb +1162 -973
  301. data/generated/google/apis/dataflow_v1b3/representations.rb +145 -0
  302. data/generated/google/apis/dataflow_v1b3/service.rb +308 -257
  303. data/generated/google/apis/datafusion_v1.rb +5 -8
  304. data/generated/google/apis/datafusion_v1/classes.rb +283 -397
  305. data/generated/google/apis/datafusion_v1/representations.rb +5 -0
  306. data/generated/google/apis/datafusion_v1/service.rb +76 -89
  307. data/generated/google/apis/datafusion_v1beta1.rb +5 -8
  308. data/generated/google/apis/datafusion_v1beta1/classes.rb +283 -397
  309. data/generated/google/apis/datafusion_v1beta1/representations.rb +5 -0
  310. data/generated/google/apis/datafusion_v1beta1/service.rb +81 -95
  311. data/generated/google/apis/dataproc_v1.rb +1 -1
  312. data/generated/google/apis/dataproc_v1/classes.rb +60 -14
  313. data/generated/google/apis/dataproc_v1/representations.rb +18 -0
  314. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  315. data/generated/google/apis/dataproc_v1beta2/classes.rb +80 -10
  316. data/generated/google/apis/dataproc_v1beta2/representations.rb +33 -0
  317. data/generated/google/apis/datastore_v1.rb +1 -1
  318. data/generated/google/apis/datastore_v1/classes.rb +330 -472
  319. data/generated/google/apis/datastore_v1/service.rb +52 -63
  320. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  321. data/generated/google/apis/datastore_v1beta1/classes.rb +150 -217
  322. data/generated/google/apis/datastore_v1beta1/service.rb +11 -12
  323. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  324. data/generated/google/apis/datastore_v1beta3/classes.rb +255 -371
  325. data/generated/google/apis/datastore_v1beta3/service.rb +1 -2
  326. data/generated/google/apis/dfareporting_v3_3.rb +2 -2
  327. data/generated/google/apis/dfareporting_v3_3/classes.rb +162 -339
  328. data/generated/google/apis/dfareporting_v3_3/service.rb +646 -1262
  329. data/generated/google/apis/dfareporting_v3_4.rb +2 -2
  330. data/generated/google/apis/dfareporting_v3_4/classes.rb +184 -350
  331. data/generated/google/apis/dfareporting_v3_4/representations.rb +1 -0
  332. data/generated/google/apis/dfareporting_v3_4/service.rb +681 -1261
  333. data/generated/google/apis/dialogflow_v2.rb +1 -1
  334. data/generated/google/apis/dialogflow_v2/classes.rb +199 -70
  335. data/generated/google/apis/dialogflow_v2/representations.rb +104 -15
  336. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  337. data/generated/google/apis/dialogflow_v2beta1/classes.rb +210 -78
  338. data/generated/google/apis/dialogflow_v2beta1/representations.rb +104 -15
  339. data/generated/google/apis/dialogflow_v2beta1/service.rb +500 -325
  340. data/generated/google/apis/{securitycenter_v1p1alpha1.rb → dialogflow_v3beta1.rb} +13 -10
  341. data/generated/google/apis/dialogflow_v3beta1/classes.rb +8352 -0
  342. data/generated/google/apis/dialogflow_v3beta1/representations.rb +3544 -0
  343. data/generated/google/apis/dialogflow_v3beta1/service.rb +2812 -0
  344. data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
  345. data/generated/google/apis/digitalassetlinks_v1/classes.rb +66 -92
  346. data/generated/google/apis/digitalassetlinks_v1/service.rb +131 -188
  347. data/generated/google/apis/displayvideo_v1.rb +1 -1
  348. data/generated/google/apis/displayvideo_v1/classes.rb +63 -8
  349. data/generated/google/apis/displayvideo_v1/representations.rb +6 -0
  350. data/generated/google/apis/displayvideo_v1/service.rb +47 -35
  351. data/generated/google/apis/displayvideo_v1beta.rb +38 -0
  352. data/generated/google/apis/displayvideo_v1beta/classes.rb +146 -0
  353. data/generated/google/apis/displayvideo_v1beta/representations.rb +72 -0
  354. data/generated/google/apis/displayvideo_v1beta/service.rb +161 -0
  355. data/generated/google/apis/displayvideo_v1beta2.rb +38 -0
  356. data/generated/google/apis/displayvideo_v1beta2/classes.rb +146 -0
  357. data/generated/google/apis/displayvideo_v1beta2/representations.rb +72 -0
  358. data/generated/google/apis/displayvideo_v1beta2/service.rb +130 -0
  359. data/generated/google/apis/displayvideo_v1dev.rb +38 -0
  360. data/generated/google/apis/displayvideo_v1dev/classes.rb +146 -0
  361. data/generated/google/apis/displayvideo_v1dev/representations.rb +72 -0
  362. data/generated/google/apis/displayvideo_v1dev/service.rb +130 -0
  363. data/generated/google/apis/dlp_v2.rb +1 -1
  364. data/generated/google/apis/dlp_v2/classes.rb +1102 -1302
  365. data/generated/google/apis/dlp_v2/representations.rb +16 -0
  366. data/generated/google/apis/dlp_v2/service.rb +962 -905
  367. data/generated/google/apis/dns_v1.rb +1 -1
  368. data/generated/google/apis/dns_v1/classes.rb +175 -198
  369. data/generated/google/apis/dns_v1/service.rb +82 -97
  370. data/generated/google/apis/dns_v1beta2.rb +1 -1
  371. data/generated/google/apis/dns_v1beta2/classes.rb +180 -205
  372. data/generated/google/apis/dns_v1beta2/service.rb +82 -97
  373. data/generated/google/apis/docs_v1.rb +1 -1
  374. data/generated/google/apis/docs_v1/classes.rb +894 -1229
  375. data/generated/google/apis/docs_v1/service.rb +17 -22
  376. data/generated/google/apis/documentai_v1beta2.rb +1 -1
  377. data/generated/google/apis/documentai_v1beta2/classes.rb +2253 -824
  378. data/generated/google/apis/documentai_v1beta2/representations.rb +701 -0
  379. data/generated/google/apis/documentai_v1beta2/service.rb +22 -24
  380. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -2
  381. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +7 -14
  382. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +33 -64
  383. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +3 -2
  384. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +12 -20
  385. data/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +33 -64
  386. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  387. data/generated/google/apis/doubleclicksearch_v2/service.rb +2 -2
  388. data/generated/google/apis/drive_v2.rb +1 -1
  389. data/generated/google/apis/drive_v2/classes.rb +14 -6
  390. data/generated/google/apis/drive_v2/representations.rb +1 -0
  391. data/generated/google/apis/drive_v2/service.rb +79 -15
  392. data/generated/google/apis/drive_v3.rb +1 -1
  393. data/generated/google/apis/drive_v3/classes.rb +14 -6
  394. data/generated/google/apis/drive_v3/representations.rb +1 -0
  395. data/generated/google/apis/drive_v3/service.rb +59 -11
  396. data/generated/google/apis/file_v1.rb +1 -1
  397. data/generated/google/apis/file_v1/classes.rb +154 -173
  398. data/generated/google/apis/file_v1/service.rb +43 -52
  399. data/generated/google/apis/file_v1beta1.rb +1 -1
  400. data/generated/google/apis/file_v1beta1/classes.rb +334 -193
  401. data/generated/google/apis/file_v1beta1/representations.rb +55 -0
  402. data/generated/google/apis/file_v1beta1/service.rb +267 -55
  403. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  404. data/generated/google/apis/firebase_v1beta1/classes.rb +33 -51
  405. data/generated/google/apis/firebase_v1beta1/representations.rb +2 -16
  406. data/generated/google/apis/firebase_v1beta1/service.rb +8 -1
  407. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  408. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  409. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +186 -0
  410. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +83 -0
  411. data/generated/google/apis/firebasehosting_v1beta1/service.rb +418 -4
  412. data/generated/google/apis/firebaseml_v1beta2.rb +1 -1
  413. data/generated/google/apis/firebaseml_v1beta2/classes.rb +8 -8
  414. data/generated/google/apis/firebaseml_v1beta2/representations.rb +1 -1
  415. data/generated/google/apis/firebaserules_v1.rb +1 -1
  416. data/generated/google/apis/firebaserules_v1/classes.rb +102 -137
  417. data/generated/google/apis/firebaserules_v1/service.rb +87 -110
  418. data/generated/google/apis/firestore_v1.rb +1 -1
  419. data/generated/google/apis/firestore_v1/classes.rb +402 -498
  420. data/generated/google/apis/firestore_v1/service.rb +165 -201
  421. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  422. data/generated/google/apis/firestore_v1beta1/classes.rb +334 -409
  423. data/generated/google/apis/firestore_v1beta1/service.rb +106 -122
  424. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  425. data/generated/google/apis/firestore_v1beta2/classes.rb +135 -165
  426. data/generated/google/apis/firestore_v1beta2/service.rb +65 -86
  427. data/generated/google/apis/fitness_v1.rb +85 -0
  428. data/generated/google/apis/fitness_v1/classes.rb +982 -0
  429. data/generated/google/apis/fitness_v1/representations.rb +398 -0
  430. data/generated/google/apis/fitness_v1/service.rb +626 -0
  431. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  432. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -3
  433. data/generated/google/apis/games_configuration_v1configuration/service.rb +6 -6
  434. data/generated/google/apis/games_management_v1management.rb +2 -3
  435. data/generated/google/apis/games_management_v1management/classes.rb +14 -20
  436. data/generated/google/apis/games_management_v1management/service.rb +35 -36
  437. data/generated/google/apis/games_v1.rb +2 -3
  438. data/generated/google/apis/games_v1/classes.rb +76 -83
  439. data/generated/google/apis/games_v1/representations.rb +2 -0
  440. data/generated/google/apis/games_v1/service.rb +84 -90
  441. data/generated/google/apis/gameservices_v1.rb +1 -1
  442. data/generated/google/apis/gameservices_v1/classes.rb +7 -0
  443. data/generated/google/apis/gameservices_v1/representations.rb +1 -0
  444. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  445. data/generated/google/apis/gameservices_v1beta/classes.rb +7 -0
  446. data/generated/google/apis/gameservices_v1beta/representations.rb +1 -0
  447. data/generated/google/apis/genomics_v1.rb +1 -1
  448. data/generated/google/apis/genomics_v1/classes.rb +70 -76
  449. data/generated/google/apis/genomics_v1/service.rb +28 -43
  450. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  451. data/generated/google/apis/genomics_v1alpha2/classes.rb +223 -290
  452. data/generated/google/apis/genomics_v1alpha2/service.rb +54 -76
  453. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  454. data/generated/google/apis/genomics_v2alpha1/classes.rb +252 -275
  455. data/generated/google/apis/genomics_v2alpha1/representations.rb +1 -0
  456. data/generated/google/apis/genomics_v2alpha1/service.rb +47 -66
  457. data/generated/google/apis/gmail_v1.rb +1 -1
  458. data/generated/google/apis/gmail_v1/classes.rb +37 -43
  459. data/generated/google/apis/gmail_v1/service.rb +5 -4
  460. data/generated/google/apis/gmailpostmastertools_v1beta1.rb +2 -2
  461. data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +1 -1
  462. data/generated/google/apis/groupsmigration_v1.rb +35 -0
  463. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  464. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  465. data/generated/google/apis/groupsmigration_v1/service.rb +100 -0
  466. data/generated/google/apis/healthcare_v1.rb +1 -1
  467. data/generated/google/apis/healthcare_v1/classes.rb +637 -826
  468. data/generated/google/apis/healthcare_v1/representations.rb +32 -0
  469. data/generated/google/apis/healthcare_v1/service.rb +840 -854
  470. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  471. data/generated/google/apis/healthcare_v1beta1/classes.rb +1833 -1102
  472. data/generated/google/apis/healthcare_v1beta1/representations.rb +474 -0
  473. data/generated/google/apis/healthcare_v1beta1/service.rb +2476 -1281
  474. data/generated/google/apis/homegraph_v1.rb +4 -1
  475. data/generated/google/apis/homegraph_v1/classes.rb +76 -164
  476. data/generated/google/apis/homegraph_v1/service.rb +23 -35
  477. data/generated/google/apis/iam_v1.rb +5 -2
  478. data/generated/google/apis/iam_v1/classes.rb +395 -592
  479. data/generated/google/apis/iam_v1/representations.rb +1 -0
  480. data/generated/google/apis/iam_v1/service.rb +431 -556
  481. data/generated/google/apis/iamcredentials_v1.rb +4 -2
  482. data/generated/google/apis/iamcredentials_v1/classes.rb +75 -85
  483. data/generated/google/apis/iamcredentials_v1/service.rb +15 -13
  484. data/generated/google/apis/iap_v1.rb +1 -1
  485. data/generated/google/apis/iap_v1/classes.rb +253 -355
  486. data/generated/google/apis/iap_v1/representations.rb +1 -0
  487. data/generated/google/apis/iap_v1/service.rb +61 -71
  488. data/generated/google/apis/iap_v1beta1.rb +1 -1
  489. data/generated/google/apis/iap_v1beta1/classes.rb +164 -254
  490. data/generated/google/apis/iap_v1beta1/representations.rb +1 -0
  491. data/generated/google/apis/iap_v1beta1/service.rb +17 -19
  492. data/generated/google/apis/indexing_v3.rb +1 -1
  493. data/generated/google/apis/indexing_v3/classes.rb +11 -11
  494. data/generated/google/apis/jobs_v2.rb +1 -1
  495. data/generated/google/apis/jobs_v2/classes.rb +786 -1086
  496. data/generated/google/apis/jobs_v2/service.rb +85 -126
  497. data/generated/google/apis/jobs_v3.rb +1 -1
  498. data/generated/google/apis/jobs_v3/classes.rb +637 -856
  499. data/generated/google/apis/jobs_v3/service.rb +101 -139
  500. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  501. data/generated/google/apis/jobs_v3p1beta1/classes.rb +762 -1023
  502. data/generated/google/apis/jobs_v3p1beta1/service.rb +103 -142
  503. data/generated/google/apis/kgsearch_v1.rb +1 -1
  504. data/generated/google/apis/kgsearch_v1/classes.rb +4 -4
  505. data/generated/google/apis/kgsearch_v1/service.rb +11 -11
  506. data/generated/google/apis/licensing_v1.rb +4 -3
  507. data/generated/google/apis/licensing_v1/classes.rb +1 -1
  508. data/generated/google/apis/licensing_v1/service.rb +55 -85
  509. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  510. data/generated/google/apis/lifesciences_v2beta/classes.rb +262 -290
  511. data/generated/google/apis/lifesciences_v2beta/service.rb +30 -42
  512. data/generated/google/apis/localservices_v1.rb +31 -0
  513. data/generated/google/apis/localservices_v1/classes.rb +419 -0
  514. data/generated/google/apis/localservices_v1/representations.rb +172 -0
  515. data/generated/google/apis/localservices_v1/service.rb +199 -0
  516. data/generated/google/apis/logging_v2.rb +1 -1
  517. data/generated/google/apis/logging_v2/classes.rb +230 -227
  518. data/generated/google/apis/logging_v2/representations.rb +47 -0
  519. data/generated/google/apis/logging_v2/service.rb +2056 -673
  520. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  521. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +8 -0
  522. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +1 -0
  523. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  524. data/generated/google/apis/managedidentities_v1beta1/classes.rb +8 -0
  525. data/generated/google/apis/managedidentities_v1beta1/representations.rb +1 -0
  526. data/generated/google/apis/manufacturers_v1.rb +1 -1
  527. data/generated/google/apis/manufacturers_v1/classes.rb +99 -109
  528. data/generated/google/apis/manufacturers_v1/service.rb +44 -55
  529. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  530. data/generated/google/apis/memcache_v1beta2/classes.rb +170 -249
  531. data/generated/google/apis/memcache_v1beta2/representations.rb +0 -19
  532. data/generated/google/apis/memcache_v1beta2/service.rb +58 -71
  533. data/generated/google/apis/ml_v1.rb +1 -1
  534. data/generated/google/apis/ml_v1/classes.rb +956 -1144
  535. data/generated/google/apis/ml_v1/representations.rb +65 -0
  536. data/generated/google/apis/ml_v1/service.rb +194 -253
  537. data/generated/google/apis/monitoring_v1.rb +1 -1
  538. data/generated/google/apis/monitoring_v1/classes.rb +107 -26
  539. data/generated/google/apis/monitoring_v1/representations.rb +35 -0
  540. data/generated/google/apis/monitoring_v1/service.rb +10 -11
  541. data/generated/google/apis/monitoring_v3.rb +1 -1
  542. data/generated/google/apis/monitoring_v3/classes.rb +232 -328
  543. data/generated/google/apis/monitoring_v3/service.rb +121 -140
  544. data/generated/google/apis/networkmanagement_v1.rb +1 -1
  545. data/generated/google/apis/networkmanagement_v1/classes.rb +273 -429
  546. data/generated/google/apis/networkmanagement_v1/service.rb +97 -120
  547. data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
  548. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +456 -429
  549. data/generated/google/apis/networkmanagement_v1beta1/representations.rb +63 -0
  550. data/generated/google/apis/networkmanagement_v1beta1/service.rb +97 -120
  551. data/generated/google/apis/osconfig_v1.rb +1 -1
  552. data/generated/google/apis/osconfig_v1/classes.rb +154 -902
  553. data/generated/google/apis/osconfig_v1/representations.rb +0 -337
  554. data/generated/google/apis/osconfig_v1/service.rb +22 -27
  555. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  556. data/generated/google/apis/osconfig_v1beta/classes.rb +327 -411
  557. data/generated/google/apis/osconfig_v1beta/service.rb +39 -52
  558. data/generated/google/apis/oslogin_v1.rb +1 -1
  559. data/generated/google/apis/oslogin_v1/classes.rb +14 -12
  560. data/generated/google/apis/oslogin_v1/representations.rb +1 -0
  561. data/generated/google/apis/oslogin_v1/service.rb +12 -16
  562. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  563. data/generated/google/apis/oslogin_v1alpha/classes.rb +16 -14
  564. data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
  565. data/generated/google/apis/oslogin_v1alpha/service.rb +17 -17
  566. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  567. data/generated/google/apis/oslogin_v1beta/classes.rb +14 -12
  568. data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
  569. data/generated/google/apis/oslogin_v1beta/service.rb +12 -16
  570. data/generated/google/apis/pagespeedonline_v5.rb +2 -2
  571. data/generated/google/apis/pagespeedonline_v5/classes.rb +18 -24
  572. data/generated/google/apis/pagespeedonline_v5/service.rb +3 -4
  573. data/generated/google/apis/people_v1.rb +1 -1
  574. data/generated/google/apis/people_v1/classes.rb +121 -12
  575. data/generated/google/apis/people_v1/representations.rb +41 -0
  576. data/generated/google/apis/people_v1/service.rb +47 -45
  577. data/generated/google/apis/playablelocations_v3.rb +1 -1
  578. data/generated/google/apis/playablelocations_v3/classes.rb +108 -155
  579. data/generated/google/apis/playablelocations_v3/service.rb +10 -10
  580. data/generated/google/apis/playcustomapp_v1.rb +1 -1
  581. data/generated/google/apis/playcustomapp_v1/service.rb +2 -2
  582. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  583. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +26 -0
  584. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +14 -0
  585. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +479 -0
  586. data/generated/google/apis/pubsub_v1.rb +1 -1
  587. data/generated/google/apis/pubsub_v1/classes.rb +399 -518
  588. data/generated/google/apis/pubsub_v1/representations.rb +2 -0
  589. data/generated/google/apis/pubsub_v1/service.rb +220 -246
  590. data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
  591. data/generated/google/apis/pubsub_v1beta1a/classes.rb +71 -86
  592. data/generated/google/apis/pubsub_v1beta1a/service.rb +31 -38
  593. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  594. data/generated/google/apis/pubsub_v1beta2/classes.rb +251 -354
  595. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -0
  596. data/generated/google/apis/pubsub_v1beta2/service.rb +96 -108
  597. data/generated/google/apis/{memcache_v1.rb → pubsublite_v1.rb} +8 -9
  598. data/generated/google/apis/pubsublite_v1/classes.rb +461 -0
  599. data/generated/google/apis/pubsublite_v1/representations.rb +261 -0
  600. data/generated/google/apis/{memcache_v1 → pubsublite_v1}/service.rb +228 -228
  601. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  602. data/generated/google/apis/realtimebidding_v1/classes.rb +4 -4
  603. data/generated/google/apis/realtimebidding_v1/service.rb +4 -1
  604. data/generated/google/apis/recommendationengine_v1beta1.rb +1 -1
  605. data/generated/google/apis/recommendationengine_v1beta1/classes.rb +335 -456
  606. data/generated/google/apis/recommendationengine_v1beta1/representations.rb +0 -16
  607. data/generated/google/apis/recommendationengine_v1beta1/service.rb +140 -206
  608. data/generated/google/apis/redis_v1.rb +1 -1
  609. data/generated/google/apis/redis_v1/classes.rb +91 -513
  610. data/generated/google/apis/redis_v1/representations.rb +0 -139
  611. data/generated/google/apis/redis_v1/service.rb +93 -110
  612. data/generated/google/apis/redis_v1beta1.rb +1 -1
  613. data/generated/google/apis/redis_v1beta1/classes.rb +95 -517
  614. data/generated/google/apis/redis_v1beta1/representations.rb +0 -139
  615. data/generated/google/apis/redis_v1beta1/service.rb +93 -110
  616. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  617. data/generated/google/apis/remotebuildexecution_v1/classes.rb +951 -1078
  618. data/generated/google/apis/remotebuildexecution_v1/representations.rb +61 -0
  619. data/generated/google/apis/remotebuildexecution_v1/service.rb +26 -33
  620. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  621. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +946 -1071
  622. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +61 -0
  623. data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +103 -65
  624. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  625. data/generated/google/apis/remotebuildexecution_v2/classes.rb +1099 -1250
  626. data/generated/google/apis/remotebuildexecution_v2/representations.rb +61 -0
  627. data/generated/google/apis/remotebuildexecution_v2/service.rb +147 -206
  628. data/generated/google/apis/reseller_v1.rb +2 -2
  629. data/generated/google/apis/reseller_v1/classes.rb +151 -219
  630. data/generated/google/apis/reseller_v1/service.rb +122 -173
  631. data/generated/google/apis/run_v1.rb +1 -1
  632. data/generated/google/apis/run_v1/classes.rb +12 -135
  633. data/generated/google/apis/run_v1/representations.rb +1 -62
  634. data/generated/google/apis/run_v1/service.rb +0 -342
  635. data/generated/google/apis/run_v1alpha1.rb +1 -1
  636. data/generated/google/apis/run_v1alpha1/classes.rb +1 -1
  637. data/generated/google/apis/run_v1alpha1/representations.rb +1 -1
  638. data/generated/google/apis/run_v1beta1.rb +1 -1
  639. data/generated/google/apis/run_v1beta1/classes.rb +3 -2
  640. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  641. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +302 -412
  642. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +1 -0
  643. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +135 -159
  644. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  645. data/generated/google/apis/safebrowsing_v4/classes.rb +55 -64
  646. data/generated/google/apis/safebrowsing_v4/service.rb +4 -4
  647. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  648. data/generated/google/apis/sasportal_v1alpha1/classes.rb +26 -0
  649. data/generated/google/apis/sasportal_v1alpha1/representations.rb +14 -0
  650. data/generated/google/apis/sasportal_v1alpha1/service.rb +479 -0
  651. data/generated/google/apis/script_v1.rb +1 -1
  652. data/generated/google/apis/script_v1/classes.rb +88 -111
  653. data/generated/google/apis/script_v1/service.rb +63 -69
  654. data/generated/google/apis/searchconsole_v1.rb +7 -1
  655. data/generated/google/apis/searchconsole_v1/classes.rb +388 -0
  656. data/generated/google/apis/searchconsole_v1/representations.rb +162 -0
  657. data/generated/google/apis/searchconsole_v1/service.rb +287 -0
  658. data/generated/google/apis/secretmanager_v1.rb +1 -1
  659. data/generated/google/apis/secretmanager_v1/classes.rb +379 -365
  660. data/generated/google/apis/secretmanager_v1/representations.rb +92 -0
  661. data/generated/google/apis/secretmanager_v1/service.rb +66 -82
  662. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  663. data/generated/google/apis/secretmanager_v1beta1/classes.rb +218 -363
  664. data/generated/google/apis/secretmanager_v1beta1/representations.rb +1 -0
  665. data/generated/google/apis/secretmanager_v1beta1/service.rb +66 -82
  666. data/generated/google/apis/securitycenter_v1.rb +1 -1
  667. data/generated/google/apis/securitycenter_v1/classes.rb +20 -204
  668. data/generated/google/apis/securitycenter_v1/representations.rb +1 -72
  669. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  670. data/generated/google/apis/securitycenter_v1beta1/classes.rb +22 -204
  671. data/generated/google/apis/securitycenter_v1beta1/representations.rb +1 -72
  672. data/generated/google/apis/{securitycenter_v1p1beta1.rb → securitycenter_v1beta2.rb} +6 -6
  673. data/generated/google/apis/{securitycenter_v1p1alpha1 → securitycenter_v1beta2}/classes.rb +275 -291
  674. data/generated/google/apis/{securitycenter_v1p1alpha1 → securitycenter_v1beta2}/representations.rb +83 -84
  675. data/generated/google/apis/securitycenter_v1beta2/service.rb +1494 -0
  676. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  677. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +30 -60
  678. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +31 -29
  679. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  680. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +19 -49
  681. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  682. data/generated/google/apis/servicecontrol_v1/classes.rb +525 -641
  683. data/generated/google/apis/servicecontrol_v1/service.rb +36 -46
  684. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  685. data/generated/google/apis/servicecontrol_v2/classes.rb +281 -325
  686. data/generated/google/apis/servicecontrol_v2/service.rb +33 -43
  687. data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
  688. data/generated/google/apis/servicedirectory_v1beta1/classes.rb +221 -333
  689. data/generated/google/apis/servicedirectory_v1beta1/representations.rb +1 -0
  690. data/generated/google/apis/servicedirectory_v1beta1/service.rb +94 -129
  691. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  692. data/generated/google/apis/servicemanagement_v1/classes.rb +1263 -2135
  693. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -13
  694. data/generated/google/apis/servicemanagement_v1/service.rb +141 -228
  695. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  696. data/generated/google/apis/servicenetworking_v1/classes.rb +93 -57
  697. data/generated/google/apis/servicenetworking_v1/representations.rb +52 -1
  698. data/generated/google/apis/servicenetworking_v1/service.rb +116 -0
  699. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  700. data/generated/google/apis/servicenetworking_v1beta/classes.rb +74 -48
  701. data/generated/google/apis/servicenetworking_v1beta/representations.rb +38 -0
  702. data/generated/google/apis/serviceusage_v1.rb +1 -1
  703. data/generated/google/apis/serviceusage_v1/classes.rb +52 -48
  704. data/generated/google/apis/serviceusage_v1/representations.rb +4 -0
  705. data/generated/google/apis/serviceusage_v1/service.rb +5 -1
  706. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  707. data/generated/google/apis/serviceusage_v1beta1/classes.rb +87 -49
  708. data/generated/google/apis/serviceusage_v1beta1/representations.rb +8 -0
  709. data/generated/google/apis/sheets_v4.rb +1 -1
  710. data/generated/google/apis/sheets_v4/classes.rb +3933 -5008
  711. data/generated/google/apis/sheets_v4/representations.rb +625 -0
  712. data/generated/google/apis/sheets_v4/service.rb +113 -149
  713. data/generated/google/apis/site_verification_v1.rb +1 -1
  714. data/generated/google/apis/slides_v1.rb +1 -1
  715. data/generated/google/apis/slides_v1/classes.rb +841 -1114
  716. data/generated/google/apis/slides_v1/service.rb +23 -30
  717. data/generated/google/apis/smartdevicemanagement_v1.rb +35 -0
  718. data/generated/google/apis/smartdevicemanagement_v1/classes.rb +313 -0
  719. data/generated/google/apis/{accessapproval_v1beta1 → smartdevicemanagement_v1}/representations.rb +44 -73
  720. data/generated/google/apis/smartdevicemanagement_v1/service.rb +312 -0
  721. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  722. data/generated/google/apis/sourcerepo_v1/classes.rb +250 -400
  723. data/generated/google/apis/sourcerepo_v1/service.rb +40 -49
  724. data/generated/google/apis/spanner_v1.rb +1 -1
  725. data/generated/google/apis/spanner_v1/classes.rb +1553 -2157
  726. data/generated/google/apis/spanner_v1/representations.rb +1 -0
  727. data/generated/google/apis/spanner_v1/service.rb +443 -618
  728. data/generated/google/apis/speech_v1.rb +1 -1
  729. data/generated/google/apis/speech_v1/classes.rb +174 -220
  730. data/generated/google/apis/speech_v1/service.rb +27 -32
  731. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  732. data/generated/google/apis/speech_v1p1beta1/classes.rb +253 -306
  733. data/generated/google/apis/speech_v1p1beta1/service.rb +27 -32
  734. data/generated/google/apis/speech_v2beta1.rb +1 -1
  735. data/generated/google/apis/speech_v2beta1/classes.rb +66 -76
  736. data/generated/google/apis/speech_v2beta1/service.rb +10 -12
  737. data/generated/google/apis/{sql_v1beta4.rb → sqladmin_v1beta4.rb} +5 -5
  738. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/classes.rb +469 -452
  739. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/representations.rb +122 -87
  740. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/service.rb +295 -300
  741. data/generated/google/apis/storage_v1.rb +1 -1
  742. data/generated/google/apis/storage_v1/classes.rb +8 -7
  743. data/generated/google/apis/storage_v1/representations.rb +2 -2
  744. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  745. data/generated/google/apis/storagetransfer_v1/classes.rb +261 -339
  746. data/generated/google/apis/storagetransfer_v1/service.rb +43 -64
  747. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  748. data/generated/google/apis/streetviewpublish_v1/classes.rb +106 -148
  749. data/generated/google/apis/streetviewpublish_v1/service.rb +94 -177
  750. data/generated/google/apis/sts_v1.rb +32 -0
  751. data/generated/google/apis/sts_v1/classes.rb +120 -0
  752. data/generated/google/apis/sts_v1/representations.rb +59 -0
  753. data/generated/google/apis/sts_v1/service.rb +90 -0
  754. data/generated/google/apis/sts_v1beta.rb +32 -0
  755. data/generated/google/apis/sts_v1beta/classes.rb +194 -0
  756. data/generated/google/apis/{oauth2_v2 → sts_v1beta}/representations.rb +14 -21
  757. data/generated/google/apis/sts_v1beta/service.rb +92 -0
  758. data/generated/google/apis/tagmanager_v1.rb +1 -1
  759. data/generated/google/apis/tagmanager_v1/service.rb +2 -2
  760. data/generated/google/apis/tagmanager_v2.rb +1 -1
  761. data/generated/google/apis/tagmanager_v2/service.rb +2 -2
  762. data/generated/google/apis/tasks_v1.rb +1 -1
  763. data/generated/google/apis/tasks_v1/classes.rb +21 -22
  764. data/generated/google/apis/tasks_v1/service.rb +19 -19
  765. data/generated/google/apis/testing_v1.rb +1 -1
  766. data/generated/google/apis/testing_v1/classes.rb +317 -382
  767. data/generated/google/apis/testing_v1/representations.rb +2 -0
  768. data/generated/google/apis/testing_v1/service.rb +22 -28
  769. data/generated/google/apis/texttospeech_v1.rb +1 -1
  770. data/generated/google/apis/texttospeech_v1/classes.rb +51 -57
  771. data/generated/google/apis/texttospeech_v1/service.rb +9 -10
  772. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  773. data/generated/google/apis/texttospeech_v1beta1/classes.rb +96 -57
  774. data/generated/google/apis/texttospeech_v1beta1/representations.rb +19 -0
  775. data/generated/google/apis/texttospeech_v1beta1/service.rb +9 -10
  776. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  777. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -0
  778. data/generated/google/apis/toolresults_v1beta3/representations.rb +1 -0
  779. data/generated/google/apis/tpu_v1.rb +1 -1
  780. data/generated/google/apis/tpu_v1/classes.rb +54 -0
  781. data/generated/google/apis/tpu_v1/representations.rb +19 -0
  782. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  783. data/generated/google/apis/tpu_v1alpha1/classes.rb +54 -0
  784. data/generated/google/apis/tpu_v1alpha1/representations.rb +19 -0
  785. data/generated/google/apis/trafficdirector_v2.rb +34 -0
  786. data/generated/google/apis/trafficdirector_v2/classes.rb +1347 -0
  787. data/generated/google/apis/trafficdirector_v2/representations.rb +620 -0
  788. data/generated/google/apis/trafficdirector_v2/service.rb +89 -0
  789. data/generated/google/apis/translate_v3.rb +1 -1
  790. data/generated/google/apis/translate_v3/classes.rb +148 -175
  791. data/generated/google/apis/translate_v3/service.rb +122 -151
  792. data/generated/google/apis/translate_v3beta1.rb +1 -1
  793. data/generated/google/apis/translate_v3beta1/classes.rb +149 -170
  794. data/generated/google/apis/translate_v3beta1/service.rb +122 -151
  795. data/generated/google/apis/vault_v1.rb +1 -1
  796. data/generated/google/apis/vault_v1/classes.rb +80 -103
  797. data/generated/google/apis/vault_v1/service.rb +31 -37
  798. data/generated/google/apis/vectortile_v1.rb +1 -1
  799. data/generated/google/apis/vectortile_v1/classes.rb +185 -267
  800. data/generated/google/apis/vectortile_v1/service.rb +75 -88
  801. data/generated/google/apis/verifiedaccess_v1.rb +1 -1
  802. data/generated/google/apis/verifiedaccess_v1/classes.rb +20 -27
  803. data/generated/google/apis/videointelligence_v1.rb +1 -1
  804. data/generated/google/apis/videointelligence_v1/classes.rb +753 -918
  805. data/generated/google/apis/videointelligence_v1/service.rb +71 -48
  806. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  807. data/generated/google/apis/videointelligence_v1beta2/classes.rb +748 -911
  808. data/generated/google/apis/videointelligence_v1beta2/service.rb +4 -4
  809. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  810. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +748 -911
  811. data/generated/google/apis/videointelligence_v1p1beta1/service.rb +4 -4
  812. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  813. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +748 -911
  814. data/generated/google/apis/videointelligence_v1p2beta1/service.rb +4 -4
  815. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  816. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +754 -920
  817. data/generated/google/apis/videointelligence_v1p3beta1/service.rb +4 -4
  818. data/generated/google/apis/vision_v1.rb +1 -1
  819. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  820. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  821. data/generated/google/apis/webfonts_v1.rb +2 -3
  822. data/generated/google/apis/webfonts_v1/classes.rb +1 -2
  823. data/generated/google/apis/webfonts_v1/service.rb +2 -4
  824. data/generated/google/apis/websecurityscanner_v1.rb +1 -1
  825. data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
  826. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  827. data/generated/google/apis/workflowexecutions_v1beta.rb +34 -0
  828. data/generated/google/apis/workflowexecutions_v1beta/classes.rb +155 -0
  829. data/generated/google/apis/workflowexecutions_v1beta/representations.rb +88 -0
  830. data/generated/google/apis/{securitycenter_v1p1alpha1 → workflowexecutions_v1beta}/service.rb +73 -69
  831. data/generated/google/apis/workflows_v1beta.rb +34 -0
  832. data/generated/google/apis/workflows_v1beta/classes.rb +406 -0
  833. data/generated/google/apis/workflows_v1beta/representations.rb +173 -0
  834. data/generated/google/apis/workflows_v1beta/service.rb +437 -0
  835. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  836. data/generated/google/apis/youtube_v3.rb +1 -1
  837. data/generated/google/apis/youtube_v3/classes.rb +0 -586
  838. data/generated/google/apis/youtube_v3/representations.rb +0 -269
  839. data/generated/google/apis/youtube_v3/service.rb +0 -117
  840. data/google-api-client.gemspec +2 -1
  841. data/lib/google/apis/version.rb +1 -1
  842. metadata +106 -40
  843. data/generated/google/apis/accessapproval_v1beta1/classes.rb +0 -417
  844. data/generated/google/apis/accessapproval_v1beta1/service.rb +0 -857
  845. data/generated/google/apis/dns_v2beta1.rb +0 -43
  846. data/generated/google/apis/dns_v2beta1/classes.rb +0 -1447
  847. data/generated/google/apis/dns_v2beta1/representations.rb +0 -588
  848. data/generated/google/apis/dns_v2beta1/service.rb +0 -928
  849. data/generated/google/apis/memcache_v1/classes.rb +0 -1157
  850. data/generated/google/apis/oauth2_v2.rb +0 -40
  851. data/generated/google/apis/oauth2_v2/classes.rb +0 -165
  852. data/generated/google/apis/oauth2_v2/service.rb +0 -158
  853. data/generated/google/apis/plus_v1.rb +0 -43
  854. data/generated/google/apis/plus_v1/classes.rb +0 -2094
  855. data/generated/google/apis/plus_v1/representations.rb +0 -907
  856. data/generated/google/apis/plus_v1/service.rb +0 -451
  857. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +0 -2059
  858. data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +0 -789
  859. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +0 -1243
  860. data/generated/google/apis/storage_v1beta2.rb +0 -40
  861. data/generated/google/apis/storage_v1beta2/classes.rb +0 -1047
  862. data/generated/google/apis/storage_v1beta2/representations.rb +0 -425
  863. data/generated/google/apis/storage_v1beta2/service.rb +0 -1667
@@ -124,6 +124,12 @@ module Google
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
+ class ListViewsResponse
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
127
133
  class LogBucket
128
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
135
 
@@ -172,6 +178,12 @@ module Google
172
178
  include Google::Apis::Core::JsonObjectSupport
173
179
  end
174
180
 
181
+ class LogView
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
175
187
  class MetricDescriptor
176
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
189
 
@@ -220,6 +232,12 @@ module Google
220
232
  include Google::Apis::Core::JsonObjectSupport
221
233
  end
222
234
 
235
+ class UndeleteBucketRequest
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
223
241
  class WriteLogEntriesRequest
224
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
243
 
@@ -396,12 +414,22 @@ module Google
396
414
  end
397
415
  end
398
416
 
417
+ class ListViewsResponse
418
+ # @private
419
+ class Representation < Google::Apis::Core::JsonRepresentation
420
+ property :next_page_token, as: 'nextPageToken'
421
+ collection :views, as: 'views', class: Google::Apis::LoggingV2::LogView, decorator: Google::Apis::LoggingV2::LogView::Representation
422
+
423
+ end
424
+ end
425
+
399
426
  class LogBucket
400
427
  # @private
401
428
  class Representation < Google::Apis::Core::JsonRepresentation
402
429
  property :create_time, as: 'createTime'
403
430
  property :description, as: 'description'
404
431
  property :lifecycle_state, as: 'lifecycleState'
432
+ property :locked, as: 'locked'
405
433
  property :name, as: 'name'
406
434
  property :retention_days, as: 'retentionDays'
407
435
  property :update_time, as: 'updateTime'
@@ -505,6 +533,8 @@ module Google
505
533
  property :description, as: 'description'
506
534
  property :destination, as: 'destination'
507
535
  property :disabled, as: 'disabled'
536
+ collection :exclusions, as: 'exclusions', class: Google::Apis::LoggingV2::LogExclusion, decorator: Google::Apis::LoggingV2::LogExclusion::Representation
537
+
508
538
  property :filter, as: 'filter'
509
539
  property :include_children, as: 'includeChildren'
510
540
  property :name, as: 'name'
@@ -514,6 +544,17 @@ module Google
514
544
  end
515
545
  end
516
546
 
547
+ class LogView
548
+ # @private
549
+ class Representation < Google::Apis::Core::JsonRepresentation
550
+ property :create_time, as: 'createTime'
551
+ property :description, as: 'description'
552
+ property :filter, as: 'filter'
553
+ property :name, as: 'name'
554
+ property :update_time, as: 'updateTime'
555
+ end
556
+ end
557
+
517
558
  class MetricDescriptor
518
559
  # @private
519
560
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -629,6 +670,12 @@ module Google
629
670
  end
630
671
  end
631
672
 
673
+ class UndeleteBucketRequest
674
+ # @private
675
+ class Representation < Google::Apis::Core::JsonRepresentation
676
+ end
677
+ end
678
+
632
679
  class WriteLogEntriesRequest
633
680
  # @private
634
681
  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
@@ -86,16 +85,46 @@ module Google
86
85
  execute_or_queue_command(command, &block)
87
86
  end
88
87
 
88
+ # Gets a view.
89
+ # @param [String] name
90
+ # Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[
91
+ # LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "projects/my-
92
+ # project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id".
93
+ # @param [String] fields
94
+ # Selector specifying which fields to include in a partial response.
95
+ # @param [String] quota_user
96
+ # Available to use for quota purposes for server-side applications. Can be any
97
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
98
+ # @param [Google::Apis::RequestOptions] options
99
+ # Request-specific options
100
+ #
101
+ # @yield [result, err] Result & error if block supplied
102
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
103
+ # @yieldparam err [StandardError] error object if request failed
104
+ #
105
+ # @return [Google::Apis::LoggingV2::LogView]
106
+ #
107
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
108
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
109
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
110
+ def get_billing_account_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
111
+ command = make_simple_command(:get, 'v2/{+name}', options)
112
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
113
+ command.response_class = Google::Apis::LoggingV2::LogView
114
+ command.params['name'] = name unless name.nil?
115
+ command.query['fields'] = fields unless fields.nil?
116
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
117
+ execute_or_queue_command(command, &block)
118
+ end
119
+
89
120
  # Creates a new exclusion in a specified parent resource. Only log entries
90
121
  # belonging to that resource can be excluded. You can have up to 10 exclusions
91
122
  # in a resource.
92
123
  # @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".
124
+ # Required. The parent resource in which to create the exclusion: "projects/[
125
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
126
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-
127
+ # project", "organizations/123456789".
99
128
  # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
100
129
  # @param [String] fields
101
130
  # Selector specifying which fields to include in a partial response.
@@ -128,12 +157,11 @@ module Google
128
157
 
129
158
  # Deletes an exclusion.
130
159
  # @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".
160
+ # Required. The resource name of an existing exclusion to delete: "projects/[
161
+ # PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/
162
+ # exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[
163
+ # EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "
164
+ # projects/my-project-id/exclusions/my-exclusion-id".
137
165
  # @param [String] fields
138
166
  # Selector specifying which fields to include in a partial response.
139
167
  # @param [String] quota_user
@@ -163,12 +191,11 @@ module Google
163
191
 
164
192
  # Gets the description of an exclusion.
165
193
  # @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".
194
+ # Required. The resource name of an existing exclusion: "projects/[PROJECT_ID]/
195
+ # exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
196
+ # EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
197
+ # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-
198
+ # id/exclusions/my-exclusion-id".
172
199
  # @param [String] fields
173
200
  # Selector specifying which fields to include in a partial response.
174
201
  # @param [String] quota_user
@@ -198,11 +225,9 @@ module Google
198
225
 
199
226
  # Lists all the exclusions in a parent resource.
200
227
  # @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]"
228
+ # Required. The parent resource whose exclusions are to be listed. "projects/[
229
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
230
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
206
231
  # @param [Fixnum] page_size
207
232
  # Optional. The maximum number of results to return from this request. Non-
208
233
  # positive values are ignored. The presence of nextPageToken in the response
@@ -243,12 +268,11 @@ module Google
243
268
 
244
269
  # Changes one or more properties of an existing exclusion.
245
270
  # @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".
271
+ # Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/
272
+ # exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
273
+ # EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
274
+ # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-
275
+ # id/exclusions/my-exclusion-id".
252
276
  # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
253
277
  # @param [String] update_mask
254
278
  # Required. A non-empty list of fields to change in the existing exclusion. New
@@ -287,15 +311,92 @@ module Google
287
311
  execute_or_queue_command(command, &block)
288
312
  end
289
313
 
314
+ # Creates a bucket that can be used to store log entries. Once a bucket has been
315
+ # created, the region cannot be changed.
316
+ # @param [String] parent
317
+ # Required. The resource in which to create the bucket: "projects/[PROJECT_ID]/
318
+ # locations/[LOCATION_ID]" Example: "projects/my-logging-project/locations/
319
+ # global"
320
+ # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
321
+ # @param [String] bucket_id
322
+ # Required. A client-assigned identifier such as "my-bucket". Identifiers are
323
+ # limited to 100 characters and can include only letters, digits, underscores,
324
+ # hyphens, and periods.
325
+ # @param [String] fields
326
+ # Selector specifying which fields to include in a partial response.
327
+ # @param [String] quota_user
328
+ # Available to use for quota purposes for server-side applications. Can be any
329
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
330
+ # @param [Google::Apis::RequestOptions] options
331
+ # Request-specific options
332
+ #
333
+ # @yield [result, err] Result & error if block supplied
334
+ # @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
335
+ # @yieldparam err [StandardError] error object if request failed
336
+ #
337
+ # @return [Google::Apis::LoggingV2::LogBucket]
338
+ #
339
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
340
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
341
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
342
+ def create_billing_account_location_bucket(parent, log_bucket_object = nil, bucket_id: nil, fields: nil, quota_user: nil, options: nil, &block)
343
+ command = make_simple_command(:post, 'v2/{+parent}/buckets', options)
344
+ command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
345
+ command.request_object = log_bucket_object
346
+ command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
347
+ command.response_class = Google::Apis::LoggingV2::LogBucket
348
+ command.params['parent'] = parent unless parent.nil?
349
+ command.query['bucketId'] = bucket_id unless bucket_id.nil?
350
+ command.query['fields'] = fields unless fields.nil?
351
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
352
+ execute_or_queue_command(command, &block)
353
+ end
354
+
355
+ # Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days,
356
+ # the bucket will be purged and all logs in the bucket will be permanently
357
+ # deleted.
358
+ # @param [String] name
359
+ # Required. The full resource name of the bucket to delete. "projects/[
360
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
361
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
362
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
363
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
364
+ # project-id/locations/my-location/buckets/my-bucket-id".
365
+ # @param [String] fields
366
+ # Selector specifying which fields to include in a partial response.
367
+ # @param [String] quota_user
368
+ # Available to use for quota purposes for server-side applications. Can be any
369
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
370
+ # @param [Google::Apis::RequestOptions] options
371
+ # Request-specific options
372
+ #
373
+ # @yield [result, err] Result & error if block supplied
374
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
375
+ # @yieldparam err [StandardError] error object if request failed
376
+ #
377
+ # @return [Google::Apis::LoggingV2::Empty]
378
+ #
379
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
380
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
381
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
382
+ def delete_billing_account_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
383
+ command = make_simple_command(:delete, 'v2/{+name}', options)
384
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
385
+ command.response_class = Google::Apis::LoggingV2::Empty
386
+ command.params['name'] = name unless name.nil?
387
+ command.query['fields'] = fields unless fields.nil?
388
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
389
+ execute_or_queue_command(command, &block)
390
+ end
391
+
290
392
  # Lists buckets (Beta).
291
393
  # @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.
394
+ # Required. The parent resource whose buckets are to be listed: "projects/[
395
+ # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
396
+ # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
397
+ # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" Note: The
398
+ # locations portion of the resource must be specified, but supplying the
399
+ # character - in place of LOCATION_ID will return all buckets.
299
400
  # @param [Fixnum] page_size
300
401
  # Optional. The maximum number of results to return from this request. Non-
301
402
  # positive values are ignored. The presence of nextPageToken in the response
@@ -341,15 +442,13 @@ module Google
341
442
  # FAILED_PRECONDITION will be returned.A buckets region may not be modified
342
443
  # after it is created. This method is in Beta.
343
444
  # @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
445
+ # Required. The full resource name of the bucket to update. "projects/[
446
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
447
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
448
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
449
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
450
+ # project-id/locations/my-location/buckets/my-bucket-id". Also requires
451
+ # permission "resourcemanager.projects.updateLiens" to set the locked property
353
452
  # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
354
453
  # @param [String] update_mask
355
454
  # Required. Field mask that specifies the fields in bucket that need an update.
@@ -387,19 +486,214 @@ module Google
387
486
  execute_or_queue_command(command, &block)
388
487
  end
389
488
 
489
+ # Undeletes a bucket. A bucket that has been deleted may be undeleted within the
490
+ # grace period of 7 days.
491
+ # @param [String] name
492
+ # Required. The full resource name of the bucket to undelete. "projects/[
493
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
494
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
495
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
496
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
497
+ # project-id/locations/my-location/buckets/my-bucket-id".
498
+ # @param [Google::Apis::LoggingV2::UndeleteBucketRequest] undelete_bucket_request_object
499
+ # @param [String] fields
500
+ # Selector specifying which fields to include in a partial response.
501
+ # @param [String] quota_user
502
+ # Available to use for quota purposes for server-side applications. Can be any
503
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
504
+ # @param [Google::Apis::RequestOptions] options
505
+ # Request-specific options
506
+ #
507
+ # @yield [result, err] Result & error if block supplied
508
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
509
+ # @yieldparam err [StandardError] error object if request failed
510
+ #
511
+ # @return [Google::Apis::LoggingV2::Empty]
512
+ #
513
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
514
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
515
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
516
+ def undelete_billing_account_location_bucket(name, undelete_bucket_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
517
+ command = make_simple_command(:post, 'v2/{+name}:undelete', options)
518
+ command.request_representation = Google::Apis::LoggingV2::UndeleteBucketRequest::Representation
519
+ command.request_object = undelete_bucket_request_object
520
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
521
+ command.response_class = Google::Apis::LoggingV2::Empty
522
+ command.params['name'] = name unless name.nil?
523
+ command.query['fields'] = fields unless fields.nil?
524
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
525
+ execute_or_queue_command(command, &block)
526
+ end
527
+
528
+ # Creates a view over logs in a bucket. A bucket may contain a maximum of 50
529
+ # views.
530
+ # @param [String] parent
531
+ # Required. The bucket in which to create the view "projects/[PROJECT_ID]/
532
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-logging-
533
+ # project/locations/my-location/buckets/my-bucket"
534
+ # @param [Google::Apis::LoggingV2::LogView] log_view_object
535
+ # @param [String] view_id
536
+ # Required. The id to use for this view.
537
+ # @param [String] fields
538
+ # Selector specifying which fields to include in a partial response.
539
+ # @param [String] quota_user
540
+ # Available to use for quota purposes for server-side applications. Can be any
541
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
542
+ # @param [Google::Apis::RequestOptions] options
543
+ # Request-specific options
544
+ #
545
+ # @yield [result, err] Result & error if block supplied
546
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
547
+ # @yieldparam err [StandardError] error object if request failed
548
+ #
549
+ # @return [Google::Apis::LoggingV2::LogView]
550
+ #
551
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
552
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
553
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
554
+ def create_billing_account_location_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block)
555
+ command = make_simple_command(:post, 'v2/{+parent}/views', options)
556
+ command.request_representation = Google::Apis::LoggingV2::LogView::Representation
557
+ command.request_object = log_view_object
558
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
559
+ command.response_class = Google::Apis::LoggingV2::LogView
560
+ command.params['parent'] = parent unless parent.nil?
561
+ command.query['viewId'] = view_id unless view_id.nil?
562
+ command.query['fields'] = fields unless fields.nil?
563
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
564
+ execute_or_queue_command(command, &block)
565
+ end
566
+
567
+ # Deletes a view from a bucket.
568
+ # @param [String] name
569
+ # Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
570
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
571
+ # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
572
+ # view-id".
573
+ # @param [String] fields
574
+ # Selector specifying which fields to include in a partial response.
575
+ # @param [String] quota_user
576
+ # Available to use for quota purposes for server-side applications. Can be any
577
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
578
+ # @param [Google::Apis::RequestOptions] options
579
+ # Request-specific options
580
+ #
581
+ # @yield [result, err] Result & error if block supplied
582
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
583
+ # @yieldparam err [StandardError] error object if request failed
584
+ #
585
+ # @return [Google::Apis::LoggingV2::Empty]
586
+ #
587
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
588
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
589
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
590
+ def delete_billing_account_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
591
+ command = make_simple_command(:delete, 'v2/{+name}', options)
592
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
593
+ command.response_class = Google::Apis::LoggingV2::Empty
594
+ command.params['name'] = name unless name.nil?
595
+ command.query['fields'] = fields unless fields.nil?
596
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
597
+ execute_or_queue_command(command, &block)
598
+ end
599
+
600
+ # Lists views on a bucket..
601
+ # @param [String] parent
602
+ # Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/
603
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
604
+ # @param [Fixnum] page_size
605
+ # Optional. The maximum number of results to return from this request. Non-
606
+ # positive values are ignored. The presence of nextPageToken in the response
607
+ # indicates that more results might be available.
608
+ # @param [String] page_token
609
+ # Optional. If present, then retrieve the next batch of results from the
610
+ # preceding call to this method. pageToken must be the value of nextPageToken
611
+ # from the previous response. The values of other method parameters should be
612
+ # identical to those in the previous call.
613
+ # @param [String] fields
614
+ # Selector specifying which fields to include in a partial response.
615
+ # @param [String] quota_user
616
+ # Available to use for quota purposes for server-side applications. Can be any
617
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
618
+ # @param [Google::Apis::RequestOptions] options
619
+ # Request-specific options
620
+ #
621
+ # @yield [result, err] Result & error if block supplied
622
+ # @yieldparam result [Google::Apis::LoggingV2::ListViewsResponse] parsed result object
623
+ # @yieldparam err [StandardError] error object if request failed
624
+ #
625
+ # @return [Google::Apis::LoggingV2::ListViewsResponse]
626
+ #
627
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
628
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
629
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
630
+ def list_billing_account_location_bucket_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
631
+ command = make_simple_command(:get, 'v2/{+parent}/views', options)
632
+ command.response_representation = Google::Apis::LoggingV2::ListViewsResponse::Representation
633
+ command.response_class = Google::Apis::LoggingV2::ListViewsResponse
634
+ command.params['parent'] = parent unless parent.nil?
635
+ command.query['pageSize'] = page_size unless page_size.nil?
636
+ command.query['pageToken'] = page_token unless page_token.nil?
637
+ command.query['fields'] = fields unless fields.nil?
638
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
639
+ execute_or_queue_command(command, &block)
640
+ end
641
+
642
+ # Updates a view. This method replaces the following fields in the existing view
643
+ # with values from the new view: filter.
644
+ # @param [String] name
645
+ # Required. The full resource name of the view to update "projects/[PROJECT_ID]/
646
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
647
+ # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
648
+ # view-id".
649
+ # @param [Google::Apis::LoggingV2::LogView] log_view_object
650
+ # @param [String] update_mask
651
+ # Optional. Field mask that specifies the fields in view that need an update. A
652
+ # field will be overwritten if, and only if, it is in the update mask. name and
653
+ # output only fields cannot be updated.For a detailed FieldMask definition, see
654
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
655
+ # google.protobuf.FieldMaskExample: updateMask=filter.
656
+ # @param [String] fields
657
+ # Selector specifying which fields to include in a partial response.
658
+ # @param [String] quota_user
659
+ # Available to use for quota purposes for server-side applications. Can be any
660
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
661
+ # @param [Google::Apis::RequestOptions] options
662
+ # Request-specific options
663
+ #
664
+ # @yield [result, err] Result & error if block supplied
665
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
666
+ # @yieldparam err [StandardError] error object if request failed
667
+ #
668
+ # @return [Google::Apis::LoggingV2::LogView]
669
+ #
670
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
671
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
672
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
673
+ def patch_billing_account_location_bucket_view(name, log_view_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
674
+ command = make_simple_command(:patch, 'v2/{+name}', options)
675
+ command.request_representation = Google::Apis::LoggingV2::LogView::Representation
676
+ command.request_object = log_view_object
677
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
678
+ command.response_class = Google::Apis::LoggingV2::LogView
679
+ command.params['name'] = name unless name.nil?
680
+ command.query['updateMask'] = update_mask unless update_mask.nil?
681
+ command.query['fields'] = fields unless fields.nil?
682
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
683
+ execute_or_queue_command(command, &block)
684
+ end
685
+
390
686
  # Deletes all the log entries in a log. The log reappears if it receives new
391
687
  # entries. Log entries written shortly before the delete operation might not be
392
688
  # deleted. Entries received after the delete operation with a timestamp before
393
689
  # the operation will be deleted.
394
690
  # @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.
691
+ # Required. The resource name of the log to delete: "projects/[PROJECT_ID]/logs/[
692
+ # LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[
693
+ # BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID]
694
+ # must be URL-encoded. For example, "projects/my-project-id/logs/syslog", "
695
+ # organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
696
+ # For more information about log names, see LogEntry.
403
697
  # @param [String] fields
404
698
  # Selector specifying which fields to include in a partial response.
405
699
  # @param [String] quota_user
@@ -430,11 +724,9 @@ module Google
430
724
  # Lists the logs in projects, organizations, folders, or billing accounts. Only
431
725
  # logs that have entries are listed.
432
726
  # @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]"
727
+ # Required. The resource name that owns the logs: "projects/[PROJECT_ID]" "
728
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
729
+ # folders/[FOLDER_ID]"
438
730
  # @param [Fixnum] page_size
439
731
  # Optional. The maximum number of results to return from this request. Non-
440
732
  # positive values are ignored. The presence of nextPageToken in the response
@@ -478,12 +770,10 @@ module Google
478
770
  # writer_identity is not permitted to write to the destination. A sink can
479
771
  # export log entries only from the resource owning the sink.
480
772
  # @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".
773
+ # Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "
774
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
775
+ # folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/
776
+ # 123456789".
487
777
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
488
778
  # @param [Boolean] unique_writer_identity
489
779
  # Optional. Determines the kind of IAM identity returned as writer_identity in
@@ -529,11 +819,9 @@ module Google
529
819
  # account is also deleted.
530
820
  # @param [String] sink_name
531
821
  # 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]"
822
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
823
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
824
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
537
825
  # Example: "projects/my-project-id/sinks/my-sink-id".
538
826
  # @param [String] fields
539
827
  # Selector specifying which fields to include in a partial response.
@@ -564,11 +852,9 @@ module Google
564
852
 
565
853
  # Gets a sink.
566
854
  # @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]"
855
+ # Required. The resource name of the sink: "projects/[PROJECT_ID]/sinks/[SINK_ID]
856
+ # " "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
857
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
572
858
  # Example: "projects/my-project-id/sinks/my-sink-id".
573
859
  # @param [String] fields
574
860
  # Selector specifying which fields to include in a partial response.
@@ -599,11 +885,9 @@ module Google
599
885
 
600
886
  # Lists sinks.
601
887
  # @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]"
888
+ # Required. The parent resource whose sinks are to be listed: "projects/[
889
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
890
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
607
891
  # @param [Fixnum] page_size
608
892
  # Optional. The maximum number of results to return from this request. Non-
609
893
  # positive values are ignored. The presence of nextPageToken in the response
@@ -647,23 +931,20 @@ module Google
647
931
  # also have a new writer_identity; see the unique_writer_identity field.
648
932
  # @param [String] sink_name
649
933
  # 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]"
934
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
935
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
936
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
655
937
  # Example: "projects/my-project-id/sinks/my-sink-id".
656
938
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
657
939
  # @param [Boolean] unique_writer_identity
658
940
  # Optional. See sinks.create for a description of this field. When updating a
659
941
  # 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.
942
+ # sink depends on both the old and new values of this field: If the old and new
943
+ # values of this field are both false or both true, then there is no change to
944
+ # the sink's writer_identity. If the old value is false and the new value is
945
+ # true, then writer_identity is changed to a unique service account. It is an
946
+ # error if the old value is true and the new value is set to false or defaulted
947
+ # to false.
667
948
  # @param [String] update_mask
668
949
  # Optional. Field mask that specifies the fields in sink that need an update. A
669
950
  # sink field will be overwritten if, and only if, it is in the update mask. name
@@ -709,23 +990,20 @@ module Google
709
990
  # also have a new writer_identity; see the unique_writer_identity field.
710
991
  # @param [String] sink_name
711
992
  # 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]"
993
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
994
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
995
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
717
996
  # Example: "projects/my-project-id/sinks/my-sink-id".
718
997
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
719
998
  # @param [Boolean] unique_writer_identity
720
999
  # Optional. See sinks.create for a description of this field. When updating a
721
1000
  # 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.
1001
+ # sink depends on both the old and new values of this field: If the old and new
1002
+ # values of this field are both false or both true, then there is no change to
1003
+ # the sink's writer_identity. If the old value is false and the new value is
1004
+ # true, then writer_identity is changed to a unique service account. It is an
1005
+ # error if the old value is true and the new value is set to false or defaulted
1006
+ # to false.
729
1007
  # @param [String] update_mask
730
1008
  # Optional. Field mask that specifies the fields in sink that need an update. A
731
1009
  # sink field will be overwritten if, and only if, it is in the update mask. name
@@ -836,12 +1114,10 @@ module Google
836
1114
  # belonging to that resource can be excluded. You can have up to 10 exclusions
837
1115
  # in a resource.
838
1116
  # @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".
1117
+ # Required. The parent resource in which to create the exclusion: "projects/[
1118
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
1119
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-
1120
+ # project", "organizations/123456789".
845
1121
  # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
846
1122
  # @param [String] fields
847
1123
  # Selector specifying which fields to include in a partial response.
@@ -874,12 +1150,11 @@ module Google
874
1150
 
875
1151
  # Deletes an exclusion.
876
1152
  # @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".
1153
+ # Required. The resource name of an existing exclusion to delete: "projects/[
1154
+ # PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/
1155
+ # exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[
1156
+ # EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "
1157
+ # projects/my-project-id/exclusions/my-exclusion-id".
883
1158
  # @param [String] fields
884
1159
  # Selector specifying which fields to include in a partial response.
885
1160
  # @param [String] quota_user
@@ -909,12 +1184,11 @@ module Google
909
1184
 
910
1185
  # Gets the description of an exclusion.
911
1186
  # @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".
1187
+ # Required. The resource name of an existing exclusion: "projects/[PROJECT_ID]/
1188
+ # exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
1189
+ # EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
1190
+ # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-
1191
+ # id/exclusions/my-exclusion-id".
918
1192
  # @param [String] fields
919
1193
  # Selector specifying which fields to include in a partial response.
920
1194
  # @param [String] quota_user
@@ -944,11 +1218,9 @@ module Google
944
1218
 
945
1219
  # Lists all the exclusions in a parent resource.
946
1220
  # @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]"
1221
+ # Required. The parent resource whose exclusions are to be listed. "projects/[
1222
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
1223
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
952
1224
  # @param [Fixnum] page_size
953
1225
  # Optional. The maximum number of results to return from this request. Non-
954
1226
  # positive values are ignored. The presence of nextPageToken in the response
@@ -989,12 +1261,11 @@ module Google
989
1261
 
990
1262
  # Changes one or more properties of an existing exclusion.
991
1263
  # @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".
1264
+ # Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/
1265
+ # exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
1266
+ # EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
1267
+ # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-
1268
+ # id/exclusions/my-exclusion-id".
998
1269
  # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
999
1270
  # @param [String] update_mask
1000
1271
  # Required. A non-empty list of fields to change in the existing exclusion. New
@@ -1037,12 +1308,10 @@ module Google
1037
1308
  # belonging to that resource can be excluded. You can have up to 10 exclusions
1038
1309
  # in a resource.
1039
1310
  # @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".
1311
+ # Required. The parent resource in which to create the exclusion: "projects/[
1312
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
1313
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-
1314
+ # project", "organizations/123456789".
1046
1315
  # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
1047
1316
  # @param [String] fields
1048
1317
  # Selector specifying which fields to include in a partial response.
@@ -1075,12 +1344,11 @@ module Google
1075
1344
 
1076
1345
  # Deletes an exclusion.
1077
1346
  # @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".
1347
+ # Required. The resource name of an existing exclusion to delete: "projects/[
1348
+ # PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/
1349
+ # exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[
1350
+ # EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "
1351
+ # projects/my-project-id/exclusions/my-exclusion-id".
1084
1352
  # @param [String] fields
1085
1353
  # Selector specifying which fields to include in a partial response.
1086
1354
  # @param [String] quota_user
@@ -1110,12 +1378,11 @@ module Google
1110
1378
 
1111
1379
  # Gets the description of an exclusion.
1112
1380
  # @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".
1381
+ # Required. The resource name of an existing exclusion: "projects/[PROJECT_ID]/
1382
+ # exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
1383
+ # EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
1384
+ # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-
1385
+ # id/exclusions/my-exclusion-id".
1119
1386
  # @param [String] fields
1120
1387
  # Selector specifying which fields to include in a partial response.
1121
1388
  # @param [String] quota_user
@@ -1145,11 +1412,9 @@ module Google
1145
1412
 
1146
1413
  # Lists all the exclusions in a parent resource.
1147
1414
  # @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]"
1415
+ # Required. The parent resource whose exclusions are to be listed. "projects/[
1416
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
1417
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
1153
1418
  # @param [Fixnum] page_size
1154
1419
  # Optional. The maximum number of results to return from this request. Non-
1155
1420
  # positive values are ignored. The presence of nextPageToken in the response
@@ -1190,12 +1455,11 @@ module Google
1190
1455
 
1191
1456
  # Changes one or more properties of an existing exclusion.
1192
1457
  # @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".
1458
+ # Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/
1459
+ # exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
1460
+ # EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
1461
+ # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-
1462
+ # id/exclusions/my-exclusion-id".
1199
1463
  # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
1200
1464
  # @param [String] update_mask
1201
1465
  # Required. A non-empty list of fields to change in the existing exclusion. New
@@ -1234,15 +1498,17 @@ module Google
1234
1498
  execute_or_queue_command(command, &block)
1235
1499
  end
1236
1500
 
1237
- # Gets a bucket (Beta).
1238
- # @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".
1501
+ # Creates a bucket that can be used to store log entries. Once a bucket has been
1502
+ # created, the region cannot be changed.
1503
+ # @param [String] parent
1504
+ # Required. The resource in which to create the bucket: "projects/[PROJECT_ID]/
1505
+ # locations/[LOCATION_ID]" Example: "projects/my-logging-project/locations/
1506
+ # global"
1507
+ # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
1508
+ # @param [String] bucket_id
1509
+ # Required. A client-assigned identifier such as "my-bucket". Identifiers are
1510
+ # limited to 100 characters and can include only letters, digits, underscores,
1511
+ # hyphens, and periods.
1246
1512
  # @param [String] fields
1247
1513
  # Selector specifying which fields to include in a partial response.
1248
1514
  # @param [String] quota_user
@@ -1260,34 +1526,29 @@ module Google
1260
1526
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1261
1527
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1262
1528
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1263
- def get_folder_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
1264
- command = make_simple_command(:get, 'v2/{+name}', options)
1529
+ def create_folder_location_bucket(parent, log_bucket_object = nil, bucket_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1530
+ command = make_simple_command(:post, 'v2/{+parent}/buckets', options)
1531
+ command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
1532
+ command.request_object = log_bucket_object
1265
1533
  command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
1266
1534
  command.response_class = Google::Apis::LoggingV2::LogBucket
1267
- command.params['name'] = name unless name.nil?
1535
+ command.params['parent'] = parent unless parent.nil?
1536
+ command.query['bucketId'] = bucket_id unless bucket_id.nil?
1268
1537
  command.query['fields'] = fields unless fields.nil?
1269
1538
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1270
1539
  execute_or_queue_command(command, &block)
1271
1540
  end
1272
1541
 
1273
- # Lists buckets (Beta).
1274
- # @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.
1282
- # @param [Fixnum] page_size
1283
- # Optional. The maximum number of results to return from this request. Non-
1284
- # positive values are ignored. The presence of nextPageToken in the response
1285
- # indicates that more results might be available.
1286
- # @param [String] page_token
1287
- # Optional. If present, then retrieve the next batch of results from the
1288
- # preceding call to this method. pageToken must be the value of nextPageToken
1289
- # from the previous response. The values of other method parameters should be
1290
- # identical to those in the previous call.
1542
+ # Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days,
1543
+ # the bucket will be purged and all logs in the bucket will be permanently
1544
+ # deleted.
1545
+ # @param [String] name
1546
+ # Required. The full resource name of the bucket to delete. "projects/[
1547
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
1548
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
1549
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
1550
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
1551
+ # project-id/locations/my-location/buckets/my-bucket-id".
1291
1552
  # @param [String] fields
1292
1553
  # Selector specifying which fields to include in a partial response.
1293
1554
  # @param [String] quota_user
@@ -1297,42 +1558,119 @@ module Google
1297
1558
  # Request-specific options
1298
1559
  #
1299
1560
  # @yield [result, err] Result & error if block supplied
1300
- # @yieldparam result [Google::Apis::LoggingV2::ListBucketsResponse] parsed result object
1561
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
1301
1562
  # @yieldparam err [StandardError] error object if request failed
1302
1563
  #
1303
- # @return [Google::Apis::LoggingV2::ListBucketsResponse]
1564
+ # @return [Google::Apis::LoggingV2::Empty]
1304
1565
  #
1305
1566
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1306
1567
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1307
1568
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1308
- def list_folder_location_buckets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1309
- command = make_simple_command(:get, 'v2/{+parent}/buckets', options)
1310
- command.response_representation = Google::Apis::LoggingV2::ListBucketsResponse::Representation
1311
- command.response_class = Google::Apis::LoggingV2::ListBucketsResponse
1312
- command.params['parent'] = parent unless parent.nil?
1313
- command.query['pageSize'] = page_size unless page_size.nil?
1314
- command.query['pageToken'] = page_token unless page_token.nil?
1569
+ def delete_folder_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
1570
+ command = make_simple_command(:delete, 'v2/{+name}', options)
1571
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
1572
+ command.response_class = Google::Apis::LoggingV2::Empty
1573
+ command.params['name'] = name unless name.nil?
1315
1574
  command.query['fields'] = fields unless fields.nil?
1316
1575
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1317
1576
  execute_or_queue_command(command, &block)
1318
1577
  end
1319
1578
 
1320
- # Updates a bucket. This method replaces the following fields in the existing
1321
- # bucket with values from the new bucket: retention_periodIf the retention
1322
- # period is decreased and the bucket is locked, FAILED_PRECONDITION will be
1323
- # returned.If the bucket has a LifecycleState of DELETE_REQUESTED,
1324
- # FAILED_PRECONDITION will be returned.A buckets region may not be modified
1325
- # after it is created. This method is in Beta.
1579
+ # Gets a bucket (Beta).
1326
1580
  # @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
1581
+ # Required. The resource name of the bucket: "projects/[PROJECT_ID]/locations/[
1582
+ # LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[
1583
+ # LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/
1584
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[
1585
+ # LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-project-id/locations/
1586
+ # my-location/buckets/my-bucket-id".
1587
+ # @param [String] fields
1588
+ # Selector specifying which fields to include in a partial response.
1589
+ # @param [String] quota_user
1590
+ # Available to use for quota purposes for server-side applications. Can be any
1591
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1592
+ # @param [Google::Apis::RequestOptions] options
1593
+ # Request-specific options
1594
+ #
1595
+ # @yield [result, err] Result & error if block supplied
1596
+ # @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
1597
+ # @yieldparam err [StandardError] error object if request failed
1598
+ #
1599
+ # @return [Google::Apis::LoggingV2::LogBucket]
1600
+ #
1601
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1602
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1603
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1604
+ def get_folder_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
1605
+ command = make_simple_command(:get, 'v2/{+name}', options)
1606
+ command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
1607
+ command.response_class = Google::Apis::LoggingV2::LogBucket
1608
+ command.params['name'] = name unless name.nil?
1609
+ command.query['fields'] = fields unless fields.nil?
1610
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1611
+ execute_or_queue_command(command, &block)
1612
+ end
1613
+
1614
+ # Lists buckets (Beta).
1615
+ # @param [String] parent
1616
+ # Required. The parent resource whose buckets are to be listed: "projects/[
1617
+ # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
1618
+ # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
1619
+ # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" Note: The
1620
+ # locations portion of the resource must be specified, but supplying the
1621
+ # character - in place of LOCATION_ID will return all buckets.
1622
+ # @param [Fixnum] page_size
1623
+ # Optional. The maximum number of results to return from this request. Non-
1624
+ # positive values are ignored. The presence of nextPageToken in the response
1625
+ # indicates that more results might be available.
1626
+ # @param [String] page_token
1627
+ # Optional. If present, then retrieve the next batch of results from the
1628
+ # preceding call to this method. pageToken must be the value of nextPageToken
1629
+ # from the previous response. The values of other method parameters should be
1630
+ # identical to those in the previous call.
1631
+ # @param [String] fields
1632
+ # Selector specifying which fields to include in a partial response.
1633
+ # @param [String] quota_user
1634
+ # Available to use for quota purposes for server-side applications. Can be any
1635
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1636
+ # @param [Google::Apis::RequestOptions] options
1637
+ # Request-specific options
1638
+ #
1639
+ # @yield [result, err] Result & error if block supplied
1640
+ # @yieldparam result [Google::Apis::LoggingV2::ListBucketsResponse] parsed result object
1641
+ # @yieldparam err [StandardError] error object if request failed
1642
+ #
1643
+ # @return [Google::Apis::LoggingV2::ListBucketsResponse]
1644
+ #
1645
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1646
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1647
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1648
+ def list_folder_location_buckets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1649
+ command = make_simple_command(:get, 'v2/{+parent}/buckets', options)
1650
+ command.response_representation = Google::Apis::LoggingV2::ListBucketsResponse::Representation
1651
+ command.response_class = Google::Apis::LoggingV2::ListBucketsResponse
1652
+ command.params['parent'] = parent unless parent.nil?
1653
+ command.query['pageSize'] = page_size unless page_size.nil?
1654
+ command.query['pageToken'] = page_token unless page_token.nil?
1655
+ command.query['fields'] = fields unless fields.nil?
1656
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1657
+ execute_or_queue_command(command, &block)
1658
+ end
1659
+
1660
+ # Updates a bucket. This method replaces the following fields in the existing
1661
+ # bucket with values from the new bucket: retention_periodIf the retention
1662
+ # period is decreased and the bucket is locked, FAILED_PRECONDITION will be
1663
+ # returned.If the bucket has a LifecycleState of DELETE_REQUESTED,
1664
+ # FAILED_PRECONDITION will be returned.A buckets region may not be modified
1665
+ # after it is created. This method is in Beta.
1666
+ # @param [String] name
1667
+ # Required. The full resource name of the bucket to update. "projects/[
1668
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
1669
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
1670
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
1671
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
1672
+ # project-id/locations/my-location/buckets/my-bucket-id". Also requires
1673
+ # permission "resourcemanager.projects.updateLiens" to set the locked property
1336
1674
  # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
1337
1675
  # @param [String] update_mask
1338
1676
  # Required. Field mask that specifies the fields in bucket that need an update.
@@ -1370,19 +1708,246 @@ module Google
1370
1708
  execute_or_queue_command(command, &block)
1371
1709
  end
1372
1710
 
1711
+ # Undeletes a bucket. A bucket that has been deleted may be undeleted within the
1712
+ # grace period of 7 days.
1713
+ # @param [String] name
1714
+ # Required. The full resource name of the bucket to undelete. "projects/[
1715
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
1716
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
1717
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
1718
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
1719
+ # project-id/locations/my-location/buckets/my-bucket-id".
1720
+ # @param [Google::Apis::LoggingV2::UndeleteBucketRequest] undelete_bucket_request_object
1721
+ # @param [String] fields
1722
+ # Selector specifying which fields to include in a partial response.
1723
+ # @param [String] quota_user
1724
+ # Available to use for quota purposes for server-side applications. Can be any
1725
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1726
+ # @param [Google::Apis::RequestOptions] options
1727
+ # Request-specific options
1728
+ #
1729
+ # @yield [result, err] Result & error if block supplied
1730
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
1731
+ # @yieldparam err [StandardError] error object if request failed
1732
+ #
1733
+ # @return [Google::Apis::LoggingV2::Empty]
1734
+ #
1735
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1736
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1737
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1738
+ def undelete_folder_location_bucket(name, undelete_bucket_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1739
+ command = make_simple_command(:post, 'v2/{+name}:undelete', options)
1740
+ command.request_representation = Google::Apis::LoggingV2::UndeleteBucketRequest::Representation
1741
+ command.request_object = undelete_bucket_request_object
1742
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
1743
+ command.response_class = Google::Apis::LoggingV2::Empty
1744
+ command.params['name'] = name unless name.nil?
1745
+ command.query['fields'] = fields unless fields.nil?
1746
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1747
+ execute_or_queue_command(command, &block)
1748
+ end
1749
+
1750
+ # Creates a view over logs in a bucket. A bucket may contain a maximum of 50
1751
+ # views.
1752
+ # @param [String] parent
1753
+ # Required. The bucket in which to create the view "projects/[PROJECT_ID]/
1754
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-logging-
1755
+ # project/locations/my-location/buckets/my-bucket"
1756
+ # @param [Google::Apis::LoggingV2::LogView] log_view_object
1757
+ # @param [String] view_id
1758
+ # Required. The id to use for this view.
1759
+ # @param [String] fields
1760
+ # Selector specifying which fields to include in a partial response.
1761
+ # @param [String] quota_user
1762
+ # Available to use for quota purposes for server-side applications. Can be any
1763
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1764
+ # @param [Google::Apis::RequestOptions] options
1765
+ # Request-specific options
1766
+ #
1767
+ # @yield [result, err] Result & error if block supplied
1768
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
1769
+ # @yieldparam err [StandardError] error object if request failed
1770
+ #
1771
+ # @return [Google::Apis::LoggingV2::LogView]
1772
+ #
1773
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1774
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1775
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1776
+ def create_folder_location_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1777
+ command = make_simple_command(:post, 'v2/{+parent}/views', options)
1778
+ command.request_representation = Google::Apis::LoggingV2::LogView::Representation
1779
+ command.request_object = log_view_object
1780
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
1781
+ command.response_class = Google::Apis::LoggingV2::LogView
1782
+ command.params['parent'] = parent unless parent.nil?
1783
+ command.query['viewId'] = view_id unless view_id.nil?
1784
+ command.query['fields'] = fields unless fields.nil?
1785
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1786
+ execute_or_queue_command(command, &block)
1787
+ end
1788
+
1789
+ # Deletes a view from a bucket.
1790
+ # @param [String] name
1791
+ # Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
1792
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
1793
+ # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
1794
+ # view-id".
1795
+ # @param [String] fields
1796
+ # Selector specifying which fields to include in a partial response.
1797
+ # @param [String] quota_user
1798
+ # Available to use for quota purposes for server-side applications. Can be any
1799
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1800
+ # @param [Google::Apis::RequestOptions] options
1801
+ # Request-specific options
1802
+ #
1803
+ # @yield [result, err] Result & error if block supplied
1804
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
1805
+ # @yieldparam err [StandardError] error object if request failed
1806
+ #
1807
+ # @return [Google::Apis::LoggingV2::Empty]
1808
+ #
1809
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1810
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1811
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1812
+ def delete_folder_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
1813
+ command = make_simple_command(:delete, 'v2/{+name}', options)
1814
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
1815
+ command.response_class = Google::Apis::LoggingV2::Empty
1816
+ command.params['name'] = name unless name.nil?
1817
+ command.query['fields'] = fields unless fields.nil?
1818
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1819
+ execute_or_queue_command(command, &block)
1820
+ end
1821
+
1822
+ # Gets a view.
1823
+ # @param [String] name
1824
+ # Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[
1825
+ # LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "projects/my-
1826
+ # project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id".
1827
+ # @param [String] fields
1828
+ # Selector specifying which fields to include in a partial response.
1829
+ # @param [String] quota_user
1830
+ # Available to use for quota purposes for server-side applications. Can be any
1831
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1832
+ # @param [Google::Apis::RequestOptions] options
1833
+ # Request-specific options
1834
+ #
1835
+ # @yield [result, err] Result & error if block supplied
1836
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
1837
+ # @yieldparam err [StandardError] error object if request failed
1838
+ #
1839
+ # @return [Google::Apis::LoggingV2::LogView]
1840
+ #
1841
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1842
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1843
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1844
+ def get_folder_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
1845
+ command = make_simple_command(:get, 'v2/{+name}', options)
1846
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
1847
+ command.response_class = Google::Apis::LoggingV2::LogView
1848
+ command.params['name'] = name unless name.nil?
1849
+ command.query['fields'] = fields unless fields.nil?
1850
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1851
+ execute_or_queue_command(command, &block)
1852
+ end
1853
+
1854
+ # Lists views on a bucket..
1855
+ # @param [String] parent
1856
+ # Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/
1857
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1858
+ # @param [Fixnum] page_size
1859
+ # Optional. The maximum number of results to return from this request. Non-
1860
+ # positive values are ignored. The presence of nextPageToken in the response
1861
+ # indicates that more results might be available.
1862
+ # @param [String] page_token
1863
+ # Optional. If present, then retrieve the next batch of results from the
1864
+ # preceding call to this method. pageToken must be the value of nextPageToken
1865
+ # from the previous response. The values of other method parameters should be
1866
+ # identical to those in the previous call.
1867
+ # @param [String] fields
1868
+ # Selector specifying which fields to include in a partial response.
1869
+ # @param [String] quota_user
1870
+ # Available to use for quota purposes for server-side applications. Can be any
1871
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1872
+ # @param [Google::Apis::RequestOptions] options
1873
+ # Request-specific options
1874
+ #
1875
+ # @yield [result, err] Result & error if block supplied
1876
+ # @yieldparam result [Google::Apis::LoggingV2::ListViewsResponse] parsed result object
1877
+ # @yieldparam err [StandardError] error object if request failed
1878
+ #
1879
+ # @return [Google::Apis::LoggingV2::ListViewsResponse]
1880
+ #
1881
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1882
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1883
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1884
+ def list_folder_location_bucket_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1885
+ command = make_simple_command(:get, 'v2/{+parent}/views', options)
1886
+ command.response_representation = Google::Apis::LoggingV2::ListViewsResponse::Representation
1887
+ command.response_class = Google::Apis::LoggingV2::ListViewsResponse
1888
+ command.params['parent'] = parent unless parent.nil?
1889
+ command.query['pageSize'] = page_size unless page_size.nil?
1890
+ command.query['pageToken'] = page_token unless page_token.nil?
1891
+ command.query['fields'] = fields unless fields.nil?
1892
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1893
+ execute_or_queue_command(command, &block)
1894
+ end
1895
+
1896
+ # Updates a view. This method replaces the following fields in the existing view
1897
+ # with values from the new view: filter.
1898
+ # @param [String] name
1899
+ # Required. The full resource name of the view to update "projects/[PROJECT_ID]/
1900
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
1901
+ # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
1902
+ # view-id".
1903
+ # @param [Google::Apis::LoggingV2::LogView] log_view_object
1904
+ # @param [String] update_mask
1905
+ # Optional. Field mask that specifies the fields in view that need an update. A
1906
+ # field will be overwritten if, and only if, it is in the update mask. name and
1907
+ # output only fields cannot be updated.For a detailed FieldMask definition, see
1908
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
1909
+ # google.protobuf.FieldMaskExample: updateMask=filter.
1910
+ # @param [String] fields
1911
+ # Selector specifying which fields to include in a partial response.
1912
+ # @param [String] quota_user
1913
+ # Available to use for quota purposes for server-side applications. Can be any
1914
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1915
+ # @param [Google::Apis::RequestOptions] options
1916
+ # Request-specific options
1917
+ #
1918
+ # @yield [result, err] Result & error if block supplied
1919
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
1920
+ # @yieldparam err [StandardError] error object if request failed
1921
+ #
1922
+ # @return [Google::Apis::LoggingV2::LogView]
1923
+ #
1924
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1925
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1926
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1927
+ def patch_folder_location_bucket_view(name, log_view_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1928
+ command = make_simple_command(:patch, 'v2/{+name}', options)
1929
+ command.request_representation = Google::Apis::LoggingV2::LogView::Representation
1930
+ command.request_object = log_view_object
1931
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
1932
+ command.response_class = Google::Apis::LoggingV2::LogView
1933
+ command.params['name'] = name unless name.nil?
1934
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1935
+ command.query['fields'] = fields unless fields.nil?
1936
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1937
+ execute_or_queue_command(command, &block)
1938
+ end
1939
+
1373
1940
  # Deletes all the log entries in a log. The log reappears if it receives new
1374
1941
  # entries. Log entries written shortly before the delete operation might not be
1375
1942
  # deleted. Entries received after the delete operation with a timestamp before
1376
1943
  # the operation will be deleted.
1377
1944
  # @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.
1945
+ # Required. The resource name of the log to delete: "projects/[PROJECT_ID]/logs/[
1946
+ # LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[
1947
+ # BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID]
1948
+ # must be URL-encoded. For example, "projects/my-project-id/logs/syslog", "
1949
+ # organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
1950
+ # For more information about log names, see LogEntry.
1386
1951
  # @param [String] fields
1387
1952
  # Selector specifying which fields to include in a partial response.
1388
1953
  # @param [String] quota_user
@@ -1413,11 +1978,9 @@ module Google
1413
1978
  # Lists the logs in projects, organizations, folders, or billing accounts. Only
1414
1979
  # logs that have entries are listed.
1415
1980
  # @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]"
1981
+ # Required. The resource name that owns the logs: "projects/[PROJECT_ID]" "
1982
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
1983
+ # folders/[FOLDER_ID]"
1421
1984
  # @param [Fixnum] page_size
1422
1985
  # Optional. The maximum number of results to return from this request. Non-
1423
1986
  # positive values are ignored. The presence of nextPageToken in the response
@@ -1461,12 +2024,10 @@ module Google
1461
2024
  # writer_identity is not permitted to write to the destination. A sink can
1462
2025
  # export log entries only from the resource owning the sink.
1463
2026
  # @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".
2027
+ # Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "
2028
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
2029
+ # folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/
2030
+ # 123456789".
1470
2031
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
1471
2032
  # @param [Boolean] unique_writer_identity
1472
2033
  # Optional. Determines the kind of IAM identity returned as writer_identity in
@@ -1512,11 +2073,9 @@ module Google
1512
2073
  # account is also deleted.
1513
2074
  # @param [String] sink_name
1514
2075
  # 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]"
2076
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
2077
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
2078
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
1520
2079
  # Example: "projects/my-project-id/sinks/my-sink-id".
1521
2080
  # @param [String] fields
1522
2081
  # Selector specifying which fields to include in a partial response.
@@ -1547,11 +2106,9 @@ module Google
1547
2106
 
1548
2107
  # Gets a sink.
1549
2108
  # @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]"
2109
+ # Required. The resource name of the sink: "projects/[PROJECT_ID]/sinks/[SINK_ID]
2110
+ # " "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
2111
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
1555
2112
  # Example: "projects/my-project-id/sinks/my-sink-id".
1556
2113
  # @param [String] fields
1557
2114
  # Selector specifying which fields to include in a partial response.
@@ -1582,11 +2139,9 @@ module Google
1582
2139
 
1583
2140
  # Lists sinks.
1584
2141
  # @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]"
2142
+ # Required. The parent resource whose sinks are to be listed: "projects/[
2143
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
2144
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
1590
2145
  # @param [Fixnum] page_size
1591
2146
  # Optional. The maximum number of results to return from this request. Non-
1592
2147
  # positive values are ignored. The presence of nextPageToken in the response
@@ -1630,23 +2185,20 @@ module Google
1630
2185
  # also have a new writer_identity; see the unique_writer_identity field.
1631
2186
  # @param [String] sink_name
1632
2187
  # 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]"
2188
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
2189
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
2190
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
1638
2191
  # Example: "projects/my-project-id/sinks/my-sink-id".
1639
2192
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
1640
2193
  # @param [Boolean] unique_writer_identity
1641
2194
  # Optional. See sinks.create for a description of this field. When updating a
1642
2195
  # 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.
2196
+ # sink depends on both the old and new values of this field: If the old and new
2197
+ # values of this field are both false or both true, then there is no change to
2198
+ # the sink's writer_identity. If the old value is false and the new value is
2199
+ # true, then writer_identity is changed to a unique service account. It is an
2200
+ # error if the old value is true and the new value is set to false or defaulted
2201
+ # to false.
1650
2202
  # @param [String] update_mask
1651
2203
  # Optional. Field mask that specifies the fields in sink that need an update. A
1652
2204
  # sink field will be overwritten if, and only if, it is in the update mask. name
@@ -1692,23 +2244,20 @@ module Google
1692
2244
  # also have a new writer_identity; see the unique_writer_identity field.
1693
2245
  # @param [String] sink_name
1694
2246
  # 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]"
2247
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
2248
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
2249
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
1700
2250
  # Example: "projects/my-project-id/sinks/my-sink-id".
1701
2251
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
1702
2252
  # @param [Boolean] unique_writer_identity
1703
2253
  # Optional. See sinks.create for a description of this field. When updating a
1704
2254
  # 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.
2255
+ # sink depends on both the old and new values of this field: If the old and new
2256
+ # values of this field are both false or both true, then there is no change to
2257
+ # the sink's writer_identity. If the old value is false and the new value is
2258
+ # true, then writer_identity is changed to a unique service account. It is an
2259
+ # error if the old value is true and the new value is set to false or defaulted
2260
+ # to false.
1712
2261
  # @param [String] update_mask
1713
2262
  # Optional. Field mask that specifies the fields in sink that need an update. A
1714
2263
  # sink field will be overwritten if, and only if, it is in the update mask. name
@@ -1749,15 +2298,17 @@ module Google
1749
2298
  execute_or_queue_command(command, &block)
1750
2299
  end
1751
2300
 
1752
- # Gets a bucket (Beta).
1753
- # @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".
2301
+ # Creates a bucket that can be used to store log entries. Once a bucket has been
2302
+ # created, the region cannot be changed.
2303
+ # @param [String] parent
2304
+ # Required. The resource in which to create the bucket: "projects/[PROJECT_ID]/
2305
+ # locations/[LOCATION_ID]" Example: "projects/my-logging-project/locations/
2306
+ # global"
2307
+ # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
2308
+ # @param [String] bucket_id
2309
+ # Required. A client-assigned identifier such as "my-bucket". Identifiers are
2310
+ # limited to 100 characters and can include only letters, digits, underscores,
2311
+ # hyphens, and periods.
1761
2312
  # @param [String] fields
1762
2313
  # Selector specifying which fields to include in a partial response.
1763
2314
  # @param [String] quota_user
@@ -1775,34 +2326,29 @@ module Google
1775
2326
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1776
2327
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1777
2328
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1778
- def get_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
1779
- command = make_simple_command(:get, 'v2/{+name}', options)
2329
+ def create_location_bucket(parent, log_bucket_object = nil, bucket_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2330
+ command = make_simple_command(:post, 'v2/{+parent}/buckets', options)
2331
+ command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
2332
+ command.request_object = log_bucket_object
1780
2333
  command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
1781
2334
  command.response_class = Google::Apis::LoggingV2::LogBucket
1782
- command.params['name'] = name unless name.nil?
2335
+ command.params['parent'] = parent unless parent.nil?
2336
+ command.query['bucketId'] = bucket_id unless bucket_id.nil?
1783
2337
  command.query['fields'] = fields unless fields.nil?
1784
2338
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1785
2339
  execute_or_queue_command(command, &block)
1786
2340
  end
1787
2341
 
1788
- # Lists buckets (Beta).
1789
- # @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.
1797
- # @param [Fixnum] page_size
1798
- # Optional. The maximum number of results to return from this request. Non-
1799
- # positive values are ignored. The presence of nextPageToken in the response
1800
- # indicates that more results might be available.
1801
- # @param [String] page_token
1802
- # Optional. If present, then retrieve the next batch of results from the
1803
- # preceding call to this method. pageToken must be the value of nextPageToken
1804
- # from the previous response. The values of other method parameters should be
1805
- # identical to those in the previous call.
2342
+ # Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days,
2343
+ # the bucket will be purged and all logs in the bucket will be permanently
2344
+ # deleted.
2345
+ # @param [String] name
2346
+ # Required. The full resource name of the bucket to delete. "projects/[
2347
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
2348
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
2349
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
2350
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
2351
+ # project-id/locations/my-location/buckets/my-bucket-id".
1806
2352
  # @param [String] fields
1807
2353
  # Selector specifying which fields to include in a partial response.
1808
2354
  # @param [String] quota_user
@@ -1812,10 +2358,89 @@ module Google
1812
2358
  # Request-specific options
1813
2359
  #
1814
2360
  # @yield [result, err] Result & error if block supplied
1815
- # @yieldparam result [Google::Apis::LoggingV2::ListBucketsResponse] parsed result object
2361
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
1816
2362
  # @yieldparam err [StandardError] error object if request failed
1817
2363
  #
1818
- # @return [Google::Apis::LoggingV2::ListBucketsResponse]
2364
+ # @return [Google::Apis::LoggingV2::Empty]
2365
+ #
2366
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2367
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2368
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2369
+ def delete_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
2370
+ command = make_simple_command(:delete, 'v2/{+name}', options)
2371
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
2372
+ command.response_class = Google::Apis::LoggingV2::Empty
2373
+ command.params['name'] = name unless name.nil?
2374
+ command.query['fields'] = fields unless fields.nil?
2375
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2376
+ execute_or_queue_command(command, &block)
2377
+ end
2378
+
2379
+ # Gets a bucket (Beta).
2380
+ # @param [String] name
2381
+ # Required. The resource name of the bucket: "projects/[PROJECT_ID]/locations/[
2382
+ # LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[
2383
+ # LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/
2384
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[
2385
+ # LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-project-id/locations/
2386
+ # my-location/buckets/my-bucket-id".
2387
+ # @param [String] fields
2388
+ # Selector specifying which fields to include in a partial response.
2389
+ # @param [String] quota_user
2390
+ # Available to use for quota purposes for server-side applications. Can be any
2391
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2392
+ # @param [Google::Apis::RequestOptions] options
2393
+ # Request-specific options
2394
+ #
2395
+ # @yield [result, err] Result & error if block supplied
2396
+ # @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
2397
+ # @yieldparam err [StandardError] error object if request failed
2398
+ #
2399
+ # @return [Google::Apis::LoggingV2::LogBucket]
2400
+ #
2401
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2402
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2403
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2404
+ def get_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
2405
+ command = make_simple_command(:get, 'v2/{+name}', options)
2406
+ command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
2407
+ command.response_class = Google::Apis::LoggingV2::LogBucket
2408
+ command.params['name'] = name unless name.nil?
2409
+ command.query['fields'] = fields unless fields.nil?
2410
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2411
+ execute_or_queue_command(command, &block)
2412
+ end
2413
+
2414
+ # Lists buckets (Beta).
2415
+ # @param [String] parent
2416
+ # Required. The parent resource whose buckets are to be listed: "projects/[
2417
+ # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
2418
+ # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
2419
+ # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" Note: The
2420
+ # locations portion of the resource must be specified, but supplying the
2421
+ # character - in place of LOCATION_ID will return all buckets.
2422
+ # @param [Fixnum] page_size
2423
+ # Optional. The maximum number of results to return from this request. Non-
2424
+ # positive values are ignored. The presence of nextPageToken in the response
2425
+ # indicates that more results might be available.
2426
+ # @param [String] page_token
2427
+ # Optional. If present, then retrieve the next batch of results from the
2428
+ # preceding call to this method. pageToken must be the value of nextPageToken
2429
+ # from the previous response. The values of other method parameters should be
2430
+ # identical to those in the previous call.
2431
+ # @param [String] fields
2432
+ # Selector specifying which fields to include in a partial response.
2433
+ # @param [String] quota_user
2434
+ # Available to use for quota purposes for server-side applications. Can be any
2435
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2436
+ # @param [Google::Apis::RequestOptions] options
2437
+ # Request-specific options
2438
+ #
2439
+ # @yield [result, err] Result & error if block supplied
2440
+ # @yieldparam result [Google::Apis::LoggingV2::ListBucketsResponse] parsed result object
2441
+ # @yieldparam err [StandardError] error object if request failed
2442
+ #
2443
+ # @return [Google::Apis::LoggingV2::ListBucketsResponse]
1819
2444
  #
1820
2445
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1821
2446
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
@@ -1839,15 +2464,13 @@ module Google
1839
2464
  # FAILED_PRECONDITION will be returned.A buckets region may not be modified
1840
2465
  # after it is created. This method is in Beta.
1841
2466
  # @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
2467
+ # Required. The full resource name of the bucket to update. "projects/[
2468
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
2469
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
2470
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
2471
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
2472
+ # project-id/locations/my-location/buckets/my-bucket-id". Also requires
2473
+ # permission "resourcemanager.projects.updateLiens" to set the locked property
1851
2474
  # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
1852
2475
  # @param [String] update_mask
1853
2476
  # Required. Field mask that specifies the fields in bucket that need an update.
@@ -1885,19 +2508,246 @@ module Google
1885
2508
  execute_or_queue_command(command, &block)
1886
2509
  end
1887
2510
 
2511
+ # Undeletes a bucket. A bucket that has been deleted may be undeleted within the
2512
+ # grace period of 7 days.
2513
+ # @param [String] name
2514
+ # Required. The full resource name of the bucket to undelete. "projects/[
2515
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
2516
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
2517
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
2518
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
2519
+ # project-id/locations/my-location/buckets/my-bucket-id".
2520
+ # @param [Google::Apis::LoggingV2::UndeleteBucketRequest] undelete_bucket_request_object
2521
+ # @param [String] fields
2522
+ # Selector specifying which fields to include in a partial response.
2523
+ # @param [String] quota_user
2524
+ # Available to use for quota purposes for server-side applications. Can be any
2525
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2526
+ # @param [Google::Apis::RequestOptions] options
2527
+ # Request-specific options
2528
+ #
2529
+ # @yield [result, err] Result & error if block supplied
2530
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
2531
+ # @yieldparam err [StandardError] error object if request failed
2532
+ #
2533
+ # @return [Google::Apis::LoggingV2::Empty]
2534
+ #
2535
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2536
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2537
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2538
+ def undelete_location_bucket(name, undelete_bucket_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2539
+ command = make_simple_command(:post, 'v2/{+name}:undelete', options)
2540
+ command.request_representation = Google::Apis::LoggingV2::UndeleteBucketRequest::Representation
2541
+ command.request_object = undelete_bucket_request_object
2542
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
2543
+ command.response_class = Google::Apis::LoggingV2::Empty
2544
+ command.params['name'] = name unless name.nil?
2545
+ command.query['fields'] = fields unless fields.nil?
2546
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2547
+ execute_or_queue_command(command, &block)
2548
+ end
2549
+
2550
+ # Creates a view over logs in a bucket. A bucket may contain a maximum of 50
2551
+ # views.
2552
+ # @param [String] parent
2553
+ # Required. The bucket in which to create the view "projects/[PROJECT_ID]/
2554
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-logging-
2555
+ # project/locations/my-location/buckets/my-bucket"
2556
+ # @param [Google::Apis::LoggingV2::LogView] log_view_object
2557
+ # @param [String] view_id
2558
+ # Required. The id to use for this view.
2559
+ # @param [String] fields
2560
+ # Selector specifying which fields to include in a partial response.
2561
+ # @param [String] quota_user
2562
+ # Available to use for quota purposes for server-side applications. Can be any
2563
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2564
+ # @param [Google::Apis::RequestOptions] options
2565
+ # Request-specific options
2566
+ #
2567
+ # @yield [result, err] Result & error if block supplied
2568
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
2569
+ # @yieldparam err [StandardError] error object if request failed
2570
+ #
2571
+ # @return [Google::Apis::LoggingV2::LogView]
2572
+ #
2573
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2574
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2575
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2576
+ def create_location_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2577
+ command = make_simple_command(:post, 'v2/{+parent}/views', options)
2578
+ command.request_representation = Google::Apis::LoggingV2::LogView::Representation
2579
+ command.request_object = log_view_object
2580
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
2581
+ command.response_class = Google::Apis::LoggingV2::LogView
2582
+ command.params['parent'] = parent unless parent.nil?
2583
+ command.query['viewId'] = view_id unless view_id.nil?
2584
+ command.query['fields'] = fields unless fields.nil?
2585
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2586
+ execute_or_queue_command(command, &block)
2587
+ end
2588
+
2589
+ # Deletes a view from a bucket.
2590
+ # @param [String] name
2591
+ # Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
2592
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
2593
+ # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
2594
+ # view-id".
2595
+ # @param [String] fields
2596
+ # Selector specifying which fields to include in a partial response.
2597
+ # @param [String] quota_user
2598
+ # Available to use for quota purposes for server-side applications. Can be any
2599
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2600
+ # @param [Google::Apis::RequestOptions] options
2601
+ # Request-specific options
2602
+ #
2603
+ # @yield [result, err] Result & error if block supplied
2604
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
2605
+ # @yieldparam err [StandardError] error object if request failed
2606
+ #
2607
+ # @return [Google::Apis::LoggingV2::Empty]
2608
+ #
2609
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2610
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2611
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2612
+ def delete_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
2613
+ command = make_simple_command(:delete, 'v2/{+name}', options)
2614
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
2615
+ command.response_class = Google::Apis::LoggingV2::Empty
2616
+ command.params['name'] = name unless name.nil?
2617
+ command.query['fields'] = fields unless fields.nil?
2618
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2619
+ execute_or_queue_command(command, &block)
2620
+ end
2621
+
2622
+ # Gets a view.
2623
+ # @param [String] name
2624
+ # Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[
2625
+ # LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "projects/my-
2626
+ # project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id".
2627
+ # @param [String] fields
2628
+ # Selector specifying which fields to include in a partial response.
2629
+ # @param [String] quota_user
2630
+ # Available to use for quota purposes for server-side applications. Can be any
2631
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2632
+ # @param [Google::Apis::RequestOptions] options
2633
+ # Request-specific options
2634
+ #
2635
+ # @yield [result, err] Result & error if block supplied
2636
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
2637
+ # @yieldparam err [StandardError] error object if request failed
2638
+ #
2639
+ # @return [Google::Apis::LoggingV2::LogView]
2640
+ #
2641
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2642
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2643
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2644
+ def get_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
2645
+ command = make_simple_command(:get, 'v2/{+name}', options)
2646
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
2647
+ command.response_class = Google::Apis::LoggingV2::LogView
2648
+ command.params['name'] = name unless name.nil?
2649
+ command.query['fields'] = fields unless fields.nil?
2650
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2651
+ execute_or_queue_command(command, &block)
2652
+ end
2653
+
2654
+ # Lists views on a bucket..
2655
+ # @param [String] parent
2656
+ # Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/
2657
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
2658
+ # @param [Fixnum] page_size
2659
+ # Optional. The maximum number of results to return from this request. Non-
2660
+ # positive values are ignored. The presence of nextPageToken in the response
2661
+ # indicates that more results might be available.
2662
+ # @param [String] page_token
2663
+ # Optional. If present, then retrieve the next batch of results from the
2664
+ # preceding call to this method. pageToken must be the value of nextPageToken
2665
+ # from the previous response. The values of other method parameters should be
2666
+ # identical to those in the previous call.
2667
+ # @param [String] fields
2668
+ # Selector specifying which fields to include in a partial response.
2669
+ # @param [String] quota_user
2670
+ # Available to use for quota purposes for server-side applications. Can be any
2671
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2672
+ # @param [Google::Apis::RequestOptions] options
2673
+ # Request-specific options
2674
+ #
2675
+ # @yield [result, err] Result & error if block supplied
2676
+ # @yieldparam result [Google::Apis::LoggingV2::ListViewsResponse] parsed result object
2677
+ # @yieldparam err [StandardError] error object if request failed
2678
+ #
2679
+ # @return [Google::Apis::LoggingV2::ListViewsResponse]
2680
+ #
2681
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2682
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2683
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2684
+ def list_location_bucket_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2685
+ command = make_simple_command(:get, 'v2/{+parent}/views', options)
2686
+ command.response_representation = Google::Apis::LoggingV2::ListViewsResponse::Representation
2687
+ command.response_class = Google::Apis::LoggingV2::ListViewsResponse
2688
+ command.params['parent'] = parent unless parent.nil?
2689
+ command.query['pageSize'] = page_size unless page_size.nil?
2690
+ command.query['pageToken'] = page_token unless page_token.nil?
2691
+ command.query['fields'] = fields unless fields.nil?
2692
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2693
+ execute_or_queue_command(command, &block)
2694
+ end
2695
+
2696
+ # Updates a view. This method replaces the following fields in the existing view
2697
+ # with values from the new view: filter.
2698
+ # @param [String] name
2699
+ # Required. The full resource name of the view to update "projects/[PROJECT_ID]/
2700
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
2701
+ # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
2702
+ # view-id".
2703
+ # @param [Google::Apis::LoggingV2::LogView] log_view_object
2704
+ # @param [String] update_mask
2705
+ # Optional. Field mask that specifies the fields in view that need an update. A
2706
+ # field will be overwritten if, and only if, it is in the update mask. name and
2707
+ # output only fields cannot be updated.For a detailed FieldMask definition, see
2708
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
2709
+ # google.protobuf.FieldMaskExample: updateMask=filter.
2710
+ # @param [String] fields
2711
+ # Selector specifying which fields to include in a partial response.
2712
+ # @param [String] quota_user
2713
+ # Available to use for quota purposes for server-side applications. Can be any
2714
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2715
+ # @param [Google::Apis::RequestOptions] options
2716
+ # Request-specific options
2717
+ #
2718
+ # @yield [result, err] Result & error if block supplied
2719
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
2720
+ # @yieldparam err [StandardError] error object if request failed
2721
+ #
2722
+ # @return [Google::Apis::LoggingV2::LogView]
2723
+ #
2724
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2725
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2726
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2727
+ def patch_location_bucket_view(name, log_view_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2728
+ command = make_simple_command(:patch, 'v2/{+name}', options)
2729
+ command.request_representation = Google::Apis::LoggingV2::LogView::Representation
2730
+ command.request_object = log_view_object
2731
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
2732
+ command.response_class = Google::Apis::LoggingV2::LogView
2733
+ command.params['name'] = name unless name.nil?
2734
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2735
+ command.query['fields'] = fields unless fields.nil?
2736
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2737
+ execute_or_queue_command(command, &block)
2738
+ end
2739
+
1888
2740
  # Deletes all the log entries in a log. The log reappears if it receives new
1889
2741
  # entries. Log entries written shortly before the delete operation might not be
1890
2742
  # deleted. Entries received after the delete operation with a timestamp before
1891
2743
  # the operation will be deleted.
1892
2744
  # @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.
2745
+ # Required. The resource name of the log to delete: "projects/[PROJECT_ID]/logs/[
2746
+ # LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[
2747
+ # BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID]
2748
+ # must be URL-encoded. For example, "projects/my-project-id/logs/syslog", "
2749
+ # organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
2750
+ # For more information about log names, see LogEntry.
1901
2751
  # @param [String] fields
1902
2752
  # Selector specifying which fields to include in a partial response.
1903
2753
  # @param [String] quota_user
@@ -1928,11 +2778,9 @@ module Google
1928
2778
  # Lists the logs in projects, organizations, folders, or billing accounts. Only
1929
2779
  # logs that have entries are listed.
1930
2780
  # @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]"
2781
+ # Required. The resource name that owns the logs: "projects/[PROJECT_ID]" "
2782
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
2783
+ # folders/[FOLDER_ID]"
1936
2784
  # @param [Fixnum] page_size
1937
2785
  # Optional. The maximum number of results to return from this request. Non-
1938
2786
  # positive values are ignored. The presence of nextPageToken in the response
@@ -2015,14 +2863,12 @@ module Google
2015
2863
  # Enabling CMEK for Logs Router (https://cloud.google.com/logging/docs/routing/
2016
2864
  # managed-encryption) for more information.
2017
2865
  # @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.
2866
+ # Required. The resource for which to retrieve CMEK settings. "projects/[
2867
+ # PROJECT_ID]/cmekSettings" "organizations/[ORGANIZATION_ID]/cmekSettings" "
2868
+ # billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings" "folders/[FOLDER_ID]/
2869
+ # cmekSettings" Example: "organizations/12345/cmekSettings".Note: CMEK for the
2870
+ # Logs Router can currently only be configured for GCP organizations. Once
2871
+ # configured, it applies to all projects and folders in the GCP organization.
2026
2872
  # @param [String] fields
2027
2873
  # Selector specifying which fields to include in a partial response.
2028
2874
  # @param [String] quota_user
@@ -2059,14 +2905,12 @@ module Google
2059
2905
  # is disabled.See Enabling CMEK for Logs Router (https://cloud.google.com/
2060
2906
  # logging/docs/routing/managed-encryption) for more information.
2061
2907
  # @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.
2908
+ # Required. The resource name for the CMEK settings to update. "projects/[
2909
+ # PROJECT_ID]/cmekSettings" "organizations/[ORGANIZATION_ID]/cmekSettings" "
2910
+ # billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings" "folders/[FOLDER_ID]/
2911
+ # cmekSettings" Example: "organizations/12345/cmekSettings".Note: CMEK for the
2912
+ # Logs Router can currently only be configured for GCP organizations. Once
2913
+ # configured, it applies to all projects and folders in the GCP organization.
2070
2914
  # @param [Google::Apis::LoggingV2::CmekSettings] cmek_settings_object
2071
2915
  # @param [String] update_mask
2072
2916
  # Optional. Field mask identifying which fields from cmek_settings should be
@@ -2107,12 +2951,10 @@ module Google
2107
2951
  # belonging to that resource can be excluded. You can have up to 10 exclusions
2108
2952
  # in a resource.
2109
2953
  # @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".
2954
+ # Required. The parent resource in which to create the exclusion: "projects/[
2955
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
2956
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-
2957
+ # project", "organizations/123456789".
2116
2958
  # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
2117
2959
  # @param [String] fields
2118
2960
  # Selector specifying which fields to include in a partial response.
@@ -2145,12 +2987,11 @@ module Google
2145
2987
 
2146
2988
  # Deletes an exclusion.
2147
2989
  # @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".
2990
+ # Required. The resource name of an existing exclusion to delete: "projects/[
2991
+ # PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/
2992
+ # exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[
2993
+ # EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "
2994
+ # projects/my-project-id/exclusions/my-exclusion-id".
2154
2995
  # @param [String] fields
2155
2996
  # Selector specifying which fields to include in a partial response.
2156
2997
  # @param [String] quota_user
@@ -2180,12 +3021,11 @@ module Google
2180
3021
 
2181
3022
  # Gets the description of an exclusion.
2182
3023
  # @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".
3024
+ # Required. The resource name of an existing exclusion: "projects/[PROJECT_ID]/
3025
+ # exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
3026
+ # EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
3027
+ # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-
3028
+ # id/exclusions/my-exclusion-id".
2189
3029
  # @param [String] fields
2190
3030
  # Selector specifying which fields to include in a partial response.
2191
3031
  # @param [String] quota_user
@@ -2215,11 +3055,9 @@ module Google
2215
3055
 
2216
3056
  # Lists all the exclusions in a parent resource.
2217
3057
  # @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]"
3058
+ # Required. The parent resource whose exclusions are to be listed. "projects/[
3059
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
3060
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
2223
3061
  # @param [Fixnum] page_size
2224
3062
  # Optional. The maximum number of results to return from this request. Non-
2225
3063
  # positive values are ignored. The presence of nextPageToken in the response
@@ -2260,12 +3098,11 @@ module Google
2260
3098
 
2261
3099
  # Changes one or more properties of an existing exclusion.
2262
3100
  # @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".
3101
+ # Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/
3102
+ # exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
3103
+ # EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
3104
+ # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-
3105
+ # id/exclusions/my-exclusion-id".
2269
3106
  # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
2270
3107
  # @param [String] update_mask
2271
3108
  # Required. A non-empty list of fields to change in the existing exclusion. New
@@ -2286,33 +3123,350 @@ module Google
2286
3123
  # @yieldparam result [Google::Apis::LoggingV2::LogExclusion] parsed result object
2287
3124
  # @yieldparam err [StandardError] error object if request failed
2288
3125
  #
2289
- # @return [Google::Apis::LoggingV2::LogExclusion]
3126
+ # @return [Google::Apis::LoggingV2::LogExclusion]
3127
+ #
3128
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3129
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3130
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3131
+ def patch_organization_exclusion(name, log_exclusion_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3132
+ command = make_simple_command(:patch, 'v2/{+name}', options)
3133
+ command.request_representation = Google::Apis::LoggingV2::LogExclusion::Representation
3134
+ command.request_object = log_exclusion_object
3135
+ command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation
3136
+ command.response_class = Google::Apis::LoggingV2::LogExclusion
3137
+ command.params['name'] = name unless name.nil?
3138
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3139
+ command.query['fields'] = fields unless fields.nil?
3140
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3141
+ execute_or_queue_command(command, &block)
3142
+ end
3143
+
3144
+ # Creates a bucket that can be used to store log entries. Once a bucket has been
3145
+ # created, the region cannot be changed.
3146
+ # @param [String] parent
3147
+ # Required. The resource in which to create the bucket: "projects/[PROJECT_ID]/
3148
+ # locations/[LOCATION_ID]" Example: "projects/my-logging-project/locations/
3149
+ # global"
3150
+ # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
3151
+ # @param [String] bucket_id
3152
+ # Required. A client-assigned identifier such as "my-bucket". Identifiers are
3153
+ # limited to 100 characters and can include only letters, digits, underscores,
3154
+ # hyphens, and periods.
3155
+ # @param [String] fields
3156
+ # Selector specifying which fields to include in a partial response.
3157
+ # @param [String] quota_user
3158
+ # Available to use for quota purposes for server-side applications. Can be any
3159
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3160
+ # @param [Google::Apis::RequestOptions] options
3161
+ # Request-specific options
3162
+ #
3163
+ # @yield [result, err] Result & error if block supplied
3164
+ # @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
3165
+ # @yieldparam err [StandardError] error object if request failed
3166
+ #
3167
+ # @return [Google::Apis::LoggingV2::LogBucket]
3168
+ #
3169
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3170
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3171
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3172
+ def create_organization_location_bucket(parent, log_bucket_object = nil, bucket_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3173
+ command = make_simple_command(:post, 'v2/{+parent}/buckets', options)
3174
+ command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
3175
+ command.request_object = log_bucket_object
3176
+ command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
3177
+ command.response_class = Google::Apis::LoggingV2::LogBucket
3178
+ command.params['parent'] = parent unless parent.nil?
3179
+ command.query['bucketId'] = bucket_id unless bucket_id.nil?
3180
+ command.query['fields'] = fields unless fields.nil?
3181
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3182
+ execute_or_queue_command(command, &block)
3183
+ end
3184
+
3185
+ # Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days,
3186
+ # the bucket will be purged and all logs in the bucket will be permanently
3187
+ # deleted.
3188
+ # @param [String] name
3189
+ # Required. The full resource name of the bucket to delete. "projects/[
3190
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
3191
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
3192
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
3193
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
3194
+ # project-id/locations/my-location/buckets/my-bucket-id".
3195
+ # @param [String] fields
3196
+ # Selector specifying which fields to include in a partial response.
3197
+ # @param [String] quota_user
3198
+ # Available to use for quota purposes for server-side applications. Can be any
3199
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3200
+ # @param [Google::Apis::RequestOptions] options
3201
+ # Request-specific options
3202
+ #
3203
+ # @yield [result, err] Result & error if block supplied
3204
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
3205
+ # @yieldparam err [StandardError] error object if request failed
3206
+ #
3207
+ # @return [Google::Apis::LoggingV2::Empty]
3208
+ #
3209
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3210
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3211
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3212
+ def delete_organization_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
3213
+ command = make_simple_command(:delete, 'v2/{+name}', options)
3214
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
3215
+ command.response_class = Google::Apis::LoggingV2::Empty
3216
+ command.params['name'] = name unless name.nil?
3217
+ command.query['fields'] = fields unless fields.nil?
3218
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3219
+ execute_or_queue_command(command, &block)
3220
+ end
3221
+
3222
+ # Gets a bucket (Beta).
3223
+ # @param [String] name
3224
+ # Required. The resource name of the bucket: "projects/[PROJECT_ID]/locations/[
3225
+ # LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[
3226
+ # LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/
3227
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[
3228
+ # LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-project-id/locations/
3229
+ # my-location/buckets/my-bucket-id".
3230
+ # @param [String] fields
3231
+ # Selector specifying which fields to include in a partial response.
3232
+ # @param [String] quota_user
3233
+ # Available to use for quota purposes for server-side applications. Can be any
3234
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3235
+ # @param [Google::Apis::RequestOptions] options
3236
+ # Request-specific options
3237
+ #
3238
+ # @yield [result, err] Result & error if block supplied
3239
+ # @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
3240
+ # @yieldparam err [StandardError] error object if request failed
3241
+ #
3242
+ # @return [Google::Apis::LoggingV2::LogBucket]
3243
+ #
3244
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3245
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3246
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3247
+ def get_organization_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
3248
+ command = make_simple_command(:get, 'v2/{+name}', options)
3249
+ command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
3250
+ command.response_class = Google::Apis::LoggingV2::LogBucket
3251
+ command.params['name'] = name unless name.nil?
3252
+ command.query['fields'] = fields unless fields.nil?
3253
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3254
+ execute_or_queue_command(command, &block)
3255
+ end
3256
+
3257
+ # Lists buckets (Beta).
3258
+ # @param [String] parent
3259
+ # Required. The parent resource whose buckets are to be listed: "projects/[
3260
+ # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
3261
+ # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
3262
+ # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" Note: The
3263
+ # locations portion of the resource must be specified, but supplying the
3264
+ # character - in place of LOCATION_ID will return all buckets.
3265
+ # @param [Fixnum] page_size
3266
+ # Optional. The maximum number of results to return from this request. Non-
3267
+ # positive values are ignored. The presence of nextPageToken in the response
3268
+ # indicates that more results might be available.
3269
+ # @param [String] page_token
3270
+ # Optional. If present, then retrieve the next batch of results from the
3271
+ # preceding call to this method. pageToken must be the value of nextPageToken
3272
+ # from the previous response. The values of other method parameters should be
3273
+ # identical to those in the previous call.
3274
+ # @param [String] fields
3275
+ # Selector specifying which fields to include in a partial response.
3276
+ # @param [String] quota_user
3277
+ # Available to use for quota purposes for server-side applications. Can be any
3278
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3279
+ # @param [Google::Apis::RequestOptions] options
3280
+ # Request-specific options
3281
+ #
3282
+ # @yield [result, err] Result & error if block supplied
3283
+ # @yieldparam result [Google::Apis::LoggingV2::ListBucketsResponse] parsed result object
3284
+ # @yieldparam err [StandardError] error object if request failed
3285
+ #
3286
+ # @return [Google::Apis::LoggingV2::ListBucketsResponse]
3287
+ #
3288
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3289
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3290
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3291
+ def list_organization_location_buckets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3292
+ command = make_simple_command(:get, 'v2/{+parent}/buckets', options)
3293
+ command.response_representation = Google::Apis::LoggingV2::ListBucketsResponse::Representation
3294
+ command.response_class = Google::Apis::LoggingV2::ListBucketsResponse
3295
+ command.params['parent'] = parent unless parent.nil?
3296
+ command.query['pageSize'] = page_size unless page_size.nil?
3297
+ command.query['pageToken'] = page_token unless page_token.nil?
3298
+ command.query['fields'] = fields unless fields.nil?
3299
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3300
+ execute_or_queue_command(command, &block)
3301
+ end
3302
+
3303
+ # Updates a bucket. This method replaces the following fields in the existing
3304
+ # bucket with values from the new bucket: retention_periodIf the retention
3305
+ # period is decreased and the bucket is locked, FAILED_PRECONDITION will be
3306
+ # returned.If the bucket has a LifecycleState of DELETE_REQUESTED,
3307
+ # FAILED_PRECONDITION will be returned.A buckets region may not be modified
3308
+ # after it is created. This method is in Beta.
3309
+ # @param [String] name
3310
+ # Required. The full resource name of the bucket to update. "projects/[
3311
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
3312
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
3313
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
3314
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
3315
+ # project-id/locations/my-location/buckets/my-bucket-id". Also requires
3316
+ # permission "resourcemanager.projects.updateLiens" to set the locked property
3317
+ # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
3318
+ # @param [String] update_mask
3319
+ # Required. Field mask that specifies the fields in bucket that need an update.
3320
+ # A bucket field will be overwritten if, and only if, it is in the update mask.
3321
+ # name and output only fields cannot be updated.For a detailed FieldMask
3322
+ # definition, see https://developers.google.com/protocol-buffers/docs/reference/
3323
+ # google.protobuf#google.protobuf.FieldMaskExample: updateMask=retention_days.
3324
+ # @param [String] fields
3325
+ # Selector specifying which fields to include in a partial response.
3326
+ # @param [String] quota_user
3327
+ # Available to use for quota purposes for server-side applications. Can be any
3328
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3329
+ # @param [Google::Apis::RequestOptions] options
3330
+ # Request-specific options
3331
+ #
3332
+ # @yield [result, err] Result & error if block supplied
3333
+ # @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
3334
+ # @yieldparam err [StandardError] error object if request failed
3335
+ #
3336
+ # @return [Google::Apis::LoggingV2::LogBucket]
3337
+ #
3338
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3339
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3340
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3341
+ def patch_organization_location_bucket(name, log_bucket_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3342
+ command = make_simple_command(:patch, 'v2/{+name}', options)
3343
+ command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
3344
+ command.request_object = log_bucket_object
3345
+ command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
3346
+ command.response_class = Google::Apis::LoggingV2::LogBucket
3347
+ command.params['name'] = name unless name.nil?
3348
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3349
+ command.query['fields'] = fields unless fields.nil?
3350
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3351
+ execute_or_queue_command(command, &block)
3352
+ end
3353
+
3354
+ # Undeletes a bucket. A bucket that has been deleted may be undeleted within the
3355
+ # grace period of 7 days.
3356
+ # @param [String] name
3357
+ # Required. The full resource name of the bucket to undelete. "projects/[
3358
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
3359
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
3360
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
3361
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
3362
+ # project-id/locations/my-location/buckets/my-bucket-id".
3363
+ # @param [Google::Apis::LoggingV2::UndeleteBucketRequest] undelete_bucket_request_object
3364
+ # @param [String] fields
3365
+ # Selector specifying which fields to include in a partial response.
3366
+ # @param [String] quota_user
3367
+ # Available to use for quota purposes for server-side applications. Can be any
3368
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3369
+ # @param [Google::Apis::RequestOptions] options
3370
+ # Request-specific options
3371
+ #
3372
+ # @yield [result, err] Result & error if block supplied
3373
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
3374
+ # @yieldparam err [StandardError] error object if request failed
3375
+ #
3376
+ # @return [Google::Apis::LoggingV2::Empty]
3377
+ #
3378
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3379
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3380
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3381
+ def undelete_organization_location_bucket(name, undelete_bucket_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3382
+ command = make_simple_command(:post, 'v2/{+name}:undelete', options)
3383
+ command.request_representation = Google::Apis::LoggingV2::UndeleteBucketRequest::Representation
3384
+ command.request_object = undelete_bucket_request_object
3385
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
3386
+ command.response_class = Google::Apis::LoggingV2::Empty
3387
+ command.params['name'] = name unless name.nil?
3388
+ command.query['fields'] = fields unless fields.nil?
3389
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3390
+ execute_or_queue_command(command, &block)
3391
+ end
3392
+
3393
+ # Creates a view over logs in a bucket. A bucket may contain a maximum of 50
3394
+ # views.
3395
+ # @param [String] parent
3396
+ # Required. The bucket in which to create the view "projects/[PROJECT_ID]/
3397
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-logging-
3398
+ # project/locations/my-location/buckets/my-bucket"
3399
+ # @param [Google::Apis::LoggingV2::LogView] log_view_object
3400
+ # @param [String] view_id
3401
+ # Required. The id to use for this view.
3402
+ # @param [String] fields
3403
+ # Selector specifying which fields to include in a partial response.
3404
+ # @param [String] quota_user
3405
+ # Available to use for quota purposes for server-side applications. Can be any
3406
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3407
+ # @param [Google::Apis::RequestOptions] options
3408
+ # Request-specific options
3409
+ #
3410
+ # @yield [result, err] Result & error if block supplied
3411
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
3412
+ # @yieldparam err [StandardError] error object if request failed
3413
+ #
3414
+ # @return [Google::Apis::LoggingV2::LogView]
3415
+ #
3416
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3417
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3418
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3419
+ def create_organization_location_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3420
+ command = make_simple_command(:post, 'v2/{+parent}/views', options)
3421
+ command.request_representation = Google::Apis::LoggingV2::LogView::Representation
3422
+ command.request_object = log_view_object
3423
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
3424
+ command.response_class = Google::Apis::LoggingV2::LogView
3425
+ command.params['parent'] = parent unless parent.nil?
3426
+ command.query['viewId'] = view_id unless view_id.nil?
3427
+ command.query['fields'] = fields unless fields.nil?
3428
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3429
+ execute_or_queue_command(command, &block)
3430
+ end
3431
+
3432
+ # Deletes a view from a bucket.
3433
+ # @param [String] name
3434
+ # Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
3435
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
3436
+ # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
3437
+ # view-id".
3438
+ # @param [String] fields
3439
+ # Selector specifying which fields to include in a partial response.
3440
+ # @param [String] quota_user
3441
+ # Available to use for quota purposes for server-side applications. Can be any
3442
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3443
+ # @param [Google::Apis::RequestOptions] options
3444
+ # Request-specific options
3445
+ #
3446
+ # @yield [result, err] Result & error if block supplied
3447
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
3448
+ # @yieldparam err [StandardError] error object if request failed
3449
+ #
3450
+ # @return [Google::Apis::LoggingV2::Empty]
2290
3451
  #
2291
3452
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2292
3453
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2293
3454
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2294
- def patch_organization_exclusion(name, log_exclusion_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2295
- command = make_simple_command(:patch, 'v2/{+name}', options)
2296
- command.request_representation = Google::Apis::LoggingV2::LogExclusion::Representation
2297
- command.request_object = log_exclusion_object
2298
- command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation
2299
- command.response_class = Google::Apis::LoggingV2::LogExclusion
3455
+ def delete_organization_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
3456
+ command = make_simple_command(:delete, 'v2/{+name}', options)
3457
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
3458
+ command.response_class = Google::Apis::LoggingV2::Empty
2300
3459
  command.params['name'] = name unless name.nil?
2301
- command.query['updateMask'] = update_mask unless update_mask.nil?
2302
3460
  command.query['fields'] = fields unless fields.nil?
2303
3461
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2304
3462
  execute_or_queue_command(command, &block)
2305
3463
  end
2306
3464
 
2307
- # Gets a bucket (Beta).
3465
+ # Gets a view.
2308
3466
  # @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".
3467
+ # Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[
3468
+ # LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "projects/my-
3469
+ # project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id".
2316
3470
  # @param [String] fields
2317
3471
  # Selector specifying which fields to include in a partial response.
2318
3472
  # @param [String] quota_user
@@ -2322,33 +3476,28 @@ module Google
2322
3476
  # Request-specific options
2323
3477
  #
2324
3478
  # @yield [result, err] Result & error if block supplied
2325
- # @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
3479
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
2326
3480
  # @yieldparam err [StandardError] error object if request failed
2327
3481
  #
2328
- # @return [Google::Apis::LoggingV2::LogBucket]
3482
+ # @return [Google::Apis::LoggingV2::LogView]
2329
3483
  #
2330
3484
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2331
3485
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2332
3486
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2333
- def get_organization_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
3487
+ def get_organization_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
2334
3488
  command = make_simple_command(:get, 'v2/{+name}', options)
2335
- command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
2336
- command.response_class = Google::Apis::LoggingV2::LogBucket
3489
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
3490
+ command.response_class = Google::Apis::LoggingV2::LogView
2337
3491
  command.params['name'] = name unless name.nil?
2338
3492
  command.query['fields'] = fields unless fields.nil?
2339
3493
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2340
3494
  execute_or_queue_command(command, &block)
2341
3495
  end
2342
3496
 
2343
- # Lists buckets (Beta).
3497
+ # Lists views on a bucket..
2344
3498
  # @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.
3499
+ # Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/
3500
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
2352
3501
  # @param [Fixnum] page_size
2353
3502
  # Optional. The maximum number of results to return from this request. Non-
2354
3503
  # positive values are ignored. The presence of nextPageToken in the response
@@ -2367,18 +3516,18 @@ module Google
2367
3516
  # Request-specific options
2368
3517
  #
2369
3518
  # @yield [result, err] Result & error if block supplied
2370
- # @yieldparam result [Google::Apis::LoggingV2::ListBucketsResponse] parsed result object
3519
+ # @yieldparam result [Google::Apis::LoggingV2::ListViewsResponse] parsed result object
2371
3520
  # @yieldparam err [StandardError] error object if request failed
2372
3521
  #
2373
- # @return [Google::Apis::LoggingV2::ListBucketsResponse]
3522
+ # @return [Google::Apis::LoggingV2::ListViewsResponse]
2374
3523
  #
2375
3524
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2376
3525
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2377
3526
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2378
- def list_organization_location_buckets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2379
- command = make_simple_command(:get, 'v2/{+parent}/buckets', options)
2380
- command.response_representation = Google::Apis::LoggingV2::ListBucketsResponse::Representation
2381
- command.response_class = Google::Apis::LoggingV2::ListBucketsResponse
3527
+ def list_organization_location_bucket_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3528
+ command = make_simple_command(:get, 'v2/{+parent}/views', options)
3529
+ command.response_representation = Google::Apis::LoggingV2::ListViewsResponse::Representation
3530
+ command.response_class = Google::Apis::LoggingV2::ListViewsResponse
2382
3531
  command.params['parent'] = parent unless parent.nil?
2383
3532
  command.query['pageSize'] = page_size unless page_size.nil?
2384
3533
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -2387,29 +3536,20 @@ module Google
2387
3536
  execute_or_queue_command(command, &block)
2388
3537
  end
2389
3538
 
2390
- # Updates a bucket. This method replaces the following fields in the existing
2391
- # bucket with values from the new bucket: retention_periodIf the retention
2392
- # period is decreased and the bucket is locked, FAILED_PRECONDITION will be
2393
- # returned.If the bucket has a LifecycleState of DELETE_REQUESTED,
2394
- # FAILED_PRECONDITION will be returned.A buckets region may not be modified
2395
- # after it is created. This method is in Beta.
3539
+ # Updates a view. This method replaces the following fields in the existing view
3540
+ # with values from the new view: filter.
2396
3541
  # @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
2406
- # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
3542
+ # Required. The full resource name of the view to update "projects/[PROJECT_ID]/
3543
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
3544
+ # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
3545
+ # view-id".
3546
+ # @param [Google::Apis::LoggingV2::LogView] log_view_object
2407
3547
  # @param [String] update_mask
2408
- # Required. Field mask that specifies the fields in bucket that need an update.
2409
- # A bucket field will be overwritten if, and only if, it is in the update mask.
2410
- # name and output only fields cannot be updated.For a detailed FieldMask
2411
- # definition, see https://developers.google.com/protocol-buffers/docs/reference/
2412
- # google.protobuf#google.protobuf.FieldMaskExample: updateMask=retention_days.
3548
+ # Optional. Field mask that specifies the fields in view that need an update. A
3549
+ # field will be overwritten if, and only if, it is in the update mask. name and
3550
+ # output only fields cannot be updated.For a detailed FieldMask definition, see
3551
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
3552
+ # google.protobuf.FieldMaskExample: updateMask=filter.
2413
3553
  # @param [String] fields
2414
3554
  # Selector specifying which fields to include in a partial response.
2415
3555
  # @param [String] quota_user
@@ -2419,20 +3559,20 @@ module Google
2419
3559
  # Request-specific options
2420
3560
  #
2421
3561
  # @yield [result, err] Result & error if block supplied
2422
- # @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
3562
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
2423
3563
  # @yieldparam err [StandardError] error object if request failed
2424
3564
  #
2425
- # @return [Google::Apis::LoggingV2::LogBucket]
3565
+ # @return [Google::Apis::LoggingV2::LogView]
2426
3566
  #
2427
3567
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2428
3568
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2429
3569
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2430
- def patch_organization_location_bucket(name, log_bucket_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3570
+ def patch_organization_location_bucket_view(name, log_view_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2431
3571
  command = make_simple_command(:patch, 'v2/{+name}', options)
2432
- command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
2433
- command.request_object = log_bucket_object
2434
- command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
2435
- command.response_class = Google::Apis::LoggingV2::LogBucket
3572
+ command.request_representation = Google::Apis::LoggingV2::LogView::Representation
3573
+ command.request_object = log_view_object
3574
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
3575
+ command.response_class = Google::Apis::LoggingV2::LogView
2436
3576
  command.params['name'] = name unless name.nil?
2437
3577
  command.query['updateMask'] = update_mask unless update_mask.nil?
2438
3578
  command.query['fields'] = fields unless fields.nil?
@@ -2445,14 +3585,12 @@ module Google
2445
3585
  # deleted. Entries received after the delete operation with a timestamp before
2446
3586
  # the operation will be deleted.
2447
3587
  # @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.
3588
+ # Required. The resource name of the log to delete: "projects/[PROJECT_ID]/logs/[
3589
+ # LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[
3590
+ # BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID]
3591
+ # must be URL-encoded. For example, "projects/my-project-id/logs/syslog", "
3592
+ # organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
3593
+ # For more information about log names, see LogEntry.
2456
3594
  # @param [String] fields
2457
3595
  # Selector specifying which fields to include in a partial response.
2458
3596
  # @param [String] quota_user
@@ -2483,11 +3621,9 @@ module Google
2483
3621
  # Lists the logs in projects, organizations, folders, or billing accounts. Only
2484
3622
  # logs that have entries are listed.
2485
3623
  # @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]"
3624
+ # Required. The resource name that owns the logs: "projects/[PROJECT_ID]" "
3625
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
3626
+ # folders/[FOLDER_ID]"
2491
3627
  # @param [Fixnum] page_size
2492
3628
  # Optional. The maximum number of results to return from this request. Non-
2493
3629
  # positive values are ignored. The presence of nextPageToken in the response
@@ -2531,12 +3667,10 @@ module Google
2531
3667
  # writer_identity is not permitted to write to the destination. A sink can
2532
3668
  # export log entries only from the resource owning the sink.
2533
3669
  # @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".
3670
+ # Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "
3671
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
3672
+ # folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/
3673
+ # 123456789".
2540
3674
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
2541
3675
  # @param [Boolean] unique_writer_identity
2542
3676
  # Optional. Determines the kind of IAM identity returned as writer_identity in
@@ -2582,11 +3716,9 @@ module Google
2582
3716
  # account is also deleted.
2583
3717
  # @param [String] sink_name
2584
3718
  # 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]"
3719
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
3720
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
3721
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
2590
3722
  # Example: "projects/my-project-id/sinks/my-sink-id".
2591
3723
  # @param [String] fields
2592
3724
  # Selector specifying which fields to include in a partial response.
@@ -2617,11 +3749,9 @@ module Google
2617
3749
 
2618
3750
  # Gets a sink.
2619
3751
  # @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]"
3752
+ # Required. The resource name of the sink: "projects/[PROJECT_ID]/sinks/[SINK_ID]
3753
+ # " "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
3754
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
2625
3755
  # Example: "projects/my-project-id/sinks/my-sink-id".
2626
3756
  # @param [String] fields
2627
3757
  # Selector specifying which fields to include in a partial response.
@@ -2652,11 +3782,9 @@ module Google
2652
3782
 
2653
3783
  # Lists sinks.
2654
3784
  # @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]"
3785
+ # Required. The parent resource whose sinks are to be listed: "projects/[
3786
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
3787
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
2660
3788
  # @param [Fixnum] page_size
2661
3789
  # Optional. The maximum number of results to return from this request. Non-
2662
3790
  # positive values are ignored. The presence of nextPageToken in the response
@@ -2700,23 +3828,20 @@ module Google
2700
3828
  # also have a new writer_identity; see the unique_writer_identity field.
2701
3829
  # @param [String] sink_name
2702
3830
  # 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]"
3831
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
3832
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
3833
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
2708
3834
  # Example: "projects/my-project-id/sinks/my-sink-id".
2709
3835
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
2710
3836
  # @param [Boolean] unique_writer_identity
2711
3837
  # Optional. See sinks.create for a description of this field. When updating a
2712
3838
  # 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.
3839
+ # sink depends on both the old and new values of this field: If the old and new
3840
+ # values of this field are both false or both true, then there is no change to
3841
+ # the sink's writer_identity. If the old value is false and the new value is
3842
+ # true, then writer_identity is changed to a unique service account. It is an
3843
+ # error if the old value is true and the new value is set to false or defaulted
3844
+ # to false.
2720
3845
  # @param [String] update_mask
2721
3846
  # Optional. Field mask that specifies the fields in sink that need an update. A
2722
3847
  # sink field will be overwritten if, and only if, it is in the update mask. name
@@ -2762,23 +3887,20 @@ module Google
2762
3887
  # also have a new writer_identity; see the unique_writer_identity field.
2763
3888
  # @param [String] sink_name
2764
3889
  # 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]"
3890
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
3891
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
3892
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
2770
3893
  # Example: "projects/my-project-id/sinks/my-sink-id".
2771
3894
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
2772
3895
  # @param [Boolean] unique_writer_identity
2773
3896
  # Optional. See sinks.create for a description of this field. When updating a
2774
3897
  # 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.
3898
+ # sink depends on both the old and new values of this field: If the old and new
3899
+ # values of this field are both false or both true, then there is no change to
3900
+ # the sink's writer_identity. If the old value is false and the new value is
3901
+ # true, then writer_identity is changed to a unique service account. It is an
3902
+ # error if the old value is true and the new value is set to false or defaulted
3903
+ # to false.
2782
3904
  # @param [String] update_mask
2783
3905
  # Optional. Field mask that specifies the fields in sink that need an update. A
2784
3906
  # sink field will be overwritten if, and only if, it is in the update mask. name
@@ -2823,12 +3945,10 @@ module Google
2823
3945
  # belonging to that resource can be excluded. You can have up to 10 exclusions
2824
3946
  # in a resource.
2825
3947
  # @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".
3948
+ # Required. The parent resource in which to create the exclusion: "projects/[
3949
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
3950
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-
3951
+ # project", "organizations/123456789".
2832
3952
  # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
2833
3953
  # @param [String] fields
2834
3954
  # Selector specifying which fields to include in a partial response.
@@ -2861,12 +3981,11 @@ module Google
2861
3981
 
2862
3982
  # Deletes an exclusion.
2863
3983
  # @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".
3984
+ # Required. The resource name of an existing exclusion to delete: "projects/[
3985
+ # PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/
3986
+ # exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[
3987
+ # EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "
3988
+ # projects/my-project-id/exclusions/my-exclusion-id".
2870
3989
  # @param [String] fields
2871
3990
  # Selector specifying which fields to include in a partial response.
2872
3991
  # @param [String] quota_user
@@ -2896,12 +4015,11 @@ module Google
2896
4015
 
2897
4016
  # Gets the description of an exclusion.
2898
4017
  # @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".
4018
+ # Required. The resource name of an existing exclusion: "projects/[PROJECT_ID]/
4019
+ # exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
4020
+ # EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
4021
+ # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-
4022
+ # id/exclusions/my-exclusion-id".
2905
4023
  # @param [String] fields
2906
4024
  # Selector specifying which fields to include in a partial response.
2907
4025
  # @param [String] quota_user
@@ -2931,11 +4049,9 @@ module Google
2931
4049
 
2932
4050
  # Lists all the exclusions in a parent resource.
2933
4051
  # @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]"
4052
+ # Required. The parent resource whose exclusions are to be listed. "projects/[
4053
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
4054
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
2939
4055
  # @param [Fixnum] page_size
2940
4056
  # Optional. The maximum number of results to return from this request. Non-
2941
4057
  # positive values are ignored. The presence of nextPageToken in the response
@@ -2976,12 +4092,11 @@ module Google
2976
4092
 
2977
4093
  # Changes one or more properties of an existing exclusion.
2978
4094
  # @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".
4095
+ # Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/
4096
+ # exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
4097
+ # EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
4098
+ # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-
4099
+ # id/exclusions/my-exclusion-id".
2985
4100
  # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
2986
4101
  # @param [String] update_mask
2987
4102
  # Required. A non-empty list of fields to change in the existing exclusion. New
@@ -3020,15 +4135,92 @@ module Google
3020
4135
  execute_or_queue_command(command, &block)
3021
4136
  end
3022
4137
 
4138
+ # Creates a bucket that can be used to store log entries. Once a bucket has been
4139
+ # created, the region cannot be changed.
4140
+ # @param [String] parent
4141
+ # Required. The resource in which to create the bucket: "projects/[PROJECT_ID]/
4142
+ # locations/[LOCATION_ID]" Example: "projects/my-logging-project/locations/
4143
+ # global"
4144
+ # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
4145
+ # @param [String] bucket_id
4146
+ # Required. A client-assigned identifier such as "my-bucket". Identifiers are
4147
+ # limited to 100 characters and can include only letters, digits, underscores,
4148
+ # hyphens, and periods.
4149
+ # @param [String] fields
4150
+ # Selector specifying which fields to include in a partial response.
4151
+ # @param [String] quota_user
4152
+ # Available to use for quota purposes for server-side applications. Can be any
4153
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4154
+ # @param [Google::Apis::RequestOptions] options
4155
+ # Request-specific options
4156
+ #
4157
+ # @yield [result, err] Result & error if block supplied
4158
+ # @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
4159
+ # @yieldparam err [StandardError] error object if request failed
4160
+ #
4161
+ # @return [Google::Apis::LoggingV2::LogBucket]
4162
+ #
4163
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4164
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4165
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4166
+ def create_project_location_bucket(parent, log_bucket_object = nil, bucket_id: nil, fields: nil, quota_user: nil, options: nil, &block)
4167
+ command = make_simple_command(:post, 'v2/{+parent}/buckets', options)
4168
+ command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
4169
+ command.request_object = log_bucket_object
4170
+ command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
4171
+ command.response_class = Google::Apis::LoggingV2::LogBucket
4172
+ command.params['parent'] = parent unless parent.nil?
4173
+ command.query['bucketId'] = bucket_id unless bucket_id.nil?
4174
+ command.query['fields'] = fields unless fields.nil?
4175
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4176
+ execute_or_queue_command(command, &block)
4177
+ end
4178
+
4179
+ # Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days,
4180
+ # the bucket will be purged and all logs in the bucket will be permanently
4181
+ # deleted.
4182
+ # @param [String] name
4183
+ # Required. The full resource name of the bucket to delete. "projects/[
4184
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
4185
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
4186
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
4187
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
4188
+ # project-id/locations/my-location/buckets/my-bucket-id".
4189
+ # @param [String] fields
4190
+ # Selector specifying which fields to include in a partial response.
4191
+ # @param [String] quota_user
4192
+ # Available to use for quota purposes for server-side applications. Can be any
4193
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4194
+ # @param [Google::Apis::RequestOptions] options
4195
+ # Request-specific options
4196
+ #
4197
+ # @yield [result, err] Result & error if block supplied
4198
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
4199
+ # @yieldparam err [StandardError] error object if request failed
4200
+ #
4201
+ # @return [Google::Apis::LoggingV2::Empty]
4202
+ #
4203
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4204
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4205
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4206
+ def delete_project_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
4207
+ command = make_simple_command(:delete, 'v2/{+name}', options)
4208
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
4209
+ command.response_class = Google::Apis::LoggingV2::Empty
4210
+ command.params['name'] = name unless name.nil?
4211
+ command.query['fields'] = fields unless fields.nil?
4212
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4213
+ execute_or_queue_command(command, &block)
4214
+ end
4215
+
3023
4216
  # Gets a bucket (Beta).
3024
4217
  # @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".
4218
+ # Required. The resource name of the bucket: "projects/[PROJECT_ID]/locations/[
4219
+ # LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[
4220
+ # LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/
4221
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[
4222
+ # LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-project-id/locations/
4223
+ # my-location/buckets/my-bucket-id".
3032
4224
  # @param [String] fields
3033
4225
  # Selector specifying which fields to include in a partial response.
3034
4226
  # @param [String] quota_user
@@ -3058,13 +4250,12 @@ module Google
3058
4250
 
3059
4251
  # Lists buckets (Beta).
3060
4252
  # @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.
4253
+ # Required. The parent resource whose buckets are to be listed: "projects/[
4254
+ # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
4255
+ # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
4256
+ # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" Note: The
4257
+ # locations portion of the resource must be specified, but supplying the
4258
+ # character - in place of LOCATION_ID will return all buckets.
3068
4259
  # @param [Fixnum] page_size
3069
4260
  # Optional. The maximum number of results to return from this request. Non-
3070
4261
  # positive values are ignored. The presence of nextPageToken in the response
@@ -3110,15 +4301,13 @@ module Google
3110
4301
  # FAILED_PRECONDITION will be returned.A buckets region may not be modified
3111
4302
  # after it is created. This method is in Beta.
3112
4303
  # @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
4304
+ # Required. The full resource name of the bucket to update. "projects/[
4305
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
4306
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
4307
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
4308
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
4309
+ # project-id/locations/my-location/buckets/my-bucket-id". Also requires
4310
+ # permission "resourcemanager.projects.updateLiens" to set the locked property
3122
4311
  # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
3123
4312
  # @param [String] update_mask
3124
4313
  # Required. Field mask that specifies the fields in bucket that need an update.
@@ -3156,19 +4345,246 @@ module Google
3156
4345
  execute_or_queue_command(command, &block)
3157
4346
  end
3158
4347
 
4348
+ # Undeletes a bucket. A bucket that has been deleted may be undeleted within the
4349
+ # grace period of 7 days.
4350
+ # @param [String] name
4351
+ # Required. The full resource name of the bucket to undelete. "projects/[
4352
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
4353
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
4354
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
4355
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
4356
+ # project-id/locations/my-location/buckets/my-bucket-id".
4357
+ # @param [Google::Apis::LoggingV2::UndeleteBucketRequest] undelete_bucket_request_object
4358
+ # @param [String] fields
4359
+ # Selector specifying which fields to include in a partial response.
4360
+ # @param [String] quota_user
4361
+ # Available to use for quota purposes for server-side applications. Can be any
4362
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4363
+ # @param [Google::Apis::RequestOptions] options
4364
+ # Request-specific options
4365
+ #
4366
+ # @yield [result, err] Result & error if block supplied
4367
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
4368
+ # @yieldparam err [StandardError] error object if request failed
4369
+ #
4370
+ # @return [Google::Apis::LoggingV2::Empty]
4371
+ #
4372
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4373
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4374
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4375
+ def undelete_project_location_bucket(name, undelete_bucket_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4376
+ command = make_simple_command(:post, 'v2/{+name}:undelete', options)
4377
+ command.request_representation = Google::Apis::LoggingV2::UndeleteBucketRequest::Representation
4378
+ command.request_object = undelete_bucket_request_object
4379
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
4380
+ command.response_class = Google::Apis::LoggingV2::Empty
4381
+ command.params['name'] = name unless name.nil?
4382
+ command.query['fields'] = fields unless fields.nil?
4383
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4384
+ execute_or_queue_command(command, &block)
4385
+ end
4386
+
4387
+ # Creates a view over logs in a bucket. A bucket may contain a maximum of 50
4388
+ # views.
4389
+ # @param [String] parent
4390
+ # Required. The bucket in which to create the view "projects/[PROJECT_ID]/
4391
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-logging-
4392
+ # project/locations/my-location/buckets/my-bucket"
4393
+ # @param [Google::Apis::LoggingV2::LogView] log_view_object
4394
+ # @param [String] view_id
4395
+ # Required. The id to use for this view.
4396
+ # @param [String] fields
4397
+ # Selector specifying which fields to include in a partial response.
4398
+ # @param [String] quota_user
4399
+ # Available to use for quota purposes for server-side applications. Can be any
4400
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4401
+ # @param [Google::Apis::RequestOptions] options
4402
+ # Request-specific options
4403
+ #
4404
+ # @yield [result, err] Result & error if block supplied
4405
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
4406
+ # @yieldparam err [StandardError] error object if request failed
4407
+ #
4408
+ # @return [Google::Apis::LoggingV2::LogView]
4409
+ #
4410
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4411
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4412
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4413
+ def create_project_location_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block)
4414
+ command = make_simple_command(:post, 'v2/{+parent}/views', options)
4415
+ command.request_representation = Google::Apis::LoggingV2::LogView::Representation
4416
+ command.request_object = log_view_object
4417
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
4418
+ command.response_class = Google::Apis::LoggingV2::LogView
4419
+ command.params['parent'] = parent unless parent.nil?
4420
+ command.query['viewId'] = view_id unless view_id.nil?
4421
+ command.query['fields'] = fields unless fields.nil?
4422
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4423
+ execute_or_queue_command(command, &block)
4424
+ end
4425
+
4426
+ # Deletes a view from a bucket.
4427
+ # @param [String] name
4428
+ # Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
4429
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
4430
+ # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
4431
+ # view-id".
4432
+ # @param [String] fields
4433
+ # Selector specifying which fields to include in a partial response.
4434
+ # @param [String] quota_user
4435
+ # Available to use for quota purposes for server-side applications. Can be any
4436
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4437
+ # @param [Google::Apis::RequestOptions] options
4438
+ # Request-specific options
4439
+ #
4440
+ # @yield [result, err] Result & error if block supplied
4441
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
4442
+ # @yieldparam err [StandardError] error object if request failed
4443
+ #
4444
+ # @return [Google::Apis::LoggingV2::Empty]
4445
+ #
4446
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4447
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4448
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4449
+ def delete_project_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
4450
+ command = make_simple_command(:delete, 'v2/{+name}', options)
4451
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
4452
+ command.response_class = Google::Apis::LoggingV2::Empty
4453
+ command.params['name'] = name unless name.nil?
4454
+ command.query['fields'] = fields unless fields.nil?
4455
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4456
+ execute_or_queue_command(command, &block)
4457
+ end
4458
+
4459
+ # Gets a view.
4460
+ # @param [String] name
4461
+ # Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[
4462
+ # LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "projects/my-
4463
+ # project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id".
4464
+ # @param [String] fields
4465
+ # Selector specifying which fields to include in a partial response.
4466
+ # @param [String] quota_user
4467
+ # Available to use for quota purposes for server-side applications. Can be any
4468
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4469
+ # @param [Google::Apis::RequestOptions] options
4470
+ # Request-specific options
4471
+ #
4472
+ # @yield [result, err] Result & error if block supplied
4473
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
4474
+ # @yieldparam err [StandardError] error object if request failed
4475
+ #
4476
+ # @return [Google::Apis::LoggingV2::LogView]
4477
+ #
4478
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4479
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4480
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4481
+ def get_project_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
4482
+ command = make_simple_command(:get, 'v2/{+name}', options)
4483
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
4484
+ command.response_class = Google::Apis::LoggingV2::LogView
4485
+ command.params['name'] = name unless name.nil?
4486
+ command.query['fields'] = fields unless fields.nil?
4487
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4488
+ execute_or_queue_command(command, &block)
4489
+ end
4490
+
4491
+ # Lists views on a bucket..
4492
+ # @param [String] parent
4493
+ # Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/
4494
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
4495
+ # @param [Fixnum] page_size
4496
+ # Optional. The maximum number of results to return from this request. Non-
4497
+ # positive values are ignored. The presence of nextPageToken in the response
4498
+ # indicates that more results might be available.
4499
+ # @param [String] page_token
4500
+ # Optional. If present, then retrieve the next batch of results from the
4501
+ # preceding call to this method. pageToken must be the value of nextPageToken
4502
+ # from the previous response. The values of other method parameters should be
4503
+ # identical to those in the previous call.
4504
+ # @param [String] fields
4505
+ # Selector specifying which fields to include in a partial response.
4506
+ # @param [String] quota_user
4507
+ # Available to use for quota purposes for server-side applications. Can be any
4508
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4509
+ # @param [Google::Apis::RequestOptions] options
4510
+ # Request-specific options
4511
+ #
4512
+ # @yield [result, err] Result & error if block supplied
4513
+ # @yieldparam result [Google::Apis::LoggingV2::ListViewsResponse] parsed result object
4514
+ # @yieldparam err [StandardError] error object if request failed
4515
+ #
4516
+ # @return [Google::Apis::LoggingV2::ListViewsResponse]
4517
+ #
4518
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4519
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4520
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4521
+ def list_project_location_bucket_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4522
+ command = make_simple_command(:get, 'v2/{+parent}/views', options)
4523
+ command.response_representation = Google::Apis::LoggingV2::ListViewsResponse::Representation
4524
+ command.response_class = Google::Apis::LoggingV2::ListViewsResponse
4525
+ command.params['parent'] = parent unless parent.nil?
4526
+ command.query['pageSize'] = page_size unless page_size.nil?
4527
+ command.query['pageToken'] = page_token unless page_token.nil?
4528
+ command.query['fields'] = fields unless fields.nil?
4529
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4530
+ execute_or_queue_command(command, &block)
4531
+ end
4532
+
4533
+ # Updates a view. This method replaces the following fields in the existing view
4534
+ # with values from the new view: filter.
4535
+ # @param [String] name
4536
+ # Required. The full resource name of the view to update "projects/[PROJECT_ID]/
4537
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
4538
+ # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
4539
+ # view-id".
4540
+ # @param [Google::Apis::LoggingV2::LogView] log_view_object
4541
+ # @param [String] update_mask
4542
+ # Optional. Field mask that specifies the fields in view that need an update. A
4543
+ # field will be overwritten if, and only if, it is in the update mask. name and
4544
+ # output only fields cannot be updated.For a detailed FieldMask definition, see
4545
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
4546
+ # google.protobuf.FieldMaskExample: updateMask=filter.
4547
+ # @param [String] fields
4548
+ # Selector specifying which fields to include in a partial response.
4549
+ # @param [String] quota_user
4550
+ # Available to use for quota purposes for server-side applications. Can be any
4551
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4552
+ # @param [Google::Apis::RequestOptions] options
4553
+ # Request-specific options
4554
+ #
4555
+ # @yield [result, err] Result & error if block supplied
4556
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
4557
+ # @yieldparam err [StandardError] error object if request failed
4558
+ #
4559
+ # @return [Google::Apis::LoggingV2::LogView]
4560
+ #
4561
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4562
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4563
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4564
+ def patch_project_location_bucket_view(name, log_view_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4565
+ command = make_simple_command(:patch, 'v2/{+name}', options)
4566
+ command.request_representation = Google::Apis::LoggingV2::LogView::Representation
4567
+ command.request_object = log_view_object
4568
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
4569
+ command.response_class = Google::Apis::LoggingV2::LogView
4570
+ command.params['name'] = name unless name.nil?
4571
+ command.query['updateMask'] = update_mask unless update_mask.nil?
4572
+ command.query['fields'] = fields unless fields.nil?
4573
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4574
+ execute_or_queue_command(command, &block)
4575
+ end
4576
+
3159
4577
  # Deletes all the log entries in a log. The log reappears if it receives new
3160
4578
  # entries. Log entries written shortly before the delete operation might not be
3161
4579
  # deleted. Entries received after the delete operation with a timestamp before
3162
4580
  # the operation will be deleted.
3163
4581
  # @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.
4582
+ # Required. The resource name of the log to delete: "projects/[PROJECT_ID]/logs/[
4583
+ # LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[
4584
+ # BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID]
4585
+ # must be URL-encoded. For example, "projects/my-project-id/logs/syslog", "
4586
+ # organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
4587
+ # For more information about log names, see LogEntry.
3172
4588
  # @param [String] fields
3173
4589
  # Selector specifying which fields to include in a partial response.
3174
4590
  # @param [String] quota_user
@@ -3199,11 +4615,9 @@ module Google
3199
4615
  # Lists the logs in projects, organizations, folders, or billing accounts. Only
3200
4616
  # logs that have entries are listed.
3201
4617
  # @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]"
4618
+ # Required. The resource name that owns the logs: "projects/[PROJECT_ID]" "
4619
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
4620
+ # folders/[FOLDER_ID]"
3207
4621
  # @param [Fixnum] page_size
3208
4622
  # Optional. The maximum number of results to return from this request. Non-
3209
4623
  # positive values are ignored. The presence of nextPageToken in the response
@@ -3244,9 +4658,8 @@ module Google
3244
4658
 
3245
4659
  # Creates a logs-based metric.
3246
4660
  # @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.
4661
+ # Required. The resource name of the project in which to create the metric: "
4662
+ # projects/[PROJECT_ID]" The new metric must be provided in the request.
3250
4663
  # @param [Google::Apis::LoggingV2::LogMetric] log_metric_object
3251
4664
  # @param [String] fields
3252
4665
  # Selector specifying which fields to include in a partial response.
@@ -3279,8 +4692,8 @@ module Google
3279
4692
 
3280
4693
  # Deletes a logs-based metric.
3281
4694
  # @param [String] metric_name
3282
- # Required. The resource name of the metric to delete:
3283
- # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
4695
+ # Required. The resource name of the metric to delete: "projects/[PROJECT_ID]/
4696
+ # metrics/[METRIC_ID]"
3284
4697
  # @param [String] fields
3285
4698
  # Selector specifying which fields to include in a partial response.
3286
4699
  # @param [String] quota_user
@@ -3310,8 +4723,8 @@ module Google
3310
4723
 
3311
4724
  # Gets a logs-based metric.
3312
4725
  # @param [String] metric_name
3313
- # Required. The resource name of the desired metric:
3314
- # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
4726
+ # Required. The resource name of the desired metric: "projects/[PROJECT_ID]/
4727
+ # metrics/[METRIC_ID]"
3315
4728
  # @param [String] fields
3316
4729
  # Selector specifying which fields to include in a partial response.
3317
4730
  # @param [String] quota_user
@@ -3341,8 +4754,8 @@ module Google
3341
4754
 
3342
4755
  # Lists logs-based metrics.
3343
4756
  # @param [String] parent
3344
- # Required. The name of the project containing the metrics:
3345
- # "projects/[PROJECT_ID]"
4757
+ # Required. The name of the project containing the metrics: "projects/[
4758
+ # PROJECT_ID]"
3346
4759
  # @param [Fixnum] page_size
3347
4760
  # Optional. The maximum number of results to return from this request. Non-
3348
4761
  # positive values are ignored. The presence of nextPageToken in the response
@@ -3383,11 +4796,10 @@ module Google
3383
4796
 
3384
4797
  # Creates or updates a logs-based metric.
3385
4798
  # @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.
4799
+ # Required. The resource name of the metric to update: "projects/[PROJECT_ID]/
4800
+ # metrics/[METRIC_ID]" The updated metric must be provided in the request and it'
4801
+ # s name field must be the same as [METRIC_ID] If the metric does not exist in [
4802
+ # PROJECT_ID], then a new metric is created.
3391
4803
  # @param [Google::Apis::LoggingV2::LogMetric] log_metric_object
3392
4804
  # @param [String] fields
3393
4805
  # Selector specifying which fields to include in a partial response.
@@ -3423,12 +4835,10 @@ module Google
3423
4835
  # writer_identity is not permitted to write to the destination. A sink can
3424
4836
  # export log entries only from the resource owning the sink.
3425
4837
  # @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".
4838
+ # Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "
4839
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
4840
+ # folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/
4841
+ # 123456789".
3432
4842
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
3433
4843
  # @param [Boolean] unique_writer_identity
3434
4844
  # Optional. Determines the kind of IAM identity returned as writer_identity in
@@ -3474,11 +4884,9 @@ module Google
3474
4884
  # account is also deleted.
3475
4885
  # @param [String] sink_name
3476
4886
  # 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]"
4887
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
4888
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
4889
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
3482
4890
  # Example: "projects/my-project-id/sinks/my-sink-id".
3483
4891
  # @param [String] fields
3484
4892
  # Selector specifying which fields to include in a partial response.
@@ -3509,11 +4917,9 @@ module Google
3509
4917
 
3510
4918
  # Gets a sink.
3511
4919
  # @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]"
4920
+ # Required. The resource name of the sink: "projects/[PROJECT_ID]/sinks/[SINK_ID]
4921
+ # " "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
4922
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
3517
4923
  # Example: "projects/my-project-id/sinks/my-sink-id".
3518
4924
  # @param [String] fields
3519
4925
  # Selector specifying which fields to include in a partial response.
@@ -3544,11 +4950,9 @@ module Google
3544
4950
 
3545
4951
  # Lists sinks.
3546
4952
  # @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]"
4953
+ # Required. The parent resource whose sinks are to be listed: "projects/[
4954
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
4955
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
3552
4956
  # @param [Fixnum] page_size
3553
4957
  # Optional. The maximum number of results to return from this request. Non-
3554
4958
  # positive values are ignored. The presence of nextPageToken in the response
@@ -3592,23 +4996,20 @@ module Google
3592
4996
  # also have a new writer_identity; see the unique_writer_identity field.
3593
4997
  # @param [String] sink_name
3594
4998
  # 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]"
4999
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
5000
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
5001
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
3600
5002
  # Example: "projects/my-project-id/sinks/my-sink-id".
3601
5003
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
3602
5004
  # @param [Boolean] unique_writer_identity
3603
5005
  # Optional. See sinks.create for a description of this field. When updating a
3604
5006
  # 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.
5007
+ # sink depends on both the old and new values of this field: If the old and new
5008
+ # values of this field are both false or both true, then there is no change to
5009
+ # the sink's writer_identity. If the old value is false and the new value is
5010
+ # true, then writer_identity is changed to a unique service account. It is an
5011
+ # error if the old value is true and the new value is set to false or defaulted
5012
+ # to false.
3612
5013
  # @param [String] update_mask
3613
5014
  # Optional. Field mask that specifies the fields in sink that need an update. A
3614
5015
  # sink field will be overwritten if, and only if, it is in the update mask. name
@@ -3654,23 +5055,20 @@ module Google
3654
5055
  # also have a new writer_identity; see the unique_writer_identity field.
3655
5056
  # @param [String] sink_name
3656
5057
  # 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]"
5058
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
5059
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
5060
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
3662
5061
  # Example: "projects/my-project-id/sinks/my-sink-id".
3663
5062
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
3664
5063
  # @param [Boolean] unique_writer_identity
3665
5064
  # Optional. See sinks.create for a description of this field. When updating a
3666
5065
  # 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.
5066
+ # sink depends on both the old and new values of this field: If the old and new
5067
+ # values of this field are both false or both true, then there is no change to
5068
+ # the sink's writer_identity. If the old value is false and the new value is
5069
+ # true, then writer_identity is changed to a unique service account. It is an
5070
+ # error if the old value is true and the new value is set to false or defaulted
5071
+ # to false.
3674
5072
  # @param [String] update_mask
3675
5073
  # Optional. Field mask that specifies the fields in sink that need an update. A
3676
5074
  # sink field will be overwritten if, and only if, it is in the update mask. name
@@ -3716,12 +5114,10 @@ module Google
3716
5114
  # writer_identity is not permitted to write to the destination. A sink can
3717
5115
  # export log entries only from the resource owning the sink.
3718
5116
  # @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".
5117
+ # Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "
5118
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
5119
+ # folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/
5120
+ # 123456789".
3725
5121
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
3726
5122
  # @param [Boolean] unique_writer_identity
3727
5123
  # Optional. Determines the kind of IAM identity returned as writer_identity in
@@ -3767,11 +5163,9 @@ module Google
3767
5163
  # account is also deleted.
3768
5164
  # @param [String] sink_name
3769
5165
  # 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]"
5166
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
5167
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
5168
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
3775
5169
  # Example: "projects/my-project-id/sinks/my-sink-id".
3776
5170
  # @param [String] fields
3777
5171
  # Selector specifying which fields to include in a partial response.
@@ -3802,11 +5196,9 @@ module Google
3802
5196
 
3803
5197
  # Gets a sink.
3804
5198
  # @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]"
5199
+ # Required. The resource name of the sink: "projects/[PROJECT_ID]/sinks/[SINK_ID]
5200
+ # " "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
5201
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
3810
5202
  # Example: "projects/my-project-id/sinks/my-sink-id".
3811
5203
  # @param [String] fields
3812
5204
  # Selector specifying which fields to include in a partial response.
@@ -3837,11 +5229,9 @@ module Google
3837
5229
 
3838
5230
  # Lists sinks.
3839
5231
  # @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]"
5232
+ # Required. The parent resource whose sinks are to be listed: "projects/[
5233
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
5234
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
3845
5235
  # @param [Fixnum] page_size
3846
5236
  # Optional. The maximum number of results to return from this request. Non-
3847
5237
  # positive values are ignored. The presence of nextPageToken in the response
@@ -3885,23 +5275,20 @@ module Google
3885
5275
  # also have a new writer_identity; see the unique_writer_identity field.
3886
5276
  # @param [String] sink_name
3887
5277
  # 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]"
5278
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
5279
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
5280
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
3893
5281
  # Example: "projects/my-project-id/sinks/my-sink-id".
3894
5282
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
3895
5283
  # @param [Boolean] unique_writer_identity
3896
5284
  # Optional. See sinks.create for a description of this field. When updating a
3897
5285
  # 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.
5286
+ # sink depends on both the old and new values of this field: If the old and new
5287
+ # values of this field are both false or both true, then there is no change to
5288
+ # the sink's writer_identity. If the old value is false and the new value is
5289
+ # true, then writer_identity is changed to a unique service account. It is an
5290
+ # error if the old value is true and the new value is set to false or defaulted
5291
+ # to false.
3905
5292
  # @param [String] update_mask
3906
5293
  # Optional. Field mask that specifies the fields in sink that need an update. A
3907
5294
  # sink field will be overwritten if, and only if, it is in the update mask. name
@@ -3948,14 +5335,12 @@ module Google
3948
5335
  # Enabling CMEK for Logs Router (https://cloud.google.com/logging/docs/routing/
3949
5336
  # managed-encryption) for more information.
3950
5337
  # @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.
5338
+ # Required. The resource for which to retrieve CMEK settings. "projects/[
5339
+ # PROJECT_ID]/cmekSettings" "organizations/[ORGANIZATION_ID]/cmekSettings" "
5340
+ # billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings" "folders/[FOLDER_ID]/
5341
+ # cmekSettings" Example: "organizations/12345/cmekSettings".Note: CMEK for the
5342
+ # Logs Router can currently only be configured for GCP organizations. Once
5343
+ # configured, it applies to all projects and folders in the GCP organization.
3959
5344
  # @param [String] fields
3960
5345
  # Selector specifying which fields to include in a partial response.
3961
5346
  # @param [String] quota_user
@@ -3992,14 +5377,12 @@ module Google
3992
5377
  # is disabled.See Enabling CMEK for Logs Router (https://cloud.google.com/
3993
5378
  # logging/docs/routing/managed-encryption) for more information.
3994
5379
  # @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.
5380
+ # Required. The resource name for the CMEK settings to update. "projects/[
5381
+ # PROJECT_ID]/cmekSettings" "organizations/[ORGANIZATION_ID]/cmekSettings" "
5382
+ # billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings" "folders/[FOLDER_ID]/
5383
+ # cmekSettings" Example: "organizations/12345/cmekSettings".Note: CMEK for the
5384
+ # Logs Router can currently only be configured for GCP organizations. Once
5385
+ # configured, it applies to all projects and folders in the GCP organization.
4003
5386
  # @param [Google::Apis::LoggingV2::CmekSettings] cmek_settings_object
4004
5387
  # @param [String] update_mask
4005
5388
  # Optional. Field mask identifying which fields from cmek_settings should be