google-api-client 0.44.0 → 0.46.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (536) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +305 -0
  3. data/api_names.yaml +1 -0
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +7 -9
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
  7. data/generated/google/apis/accessapproval_v1.rb +1 -1
  8. data/generated/google/apis/accessapproval_v1/classes.rb +25 -14
  9. data/generated/google/apis/accessapproval_v1/service.rb +27 -27
  10. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  11. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  12. data/generated/google/apis/admin_directory_v1.rb +1 -1
  13. data/generated/google/apis/admin_directory_v1/classes.rb +1 -15
  14. data/generated/google/apis/admin_directory_v1/representations.rb +1 -14
  15. data/generated/google/apis/admin_directory_v1/service.rb +89 -1
  16. data/generated/google/apis/admob_v1.rb +4 -1
  17. data/generated/google/apis/admob_v1/classes.rb +2 -2
  18. data/generated/google/apis/analyticsadmin_v1alpha.rb +43 -0
  19. data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +1361 -0
  20. data/generated/google/apis/analyticsadmin_v1alpha/representations.rb +610 -0
  21. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +2135 -0
  22. data/generated/google/apis/analyticsdata_v1alpha.rb +37 -0
  23. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +1610 -0
  24. data/generated/google/apis/analyticsdata_v1alpha/representations.rb +789 -0
  25. data/generated/google/apis/analyticsdata_v1alpha/service.rb +220 -0
  26. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  27. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  28. data/generated/google/apis/androidenterprise_v1/service.rb +2 -2
  29. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  30. data/generated/google/apis/androidmanagement_v1/classes.rb +4 -3
  31. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  32. data/generated/google/apis/androidpublisher_v3/classes.rb +7 -0
  33. data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
  34. data/generated/google/apis/apigateway_v1beta.rb +34 -0
  35. data/generated/google/apis/apigateway_v1beta/classes.rb +1162 -0
  36. data/generated/google/apis/apigateway_v1beta/representations.rb +470 -0
  37. data/generated/google/apis/apigateway_v1beta/service.rb +1172 -0
  38. data/generated/google/apis/apigee_v1.rb +1 -1
  39. data/generated/google/apis/apigee_v1/classes.rb +247 -27
  40. data/generated/google/apis/apigee_v1/representations.rb +90 -3
  41. data/generated/google/apis/apigee_v1/service.rb +63 -43
  42. data/generated/google/apis/appengine_v1.rb +1 -1
  43. data/generated/google/apis/appengine_v1/classes.rb +51 -24
  44. data/generated/google/apis/appengine_v1/representations.rb +15 -0
  45. data/generated/google/apis/appengine_v1beta.rb +1 -1
  46. data/generated/google/apis/appengine_v1beta/classes.rb +58 -24
  47. data/generated/google/apis/appengine_v1beta/representations.rb +16 -0
  48. data/generated/google/apis/appsmarket_v2.rb +1 -1
  49. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  50. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +7 -0
  51. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +1 -0
  52. data/generated/google/apis/assuredworkloads_v1beta1.rb +34 -0
  53. data/generated/google/apis/assuredworkloads_v1beta1/classes.rb +722 -0
  54. data/generated/google/apis/assuredworkloads_v1beta1/representations.rb +359 -0
  55. data/generated/google/apis/assuredworkloads_v1beta1/service.rb +328 -0
  56. data/generated/google/apis/bigquery_v2.rb +1 -1
  57. data/generated/google/apis/bigquery_v2/classes.rb +86 -18
  58. data/generated/google/apis/bigquery_v2/representations.rb +18 -0
  59. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  60. data/generated/google/apis/bigtableadmin_v1/classes.rb +87 -119
  61. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  62. data/generated/google/apis/bigtableadmin_v2/classes.rb +405 -607
  63. data/generated/google/apis/bigtableadmin_v2/service.rb +194 -247
  64. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  65. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +15 -5
  66. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
  67. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  68. data/generated/google/apis/binaryauthorization_v1/classes.rb +194 -0
  69. data/generated/google/apis/binaryauthorization_v1/representations.rb +75 -0
  70. data/generated/google/apis/binaryauthorization_v1/service.rb +35 -0
  71. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  72. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +194 -0
  73. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +75 -0
  74. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +35 -0
  75. data/generated/google/apis/books_v1.rb +1 -1
  76. data/generated/google/apis/books_v1/service.rb +2 -2
  77. data/generated/google/apis/calendar_v3.rb +1 -1
  78. data/generated/google/apis/calendar_v3/classes.rb +13 -10
  79. data/generated/google/apis/chat_v1.rb +1 -1
  80. data/generated/google/apis/chat_v1/classes.rb +79 -5
  81. data/generated/google/apis/chat_v1/representations.rb +35 -0
  82. data/generated/google/apis/civicinfo_v2.rb +1 -1
  83. data/generated/google/apis/civicinfo_v2/classes.rb +18 -8
  84. data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
  85. data/generated/google/apis/classroom_v1.rb +7 -1
  86. data/generated/google/apis/classroom_v1/classes.rb +132 -0
  87. data/generated/google/apis/classroom_v1/representations.rb +43 -0
  88. data/generated/google/apis/classroom_v1/service.rb +240 -0
  89. data/generated/google/apis/cloudasset_v1.rb +1 -1
  90. data/generated/google/apis/cloudasset_v1/classes.rb +52 -0
  91. data/generated/google/apis/cloudasset_v1/representations.rb +16 -0
  92. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  93. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  94. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +4 -2
  95. data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
  96. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  97. data/generated/google/apis/cloudbilling_v1/classes.rb +4 -4
  98. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  99. data/generated/google/apis/cloudbuild_v1/classes.rb +47 -1
  100. data/generated/google/apis/cloudbuild_v1/representations.rb +7 -0
  101. data/generated/google/apis/cloudbuild_v1/service.rb +220 -3
  102. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  103. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +8 -0
  104. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
  105. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  106. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +8 -0
  107. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
  108. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  109. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  110. data/generated/google/apis/cloudfunctions_v1/classes.rb +12 -1
  111. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
  112. data/generated/google/apis/cloudidentity_v1.rb +4 -1
  113. data/generated/google/apis/cloudidentity_v1/classes.rb +397 -65
  114. data/generated/google/apis/cloudidentity_v1/representations.rb +168 -0
  115. data/generated/google/apis/cloudidentity_v1/service.rb +883 -70
  116. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  117. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +208 -7
  118. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +94 -0
  119. data/generated/google/apis/cloudidentity_v1beta1/service.rb +179 -0
  120. data/generated/google/apis/cloudiot_v1.rb +1 -1
  121. data/generated/google/apis/cloudiot_v1/classes.rb +7 -0
  122. data/generated/google/apis/cloudiot_v1/representations.rb +1 -0
  123. data/generated/google/apis/cloudkms_v1.rb +1 -1
  124. data/generated/google/apis/cloudkms_v1/classes.rb +7 -0
  125. data/generated/google/apis/cloudkms_v1/representations.rb +1 -0
  126. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  127. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +14 -7
  128. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +1 -0
  129. data/generated/google/apis/cloudresourcemanager_v1/service.rb +61 -59
  130. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  131. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +11 -4
  132. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +1 -0
  133. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +25 -24
  134. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  135. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +7 -0
  136. data/generated/google/apis/cloudresourcemanager_v2/representations.rb +1 -0
  137. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  138. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +7 -0
  139. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +1 -0
  140. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  141. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  142. data/generated/google/apis/cloudtasks_v2/classes.rb +7 -0
  143. data/generated/google/apis/cloudtasks_v2/representations.rb +1 -0
  144. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  145. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +25 -19
  146. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -0
  147. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  148. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +25 -18
  149. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
  150. data/generated/google/apis/composer_v1beta1.rb +1 -1
  151. data/generated/google/apis/composer_v1beta1/classes.rb +2 -1
  152. data/generated/google/apis/compute_alpha.rb +1 -1
  153. data/generated/google/apis/compute_alpha/classes.rb +513 -131
  154. data/generated/google/apis/compute_alpha/representations.rb +124 -8
  155. data/generated/google/apis/compute_alpha/service.rb +1685 -762
  156. data/generated/google/apis/compute_beta.rb +1 -1
  157. data/generated/google/apis/compute_beta/classes.rb +491 -83
  158. data/generated/google/apis/compute_beta/representations.rb +96 -1
  159. data/generated/google/apis/compute_beta/service.rb +802 -133
  160. data/generated/google/apis/compute_v1.rb +1 -1
  161. data/generated/google/apis/compute_v1/classes.rb +308 -45
  162. data/generated/google/apis/compute_v1/representations.rb +54 -1
  163. data/generated/google/apis/compute_v1/service.rb +736 -130
  164. data/generated/google/apis/container_v1.rb +1 -1
  165. data/generated/google/apis/container_v1/classes.rb +57 -2
  166. data/generated/google/apis/container_v1/representations.rb +7 -0
  167. data/generated/google/apis/container_v1beta1.rb +1 -1
  168. data/generated/google/apis/container_v1beta1/classes.rb +80 -8
  169. data/generated/google/apis/container_v1beta1/representations.rb +21 -0
  170. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  171. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +7 -0
  172. data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +1 -0
  173. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  174. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +7 -0
  175. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +1 -0
  176. data/generated/google/apis/content_v2.rb +1 -1
  177. data/generated/google/apis/content_v2/classes.rb +4 -2
  178. data/generated/google/apis/content_v2_1.rb +1 -1
  179. data/generated/google/apis/content_v2_1/classes.rb +16 -4
  180. data/generated/google/apis/content_v2_1/representations.rb +1 -0
  181. data/generated/google/apis/content_v2_1/service.rb +1 -1
  182. data/generated/google/apis/customsearch_v1.rb +1 -1
  183. data/generated/google/apis/customsearch_v1/service.rb +2 -2
  184. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  185. data/generated/google/apis/datacatalog_v1beta1/classes.rb +8 -1
  186. data/generated/google/apis/datacatalog_v1beta1/representations.rb +1 -0
  187. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  188. data/generated/google/apis/dataflow_v1b3/classes.rb +152 -5
  189. data/generated/google/apis/dataflow_v1b3/representations.rb +30 -0
  190. data/generated/google/apis/dataflow_v1b3/service.rb +10 -1
  191. data/generated/google/apis/datafusion_v1.rb +1 -1
  192. data/generated/google/apis/datafusion_v1/classes.rb +15 -0
  193. data/generated/google/apis/datafusion_v1/representations.rb +2 -0
  194. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  195. data/generated/google/apis/datafusion_v1beta1/classes.rb +15 -0
  196. data/generated/google/apis/datafusion_v1beta1/representations.rb +2 -0
  197. data/generated/google/apis/dataproc_v1.rb +1 -1
  198. data/generated/google/apis/dataproc_v1/classes.rb +47 -8
  199. data/generated/google/apis/dataproc_v1/representations.rb +17 -0
  200. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  201. data/generated/google/apis/dataproc_v1beta2/classes.rb +51 -11
  202. data/generated/google/apis/dataproc_v1beta2/representations.rb +17 -0
  203. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  204. data/generated/google/apis/dfareporting_v3_3/classes.rb +0 -164
  205. data/generated/google/apis/dfareporting_v3_3/representations.rb +0 -42
  206. data/generated/google/apis/dfareporting_v3_3/service.rb +51 -54
  207. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  208. data/generated/google/apis/dfareporting_v3_4/classes.rb +0 -164
  209. data/generated/google/apis/dfareporting_v3_4/representations.rb +0 -42
  210. data/generated/google/apis/dfareporting_v3_4/service.rb +51 -54
  211. data/generated/google/apis/dialogflow_v2.rb +1 -1
  212. data/generated/google/apis/dialogflow_v2/classes.rb +202 -26
  213. data/generated/google/apis/dialogflow_v2/representations.rb +97 -0
  214. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  215. data/generated/google/apis/dialogflow_v2beta1/classes.rb +220 -42
  216. data/generated/google/apis/dialogflow_v2beta1/representations.rb +97 -0
  217. data/generated/google/apis/dialogflow_v2beta1/service.rb +464 -326
  218. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  219. data/generated/google/apis/dialogflow_v3beta1/classes.rb +289 -33
  220. data/generated/google/apis/dialogflow_v3beta1/representations.rb +131 -1
  221. data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
  222. data/generated/google/apis/digitalassetlinks_v1/classes.rb +66 -92
  223. data/generated/google/apis/digitalassetlinks_v1/service.rb +131 -188
  224. data/generated/google/apis/displayvideo_v1.rb +1 -1
  225. data/generated/google/apis/displayvideo_v1/classes.rb +8 -0
  226. data/generated/google/apis/displayvideo_v1/representations.rb +1 -0
  227. data/generated/google/apis/displayvideo_v1/service.rb +2 -2
  228. data/generated/google/apis/displayvideo_v1beta.rb +38 -0
  229. data/generated/google/apis/displayvideo_v1beta/classes.rb +146 -0
  230. data/generated/google/apis/displayvideo_v1beta/representations.rb +72 -0
  231. data/generated/google/apis/displayvideo_v1beta/service.rb +161 -0
  232. data/generated/google/apis/displayvideo_v1beta2.rb +38 -0
  233. data/generated/google/apis/displayvideo_v1beta2/classes.rb +146 -0
  234. data/generated/google/apis/displayvideo_v1beta2/representations.rb +72 -0
  235. data/generated/google/apis/displayvideo_v1beta2/service.rb +130 -0
  236. data/generated/google/apis/displayvideo_v1dev.rb +38 -0
  237. data/generated/google/apis/displayvideo_v1dev/classes.rb +146 -0
  238. data/generated/google/apis/displayvideo_v1dev/representations.rb +72 -0
  239. data/generated/google/apis/displayvideo_v1dev/service.rb +130 -0
  240. data/generated/google/apis/dlp_v2.rb +1 -1
  241. data/generated/google/apis/dlp_v2/classes.rb +31 -5
  242. data/generated/google/apis/dlp_v2/representations.rb +16 -0
  243. data/generated/google/apis/dlp_v2/service.rb +328 -328
  244. data/generated/google/apis/documentai_v1beta2.rb +1 -1
  245. data/generated/google/apis/documentai_v1beta2/classes.rb +1059 -6
  246. data/generated/google/apis/documentai_v1beta2/representations.rb +398 -0
  247. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  248. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -2
  249. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  250. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +1 -2
  251. data/generated/google/apis/file_v1.rb +1 -1
  252. data/generated/google/apis/file_v1/classes.rb +1 -1
  253. data/generated/google/apis/file_v1beta1.rb +1 -1
  254. data/generated/google/apis/file_v1beta1/classes.rb +1 -1
  255. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  256. data/generated/google/apis/firebase_v1beta1/classes.rb +8 -4
  257. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  258. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  259. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +160 -0
  260. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +68 -0
  261. data/generated/google/apis/firebasehosting_v1beta1/service.rb +418 -4
  262. data/generated/google/apis/firebaseml_v1beta2.rb +1 -1
  263. data/generated/google/apis/firebaseml_v1beta2/classes.rb +8 -0
  264. data/generated/google/apis/firebaseml_v1beta2/representations.rb +1 -0
  265. data/generated/google/apis/firestore_v1.rb +1 -1
  266. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  267. data/generated/google/apis/fitness_v1.rb +3 -3
  268. data/generated/google/apis/fitness_v1/classes.rb +5 -5
  269. data/generated/google/apis/games_v1.rb +1 -1
  270. data/generated/google/apis/gameservices_v1.rb +1 -1
  271. data/generated/google/apis/gameservices_v1/classes.rb +7 -0
  272. data/generated/google/apis/gameservices_v1/representations.rb +1 -0
  273. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  274. data/generated/google/apis/gameservices_v1beta/classes.rb +7 -0
  275. data/generated/google/apis/gameservices_v1beta/representations.rb +1 -0
  276. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  277. data/generated/google/apis/genomics_v2alpha1/classes.rb +104 -0
  278. data/generated/google/apis/genomics_v2alpha1/representations.rb +47 -0
  279. data/generated/google/apis/gmail_v1.rb +1 -1
  280. data/generated/google/apis/gmail_v1/service.rb +1 -1
  281. data/generated/google/apis/healthcare_v1.rb +1 -1
  282. data/generated/google/apis/healthcare_v1/classes.rb +75 -1
  283. data/generated/google/apis/healthcare_v1/representations.rb +32 -0
  284. data/generated/google/apis/healthcare_v1/service.rb +183 -19
  285. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  286. data/generated/google/apis/healthcare_v1beta1/classes.rb +1007 -2
  287. data/generated/google/apis/healthcare_v1beta1/representations.rb +454 -0
  288. data/generated/google/apis/healthcare_v1beta1/service.rb +1458 -19
  289. data/generated/google/apis/homegraph_v1.rb +4 -1
  290. data/generated/google/apis/iam_v1.rb +1 -1
  291. data/generated/google/apis/iam_v1/classes.rb +7 -0
  292. data/generated/google/apis/iam_v1/representations.rb +1 -0
  293. data/generated/google/apis/iam_v1/service.rb +2 -1
  294. data/generated/google/apis/iap_v1.rb +1 -1
  295. data/generated/google/apis/iap_v1/classes.rb +7 -0
  296. data/generated/google/apis/iap_v1/representations.rb +1 -0
  297. data/generated/google/apis/iap_v1beta1.rb +1 -1
  298. data/generated/google/apis/iap_v1beta1/classes.rb +7 -0
  299. data/generated/google/apis/iap_v1beta1/representations.rb +1 -0
  300. data/generated/google/apis/jobs_v2.rb +1 -1
  301. data/generated/google/apis/jobs_v2/classes.rb +1584 -1086
  302. data/generated/google/apis/jobs_v2/representations.rb +272 -0
  303. data/generated/google/apis/jobs_v2/service.rb +85 -126
  304. data/generated/google/apis/jobs_v3.rb +1 -1
  305. data/generated/google/apis/jobs_v3/classes.rb +1559 -980
  306. data/generated/google/apis/jobs_v3/representations.rb +272 -0
  307. data/generated/google/apis/jobs_v3/service.rb +101 -139
  308. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  309. data/generated/google/apis/jobs_v3p1beta1/classes.rb +1521 -1023
  310. data/generated/google/apis/jobs_v3p1beta1/representations.rb +257 -0
  311. data/generated/google/apis/jobs_v3p1beta1/service.rb +103 -142
  312. data/generated/google/apis/licensing_v1.rb +4 -3
  313. data/generated/google/apis/licensing_v1/classes.rb +1 -1
  314. data/generated/google/apis/licensing_v1/service.rb +55 -85
  315. data/generated/google/apis/logging_v2.rb +1 -1
  316. data/generated/google/apis/logging_v2/classes.rb +98 -55
  317. data/generated/google/apis/logging_v2/representations.rb +32 -0
  318. data/generated/google/apis/logging_v2/service.rb +1214 -264
  319. data/generated/google/apis/managedidentities_v1.rb +1 -1
  320. data/generated/google/apis/managedidentities_v1/classes.rb +7 -0
  321. data/generated/google/apis/managedidentities_v1/representations.rb +1 -0
  322. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  323. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +15 -0
  324. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +2 -0
  325. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  326. data/generated/google/apis/managedidentities_v1beta1/classes.rb +15 -0
  327. data/generated/google/apis/managedidentities_v1beta1/representations.rb +2 -0
  328. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  329. data/generated/google/apis/memcache_v1beta2/service.rb +5 -5
  330. data/generated/google/apis/ml_v1.rb +1 -1
  331. data/generated/google/apis/ml_v1/classes.rb +7 -0
  332. data/generated/google/apis/ml_v1/representations.rb +1 -0
  333. data/generated/google/apis/ml_v1/service.rb +1 -1
  334. data/generated/google/apis/monitoring_v1.rb +1 -1
  335. data/generated/google/apis/monitoring_v1/classes.rb +15 -11
  336. data/generated/google/apis/monitoring_v3.rb +1 -1
  337. data/generated/google/apis/monitoring_v3/classes.rb +43 -37
  338. data/generated/google/apis/monitoring_v3/service.rb +5 -5
  339. data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
  340. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +68 -0
  341. data/generated/google/apis/networkmanagement_v1beta1/representations.rb +23 -0
  342. data/generated/google/apis/osconfig_v1.rb +3 -3
  343. data/generated/google/apis/osconfig_v1/classes.rb +0 -704
  344. data/generated/google/apis/osconfig_v1/representations.rb +0 -337
  345. data/generated/google/apis/osconfig_v1/service.rb +4 -4
  346. data/generated/google/apis/osconfig_v1beta.rb +3 -3
  347. data/generated/google/apis/osconfig_v1beta/classes.rb +0 -704
  348. data/generated/google/apis/osconfig_v1beta/representations.rb +0 -337
  349. data/generated/google/apis/osconfig_v1beta/service.rb +4 -4
  350. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  351. data/generated/google/apis/oslogin_v1alpha/classes.rb +2 -2
  352. data/generated/google/apis/oslogin_v1alpha/service.rb +13 -13
  353. data/generated/google/apis/people_v1.rb +1 -1
  354. data/generated/google/apis/people_v1/service.rb +8 -6
  355. data/generated/google/apis/playcustomapp_v1.rb +1 -1
  356. data/generated/google/apis/playcustomapp_v1/service.rb +2 -2
  357. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  358. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +20 -0
  359. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +13 -0
  360. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +479 -0
  361. data/generated/google/apis/pubsub_v1.rb +1 -1
  362. data/generated/google/apis/pubsub_v1/classes.rb +7 -0
  363. data/generated/google/apis/pubsub_v1/representations.rb +1 -0
  364. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  365. data/generated/google/apis/pubsub_v1beta2/classes.rb +7 -0
  366. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -0
  367. data/generated/google/apis/pubsublite_v1.rb +1 -1
  368. data/generated/google/apis/pubsublite_v1/classes.rb +72 -0
  369. data/generated/google/apis/pubsublite_v1/representations.rb +33 -0
  370. data/generated/google/apis/pubsublite_v1/service.rb +33 -0
  371. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  372. data/generated/google/apis/realtimebidding_v1/classes.rb +4 -4
  373. data/generated/google/apis/realtimebidding_v1/service.rb +4 -1
  374. data/generated/google/apis/recommender_v1.rb +1 -1
  375. data/generated/google/apis/recommender_v1/service.rb +4 -2
  376. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  377. data/generated/google/apis/recommender_v1beta1/service.rb +4 -2
  378. data/generated/google/apis/redis_v1.rb +1 -1
  379. data/generated/google/apis/redis_v1/classes.rb +5 -391
  380. data/generated/google/apis/redis_v1/representations.rb +0 -139
  381. data/generated/google/apis/redis_v1/service.rb +2 -2
  382. data/generated/google/apis/redis_v1beta1.rb +1 -1
  383. data/generated/google/apis/redis_v1beta1/classes.rb +33 -391
  384. data/generated/google/apis/redis_v1beta1/representations.rb +12 -137
  385. data/generated/google/apis/redis_v1beta1/service.rb +36 -2
  386. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  387. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  388. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  389. data/generated/google/apis/reseller_v1.rb +2 -2
  390. data/generated/google/apis/reseller_v1/classes.rb +151 -219
  391. data/generated/google/apis/reseller_v1/service.rb +122 -173
  392. data/generated/google/apis/run_v1.rb +1 -1
  393. data/generated/google/apis/run_v1/classes.rb +8 -132
  394. data/generated/google/apis/run_v1/representations.rb +0 -61
  395. data/generated/google/apis/run_v1/service.rb +0 -342
  396. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  397. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +7 -0
  398. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +1 -0
  399. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  400. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  401. data/generated/google/apis/sasportal_v1alpha1/classes.rb +20 -0
  402. data/generated/google/apis/sasportal_v1alpha1/representations.rb +13 -0
  403. data/generated/google/apis/sasportal_v1alpha1/service.rb +479 -0
  404. data/generated/google/apis/searchconsole_v1.rb +7 -1
  405. data/generated/google/apis/searchconsole_v1/classes.rb +388 -0
  406. data/generated/google/apis/searchconsole_v1/representations.rb +162 -0
  407. data/generated/google/apis/searchconsole_v1/service.rb +287 -0
  408. data/generated/google/apis/secretmanager_v1.rb +1 -1
  409. data/generated/google/apis/secretmanager_v1/classes.rb +168 -2
  410. data/generated/google/apis/secretmanager_v1/representations.rb +92 -0
  411. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  412. data/generated/google/apis/secretmanager_v1beta1/classes.rb +7 -0
  413. data/generated/google/apis/secretmanager_v1beta1/representations.rb +1 -0
  414. data/generated/google/apis/securitycenter_v1.rb +1 -1
  415. data/generated/google/apis/securitycenter_v1/classes.rb +5 -199
  416. data/generated/google/apis/securitycenter_v1/representations.rb +0 -72
  417. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  418. data/generated/google/apis/securitycenter_v1beta1/classes.rb +2 -196
  419. data/generated/google/apis/securitycenter_v1beta1/representations.rb +0 -72
  420. data/generated/google/apis/securitycenter_v1beta2.rb +1 -1
  421. data/generated/google/apis/securitycenter_v1beta2/classes.rb +2 -196
  422. data/generated/google/apis/securitycenter_v1beta2/representations.rb +0 -72
  423. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  424. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +12 -12
  425. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +32 -30
  426. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  427. data/generated/google/apis/servicecontrol_v1/classes.rb +6 -4
  428. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  429. data/generated/google/apis/servicecontrol_v2/classes.rb +5 -3
  430. data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
  431. data/generated/google/apis/servicedirectory_v1beta1/classes.rb +7 -0
  432. data/generated/google/apis/servicedirectory_v1beta1/representations.rb +1 -0
  433. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  434. data/generated/google/apis/servicemanagement_v1/classes.rb +0 -22
  435. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -13
  436. data/generated/google/apis/servicemanagement_v1/service.rb +0 -36
  437. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  438. data/generated/google/apis/servicenetworking_v1/classes.rb +0 -9
  439. data/generated/google/apis/servicenetworking_v1/representations.rb +0 -1
  440. data/generated/google/apis/sheets_v4.rb +1 -1
  441. data/generated/google/apis/sheets_v4/classes.rb +175 -85
  442. data/generated/google/apis/smartdevicemanagement_v1.rb +35 -0
  443. data/generated/google/apis/smartdevicemanagement_v1/classes.rb +313 -0
  444. data/generated/google/apis/smartdevicemanagement_v1/representations.rb +174 -0
  445. data/generated/google/apis/smartdevicemanagement_v1/service.rb +312 -0
  446. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  447. data/generated/google/apis/sourcerepo_v1/classes.rb +250 -400
  448. data/generated/google/apis/sourcerepo_v1/service.rb +40 -49
  449. data/generated/google/apis/spanner_v1.rb +1 -1
  450. data/generated/google/apis/spanner_v1/classes.rb +7 -0
  451. data/generated/google/apis/spanner_v1/representations.rb +1 -0
  452. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  453. data/generated/google/apis/{sql_v1beta4.rb → sqladmin_v1beta4.rb} +5 -5
  454. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/classes.rb +180 -104
  455. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/representations.rb +120 -87
  456. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/service.rb +244 -244
  457. data/generated/google/apis/storage_v1.rb +1 -1
  458. data/generated/google/apis/storage_v1/classes.rb +2 -10
  459. data/generated/google/apis/storage_v1/representations.rb +0 -1
  460. data/generated/google/apis/storage_v1/service.rb +3 -2
  461. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  462. data/generated/google/apis/storagetransfer_v1/service.rb +1 -1
  463. data/generated/google/apis/{appsactivity_v1.rb → sts_v1.rb} +9 -11
  464. data/generated/google/apis/sts_v1/classes.rb +120 -0
  465. data/generated/google/apis/sts_v1/representations.rb +59 -0
  466. data/generated/google/apis/sts_v1/service.rb +90 -0
  467. data/generated/google/apis/sts_v1beta.rb +32 -0
  468. data/generated/google/apis/sts_v1beta/classes.rb +194 -0
  469. data/generated/google/apis/sts_v1beta/representations.rb +61 -0
  470. data/generated/google/apis/sts_v1beta/service.rb +92 -0
  471. data/generated/google/apis/tagmanager_v2.rb +1 -1
  472. data/generated/google/apis/tasks_v1.rb +1 -1
  473. data/generated/google/apis/tasks_v1/classes.rb +1 -1
  474. data/generated/google/apis/tasks_v1/service.rb +4 -3
  475. data/generated/google/apis/testing_v1.rb +1 -1
  476. data/generated/google/apis/testing_v1/classes.rb +2 -2
  477. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  478. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  479. data/generated/google/apis/tpu_v1.rb +1 -1
  480. data/generated/google/apis/tpu_v1/classes.rb +43 -0
  481. data/generated/google/apis/tpu_v1/representations.rb +18 -0
  482. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  483. data/generated/google/apis/tpu_v1alpha1/classes.rb +43 -0
  484. data/generated/google/apis/tpu_v1alpha1/representations.rb +18 -0
  485. data/generated/google/apis/translate_v3.rb +1 -1
  486. data/generated/google/apis/translate_v3/classes.rb +2 -2
  487. data/generated/google/apis/vault_v1.rb +1 -1
  488. data/generated/google/apis/vault_v1/classes.rb +80 -103
  489. data/generated/google/apis/vault_v1/service.rb +31 -37
  490. data/generated/google/apis/verifiedaccess_v1.rb +1 -1
  491. data/generated/google/apis/verifiedaccess_v1/classes.rb +20 -27
  492. data/generated/google/apis/videointelligence_v1.rb +1 -1
  493. data/generated/google/apis/videointelligence_v1/classes.rb +308 -13
  494. data/generated/google/apis/videointelligence_v1/representations.rb +162 -3
  495. data/generated/google/apis/videointelligence_v1/service.rb +31 -0
  496. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  497. data/generated/google/apis/videointelligence_v1beta2/classes.rb +308 -13
  498. data/generated/google/apis/videointelligence_v1beta2/representations.rb +162 -3
  499. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  500. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +308 -13
  501. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +162 -3
  502. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  503. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +308 -13
  504. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +162 -3
  505. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  506. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +224 -13
  507. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +128 -3
  508. data/generated/google/apis/vision_v1.rb +1 -1
  509. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  510. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  511. data/generated/google/apis/websecurityscanner_v1.rb +1 -1
  512. data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
  513. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  514. data/generated/google/apis/workflowexecutions_v1beta.rb +34 -0
  515. data/generated/google/apis/workflowexecutions_v1beta/classes.rb +155 -0
  516. data/generated/google/apis/workflowexecutions_v1beta/representations.rb +88 -0
  517. data/generated/google/apis/workflowexecutions_v1beta/service.rb +211 -0
  518. data/generated/google/apis/workflows_v1beta.rb +34 -0
  519. data/generated/google/apis/workflows_v1beta/classes.rb +406 -0
  520. data/generated/google/apis/workflows_v1beta/representations.rb +173 -0
  521. data/generated/google/apis/workflows_v1beta/service.rb +437 -0
  522. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  523. data/generated/google/apis/youtube_v3.rb +1 -1
  524. data/generated/google/apis/youtube_v3/classes.rb +12 -945
  525. data/generated/google/apis/youtube_v3/representations.rb +0 -445
  526. data/generated/google/apis/youtube_v3/service.rb +2 -197
  527. data/google-api-client.gemspec +2 -1
  528. data/lib/google/apis/version.rb +1 -1
  529. metadata +70 -16
  530. data/generated/google/apis/appsactivity_v1/classes.rb +0 -415
  531. data/generated/google/apis/appsactivity_v1/representations.rb +0 -209
  532. data/generated/google/apis/appsactivity_v1/service.rb +0 -126
  533. data/generated/google/apis/plus_v1.rb +0 -43
  534. data/generated/google/apis/plus_v1/classes.rb +0 -2094
  535. data/generated/google/apis/plus_v1/representations.rb +0 -907
  536. data/generated/google/apis/plus_v1/service.rb +0 -451
@@ -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
 
@@ -402,6 +414,15 @@ module Google
402
414
  end
403
415
  end
404
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
+
405
426
  class LogBucket
406
427
  # @private
407
428
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -523,6 +544,17 @@ module Google
523
544
  end
524
545
  end
525
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
+
526
558
  class MetricDescriptor
527
559
  # @private
528
560
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -85,6 +85,38 @@ module Google
85
85
  execute_or_queue_command(command, &block)
86
86
  end
87
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
+
88
120
  # Creates a new exclusion in a specified parent resource. Only log entries
89
121
  # belonging to that resource can be excluded. You can have up to 10 exclusions
90
122
  # in a resource.
@@ -493,6 +525,164 @@ module Google
493
525
  execute_or_queue_command(command, &block)
494
526
  end
495
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
+
496
686
  # Deletes all the log entries in a log. The log reappears if it receives new
497
687
  # entries. Log entries written shortly before the delete operation might not be
498
688
  # deleted. Entries received after the delete operation with a timestamp before
@@ -1557,17 +1747,15 @@ module Google
1557
1747
  execute_or_queue_command(command, &block)
1558
1748
  end
1559
1749
 
1560
- # Deletes all the log entries in a log. The log reappears if it receives new
1561
- # entries. Log entries written shortly before the delete operation might not be
1562
- # deleted. Entries received after the delete operation with a timestamp before
1563
- # the operation will be deleted.
1564
- # @param [String] log_name
1565
- # Required. The resource name of the log to delete: "projects/[PROJECT_ID]/logs/[
1566
- # LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[
1567
- # BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID]
1568
- # must be URL-encoded. For example, "projects/my-project-id/logs/syslog", "
1569
- # organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
1570
- # For more information about log names, see LogEntry.
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.
1571
1759
  # @param [String] fields
1572
1760
  # Selector specifying which fields to include in a partial response.
1573
1761
  # @param [String] quota_user
@@ -1577,39 +1765,33 @@ module Google
1577
1765
  # Request-specific options
1578
1766
  #
1579
1767
  # @yield [result, err] Result & error if block supplied
1580
- # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
1768
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
1581
1769
  # @yieldparam err [StandardError] error object if request failed
1582
1770
  #
1583
- # @return [Google::Apis::LoggingV2::Empty]
1771
+ # @return [Google::Apis::LoggingV2::LogView]
1584
1772
  #
1585
1773
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1586
1774
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1587
1775
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1588
- def delete_folder_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
1589
- command = make_simple_command(:delete, 'v2/{+logName}', options)
1590
- command.response_representation = Google::Apis::LoggingV2::Empty::Representation
1591
- command.response_class = Google::Apis::LoggingV2::Empty
1592
- command.params['logName'] = log_name unless log_name.nil?
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?
1593
1784
  command.query['fields'] = fields unless fields.nil?
1594
1785
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1595
1786
  execute_or_queue_command(command, &block)
1596
1787
  end
1597
1788
 
1598
- # Lists the logs in projects, organizations, folders, or billing accounts. Only
1599
- # logs that have entries are listed.
1600
- # @param [String] parent
1601
- # Required. The resource name that owns the logs: "projects/[PROJECT_ID]" "
1602
- # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
1603
- # folders/[FOLDER_ID]"
1604
- # @param [Fixnum] page_size
1605
- # Optional. The maximum number of results to return from this request. Non-
1606
- # positive values are ignored. The presence of nextPageToken in the response
1607
- # indicates that more results might be available.
1608
- # @param [String] page_token
1609
- # Optional. If present, then retrieve the next batch of results from the
1610
- # preceding call to this method. pageToken must be the value of nextPageToken
1611
- # from the previous response. The values of other method parameters should be
1612
- # identical to those in the previous call.
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".
1613
1795
  # @param [String] fields
1614
1796
  # Selector specifying which fields to include in a partial response.
1615
1797
  # @param [String] quota_user
@@ -1619,46 +1801,29 @@ module Google
1619
1801
  # Request-specific options
1620
1802
  #
1621
1803
  # @yield [result, err] Result & error if block supplied
1622
- # @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
1804
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
1623
1805
  # @yieldparam err [StandardError] error object if request failed
1624
1806
  #
1625
- # @return [Google::Apis::LoggingV2::ListLogsResponse]
1807
+ # @return [Google::Apis::LoggingV2::Empty]
1626
1808
  #
1627
1809
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1628
1810
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1629
1811
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1630
- def list_folder_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1631
- command = make_simple_command(:get, 'v2/{+parent}/logs', options)
1632
- command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
1633
- command.response_class = Google::Apis::LoggingV2::ListLogsResponse
1634
- command.params['parent'] = parent unless parent.nil?
1635
- command.query['pageSize'] = page_size unless page_size.nil?
1636
- command.query['pageToken'] = page_token unless page_token.nil?
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?
1637
1817
  command.query['fields'] = fields unless fields.nil?
1638
1818
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1639
1819
  execute_or_queue_command(command, &block)
1640
1820
  end
1641
1821
 
1642
- # Creates a sink that exports specified log entries to a destination. The export
1643
- # of newly-ingested log entries begins immediately, unless the sink's
1644
- # writer_identity is not permitted to write to the destination. A sink can
1645
- # export log entries only from the resource owning the sink.
1646
- # @param [String] parent
1647
- # Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "
1648
- # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
1649
- # folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/
1650
- # 123456789".
1651
- # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
1652
- # @param [Boolean] unique_writer_identity
1653
- # Optional. Determines the kind of IAM identity returned as writer_identity in
1654
- # the new sink. If this value is omitted or set to false, and if the sink's
1655
- # parent is a project, then the value returned as writer_identity is the same
1656
- # group or service account used by Logging before the addition of writer
1657
- # identities to this API. The sink's destination must be in the same project as
1658
- # the sink itself.If this field is set to true, or if the sink is owned by a non-
1659
- # project resource such as an organization, then the value of writer_identity
1660
- # will be a unique service account used only for exports from the new sink. For
1661
- # more information, see writer_identity in LogSink.
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".
1662
1827
  # @param [String] fields
1663
1828
  # Selector specifying which fields to include in a partial response.
1664
1829
  # @param [String] quota_user
@@ -1668,35 +1833,37 @@ module Google
1668
1833
  # Request-specific options
1669
1834
  #
1670
1835
  # @yield [result, err] Result & error if block supplied
1671
- # @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
1836
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
1672
1837
  # @yieldparam err [StandardError] error object if request failed
1673
1838
  #
1674
- # @return [Google::Apis::LoggingV2::LogSink]
1839
+ # @return [Google::Apis::LoggingV2::LogView]
1675
1840
  #
1676
1841
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1677
1842
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1678
1843
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1679
- def create_folder_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
1680
- command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
1681
- command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
1682
- command.request_object = log_sink_object
1683
- command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
1684
- command.response_class = Google::Apis::LoggingV2::LogSink
1685
- command.params['parent'] = parent unless parent.nil?
1686
- command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
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?
1687
1849
  command.query['fields'] = fields unless fields.nil?
1688
1850
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1689
1851
  execute_or_queue_command(command, &block)
1690
1852
  end
1691
1853
 
1692
- # Deletes a sink. If the sink has a unique writer_identity, then that service
1693
- # account is also deleted.
1694
- # @param [String] sink_name
1695
- # Required. The full resource name of the sink to delete, including the parent
1696
- # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
1697
- # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
1698
- # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
1699
- # Example: "projects/my-project-id/sinks/my-sink-id".
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.
1700
1867
  # @param [String] fields
1701
1868
  # Selector specifying which fields to include in a partial response.
1702
1869
  # @param [String] quota_user
@@ -1706,30 +1873,40 @@ module Google
1706
1873
  # Request-specific options
1707
1874
  #
1708
1875
  # @yield [result, err] Result & error if block supplied
1709
- # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
1876
+ # @yieldparam result [Google::Apis::LoggingV2::ListViewsResponse] parsed result object
1710
1877
  # @yieldparam err [StandardError] error object if request failed
1711
1878
  #
1712
- # @return [Google::Apis::LoggingV2::Empty]
1879
+ # @return [Google::Apis::LoggingV2::ListViewsResponse]
1713
1880
  #
1714
1881
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1715
1882
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1716
1883
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1717
- def delete_folder_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
1718
- command = make_simple_command(:delete, 'v2/{+sinkName}', options)
1719
- command.response_representation = Google::Apis::LoggingV2::Empty::Representation
1720
- command.response_class = Google::Apis::LoggingV2::Empty
1721
- command.params['sinkName'] = sink_name unless sink_name.nil?
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?
1722
1891
  command.query['fields'] = fields unless fields.nil?
1723
1892
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1724
1893
  execute_or_queue_command(command, &block)
1725
1894
  end
1726
1895
 
1727
- # Gets a sink.
1728
- # @param [String] sink_name
1729
- # Required. The resource name of the sink: "projects/[PROJECT_ID]/sinks/[SINK_ID]
1730
- # " "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
1731
- # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
1732
- # Example: "projects/my-project-id/sinks/my-sink-id".
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.
1733
1910
  # @param [String] fields
1734
1911
  # Selector specifying which fields to include in a partial response.
1735
1912
  # @param [String] quota_user
@@ -1739,18 +1916,221 @@ module Google
1739
1916
  # Request-specific options
1740
1917
  #
1741
1918
  # @yield [result, err] Result & error if block supplied
1742
- # @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
1919
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
1743
1920
  # @yieldparam err [StandardError] error object if request failed
1744
1921
  #
1745
- # @return [Google::Apis::LoggingV2::LogSink]
1922
+ # @return [Google::Apis::LoggingV2::LogView]
1746
1923
  #
1747
1924
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1748
1925
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1749
1926
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1750
- def get_folder_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
1751
- command = make_simple_command(:get, 'v2/{+sinkName}', options)
1752
- command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
1753
- command.response_class = Google::Apis::LoggingV2::LogSink
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
+
1940
+ # Deletes all the log entries in a log. The log reappears if it receives new
1941
+ # entries. Log entries written shortly before the delete operation might not be
1942
+ # deleted. Entries received after the delete operation with a timestamp before
1943
+ # the operation will be deleted.
1944
+ # @param [String] log_name
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.
1951
+ # @param [String] fields
1952
+ # Selector specifying which fields to include in a partial response.
1953
+ # @param [String] quota_user
1954
+ # Available to use for quota purposes for server-side applications. Can be any
1955
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1956
+ # @param [Google::Apis::RequestOptions] options
1957
+ # Request-specific options
1958
+ #
1959
+ # @yield [result, err] Result & error if block supplied
1960
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
1961
+ # @yieldparam err [StandardError] error object if request failed
1962
+ #
1963
+ # @return [Google::Apis::LoggingV2::Empty]
1964
+ #
1965
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1966
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1967
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1968
+ def delete_folder_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
1969
+ command = make_simple_command(:delete, 'v2/{+logName}', options)
1970
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
1971
+ command.response_class = Google::Apis::LoggingV2::Empty
1972
+ command.params['logName'] = log_name unless log_name.nil?
1973
+ command.query['fields'] = fields unless fields.nil?
1974
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1975
+ execute_or_queue_command(command, &block)
1976
+ end
1977
+
1978
+ # Lists the logs in projects, organizations, folders, or billing accounts. Only
1979
+ # logs that have entries are listed.
1980
+ # @param [String] parent
1981
+ # Required. The resource name that owns the logs: "projects/[PROJECT_ID]" "
1982
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
1983
+ # folders/[FOLDER_ID]"
1984
+ # @param [Fixnum] page_size
1985
+ # Optional. The maximum number of results to return from this request. Non-
1986
+ # positive values are ignored. The presence of nextPageToken in the response
1987
+ # indicates that more results might be available.
1988
+ # @param [String] page_token
1989
+ # Optional. If present, then retrieve the next batch of results from the
1990
+ # preceding call to this method. pageToken must be the value of nextPageToken
1991
+ # from the previous response. The values of other method parameters should be
1992
+ # identical to those in the previous call.
1993
+ # @param [String] fields
1994
+ # Selector specifying which fields to include in a partial response.
1995
+ # @param [String] quota_user
1996
+ # Available to use for quota purposes for server-side applications. Can be any
1997
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1998
+ # @param [Google::Apis::RequestOptions] options
1999
+ # Request-specific options
2000
+ #
2001
+ # @yield [result, err] Result & error if block supplied
2002
+ # @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
2003
+ # @yieldparam err [StandardError] error object if request failed
2004
+ #
2005
+ # @return [Google::Apis::LoggingV2::ListLogsResponse]
2006
+ #
2007
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2008
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2009
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2010
+ def list_folder_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2011
+ command = make_simple_command(:get, 'v2/{+parent}/logs', options)
2012
+ command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
2013
+ command.response_class = Google::Apis::LoggingV2::ListLogsResponse
2014
+ command.params['parent'] = parent unless parent.nil?
2015
+ command.query['pageSize'] = page_size unless page_size.nil?
2016
+ command.query['pageToken'] = page_token unless page_token.nil?
2017
+ command.query['fields'] = fields unless fields.nil?
2018
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2019
+ execute_or_queue_command(command, &block)
2020
+ end
2021
+
2022
+ # Creates a sink that exports specified log entries to a destination. The export
2023
+ # of newly-ingested log entries begins immediately, unless the sink's
2024
+ # writer_identity is not permitted to write to the destination. A sink can
2025
+ # export log entries only from the resource owning the sink.
2026
+ # @param [String] parent
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".
2031
+ # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
2032
+ # @param [Boolean] unique_writer_identity
2033
+ # Optional. Determines the kind of IAM identity returned as writer_identity in
2034
+ # the new sink. If this value is omitted or set to false, and if the sink's
2035
+ # parent is a project, then the value returned as writer_identity is the same
2036
+ # group or service account used by Logging before the addition of writer
2037
+ # identities to this API. The sink's destination must be in the same project as
2038
+ # the sink itself.If this field is set to true, or if the sink is owned by a non-
2039
+ # project resource such as an organization, then the value of writer_identity
2040
+ # will be a unique service account used only for exports from the new sink. For
2041
+ # more information, see writer_identity in LogSink.
2042
+ # @param [String] fields
2043
+ # Selector specifying which fields to include in a partial response.
2044
+ # @param [String] quota_user
2045
+ # Available to use for quota purposes for server-side applications. Can be any
2046
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2047
+ # @param [Google::Apis::RequestOptions] options
2048
+ # Request-specific options
2049
+ #
2050
+ # @yield [result, err] Result & error if block supplied
2051
+ # @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
2052
+ # @yieldparam err [StandardError] error object if request failed
2053
+ #
2054
+ # @return [Google::Apis::LoggingV2::LogSink]
2055
+ #
2056
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2057
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2058
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2059
+ def create_folder_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
2060
+ command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
2061
+ command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
2062
+ command.request_object = log_sink_object
2063
+ command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
2064
+ command.response_class = Google::Apis::LoggingV2::LogSink
2065
+ command.params['parent'] = parent unless parent.nil?
2066
+ command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
2067
+ command.query['fields'] = fields unless fields.nil?
2068
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2069
+ execute_or_queue_command(command, &block)
2070
+ end
2071
+
2072
+ # Deletes a sink. If the sink has a unique writer_identity, then that service
2073
+ # account is also deleted.
2074
+ # @param [String] sink_name
2075
+ # Required. The full resource name of the sink to delete, including the parent
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]"
2079
+ # Example: "projects/my-project-id/sinks/my-sink-id".
2080
+ # @param [String] fields
2081
+ # Selector specifying which fields to include in a partial response.
2082
+ # @param [String] quota_user
2083
+ # Available to use for quota purposes for server-side applications. Can be any
2084
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2085
+ # @param [Google::Apis::RequestOptions] options
2086
+ # Request-specific options
2087
+ #
2088
+ # @yield [result, err] Result & error if block supplied
2089
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
2090
+ # @yieldparam err [StandardError] error object if request failed
2091
+ #
2092
+ # @return [Google::Apis::LoggingV2::Empty]
2093
+ #
2094
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2095
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2096
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2097
+ def delete_folder_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
2098
+ command = make_simple_command(:delete, 'v2/{+sinkName}', options)
2099
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
2100
+ command.response_class = Google::Apis::LoggingV2::Empty
2101
+ command.params['sinkName'] = sink_name unless sink_name.nil?
2102
+ command.query['fields'] = fields unless fields.nil?
2103
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2104
+ execute_or_queue_command(command, &block)
2105
+ end
2106
+
2107
+ # Gets a sink.
2108
+ # @param [String] sink_name
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]"
2112
+ # Example: "projects/my-project-id/sinks/my-sink-id".
2113
+ # @param [String] fields
2114
+ # Selector specifying which fields to include in a partial response.
2115
+ # @param [String] quota_user
2116
+ # Available to use for quota purposes for server-side applications. Can be any
2117
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2118
+ # @param [Google::Apis::RequestOptions] options
2119
+ # Request-specific options
2120
+ #
2121
+ # @yield [result, err] Result & error if block supplied
2122
+ # @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
2123
+ # @yieldparam err [StandardError] error object if request failed
2124
+ #
2125
+ # @return [Google::Apis::LoggingV2::LogSink]
2126
+ #
2127
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2128
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2129
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2130
+ def get_folder_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
2131
+ command = make_simple_command(:get, 'v2/{+sinkName}', options)
2132
+ command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
2133
+ command.response_class = Google::Apis::LoggingV2::LogSink
1754
2134
  command.params['sinkName'] = sink_name unless sink_name.nil?
1755
2135
  command.query['fields'] = fields unless fields.nil?
1756
2136
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -2167,17 +2547,15 @@ module Google
2167
2547
  execute_or_queue_command(command, &block)
2168
2548
  end
2169
2549
 
2170
- # Deletes all the log entries in a log. The log reappears if it receives new
2171
- # entries. Log entries written shortly before the delete operation might not be
2172
- # deleted. Entries received after the delete operation with a timestamp before
2173
- # the operation will be deleted.
2174
- # @param [String] log_name
2175
- # Required. The resource name of the log to delete: "projects/[PROJECT_ID]/logs/[
2176
- # LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[
2177
- # BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID]
2178
- # must be URL-encoded. For example, "projects/my-project-id/logs/syslog", "
2179
- # organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
2180
- # For more information about log names, see LogEntry.
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.
2181
2559
  # @param [String] fields
2182
2560
  # Selector specifying which fields to include in a partial response.
2183
2561
  # @param [String] quota_user
@@ -2187,39 +2565,33 @@ module Google
2187
2565
  # Request-specific options
2188
2566
  #
2189
2567
  # @yield [result, err] Result & error if block supplied
2190
- # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
2568
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
2191
2569
  # @yieldparam err [StandardError] error object if request failed
2192
2570
  #
2193
- # @return [Google::Apis::LoggingV2::Empty]
2571
+ # @return [Google::Apis::LoggingV2::LogView]
2194
2572
  #
2195
2573
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2196
2574
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2197
2575
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2198
- def delete_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
2199
- command = make_simple_command(:delete, 'v2/{+logName}', options)
2200
- command.response_representation = Google::Apis::LoggingV2::Empty::Representation
2201
- command.response_class = Google::Apis::LoggingV2::Empty
2202
- command.params['logName'] = log_name unless log_name.nil?
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?
2203
2584
  command.query['fields'] = fields unless fields.nil?
2204
2585
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2205
2586
  execute_or_queue_command(command, &block)
2206
2587
  end
2207
2588
 
2208
- # Lists the logs in projects, organizations, folders, or billing accounts. Only
2209
- # logs that have entries are listed.
2210
- # @param [String] parent
2211
- # Required. The resource name that owns the logs: "projects/[PROJECT_ID]" "
2212
- # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
2213
- # folders/[FOLDER_ID]"
2214
- # @param [Fixnum] page_size
2215
- # Optional. The maximum number of results to return from this request. Non-
2216
- # positive values are ignored. The presence of nextPageToken in the response
2217
- # indicates that more results might be available.
2218
- # @param [String] page_token
2219
- # Optional. If present, then retrieve the next batch of results from the
2220
- # preceding call to this method. pageToken must be the value of nextPageToken
2221
- # from the previous response. The values of other method parameters should be
2222
- # identical to those in the previous call.
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".
2223
2595
  # @param [String] fields
2224
2596
  # Selector specifying which fields to include in a partial response.
2225
2597
  # @param [String] quota_user
@@ -2229,29 +2601,227 @@ module Google
2229
2601
  # Request-specific options
2230
2602
  #
2231
2603
  # @yield [result, err] Result & error if block supplied
2232
- # @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
2604
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
2233
2605
  # @yieldparam err [StandardError] error object if request failed
2234
2606
  #
2235
- # @return [Google::Apis::LoggingV2::ListLogsResponse]
2607
+ # @return [Google::Apis::LoggingV2::Empty]
2236
2608
  #
2237
2609
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2238
2610
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2239
2611
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2240
- def list_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2241
- command = make_simple_command(:get, 'v2/{+parent}/logs', options)
2242
- command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
2243
- command.response_class = Google::Apis::LoggingV2::ListLogsResponse
2244
- command.params['parent'] = parent unless parent.nil?
2245
- command.query['pageSize'] = page_size unless page_size.nil?
2246
- command.query['pageToken'] = page_token unless page_token.nil?
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?
2247
2617
  command.query['fields'] = fields unless fields.nil?
2248
2618
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2249
2619
  execute_or_queue_command(command, &block)
2250
2620
  end
2251
2621
 
2252
- # Lists the descriptors for monitored resource types used by Logging.
2253
- # @param [Fixnum] page_size
2254
- # Optional. The maximum number of results to return from this request. Non-
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
+
2740
+ # Deletes all the log entries in a log. The log reappears if it receives new
2741
+ # entries. Log entries written shortly before the delete operation might not be
2742
+ # deleted. Entries received after the delete operation with a timestamp before
2743
+ # the operation will be deleted.
2744
+ # @param [String] log_name
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.
2751
+ # @param [String] fields
2752
+ # Selector specifying which fields to include in a partial response.
2753
+ # @param [String] quota_user
2754
+ # Available to use for quota purposes for server-side applications. Can be any
2755
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2756
+ # @param [Google::Apis::RequestOptions] options
2757
+ # Request-specific options
2758
+ #
2759
+ # @yield [result, err] Result & error if block supplied
2760
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
2761
+ # @yieldparam err [StandardError] error object if request failed
2762
+ #
2763
+ # @return [Google::Apis::LoggingV2::Empty]
2764
+ #
2765
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2766
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2767
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2768
+ def delete_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
2769
+ command = make_simple_command(:delete, 'v2/{+logName}', options)
2770
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
2771
+ command.response_class = Google::Apis::LoggingV2::Empty
2772
+ command.params['logName'] = log_name unless log_name.nil?
2773
+ command.query['fields'] = fields unless fields.nil?
2774
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2775
+ execute_or_queue_command(command, &block)
2776
+ end
2777
+
2778
+ # Lists the logs in projects, organizations, folders, or billing accounts. Only
2779
+ # logs that have entries are listed.
2780
+ # @param [String] parent
2781
+ # Required. The resource name that owns the logs: "projects/[PROJECT_ID]" "
2782
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
2783
+ # folders/[FOLDER_ID]"
2784
+ # @param [Fixnum] page_size
2785
+ # Optional. The maximum number of results to return from this request. Non-
2786
+ # positive values are ignored. The presence of nextPageToken in the response
2787
+ # indicates that more results might be available.
2788
+ # @param [String] page_token
2789
+ # Optional. If present, then retrieve the next batch of results from the
2790
+ # preceding call to this method. pageToken must be the value of nextPageToken
2791
+ # from the previous response. The values of other method parameters should be
2792
+ # identical to those in the previous call.
2793
+ # @param [String] fields
2794
+ # Selector specifying which fields to include in a partial response.
2795
+ # @param [String] quota_user
2796
+ # Available to use for quota purposes for server-side applications. Can be any
2797
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2798
+ # @param [Google::Apis::RequestOptions] options
2799
+ # Request-specific options
2800
+ #
2801
+ # @yield [result, err] Result & error if block supplied
2802
+ # @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
2803
+ # @yieldparam err [StandardError] error object if request failed
2804
+ #
2805
+ # @return [Google::Apis::LoggingV2::ListLogsResponse]
2806
+ #
2807
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2808
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2809
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2810
+ def list_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2811
+ command = make_simple_command(:get, 'v2/{+parent}/logs', options)
2812
+ command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
2813
+ command.response_class = Google::Apis::LoggingV2::ListLogsResponse
2814
+ command.params['parent'] = parent unless parent.nil?
2815
+ command.query['pageSize'] = page_size unless page_size.nil?
2816
+ command.query['pageToken'] = page_token unless page_token.nil?
2817
+ command.query['fields'] = fields unless fields.nil?
2818
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2819
+ execute_or_queue_command(command, &block)
2820
+ end
2821
+
2822
+ # Lists the descriptors for monitored resource types used by Logging.
2823
+ # @param [Fixnum] page_size
2824
+ # Optional. The maximum number of results to return from this request. Non-
2255
2825
  # positive values are ignored. The presence of nextPageToken in the response
2256
2826
  # indicates that more results might be available.
2257
2827
  # @param [String] page_token
@@ -2565,23 +3135,270 @@ module Google
2565
3135
  command.response_representation = Google::Apis::LoggingV2::LogExclusion::Representation
2566
3136
  command.response_class = Google::Apis::LoggingV2::LogExclusion
2567
3137
  command.params['name'] = name unless name.nil?
2568
- command.query['updateMask'] = update_mask unless update_mask.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?
2569
3388
  command.query['fields'] = fields unless fields.nil?
2570
3389
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2571
3390
  execute_or_queue_command(command, &block)
2572
3391
  end
2573
3392
 
2574
- # Creates a bucket that can be used to store log entries. Once a bucket has been
2575
- # created, the region cannot be changed.
3393
+ # Creates a view over logs in a bucket. A bucket may contain a maximum of 50
3394
+ # views.
2576
3395
  # @param [String] parent
2577
- # Required. The resource in which to create the bucket: "projects/[PROJECT_ID]/
2578
- # locations/[LOCATION_ID]" Example: "projects/my-logging-project/locations/
2579
- # global"
2580
- # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
2581
- # @param [String] bucket_id
2582
- # Required. A client-assigned identifier such as "my-bucket". Identifiers are
2583
- # limited to 100 characters and can include only letters, digits, underscores,
2584
- # hyphens, and periods.
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.
2585
3402
  # @param [String] fields
2586
3403
  # Selector specifying which fields to include in a partial response.
2587
3404
  # @param [String] quota_user
@@ -2591,37 +3408,33 @@ module Google
2591
3408
  # Request-specific options
2592
3409
  #
2593
3410
  # @yield [result, err] Result & error if block supplied
2594
- # @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
3411
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
2595
3412
  # @yieldparam err [StandardError] error object if request failed
2596
3413
  #
2597
- # @return [Google::Apis::LoggingV2::LogBucket]
3414
+ # @return [Google::Apis::LoggingV2::LogView]
2598
3415
  #
2599
3416
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2600
3417
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2601
3418
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2602
- def create_organization_location_bucket(parent, log_bucket_object = nil, bucket_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2603
- command = make_simple_command(:post, 'v2/{+parent}/buckets', options)
2604
- command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
2605
- command.request_object = log_bucket_object
2606
- command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
2607
- command.response_class = Google::Apis::LoggingV2::LogBucket
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
2608
3425
  command.params['parent'] = parent unless parent.nil?
2609
- command.query['bucketId'] = bucket_id unless bucket_id.nil?
3426
+ command.query['viewId'] = view_id unless view_id.nil?
2610
3427
  command.query['fields'] = fields unless fields.nil?
2611
3428
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2612
3429
  execute_or_queue_command(command, &block)
2613
3430
  end
2614
3431
 
2615
- # Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days,
2616
- # the bucket will be purged and all logs in the bucket will be permanently
2617
- # deleted.
3432
+ # Deletes a view from a bucket.
2618
3433
  # @param [String] name
2619
- # Required. The full resource name of the bucket to delete. "projects/[
2620
- # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
2621
- # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
2622
- # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
2623
- # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
2624
- # project-id/locations/my-location/buckets/my-bucket-id".
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".
2625
3438
  # @param [String] fields
2626
3439
  # Selector specifying which fields to include in a partial response.
2627
3440
  # @param [String] quota_user
@@ -2639,7 +3452,7 @@ module Google
2639
3452
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2640
3453
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2641
3454
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2642
- def delete_organization_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
3455
+ def delete_organization_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
2643
3456
  command = make_simple_command(:delete, 'v2/{+name}', options)
2644
3457
  command.response_representation = Google::Apis::LoggingV2::Empty::Representation
2645
3458
  command.response_class = Google::Apis::LoggingV2::Empty
@@ -2649,14 +3462,11 @@ module Google
2649
3462
  execute_or_queue_command(command, &block)
2650
3463
  end
2651
3464
 
2652
- # Gets a bucket (Beta).
3465
+ # Gets a view.
2653
3466
  # @param [String] name
2654
- # Required. The resource name of the bucket: "projects/[PROJECT_ID]/locations/[
2655
- # LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[
2656
- # LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/
2657
- # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[
2658
- # LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-project-id/locations/
2659
- # my-location/buckets/my-bucket-id".
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".
2660
3470
  # @param [String] fields
2661
3471
  # Selector specifying which fields to include in a partial response.
2662
3472
  # @param [String] quota_user
@@ -2666,32 +3476,28 @@ module Google
2666
3476
  # Request-specific options
2667
3477
  #
2668
3478
  # @yield [result, err] Result & error if block supplied
2669
- # @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
3479
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
2670
3480
  # @yieldparam err [StandardError] error object if request failed
2671
3481
  #
2672
- # @return [Google::Apis::LoggingV2::LogBucket]
3482
+ # @return [Google::Apis::LoggingV2::LogView]
2673
3483
  #
2674
3484
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2675
3485
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2676
3486
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2677
- 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)
2678
3488
  command = make_simple_command(:get, 'v2/{+name}', options)
2679
- command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
2680
- command.response_class = Google::Apis::LoggingV2::LogBucket
3489
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
3490
+ command.response_class = Google::Apis::LoggingV2::LogView
2681
3491
  command.params['name'] = name unless name.nil?
2682
3492
  command.query['fields'] = fields unless fields.nil?
2683
3493
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2684
3494
  execute_or_queue_command(command, &block)
2685
3495
  end
2686
3496
 
2687
- # Lists buckets (Beta).
3497
+ # Lists views on a bucket..
2688
3498
  # @param [String] parent
2689
- # Required. The parent resource whose buckets are to be listed: "projects/[
2690
- # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
2691
- # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
2692
- # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" Note: The
2693
- # locations portion of the resource must be specified, but supplying the
2694
- # character - in place of LOCATION_ID will return all buckets.
3499
+ # Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/
3500
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
2695
3501
  # @param [Fixnum] page_size
2696
3502
  # Optional. The maximum number of results to return from this request. Non-
2697
3503
  # positive values are ignored. The presence of nextPageToken in the response
@@ -2710,18 +3516,18 @@ module Google
2710
3516
  # Request-specific options
2711
3517
  #
2712
3518
  # @yield [result, err] Result & error if block supplied
2713
- # @yieldparam result [Google::Apis::LoggingV2::ListBucketsResponse] parsed result object
3519
+ # @yieldparam result [Google::Apis::LoggingV2::ListViewsResponse] parsed result object
2714
3520
  # @yieldparam err [StandardError] error object if request failed
2715
3521
  #
2716
- # @return [Google::Apis::LoggingV2::ListBucketsResponse]
3522
+ # @return [Google::Apis::LoggingV2::ListViewsResponse]
2717
3523
  #
2718
3524
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2719
3525
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2720
3526
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2721
- def list_organization_location_buckets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2722
- command = make_simple_command(:get, 'v2/{+parent}/buckets', options)
2723
- command.response_representation = Google::Apis::LoggingV2::ListBucketsResponse::Representation
2724
- 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
2725
3531
  command.params['parent'] = parent unless parent.nil?
2726
3532
  command.query['pageSize'] = page_size unless page_size.nil?
2727
3533
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -2730,27 +3536,20 @@ module Google
2730
3536
  execute_or_queue_command(command, &block)
2731
3537
  end
2732
3538
 
2733
- # Updates a bucket. This method replaces the following fields in the existing
2734
- # bucket with values from the new bucket: retention_periodIf the retention
2735
- # period is decreased and the bucket is locked, FAILED_PRECONDITION will be
2736
- # returned.If the bucket has a LifecycleState of DELETE_REQUESTED,
2737
- # FAILED_PRECONDITION will be returned.A buckets region may not be modified
2738
- # 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.
2739
3541
  # @param [String] name
2740
- # Required. The full resource name of the bucket to update. "projects/[
2741
- # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
2742
- # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
2743
- # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
2744
- # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
2745
- # project-id/locations/my-location/buckets/my-bucket-id". Also requires
2746
- # permission "resourcemanager.projects.updateLiens" to set the locked property
2747
- # @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
2748
3547
  # @param [String] update_mask
2749
- # Required. Field mask that specifies the fields in bucket that need an update.
2750
- # A bucket field will be overwritten if, and only if, it is in the update mask.
2751
- # name and output only fields cannot be updated.For a detailed FieldMask
2752
- # definition, see https://developers.google.com/protocol-buffers/docs/reference/
2753
- # 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.
2754
3553
  # @param [String] fields
2755
3554
  # Selector specifying which fields to include in a partial response.
2756
3555
  # @param [String] quota_user
@@ -2760,20 +3559,20 @@ module Google
2760
3559
  # Request-specific options
2761
3560
  #
2762
3561
  # @yield [result, err] Result & error if block supplied
2763
- # @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
3562
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
2764
3563
  # @yieldparam err [StandardError] error object if request failed
2765
3564
  #
2766
- # @return [Google::Apis::LoggingV2::LogBucket]
3565
+ # @return [Google::Apis::LoggingV2::LogView]
2767
3566
  #
2768
3567
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2769
3568
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2770
3569
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2771
- 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)
2772
3571
  command = make_simple_command(:patch, 'v2/{+name}', options)
2773
- command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
2774
- command.request_object = log_bucket_object
2775
- command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
2776
- 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
2777
3576
  command.params['name'] = name unless name.nil?
2778
3577
  command.query['updateMask'] = update_mask unless update_mask.nil?
2779
3578
  command.query['fields'] = fields unless fields.nil?
@@ -2781,45 +3580,6 @@ module Google
2781
3580
  execute_or_queue_command(command, &block)
2782
3581
  end
2783
3582
 
2784
- # Undeletes a bucket. A bucket that has been deleted may be undeleted within the
2785
- # grace period of 7 days.
2786
- # @param [String] name
2787
- # Required. The full resource name of the bucket to undelete. "projects/[
2788
- # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
2789
- # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
2790
- # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
2791
- # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
2792
- # project-id/locations/my-location/buckets/my-bucket-id".
2793
- # @param [Google::Apis::LoggingV2::UndeleteBucketRequest] undelete_bucket_request_object
2794
- # @param [String] fields
2795
- # Selector specifying which fields to include in a partial response.
2796
- # @param [String] quota_user
2797
- # Available to use for quota purposes for server-side applications. Can be any
2798
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2799
- # @param [Google::Apis::RequestOptions] options
2800
- # Request-specific options
2801
- #
2802
- # @yield [result, err] Result & error if block supplied
2803
- # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
2804
- # @yieldparam err [StandardError] error object if request failed
2805
- #
2806
- # @return [Google::Apis::LoggingV2::Empty]
2807
- #
2808
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2809
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2810
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2811
- def undelete_organization_location_bucket(name, undelete_bucket_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2812
- command = make_simple_command(:post, 'v2/{+name}:undelete', options)
2813
- command.request_representation = Google::Apis::LoggingV2::UndeleteBucketRequest::Representation
2814
- command.request_object = undelete_bucket_request_object
2815
- command.response_representation = Google::Apis::LoggingV2::Empty::Representation
2816
- command.response_class = Google::Apis::LoggingV2::Empty
2817
- command.params['name'] = name unless name.nil?
2818
- command.query['fields'] = fields unless fields.nil?
2819
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2820
- execute_or_queue_command(command, &block)
2821
- end
2822
-
2823
3583
  # Deletes all the log entries in a log. The log reappears if it receives new
2824
3584
  # entries. Log entries written shortly before the delete operation might not be
2825
3585
  # deleted. Entries received after the delete operation with a timestamp before
@@ -3624,6 +4384,196 @@ module Google
3624
4384
  execute_or_queue_command(command, &block)
3625
4385
  end
3626
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
+
3627
4577
  # Deletes all the log entries in a log. The log reappears if it receives new
3628
4578
  # entries. Log entries written shortly before the delete operation might not be
3629
4579
  # deleted. Entries received after the delete operation with a timestamp before