google-api-client 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (315) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/api_names.yaml +945 -41609
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +12 -12
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +2 -2
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1437 -412
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +516 -71
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1098 -422
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
  12. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
  13. data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
  14. data/generated/google/apis/admin_directory_v1/service.rb +26 -26
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  17. data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
  18. data/generated/google/apis/adsense_v1_4/service.rb +44 -44
  19. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  20. data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
  21. data/generated/google/apis/analytics_v3/classes.rb +3 -3
  22. data/generated/google/apis/analytics_v3/representations.rb +3 -3
  23. data/generated/google/apis/analytics_v3/service.rb +82 -82
  24. data/generated/google/apis/analyticsreporting_v4/classes.rb +937 -937
  25. data/generated/google/apis/analyticsreporting_v4/representations.rb +128 -128
  26. data/generated/google/apis/analyticsreporting_v4/service.rb +1 -1
  27. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  28. data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
  29. data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
  30. data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
  31. data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
  32. data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
  33. data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
  34. data/generated/google/apis/appengine_v1.rb +4 -4
  35. data/generated/google/apis/appengine_v1/classes.rb +1570 -1512
  36. data/generated/google/apis/appengine_v1/representations.rb +362 -343
  37. data/generated/google/apis/appengine_v1/service.rb +220 -220
  38. data/generated/google/apis/appstate_v1.rb +1 -1
  39. data/generated/google/apis/bigquery_v2.rb +1 -1
  40. data/generated/google/apis/bigquery_v2/classes.rb +5 -5
  41. data/generated/google/apis/bigquery_v2/representations.rb +8 -8
  42. data/generated/google/apis/bigquery_v2/service.rb +13 -13
  43. data/generated/google/apis/blogger_v3/service.rb +3 -3
  44. data/generated/google/apis/books_v1/classes.rb +55 -55
  45. data/generated/google/apis/books_v1/representations.rb +67 -67
  46. data/generated/google/apis/books_v1/service.rb +82 -82
  47. data/generated/google/apis/calendar_v3.rb +1 -1
  48. data/generated/google/apis/calendar_v3/classes.rb +6 -6
  49. data/generated/google/apis/calendar_v3/representations.rb +3 -3
  50. data/generated/google/apis/calendar_v3/service.rb +2 -2
  51. data/generated/google/apis/civicinfo_v2/classes.rb +2 -2
  52. data/generated/google/apis/civicinfo_v2/representations.rb +4 -4
  53. data/generated/google/apis/civicinfo_v2/service.rb +12 -12
  54. data/generated/google/apis/classroom_v1.rb +7 -7
  55. data/generated/google/apis/classroom_v1/classes.rb +1013 -991
  56. data/generated/google/apis/classroom_v1/representations.rb +207 -204
  57. data/generated/google/apis/classroom_v1/service.rb +709 -709
  58. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  59. data/generated/google/apis/cloudbuild_v1/classes.rb +307 -307
  60. data/generated/google/apis/cloudbuild_v1/representations.rb +84 -84
  61. data/generated/google/apis/cloudbuild_v1/service.rb +125 -125
  62. data/generated/google/apis/clouddebugger_v2/classes.rb +673 -673
  63. data/generated/google/apis/clouddebugger_v2/representations.rb +152 -152
  64. data/generated/google/apis/clouddebugger_v2/service.rb +55 -55
  65. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  66. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +121 -121
  67. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +25 -25
  68. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +74 -74
  69. data/generated/google/apis/cloudkms_v1.rb +1 -1
  70. data/generated/google/apis/cloudkms_v1/classes.rb +668 -613
  71. data/generated/google/apis/cloudkms_v1/representations.rb +151 -133
  72. data/generated/google/apis/cloudkms_v1/service.rb +267 -267
  73. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  74. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1167 -1168
  75. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +193 -193
  76. data/generated/google/apis/cloudresourcemanager_v1/service.rb +470 -469
  77. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  78. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +508 -509
  79. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +94 -94
  80. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +157 -156
  81. data/generated/google/apis/cloudtrace_v1/service.rb +34 -34
  82. data/generated/google/apis/compute_beta.rb +1 -1
  83. data/generated/google/apis/compute_beta/classes.rb +163 -15
  84. data/generated/google/apis/compute_beta/representations.rb +54 -14
  85. data/generated/google/apis/compute_beta/service.rb +2258 -482
  86. data/generated/google/apis/compute_v1.rb +1 -1
  87. data/generated/google/apis/compute_v1/classes.rb +465 -13
  88. data/generated/google/apis/compute_v1/representations.rb +202 -16
  89. data/generated/google/apis/compute_v1/service.rb +573 -309
  90. data/generated/google/apis/container_v1.rb +1 -1
  91. data/generated/google/apis/container_v1/classes.rb +635 -589
  92. data/generated/google/apis/container_v1/representations.rb +139 -111
  93. data/generated/google/apis/container_v1/service.rb +272 -227
  94. data/generated/google/apis/content_v2.rb +1 -1
  95. data/generated/google/apis/content_v2/classes.rb +86 -74
  96. data/generated/google/apis/content_v2/representations.rb +107 -105
  97. data/generated/google/apis/content_v2/service.rb +131 -130
  98. data/generated/google/apis/customsearch_v1.rb +2 -2
  99. data/generated/google/apis/customsearch_v1/classes.rb +0 -6
  100. data/generated/google/apis/customsearch_v1/representations.rb +0 -1
  101. data/generated/google/apis/customsearch_v1/service.rb +2 -5
  102. data/generated/google/apis/dataflow_v1b3.rb +7 -4
  103. data/generated/google/apis/dataflow_v1b3/classes.rb +3405 -3405
  104. data/generated/google/apis/dataflow_v1b3/representations.rb +834 -834
  105. data/generated/google/apis/dataflow_v1b3/service.rb +244 -244
  106. data/generated/google/apis/dataproc_v1.rb +1 -1
  107. data/generated/google/apis/dataproc_v1/classes.rb +543 -691
  108. data/generated/google/apis/dataproc_v1/representations.rb +129 -185
  109. data/generated/google/apis/dataproc_v1/service.rb +347 -347
  110. data/generated/google/apis/datastore_v1.rb +4 -4
  111. data/generated/google/apis/datastore_v1/classes.rb +833 -833
  112. data/generated/google/apis/datastore_v1/representations.rb +182 -182
  113. data/generated/google/apis/datastore_v1/service.rb +45 -45
  114. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  115. data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
  116. data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
  117. data/generated/google/apis/discovery_v1/classes.rb +4 -4
  118. data/generated/google/apis/discovery_v1/representations.rb +2 -2
  119. data/generated/google/apis/discovery_v1/service.rb +1 -1
  120. data/generated/google/apis/dns_v1.rb +1 -1
  121. data/generated/google/apis/dns_v1/classes.rb +3 -3
  122. data/generated/google/apis/dns_v1/representations.rb +6 -6
  123. data/generated/google/apis/dns_v1/service.rb +12 -12
  124. data/generated/google/apis/dns_v2beta1.rb +1 -1
  125. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
  126. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  127. data/generated/google/apis/drive_v2.rb +1 -1
  128. data/generated/google/apis/drive_v2/classes.rb +1 -1
  129. data/generated/google/apis/drive_v2/service.rb +1 -1
  130. data/generated/google/apis/drive_v3.rb +1 -1
  131. data/generated/google/apis/drive_v3/service.rb +1 -1
  132. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  133. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +160 -110
  134. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +60 -31
  135. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +38 -3
  136. data/generated/google/apis/firebaserules_v1/classes.rb +354 -354
  137. data/generated/google/apis/firebaserules_v1/representations.rb +87 -87
  138. data/generated/google/apis/firebaserules_v1/service.rb +103 -103
  139. data/generated/google/apis/fusiontables_v2/service.rb +2 -2
  140. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  141. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  142. data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
  143. data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
  144. data/generated/google/apis/games_management_v1management.rb +1 -1
  145. data/generated/google/apis/games_v1.rb +1 -1
  146. data/generated/google/apis/games_v1/classes.rb +23 -23
  147. data/generated/google/apis/games_v1/representations.rb +43 -43
  148. data/generated/google/apis/games_v1/service.rb +72 -72
  149. data/generated/google/apis/genomics_v1.rb +1 -1
  150. data/generated/google/apis/genomics_v1/classes.rb +2316 -2316
  151. data/generated/google/apis/genomics_v1/representations.rb +291 -291
  152. data/generated/google/apis/genomics_v1/service.rb +821 -821
  153. data/generated/google/apis/gmail_v1.rb +1 -1
  154. data/generated/google/apis/groupsmigration_v1.rb +1 -1
  155. data/generated/google/apis/groupssettings_v1.rb +1 -1
  156. data/generated/google/apis/groupssettings_v1/classes.rb +2 -2
  157. data/generated/google/apis/groupssettings_v1/service.rb +3 -0
  158. data/generated/google/apis/iam_v1/classes.rb +338 -338
  159. data/generated/google/apis/iam_v1/representations.rb +98 -98
  160. data/generated/google/apis/iam_v1/service.rb +35 -35
  161. data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
  162. data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
  163. data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
  164. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  165. data/generated/google/apis/language_v1.rb +1 -1
  166. data/generated/google/apis/language_v1/classes.rb +374 -374
  167. data/generated/google/apis/language_v1/representations.rb +97 -97
  168. data/generated/google/apis/language_v1/service.rb +16 -16
  169. data/generated/google/apis/language_v1beta1.rb +1 -1
  170. data/generated/google/apis/language_v1beta1/classes.rb +441 -441
  171. data/generated/google/apis/language_v1beta1/representations.rb +108 -108
  172. data/generated/google/apis/language_v1beta1/service.rb +30 -30
  173. data/generated/google/apis/licensing_v1/service.rb +2 -2
  174. data/generated/google/apis/logging_v2.rb +1 -1
  175. data/generated/google/apis/logging_v2/classes.rb +712 -712
  176. data/generated/google/apis/logging_v2/representations.rb +109 -109
  177. data/generated/google/apis/logging_v2/service.rb +543 -539
  178. data/generated/google/apis/logging_v2beta1.rb +1 -1
  179. data/generated/google/apis/logging_v2beta1/classes.rb +752 -752
  180. data/generated/google/apis/logging_v2beta1/representations.rb +94 -94
  181. data/generated/google/apis/logging_v2beta1/service.rb +257 -256
  182. data/generated/google/apis/manufacturers_v1/classes.rb +130 -130
  183. data/generated/google/apis/manufacturers_v1/representations.rb +28 -28
  184. data/generated/google/apis/mirror_v1/classes.rb +5 -5
  185. data/generated/google/apis/mirror_v1/representations.rb +10 -10
  186. data/generated/google/apis/mirror_v1/service.rb +20 -20
  187. data/generated/google/apis/ml_v1.rb +1 -1
  188. data/generated/google/apis/ml_v1/classes.rb +1830 -1210
  189. data/generated/google/apis/ml_v1/representations.rb +342 -120
  190. data/generated/google/apis/ml_v1/service.rb +365 -258
  191. data/generated/google/apis/monitoring_v3.rb +4 -4
  192. data/generated/google/apis/monitoring_v3/classes.rb +889 -889
  193. data/generated/google/apis/monitoring_v3/representations.rb +174 -174
  194. data/generated/google/apis/monitoring_v3/service.rb +119 -119
  195. data/generated/google/apis/mybusiness_v3/service.rb +5 -5
  196. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  197. data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
  198. data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
  199. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  200. data/generated/google/apis/partners_v2.rb +1 -1
  201. data/generated/google/apis/partners_v2/classes.rb +550 -536
  202. data/generated/google/apis/partners_v2/representations.rb +118 -116
  203. data/generated/google/apis/partners_v2/service.rb +439 -439
  204. data/generated/google/apis/people_v1.rb +4 -4
  205. data/generated/google/apis/people_v1/classes.rb +414 -413
  206. data/generated/google/apis/people_v1/representations.rb +85 -85
  207. data/generated/google/apis/people_v1/service.rb +111 -18
  208. data/generated/google/apis/plus_domains_v1.rb +1 -1
  209. data/generated/google/apis/plus_domains_v1/service.rb +4 -4
  210. data/generated/google/apis/plus_v1.rb +1 -1
  211. data/generated/google/apis/plus_v1/service.rb +1 -1
  212. data/generated/google/apis/prediction_v1_6/service.rb +8 -8
  213. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  214. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +443 -443
  215. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +92 -92
  216. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +152 -152
  217. data/generated/google/apis/pubsub_v1/classes.rb +249 -249
  218. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  219. data/generated/google/apis/pubsub_v1/service.rb +415 -415
  220. data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
  221. data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
  222. data/generated/google/apis/qpx_express_v1/service.rb +8 -8
  223. data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
  224. data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
  225. data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
  226. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
  227. data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
  228. data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
  230. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  231. data/generated/google/apis/runtimeconfig_v1/classes.rb +15 -15
  232. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  233. data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
  234. data/generated/google/apis/script_v1.rb +17 -17
  235. data/generated/google/apis/script_v1/classes.rb +27 -27
  236. data/generated/google/apis/script_v1/representations.rb +5 -5
  237. data/generated/google/apis/script_v1/service.rb +4 -4
  238. data/generated/google/apis/searchconsole_v1.rb +1 -1
  239. data/generated/google/apis/searchconsole_v1/classes.rb +53 -53
  240. data/generated/google/apis/searchconsole_v1/representations.rb +23 -23
  241. data/generated/google/apis/searchconsole_v1/service.rb +4 -4
  242. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  243. data/generated/google/apis/servicecontrol_v1/classes.rb +1175 -1175
  244. data/generated/google/apis/servicecontrol_v1/representations.rb +206 -206
  245. data/generated/google/apis/servicecontrol_v1/service.rb +116 -116
  246. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  247. data/generated/google/apis/servicemanagement_v1/classes.rb +1186 -1125
  248. data/generated/google/apis/servicemanagement_v1/representations.rb +241 -223
  249. data/generated/google/apis/servicemanagement_v1/service.rb +201 -201
  250. data/generated/google/apis/serviceuser_v1.rb +1 -1
  251. data/generated/google/apis/serviceuser_v1/classes.rb +2645 -2641
  252. data/generated/google/apis/serviceuser_v1/representations.rb +234 -234
  253. data/generated/google/apis/serviceuser_v1/service.rb +37 -37
  254. data/generated/google/apis/sheets_v4.rb +1 -1
  255. data/generated/google/apis/sheets_v4/classes.rb +5042 -4111
  256. data/generated/google/apis/sheets_v4/representations.rb +994 -824
  257. data/generated/google/apis/sheets_v4/service.rb +80 -80
  258. data/generated/google/apis/site_verification_v1/classes.rb +6 -6
  259. data/generated/google/apis/site_verification_v1/representations.rb +8 -8
  260. data/generated/google/apis/site_verification_v1/service.rb +12 -12
  261. data/generated/google/apis/slides_v1.rb +1 -1
  262. data/generated/google/apis/slides_v1/classes.rb +2885 -2885
  263. data/generated/google/apis/slides_v1/representations.rb +310 -310
  264. data/generated/google/apis/slides_v1/service.rb +54 -54
  265. data/generated/google/apis/sourcerepo_v1/classes.rb +206 -206
  266. data/generated/google/apis/sourcerepo_v1/representations.rb +52 -52
  267. data/generated/google/apis/sourcerepo_v1/service.rb +5 -5
  268. data/generated/google/apis/spanner_v1.rb +1 -1
  269. data/generated/google/apis/spanner_v1/classes.rb +2142 -2141
  270. data/generated/google/apis/spanner_v1/representations.rb +174 -174
  271. data/generated/google/apis/spanner_v1/service.rb +497 -497
  272. data/generated/google/apis/speech_v1beta1.rb +1 -1
  273. data/generated/google/apis/speech_v1beta1/classes.rb +227 -227
  274. data/generated/google/apis/speech_v1beta1/representations.rb +50 -50
  275. data/generated/google/apis/speech_v1beta1/service.rb +33 -33
  276. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  277. data/generated/google/apis/sqladmin_v1beta4/classes.rb +21 -21
  278. data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -29
  279. data/generated/google/apis/sqladmin_v1beta4/service.rb +56 -56
  280. data/generated/google/apis/storage_v1.rb +1 -1
  281. data/generated/google/apis/storage_v1/classes.rb +40 -6
  282. data/generated/google/apis/storage_v1/representations.rb +20 -4
  283. data/generated/google/apis/storage_v1/service.rb +61 -46
  284. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  285. data/generated/google/apis/storagetransfer_v1/classes.rb +184 -184
  286. data/generated/google/apis/storagetransfer_v1/representations.rb +35 -35
  287. data/generated/google/apis/storagetransfer_v1/service.rb +70 -70
  288. data/generated/google/apis/tagmanager_v1/service.rb +33 -33
  289. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  290. data/generated/google/apis/translate_v2/classes.rb +12 -12
  291. data/generated/google/apis/translate_v2/representations.rb +10 -10
  292. data/generated/google/apis/translate_v2/service.rb +62 -62
  293. data/generated/google/apis/vision_v1.rb +1 -1
  294. data/generated/google/apis/vision_v1/classes.rb +1267 -1267
  295. data/generated/google/apis/vision_v1/representations.rb +200 -200
  296. data/generated/google/apis/vision_v1/service.rb +10 -10
  297. data/generated/google/apis/webmasters_v3.rb +1 -1
  298. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  299. data/generated/google/apis/webmasters_v3/representations.rb +8 -8
  300. data/generated/google/apis/webmasters_v3/service.rb +21 -21
  301. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  302. data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
  303. data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
  304. data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
  305. data/generated/google/apis/youtube_v3/classes.rb +20 -20
  306. data/generated/google/apis/youtube_v3/representations.rb +40 -40
  307. data/generated/google/apis/youtube_v3/service.rb +80 -80
  308. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  309. data/generated/google/apis/youtubereporting_v1/classes.rb +129 -129
  310. data/generated/google/apis/youtubereporting_v1/representations.rb +38 -38
  311. data/generated/google/apis/youtubereporting_v1/service.rb +97 -97
  312. data/lib/google/apis/generator/annotator.rb +2 -2
  313. data/lib/google/apis/generator/model.rb +2 -2
  314. data/lib/google/apis/version.rb +1 -1
  315. metadata +2 -2
@@ -22,6 +22,36 @@ module Google
22
22
  module Apis
23
23
  module LoggingV2beta1
24
24
 
25
+ class WriteLogEntriesRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class LogSink
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class ListLogsResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class HttpRequest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class ListSinksResponse
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
25
55
  class LabelDescriptor
26
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
57
 
@@ -124,42 +154,76 @@ module Google
124
154
  include Google::Apis::Core::JsonObjectSupport
125
155
  end
126
156
 
127
- class LogSink
128
- class Representation < Google::Apis::Core::JsonRepresentation; end
157
+ class WriteLogEntriesRequest
158
+ # @private
159
+ class Representation < Google::Apis::Core::JsonRepresentation
160
+ property :partial_success, as: 'partialSuccess'
161
+ hash :labels, as: 'labels'
162
+ property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation
129
163
 
130
- include Google::Apis::Core::JsonObjectSupport
131
- end
164
+ property :log_name, as: 'logName'
165
+ collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation
132
166
 
133
- class WriteLogEntriesRequest
134
- class Representation < Google::Apis::Core::JsonRepresentation; end
167
+ end
168
+ end
135
169
 
136
- include Google::Apis::Core::JsonObjectSupport
170
+ class LogSink
171
+ # @private
172
+ class Representation < Google::Apis::Core::JsonRepresentation
173
+ property :include_children, as: 'includeChildren'
174
+ property :destination, as: 'destination'
175
+ property :filter, as: 'filter'
176
+ property :end_time, as: 'endTime'
177
+ property :writer_identity, as: 'writerIdentity'
178
+ property :start_time, as: 'startTime'
179
+ property :output_version_format, as: 'outputVersionFormat'
180
+ property :name, as: 'name'
181
+ end
137
182
  end
138
183
 
139
184
  class ListLogsResponse
140
- class Representation < Google::Apis::Core::JsonRepresentation; end
141
-
142
- include Google::Apis::Core::JsonObjectSupport
185
+ # @private
186
+ class Representation < Google::Apis::Core::JsonRepresentation
187
+ property :next_page_token, as: 'nextPageToken'
188
+ collection :log_names, as: 'logNames'
189
+ end
143
190
  end
144
191
 
145
192
  class HttpRequest
146
- class Representation < Google::Apis::Core::JsonRepresentation; end
147
-
148
- include Google::Apis::Core::JsonObjectSupport
193
+ # @private
194
+ class Representation < Google::Apis::Core::JsonRepresentation
195
+ property :user_agent, as: 'userAgent'
196
+ property :latency, as: 'latency'
197
+ property :cache_fill_bytes, :numeric_string => true, as: 'cacheFillBytes'
198
+ property :request_method, as: 'requestMethod'
199
+ property :response_size, :numeric_string => true, as: 'responseSize'
200
+ property :request_size, :numeric_string => true, as: 'requestSize'
201
+ property :request_url, as: 'requestUrl'
202
+ property :server_ip, as: 'serverIp'
203
+ property :remote_ip, as: 'remoteIp'
204
+ property :cache_lookup, as: 'cacheLookup'
205
+ property :cache_hit, as: 'cacheHit'
206
+ property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
207
+ property :status, as: 'status'
208
+ property :referer, as: 'referer'
209
+ end
149
210
  end
150
211
 
151
212
  class ListSinksResponse
152
- class Representation < Google::Apis::Core::JsonRepresentation; end
213
+ # @private
214
+ class Representation < Google::Apis::Core::JsonRepresentation
215
+ collection :sinks, as: 'sinks', class: Google::Apis::LoggingV2beta1::LogSink, decorator: Google::Apis::LoggingV2beta1::LogSink::Representation
153
216
 
154
- include Google::Apis::Core::JsonObjectSupport
217
+ property :next_page_token, as: 'nextPageToken'
218
+ end
155
219
  end
156
220
 
157
221
  class LabelDescriptor
158
222
  # @private
159
223
  class Representation < Google::Apis::Core::JsonRepresentation
224
+ property :value_type, as: 'valueType'
160
225
  property :key, as: 'key'
161
226
  property :description, as: 'description'
162
- property :value_type, as: 'valueType'
163
227
  end
164
228
  end
165
229
 
@@ -207,9 +271,9 @@ module Google
207
271
  class ListLogMetricsResponse
208
272
  # @private
209
273
  class Representation < Google::Apis::Core::JsonRepresentation
274
+ property :next_page_token, as: 'nextPageToken'
210
275
  collection :metrics, as: 'metrics', class: Google::Apis::LoggingV2beta1::LogMetric, decorator: Google::Apis::LoggingV2beta1::LogMetric::Representation
211
276
 
212
- property :next_page_token, as: 'nextPageToken'
213
277
  end
214
278
  end
215
279
 
@@ -230,14 +294,14 @@ module Google
230
294
  property :timestamp, as: 'timestamp'
231
295
  property :receive_timestamp, as: 'receiveTimestamp'
232
296
  property :log_name, as: 'logName'
233
- property :http_request, as: 'httpRequest', class: Google::Apis::LoggingV2beta1::HttpRequest, decorator: Google::Apis::LoggingV2beta1::HttpRequest::Representation
234
-
235
297
  property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation
236
298
 
299
+ property :http_request, as: 'httpRequest', class: Google::Apis::LoggingV2beta1::HttpRequest, decorator: Google::Apis::LoggingV2beta1::HttpRequest::Representation
300
+
237
301
  hash :json_payload, as: 'jsonPayload'
238
- property :insert_id, as: 'insertId'
239
302
  property :operation, as: 'operation', class: Google::Apis::LoggingV2beta1::LogEntryOperation, decorator: Google::Apis::LoggingV2beta1::LogEntryOperation::Representation
240
303
 
304
+ property :insert_id, as: 'insertId'
241
305
  property :text_payload, as: 'textPayload'
242
306
  hash :proto_payload, as: 'protoPayload'
243
307
  end
@@ -246,27 +310,28 @@ module Google
246
310
  class SourceLocation
247
311
  # @private
248
312
  class Representation < Google::Apis::Core::JsonRepresentation
313
+ property :line, :numeric_string => true, as: 'line'
249
314
  property :file, as: 'file'
250
315
  property :function_name, as: 'functionName'
251
- property :line, :numeric_string => true, as: 'line'
252
316
  end
253
317
  end
254
318
 
255
319
  class ListLogEntriesRequest
256
320
  # @private
257
321
  class Representation < Google::Apis::Core::JsonRepresentation
322
+ property :filter, as: 'filter'
323
+ collection :project_ids, as: 'projectIds'
258
324
  property :page_token, as: 'pageToken'
259
325
  property :page_size, as: 'pageSize'
260
326
  property :order_by, as: 'orderBy'
261
327
  collection :resource_names, as: 'resourceNames'
262
- collection :project_ids, as: 'projectIds'
263
- property :filter, as: 'filter'
264
328
  end
265
329
  end
266
330
 
267
331
  class RequestLog
268
332
  # @private
269
333
  class Representation < Google::Apis::Core::JsonRepresentation
334
+ property :module_id, as: 'moduleId'
270
335
  property :end_time, as: 'endTime'
271
336
  property :user_agent, as: 'userAgent'
272
337
  property :was_loading_request, as: 'wasLoadingRequest'
@@ -276,8 +341,8 @@ module Google
276
341
  property :trace_id, as: 'traceId'
277
342
  collection :line, as: 'line', class: Google::Apis::LoggingV2beta1::LogLine, decorator: Google::Apis::LoggingV2beta1::LogLine::Representation
278
343
 
279
- property :task_queue_name, as: 'taskQueueName'
280
344
  property :referrer, as: 'referrer'
345
+ property :task_queue_name, as: 'taskQueueName'
281
346
  property :request_id, as: 'requestId'
282
347
  property :nickname, as: 'nickname'
283
348
  property :status, as: 'status'
@@ -300,7 +365,6 @@ module Google
300
365
  property :mega_cycles, :numeric_string => true, as: 'megaCycles'
301
366
  property :first, as: 'first'
302
367
  property :version_id, as: 'versionId'
303
- property :module_id, as: 'moduleId'
304
368
  end
305
369
  end
306
370
 
@@ -316,18 +380,18 @@ module Google
316
380
  class SourceReference
317
381
  # @private
318
382
  class Representation < Google::Apis::Core::JsonRepresentation
319
- property :revision_id, as: 'revisionId'
320
383
  property :repository, as: 'repository'
384
+ property :revision_id, as: 'revisionId'
321
385
  end
322
386
  end
323
387
 
324
388
  class LogMetric
325
389
  # @private
326
390
  class Representation < Google::Apis::Core::JsonRepresentation
327
- property :version, as: 'version'
328
- property :filter, as: 'filter'
329
391
  property :name, as: 'name'
330
392
  property :description, as: 'description'
393
+ property :version, as: 'version'
394
+ property :filter, as: 'filter'
331
395
  end
332
396
  end
333
397
 
@@ -340,82 +404,18 @@ module Google
340
404
  class LogEntryOperation
341
405
  # @private
342
406
  class Representation < Google::Apis::Core::JsonRepresentation
343
- property :last, as: 'last'
344
- property :id, as: 'id'
345
407
  property :producer, as: 'producer'
346
408
  property :first, as: 'first'
409
+ property :last, as: 'last'
410
+ property :id, as: 'id'
347
411
  end
348
412
  end
349
413
 
350
414
  class MonitoredResource
351
415
  # @private
352
416
  class Representation < Google::Apis::Core::JsonRepresentation
353
- hash :labels, as: 'labels'
354
417
  property :type, as: 'type'
355
- end
356
- end
357
-
358
- class LogSink
359
- # @private
360
- class Representation < Google::Apis::Core::JsonRepresentation
361
- property :include_children, as: 'includeChildren'
362
- property :destination, as: 'destination'
363
- property :filter, as: 'filter'
364
- property :end_time, as: 'endTime'
365
- property :start_time, as: 'startTime'
366
- property :writer_identity, as: 'writerIdentity'
367
- property :output_version_format, as: 'outputVersionFormat'
368
- property :name, as: 'name'
369
- end
370
- end
371
-
372
- class WriteLogEntriesRequest
373
- # @private
374
- class Representation < Google::Apis::Core::JsonRepresentation
375
- property :log_name, as: 'logName'
376
- collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation
377
-
378
- property :partial_success, as: 'partialSuccess'
379
418
  hash :labels, as: 'labels'
380
- property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation
381
-
382
- end
383
- end
384
-
385
- class ListLogsResponse
386
- # @private
387
- class Representation < Google::Apis::Core::JsonRepresentation
388
- collection :log_names, as: 'logNames'
389
- property :next_page_token, as: 'nextPageToken'
390
- end
391
- end
392
-
393
- class HttpRequest
394
- # @private
395
- class Representation < Google::Apis::Core::JsonRepresentation
396
- property :user_agent, as: 'userAgent'
397
- property :latency, as: 'latency'
398
- property :cache_fill_bytes, :numeric_string => true, as: 'cacheFillBytes'
399
- property :request_method, as: 'requestMethod'
400
- property :response_size, :numeric_string => true, as: 'responseSize'
401
- property :request_size, :numeric_string => true, as: 'requestSize'
402
- property :request_url, as: 'requestUrl'
403
- property :server_ip, as: 'serverIp'
404
- property :remote_ip, as: 'remoteIp'
405
- property :cache_lookup, as: 'cacheLookup'
406
- property :cache_hit, as: 'cacheHit'
407
- property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
408
- property :status, as: 'status'
409
- property :referer, as: 'referer'
410
- end
411
- end
412
-
413
- class ListSinksResponse
414
- # @private
415
- class Representation < Google::Apis::Core::JsonRepresentation
416
- property :next_page_token, as: 'nextPageToken'
417
- collection :sinks, as: 'sinks', class: Google::Apis::LoggingV2beta1::LogSink, decorator: Google::Apis::LoggingV2beta1::LogSink::Representation
418
-
419
419
  end
420
420
  end
421
421
  end
@@ -47,16 +47,23 @@ module Google
47
47
  @batch_path = 'batch'
48
48
  end
49
49
 
50
- # Lists the descriptors for monitored resource types used by Stackdriver Logging.
51
- # @param [Fixnum] page_size
52
- # Optional. The maximum number of results to return from this request. Non-
53
- # positive values are ignored. The presence of nextPageToken in the response
54
- # indicates that more results might be available.
50
+ # Lists the logs in projects, organizations, folders, or billing accounts. Only
51
+ # logs that have entries are listed.
52
+ # @param [String] parent
53
+ # Required. The resource name that owns the logs:
54
+ # "projects/[PROJECT_ID]"
55
+ # "organizations/[ORGANIZATION_ID]"
56
+ # "billingAccounts/[BILLING_ACCOUNT_ID]"
57
+ # "folders/[FOLDER_ID]"
55
58
  # @param [String] page_token
56
59
  # Optional. If present, then retrieve the next batch of results from the
57
60
  # preceding call to this method. pageToken must be the value of nextPageToken
58
61
  # from the previous response. The values of other method parameters should be
59
62
  # identical to those in the previous call.
63
+ # @param [Fixnum] page_size
64
+ # Optional. The maximum number of results to return from this request. Non-
65
+ # positive values are ignored. The presence of nextPageToken in the response
66
+ # indicates that more results might be available.
60
67
  # @param [String] fields
61
68
  # Selector specifying which fields to include in a partial response.
62
69
  # @param [String] quota_user
@@ -66,20 +73,21 @@ module Google
66
73
  # Request-specific options
67
74
  #
68
75
  # @yield [result, err] Result & error if block supplied
69
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse] parsed result object
76
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogsResponse] parsed result object
70
77
  # @yieldparam err [StandardError] error object if request failed
71
78
  #
72
- # @return [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse]
79
+ # @return [Google::Apis::LoggingV2beta1::ListLogsResponse]
73
80
  #
74
81
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
75
82
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
76
83
  # @raise [Google::Apis::AuthorizationError] Authorization is required
77
- def list_monitored_resource_descriptors(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
78
- command = make_simple_command(:get, 'v2beta1/monitoredResourceDescriptors', options)
79
- command.response_representation = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse::Representation
80
- command.response_class = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse
81
- command.query['pageSize'] = page_size unless page_size.nil?
84
+ def list_billing_account_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
85
+ command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
86
+ command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
87
+ command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
88
+ command.params['parent'] = parent unless parent.nil?
82
89
  command.query['pageToken'] = page_token unless page_token.nil?
90
+ command.query['pageSize'] = page_size unless page_size.nil?
83
91
  command.query['fields'] = fields unless fields.nil?
84
92
  command.query['quotaUser'] = quota_user unless quota_user.nil?
85
93
  execute_or_queue_command(command, &block)
@@ -114,7 +122,7 @@ module Google
114
122
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
115
123
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
116
124
  # @raise [Google::Apis::AuthorizationError] Authorization is required
117
- def delete_organization_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
125
+ def delete_billing_account_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
118
126
  command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
119
127
  command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
120
128
  command.response_class = Google::Apis::LoggingV2beta1::Empty
@@ -124,14 +132,7 @@ module Google
124
132
  execute_or_queue_command(command, &block)
125
133
  end
126
134
 
127
- # Lists the logs in projects, organizations, folders, or billing accounts. Only
128
- # logs that have entries are listed.
129
- # @param [String] parent
130
- # Required. The resource name that owns the logs:
131
- # "projects/[PROJECT_ID]"
132
- # "organizations/[ORGANIZATION_ID]"
133
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
134
- # "folders/[FOLDER_ID]"
135
+ # Lists the descriptors for monitored resource types used by Stackdriver Logging.
135
136
  # @param [String] page_token
136
137
  # Optional. If present, then retrieve the next batch of results from the
137
138
  # preceding call to this method. pageToken must be the value of nextPageToken
@@ -150,19 +151,18 @@ module Google
150
151
  # Request-specific options
151
152
  #
152
153
  # @yield [result, err] Result & error if block supplied
153
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogsResponse] parsed result object
154
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse] parsed result object
154
155
  # @yieldparam err [StandardError] error object if request failed
155
156
  #
156
- # @return [Google::Apis::LoggingV2beta1::ListLogsResponse]
157
+ # @return [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse]
157
158
  #
158
159
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
159
160
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
160
161
  # @raise [Google::Apis::AuthorizationError] Authorization is required
161
- def list_organization_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
162
- command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
163
- command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
164
- command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
165
- command.params['parent'] = parent unless parent.nil?
162
+ def list_monitored_resource_descriptors(page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
163
+ command = make_simple_command(:get, 'v2beta1/monitoredResourceDescriptors', options)
164
+ command.response_representation = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse::Representation
165
+ command.response_class = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse
166
166
  command.query['pageToken'] = page_token unless page_token.nil?
167
167
  command.query['pageSize'] = page_size unless page_size.nil?
168
168
  command.query['fields'] = fields unless fields.nil?
@@ -170,80 +170,23 @@ module Google
170
170
  execute_or_queue_command(command, &block)
171
171
  end
172
172
 
173
- # Lists log entries. Use this method to retrieve log entries from Stackdriver
174
- # Logging. For ways to export log entries, see Exporting Logs.
175
- # @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_request_object
176
- # @param [String] fields
177
- # Selector specifying which fields to include in a partial response.
178
- # @param [String] quota_user
179
- # Available to use for quota purposes for server-side applications. Can be any
180
- # arbitrary string assigned to a user, but should not exceed 40 characters.
181
- # @param [Google::Apis::RequestOptions] options
182
- # Request-specific options
183
- #
184
- # @yield [result, err] Result & error if block supplied
185
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogEntriesResponse] parsed result object
186
- # @yieldparam err [StandardError] error object if request failed
187
- #
188
- # @return [Google::Apis::LoggingV2beta1::ListLogEntriesResponse]
189
- #
190
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
191
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
192
- # @raise [Google::Apis::AuthorizationError] Authorization is required
193
- def list_entry_log_entries(list_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
194
- command = make_simple_command(:post, 'v2beta1/entries:list', options)
195
- command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation
196
- command.request_object = list_log_entries_request_object
197
- command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation
198
- command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse
199
- command.query['fields'] = fields unless fields.nil?
200
- command.query['quotaUser'] = quota_user unless quota_user.nil?
201
- execute_or_queue_command(command, &block)
202
- end
203
-
204
- # Writes log entries to Stackdriver Logging.
205
- # @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_request_object
206
- # @param [String] fields
207
- # Selector specifying which fields to include in a partial response.
208
- # @param [String] quota_user
209
- # Available to use for quota purposes for server-side applications. Can be any
210
- # arbitrary string assigned to a user, but should not exceed 40 characters.
211
- # @param [Google::Apis::RequestOptions] options
212
- # Request-specific options
213
- #
214
- # @yield [result, err] Result & error if block supplied
215
- # @yieldparam result [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse] parsed result object
216
- # @yieldparam err [StandardError] error object if request failed
217
- #
218
- # @return [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse]
219
- #
220
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
221
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
222
- # @raise [Google::Apis::AuthorizationError] Authorization is required
223
- def write_entry_log_entries(write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
224
- command = make_simple_command(:post, 'v2beta1/entries:write', options)
225
- command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation
226
- command.request_object = write_log_entries_request_object
227
- command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation
228
- command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse
229
- command.query['fields'] = fields unless fields.nil?
230
- command.query['quotaUser'] = quota_user unless quota_user.nil?
231
- execute_or_queue_command(command, &block)
232
- end
233
-
234
- # Lists logs-based metrics.
173
+ # Lists the logs in projects, organizations, folders, or billing accounts. Only
174
+ # logs that have entries are listed.
235
175
  # @param [String] parent
236
- # Required. The name of the project containing the metrics:
176
+ # Required. The resource name that owns the logs:
237
177
  # "projects/[PROJECT_ID]"
178
+ # "organizations/[ORGANIZATION_ID]"
179
+ # "billingAccounts/[BILLING_ACCOUNT_ID]"
180
+ # "folders/[FOLDER_ID]"
181
+ # @param [Fixnum] page_size
182
+ # Optional. The maximum number of results to return from this request. Non-
183
+ # positive values are ignored. The presence of nextPageToken in the response
184
+ # indicates that more results might be available.
238
185
  # @param [String] page_token
239
186
  # Optional. If present, then retrieve the next batch of results from the
240
187
  # preceding call to this method. pageToken must be the value of nextPageToken
241
188
  # from the previous response. The values of other method parameters should be
242
189
  # identical to those in the previous call.
243
- # @param [Fixnum] page_size
244
- # Optional. The maximum number of results to return from this request. Non-
245
- # positive values are ignored. The presence of nextPageToken in the response
246
- # indicates that more results might be available.
247
190
  # @param [String] fields
248
191
  # Selector specifying which fields to include in a partial response.
249
192
  # @param [String] quota_user
@@ -253,65 +196,38 @@ module Google
253
196
  # Request-specific options
254
197
  #
255
198
  # @yield [result, err] Result & error if block supplied
256
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogMetricsResponse] parsed result object
199
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogsResponse] parsed result object
257
200
  # @yieldparam err [StandardError] error object if request failed
258
201
  #
259
- # @return [Google::Apis::LoggingV2beta1::ListLogMetricsResponse]
202
+ # @return [Google::Apis::LoggingV2beta1::ListLogsResponse]
260
203
  #
261
204
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
262
205
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
263
206
  # @raise [Google::Apis::AuthorizationError] Authorization is required
264
- def list_project_metrics(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
265
- command = make_simple_command(:get, 'v2beta1/{+parent}/metrics', options)
266
- command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation
267
- command.response_class = Google::Apis::LoggingV2beta1::ListLogMetricsResponse
207
+ def list_organization_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
208
+ command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
209
+ command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
210
+ command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
268
211
  command.params['parent'] = parent unless parent.nil?
269
- command.query['pageToken'] = page_token unless page_token.nil?
270
212
  command.query['pageSize'] = page_size unless page_size.nil?
213
+ command.query['pageToken'] = page_token unless page_token.nil?
271
214
  command.query['fields'] = fields unless fields.nil?
272
215
  command.query['quotaUser'] = quota_user unless quota_user.nil?
273
216
  execute_or_queue_command(command, &block)
274
217
  end
275
218
 
276
- # Gets a logs-based metric.
277
- # @param [String] metric_name
278
- # The resource name of the desired metric:
279
- # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
280
- # @param [String] fields
281
- # Selector specifying which fields to include in a partial response.
282
- # @param [String] quota_user
283
- # Available to use for quota purposes for server-side applications. Can be any
284
- # arbitrary string assigned to a user, but should not exceed 40 characters.
285
- # @param [Google::Apis::RequestOptions] options
286
- # Request-specific options
287
- #
288
- # @yield [result, err] Result & error if block supplied
289
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
290
- # @yieldparam err [StandardError] error object if request failed
291
- #
292
- # @return [Google::Apis::LoggingV2beta1::LogMetric]
293
- #
294
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
295
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
296
- # @raise [Google::Apis::AuthorizationError] Authorization is required
297
- def get_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
298
- command = make_simple_command(:get, 'v2beta1/{+metricName}', options)
299
- command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
300
- command.response_class = Google::Apis::LoggingV2beta1::LogMetric
301
- command.params['metricName'] = metric_name unless metric_name.nil?
302
- command.query['fields'] = fields unless fields.nil?
303
- command.query['quotaUser'] = quota_user unless quota_user.nil?
304
- execute_or_queue_command(command, &block)
305
- end
306
-
307
- # Creates or updates a logs-based metric.
308
- # @param [String] metric_name
309
- # The resource name of the metric to update:
310
- # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
311
- # The updated metric must be provided in the request and it's name field must be
312
- # the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
313
- # new metric is created.
314
- # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
219
+ # Deletes all the log entries in a log. The log reappears if it receives new
220
+ # entries. Log entries written shortly before the delete operation might not be
221
+ # deleted.
222
+ # @param [String] log_name
223
+ # Required. The resource name of the log to delete:
224
+ # "projects/[PROJECT_ID]/logs/[LOG_ID]"
225
+ # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
226
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
227
+ # "folders/[FOLDER_ID]/logs/[LOG_ID]"
228
+ # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
229
+ # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
230
+ # 2Factivity". For more information about log names, see LogEntry.
315
231
  # @param [String] fields
316
232
  # Selector specifying which fields to include in a partial response.
317
233
  # @param [String] quota_user
@@ -321,32 +237,27 @@ module Google
321
237
  # Request-specific options
322
238
  #
323
239
  # @yield [result, err] Result & error if block supplied
324
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
240
+ # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
325
241
  # @yieldparam err [StandardError] error object if request failed
326
242
  #
327
- # @return [Google::Apis::LoggingV2beta1::LogMetric]
243
+ # @return [Google::Apis::LoggingV2beta1::Empty]
328
244
  #
329
245
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
330
246
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
331
247
  # @raise [Google::Apis::AuthorizationError] Authorization is required
332
- def update_project_metric(metric_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
333
- command = make_simple_command(:put, 'v2beta1/{+metricName}', options)
334
- command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
335
- command.request_object = log_metric_object
336
- command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
337
- command.response_class = Google::Apis::LoggingV2beta1::LogMetric
338
- command.params['metricName'] = metric_name unless metric_name.nil?
248
+ def delete_organization_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
249
+ command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
250
+ command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
251
+ command.response_class = Google::Apis::LoggingV2beta1::Empty
252
+ command.params['logName'] = log_name unless log_name.nil?
339
253
  command.query['fields'] = fields unless fields.nil?
340
254
  command.query['quotaUser'] = quota_user unless quota_user.nil?
341
255
  execute_or_queue_command(command, &block)
342
256
  end
343
257
 
344
- # Creates a logs-based metric.
345
- # @param [String] parent
346
- # The resource name of the project in which to create the metric:
347
- # "projects/[PROJECT_ID]"
348
- # The new metric must be provided in the request.
349
- # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
258
+ # Lists log entries. Use this method to retrieve log entries from Stackdriver
259
+ # Logging. For ways to export log entries, see Exporting Logs.
260
+ # @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_request_object
350
261
  # @param [String] fields
351
262
  # Selector specifying which fields to include in a partial response.
352
263
  # @param [String] quota_user
@@ -356,30 +267,27 @@ module Google
356
267
  # Request-specific options
357
268
  #
358
269
  # @yield [result, err] Result & error if block supplied
359
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
270
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogEntriesResponse] parsed result object
360
271
  # @yieldparam err [StandardError] error object if request failed
361
272
  #
362
- # @return [Google::Apis::LoggingV2beta1::LogMetric]
273
+ # @return [Google::Apis::LoggingV2beta1::ListLogEntriesResponse]
363
274
  #
364
275
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
365
276
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
366
277
  # @raise [Google::Apis::AuthorizationError] Authorization is required
367
- def create_project_metric(parent, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
368
- command = make_simple_command(:post, 'v2beta1/{+parent}/metrics', options)
369
- command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
370
- command.request_object = log_metric_object
371
- command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
372
- command.response_class = Google::Apis::LoggingV2beta1::LogMetric
373
- command.params['parent'] = parent unless parent.nil?
278
+ def list_entry_log_entries(list_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
279
+ command = make_simple_command(:post, 'v2beta1/entries:list', options)
280
+ command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation
281
+ command.request_object = list_log_entries_request_object
282
+ command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation
283
+ command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse
374
284
  command.query['fields'] = fields unless fields.nil?
375
285
  command.query['quotaUser'] = quota_user unless quota_user.nil?
376
286
  execute_or_queue_command(command, &block)
377
287
  end
378
288
 
379
- # Deletes a logs-based metric.
380
- # @param [String] metric_name
381
- # The resource name of the metric to delete:
382
- # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
289
+ # Writes log entries to Stackdriver Logging.
290
+ # @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_request_object
383
291
  # @param [String] fields
384
292
  # Selector specifying which fields to include in a partial response.
385
293
  # @param [String] quota_user
@@ -389,19 +297,20 @@ module Google
389
297
  # Request-specific options
390
298
  #
391
299
  # @yield [result, err] Result & error if block supplied
392
- # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
300
+ # @yieldparam result [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse] parsed result object
393
301
  # @yieldparam err [StandardError] error object if request failed
394
302
  #
395
- # @return [Google::Apis::LoggingV2beta1::Empty]
303
+ # @return [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse]
396
304
  #
397
305
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
398
306
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
399
307
  # @raise [Google::Apis::AuthorizationError] Authorization is required
400
- def delete_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
401
- command = make_simple_command(:delete, 'v2beta1/{+metricName}', options)
402
- command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
403
- command.response_class = Google::Apis::LoggingV2beta1::Empty
404
- command.params['metricName'] = metric_name unless metric_name.nil?
308
+ def write_entry_log_entries(write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
309
+ command = make_simple_command(:post, 'v2beta1/entries:write', options)
310
+ command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation
311
+ command.request_object = write_log_entries_request_object
312
+ command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation
313
+ command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse
405
314
  command.query['fields'] = fields unless fields.nil?
406
315
  command.query['quotaUser'] = quota_user unless quota_user.nil?
407
316
  execute_or_queue_command(command, &block)
@@ -436,7 +345,7 @@ module Google
436
345
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
437
346
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
438
347
  # @raise [Google::Apis::AuthorizationError] Authorization is required
439
- def delete_project_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
348
+ def delete_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
440
349
  command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
441
350
  command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
442
351
  command.response_class = Google::Apis::LoggingV2beta1::Empty
@@ -454,15 +363,15 @@ module Google
454
363
  # "organizations/[ORGANIZATION_ID]"
455
364
  # "billingAccounts/[BILLING_ACCOUNT_ID]"
456
365
  # "folders/[FOLDER_ID]"
457
- # @param [Fixnum] page_size
458
- # Optional. The maximum number of results to return from this request. Non-
459
- # positive values are ignored. The presence of nextPageToken in the response
460
- # indicates that more results might be available.
461
366
  # @param [String] page_token
462
367
  # Optional. If present, then retrieve the next batch of results from the
463
368
  # preceding call to this method. pageToken must be the value of nextPageToken
464
369
  # from the previous response. The values of other method parameters should be
465
370
  # identical to those in the previous call.
371
+ # @param [Fixnum] page_size
372
+ # Optional. The maximum number of results to return from this request. Non-
373
+ # positive values are ignored. The presence of nextPageToken in the response
374
+ # indicates that more results might be available.
466
375
  # @param [String] fields
467
376
  # Selector specifying which fields to include in a partial response.
468
377
  # @param [String] quota_user
@@ -480,13 +389,93 @@ module Google
480
389
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
481
390
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
482
391
  # @raise [Google::Apis::AuthorizationError] Authorization is required
483
- def list_project_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
392
+ def list_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
484
393
  command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
485
394
  command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
486
395
  command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
487
396
  command.params['parent'] = parent unless parent.nil?
397
+ command.query['pageToken'] = page_token unless page_token.nil?
488
398
  command.query['pageSize'] = page_size unless page_size.nil?
399
+ command.query['fields'] = fields unless fields.nil?
400
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
401
+ execute_or_queue_command(command, &block)
402
+ end
403
+
404
+ # Lists sinks.
405
+ # @param [String] parent
406
+ # Required. The parent resource whose sinks are to be listed:
407
+ # "projects/[PROJECT_ID]"
408
+ # "organizations/[ORGANIZATION_ID]"
409
+ # "billingAccounts/[BILLING_ACCOUNT_ID]"
410
+ # "folders/[FOLDER_ID]"
411
+ # @param [String] page_token
412
+ # Optional. If present, then retrieve the next batch of results from the
413
+ # preceding call to this method. pageToken must be the value of nextPageToken
414
+ # from the previous response. The values of other method parameters should be
415
+ # identical to those in the previous call.
416
+ # @param [Fixnum] page_size
417
+ # Optional. The maximum number of results to return from this request. Non-
418
+ # positive values are ignored. The presence of nextPageToken in the response
419
+ # indicates that more results might be available.
420
+ # @param [String] fields
421
+ # Selector specifying which fields to include in a partial response.
422
+ # @param [String] quota_user
423
+ # Available to use for quota purposes for server-side applications. Can be any
424
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
425
+ # @param [Google::Apis::RequestOptions] options
426
+ # Request-specific options
427
+ #
428
+ # @yield [result, err] Result & error if block supplied
429
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListSinksResponse] parsed result object
430
+ # @yieldparam err [StandardError] error object if request failed
431
+ #
432
+ # @return [Google::Apis::LoggingV2beta1::ListSinksResponse]
433
+ #
434
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
435
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
436
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
437
+ def list_project_sinks(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
438
+ command = make_simple_command(:get, 'v2beta1/{+parent}/sinks', options)
439
+ command.response_representation = Google::Apis::LoggingV2beta1::ListSinksResponse::Representation
440
+ command.response_class = Google::Apis::LoggingV2beta1::ListSinksResponse
441
+ command.params['parent'] = parent unless parent.nil?
489
442
  command.query['pageToken'] = page_token unless page_token.nil?
443
+ command.query['pageSize'] = page_size unless page_size.nil?
444
+ command.query['fields'] = fields unless fields.nil?
445
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
446
+ execute_or_queue_command(command, &block)
447
+ end
448
+
449
+ # Gets a sink.
450
+ # @param [String] sink_name
451
+ # Required. The resource name of the sink:
452
+ # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
453
+ # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
454
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
455
+ # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
456
+ # Example: "projects/my-project-id/sinks/my-sink-id".
457
+ # @param [String] fields
458
+ # Selector specifying which fields to include in a partial response.
459
+ # @param [String] quota_user
460
+ # Available to use for quota purposes for server-side applications. Can be any
461
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
462
+ # @param [Google::Apis::RequestOptions] options
463
+ # Request-specific options
464
+ #
465
+ # @yield [result, err] Result & error if block supplied
466
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
467
+ # @yieldparam err [StandardError] error object if request failed
468
+ #
469
+ # @return [Google::Apis::LoggingV2beta1::LogSink]
470
+ #
471
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
472
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
473
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
474
+ def get_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
475
+ command = make_simple_command(:get, 'v2beta1/{+sinkName}', options)
476
+ command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
477
+ command.response_class = Google::Apis::LoggingV2beta1::LogSink
478
+ command.params['sinkName'] = sink_name unless sink_name.nil?
490
479
  command.query['fields'] = fields unless fields.nil?
491
480
  command.query['quotaUser'] = quota_user unless quota_user.nil?
492
481
  execute_or_queue_command(command, &block)
@@ -515,7 +504,8 @@ module Google
515
504
  # there is no change to the sink's writer_identity.
516
505
  # If the old value is false and the new value is true, then writer_identity is
517
506
  # changed to a unique service account.
518
- # It is an error if the old value is true and the new value is false.
507
+ # It is an error if the old value is true and the new value is set to false or
508
+ # defaulted to false.
519
509
  # @param [String] fields
520
510
  # Selector specifying which fields to include in a partial response.
521
511
  # @param [String] quota_user
@@ -636,22 +626,50 @@ module Google
636
626
  execute_or_queue_command(command, &block)
637
627
  end
638
628
 
639
- # Lists sinks.
629
+ # Deletes a logs-based metric.
630
+ # @param [String] metric_name
631
+ # The resource name of the metric to delete:
632
+ # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
633
+ # @param [String] fields
634
+ # Selector specifying which fields to include in a partial response.
635
+ # @param [String] quota_user
636
+ # Available to use for quota purposes for server-side applications. Can be any
637
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
638
+ # @param [Google::Apis::RequestOptions] options
639
+ # Request-specific options
640
+ #
641
+ # @yield [result, err] Result & error if block supplied
642
+ # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
643
+ # @yieldparam err [StandardError] error object if request failed
644
+ #
645
+ # @return [Google::Apis::LoggingV2beta1::Empty]
646
+ #
647
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
648
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
649
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
650
+ def delete_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
651
+ command = make_simple_command(:delete, 'v2beta1/{+metricName}', options)
652
+ command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
653
+ command.response_class = Google::Apis::LoggingV2beta1::Empty
654
+ command.params['metricName'] = metric_name unless metric_name.nil?
655
+ command.query['fields'] = fields unless fields.nil?
656
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
657
+ execute_or_queue_command(command, &block)
658
+ end
659
+
660
+ # Lists logs-based metrics.
640
661
  # @param [String] parent
641
- # Required. The parent resource whose sinks are to be listed:
662
+ # Required. The name of the project containing the metrics:
642
663
  # "projects/[PROJECT_ID]"
643
- # "organizations/[ORGANIZATION_ID]"
644
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
645
- # "folders/[FOLDER_ID]"
646
- # @param [Fixnum] page_size
647
- # Optional. The maximum number of results to return from this request. Non-
648
- # positive values are ignored. The presence of nextPageToken in the response
649
- # indicates that more results might be available.
650
664
  # @param [String] page_token
651
665
  # Optional. If present, then retrieve the next batch of results from the
652
666
  # preceding call to this method. pageToken must be the value of nextPageToken
653
667
  # from the previous response. The values of other method parameters should be
654
668
  # identical to those in the previous call.
669
+ # @param [Fixnum] page_size
670
+ # Optional. The maximum number of results to return from this request. Non-
671
+ # positive values are ignored. The presence of nextPageToken in the response
672
+ # indicates that more results might be available.
655
673
  # @param [String] fields
656
674
  # Selector specifying which fields to include in a partial response.
657
675
  # @param [String] quota_user
@@ -661,34 +679,30 @@ module Google
661
679
  # Request-specific options
662
680
  #
663
681
  # @yield [result, err] Result & error if block supplied
664
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListSinksResponse] parsed result object
682
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogMetricsResponse] parsed result object
665
683
  # @yieldparam err [StandardError] error object if request failed
666
684
  #
667
- # @return [Google::Apis::LoggingV2beta1::ListSinksResponse]
685
+ # @return [Google::Apis::LoggingV2beta1::ListLogMetricsResponse]
668
686
  #
669
687
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
670
688
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
671
689
  # @raise [Google::Apis::AuthorizationError] Authorization is required
672
- def list_project_sinks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
673
- command = make_simple_command(:get, 'v2beta1/{+parent}/sinks', options)
674
- command.response_representation = Google::Apis::LoggingV2beta1::ListSinksResponse::Representation
675
- command.response_class = Google::Apis::LoggingV2beta1::ListSinksResponse
690
+ def list_project_metrics(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
691
+ command = make_simple_command(:get, 'v2beta1/{+parent}/metrics', options)
692
+ command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation
693
+ command.response_class = Google::Apis::LoggingV2beta1::ListLogMetricsResponse
676
694
  command.params['parent'] = parent unless parent.nil?
677
- command.query['pageSize'] = page_size unless page_size.nil?
678
695
  command.query['pageToken'] = page_token unless page_token.nil?
696
+ command.query['pageSize'] = page_size unless page_size.nil?
679
697
  command.query['fields'] = fields unless fields.nil?
680
698
  command.query['quotaUser'] = quota_user unless quota_user.nil?
681
699
  execute_or_queue_command(command, &block)
682
700
  end
683
701
 
684
- # Gets a sink.
685
- # @param [String] sink_name
686
- # Required. The resource name of the sink:
687
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
688
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
689
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
690
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
691
- # Example: "projects/my-project-id/sinks/my-sink-id".
702
+ # Gets a logs-based metric.
703
+ # @param [String] metric_name
704
+ # The resource name of the desired metric:
705
+ # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
692
706
  # @param [String] fields
693
707
  # Selector specifying which fields to include in a partial response.
694
708
  # @param [String] quota_user
@@ -698,36 +712,32 @@ module Google
698
712
  # Request-specific options
699
713
  #
700
714
  # @yield [result, err] Result & error if block supplied
701
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
715
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
702
716
  # @yieldparam err [StandardError] error object if request failed
703
717
  #
704
- # @return [Google::Apis::LoggingV2beta1::LogSink]
718
+ # @return [Google::Apis::LoggingV2beta1::LogMetric]
705
719
  #
706
720
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
707
721
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
708
722
  # @raise [Google::Apis::AuthorizationError] Authorization is required
709
- def get_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
710
- command = make_simple_command(:get, 'v2beta1/{+sinkName}', options)
711
- command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
712
- command.response_class = Google::Apis::LoggingV2beta1::LogSink
713
- command.params['sinkName'] = sink_name unless sink_name.nil?
723
+ def get_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
724
+ command = make_simple_command(:get, 'v2beta1/{+metricName}', options)
725
+ command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
726
+ command.response_class = Google::Apis::LoggingV2beta1::LogMetric
727
+ command.params['metricName'] = metric_name unless metric_name.nil?
714
728
  command.query['fields'] = fields unless fields.nil?
715
729
  command.query['quotaUser'] = quota_user unless quota_user.nil?
716
730
  execute_or_queue_command(command, &block)
717
731
  end
718
732
 
719
- # Deletes all the log entries in a log. The log reappears if it receives new
720
- # entries. Log entries written shortly before the delete operation might not be
721
- # deleted.
722
- # @param [String] log_name
723
- # Required. The resource name of the log to delete:
724
- # "projects/[PROJECT_ID]/logs/[LOG_ID]"
725
- # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
726
- # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
727
- # "folders/[FOLDER_ID]/logs/[LOG_ID]"
728
- # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
729
- # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
730
- # 2Factivity". For more information about log names, see LogEntry.
733
+ # Creates or updates a logs-based metric.
734
+ # @param [String] metric_name
735
+ # The resource name of the metric to update:
736
+ # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
737
+ # The updated metric must be provided in the request and it's name field must be
738
+ # the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
739
+ # new metric is created.
740
+ # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
731
741
  # @param [String] fields
732
742
  # Selector specifying which fields to include in a partial response.
733
743
  # @param [String] quota_user
@@ -737,41 +747,32 @@ module Google
737
747
  # Request-specific options
738
748
  #
739
749
  # @yield [result, err] Result & error if block supplied
740
- # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
750
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
741
751
  # @yieldparam err [StandardError] error object if request failed
742
752
  #
743
- # @return [Google::Apis::LoggingV2beta1::Empty]
753
+ # @return [Google::Apis::LoggingV2beta1::LogMetric]
744
754
  #
745
755
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
746
756
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
747
757
  # @raise [Google::Apis::AuthorizationError] Authorization is required
748
- def delete_billing_account_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
749
- command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
750
- command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
751
- command.response_class = Google::Apis::LoggingV2beta1::Empty
752
- command.params['logName'] = log_name unless log_name.nil?
758
+ def update_project_metric(metric_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
759
+ command = make_simple_command(:put, 'v2beta1/{+metricName}', options)
760
+ command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
761
+ command.request_object = log_metric_object
762
+ command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
763
+ command.response_class = Google::Apis::LoggingV2beta1::LogMetric
764
+ command.params['metricName'] = metric_name unless metric_name.nil?
753
765
  command.query['fields'] = fields unless fields.nil?
754
766
  command.query['quotaUser'] = quota_user unless quota_user.nil?
755
767
  execute_or_queue_command(command, &block)
756
768
  end
757
769
 
758
- # Lists the logs in projects, organizations, folders, or billing accounts. Only
759
- # logs that have entries are listed.
770
+ # Creates a logs-based metric.
760
771
  # @param [String] parent
761
- # Required. The resource name that owns the logs:
772
+ # The resource name of the project in which to create the metric:
762
773
  # "projects/[PROJECT_ID]"
763
- # "organizations/[ORGANIZATION_ID]"
764
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
765
- # "folders/[FOLDER_ID]"
766
- # @param [Fixnum] page_size
767
- # Optional. The maximum number of results to return from this request. Non-
768
- # positive values are ignored. The presence of nextPageToken in the response
769
- # indicates that more results might be available.
770
- # @param [String] page_token
771
- # Optional. If present, then retrieve the next batch of results from the
772
- # preceding call to this method. pageToken must be the value of nextPageToken
773
- # from the previous response. The values of other method parameters should be
774
- # identical to those in the previous call.
774
+ # The new metric must be provided in the request.
775
+ # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
775
776
  # @param [String] fields
776
777
  # Selector specifying which fields to include in a partial response.
777
778
  # @param [String] quota_user
@@ -781,21 +782,21 @@ module Google
781
782
  # Request-specific options
782
783
  #
783
784
  # @yield [result, err] Result & error if block supplied
784
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogsResponse] parsed result object
785
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
785
786
  # @yieldparam err [StandardError] error object if request failed
786
787
  #
787
- # @return [Google::Apis::LoggingV2beta1::ListLogsResponse]
788
+ # @return [Google::Apis::LoggingV2beta1::LogMetric]
788
789
  #
789
790
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
790
791
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
791
792
  # @raise [Google::Apis::AuthorizationError] Authorization is required
792
- def list_billing_account_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
793
- command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
794
- command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
795
- command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
793
+ def create_project_metric(parent, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
794
+ command = make_simple_command(:post, 'v2beta1/{+parent}/metrics', options)
795
+ command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
796
+ command.request_object = log_metric_object
797
+ command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
798
+ command.response_class = Google::Apis::LoggingV2beta1::LogMetric
796
799
  command.params['parent'] = parent unless parent.nil?
797
- command.query['pageSize'] = page_size unless page_size.nil?
798
- command.query['pageToken'] = page_token unless page_token.nil?
799
800
  command.query['fields'] = fields unless fields.nil?
800
801
  command.query['quotaUser'] = quota_user unless quota_user.nil?
801
802
  execute_or_queue_command(command, &block)