google-api-client 0.9.8 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (320) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +15 -8
  3. data/CHANGELOG.md +84 -0
  4. data/Gemfile +10 -2
  5. data/README.md +10 -2
  6. data/api_names.yaml +37172 -135
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
  11. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  12. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
  13. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
  14. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  15. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  16. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  17. data/generated/google/apis/admin_directory_v1.rb +1 -1
  18. data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
  19. data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
  20. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  21. data/generated/google/apis/admin_reports_v1.rb +5 -5
  22. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  23. data/generated/google/apis/adsense_v1_4.rb +1 -1
  24. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  26. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  27. data/generated/google/apis/analytics_v3.rb +1 -1
  28. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  29. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  30. data/generated/google/apis/analytics_v3/service.rb +256 -0
  31. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  32. data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
  33. data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
  34. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  35. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
  38. data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
  41. data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
  42. data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
  43. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  44. data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
  45. data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
  46. data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
  47. data/generated/google/apis/appsactivity_v1.rb +3 -3
  48. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  49. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  50. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  51. data/generated/google/apis/appstate_v1.rb +1 -1
  52. data/generated/google/apis/bigquery_v2.rb +1 -1
  53. data/generated/google/apis/bigquery_v2/classes.rb +360 -38
  54. data/generated/google/apis/bigquery_v2/representations.rb +106 -0
  55. data/generated/google/apis/bigquery_v2/service.rb +18 -4
  56. data/generated/google/apis/books_v1.rb +2 -2
  57. data/generated/google/apis/books_v1/classes.rb +83 -0
  58. data/generated/google/apis/books_v1/representations.rb +35 -0
  59. data/generated/google/apis/books_v1/service.rb +7 -3
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +208 -5
  62. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  63. data/generated/google/apis/civicinfo_v2.rb +3 -2
  64. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  65. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  67. data/generated/google/apis/classroom_v1.rb +22 -25
  68. data/generated/google/apis/classroom_v1/classes.rb +998 -761
  69. data/generated/google/apis/classroom_v1/representations.rb +263 -198
  70. data/generated/google/apis/classroom_v1/service.rb +1349 -672
  71. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  74. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  75. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  76. data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
  77. data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
  78. data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
  79. data/generated/google/apis/clouddebugger_v2.rb +5 -8
  80. data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
  81. data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
  82. data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
  83. data/generated/google/apis/cloudkms_v1.rb +35 -0
  84. data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
  85. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  86. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  87. data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
  88. data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
  89. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  90. data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
  91. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  92. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  93. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
  94. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
  95. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
  96. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  97. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
  98. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
  99. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
  100. data/generated/google/apis/cloudtrace_v1.rb +9 -9
  101. data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
  102. data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
  103. data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
  104. data/generated/google/apis/compute_beta.rb +1 -1
  105. data/generated/google/apis/compute_beta/classes.rb +7007 -3648
  106. data/generated/google/apis/compute_beta/representations.rb +1459 -120
  107. data/generated/google/apis/compute_beta/service.rb +7943 -3726
  108. data/generated/google/apis/compute_v1.rb +1 -1
  109. data/generated/google/apis/compute_v1/classes.rb +2567 -370
  110. data/generated/google/apis/compute_v1/representations.rb +855 -0
  111. data/generated/google/apis/compute_v1/service.rb +6388 -2908
  112. data/generated/google/apis/container_v1.rb +1 -1
  113. data/generated/google/apis/container_v1/classes.rb +287 -16
  114. data/generated/google/apis/container_v1/representations.rb +113 -2
  115. data/generated/google/apis/container_v1/service.rb +130 -0
  116. data/generated/google/apis/content_v2.rb +1 -1
  117. data/generated/google/apis/content_v2/classes.rb +778 -10
  118. data/generated/google/apis/content_v2/representations.rb +339 -0
  119. data/generated/google/apis/content_v2/service.rb +364 -49
  120. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  121. data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
  122. data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
  123. data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
  124. data/generated/google/apis/dataproc_v1.rb +1 -1
  125. data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
  126. data/generated/google/apis/dataproc_v1/representations.rb +299 -225
  127. data/generated/google/apis/dataproc_v1/service.rb +277 -192
  128. data/generated/google/apis/datastore_v1.rb +38 -0
  129. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  130. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  131. data/generated/google/apis/datastore_v1/service.rb +259 -0
  132. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  133. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  134. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  135. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  136. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  137. data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
  138. data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
  139. data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
  140. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  141. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  142. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  143. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  144. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  145. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  146. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  147. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  148. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  149. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  150. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  151. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  152. data/generated/google/apis/dns_v1.rb +1 -1
  153. data/generated/google/apis/dns_v1/classes.rb +1 -1
  154. data/generated/google/apis/dns_v2beta1.rb +43 -0
  155. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  156. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  157. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  158. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  159. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  160. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  161. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  162. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  163. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  164. data/generated/google/apis/drive_v2.rb +1 -1
  165. data/generated/google/apis/drive_v2/classes.rb +595 -37
  166. data/generated/google/apis/drive_v2/representations.rb +140 -0
  167. data/generated/google/apis/drive_v2/service.rb +406 -40
  168. data/generated/google/apis/drive_v3.rb +1 -1
  169. data/generated/google/apis/drive_v3/classes.rb +507 -40
  170. data/generated/google/apis/drive_v3/representations.rb +105 -0
  171. data/generated/google/apis/drive_v3/service.rb +326 -29
  172. data/generated/google/apis/fitness_v1.rb +38 -2
  173. data/generated/google/apis/fitness_v1/classes.rb +65 -7
  174. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  175. data/generated/google/apis/fitness_v1/service.rb +17 -18
  176. data/generated/google/apis/fusiontables_v2.rb +1 -1
  177. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  178. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  179. data/generated/google/apis/games_management_v1management.rb +1 -1
  180. data/generated/google/apis/games_v1.rb +1 -1
  181. data/generated/google/apis/genomics_v1.rb +10 -12
  182. data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
  183. data/generated/google/apis/genomics_v1/representations.rb +468 -496
  184. data/generated/google/apis/genomics_v1/service.rb +978 -882
  185. data/generated/google/apis/gmail_v1.rb +11 -2
  186. data/generated/google/apis/gmail_v1/classes.rb +655 -5
  187. data/generated/google/apis/gmail_v1/representations.rb +261 -0
  188. data/generated/google/apis/gmail_v1/service.rb +1211 -48
  189. data/generated/google/apis/groupssettings_v1.rb +2 -2
  190. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  191. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  192. data/generated/google/apis/iam_v1.rb +2 -2
  193. data/generated/google/apis/iam_v1/classes.rb +446 -368
  194. data/generated/google/apis/iam_v1/representations.rb +109 -91
  195. data/generated/google/apis/iam_v1/service.rb +249 -162
  196. data/generated/google/apis/identitytoolkit_v3.rb +7 -1
  197. data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
  198. data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
  199. data/generated/google/apis/kgsearch_v1.rb +2 -3
  200. data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
  201. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  202. data/generated/google/apis/kgsearch_v1/service.rb +26 -24
  203. data/generated/google/apis/language_v1beta1.rb +36 -0
  204. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  205. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  206. data/generated/google/apis/language_v1beta1/service.rb +185 -0
  207. data/generated/google/apis/licensing_v1.rb +3 -3
  208. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  209. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  210. data/generated/google/apis/licensing_v1/service.rb +1 -1
  211. data/generated/google/apis/logging_v2beta1.rb +6 -6
  212. data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
  213. data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
  214. data/generated/google/apis/logging_v2beta1/service.rb +427 -155
  215. data/generated/google/apis/manufacturers_v1.rb +34 -0
  216. data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
  217. data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
  218. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  219. data/generated/google/apis/mirror_v1.rb +2 -2
  220. data/generated/google/apis/mirror_v1/service.rb +1 -1
  221. data/generated/google/apis/monitoring_v3.rb +45 -0
  222. data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
  223. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  224. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  225. data/generated/google/apis/oauth2_v2.rb +1 -1
  226. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  227. data/generated/google/apis/partners_v2.rb +3 -3
  228. data/generated/google/apis/partners_v2/classes.rb +1831 -477
  229. data/generated/google/apis/partners_v2/representations.rb +571 -114
  230. data/generated/google/apis/partners_v2/service.rb +898 -167
  231. data/generated/google/apis/people_v1.rb +15 -16
  232. data/generated/google/apis/people_v1/classes.rb +1047 -859
  233. data/generated/google/apis/people_v1/representations.rb +252 -213
  234. data/generated/google/apis/people_v1/service.rb +75 -62
  235. data/generated/google/apis/plus_domains_v1.rb +1 -1
  236. data/generated/google/apis/plus_v1.rb +1 -1
  237. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  238. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
  239. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
  240. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
  241. data/generated/google/apis/pubsub_v1.rb +1 -1
  242. data/generated/google/apis/pubsub_v1/classes.rb +363 -310
  243. data/generated/google/apis/pubsub_v1/representations.rb +76 -76
  244. data/generated/google/apis/pubsub_v1/service.rb +464 -335
  245. data/generated/google/apis/qpx_express_v1.rb +1 -1
  246. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  247. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  248. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  249. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  250. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  251. data/generated/google/apis/reseller_v1.rb +1 -1
  252. data/generated/google/apis/reseller_v1/classes.rb +222 -61
  253. data/generated/google/apis/reseller_v1/representations.rb +28 -0
  254. data/generated/google/apis/reseller_v1/service.rb +240 -47
  255. data/generated/google/apis/script_v1.rb +19 -19
  256. data/generated/google/apis/script_v1/classes.rb +151 -137
  257. data/generated/google/apis/script_v1/representations.rb +26 -26
  258. data/generated/google/apis/script_v1/service.rb +9 -8
  259. data/generated/google/apis/sheets_v4.rb +7 -7
  260. data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
  261. data/generated/google/apis/sheets_v4/representations.rb +988 -737
  262. data/generated/google/apis/sheets_v4/service.rb +266 -99
  263. data/generated/google/apis/site_verification_v1.rb +1 -1
  264. data/generated/google/apis/slides_v1.rb +49 -0
  265. data/generated/google/apis/slides_v1/classes.rb +4480 -0
  266. data/generated/google/apis/slides_v1/representations.rb +1926 -0
  267. data/generated/google/apis/slides_v1/service.rb +245 -0
  268. data/generated/google/apis/speech_v1beta1.rb +34 -0
  269. data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
  270. data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
  271. data/generated/google/apis/speech_v1beta1/service.rb +270 -0
  272. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  273. data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
  274. data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
  275. data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
  276. data/generated/google/apis/storage_v1.rb +1 -1
  277. data/generated/google/apis/storage_v1/classes.rb +205 -21
  278. data/generated/google/apis/storage_v1/representations.rb +51 -1
  279. data/generated/google/apis/storage_v1/service.rb +263 -9
  280. data/generated/google/apis/tagmanager_v1.rb +5 -5
  281. data/generated/google/apis/translate_v2.rb +2 -2
  282. data/generated/google/apis/translate_v2/service.rb +1 -1
  283. data/generated/google/apis/vision_v1.rb +1 -1
  284. data/generated/google/apis/vision_v1/classes.rb +1275 -731
  285. data/generated/google/apis/vision_v1/representations.rb +378 -111
  286. data/generated/google/apis/vision_v1/service.rb +4 -4
  287. data/generated/google/apis/webmasters_v3.rb +1 -1
  288. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  289. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
  290. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
  291. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
  292. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  293. data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
  294. data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
  295. data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
  296. data/generated/google/apis/youtube_v3.rb +1 -1
  297. data/generated/google/apis/youtube_v3/classes.rb +430 -22
  298. data/generated/google/apis/youtube_v3/representations.rb +171 -4
  299. data/generated/google/apis/youtube_v3/service.rb +100 -9
  300. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  301. data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
  302. data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
  303. data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
  304. data/google-api-client.gemspec +4 -3
  305. data/lib/google/apis/core/api_command.rb +16 -6
  306. data/lib/google/apis/core/base_service.rb +17 -9
  307. data/lib/google/apis/core/download.rb +7 -2
  308. data/lib/google/apis/core/http_command.rb +5 -1
  309. data/lib/google/apis/core/json_representation.rb +2 -2
  310. data/lib/google/apis/core/upload.rb +7 -1
  311. data/lib/google/apis/errors.rb +6 -2
  312. data/lib/google/apis/generator/annotator.rb +6 -0
  313. data/lib/google/apis/version.rb +1 -1
  314. data/samples/cli/lib/samples/bigquery.rb +101 -0
  315. data/samples/cli/lib/samples/calendar.rb +1 -1
  316. data/samples/cli/lib/samples/gmail.rb +74 -0
  317. data/samples/cli/lib/samples/sheets.rb +61 -0
  318. data/samples/cli/lib/samples/you_tube.rb +4 -1
  319. data/sync.rb +71 -0
  320. metadata +86 -18
@@ -20,9 +20,9 @@ require 'google/apis/errors'
20
20
  module Google
21
21
  module Apis
22
22
  module LoggingV2beta1
23
- # Google Cloud Logging API
23
+ # Stackdriver Logging API
24
24
  #
25
- # Writes log entries and manages your logs, log sinks, and logs-based metrics.
25
+ # Writes log entries and manages your Stackdriver Logging configuration.
26
26
  #
27
27
  # @example
28
28
  # require 'google/apis/logging_v2beta1'
@@ -46,11 +46,56 @@ module Google
46
46
  super('https://logging.googleapis.com/', '')
47
47
  end
48
48
 
49
- # Deletes a log and all its log entries. The log will reappear if it receives
50
- # new entries.
49
+ # Lists the descriptors for monitored resource types used by Stackdriver Logging.
50
+ # @param [String] page_token
51
+ # Optional. If present, then retrieve the next batch of results from the
52
+ # preceding call to this method. pageToken must be the value of nextPageToken
53
+ # from the previous response. The values of other method parameters should be
54
+ # identical to those in the previous call.
55
+ # @param [Fixnum] page_size
56
+ # Optional. The maximum number of results to return from this request. Non-
57
+ # positive values are ignored. The presence of nextPageToken in the response
58
+ # indicates that more results might be available.
59
+ # @param [String] fields
60
+ # Selector specifying which fields to include in a partial response.
61
+ # @param [String] quota_user
62
+ # Available to use for quota purposes for server-side applications. Can be any
63
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
64
+ # @param [Google::Apis::RequestOptions] options
65
+ # Request-specific options
66
+ #
67
+ # @yield [result, err] Result & error if block supplied
68
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse] parsed result object
69
+ # @yieldparam err [StandardError] error object if request failed
70
+ #
71
+ # @return [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse]
72
+ #
73
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
76
+ def list_monitored_resource_descriptors(page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
77
+ command = make_simple_command(:get, 'v2beta1/monitoredResourceDescriptors', options)
78
+ command.response_representation = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse::Representation
79
+ command.response_class = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse
80
+ command.query['pageToken'] = page_token unless page_token.nil?
81
+ command.query['pageSize'] = page_size unless page_size.nil?
82
+ command.query['fields'] = fields unless fields.nil?
83
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
84
+ execute_or_queue_command(command, &block)
85
+ end
86
+
87
+ # Deletes all the log entries in a log. The log reappears if it receives new
88
+ # entries. Log entries written shortly before the delete operation might not be
89
+ # deleted.
51
90
  # @param [String] log_name
52
- # Required. The resource name of the log to delete. Example: `"projects/my-
53
- # project/logs/syslog"`.
91
+ # Required. The resource name of the log to delete:
92
+ # "projects/[PROJECT_ID]/logs/[LOG_ID]"
93
+ # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
94
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
95
+ # "folders/[FOLDER_ID]/logs/[LOG_ID]"
96
+ # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
97
+ # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
98
+ # 2Factivity". For more information about log names, see LogEntry.
54
99
  # @param [String] fields
55
100
  # Selector specifying which fields to include in a partial response.
56
101
  # @param [String] quota_user
@@ -68,7 +113,7 @@ module Google
68
113
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
114
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
115
  # @raise [Google::Apis::AuthorizationError] Authorization is required
71
- def delete_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
116
+ def delete_organization_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
72
117
  command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
73
118
  command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
74
119
  command.response_class = Google::Apis::LoggingV2beta1::Empty
@@ -78,20 +123,23 @@ module Google
78
123
  execute_or_queue_command(command, &block)
79
124
  end
80
125
 
81
- # Lists sinks.
82
- # @param [String] project_name
83
- # Required. The resource name of the project containing the sinks. Example: `"
84
- # projects/my-logging-project"`.
126
+ # Lists the logs in projects, organizations, folders, or billing accounts. Only
127
+ # logs that have entries are listed.
128
+ # @param [String] parent
129
+ # Required. The resource name that owns the logs:
130
+ # "projects/[PROJECT_ID]"
131
+ # "organizations/[ORGANIZATION_ID]"
132
+ # "billingAccounts/[BILLING_ACCOUNT_ID]"
133
+ # "folders/[FOLDER_ID]"
85
134
  # @param [String] page_token
86
- # Optional. If the `pageToken` parameter is supplied, then the next page of
87
- # results is retrieved. The `pageToken` parameter must be set to the value of
88
- # the `nextPageToken` from the previous response. The value of `projectName`
89
- # must be the same as in the previous request.
135
+ # Optional. If present, then retrieve the next batch of results from the
136
+ # preceding call to this method. pageToken must be the value of nextPageToken
137
+ # from the previous response. The values of other method parameters should be
138
+ # identical to those in the previous call.
90
139
  # @param [Fixnum] page_size
91
- # Optional. The maximum number of results to return from this request. You must
92
- # check for presence of `nextPageToken` to determine if additional results are
93
- # available, which you can retrieve by passing the `nextPageToken` value as the `
94
- # pageToken` parameter in the next request.
140
+ # Optional. The maximum number of results to return from this request. Non-
141
+ # positive values are ignored. The presence of nextPageToken in the response
142
+ # indicates that more results might be available.
95
143
  # @param [String] fields
96
144
  # Selector specifying which fields to include in a partial response.
97
145
  # @param [String] quota_user
@@ -101,19 +149,19 @@ module Google
101
149
  # Request-specific options
102
150
  #
103
151
  # @yield [result, err] Result & error if block supplied
104
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListSinksResponse] parsed result object
152
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogsResponse] parsed result object
105
153
  # @yieldparam err [StandardError] error object if request failed
106
154
  #
107
- # @return [Google::Apis::LoggingV2beta1::ListSinksResponse]
155
+ # @return [Google::Apis::LoggingV2beta1::ListLogsResponse]
108
156
  #
109
157
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
110
158
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
111
159
  # @raise [Google::Apis::AuthorizationError] Authorization is required
112
- def list_project_sinks(project_name, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
113
- command = make_simple_command(:get, 'v2beta1/{+projectName}/sinks', options)
114
- command.response_representation = Google::Apis::LoggingV2beta1::ListSinksResponse::Representation
115
- command.response_class = Google::Apis::LoggingV2beta1::ListSinksResponse
116
- command.params['projectName'] = project_name unless project_name.nil?
160
+ def list_organization_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
161
+ command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
162
+ command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
163
+ command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
164
+ command.params['parent'] = parent unless parent.nil?
117
165
  command.query['pageToken'] = page_token unless page_token.nil?
118
166
  command.query['pageSize'] = page_size unless page_size.nil?
119
167
  command.query['fields'] = fields unless fields.nil?
@@ -121,10 +169,8 @@ module Google
121
169
  execute_or_queue_command(command, &block)
122
170
  end
123
171
 
124
- # Gets a sink.
125
- # @param [String] sink_name
126
- # The resource name of the sink to return. Example: `"projects/my-project-id/
127
- # sinks/my-sink-id"`.
172
+ # Writes log entries to Stackdriver Logging.
173
+ # @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_request_object
128
174
  # @param [String] fields
129
175
  # Selector specifying which fields to include in a partial response.
130
176
  # @param [String] quota_user
@@ -134,29 +180,165 @@ module Google
134
180
  # Request-specific options
135
181
  #
136
182
  # @yield [result, err] Result & error if block supplied
137
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
183
+ # @yieldparam result [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse] parsed result object
138
184
  # @yieldparam err [StandardError] error object if request failed
139
185
  #
140
- # @return [Google::Apis::LoggingV2beta1::LogSink]
186
+ # @return [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse]
141
187
  #
142
188
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
143
189
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
144
190
  # @raise [Google::Apis::AuthorizationError] Authorization is required
145
- def get_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
146
- command = make_simple_command(:get, 'v2beta1/{+sinkName}', options)
147
- command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
148
- command.response_class = Google::Apis::LoggingV2beta1::LogSink
149
- command.params['sinkName'] = sink_name unless sink_name.nil?
191
+ def write_entry_log_entries(write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
192
+ command = make_simple_command(:post, 'v2beta1/entries:write', options)
193
+ command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation
194
+ command.request_object = write_log_entries_request_object
195
+ command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation
196
+ command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse
150
197
  command.query['fields'] = fields unless fields.nil?
151
198
  command.query['quotaUser'] = quota_user unless quota_user.nil?
152
199
  execute_or_queue_command(command, &block)
153
200
  end
154
201
 
155
- # Creates a sink.
156
- # @param [String] project_name
157
- # The resource name of the project in which to create the sink. Example: `"
158
- # projects/my-project-id"`. The new sink must be provided in the request.
202
+ # Lists log entries. Use this method to retrieve log entries from Stackdriver
203
+ # Logging. For ways to export log entries, see Exporting Logs.
204
+ # @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_request_object
205
+ # @param [String] fields
206
+ # Selector specifying which fields to include in a partial response.
207
+ # @param [String] quota_user
208
+ # Available to use for quota purposes for server-side applications. Can be any
209
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
210
+ # @param [Google::Apis::RequestOptions] options
211
+ # Request-specific options
212
+ #
213
+ # @yield [result, err] Result & error if block supplied
214
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogEntriesResponse] parsed result object
215
+ # @yieldparam err [StandardError] error object if request failed
216
+ #
217
+ # @return [Google::Apis::LoggingV2beta1::ListLogEntriesResponse]
218
+ #
219
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
220
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
221
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
222
+ def list_entry_log_entries(list_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
223
+ command = make_simple_command(:post, 'v2beta1/entries:list', options)
224
+ command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation
225
+ command.request_object = list_log_entries_request_object
226
+ command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation
227
+ command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse
228
+ command.query['fields'] = fields unless fields.nil?
229
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
230
+ execute_or_queue_command(command, &block)
231
+ end
232
+
233
+ # Deletes all the log entries in a log. The log reappears if it receives new
234
+ # entries. Log entries written shortly before the delete operation might not be
235
+ # deleted.
236
+ # @param [String] log_name
237
+ # Required. The resource name of the log to delete:
238
+ # "projects/[PROJECT_ID]/logs/[LOG_ID]"
239
+ # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
240
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
241
+ # "folders/[FOLDER_ID]/logs/[LOG_ID]"
242
+ # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
243
+ # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
244
+ # 2Factivity". For more information about log names, see LogEntry.
245
+ # @param [String] fields
246
+ # Selector specifying which fields to include in a partial response.
247
+ # @param [String] quota_user
248
+ # Available to use for quota purposes for server-side applications. Can be any
249
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
250
+ # @param [Google::Apis::RequestOptions] options
251
+ # Request-specific options
252
+ #
253
+ # @yield [result, err] Result & error if block supplied
254
+ # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
255
+ # @yieldparam err [StandardError] error object if request failed
256
+ #
257
+ # @return [Google::Apis::LoggingV2beta1::Empty]
258
+ #
259
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
260
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
261
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
262
+ def delete_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
263
+ command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
264
+ command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
265
+ command.response_class = Google::Apis::LoggingV2beta1::Empty
266
+ command.params['logName'] = log_name unless log_name.nil?
267
+ command.query['fields'] = fields unless fields.nil?
268
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
269
+ execute_or_queue_command(command, &block)
270
+ end
271
+
272
+ # Lists the logs in projects, organizations, folders, or billing accounts. Only
273
+ # logs that have entries are listed.
274
+ # @param [String] parent
275
+ # Required. The resource name that owns the logs:
276
+ # "projects/[PROJECT_ID]"
277
+ # "organizations/[ORGANIZATION_ID]"
278
+ # "billingAccounts/[BILLING_ACCOUNT_ID]"
279
+ # "folders/[FOLDER_ID]"
280
+ # @param [String] page_token
281
+ # Optional. If present, then retrieve the next batch of results from the
282
+ # preceding call to this method. pageToken must be the value of nextPageToken
283
+ # from the previous response. The values of other method parameters should be
284
+ # identical to those in the previous call.
285
+ # @param [Fixnum] page_size
286
+ # Optional. The maximum number of results to return from this request. Non-
287
+ # positive values are ignored. The presence of nextPageToken in the response
288
+ # indicates that more results might be available.
289
+ # @param [String] fields
290
+ # Selector specifying which fields to include in a partial response.
291
+ # @param [String] quota_user
292
+ # Available to use for quota purposes for server-side applications. Can be any
293
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
294
+ # @param [Google::Apis::RequestOptions] options
295
+ # Request-specific options
296
+ #
297
+ # @yield [result, err] Result & error if block supplied
298
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogsResponse] parsed result object
299
+ # @yieldparam err [StandardError] error object if request failed
300
+ #
301
+ # @return [Google::Apis::LoggingV2beta1::ListLogsResponse]
302
+ #
303
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
304
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
305
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
306
+ def list_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
307
+ command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
308
+ command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
309
+ command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
310
+ command.params['parent'] = parent unless parent.nil?
311
+ command.query['pageToken'] = page_token unless page_token.nil?
312
+ command.query['pageSize'] = page_size unless page_size.nil?
313
+ command.query['fields'] = fields unless fields.nil?
314
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
315
+ execute_or_queue_command(command, &block)
316
+ end
317
+
318
+ # Updates a sink. If the named sink doesn't exist, then this method is identical
319
+ # to sinks.create. If the named sink does exist, then this method replaces the
320
+ # following fields in the existing sink with values from the new sink:
321
+ # destination, filter, output_version_format, start_time, and end_time. The
322
+ # updated filter might also have a new writer_identity; see the
323
+ # unique_writer_identity field.
324
+ # @param [String] sink_name
325
+ # Required. The full resource name of the sink to update, including the parent
326
+ # resource and the sink identifier:
327
+ # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
328
+ # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
329
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
330
+ # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
331
+ # Example: "projects/my-project-id/sinks/my-sink-id".
159
332
  # @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_object
333
+ # @param [Boolean] unique_writer_identity
334
+ # Optional. See sinks.create for a description of this field. When updating a
335
+ # sink, the effect of this field on the value of writer_identity in the updated
336
+ # sink depends on both the old and new values of this field:
337
+ # If the old and new values of this field are both false or both true, then
338
+ # there is no change to the sink's writer_identity.
339
+ # If the old value is false and the new value is true, then writer_identity is
340
+ # changed to a unique service account.
341
+ # It is an error if the old value is true and the new value is false.
160
342
  # @param [String] fields
161
343
  # Selector specifying which fields to include in a partial response.
162
344
  # @param [String] quota_user
@@ -174,25 +356,42 @@ module Google
174
356
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
175
357
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
176
358
  # @raise [Google::Apis::AuthorizationError] Authorization is required
177
- def create_project_sink(project_name, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
178
- command = make_simple_command(:post, 'v2beta1/{+projectName}/sinks', options)
359
+ def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
360
+ command = make_simple_command(:put, 'v2beta1/{+sinkName}', options)
179
361
  command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
180
362
  command.request_object = log_sink_object
181
363
  command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
182
364
  command.response_class = Google::Apis::LoggingV2beta1::LogSink
183
- command.params['projectName'] = project_name unless project_name.nil?
365
+ command.params['sinkName'] = sink_name unless sink_name.nil?
366
+ command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
184
367
  command.query['fields'] = fields unless fields.nil?
185
368
  command.query['quotaUser'] = quota_user unless quota_user.nil?
186
369
  execute_or_queue_command(command, &block)
187
370
  end
188
371
 
189
- # Creates or updates a sink.
190
- # @param [String] sink_name
191
- # The resource name of the sink to update. Example: `"projects/my-project-id/
192
- # sinks/my-sink-id"`. The updated sink must be provided in the request and have
193
- # the same name that is specified in `sinkName`. If the sink does not exist, it
194
- # is created.
372
+ # Creates a sink that exports specified log entries to a destination. The export
373
+ # of newly-ingested log entries begins immediately, unless the current time is
374
+ # outside the sink's start and end times or the sink's writer_identity is not
375
+ # permitted to write to the destination. A sink can export log entries only from
376
+ # the resource owning the sink.
377
+ # @param [String] parent
378
+ # Required. The resource in which to create the sink:
379
+ # "projects/[PROJECT_ID]"
380
+ # "organizations/[ORGANIZATION_ID]"
381
+ # "billingAccounts/[BILLING_ACCOUNT_ID]"
382
+ # "folders/[FOLDER_ID]"
383
+ # Examples: "projects/my-logging-project", "organizations/123456789".
195
384
  # @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_object
385
+ # @param [Boolean] unique_writer_identity
386
+ # Optional. Determines the kind of IAM identity returned as writer_identity in
387
+ # the new sink. If this value is omitted or set to false, and if the sink's
388
+ # parent is a project, then the value returned as writer_identity is the same
389
+ # group or service account used by Stackdriver Logging before the addition of
390
+ # writer identities to this API. The sink's destination must be in the same
391
+ # project as the sink itself.If this field is set to true, or if the sink is
392
+ # owned by a non-project resource such as an organization, then the value of
393
+ # writer_identity will be a unique service account used only for exports from
394
+ # the new sink. For more information, see writer_identity in LogSink.
196
395
  # @param [String] fields
197
396
  # Selector specifying which fields to include in a partial response.
198
397
  # @param [String] quota_user
@@ -210,22 +409,29 @@ module Google
210
409
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
211
410
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
212
411
  # @raise [Google::Apis::AuthorizationError] Authorization is required
213
- def update_project_sink(sink_name, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
214
- command = make_simple_command(:put, 'v2beta1/{+sinkName}', options)
412
+ def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
413
+ command = make_simple_command(:post, 'v2beta1/{+parent}/sinks', options)
215
414
  command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
216
415
  command.request_object = log_sink_object
217
416
  command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
218
417
  command.response_class = Google::Apis::LoggingV2beta1::LogSink
219
- command.params['sinkName'] = sink_name unless sink_name.nil?
418
+ command.params['parent'] = parent unless parent.nil?
419
+ command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
220
420
  command.query['fields'] = fields unless fields.nil?
221
421
  command.query['quotaUser'] = quota_user unless quota_user.nil?
222
422
  execute_or_queue_command(command, &block)
223
423
  end
224
424
 
225
- # Deletes a sink.
425
+ # Deletes a sink. If the sink has a unique writer_identity, then that service
426
+ # account is also deleted.
226
427
  # @param [String] sink_name
227
- # The resource name of the sink to delete. Example: `"projects/my-project-id/
228
- # sinks/my-sink-id"`.
428
+ # Required. The full resource name of the sink to delete, including the parent
429
+ # resource and the sink identifier:
430
+ # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
431
+ # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
432
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
433
+ # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
434
+ # Example: "projects/my-project-id/sinks/my-sink-id".
229
435
  # @param [String] fields
230
436
  # Selector specifying which fields to include in a partial response.
231
437
  # @param [String] quota_user
@@ -253,20 +459,22 @@ module Google
253
459
  execute_or_queue_command(command, &block)
254
460
  end
255
461
 
256
- # Lists logs-based metrics.
257
- # @param [String] project_name
258
- # Required. The resource name of the project containing the metrics. Example: `"
259
- # projects/my-project-id"`.
462
+ # Lists sinks.
463
+ # @param [String] parent
464
+ # Required. The parent resource whose sinks are to be listed:
465
+ # "projects/[PROJECT_ID]"
466
+ # "organizations/[ORGANIZATION_ID]"
467
+ # "billingAccounts/[BILLING_ACCOUNT_ID]"
468
+ # "folders/[FOLDER_ID]"
260
469
  # @param [String] page_token
261
- # Optional. If the `pageToken` parameter is supplied, then the next page of
262
- # results is retrieved. The `pageToken` parameter must be set to the value of
263
- # the `nextPageToken` from the previous response. The value of `projectName`
264
- # must be the same as in the previous request.
470
+ # Optional. If present, then retrieve the next batch of results from the
471
+ # preceding call to this method. pageToken must be the value of nextPageToken
472
+ # from the previous response. The values of other method parameters should be
473
+ # identical to those in the previous call.
265
474
  # @param [Fixnum] page_size
266
- # Optional. The maximum number of results to return from this request. You must
267
- # check for presence of `nextPageToken` to determine if additional results are
268
- # available, which you can retrieve by passing the `nextPageToken` value as the `
269
- # pageToken` parameter in the next request.
475
+ # Optional. The maximum number of results to return from this request. Non-
476
+ # positive values are ignored. The presence of nextPageToken in the response
477
+ # indicates that more results might be available.
270
478
  # @param [String] fields
271
479
  # Selector specifying which fields to include in a partial response.
272
480
  # @param [String] quota_user
@@ -276,19 +484,19 @@ module Google
276
484
  # Request-specific options
277
485
  #
278
486
  # @yield [result, err] Result & error if block supplied
279
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogMetricsResponse] parsed result object
487
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListSinksResponse] parsed result object
280
488
  # @yieldparam err [StandardError] error object if request failed
281
489
  #
282
- # @return [Google::Apis::LoggingV2beta1::ListLogMetricsResponse]
490
+ # @return [Google::Apis::LoggingV2beta1::ListSinksResponse]
283
491
  #
284
492
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
285
493
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
286
494
  # @raise [Google::Apis::AuthorizationError] Authorization is required
287
- def list_project_metrics(project_name, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
288
- command = make_simple_command(:get, 'v2beta1/{+projectName}/metrics', options)
289
- command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation
290
- command.response_class = Google::Apis::LoggingV2beta1::ListLogMetricsResponse
291
- command.params['projectName'] = project_name unless project_name.nil?
495
+ def list_project_sinks(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
496
+ command = make_simple_command(:get, 'v2beta1/{+parent}/sinks', options)
497
+ command.response_representation = Google::Apis::LoggingV2beta1::ListSinksResponse::Representation
498
+ command.response_class = Google::Apis::LoggingV2beta1::ListSinksResponse
499
+ command.params['parent'] = parent unless parent.nil?
292
500
  command.query['pageToken'] = page_token unless page_token.nil?
293
501
  command.query['pageSize'] = page_size unless page_size.nil?
294
502
  command.query['fields'] = fields unless fields.nil?
@@ -296,10 +504,45 @@ module Google
296
504
  execute_or_queue_command(command, &block)
297
505
  end
298
506
 
299
- # Gets a logs-based metric.
507
+ # Gets a sink.
508
+ # @param [String] sink_name
509
+ # Required. The resource name of the sink:
510
+ # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
511
+ # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
512
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
513
+ # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
514
+ # Example: "projects/my-project-id/sinks/my-sink-id".
515
+ # @param [String] fields
516
+ # Selector specifying which fields to include in a partial response.
517
+ # @param [String] quota_user
518
+ # Available to use for quota purposes for server-side applications. Can be any
519
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
520
+ # @param [Google::Apis::RequestOptions] options
521
+ # Request-specific options
522
+ #
523
+ # @yield [result, err] Result & error if block supplied
524
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
525
+ # @yieldparam err [StandardError] error object if request failed
526
+ #
527
+ # @return [Google::Apis::LoggingV2beta1::LogSink]
528
+ #
529
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
530
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
531
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
532
+ def get_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
533
+ command = make_simple_command(:get, 'v2beta1/{+sinkName}', options)
534
+ command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
535
+ command.response_class = Google::Apis::LoggingV2beta1::LogSink
536
+ command.params['sinkName'] = sink_name unless sink_name.nil?
537
+ command.query['fields'] = fields unless fields.nil?
538
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
539
+ execute_or_queue_command(command, &block)
540
+ end
541
+
542
+ # Deletes a logs-based metric.
300
543
  # @param [String] metric_name
301
- # The resource name of the desired metric. Example: `"projects/my-project-id/
302
- # metrics/my-metric-id"`.
544
+ # The resource name of the metric to delete:
545
+ # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
303
546
  # @param [String] fields
304
547
  # Selector specifying which fields to include in a partial response.
305
548
  # @param [String] quota_user
@@ -309,29 +552,37 @@ module Google
309
552
  # Request-specific options
310
553
  #
311
554
  # @yield [result, err] Result & error if block supplied
312
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
555
+ # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
313
556
  # @yieldparam err [StandardError] error object if request failed
314
557
  #
315
- # @return [Google::Apis::LoggingV2beta1::LogMetric]
558
+ # @return [Google::Apis::LoggingV2beta1::Empty]
316
559
  #
317
560
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
318
561
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
319
562
  # @raise [Google::Apis::AuthorizationError] Authorization is required
320
- def get_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
321
- command = make_simple_command(:get, 'v2beta1/{+metricName}', options)
322
- command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
323
- command.response_class = Google::Apis::LoggingV2beta1::LogMetric
563
+ def delete_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
564
+ command = make_simple_command(:delete, 'v2beta1/{+metricName}', options)
565
+ command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
566
+ command.response_class = Google::Apis::LoggingV2beta1::Empty
324
567
  command.params['metricName'] = metric_name unless metric_name.nil?
325
568
  command.query['fields'] = fields unless fields.nil?
326
569
  command.query['quotaUser'] = quota_user unless quota_user.nil?
327
570
  execute_or_queue_command(command, &block)
328
571
  end
329
572
 
330
- # Creates a logs-based metric.
331
- # @param [String] project_name
332
- # The resource name of the project in which to create the metric. Example: `"
333
- # projects/my-project-id"`. The new metric must be provided in the request.
334
- # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
573
+ # Lists logs-based metrics.
574
+ # @param [String] parent
575
+ # Required. The name of the project containing the metrics:
576
+ # "projects/[PROJECT_ID]"
577
+ # @param [String] page_token
578
+ # Optional. If present, then retrieve the next batch of results from the
579
+ # preceding call to this method. pageToken must be the value of nextPageToken
580
+ # from the previous response. The values of other method parameters should be
581
+ # identical to those in the previous call.
582
+ # @param [Fixnum] page_size
583
+ # Optional. The maximum number of results to return from this request. Non-
584
+ # positive values are ignored. The presence of nextPageToken in the response
585
+ # indicates that more results might be available.
335
586
  # @param [String] fields
336
587
  # Selector specifying which fields to include in a partial response.
337
588
  # @param [String] quota_user
@@ -341,33 +592,30 @@ module Google
341
592
  # Request-specific options
342
593
  #
343
594
  # @yield [result, err] Result & error if block supplied
344
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
595
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogMetricsResponse] parsed result object
345
596
  # @yieldparam err [StandardError] error object if request failed
346
597
  #
347
- # @return [Google::Apis::LoggingV2beta1::LogMetric]
598
+ # @return [Google::Apis::LoggingV2beta1::ListLogMetricsResponse]
348
599
  #
349
600
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
350
601
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
351
602
  # @raise [Google::Apis::AuthorizationError] Authorization is required
352
- def create_project_metric(project_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
353
- command = make_simple_command(:post, 'v2beta1/{+projectName}/metrics', options)
354
- command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
355
- command.request_object = log_metric_object
356
- command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
357
- command.response_class = Google::Apis::LoggingV2beta1::LogMetric
358
- command.params['projectName'] = project_name unless project_name.nil?
603
+ def list_project_metrics(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
604
+ command = make_simple_command(:get, 'v2beta1/{+parent}/metrics', options)
605
+ command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation
606
+ command.response_class = Google::Apis::LoggingV2beta1::ListLogMetricsResponse
607
+ command.params['parent'] = parent unless parent.nil?
608
+ command.query['pageToken'] = page_token unless page_token.nil?
609
+ command.query['pageSize'] = page_size unless page_size.nil?
359
610
  command.query['fields'] = fields unless fields.nil?
360
611
  command.query['quotaUser'] = quota_user unless quota_user.nil?
361
612
  execute_or_queue_command(command, &block)
362
613
  end
363
614
 
364
- # Creates or updates a logs-based metric.
615
+ # Gets a logs-based metric.
365
616
  # @param [String] metric_name
366
- # The resource name of the metric to update. Example: `"projects/my-project-id/
367
- # metrics/my-metric-id"`. The updated metric must be provided in the request and
368
- # have the same identifier that is specified in `metricName`. If the metric does
369
- # not exist, it is created.
370
- # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
617
+ # The resource name of the desired metric:
618
+ # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
371
619
  # @param [String] fields
372
620
  # Selector specifying which fields to include in a partial response.
373
621
  # @param [String] quota_user
@@ -385,10 +633,8 @@ module Google
385
633
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
386
634
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
387
635
  # @raise [Google::Apis::AuthorizationError] Authorization is required
388
- def update_project_metric(metric_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
389
- command = make_simple_command(:put, 'v2beta1/{+metricName}', options)
390
- command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
391
- command.request_object = log_metric_object
636
+ def get_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
637
+ command = make_simple_command(:get, 'v2beta1/{+metricName}', options)
392
638
  command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
393
639
  command.response_class = Google::Apis::LoggingV2beta1::LogMetric
394
640
  command.params['metricName'] = metric_name unless metric_name.nil?
@@ -397,10 +643,14 @@ module Google
397
643
  execute_or_queue_command(command, &block)
398
644
  end
399
645
 
400
- # Deletes a logs-based metric.
646
+ # Creates or updates a logs-based metric.
401
647
  # @param [String] metric_name
402
- # The resource name of the metric to delete. Example: `"projects/my-project-id/
403
- # metrics/my-metric-id"`.
648
+ # The resource name of the metric to update:
649
+ # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
650
+ # The updated metric must be provided in the request and it's name field must be
651
+ # the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
652
+ # new metric is created.
653
+ # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
404
654
  # @param [String] fields
405
655
  # Selector specifying which fields to include in a partial response.
406
656
  # @param [String] quota_user
@@ -410,27 +660,32 @@ module Google
410
660
  # Request-specific options
411
661
  #
412
662
  # @yield [result, err] Result & error if block supplied
413
- # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
663
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
414
664
  # @yieldparam err [StandardError] error object if request failed
415
665
  #
416
- # @return [Google::Apis::LoggingV2beta1::Empty]
666
+ # @return [Google::Apis::LoggingV2beta1::LogMetric]
417
667
  #
418
668
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
419
669
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
420
670
  # @raise [Google::Apis::AuthorizationError] Authorization is required
421
- def delete_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
422
- command = make_simple_command(:delete, 'v2beta1/{+metricName}', options)
423
- command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
424
- command.response_class = Google::Apis::LoggingV2beta1::Empty
671
+ def update_project_metric(metric_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
672
+ command = make_simple_command(:put, 'v2beta1/{+metricName}', options)
673
+ command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
674
+ command.request_object = log_metric_object
675
+ command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
676
+ command.response_class = Google::Apis::LoggingV2beta1::LogMetric
425
677
  command.params['metricName'] = metric_name unless metric_name.nil?
426
678
  command.query['fields'] = fields unless fields.nil?
427
679
  command.query['quotaUser'] = quota_user unless quota_user.nil?
428
680
  execute_or_queue_command(command, &block)
429
681
  end
430
682
 
431
- # Writes log entries to Cloud Logging. All log entries in Cloud Logging are
432
- # written by this method.
433
- # @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_request_object
683
+ # Creates a logs-based metric.
684
+ # @param [String] parent
685
+ # The resource name of the project in which to create the metric:
686
+ # "projects/[PROJECT_ID]"
687
+ # The new metric must be provided in the request.
688
+ # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
434
689
  # @param [String] fields
435
690
  # Selector specifying which fields to include in a partial response.
436
691
  # @param [String] quota_user
@@ -440,28 +695,38 @@ module Google
440
695
  # Request-specific options
441
696
  #
442
697
  # @yield [result, err] Result & error if block supplied
443
- # @yieldparam result [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse] parsed result object
698
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
444
699
  # @yieldparam err [StandardError] error object if request failed
445
700
  #
446
- # @return [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse]
701
+ # @return [Google::Apis::LoggingV2beta1::LogMetric]
447
702
  #
448
703
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
449
704
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
450
705
  # @raise [Google::Apis::AuthorizationError] Authorization is required
451
- def write_entry_log_entries(write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
452
- command = make_simple_command(:post, 'v2beta1/entries:write', options)
453
- command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation
454
- command.request_object = write_log_entries_request_object
455
- command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation
456
- command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse
706
+ def create_project_metric(parent, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
707
+ command = make_simple_command(:post, 'v2beta1/{+parent}/metrics', options)
708
+ command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
709
+ command.request_object = log_metric_object
710
+ command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
711
+ command.response_class = Google::Apis::LoggingV2beta1::LogMetric
712
+ command.params['parent'] = parent unless parent.nil?
457
713
  command.query['fields'] = fields unless fields.nil?
458
714
  command.query['quotaUser'] = quota_user unless quota_user.nil?
459
715
  execute_or_queue_command(command, &block)
460
716
  end
461
717
 
462
- # Lists log entries. Use this method to retrieve log entries from Cloud Logging.
463
- # For ways to export log entries, see [Exporting Logs](/logging/docs/export).
464
- # @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_request_object
718
+ # Deletes all the log entries in a log. The log reappears if it receives new
719
+ # entries. Log entries written shortly before the delete operation might not be
720
+ # deleted.
721
+ # @param [String] log_name
722
+ # Required. The resource name of the log to delete:
723
+ # "projects/[PROJECT_ID]/logs/[LOG_ID]"
724
+ # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
725
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
726
+ # "folders/[FOLDER_ID]/logs/[LOG_ID]"
727
+ # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
728
+ # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
729
+ # 2Factivity". For more information about log names, see LogEntry.
465
730
  # @param [String] fields
466
731
  # Selector specifying which fields to include in a partial response.
467
732
  # @param [String] quota_user
@@ -471,35 +736,41 @@ module Google
471
736
  # Request-specific options
472
737
  #
473
738
  # @yield [result, err] Result & error if block supplied
474
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogEntriesResponse] parsed result object
739
+ # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
475
740
  # @yieldparam err [StandardError] error object if request failed
476
741
  #
477
- # @return [Google::Apis::LoggingV2beta1::ListLogEntriesResponse]
742
+ # @return [Google::Apis::LoggingV2beta1::Empty]
478
743
  #
479
744
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
480
745
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
481
746
  # @raise [Google::Apis::AuthorizationError] Authorization is required
482
- def list_entry_log_entries(list_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
483
- command = make_simple_command(:post, 'v2beta1/entries:list', options)
484
- command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation
485
- command.request_object = list_log_entries_request_object
486
- command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation
487
- command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse
747
+ def delete_billing_account_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
748
+ command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
749
+ command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
750
+ command.response_class = Google::Apis::LoggingV2beta1::Empty
751
+ command.params['logName'] = log_name unless log_name.nil?
488
752
  command.query['fields'] = fields unless fields.nil?
489
753
  command.query['quotaUser'] = quota_user unless quota_user.nil?
490
754
  execute_or_queue_command(command, &block)
491
755
  end
492
756
 
493
- # Lists monitored resource descriptors that are used by Cloud Logging.
494
- # @param [Fixnum] page_size
495
- # Optional. The maximum number of results to return from this request. You must
496
- # check for presence of `nextPageToken` to determine if additional results are
497
- # available, which you can retrieve by passing the `nextPageToken` value as the `
498
- # pageToken` parameter in the next request.
757
+ # Lists the logs in projects, organizations, folders, or billing accounts. Only
758
+ # logs that have entries are listed.
759
+ # @param [String] parent
760
+ # Required. The resource name that owns the logs:
761
+ # "projects/[PROJECT_ID]"
762
+ # "organizations/[ORGANIZATION_ID]"
763
+ # "billingAccounts/[BILLING_ACCOUNT_ID]"
764
+ # "folders/[FOLDER_ID]"
499
765
  # @param [String] page_token
500
- # Optional. If the `pageToken` parameter is supplied, then the next page of
501
- # results is retrieved. The `pageToken` parameter must be set to the value of
502
- # the `nextPageToken` from the previous response.
766
+ # Optional. If present, then retrieve the next batch of results from the
767
+ # preceding call to this method. pageToken must be the value of nextPageToken
768
+ # from the previous response. The values of other method parameters should be
769
+ # identical to those in the previous call.
770
+ # @param [Fixnum] page_size
771
+ # Optional. The maximum number of results to return from this request. Non-
772
+ # positive values are ignored. The presence of nextPageToken in the response
773
+ # indicates that more results might be available.
503
774
  # @param [String] fields
504
775
  # Selector specifying which fields to include in a partial response.
505
776
  # @param [String] quota_user
@@ -509,20 +780,21 @@ module Google
509
780
  # Request-specific options
510
781
  #
511
782
  # @yield [result, err] Result & error if block supplied
512
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse] parsed result object
783
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogsResponse] parsed result object
513
784
  # @yieldparam err [StandardError] error object if request failed
514
785
  #
515
- # @return [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse]
786
+ # @return [Google::Apis::LoggingV2beta1::ListLogsResponse]
516
787
  #
517
788
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
518
789
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
519
790
  # @raise [Google::Apis::AuthorizationError] Authorization is required
520
- def list_monitored_resource_descriptors(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
521
- command = make_simple_command(:get, 'v2beta1/monitoredResourceDescriptors', options)
522
- command.response_representation = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse::Representation
523
- command.response_class = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse
524
- command.query['pageSize'] = page_size unless page_size.nil?
791
+ def list_billing_account_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
792
+ command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
793
+ command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
794
+ command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
795
+ command.params['parent'] = parent unless parent.nil?
525
796
  command.query['pageToken'] = page_token unless page_token.nil?
797
+ command.query['pageSize'] = page_size unless page_size.nil?
526
798
  command.query['fields'] = fields unless fields.nil?
527
799
  command.query['quotaUser'] = quota_user unless quota_user.nil?
528
800
  execute_or_queue_command(command, &block)