google-api-client 0.45.0 → 0.48.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (542) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/autoapprove.yml +49 -0
  3. data/.github/workflows/release-please.yml +77 -0
  4. data/.gitignore +2 -0
  5. data/.kokoro/trampoline.sh +0 -0
  6. data/CHANGELOG.md +664 -188
  7. data/Gemfile +1 -0
  8. data/Rakefile +31 -3
  9. data/api_list_config.yaml +8 -0
  10. data/bin/generate-api +77 -15
  11. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +7 -9
  12. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
  13. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
  14. data/generated/google/apis/accessapproval_v1/classes.rb +23 -16
  15. data/generated/google/apis/accessapproval_v1/service.rb +27 -27
  16. data/generated/google/apis/accessapproval_v1.rb +1 -1
  17. data/generated/google/apis/accesscontextmanager_v1/classes.rb +68 -0
  18. data/generated/google/apis/accesscontextmanager_v1/representations.rb +30 -0
  19. data/generated/google/apis/accesscontextmanager_v1/service.rb +180 -0
  20. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  21. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +30 -30
  22. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  23. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +25 -0
  24. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +15 -0
  25. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  26. data/generated/google/apis/admin_directory_v1/classes.rb +135 -0
  27. data/generated/google/apis/admin_directory_v1/representations.rb +62 -0
  28. data/generated/google/apis/admin_directory_v1/service.rb +72 -0
  29. data/generated/google/apis/admin_directory_v1.rb +1 -1
  30. data/generated/google/apis/admin_reports_v1.rb +1 -1
  31. data/generated/google/apis/admob_v1/classes.rb +29 -29
  32. data/generated/google/apis/admob_v1/service.rb +2 -1
  33. data/generated/google/apis/admob_v1.rb +3 -2
  34. data/generated/google/apis/adsense_v1_4/service.rb +4 -1
  35. data/generated/google/apis/adsense_v1_4.rb +1 -1
  36. data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +1361 -0
  37. data/generated/google/apis/analyticsadmin_v1alpha/representations.rb +610 -0
  38. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +2134 -0
  39. data/generated/google/apis/analyticsadmin_v1alpha.rb +43 -0
  40. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +56 -11
  41. data/generated/google/apis/analyticsdata_v1alpha/representations.rb +17 -0
  42. data/generated/google/apis/analyticsdata_v1alpha/service.rb +41 -0
  43. data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
  44. data/generated/google/apis/androidmanagement_v1/classes.rb +29 -26
  45. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  46. data/generated/google/apis/androidpublisher_v3/classes.rb +9 -1
  47. data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
  48. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  49. data/generated/google/apis/apigee_v1/classes.rb +252 -66
  50. data/generated/google/apis/apigee_v1/representations.rb +88 -19
  51. data/generated/google/apis/apigee_v1/service.rb +244 -38
  52. data/generated/google/apis/apigee_v1.rb +1 -1
  53. data/generated/google/apis/appsmarket_v2.rb +1 -1
  54. data/generated/google/apis/area120tables_v1alpha1/classes.rb +423 -0
  55. data/generated/google/apis/{apigateway_v1alpha1 → area120tables_v1alpha1}/representations.rb +67 -69
  56. data/generated/google/apis/area120tables_v1alpha1/service.rb +381 -0
  57. data/generated/google/apis/area120tables_v1alpha1.rb +46 -0
  58. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +7 -0
  59. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +1 -0
  60. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  61. data/generated/google/apis/assuredworkloads_v1beta1/classes.rb +264 -0
  62. data/generated/google/apis/assuredworkloads_v1beta1/representations.rb +129 -0
  63. data/generated/google/apis/assuredworkloads_v1beta1.rb +1 -1
  64. data/generated/google/apis/bigquery_v2/classes.rb +212 -23
  65. data/generated/google/apis/bigquery_v2/representations.rb +69 -0
  66. data/generated/google/apis/bigquery_v2/service.rb +47 -1
  67. data/generated/google/apis/bigquery_v2.rb +1 -1
  68. data/generated/google/apis/billingbudgets_v1/classes.rb +373 -0
  69. data/generated/google/apis/billingbudgets_v1/representations.rb +171 -0
  70. data/generated/google/apis/billingbudgets_v1/service.rb +249 -0
  71. data/generated/google/apis/billingbudgets_v1.rb +38 -0
  72. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +12 -1
  73. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
  74. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  75. data/generated/google/apis/binaryauthorization_v1/classes.rb +189 -2
  76. data/generated/google/apis/binaryauthorization_v1/representations.rb +74 -0
  77. data/generated/google/apis/binaryauthorization_v1/service.rb +35 -0
  78. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  79. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +189 -2
  80. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +74 -0
  81. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +35 -0
  82. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  83. data/generated/google/apis/books_v1/service.rb +54 -54
  84. data/generated/google/apis/books_v1.rb +1 -1
  85. data/generated/google/apis/calendar_v3/classes.rb +2 -1
  86. data/generated/google/apis/calendar_v3.rb +1 -1
  87. data/generated/google/apis/chat_v1/classes.rb +84 -2
  88. data/generated/google/apis/chat_v1/representations.rb +36 -0
  89. data/generated/google/apis/chat_v1.rb +1 -1
  90. data/generated/google/apis/civicinfo_v2/classes.rb +0 -24
  91. data/generated/google/apis/civicinfo_v2/representations.rb +0 -3
  92. data/generated/google/apis/civicinfo_v2.rb +1 -1
  93. data/generated/google/apis/classroom_v1/classes.rb +21 -21
  94. data/generated/google/apis/classroom_v1.rb +1 -1
  95. data/generated/google/apis/cloudasset_v1/classes.rb +697 -0
  96. data/generated/google/apis/cloudasset_v1/representations.rb +304 -0
  97. data/generated/google/apis/cloudasset_v1/service.rb +171 -0
  98. data/generated/google/apis/cloudasset_v1.rb +1 -1
  99. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +3 -3
  100. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  101. data/generated/google/apis/cloudbilling_v1/classes.rb +1 -1
  102. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  103. data/generated/google/apis/cloudbuild_v1/classes.rb +2 -35
  104. data/generated/google/apis/cloudbuild_v1/representations.rb +0 -15
  105. data/generated/google/apis/cloudbuild_v1/service.rb +17 -6
  106. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  107. data/generated/google/apis/cloudfunctions_v1/classes.rb +12 -1
  108. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
  109. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  110. data/generated/google/apis/cloudidentity_v1/classes.rb +78 -98
  111. data/generated/google/apis/cloudidentity_v1/representations.rb +0 -17
  112. data/generated/google/apis/cloudidentity_v1/service.rb +85 -69
  113. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  114. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +188 -0
  115. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +94 -0
  116. data/generated/google/apis/cloudidentity_v1beta1/service.rb +179 -0
  117. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  118. data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
  119. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  120. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
  121. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  122. data/generated/google/apis/cloudresourcemanager_v2/service.rb +7 -7
  123. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  124. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +7 -7
  125. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  126. data/generated/google/apis/cloudsearch_v1/classes.rb +2 -1
  127. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  128. data/generated/google/apis/cloudshell_v1/classes.rb +342 -0
  129. data/generated/google/apis/cloudshell_v1/representations.rb +200 -0
  130. data/generated/google/apis/cloudshell_v1/service.rb +177 -0
  131. data/generated/google/apis/cloudshell_v1.rb +1 -1
  132. data/generated/google/apis/composer_v1/classes.rb +2 -3
  133. data/generated/google/apis/composer_v1.rb +1 -1
  134. data/generated/google/apis/composer_v1beta1/classes.rb +4 -4
  135. data/generated/google/apis/composer_v1beta1/service.rb +37 -35
  136. data/generated/google/apis/composer_v1beta1.rb +1 -1
  137. data/generated/google/apis/compute_alpha/classes.rb +633 -146
  138. data/generated/google/apis/compute_alpha/representations.rb +131 -8
  139. data/generated/google/apis/compute_alpha/service.rb +1995 -1013
  140. data/generated/google/apis/compute_alpha.rb +1 -1
  141. data/generated/google/apis/compute_beta/classes.rb +566 -94
  142. data/generated/google/apis/compute_beta/representations.rb +100 -1
  143. data/generated/google/apis/compute_beta/service.rb +805 -136
  144. data/generated/google/apis/compute_beta.rb +1 -1
  145. data/generated/google/apis/compute_v1/classes.rb +586 -72
  146. data/generated/google/apis/compute_v1/representations.rb +98 -1
  147. data/generated/google/apis/compute_v1/service.rb +741 -133
  148. data/generated/google/apis/compute_v1.rb +1 -1
  149. data/generated/google/apis/container_v1/classes.rb +22 -10
  150. data/generated/google/apis/container_v1.rb +1 -1
  151. data/generated/google/apis/container_v1beta1/classes.rb +22 -10
  152. data/generated/google/apis/container_v1beta1.rb +1 -1
  153. data/generated/google/apis/content_v2/classes.rb +510 -1217
  154. data/generated/google/apis/content_v2/service.rb +377 -650
  155. data/generated/google/apis/content_v2.rb +3 -4
  156. data/generated/google/apis/content_v2_1/classes.rb +1001 -1053
  157. data/generated/google/apis/content_v2_1/representations.rb +253 -0
  158. data/generated/google/apis/content_v2_1/service.rb +943 -802
  159. data/generated/google/apis/content_v2_1.rb +3 -4
  160. data/generated/google/apis/datacatalog_v1beta1/classes.rb +25 -1
  161. data/generated/google/apis/datacatalog_v1beta1/representations.rb +5 -0
  162. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  163. data/generated/google/apis/dataflow_v1b3/classes.rb +32 -8
  164. data/generated/google/apis/dataflow_v1b3/representations.rb +3 -0
  165. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  166. data/generated/google/apis/datafusion_v1.rb +1 -1
  167. data/generated/google/apis/datalabeling_v1beta1/classes.rb +6207 -0
  168. data/generated/google/apis/datalabeling_v1beta1/representations.rb +3156 -0
  169. data/generated/google/apis/datalabeling_v1beta1/service.rb +1762 -0
  170. data/generated/google/apis/datalabeling_v1beta1.rb +34 -0
  171. data/generated/google/apis/dataproc_v1/classes.rb +41 -3
  172. data/generated/google/apis/dataproc_v1/representations.rb +16 -0
  173. data/generated/google/apis/dataproc_v1.rb +1 -1
  174. data/generated/google/apis/dataproc_v1beta2/classes.rb +41 -3
  175. data/generated/google/apis/dataproc_v1beta2/representations.rb +16 -0
  176. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  177. data/generated/google/apis/datastore_v1/classes.rb +4 -4
  178. data/generated/google/apis/datastore_v1.rb +1 -1
  179. data/generated/google/apis/datastore_v1beta3/classes.rb +4 -4
  180. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  181. data/generated/google/apis/deploymentmanager_v2/classes.rb +203 -558
  182. data/generated/google/apis/deploymentmanager_v2/representations.rb +0 -132
  183. data/generated/google/apis/deploymentmanager_v2/service.rb +169 -213
  184. data/generated/google/apis/deploymentmanager_v2.rb +6 -4
  185. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +247 -609
  186. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +0 -132
  187. data/generated/google/apis/deploymentmanager_v2beta/service.rb +278 -359
  188. data/generated/google/apis/deploymentmanager_v2beta.rb +6 -5
  189. data/generated/google/apis/dfareporting_v3_3/classes.rb +0 -164
  190. data/generated/google/apis/dfareporting_v3_3/representations.rb +0 -42
  191. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  192. data/generated/google/apis/dfareporting_v3_4/classes.rb +0 -164
  193. data/generated/google/apis/dfareporting_v3_4/representations.rb +0 -42
  194. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  195. data/generated/google/apis/dialogflow_v2/classes.rb +677 -204
  196. data/generated/google/apis/dialogflow_v2/representations.rb +300 -87
  197. data/generated/google/apis/dialogflow_v2.rb +1 -1
  198. data/generated/google/apis/dialogflow_v2beta1/classes.rb +684 -212
  199. data/generated/google/apis/dialogflow_v2beta1/representations.rb +300 -87
  200. data/generated/google/apis/dialogflow_v2beta1/service.rb +62 -12
  201. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  202. data/generated/google/apis/dialogflow_v3beta1/classes.rb +813 -207
  203. data/generated/google/apis/dialogflow_v3beta1/representations.rb +354 -90
  204. data/generated/google/apis/dialogflow_v3beta1/service.rb +22 -9
  205. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  206. data/generated/google/apis/displayvideo_v1/classes.rb +216 -30
  207. data/generated/google/apis/displayvideo_v1/representations.rb +78 -0
  208. data/generated/google/apis/displayvideo_v1/service.rb +261 -18
  209. data/generated/google/apis/displayvideo_v1.rb +1 -1
  210. data/generated/google/apis/dlp_v2/classes.rb +59 -32
  211. data/generated/google/apis/dlp_v2/representations.rb +16 -0
  212. data/generated/google/apis/dlp_v2/service.rb +328 -328
  213. data/generated/google/apis/dlp_v2.rb +1 -1
  214. data/generated/google/apis/dns_v1/classes.rb +181 -0
  215. data/generated/google/apis/dns_v1/representations.rb +83 -0
  216. data/generated/google/apis/dns_v1/service.rb +11 -11
  217. data/generated/google/apis/dns_v1.rb +2 -2
  218. data/generated/google/apis/dns_v1beta2/classes.rb +182 -1
  219. data/generated/google/apis/dns_v1beta2/representations.rb +83 -0
  220. data/generated/google/apis/dns_v1beta2/service.rb +11 -11
  221. data/generated/google/apis/dns_v1beta2.rb +2 -2
  222. data/generated/google/apis/documentai_v1beta3/classes.rb +6149 -0
  223. data/generated/google/apis/documentai_v1beta3/representations.rb +2666 -0
  224. data/generated/google/apis/documentai_v1beta3/service.rb +263 -0
  225. data/generated/google/apis/documentai_v1beta3.rb +36 -0
  226. data/generated/google/apis/domains_v1alpha2/classes.rb +1540 -0
  227. data/generated/google/apis/domains_v1alpha2/representations.rb +606 -0
  228. data/generated/google/apis/domains_v1alpha2/service.rb +805 -0
  229. data/generated/google/apis/domains_v1alpha2.rb +34 -0
  230. data/generated/google/apis/domains_v1beta1/classes.rb +1540 -0
  231. data/generated/google/apis/domains_v1beta1/representations.rb +606 -0
  232. data/generated/google/apis/domains_v1beta1/service.rb +805 -0
  233. data/generated/google/apis/domains_v1beta1.rb +34 -0
  234. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -1
  235. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  236. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +4 -3
  237. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  238. data/generated/google/apis/drive_v2/classes.rb +4 -1
  239. data/generated/google/apis/drive_v2.rb +1 -1
  240. data/generated/google/apis/drive_v3/classes.rb +4 -2
  241. data/generated/google/apis/drive_v3.rb +1 -1
  242. data/generated/google/apis/{apigateway_v1alpha1 → eventarc_v1beta1}/classes.rb +327 -29
  243. data/generated/google/apis/eventarc_v1beta1/representations.rb +379 -0
  244. data/generated/google/apis/{apigateway_v1alpha1 → eventarc_v1beta1}/service.rb +224 -268
  245. data/generated/google/apis/{apigateway_v1alpha1.rb → eventarc_v1beta1.rb} +8 -8
  246. data/generated/google/apis/file_v1/classes.rb +1 -1
  247. data/generated/google/apis/file_v1.rb +1 -1
  248. data/generated/google/apis/file_v1beta1/classes.rb +1 -1
  249. data/generated/google/apis/file_v1beta1.rb +1 -1
  250. data/generated/google/apis/firebase_v1beta1/service.rb +17 -4
  251. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  252. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +2 -0
  253. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  254. data/generated/google/apis/firestore_v1/classes.rb +4 -4
  255. data/generated/google/apis/firestore_v1.rb +1 -1
  256. data/generated/google/apis/firestore_v1beta1/classes.rb +4 -4
  257. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  258. data/generated/google/apis/fitness_v1/service.rb +3 -1
  259. data/generated/google/apis/fitness_v1.rb +13 -1
  260. data/generated/google/apis/games_v1/classes.rb +300 -0
  261. data/generated/google/apis/games_v1/representations.rb +116 -0
  262. data/generated/google/apis/games_v1/service.rb +34 -0
  263. data/generated/google/apis/games_v1.rb +1 -1
  264. data/generated/google/apis/gameservices_v1/classes.rb +15 -14
  265. data/generated/google/apis/gameservices_v1/service.rb +54 -51
  266. data/generated/google/apis/gameservices_v1.rb +1 -1
  267. data/generated/google/apis/gameservices_v1beta/classes.rb +15 -14
  268. data/generated/google/apis/gameservices_v1beta/service.rb +54 -51
  269. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  270. data/generated/google/apis/genomics_v2alpha1/classes.rb +104 -0
  271. data/generated/google/apis/genomics_v2alpha1/representations.rb +47 -0
  272. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  273. data/generated/google/apis/gmail_v1/service.rb +1 -1
  274. data/generated/google/apis/gmail_v1.rb +1 -1
  275. data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +10 -10
  276. data/generated/google/apis/gmailpostmastertools_v1beta1.rb +1 -1
  277. data/generated/google/apis/healthcare_v1/classes.rb +7 -5
  278. data/generated/google/apis/healthcare_v1/service.rb +2 -1
  279. data/generated/google/apis/healthcare_v1.rb +1 -1
  280. data/generated/google/apis/healthcare_v1beta1/classes.rb +1190 -285
  281. data/generated/google/apis/healthcare_v1beta1/representations.rb +516 -68
  282. data/generated/google/apis/healthcare_v1beta1/service.rb +1500 -228
  283. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  284. data/generated/google/apis/iam_v1/service.rb +1 -4
  285. data/generated/google/apis/iam_v1.rb +2 -5
  286. data/generated/google/apis/iamcredentials_v1/service.rb +2 -3
  287. data/generated/google/apis/iamcredentials_v1.rb +3 -4
  288. data/generated/google/apis/jobs_v2/classes.rb +798 -0
  289. data/generated/google/apis/jobs_v2/representations.rb +272 -0
  290. data/generated/google/apis/jobs_v2.rb +1 -1
  291. data/generated/google/apis/jobs_v3/classes.rb +798 -0
  292. data/generated/google/apis/jobs_v3/representations.rb +272 -0
  293. data/generated/google/apis/jobs_v3.rb +1 -1
  294. data/generated/google/apis/jobs_v3p1beta1/classes.rb +759 -0
  295. data/generated/google/apis/jobs_v3p1beta1/representations.rb +257 -0
  296. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  297. data/generated/google/apis/licensing_v1/service.rb +2 -2
  298. data/generated/google/apis/licensing_v1.rb +1 -1
  299. data/generated/google/apis/lifesciences_v2beta/classes.rb +104 -0
  300. data/generated/google/apis/lifesciences_v2beta/representations.rb +47 -0
  301. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  302. data/generated/google/apis/localservices_v1/classes.rb +7 -0
  303. data/generated/google/apis/localservices_v1/representations.rb +2 -0
  304. data/generated/google/apis/localservices_v1/service.rb +20 -20
  305. data/generated/google/apis/localservices_v1.rb +1 -1
  306. data/generated/google/apis/logging_v2/classes.rb +174 -60
  307. data/generated/google/apis/logging_v2/representations.rb +64 -0
  308. data/generated/google/apis/logging_v2/service.rb +1422 -127
  309. data/generated/google/apis/logging_v2.rb +1 -1
  310. data/generated/google/apis/managedidentities_v1/classes.rb +8 -1
  311. data/generated/google/apis/managedidentities_v1/representations.rb +1 -0
  312. data/generated/google/apis/managedidentities_v1/service.rb +1 -4
  313. data/generated/google/apis/managedidentities_v1.rb +1 -1
  314. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +87 -9
  315. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +34 -1
  316. data/generated/google/apis/managedidentities_v1alpha1/service.rb +83 -5
  317. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  318. data/generated/google/apis/managedidentities_v1beta1/classes.rb +88 -9
  319. data/generated/google/apis/managedidentities_v1beta1/representations.rb +34 -1
  320. data/generated/google/apis/managedidentities_v1beta1/service.rb +83 -5
  321. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  322. data/generated/google/apis/memcache_v1beta2/classes.rb +1 -1
  323. data/generated/google/apis/memcache_v1beta2/service.rb +5 -5
  324. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  325. data/generated/google/apis/ml_v1/classes.rb +238 -77
  326. data/generated/google/apis/ml_v1/representations.rb +17 -0
  327. data/generated/google/apis/ml_v1.rb +1 -1
  328. data/generated/google/apis/monitoring_v3/classes.rb +71 -17
  329. data/generated/google/apis/monitoring_v3/representations.rb +18 -0
  330. data/generated/google/apis/monitoring_v3/service.rb +55 -6
  331. data/generated/google/apis/monitoring_v3.rb +1 -1
  332. data/generated/google/apis/oauth2_v2/classes.rb +165 -0
  333. data/generated/google/apis/oauth2_v2/representations.rb +68 -0
  334. data/generated/google/apis/oauth2_v2/service.rb +158 -0
  335. data/generated/google/apis/oauth2_v2.rb +40 -0
  336. data/generated/google/apis/osconfig_v1/service.rb +4 -4
  337. data/generated/google/apis/osconfig_v1.rb +3 -3
  338. data/generated/google/apis/osconfig_v1beta/service.rb +4 -4
  339. data/generated/google/apis/osconfig_v1beta.rb +3 -3
  340. data/generated/google/apis/oslogin_v1alpha/classes.rb +2 -2
  341. data/generated/google/apis/oslogin_v1alpha/service.rb +13 -13
  342. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  343. data/generated/google/apis/people_v1/classes.rb +52 -51
  344. data/generated/google/apis/people_v1/service.rb +24 -22
  345. data/generated/google/apis/people_v1.rb +1 -1
  346. data/generated/google/apis/playablelocations_v3/classes.rb +6 -6
  347. data/generated/google/apis/playablelocations_v3.rb +1 -1
  348. data/generated/google/apis/playcustomapp_v1.rb +1 -1
  349. data/generated/google/apis/poly_v1/classes.rb +65 -79
  350. data/generated/google/apis/poly_v1/service.rb +50 -63
  351. data/generated/google/apis/poly_v1.rb +3 -4
  352. data/generated/google/apis/privateca_v1beta1/classes.rb +2466 -0
  353. data/generated/google/apis/privateca_v1beta1/representations.rb +996 -0
  354. data/generated/google/apis/privateca_v1beta1/service.rb +1487 -0
  355. data/generated/google/apis/{appsactivity_v1.rb → privateca_v1beta1.rb} +11 -11
  356. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +109 -0
  357. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  358. data/generated/google/apis/pubsub_v1/service.rb +2 -2
  359. data/generated/google/apis/pubsub_v1.rb +1 -1
  360. data/generated/google/apis/pubsublite_v1/classes.rb +2 -2
  361. data/generated/google/apis/pubsublite_v1.rb +1 -1
  362. data/generated/google/apis/realtimebidding_v1/classes.rb +84 -123
  363. data/generated/google/apis/realtimebidding_v1/representations.rb +18 -32
  364. data/generated/google/apis/realtimebidding_v1/service.rb +4 -1
  365. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  366. data/generated/google/apis/recommendationengine_v1beta1/classes.rb +32 -0
  367. data/generated/google/apis/recommendationengine_v1beta1/representations.rb +25 -0
  368. data/generated/google/apis/recommendationengine_v1beta1.rb +1 -1
  369. data/generated/google/apis/recommender_v1/classes.rb +1 -1
  370. data/generated/google/apis/recommender_v1/service.rb +4 -2
  371. data/generated/google/apis/recommender_v1.rb +1 -1
  372. data/generated/google/apis/recommender_v1beta1/classes.rb +1 -1
  373. data/generated/google/apis/recommender_v1beta1/service.rb +4 -2
  374. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  375. data/generated/google/apis/redis_v1/classes.rb +5 -5
  376. data/generated/google/apis/redis_v1/service.rb +2 -2
  377. data/generated/google/apis/redis_v1.rb +1 -1
  378. data/generated/google/apis/redis_v1beta1/classes.rb +33 -5
  379. data/generated/google/apis/redis_v1beta1/representations.rb +14 -0
  380. data/generated/google/apis/redis_v1beta1/service.rb +36 -2
  381. data/generated/google/apis/redis_v1beta1.rb +1 -1
  382. data/generated/google/apis/remotebuildexecution_v1/classes.rb +6 -0
  383. data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -0
  384. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  385. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +6 -0
  386. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -0
  387. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  388. data/generated/google/apis/remotebuildexecution_v2/classes.rb +6 -0
  389. data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -0
  390. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  391. data/generated/google/apis/run_v1/classes.rb +12 -132
  392. data/generated/google/apis/run_v1/representations.rb +0 -61
  393. data/generated/google/apis/run_v1/service.rb +0 -342
  394. data/generated/google/apis/run_v1.rb +1 -1
  395. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +1 -2
  396. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  397. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  398. data/generated/google/apis/sasportal_v1alpha1/service.rb +109 -0
  399. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  400. data/generated/google/apis/searchconsole_v1/classes.rb +388 -0
  401. data/generated/google/apis/searchconsole_v1/representations.rb +162 -0
  402. data/generated/google/apis/searchconsole_v1/service.rb +287 -0
  403. data/generated/google/apis/searchconsole_v1.rb +7 -1
  404. data/generated/google/apis/secretmanager_v1/classes.rb +1 -2
  405. data/generated/google/apis/secretmanager_v1.rb +1 -1
  406. data/generated/google/apis/secretmanager_v1beta1/classes.rb +1 -2
  407. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  408. data/generated/google/apis/securitycenter_v1/classes.rb +5 -199
  409. data/generated/google/apis/securitycenter_v1/representations.rb +0 -72
  410. data/generated/google/apis/securitycenter_v1.rb +1 -1
  411. data/generated/google/apis/securitycenter_v1beta1/classes.rb +2 -196
  412. data/generated/google/apis/securitycenter_v1beta1/representations.rb +0 -72
  413. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  414. data/generated/google/apis/securitycenter_v1beta2/classes.rb +2 -196
  415. data/generated/google/apis/securitycenter_v1beta2/representations.rb +0 -72
  416. data/generated/google/apis/securitycenter_v1beta2.rb +1 -1
  417. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +5 -63
  418. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -18
  419. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +1 -1
  420. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  421. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +5 -63
  422. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +0 -18
  423. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  424. data/generated/google/apis/servicecontrol_v1/classes.rb +78 -4
  425. data/generated/google/apis/servicecontrol_v1/representations.rb +10 -0
  426. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  427. data/generated/google/apis/servicecontrol_v2/classes.rb +63 -2
  428. data/generated/google/apis/servicecontrol_v2/representations.rb +8 -0
  429. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  430. data/generated/google/apis/servicemanagement_v1/classes.rb +5 -85
  431. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -31
  432. data/generated/google/apis/servicemanagement_v1/service.rb +0 -36
  433. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  434. data/generated/google/apis/servicenetworking_v1/classes.rb +185 -64
  435. data/generated/google/apis/servicenetworking_v1/representations.rb +63 -14
  436. data/generated/google/apis/servicenetworking_v1/service.rb +2 -2
  437. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  438. data/generated/google/apis/servicenetworking_v1beta/classes.rb +139 -64
  439. data/generated/google/apis/servicenetworking_v1beta/representations.rb +46 -14
  440. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  441. data/generated/google/apis/serviceusage_v1/classes.rb +5 -63
  442. data/generated/google/apis/serviceusage_v1/representations.rb +0 -18
  443. data/generated/google/apis/serviceusage_v1.rb +1 -1
  444. data/generated/google/apis/serviceusage_v1beta1/classes.rb +35 -63
  445. data/generated/google/apis/serviceusage_v1beta1/representations.rb +15 -18
  446. data/generated/google/apis/serviceusage_v1beta1/service.rb +36 -0
  447. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  448. data/generated/google/apis/sheets_v4/classes.rb +174 -84
  449. data/generated/google/apis/sheets_v4.rb +1 -1
  450. data/generated/google/apis/smartdevicemanagement_v1/classes.rb +273 -0
  451. data/generated/google/apis/smartdevicemanagement_v1/representations.rb +157 -0
  452. data/generated/google/apis/smartdevicemanagement_v1/service.rb +304 -0
  453. data/generated/google/apis/smartdevicemanagement_v1.rb +35 -0
  454. data/generated/google/apis/sourcerepo_v1/classes.rb +250 -400
  455. data/generated/google/apis/sourcerepo_v1/service.rb +40 -49
  456. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  457. data/generated/google/apis/sqladmin_v1beta4/classes.rb +156 -57
  458. data/generated/google/apis/sqladmin_v1beta4/representations.rb +53 -17
  459. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  460. data/generated/google/apis/storage_v1/classes.rb +2 -10
  461. data/generated/google/apis/storage_v1/representations.rb +0 -1
  462. data/generated/google/apis/storage_v1/service.rb +3 -2
  463. data/generated/google/apis/storage_v1.rb +1 -1
  464. data/generated/google/apis/storagetransfer_v1/classes.rb +64 -34
  465. data/generated/google/apis/storagetransfer_v1/representations.rb +13 -0
  466. data/generated/google/apis/storagetransfer_v1/service.rb +22 -20
  467. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  468. data/generated/google/apis/streetviewpublish_v1/classes.rb +4 -4
  469. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  470. data/generated/google/apis/sts_v1/classes.rb +10 -9
  471. data/generated/google/apis/sts_v1.rb +1 -1
  472. data/generated/google/apis/sts_v1beta/classes.rb +67 -67
  473. data/generated/google/apis/sts_v1beta/service.rb +2 -2
  474. data/generated/google/apis/sts_v1beta.rb +1 -1
  475. data/generated/google/apis/tagmanager_v2/classes.rb +12 -0
  476. data/generated/google/apis/tagmanager_v2/representations.rb +3 -0
  477. data/generated/google/apis/tagmanager_v2.rb +1 -1
  478. data/generated/google/apis/testing_v1/classes.rb +92 -33
  479. data/generated/google/apis/testing_v1/representations.rb +21 -0
  480. data/generated/google/apis/testing_v1/service.rb +4 -4
  481. data/generated/google/apis/testing_v1.rb +1 -1
  482. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  483. data/generated/google/apis/toolresults_v1beta3/classes.rb +13 -0
  484. data/generated/google/apis/toolresults_v1beta3/representations.rb +12 -0
  485. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  486. data/generated/google/apis/tpu_v1/classes.rb +3 -3
  487. data/generated/google/apis/tpu_v1/service.rb +8 -8
  488. data/generated/google/apis/tpu_v1.rb +1 -1
  489. data/generated/google/apis/tpu_v1alpha1/classes.rb +3 -3
  490. data/generated/google/apis/tpu_v1alpha1/service.rb +8 -8
  491. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  492. data/generated/google/apis/translate_v3/classes.rb +4 -3
  493. data/generated/google/apis/translate_v3.rb +1 -1
  494. data/generated/google/apis/translate_v3beta1/classes.rb +2 -1
  495. data/generated/google/apis/translate_v3beta1.rb +1 -1
  496. data/generated/google/apis/vault_v1/classes.rb +333 -0
  497. data/generated/google/apis/vault_v1/representations.rb +162 -0
  498. data/generated/google/apis/vault_v1/service.rb +151 -0
  499. data/generated/google/apis/vault_v1.rb +1 -1
  500. data/generated/google/apis/videointelligence_v1/classes.rb +751 -28
  501. data/generated/google/apis/videointelligence_v1/representations.rb +402 -2
  502. data/generated/google/apis/videointelligence_v1/service.rb +0 -62
  503. data/generated/google/apis/videointelligence_v1.rb +1 -1
  504. data/generated/google/apis/videointelligence_v1beta2/classes.rb +751 -28
  505. data/generated/google/apis/videointelligence_v1beta2/representations.rb +402 -2
  506. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  507. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +749 -26
  508. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +402 -2
  509. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  510. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +734 -11
  511. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +402 -2
  512. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  513. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +667 -28
  514. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +368 -2
  515. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  516. data/generated/google/apis/vision_v1/classes.rb +16 -16
  517. data/generated/google/apis/vision_v1.rb +1 -1
  518. data/generated/google/apis/vision_v1p1beta1/classes.rb +16 -16
  519. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  520. data/generated/google/apis/vision_v1p2beta1/classes.rb +16 -16
  521. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  522. data/generated/google/apis/websecurityscanner_v1.rb +1 -1
  523. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  524. data/generated/google/apis/workflowexecutions_v1beta/service.rb +1 -1
  525. data/generated/google/apis/workflowexecutions_v1beta.rb +2 -2
  526. data/generated/google/apis/workflows_v1beta/service.rb +2 -1
  527. data/generated/google/apis/workflows_v1beta.rb +3 -2
  528. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  529. data/generated/google/apis/youtube_v3/classes.rb +0 -134
  530. data/generated/google/apis/youtube_v3/representations.rb +0 -55
  531. data/generated/google/apis/youtube_v3/service.rb +1 -1
  532. data/generated/google/apis/youtube_v3.rb +1 -1
  533. data/google-api-client.gemspec +25 -25
  534. data/lib/google/apis/core/api_command.rb +1 -0
  535. data/lib/google/apis/core/http_command.rb +2 -1
  536. data/lib/google/apis/options.rb +8 -5
  537. data/lib/google/apis/version.rb +1 -1
  538. data/synth.py +40 -0
  539. metadata +51 -12
  540. data/generated/google/apis/appsactivity_v1/classes.rb +0 -415
  541. data/generated/google/apis/appsactivity_v1/representations.rb +0 -209
  542. data/generated/google/apis/appsactivity_v1/service.rb +0 -126
@@ -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.
@@ -279,6 +311,75 @@ module Google
279
311
  execute_or_queue_command(command, &block)
280
312
  end
281
313
 
314
+ # Gets information about a location.
315
+ # @param [String] name
316
+ # Resource name for the location.
317
+ # @param [String] fields
318
+ # Selector specifying which fields to include in a partial response.
319
+ # @param [String] quota_user
320
+ # Available to use for quota purposes for server-side applications. Can be any
321
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
322
+ # @param [Google::Apis::RequestOptions] options
323
+ # Request-specific options
324
+ #
325
+ # @yield [result, err] Result & error if block supplied
326
+ # @yieldparam result [Google::Apis::LoggingV2::Location] parsed result object
327
+ # @yieldparam err [StandardError] error object if request failed
328
+ #
329
+ # @return [Google::Apis::LoggingV2::Location]
330
+ #
331
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
332
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
333
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
334
+ def get_billing_account_location(name, fields: nil, quota_user: nil, options: nil, &block)
335
+ command = make_simple_command(:get, 'v2/{+name}', options)
336
+ command.response_representation = Google::Apis::LoggingV2::Location::Representation
337
+ command.response_class = Google::Apis::LoggingV2::Location
338
+ command.params['name'] = name unless name.nil?
339
+ command.query['fields'] = fields unless fields.nil?
340
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
341
+ execute_or_queue_command(command, &block)
342
+ end
343
+
344
+ # Lists information about the supported locations for this service.
345
+ # @param [String] name
346
+ # The resource that owns the locations collection, if applicable.
347
+ # @param [String] filter
348
+ # The standard list filter.
349
+ # @param [Fixnum] page_size
350
+ # The standard list page size.
351
+ # @param [String] page_token
352
+ # The standard list page token.
353
+ # @param [String] fields
354
+ # Selector specifying which fields to include in a partial response.
355
+ # @param [String] quota_user
356
+ # Available to use for quota purposes for server-side applications. Can be any
357
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
358
+ # @param [Google::Apis::RequestOptions] options
359
+ # Request-specific options
360
+ #
361
+ # @yield [result, err] Result & error if block supplied
362
+ # @yieldparam result [Google::Apis::LoggingV2::ListLocationsResponse] parsed result object
363
+ # @yieldparam err [StandardError] error object if request failed
364
+ #
365
+ # @return [Google::Apis::LoggingV2::ListLocationsResponse]
366
+ #
367
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
368
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
369
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
370
+ def list_billing_account_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
371
+ command = make_simple_command(:get, 'v2/{+name}/locations', options)
372
+ command.response_representation = Google::Apis::LoggingV2::ListLocationsResponse::Representation
373
+ command.response_class = Google::Apis::LoggingV2::ListLocationsResponse
374
+ command.params['name'] = name unless name.nil?
375
+ command.query['filter'] = filter unless filter.nil?
376
+ command.query['pageSize'] = page_size unless page_size.nil?
377
+ command.query['pageToken'] = page_token unless page_token.nil?
378
+ command.query['fields'] = fields unless fields.nil?
379
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
380
+ execute_or_queue_command(command, &block)
381
+ end
382
+
282
383
  # Creates a bucket that can be used to store log entries. Once a bucket has been
283
384
  # created, the region cannot be changed.
284
385
  # @param [String] parent
@@ -493,6 +594,164 @@ module Google
493
594
  execute_or_queue_command(command, &block)
494
595
  end
495
596
 
597
+ # Creates a view over logs in a bucket. A bucket may contain a maximum of 50
598
+ # views.
599
+ # @param [String] parent
600
+ # Required. The bucket in which to create the view "projects/[PROJECT_ID]/
601
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-logging-
602
+ # project/locations/my-location/buckets/my-bucket"
603
+ # @param [Google::Apis::LoggingV2::LogView] log_view_object
604
+ # @param [String] view_id
605
+ # Required. The id to use for this view.
606
+ # @param [String] fields
607
+ # Selector specifying which fields to include in a partial response.
608
+ # @param [String] quota_user
609
+ # Available to use for quota purposes for server-side applications. Can be any
610
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
611
+ # @param [Google::Apis::RequestOptions] options
612
+ # Request-specific options
613
+ #
614
+ # @yield [result, err] Result & error if block supplied
615
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
616
+ # @yieldparam err [StandardError] error object if request failed
617
+ #
618
+ # @return [Google::Apis::LoggingV2::LogView]
619
+ #
620
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
621
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
622
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
623
+ def create_billing_account_location_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block)
624
+ command = make_simple_command(:post, 'v2/{+parent}/views', options)
625
+ command.request_representation = Google::Apis::LoggingV2::LogView::Representation
626
+ command.request_object = log_view_object
627
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
628
+ command.response_class = Google::Apis::LoggingV2::LogView
629
+ command.params['parent'] = parent unless parent.nil?
630
+ command.query['viewId'] = view_id unless view_id.nil?
631
+ command.query['fields'] = fields unless fields.nil?
632
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
633
+ execute_or_queue_command(command, &block)
634
+ end
635
+
636
+ # Deletes a view from a bucket.
637
+ # @param [String] name
638
+ # Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
639
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
640
+ # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
641
+ # view-id".
642
+ # @param [String] fields
643
+ # Selector specifying which fields to include in a partial response.
644
+ # @param [String] quota_user
645
+ # Available to use for quota purposes for server-side applications. Can be any
646
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
647
+ # @param [Google::Apis::RequestOptions] options
648
+ # Request-specific options
649
+ #
650
+ # @yield [result, err] Result & error if block supplied
651
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
652
+ # @yieldparam err [StandardError] error object if request failed
653
+ #
654
+ # @return [Google::Apis::LoggingV2::Empty]
655
+ #
656
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
657
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
658
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
659
+ def delete_billing_account_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
660
+ command = make_simple_command(:delete, 'v2/{+name}', options)
661
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
662
+ command.response_class = Google::Apis::LoggingV2::Empty
663
+ command.params['name'] = name unless name.nil?
664
+ command.query['fields'] = fields unless fields.nil?
665
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
666
+ execute_or_queue_command(command, &block)
667
+ end
668
+
669
+ # Lists views on a bucket..
670
+ # @param [String] parent
671
+ # Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/
672
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
673
+ # @param [Fixnum] page_size
674
+ # Optional. The maximum number of results to return from this request. Non-
675
+ # positive values are ignored. The presence of nextPageToken in the response
676
+ # indicates that more results might be available.
677
+ # @param [String] page_token
678
+ # Optional. If present, then retrieve the next batch of results from the
679
+ # preceding call to this method. pageToken must be the value of nextPageToken
680
+ # from the previous response. The values of other method parameters should be
681
+ # identical to those in the previous call.
682
+ # @param [String] fields
683
+ # Selector specifying which fields to include in a partial response.
684
+ # @param [String] quota_user
685
+ # Available to use for quota purposes for server-side applications. Can be any
686
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
687
+ # @param [Google::Apis::RequestOptions] options
688
+ # Request-specific options
689
+ #
690
+ # @yield [result, err] Result & error if block supplied
691
+ # @yieldparam result [Google::Apis::LoggingV2::ListViewsResponse] parsed result object
692
+ # @yieldparam err [StandardError] error object if request failed
693
+ #
694
+ # @return [Google::Apis::LoggingV2::ListViewsResponse]
695
+ #
696
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
697
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
698
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
699
+ def list_billing_account_location_bucket_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
700
+ command = make_simple_command(:get, 'v2/{+parent}/views', options)
701
+ command.response_representation = Google::Apis::LoggingV2::ListViewsResponse::Representation
702
+ command.response_class = Google::Apis::LoggingV2::ListViewsResponse
703
+ command.params['parent'] = parent unless parent.nil?
704
+ command.query['pageSize'] = page_size unless page_size.nil?
705
+ command.query['pageToken'] = page_token unless page_token.nil?
706
+ command.query['fields'] = fields unless fields.nil?
707
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
708
+ execute_or_queue_command(command, &block)
709
+ end
710
+
711
+ # Updates a view. This method replaces the following fields in the existing view
712
+ # with values from the new view: filter.
713
+ # @param [String] name
714
+ # Required. The full resource name of the view to update "projects/[PROJECT_ID]/
715
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
716
+ # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
717
+ # view-id".
718
+ # @param [Google::Apis::LoggingV2::LogView] log_view_object
719
+ # @param [String] update_mask
720
+ # Optional. Field mask that specifies the fields in view that need an update. A
721
+ # field will be overwritten if, and only if, it is in the update mask. name and
722
+ # output only fields cannot be updated.For a detailed FieldMask definition, see
723
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
724
+ # google.protobuf.FieldMaskExample: updateMask=filter.
725
+ # @param [String] fields
726
+ # Selector specifying which fields to include in a partial response.
727
+ # @param [String] quota_user
728
+ # Available to use for quota purposes for server-side applications. Can be any
729
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
730
+ # @param [Google::Apis::RequestOptions] options
731
+ # Request-specific options
732
+ #
733
+ # @yield [result, err] Result & error if block supplied
734
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
735
+ # @yieldparam err [StandardError] error object if request failed
736
+ #
737
+ # @return [Google::Apis::LoggingV2::LogView]
738
+ #
739
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
740
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
741
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
742
+ def patch_billing_account_location_bucket_view(name, log_view_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
743
+ command = make_simple_command(:patch, 'v2/{+name}', options)
744
+ command.request_representation = Google::Apis::LoggingV2::LogView::Representation
745
+ command.request_object = log_view_object
746
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
747
+ command.response_class = Google::Apis::LoggingV2::LogView
748
+ command.params['name'] = name unless name.nil?
749
+ command.query['updateMask'] = update_mask unless update_mask.nil?
750
+ command.query['fields'] = fields unless fields.nil?
751
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
752
+ execute_or_queue_command(command, &block)
753
+ end
754
+
496
755
  # Deletes all the log entries in a log. The log reappears if it receives new
497
756
  # entries. Log entries written shortly before the delete operation might not be
498
757
  # deleted. Entries received after the delete operation with a timestamp before
@@ -1308,6 +1567,75 @@ module Google
1308
1567
  execute_or_queue_command(command, &block)
1309
1568
  end
1310
1569
 
1570
+ # Gets information about a location.
1571
+ # @param [String] name
1572
+ # Resource name for the location.
1573
+ # @param [String] fields
1574
+ # Selector specifying which fields to include in a partial response.
1575
+ # @param [String] quota_user
1576
+ # Available to use for quota purposes for server-side applications. Can be any
1577
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1578
+ # @param [Google::Apis::RequestOptions] options
1579
+ # Request-specific options
1580
+ #
1581
+ # @yield [result, err] Result & error if block supplied
1582
+ # @yieldparam result [Google::Apis::LoggingV2::Location] parsed result object
1583
+ # @yieldparam err [StandardError] error object if request failed
1584
+ #
1585
+ # @return [Google::Apis::LoggingV2::Location]
1586
+ #
1587
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1588
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1589
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1590
+ def get_folder_location(name, fields: nil, quota_user: nil, options: nil, &block)
1591
+ command = make_simple_command(:get, 'v2/{+name}', options)
1592
+ command.response_representation = Google::Apis::LoggingV2::Location::Representation
1593
+ command.response_class = Google::Apis::LoggingV2::Location
1594
+ command.params['name'] = name unless name.nil?
1595
+ command.query['fields'] = fields unless fields.nil?
1596
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1597
+ execute_or_queue_command(command, &block)
1598
+ end
1599
+
1600
+ # Lists information about the supported locations for this service.
1601
+ # @param [String] name
1602
+ # The resource that owns the locations collection, if applicable.
1603
+ # @param [String] filter
1604
+ # The standard list filter.
1605
+ # @param [Fixnum] page_size
1606
+ # The standard list page size.
1607
+ # @param [String] page_token
1608
+ # The standard list page token.
1609
+ # @param [String] fields
1610
+ # Selector specifying which fields to include in a partial response.
1611
+ # @param [String] quota_user
1612
+ # Available to use for quota purposes for server-side applications. Can be any
1613
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1614
+ # @param [Google::Apis::RequestOptions] options
1615
+ # Request-specific options
1616
+ #
1617
+ # @yield [result, err] Result & error if block supplied
1618
+ # @yieldparam result [Google::Apis::LoggingV2::ListLocationsResponse] parsed result object
1619
+ # @yieldparam err [StandardError] error object if request failed
1620
+ #
1621
+ # @return [Google::Apis::LoggingV2::ListLocationsResponse]
1622
+ #
1623
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1624
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1625
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1626
+ def list_folder_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1627
+ command = make_simple_command(:get, 'v2/{+name}/locations', options)
1628
+ command.response_representation = Google::Apis::LoggingV2::ListLocationsResponse::Representation
1629
+ command.response_class = Google::Apis::LoggingV2::ListLocationsResponse
1630
+ command.params['name'] = name unless name.nil?
1631
+ command.query['filter'] = filter unless filter.nil?
1632
+ command.query['pageSize'] = page_size unless page_size.nil?
1633
+ command.query['pageToken'] = page_token unless page_token.nil?
1634
+ command.query['fields'] = fields unless fields.nil?
1635
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1636
+ execute_or_queue_command(command, &block)
1637
+ end
1638
+
1311
1639
  # Creates a bucket that can be used to store log entries. Once a bucket has been
1312
1640
  # created, the region cannot be changed.
1313
1641
  # @param [String] parent
@@ -1557,17 +1885,15 @@ module Google
1557
1885
  execute_or_queue_command(command, &block)
1558
1886
  end
1559
1887
 
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.
1888
+ # Creates a view over logs in a bucket. A bucket may contain a maximum of 50
1889
+ # views.
1890
+ # @param [String] parent
1891
+ # Required. The bucket in which to create the view "projects/[PROJECT_ID]/
1892
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-logging-
1893
+ # project/locations/my-location/buckets/my-bucket"
1894
+ # @param [Google::Apis::LoggingV2::LogView] log_view_object
1895
+ # @param [String] view_id
1896
+ # Required. The id to use for this view.
1571
1897
  # @param [String] fields
1572
1898
  # Selector specifying which fields to include in a partial response.
1573
1899
  # @param [String] quota_user
@@ -1577,32 +1903,224 @@ module Google
1577
1903
  # Request-specific options
1578
1904
  #
1579
1905
  # @yield [result, err] Result & error if block supplied
1580
- # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
1906
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
1581
1907
  # @yieldparam err [StandardError] error object if request failed
1582
1908
  #
1583
- # @return [Google::Apis::LoggingV2::Empty]
1909
+ # @return [Google::Apis::LoggingV2::LogView]
1584
1910
  #
1585
1911
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1586
1912
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1587
1913
  # @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?
1914
+ def create_folder_location_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1915
+ command = make_simple_command(:post, 'v2/{+parent}/views', options)
1916
+ command.request_representation = Google::Apis::LoggingV2::LogView::Representation
1917
+ command.request_object = log_view_object
1918
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
1919
+ command.response_class = Google::Apis::LoggingV2::LogView
1920
+ command.params['parent'] = parent unless parent.nil?
1921
+ command.query['viewId'] = view_id unless view_id.nil?
1593
1922
  command.query['fields'] = fields unless fields.nil?
1594
1923
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1595
1924
  execute_or_queue_command(command, &block)
1596
1925
  end
1597
1926
 
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-
1927
+ # Deletes a view from a bucket.
1928
+ # @param [String] name
1929
+ # Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
1930
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
1931
+ # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
1932
+ # view-id".
1933
+ # @param [String] fields
1934
+ # Selector specifying which fields to include in a partial response.
1935
+ # @param [String] quota_user
1936
+ # Available to use for quota purposes for server-side applications. Can be any
1937
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1938
+ # @param [Google::Apis::RequestOptions] options
1939
+ # Request-specific options
1940
+ #
1941
+ # @yield [result, err] Result & error if block supplied
1942
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
1943
+ # @yieldparam err [StandardError] error object if request failed
1944
+ #
1945
+ # @return [Google::Apis::LoggingV2::Empty]
1946
+ #
1947
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1948
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1949
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1950
+ def delete_folder_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
1951
+ command = make_simple_command(:delete, 'v2/{+name}', options)
1952
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
1953
+ command.response_class = Google::Apis::LoggingV2::Empty
1954
+ command.params['name'] = name unless name.nil?
1955
+ command.query['fields'] = fields unless fields.nil?
1956
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1957
+ execute_or_queue_command(command, &block)
1958
+ end
1959
+
1960
+ # Gets a view.
1961
+ # @param [String] name
1962
+ # Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[
1963
+ # LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "projects/my-
1964
+ # project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id".
1965
+ # @param [String] fields
1966
+ # Selector specifying which fields to include in a partial response.
1967
+ # @param [String] quota_user
1968
+ # Available to use for quota purposes for server-side applications. Can be any
1969
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1970
+ # @param [Google::Apis::RequestOptions] options
1971
+ # Request-specific options
1972
+ #
1973
+ # @yield [result, err] Result & error if block supplied
1974
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
1975
+ # @yieldparam err [StandardError] error object if request failed
1976
+ #
1977
+ # @return [Google::Apis::LoggingV2::LogView]
1978
+ #
1979
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1980
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1981
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1982
+ def get_folder_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
1983
+ command = make_simple_command(:get, 'v2/{+name}', options)
1984
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
1985
+ command.response_class = Google::Apis::LoggingV2::LogView
1986
+ command.params['name'] = name unless name.nil?
1987
+ command.query['fields'] = fields unless fields.nil?
1988
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1989
+ execute_or_queue_command(command, &block)
1990
+ end
1991
+
1992
+ # Lists views on a bucket..
1993
+ # @param [String] parent
1994
+ # Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/
1995
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1996
+ # @param [Fixnum] page_size
1997
+ # Optional. The maximum number of results to return from this request. Non-
1998
+ # positive values are ignored. The presence of nextPageToken in the response
1999
+ # indicates that more results might be available.
2000
+ # @param [String] page_token
2001
+ # Optional. If present, then retrieve the next batch of results from the
2002
+ # preceding call to this method. pageToken must be the value of nextPageToken
2003
+ # from the previous response. The values of other method parameters should be
2004
+ # identical to those in the previous call.
2005
+ # @param [String] fields
2006
+ # Selector specifying which fields to include in a partial response.
2007
+ # @param [String] quota_user
2008
+ # Available to use for quota purposes for server-side applications. Can be any
2009
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2010
+ # @param [Google::Apis::RequestOptions] options
2011
+ # Request-specific options
2012
+ #
2013
+ # @yield [result, err] Result & error if block supplied
2014
+ # @yieldparam result [Google::Apis::LoggingV2::ListViewsResponse] parsed result object
2015
+ # @yieldparam err [StandardError] error object if request failed
2016
+ #
2017
+ # @return [Google::Apis::LoggingV2::ListViewsResponse]
2018
+ #
2019
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2020
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2021
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2022
+ def list_folder_location_bucket_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2023
+ command = make_simple_command(:get, 'v2/{+parent}/views', options)
2024
+ command.response_representation = Google::Apis::LoggingV2::ListViewsResponse::Representation
2025
+ command.response_class = Google::Apis::LoggingV2::ListViewsResponse
2026
+ command.params['parent'] = parent unless parent.nil?
2027
+ command.query['pageSize'] = page_size unless page_size.nil?
2028
+ command.query['pageToken'] = page_token unless page_token.nil?
2029
+ command.query['fields'] = fields unless fields.nil?
2030
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2031
+ execute_or_queue_command(command, &block)
2032
+ end
2033
+
2034
+ # Updates a view. This method replaces the following fields in the existing view
2035
+ # with values from the new view: filter.
2036
+ # @param [String] name
2037
+ # Required. The full resource name of the view to update "projects/[PROJECT_ID]/
2038
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
2039
+ # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
2040
+ # view-id".
2041
+ # @param [Google::Apis::LoggingV2::LogView] log_view_object
2042
+ # @param [String] update_mask
2043
+ # Optional. Field mask that specifies the fields in view that need an update. A
2044
+ # field will be overwritten if, and only if, it is in the update mask. name and
2045
+ # output only fields cannot be updated.For a detailed FieldMask definition, see
2046
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
2047
+ # google.protobuf.FieldMaskExample: updateMask=filter.
2048
+ # @param [String] fields
2049
+ # Selector specifying which fields to include in a partial response.
2050
+ # @param [String] quota_user
2051
+ # Available to use for quota purposes for server-side applications. Can be any
2052
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2053
+ # @param [Google::Apis::RequestOptions] options
2054
+ # Request-specific options
2055
+ #
2056
+ # @yield [result, err] Result & error if block supplied
2057
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
2058
+ # @yieldparam err [StandardError] error object if request failed
2059
+ #
2060
+ # @return [Google::Apis::LoggingV2::LogView]
2061
+ #
2062
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2063
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2064
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2065
+ def patch_folder_location_bucket_view(name, log_view_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2066
+ command = make_simple_command(:patch, 'v2/{+name}', options)
2067
+ command.request_representation = Google::Apis::LoggingV2::LogView::Representation
2068
+ command.request_object = log_view_object
2069
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
2070
+ command.response_class = Google::Apis::LoggingV2::LogView
2071
+ command.params['name'] = name unless name.nil?
2072
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2073
+ command.query['fields'] = fields unless fields.nil?
2074
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2075
+ execute_or_queue_command(command, &block)
2076
+ end
2077
+
2078
+ # Deletes all the log entries in a log. The log reappears if it receives new
2079
+ # entries. Log entries written shortly before the delete operation might not be
2080
+ # deleted. Entries received after the delete operation with a timestamp before
2081
+ # the operation will be deleted.
2082
+ # @param [String] log_name
2083
+ # Required. The resource name of the log to delete: "projects/[PROJECT_ID]/logs/[
2084
+ # LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[
2085
+ # BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID]
2086
+ # must be URL-encoded. For example, "projects/my-project-id/logs/syslog", "
2087
+ # organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
2088
+ # For more information about log names, see LogEntry.
2089
+ # @param [String] fields
2090
+ # Selector specifying which fields to include in a partial response.
2091
+ # @param [String] quota_user
2092
+ # Available to use for quota purposes for server-side applications. Can be any
2093
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2094
+ # @param [Google::Apis::RequestOptions] options
2095
+ # Request-specific options
2096
+ #
2097
+ # @yield [result, err] Result & error if block supplied
2098
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
2099
+ # @yieldparam err [StandardError] error object if request failed
2100
+ #
2101
+ # @return [Google::Apis::LoggingV2::Empty]
2102
+ #
2103
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2104
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2105
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2106
+ def delete_folder_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
2107
+ command = make_simple_command(:delete, 'v2/{+logName}', options)
2108
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
2109
+ command.response_class = Google::Apis::LoggingV2::Empty
2110
+ command.params['logName'] = log_name unless log_name.nil?
2111
+ command.query['fields'] = fields unless fields.nil?
2112
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2113
+ execute_or_queue_command(command, &block)
2114
+ end
2115
+
2116
+ # Lists the logs in projects, organizations, folders, or billing accounts. Only
2117
+ # logs that have entries are listed.
2118
+ # @param [String] parent
2119
+ # Required. The resource name that owns the logs: "projects/[PROJECT_ID]" "
2120
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
2121
+ # folders/[FOLDER_ID]"
2122
+ # @param [Fixnum] page_size
2123
+ # Optional. The maximum number of results to return from this request. Non-
1606
2124
  # positive values are ignored. The presence of nextPageToken in the response
1607
2125
  # indicates that more results might be available.
1608
2126
  # @param [String] page_token
@@ -1918,6 +2436,75 @@ module Google
1918
2436
  execute_or_queue_command(command, &block)
1919
2437
  end
1920
2438
 
2439
+ # Gets information about a location.
2440
+ # @param [String] name
2441
+ # Resource name for the location.
2442
+ # @param [String] fields
2443
+ # Selector specifying which fields to include in a partial response.
2444
+ # @param [String] quota_user
2445
+ # Available to use for quota purposes for server-side applications. Can be any
2446
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2447
+ # @param [Google::Apis::RequestOptions] options
2448
+ # Request-specific options
2449
+ #
2450
+ # @yield [result, err] Result & error if block supplied
2451
+ # @yieldparam result [Google::Apis::LoggingV2::Location] parsed result object
2452
+ # @yieldparam err [StandardError] error object if request failed
2453
+ #
2454
+ # @return [Google::Apis::LoggingV2::Location]
2455
+ #
2456
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2457
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2458
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2459
+ def get_location(name, fields: nil, quota_user: nil, options: nil, &block)
2460
+ command = make_simple_command(:get, 'v2/{+name}', options)
2461
+ command.response_representation = Google::Apis::LoggingV2::Location::Representation
2462
+ command.response_class = Google::Apis::LoggingV2::Location
2463
+ command.params['name'] = name unless name.nil?
2464
+ command.query['fields'] = fields unless fields.nil?
2465
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2466
+ execute_or_queue_command(command, &block)
2467
+ end
2468
+
2469
+ # Lists information about the supported locations for this service.
2470
+ # @param [String] name
2471
+ # The resource that owns the locations collection, if applicable.
2472
+ # @param [String] filter
2473
+ # The standard list filter.
2474
+ # @param [Fixnum] page_size
2475
+ # The standard list page size.
2476
+ # @param [String] page_token
2477
+ # The standard list page token.
2478
+ # @param [String] fields
2479
+ # Selector specifying which fields to include in a partial response.
2480
+ # @param [String] quota_user
2481
+ # Available to use for quota purposes for server-side applications. Can be any
2482
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2483
+ # @param [Google::Apis::RequestOptions] options
2484
+ # Request-specific options
2485
+ #
2486
+ # @yield [result, err] Result & error if block supplied
2487
+ # @yieldparam result [Google::Apis::LoggingV2::ListLocationsResponse] parsed result object
2488
+ # @yieldparam err [StandardError] error object if request failed
2489
+ #
2490
+ # @return [Google::Apis::LoggingV2::ListLocationsResponse]
2491
+ #
2492
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2493
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2494
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2495
+ def list_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2496
+ command = make_simple_command(:get, 'v2/{+name}/locations', options)
2497
+ command.response_representation = Google::Apis::LoggingV2::ListLocationsResponse::Representation
2498
+ command.response_class = Google::Apis::LoggingV2::ListLocationsResponse
2499
+ command.params['name'] = name unless name.nil?
2500
+ command.query['filter'] = filter unless filter.nil?
2501
+ command.query['pageSize'] = page_size unless page_size.nil?
2502
+ command.query['pageToken'] = page_token unless page_token.nil?
2503
+ command.query['fields'] = fields unless fields.nil?
2504
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2505
+ execute_or_queue_command(command, &block)
2506
+ end
2507
+
1921
2508
  # Creates a bucket that can be used to store log entries. Once a bucket has been
1922
2509
  # created, the region cannot be changed.
1923
2510
  # @param [String] parent
@@ -2167,17 +2754,15 @@ module Google
2167
2754
  execute_or_queue_command(command, &block)
2168
2755
  end
2169
2756
 
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.
2757
+ # Creates a view over logs in a bucket. A bucket may contain a maximum of 50
2758
+ # views.
2759
+ # @param [String] parent
2760
+ # Required. The bucket in which to create the view "projects/[PROJECT_ID]/
2761
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-logging-
2762
+ # project/locations/my-location/buckets/my-bucket"
2763
+ # @param [Google::Apis::LoggingV2::LogView] log_view_object
2764
+ # @param [String] view_id
2765
+ # Required. The id to use for this view.
2181
2766
  # @param [String] fields
2182
2767
  # Selector specifying which fields to include in a partial response.
2183
2768
  # @param [String] quota_user
@@ -2187,39 +2772,33 @@ module Google
2187
2772
  # Request-specific options
2188
2773
  #
2189
2774
  # @yield [result, err] Result & error if block supplied
2190
- # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
2775
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
2191
2776
  # @yieldparam err [StandardError] error object if request failed
2192
2777
  #
2193
- # @return [Google::Apis::LoggingV2::Empty]
2778
+ # @return [Google::Apis::LoggingV2::LogView]
2194
2779
  #
2195
2780
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2196
2781
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2197
2782
  # @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?
2783
+ def create_location_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2784
+ command = make_simple_command(:post, 'v2/{+parent}/views', options)
2785
+ command.request_representation = Google::Apis::LoggingV2::LogView::Representation
2786
+ command.request_object = log_view_object
2787
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
2788
+ command.response_class = Google::Apis::LoggingV2::LogView
2789
+ command.params['parent'] = parent unless parent.nil?
2790
+ command.query['viewId'] = view_id unless view_id.nil?
2203
2791
  command.query['fields'] = fields unless fields.nil?
2204
2792
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2205
2793
  execute_or_queue_command(command, &block)
2206
2794
  end
2207
2795
 
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.
2796
+ # Deletes a view from a bucket.
2797
+ # @param [String] name
2798
+ # Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
2799
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
2800
+ # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
2801
+ # view-id".
2223
2802
  # @param [String] fields
2224
2803
  # Selector specifying which fields to include in a partial response.
2225
2804
  # @param [String] quota_user
@@ -2229,28 +2808,226 @@ module Google
2229
2808
  # Request-specific options
2230
2809
  #
2231
2810
  # @yield [result, err] Result & error if block supplied
2232
- # @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
2811
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
2233
2812
  # @yieldparam err [StandardError] error object if request failed
2234
2813
  #
2235
- # @return [Google::Apis::LoggingV2::ListLogsResponse]
2814
+ # @return [Google::Apis::LoggingV2::Empty]
2236
2815
  #
2237
2816
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2238
2817
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2239
2818
  # @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?
2819
+ def delete_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
2820
+ command = make_simple_command(:delete, 'v2/{+name}', options)
2821
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
2822
+ command.response_class = Google::Apis::LoggingV2::Empty
2823
+ command.params['name'] = name unless name.nil?
2247
2824
  command.query['fields'] = fields unless fields.nil?
2248
2825
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2249
2826
  execute_or_queue_command(command, &block)
2250
2827
  end
2251
2828
 
2252
- # Lists the descriptors for monitored resource types used by Logging.
2253
- # @param [Fixnum] page_size
2829
+ # Gets a view.
2830
+ # @param [String] name
2831
+ # Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[
2832
+ # LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "projects/my-
2833
+ # project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id".
2834
+ # @param [String] fields
2835
+ # Selector specifying which fields to include in a partial response.
2836
+ # @param [String] quota_user
2837
+ # Available to use for quota purposes for server-side applications. Can be any
2838
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2839
+ # @param [Google::Apis::RequestOptions] options
2840
+ # Request-specific options
2841
+ #
2842
+ # @yield [result, err] Result & error if block supplied
2843
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
2844
+ # @yieldparam err [StandardError] error object if request failed
2845
+ #
2846
+ # @return [Google::Apis::LoggingV2::LogView]
2847
+ #
2848
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2849
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2850
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2851
+ def get_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
2852
+ command = make_simple_command(:get, 'v2/{+name}', options)
2853
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
2854
+ command.response_class = Google::Apis::LoggingV2::LogView
2855
+ command.params['name'] = name unless name.nil?
2856
+ command.query['fields'] = fields unless fields.nil?
2857
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2858
+ execute_or_queue_command(command, &block)
2859
+ end
2860
+
2861
+ # Lists views on a bucket..
2862
+ # @param [String] parent
2863
+ # Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/
2864
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
2865
+ # @param [Fixnum] page_size
2866
+ # Optional. The maximum number of results to return from this request. Non-
2867
+ # positive values are ignored. The presence of nextPageToken in the response
2868
+ # indicates that more results might be available.
2869
+ # @param [String] page_token
2870
+ # Optional. If present, then retrieve the next batch of results from the
2871
+ # preceding call to this method. pageToken must be the value of nextPageToken
2872
+ # from the previous response. The values of other method parameters should be
2873
+ # identical to those in the previous call.
2874
+ # @param [String] fields
2875
+ # Selector specifying which fields to include in a partial response.
2876
+ # @param [String] quota_user
2877
+ # Available to use for quota purposes for server-side applications. Can be any
2878
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2879
+ # @param [Google::Apis::RequestOptions] options
2880
+ # Request-specific options
2881
+ #
2882
+ # @yield [result, err] Result & error if block supplied
2883
+ # @yieldparam result [Google::Apis::LoggingV2::ListViewsResponse] parsed result object
2884
+ # @yieldparam err [StandardError] error object if request failed
2885
+ #
2886
+ # @return [Google::Apis::LoggingV2::ListViewsResponse]
2887
+ #
2888
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2889
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2890
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2891
+ def list_location_bucket_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2892
+ command = make_simple_command(:get, 'v2/{+parent}/views', options)
2893
+ command.response_representation = Google::Apis::LoggingV2::ListViewsResponse::Representation
2894
+ command.response_class = Google::Apis::LoggingV2::ListViewsResponse
2895
+ command.params['parent'] = parent unless parent.nil?
2896
+ command.query['pageSize'] = page_size unless page_size.nil?
2897
+ command.query['pageToken'] = page_token unless page_token.nil?
2898
+ command.query['fields'] = fields unless fields.nil?
2899
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2900
+ execute_or_queue_command(command, &block)
2901
+ end
2902
+
2903
+ # Updates a view. This method replaces the following fields in the existing view
2904
+ # with values from the new view: filter.
2905
+ # @param [String] name
2906
+ # Required. The full resource name of the view to update "projects/[PROJECT_ID]/
2907
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
2908
+ # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
2909
+ # view-id".
2910
+ # @param [Google::Apis::LoggingV2::LogView] log_view_object
2911
+ # @param [String] update_mask
2912
+ # Optional. Field mask that specifies the fields in view that need an update. A
2913
+ # field will be overwritten if, and only if, it is in the update mask. name and
2914
+ # output only fields cannot be updated.For a detailed FieldMask definition, see
2915
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
2916
+ # google.protobuf.FieldMaskExample: updateMask=filter.
2917
+ # @param [String] fields
2918
+ # Selector specifying which fields to include in a partial response.
2919
+ # @param [String] quota_user
2920
+ # Available to use for quota purposes for server-side applications. Can be any
2921
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2922
+ # @param [Google::Apis::RequestOptions] options
2923
+ # Request-specific options
2924
+ #
2925
+ # @yield [result, err] Result & error if block supplied
2926
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
2927
+ # @yieldparam err [StandardError] error object if request failed
2928
+ #
2929
+ # @return [Google::Apis::LoggingV2::LogView]
2930
+ #
2931
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2932
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2933
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2934
+ def patch_location_bucket_view(name, log_view_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2935
+ command = make_simple_command(:patch, 'v2/{+name}', options)
2936
+ command.request_representation = Google::Apis::LoggingV2::LogView::Representation
2937
+ command.request_object = log_view_object
2938
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
2939
+ command.response_class = Google::Apis::LoggingV2::LogView
2940
+ command.params['name'] = name unless name.nil?
2941
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2942
+ command.query['fields'] = fields unless fields.nil?
2943
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2944
+ execute_or_queue_command(command, &block)
2945
+ end
2946
+
2947
+ # Deletes all the log entries in a log. The log reappears if it receives new
2948
+ # entries. Log entries written shortly before the delete operation might not be
2949
+ # deleted. Entries received after the delete operation with a timestamp before
2950
+ # the operation will be deleted.
2951
+ # @param [String] log_name
2952
+ # Required. The resource name of the log to delete: "projects/[PROJECT_ID]/logs/[
2953
+ # LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[
2954
+ # BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID]
2955
+ # must be URL-encoded. For example, "projects/my-project-id/logs/syslog", "
2956
+ # organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
2957
+ # For more information about log names, see LogEntry.
2958
+ # @param [String] fields
2959
+ # Selector specifying which fields to include in a partial response.
2960
+ # @param [String] quota_user
2961
+ # Available to use for quota purposes for server-side applications. Can be any
2962
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2963
+ # @param [Google::Apis::RequestOptions] options
2964
+ # Request-specific options
2965
+ #
2966
+ # @yield [result, err] Result & error if block supplied
2967
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
2968
+ # @yieldparam err [StandardError] error object if request failed
2969
+ #
2970
+ # @return [Google::Apis::LoggingV2::Empty]
2971
+ #
2972
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2973
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2974
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2975
+ def delete_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
2976
+ command = make_simple_command(:delete, 'v2/{+logName}', options)
2977
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
2978
+ command.response_class = Google::Apis::LoggingV2::Empty
2979
+ command.params['logName'] = log_name unless log_name.nil?
2980
+ command.query['fields'] = fields unless fields.nil?
2981
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2982
+ execute_or_queue_command(command, &block)
2983
+ end
2984
+
2985
+ # Lists the logs in projects, organizations, folders, or billing accounts. Only
2986
+ # logs that have entries are listed.
2987
+ # @param [String] parent
2988
+ # Required. The resource name that owns the logs: "projects/[PROJECT_ID]" "
2989
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
2990
+ # folders/[FOLDER_ID]"
2991
+ # @param [Fixnum] page_size
2992
+ # Optional. The maximum number of results to return from this request. Non-
2993
+ # positive values are ignored. The presence of nextPageToken in the response
2994
+ # indicates that more results might be available.
2995
+ # @param [String] page_token
2996
+ # Optional. If present, then retrieve the next batch of results from the
2997
+ # preceding call to this method. pageToken must be the value of nextPageToken
2998
+ # from the previous response. The values of other method parameters should be
2999
+ # identical to those in the previous call.
3000
+ # @param [String] fields
3001
+ # Selector specifying which fields to include in a partial response.
3002
+ # @param [String] quota_user
3003
+ # Available to use for quota purposes for server-side applications. Can be any
3004
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3005
+ # @param [Google::Apis::RequestOptions] options
3006
+ # Request-specific options
3007
+ #
3008
+ # @yield [result, err] Result & error if block supplied
3009
+ # @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
3010
+ # @yieldparam err [StandardError] error object if request failed
3011
+ #
3012
+ # @return [Google::Apis::LoggingV2::ListLogsResponse]
3013
+ #
3014
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3015
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3016
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3017
+ def list_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3018
+ command = make_simple_command(:get, 'v2/{+parent}/logs', options)
3019
+ command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
3020
+ command.response_class = Google::Apis::LoggingV2::ListLogsResponse
3021
+ command.params['parent'] = parent unless parent.nil?
3022
+ command.query['pageSize'] = page_size unless page_size.nil?
3023
+ command.query['pageToken'] = page_token unless page_token.nil?
3024
+ command.query['fields'] = fields unless fields.nil?
3025
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3026
+ execute_or_queue_command(command, &block)
3027
+ end
3028
+
3029
+ # Lists the descriptors for monitored resource types used by Logging.
3030
+ # @param [Fixnum] page_size
2254
3031
  # Optional. The maximum number of results to return from this request. Non-
2255
3032
  # positive values are ignored. The presence of nextPageToken in the response
2256
3033
  # indicates that more results might be available.
@@ -2571,6 +3348,75 @@ module Google
2571
3348
  execute_or_queue_command(command, &block)
2572
3349
  end
2573
3350
 
3351
+ # Gets information about a location.
3352
+ # @param [String] name
3353
+ # Resource name for the location.
3354
+ # @param [String] fields
3355
+ # Selector specifying which fields to include in a partial response.
3356
+ # @param [String] quota_user
3357
+ # Available to use for quota purposes for server-side applications. Can be any
3358
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3359
+ # @param [Google::Apis::RequestOptions] options
3360
+ # Request-specific options
3361
+ #
3362
+ # @yield [result, err] Result & error if block supplied
3363
+ # @yieldparam result [Google::Apis::LoggingV2::Location] parsed result object
3364
+ # @yieldparam err [StandardError] error object if request failed
3365
+ #
3366
+ # @return [Google::Apis::LoggingV2::Location]
3367
+ #
3368
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3369
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3370
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3371
+ def get_organization_location(name, fields: nil, quota_user: nil, options: nil, &block)
3372
+ command = make_simple_command(:get, 'v2/{+name}', options)
3373
+ command.response_representation = Google::Apis::LoggingV2::Location::Representation
3374
+ command.response_class = Google::Apis::LoggingV2::Location
3375
+ command.params['name'] = name unless name.nil?
3376
+ command.query['fields'] = fields unless fields.nil?
3377
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3378
+ execute_or_queue_command(command, &block)
3379
+ end
3380
+
3381
+ # Lists information about the supported locations for this service.
3382
+ # @param [String] name
3383
+ # The resource that owns the locations collection, if applicable.
3384
+ # @param [String] filter
3385
+ # The standard list filter.
3386
+ # @param [Fixnum] page_size
3387
+ # The standard list page size.
3388
+ # @param [String] page_token
3389
+ # The standard list page token.
3390
+ # @param [String] fields
3391
+ # Selector specifying which fields to include in a partial response.
3392
+ # @param [String] quota_user
3393
+ # Available to use for quota purposes for server-side applications. Can be any
3394
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3395
+ # @param [Google::Apis::RequestOptions] options
3396
+ # Request-specific options
3397
+ #
3398
+ # @yield [result, err] Result & error if block supplied
3399
+ # @yieldparam result [Google::Apis::LoggingV2::ListLocationsResponse] parsed result object
3400
+ # @yieldparam err [StandardError] error object if request failed
3401
+ #
3402
+ # @return [Google::Apis::LoggingV2::ListLocationsResponse]
3403
+ #
3404
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3405
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3406
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3407
+ def list_organization_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3408
+ command = make_simple_command(:get, 'v2/{+name}/locations', options)
3409
+ command.response_representation = Google::Apis::LoggingV2::ListLocationsResponse::Representation
3410
+ command.response_class = Google::Apis::LoggingV2::ListLocationsResponse
3411
+ command.params['name'] = name unless name.nil?
3412
+ command.query['filter'] = filter unless filter.nil?
3413
+ command.query['pageSize'] = page_size unless page_size.nil?
3414
+ command.query['pageToken'] = page_token unless page_token.nil?
3415
+ command.query['fields'] = fields unless fields.nil?
3416
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3417
+ execute_or_queue_command(command, &block)
3418
+ end
3419
+
2574
3420
  # Creates a bucket that can be used to store log entries. Once a bucket has been
2575
3421
  # created, the region cannot be changed.
2576
3422
  # @param [String] parent
@@ -2710,47 +3556,233 @@ module Google
2710
3556
  # Request-specific options
2711
3557
  #
2712
3558
  # @yield [result, err] Result & error if block supplied
2713
- # @yieldparam result [Google::Apis::LoggingV2::ListBucketsResponse] parsed result object
3559
+ # @yieldparam result [Google::Apis::LoggingV2::ListBucketsResponse] parsed result object
3560
+ # @yieldparam err [StandardError] error object if request failed
3561
+ #
3562
+ # @return [Google::Apis::LoggingV2::ListBucketsResponse]
3563
+ #
3564
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3565
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3566
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3567
+ def list_organization_location_buckets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3568
+ command = make_simple_command(:get, 'v2/{+parent}/buckets', options)
3569
+ command.response_representation = Google::Apis::LoggingV2::ListBucketsResponse::Representation
3570
+ command.response_class = Google::Apis::LoggingV2::ListBucketsResponse
3571
+ command.params['parent'] = parent unless parent.nil?
3572
+ command.query['pageSize'] = page_size unless page_size.nil?
3573
+ command.query['pageToken'] = page_token unless page_token.nil?
3574
+ command.query['fields'] = fields unless fields.nil?
3575
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3576
+ execute_or_queue_command(command, &block)
3577
+ end
3578
+
3579
+ # Updates a bucket. This method replaces the following fields in the existing
3580
+ # bucket with values from the new bucket: retention_periodIf the retention
3581
+ # period is decreased and the bucket is locked, FAILED_PRECONDITION will be
3582
+ # returned.If the bucket has a LifecycleState of DELETE_REQUESTED,
3583
+ # FAILED_PRECONDITION will be returned.A buckets region may not be modified
3584
+ # after it is created. This method is in Beta.
3585
+ # @param [String] name
3586
+ # Required. The full resource name of the bucket to update. "projects/[
3587
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
3588
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
3589
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
3590
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
3591
+ # project-id/locations/my-location/buckets/my-bucket-id". Also requires
3592
+ # permission "resourcemanager.projects.updateLiens" to set the locked property
3593
+ # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
3594
+ # @param [String] update_mask
3595
+ # Required. Field mask that specifies the fields in bucket that need an update.
3596
+ # A bucket field will be overwritten if, and only if, it is in the update mask.
3597
+ # name and output only fields cannot be updated.For a detailed FieldMask
3598
+ # definition, see https://developers.google.com/protocol-buffers/docs/reference/
3599
+ # google.protobuf#google.protobuf.FieldMaskExample: updateMask=retention_days.
3600
+ # @param [String] fields
3601
+ # Selector specifying which fields to include in a partial response.
3602
+ # @param [String] quota_user
3603
+ # Available to use for quota purposes for server-side applications. Can be any
3604
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3605
+ # @param [Google::Apis::RequestOptions] options
3606
+ # Request-specific options
3607
+ #
3608
+ # @yield [result, err] Result & error if block supplied
3609
+ # @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
3610
+ # @yieldparam err [StandardError] error object if request failed
3611
+ #
3612
+ # @return [Google::Apis::LoggingV2::LogBucket]
3613
+ #
3614
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3615
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3616
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3617
+ def patch_organization_location_bucket(name, log_bucket_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3618
+ command = make_simple_command(:patch, 'v2/{+name}', options)
3619
+ command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
3620
+ command.request_object = log_bucket_object
3621
+ command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
3622
+ command.response_class = Google::Apis::LoggingV2::LogBucket
3623
+ command.params['name'] = name unless name.nil?
3624
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3625
+ command.query['fields'] = fields unless fields.nil?
3626
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3627
+ execute_or_queue_command(command, &block)
3628
+ end
3629
+
3630
+ # Undeletes a bucket. A bucket that has been deleted may be undeleted within the
3631
+ # grace period of 7 days.
3632
+ # @param [String] name
3633
+ # Required. The full resource name of the bucket to undelete. "projects/[
3634
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
3635
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
3636
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
3637
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
3638
+ # project-id/locations/my-location/buckets/my-bucket-id".
3639
+ # @param [Google::Apis::LoggingV2::UndeleteBucketRequest] undelete_bucket_request_object
3640
+ # @param [String] fields
3641
+ # Selector specifying which fields to include in a partial response.
3642
+ # @param [String] quota_user
3643
+ # Available to use for quota purposes for server-side applications. Can be any
3644
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3645
+ # @param [Google::Apis::RequestOptions] options
3646
+ # Request-specific options
3647
+ #
3648
+ # @yield [result, err] Result & error if block supplied
3649
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
3650
+ # @yieldparam err [StandardError] error object if request failed
3651
+ #
3652
+ # @return [Google::Apis::LoggingV2::Empty]
3653
+ #
3654
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3655
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3656
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3657
+ def undelete_organization_location_bucket(name, undelete_bucket_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3658
+ command = make_simple_command(:post, 'v2/{+name}:undelete', options)
3659
+ command.request_representation = Google::Apis::LoggingV2::UndeleteBucketRequest::Representation
3660
+ command.request_object = undelete_bucket_request_object
3661
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
3662
+ command.response_class = Google::Apis::LoggingV2::Empty
3663
+ command.params['name'] = name unless name.nil?
3664
+ command.query['fields'] = fields unless fields.nil?
3665
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3666
+ execute_or_queue_command(command, &block)
3667
+ end
3668
+
3669
+ # Creates a view over logs in a bucket. A bucket may contain a maximum of 50
3670
+ # views.
3671
+ # @param [String] parent
3672
+ # Required. The bucket in which to create the view "projects/[PROJECT_ID]/
3673
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-logging-
3674
+ # project/locations/my-location/buckets/my-bucket"
3675
+ # @param [Google::Apis::LoggingV2::LogView] log_view_object
3676
+ # @param [String] view_id
3677
+ # Required. The id to use for this view.
3678
+ # @param [String] fields
3679
+ # Selector specifying which fields to include in a partial response.
3680
+ # @param [String] quota_user
3681
+ # Available to use for quota purposes for server-side applications. Can be any
3682
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3683
+ # @param [Google::Apis::RequestOptions] options
3684
+ # Request-specific options
3685
+ #
3686
+ # @yield [result, err] Result & error if block supplied
3687
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
3688
+ # @yieldparam err [StandardError] error object if request failed
3689
+ #
3690
+ # @return [Google::Apis::LoggingV2::LogView]
3691
+ #
3692
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3693
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3694
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3695
+ def create_organization_location_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3696
+ command = make_simple_command(:post, 'v2/{+parent}/views', options)
3697
+ command.request_representation = Google::Apis::LoggingV2::LogView::Representation
3698
+ command.request_object = log_view_object
3699
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
3700
+ command.response_class = Google::Apis::LoggingV2::LogView
3701
+ command.params['parent'] = parent unless parent.nil?
3702
+ command.query['viewId'] = view_id unless view_id.nil?
3703
+ command.query['fields'] = fields unless fields.nil?
3704
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3705
+ execute_or_queue_command(command, &block)
3706
+ end
3707
+
3708
+ # Deletes a view from a bucket.
3709
+ # @param [String] name
3710
+ # Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
3711
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
3712
+ # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
3713
+ # view-id".
3714
+ # @param [String] fields
3715
+ # Selector specifying which fields to include in a partial response.
3716
+ # @param [String] quota_user
3717
+ # Available to use for quota purposes for server-side applications. Can be any
3718
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3719
+ # @param [Google::Apis::RequestOptions] options
3720
+ # Request-specific options
3721
+ #
3722
+ # @yield [result, err] Result & error if block supplied
3723
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
3724
+ # @yieldparam err [StandardError] error object if request failed
3725
+ #
3726
+ # @return [Google::Apis::LoggingV2::Empty]
3727
+ #
3728
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3729
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3730
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3731
+ def delete_organization_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
3732
+ command = make_simple_command(:delete, 'v2/{+name}', options)
3733
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
3734
+ command.response_class = Google::Apis::LoggingV2::Empty
3735
+ command.params['name'] = name unless name.nil?
3736
+ command.query['fields'] = fields unless fields.nil?
3737
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3738
+ execute_or_queue_command(command, &block)
3739
+ end
3740
+
3741
+ # Gets a view.
3742
+ # @param [String] name
3743
+ # Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[
3744
+ # LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "projects/my-
3745
+ # project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id".
3746
+ # @param [String] fields
3747
+ # Selector specifying which fields to include in a partial response.
3748
+ # @param [String] quota_user
3749
+ # Available to use for quota purposes for server-side applications. Can be any
3750
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3751
+ # @param [Google::Apis::RequestOptions] options
3752
+ # Request-specific options
3753
+ #
3754
+ # @yield [result, err] Result & error if block supplied
3755
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
2714
3756
  # @yieldparam err [StandardError] error object if request failed
2715
3757
  #
2716
- # @return [Google::Apis::LoggingV2::ListBucketsResponse]
3758
+ # @return [Google::Apis::LoggingV2::LogView]
2717
3759
  #
2718
3760
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2719
3761
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2720
3762
  # @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
2725
- command.params['parent'] = parent unless parent.nil?
2726
- command.query['pageSize'] = page_size unless page_size.nil?
2727
- command.query['pageToken'] = page_token unless page_token.nil?
3763
+ def get_organization_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
3764
+ command = make_simple_command(:get, 'v2/{+name}', options)
3765
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
3766
+ command.response_class = Google::Apis::LoggingV2::LogView
3767
+ command.params['name'] = name unless name.nil?
2728
3768
  command.query['fields'] = fields unless fields.nil?
2729
3769
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2730
3770
  execute_or_queue_command(command, &block)
2731
3771
  end
2732
3772
 
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.
2739
- # @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
2748
- # @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.
3773
+ # Lists views on a bucket..
3774
+ # @param [String] parent
3775
+ # Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/
3776
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
3777
+ # @param [Fixnum] page_size
3778
+ # Optional. The maximum number of results to return from this request. Non-
3779
+ # positive values are ignored. The presence of nextPageToken in the response
3780
+ # indicates that more results might be available.
3781
+ # @param [String] page_token
3782
+ # Optional. If present, then retrieve the next batch of results from the
3783
+ # preceding call to this method. pageToken must be the value of nextPageToken
3784
+ # from the previous response. The values of other method parameters should be
3785
+ # identical to those in the previous call.
2754
3786
  # @param [String] fields
2755
3787
  # Selector specifying which fields to include in a partial response.
2756
3788
  # @param [String] quota_user
@@ -2760,37 +3792,40 @@ module Google
2760
3792
  # Request-specific options
2761
3793
  #
2762
3794
  # @yield [result, err] Result & error if block supplied
2763
- # @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
3795
+ # @yieldparam result [Google::Apis::LoggingV2::ListViewsResponse] parsed result object
2764
3796
  # @yieldparam err [StandardError] error object if request failed
2765
3797
  #
2766
- # @return [Google::Apis::LoggingV2::LogBucket]
3798
+ # @return [Google::Apis::LoggingV2::ListViewsResponse]
2767
3799
  #
2768
3800
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2769
3801
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2770
3802
  # @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)
2772
- 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
2777
- command.params['name'] = name unless name.nil?
2778
- command.query['updateMask'] = update_mask unless update_mask.nil?
3803
+ def list_organization_location_bucket_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3804
+ command = make_simple_command(:get, 'v2/{+parent}/views', options)
3805
+ command.response_representation = Google::Apis::LoggingV2::ListViewsResponse::Representation
3806
+ command.response_class = Google::Apis::LoggingV2::ListViewsResponse
3807
+ command.params['parent'] = parent unless parent.nil?
3808
+ command.query['pageSize'] = page_size unless page_size.nil?
3809
+ command.query['pageToken'] = page_token unless page_token.nil?
2779
3810
  command.query['fields'] = fields unless fields.nil?
2780
3811
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2781
3812
  execute_or_queue_command(command, &block)
2782
3813
  end
2783
3814
 
2784
- # Undeletes a bucket. A bucket that has been deleted may be undeleted within the
2785
- # grace period of 7 days.
3815
+ # Updates a view. This method replaces the following fields in the existing view
3816
+ # with values from the new view: filter.
2786
3817
  # @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
3818
+ # Required. The full resource name of the view to update "projects/[PROJECT_ID]/
3819
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
3820
+ # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
3821
+ # view-id".
3822
+ # @param [Google::Apis::LoggingV2::LogView] log_view_object
3823
+ # @param [String] update_mask
3824
+ # Optional. Field mask that specifies the fields in view that need an update. A
3825
+ # field will be overwritten if, and only if, it is in the update mask. name and
3826
+ # output only fields cannot be updated.For a detailed FieldMask definition, see
3827
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
3828
+ # google.protobuf.FieldMaskExample: updateMask=filter.
2794
3829
  # @param [String] fields
2795
3830
  # Selector specifying which fields to include in a partial response.
2796
3831
  # @param [String] quota_user
@@ -2800,21 +3835,22 @@ module Google
2800
3835
  # Request-specific options
2801
3836
  #
2802
3837
  # @yield [result, err] Result & error if block supplied
2803
- # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
3838
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
2804
3839
  # @yieldparam err [StandardError] error object if request failed
2805
3840
  #
2806
- # @return [Google::Apis::LoggingV2::Empty]
3841
+ # @return [Google::Apis::LoggingV2::LogView]
2807
3842
  #
2808
3843
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2809
3844
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2810
3845
  # @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
3846
+ def patch_organization_location_bucket_view(name, log_view_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3847
+ command = make_simple_command(:patch, 'v2/{+name}', options)
3848
+ command.request_representation = Google::Apis::LoggingV2::LogView::Representation
3849
+ command.request_object = log_view_object
3850
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
3851
+ command.response_class = Google::Apis::LoggingV2::LogView
2817
3852
  command.params['name'] = name unless name.nil?
3853
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2818
3854
  command.query['fields'] = fields unless fields.nil?
2819
3855
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2820
3856
  execute_or_queue_command(command, &block)
@@ -3375,6 +4411,75 @@ module Google
3375
4411
  execute_or_queue_command(command, &block)
3376
4412
  end
3377
4413
 
4414
+ # Gets information about a location.
4415
+ # @param [String] name
4416
+ # Resource name for the location.
4417
+ # @param [String] fields
4418
+ # Selector specifying which fields to include in a partial response.
4419
+ # @param [String] quota_user
4420
+ # Available to use for quota purposes for server-side applications. Can be any
4421
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4422
+ # @param [Google::Apis::RequestOptions] options
4423
+ # Request-specific options
4424
+ #
4425
+ # @yield [result, err] Result & error if block supplied
4426
+ # @yieldparam result [Google::Apis::LoggingV2::Location] parsed result object
4427
+ # @yieldparam err [StandardError] error object if request failed
4428
+ #
4429
+ # @return [Google::Apis::LoggingV2::Location]
4430
+ #
4431
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4432
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4433
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4434
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
4435
+ command = make_simple_command(:get, 'v2/{+name}', options)
4436
+ command.response_representation = Google::Apis::LoggingV2::Location::Representation
4437
+ command.response_class = Google::Apis::LoggingV2::Location
4438
+ command.params['name'] = name unless name.nil?
4439
+ command.query['fields'] = fields unless fields.nil?
4440
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4441
+ execute_or_queue_command(command, &block)
4442
+ end
4443
+
4444
+ # Lists information about the supported locations for this service.
4445
+ # @param [String] name
4446
+ # The resource that owns the locations collection, if applicable.
4447
+ # @param [String] filter
4448
+ # The standard list filter.
4449
+ # @param [Fixnum] page_size
4450
+ # The standard list page size.
4451
+ # @param [String] page_token
4452
+ # The standard list page token.
4453
+ # @param [String] fields
4454
+ # Selector specifying which fields to include in a partial response.
4455
+ # @param [String] quota_user
4456
+ # Available to use for quota purposes for server-side applications. Can be any
4457
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4458
+ # @param [Google::Apis::RequestOptions] options
4459
+ # Request-specific options
4460
+ #
4461
+ # @yield [result, err] Result & error if block supplied
4462
+ # @yieldparam result [Google::Apis::LoggingV2::ListLocationsResponse] parsed result object
4463
+ # @yieldparam err [StandardError] error object if request failed
4464
+ #
4465
+ # @return [Google::Apis::LoggingV2::ListLocationsResponse]
4466
+ #
4467
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4468
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4469
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4470
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4471
+ command = make_simple_command(:get, 'v2/{+name}/locations', options)
4472
+ command.response_representation = Google::Apis::LoggingV2::ListLocationsResponse::Representation
4473
+ command.response_class = Google::Apis::LoggingV2::ListLocationsResponse
4474
+ command.params['name'] = name unless name.nil?
4475
+ command.query['filter'] = filter unless filter.nil?
4476
+ command.query['pageSize'] = page_size unless page_size.nil?
4477
+ command.query['pageToken'] = page_token unless page_token.nil?
4478
+ command.query['fields'] = fields unless fields.nil?
4479
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4480
+ execute_or_queue_command(command, &block)
4481
+ end
4482
+
3378
4483
  # Creates a bucket that can be used to store log entries. Once a bucket has been
3379
4484
  # created, the region cannot be changed.
3380
4485
  # @param [String] parent
@@ -3624,6 +4729,196 @@ module Google
3624
4729
  execute_or_queue_command(command, &block)
3625
4730
  end
3626
4731
 
4732
+ # Creates a view over logs in a bucket. A bucket may contain a maximum of 50
4733
+ # views.
4734
+ # @param [String] parent
4735
+ # Required. The bucket in which to create the view "projects/[PROJECT_ID]/
4736
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-logging-
4737
+ # project/locations/my-location/buckets/my-bucket"
4738
+ # @param [Google::Apis::LoggingV2::LogView] log_view_object
4739
+ # @param [String] view_id
4740
+ # Required. The id to use for this view.
4741
+ # @param [String] fields
4742
+ # Selector specifying which fields to include in a partial response.
4743
+ # @param [String] quota_user
4744
+ # Available to use for quota purposes for server-side applications. Can be any
4745
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4746
+ # @param [Google::Apis::RequestOptions] options
4747
+ # Request-specific options
4748
+ #
4749
+ # @yield [result, err] Result & error if block supplied
4750
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
4751
+ # @yieldparam err [StandardError] error object if request failed
4752
+ #
4753
+ # @return [Google::Apis::LoggingV2::LogView]
4754
+ #
4755
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4756
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4757
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4758
+ def create_project_location_bucket_view(parent, log_view_object = nil, view_id: nil, fields: nil, quota_user: nil, options: nil, &block)
4759
+ command = make_simple_command(:post, 'v2/{+parent}/views', options)
4760
+ command.request_representation = Google::Apis::LoggingV2::LogView::Representation
4761
+ command.request_object = log_view_object
4762
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
4763
+ command.response_class = Google::Apis::LoggingV2::LogView
4764
+ command.params['parent'] = parent unless parent.nil?
4765
+ command.query['viewId'] = view_id unless view_id.nil?
4766
+ command.query['fields'] = fields unless fields.nil?
4767
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4768
+ execute_or_queue_command(command, &block)
4769
+ end
4770
+
4771
+ # Deletes a view from a bucket.
4772
+ # @param [String] name
4773
+ # Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
4774
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
4775
+ # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
4776
+ # view-id".
4777
+ # @param [String] fields
4778
+ # Selector specifying which fields to include in a partial response.
4779
+ # @param [String] quota_user
4780
+ # Available to use for quota purposes for server-side applications. Can be any
4781
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4782
+ # @param [Google::Apis::RequestOptions] options
4783
+ # Request-specific options
4784
+ #
4785
+ # @yield [result, err] Result & error if block supplied
4786
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
4787
+ # @yieldparam err [StandardError] error object if request failed
4788
+ #
4789
+ # @return [Google::Apis::LoggingV2::Empty]
4790
+ #
4791
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4792
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4793
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4794
+ def delete_project_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
4795
+ command = make_simple_command(:delete, 'v2/{+name}', options)
4796
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
4797
+ command.response_class = Google::Apis::LoggingV2::Empty
4798
+ command.params['name'] = name unless name.nil?
4799
+ command.query['fields'] = fields unless fields.nil?
4800
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4801
+ execute_or_queue_command(command, &block)
4802
+ end
4803
+
4804
+ # Gets a view.
4805
+ # @param [String] name
4806
+ # Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[
4807
+ # LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "projects/my-
4808
+ # project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id".
4809
+ # @param [String] fields
4810
+ # Selector specifying which fields to include in a partial response.
4811
+ # @param [String] quota_user
4812
+ # Available to use for quota purposes for server-side applications. Can be any
4813
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4814
+ # @param [Google::Apis::RequestOptions] options
4815
+ # Request-specific options
4816
+ #
4817
+ # @yield [result, err] Result & error if block supplied
4818
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
4819
+ # @yieldparam err [StandardError] error object if request failed
4820
+ #
4821
+ # @return [Google::Apis::LoggingV2::LogView]
4822
+ #
4823
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4824
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4825
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4826
+ def get_project_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
4827
+ command = make_simple_command(:get, 'v2/{+name}', options)
4828
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
4829
+ command.response_class = Google::Apis::LoggingV2::LogView
4830
+ command.params['name'] = name unless name.nil?
4831
+ command.query['fields'] = fields unless fields.nil?
4832
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4833
+ execute_or_queue_command(command, &block)
4834
+ end
4835
+
4836
+ # Lists views on a bucket..
4837
+ # @param [String] parent
4838
+ # Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/
4839
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
4840
+ # @param [Fixnum] page_size
4841
+ # Optional. The maximum number of results to return from this request. Non-
4842
+ # positive values are ignored. The presence of nextPageToken in the response
4843
+ # indicates that more results might be available.
4844
+ # @param [String] page_token
4845
+ # Optional. If present, then retrieve the next batch of results from the
4846
+ # preceding call to this method. pageToken must be the value of nextPageToken
4847
+ # from the previous response. The values of other method parameters should be
4848
+ # identical to those in the previous call.
4849
+ # @param [String] fields
4850
+ # Selector specifying which fields to include in a partial response.
4851
+ # @param [String] quota_user
4852
+ # Available to use for quota purposes for server-side applications. Can be any
4853
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4854
+ # @param [Google::Apis::RequestOptions] options
4855
+ # Request-specific options
4856
+ #
4857
+ # @yield [result, err] Result & error if block supplied
4858
+ # @yieldparam result [Google::Apis::LoggingV2::ListViewsResponse] parsed result object
4859
+ # @yieldparam err [StandardError] error object if request failed
4860
+ #
4861
+ # @return [Google::Apis::LoggingV2::ListViewsResponse]
4862
+ #
4863
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4864
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4865
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4866
+ def list_project_location_bucket_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4867
+ command = make_simple_command(:get, 'v2/{+parent}/views', options)
4868
+ command.response_representation = Google::Apis::LoggingV2::ListViewsResponse::Representation
4869
+ command.response_class = Google::Apis::LoggingV2::ListViewsResponse
4870
+ command.params['parent'] = parent unless parent.nil?
4871
+ command.query['pageSize'] = page_size unless page_size.nil?
4872
+ command.query['pageToken'] = page_token unless page_token.nil?
4873
+ command.query['fields'] = fields unless fields.nil?
4874
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4875
+ execute_or_queue_command(command, &block)
4876
+ end
4877
+
4878
+ # Updates a view. This method replaces the following fields in the existing view
4879
+ # with values from the new view: filter.
4880
+ # @param [String] name
4881
+ # Required. The full resource name of the view to update "projects/[PROJECT_ID]/
4882
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" Example: "
4883
+ # projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-
4884
+ # view-id".
4885
+ # @param [Google::Apis::LoggingV2::LogView] log_view_object
4886
+ # @param [String] update_mask
4887
+ # Optional. Field mask that specifies the fields in view that need an update. A
4888
+ # field will be overwritten if, and only if, it is in the update mask. name and
4889
+ # output only fields cannot be updated.For a detailed FieldMask definition, see
4890
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
4891
+ # google.protobuf.FieldMaskExample: updateMask=filter.
4892
+ # @param [String] fields
4893
+ # Selector specifying which fields to include in a partial response.
4894
+ # @param [String] quota_user
4895
+ # Available to use for quota purposes for server-side applications. Can be any
4896
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4897
+ # @param [Google::Apis::RequestOptions] options
4898
+ # Request-specific options
4899
+ #
4900
+ # @yield [result, err] Result & error if block supplied
4901
+ # @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
4902
+ # @yieldparam err [StandardError] error object if request failed
4903
+ #
4904
+ # @return [Google::Apis::LoggingV2::LogView]
4905
+ #
4906
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4907
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4908
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4909
+ def patch_project_location_bucket_view(name, log_view_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4910
+ command = make_simple_command(:patch, 'v2/{+name}', options)
4911
+ command.request_representation = Google::Apis::LoggingV2::LogView::Representation
4912
+ command.request_object = log_view_object
4913
+ command.response_representation = Google::Apis::LoggingV2::LogView::Representation
4914
+ command.response_class = Google::Apis::LoggingV2::LogView
4915
+ command.params['name'] = name unless name.nil?
4916
+ command.query['updateMask'] = update_mask unless update_mask.nil?
4917
+ command.query['fields'] = fields unless fields.nil?
4918
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4919
+ execute_or_queue_command(command, &block)
4920
+ end
4921
+
3627
4922
  # Deletes all the log entries in a log. The log reappears if it receives new
3628
4923
  # entries. Log entries written shortly before the delete operation might not be
3629
4924
  # deleted. Entries received after the delete operation with a timestamp before