google-api-client 0.11.3 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (397) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +51 -0
  3. data/api_names.yaml +32317 -34465
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +44 -44
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +14 -14
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +305 -305
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +82 -82
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +106 -106
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
  13. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
  14. data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
  15. data/generated/google/apis/admin_directory_v1/service.rb +26 -26
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  18. data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
  19. data/generated/google/apis/adsense_v1_4/service.rb +44 -44
  20. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  21. data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
  22. data/generated/google/apis/analytics_v3/classes.rb +3 -3
  23. data/generated/google/apis/analytics_v3/representations.rb +3 -3
  24. data/generated/google/apis/analytics_v3/service.rb +82 -82
  25. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  26. data/generated/google/apis/analyticsreporting_v4/classes.rb +916 -916
  27. data/generated/google/apis/analyticsreporting_v4/representations.rb +167 -167
  28. data/generated/google/apis/analyticsreporting_v4/service.rb +7 -7
  29. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  30. data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
  31. data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
  32. data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
  33. data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
  34. data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
  35. data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
  36. data/generated/google/apis/appengine_v1.rb +1 -1
  37. data/generated/google/apis/appengine_v1/classes.rb +825 -817
  38. data/generated/google/apis/appengine_v1/representations.rb +185 -184
  39. data/generated/google/apis/appengine_v1/service.rb +220 -216
  40. data/generated/google/apis/appstate_v1.rb +1 -1
  41. data/generated/google/apis/bigquery_v2.rb +1 -1
  42. data/generated/google/apis/bigquery_v2/classes.rb +9 -7
  43. data/generated/google/apis/bigquery_v2/representations.rb +8 -8
  44. data/generated/google/apis/bigquery_v2/service.rb +13 -13
  45. data/generated/google/apis/blogger_v3/service.rb +3 -3
  46. data/generated/google/apis/books_v1/classes.rb +55 -55
  47. data/generated/google/apis/books_v1/representations.rb +67 -67
  48. data/generated/google/apis/books_v1/service.rb +82 -82
  49. data/generated/google/apis/calendar_v3.rb +1 -1
  50. data/generated/google/apis/calendar_v3/classes.rb +6 -6
  51. data/generated/google/apis/calendar_v3/representations.rb +3 -3
  52. data/generated/google/apis/calendar_v3/service.rb +2 -2
  53. data/generated/google/apis/civicinfo_v2/classes.rb +1 -1
  54. data/generated/google/apis/civicinfo_v2/representations.rb +2 -2
  55. data/generated/google/apis/civicinfo_v2/service.rb +8 -8
  56. data/generated/google/apis/classroom_v1.rb +24 -24
  57. data/generated/google/apis/classroom_v1/classes.rb +381 -381
  58. data/generated/google/apis/classroom_v1/representations.rb +108 -108
  59. data/generated/google/apis/classroom_v1/service.rb +503 -503
  60. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  61. data/generated/google/apis/cloudbuild_v1/classes.rb +219 -219
  62. data/generated/google/apis/cloudbuild_v1/representations.rb +62 -62
  63. data/generated/google/apis/cloudbuild_v1/service.rb +165 -165
  64. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  65. data/generated/google/apis/clouddebugger_v2/classes.rb +133 -133
  66. data/generated/google/apis/clouddebugger_v2/representations.rb +29 -29
  67. data/generated/google/apis/clouddebugger_v2/service.rb +54 -54
  68. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  69. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +177 -177
  70. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +47 -47
  71. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +123 -123
  72. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  73. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  74. data/generated/google/apis/cloudkms_v1.rb +3 -3
  75. data/generated/google/apis/cloudkms_v1/classes.rb +229 -229
  76. data/generated/google/apis/cloudkms_v1/representations.rb +54 -54
  77. data/generated/google/apis/cloudkms_v1/service.rb +224 -224
  78. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  79. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1199 -1199
  80. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +192 -192
  81. data/generated/google/apis/cloudresourcemanager_v1/service.rb +122 -122
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +495 -495
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +92 -92
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +320 -320
  85. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +44 -44
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  88. data/generated/google/apis/cloudtrace_v1/service.rb +28 -28
  89. data/generated/google/apis/compute_beta.rb +1 -1
  90. data/generated/google/apis/compute_beta/classes.rb +57 -15
  91. data/generated/google/apis/compute_beta/representations.rb +30 -14
  92. data/generated/google/apis/compute_beta/service.rb +52 -52
  93. data/generated/google/apis/compute_v1.rb +1 -1
  94. data/generated/google/apis/compute_v1/classes.rb +223 -10
  95. data/generated/google/apis/compute_v1/representations.rb +85 -16
  96. data/generated/google/apis/compute_v1/service.rb +327 -51
  97. data/generated/google/apis/container_v1/classes.rb +267 -267
  98. data/generated/google/apis/container_v1/representations.rb +61 -61
  99. data/generated/google/apis/container_v1/service.rb +123 -123
  100. data/generated/google/apis/content_v2.rb +1 -1
  101. data/generated/google/apis/content_v2/classes.rb +71 -71
  102. data/generated/google/apis/content_v2/representations.rb +105 -105
  103. data/generated/google/apis/content_v2/service.rb +120 -120
  104. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  105. data/generated/google/apis/dataflow_v1b3/classes.rb +3442 -3452
  106. data/generated/google/apis/dataflow_v1b3/representations.rb +388 -389
  107. data/generated/google/apis/dataflow_v1b3/service.rb +265 -265
  108. data/generated/google/apis/dataproc_v1.rb +1 -1
  109. data/generated/google/apis/dataproc_v1/classes.rb +1059 -1059
  110. data/generated/google/apis/dataproc_v1/representations.rb +147 -147
  111. data/generated/google/apis/dataproc_v1/service.rb +309 -305
  112. data/generated/google/apis/datastore_v1.rb +1 -1
  113. data/generated/google/apis/datastore_v1/classes.rb +818 -818
  114. data/generated/google/apis/datastore_v1/representations.rb +151 -151
  115. data/generated/google/apis/datastore_v1/service.rb +62 -62
  116. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  117. data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
  118. data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
  119. data/generated/google/apis/discovery_v1/classes.rb +4 -4
  120. data/generated/google/apis/discovery_v1/representations.rb +2 -2
  121. data/generated/google/apis/discovery_v1/service.rb +1 -1
  122. data/generated/google/apis/dns_v1.rb +1 -1
  123. data/generated/google/apis/dns_v1/classes.rb +3 -3
  124. data/generated/google/apis/dns_v1/representations.rb +6 -6
  125. data/generated/google/apis/dns_v1/service.rb +12 -12
  126. data/generated/google/apis/dns_v2beta1.rb +1 -1
  127. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  128. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
  129. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  130. data/generated/google/apis/drive_v2/service.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 +188 -188
  134. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +62 -62
  135. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +4 -4
  136. data/generated/google/apis/firebaserules_v1.rb +1 -1
  137. data/generated/google/apis/firebaserules_v1/classes.rb +403 -206
  138. data/generated/google/apis/firebaserules_v1/representations.rb +134 -54
  139. data/generated/google/apis/firebaserules_v1/service.rb +89 -89
  140. data/generated/google/apis/fusiontables_v2/service.rb +2 -2
  141. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  142. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  143. data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
  144. data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
  145. data/generated/google/apis/games_management_v1management.rb +1 -1
  146. data/generated/google/apis/games_v1.rb +1 -1
  147. data/generated/google/apis/games_v1/classes.rb +23 -23
  148. data/generated/google/apis/games_v1/representations.rb +43 -43
  149. data/generated/google/apis/games_v1/service.rb +72 -72
  150. data/generated/google/apis/genomics_v1.rb +7 -7
  151. data/generated/google/apis/genomics_v1/classes.rb +2296 -2297
  152. data/generated/google/apis/genomics_v1/representations.rb +298 -298
  153. data/generated/google/apis/genomics_v1/service.rb +1160 -1160
  154. data/generated/google/apis/groupssettings_v1/service.rb +0 -3
  155. data/generated/google/apis/iam_v1.rb +1 -1
  156. data/generated/google/apis/iam_v1/classes.rb +235 -235
  157. data/generated/google/apis/iam_v1/representations.rb +72 -72
  158. data/generated/google/apis/iam_v1/service.rb +189 -189
  159. data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
  160. data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
  161. data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
  162. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  163. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  164. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  165. data/generated/google/apis/language_v1/classes.rb +220 -220
  166. data/generated/google/apis/language_v1/representations.rb +81 -81
  167. data/generated/google/apis/language_v1/service.rb +43 -43
  168. data/generated/google/apis/language_v1beta1/classes.rb +448 -448
  169. data/generated/google/apis/language_v1beta1/representations.rb +106 -106
  170. data/generated/google/apis/language_v1beta1/service.rb +31 -31
  171. data/generated/google/apis/licensing_v1/service.rb +2 -2
  172. data/generated/google/apis/logging_v2/classes.rb +737 -737
  173. data/generated/google/apis/logging_v2/representations.rb +120 -120
  174. data/generated/google/apis/logging_v2/service.rb +479 -479
  175. data/generated/google/apis/logging_v2beta1/classes.rb +293 -293
  176. data/generated/google/apis/logging_v2beta1/representations.rb +54 -54
  177. data/generated/google/apis/logging_v2beta1/service.rb +349 -349
  178. data/generated/google/apis/manufacturers_v1/classes.rb +423 -423
  179. data/generated/google/apis/manufacturers_v1/representations.rb +61 -61
  180. data/generated/google/apis/manufacturers_v1/service.rb +8 -8
  181. data/generated/google/apis/mirror_v1/classes.rb +5 -5
  182. data/generated/google/apis/mirror_v1/representations.rb +10 -10
  183. data/generated/google/apis/mirror_v1/service.rb +20 -20
  184. data/generated/google/apis/ml_v1.rb +1 -1
  185. data/generated/google/apis/ml_v1/classes.rb +1285 -1205
  186. data/generated/google/apis/ml_v1/representations.rb +204 -174
  187. data/generated/google/apis/ml_v1/service.rb +150 -145
  188. data/generated/google/apis/monitoring_v3.rb +1 -1
  189. data/generated/google/apis/monitoring_v3/classes.rb +880 -880
  190. data/generated/google/apis/monitoring_v3/representations.rb +154 -154
  191. data/generated/google/apis/monitoring_v3/service.rb +299 -299
  192. data/generated/google/apis/mybusiness_v3/service.rb +5 -5
  193. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  194. data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
  195. data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
  196. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  197. data/generated/google/apis/partners_v2.rb +1 -1
  198. data/generated/google/apis/partners_v2/classes.rb +524 -509
  199. data/generated/google/apis/partners_v2/representations.rb +115 -111
  200. data/generated/google/apis/partners_v2/service.rb +287 -287
  201. data/generated/google/apis/people_v1.rb +13 -13
  202. data/generated/google/apis/people_v1/classes.rb +1150 -1150
  203. data/generated/google/apis/people_v1/representations.rb +258 -258
  204. data/generated/google/apis/people_v1/service.rb +7 -7
  205. data/generated/google/apis/plus_domains_v1.rb +1 -1
  206. data/generated/google/apis/plus_domains_v1/service.rb +4 -4
  207. data/generated/google/apis/plus_v1.rb +1 -1
  208. data/generated/google/apis/plus_v1/service.rb +1 -1
  209. data/generated/google/apis/prediction_v1_6/service.rb +8 -8
  210. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +554 -554
  211. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +108 -108
  212. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +224 -224
  213. data/generated/google/apis/pubsub_v1/classes.rb +228 -228
  214. data/generated/google/apis/pubsub_v1/representations.rb +69 -69
  215. data/generated/google/apis/pubsub_v1/service.rb +182 -182
  216. data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
  217. data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
  218. data/generated/google/apis/qpx_express_v1/service.rb +8 -8
  219. data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
  220. data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
  221. data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
  222. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
  223. data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
  224. data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
  225. data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
  226. data/generated/google/apis/runtimeconfig_v1.rb +3 -3
  227. data/generated/google/apis/runtimeconfig_v1/classes.rb +19 -19
  228. data/generated/google/apis/runtimeconfig_v1/representations.rb +10 -10
  229. data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
  230. data/generated/google/apis/script_v1.rb +9 -9
  231. data/generated/google/apis/script_v1/classes.rb +94 -94
  232. data/generated/google/apis/script_v1/representations.rb +26 -26
  233. data/generated/google/apis/searchconsole_v1.rb +1 -1
  234. data/generated/google/apis/searchconsole_v1/classes.rb +65 -65
  235. data/generated/google/apis/searchconsole_v1/representations.rb +27 -27
  236. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  237. data/generated/google/apis/servicecontrol_v1/classes.rb +1131 -1131
  238. data/generated/google/apis/servicecontrol_v1/representations.rb +195 -195
  239. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  240. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  241. data/generated/google/apis/servicemanagement_v1/classes.rb +3543 -3585
  242. data/generated/google/apis/servicemanagement_v1/representations.rb +556 -556
  243. data/generated/google/apis/servicemanagement_v1/service.rb +309 -309
  244. data/generated/google/apis/serviceuser_v1.rb +4 -4
  245. data/generated/google/apis/serviceuser_v1/classes.rb +2734 -2776
  246. data/generated/google/apis/serviceuser_v1/representations.rb +398 -398
  247. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  248. data/generated/google/apis/sheets_v4/classes.rb +1489 -1489
  249. data/generated/google/apis/sheets_v4/representations.rb +324 -324
  250. data/generated/google/apis/sheets_v4/service.rb +49 -49
  251. data/generated/google/apis/site_verification_v1/classes.rb +6 -6
  252. data/generated/google/apis/site_verification_v1/representations.rb +8 -8
  253. data/generated/google/apis/site_verification_v1/service.rb +12 -12
  254. data/generated/google/apis/slides_v1.rb +4 -4
  255. data/generated/google/apis/slides_v1/classes.rb +2907 -2907
  256. data/generated/google/apis/slides_v1/representations.rb +695 -695
  257. data/generated/google/apis/slides_v1/service.rb +40 -40
  258. data/generated/google/apis/sourcerepo_v1.rb +7 -1
  259. data/generated/google/apis/sourcerepo_v1/classes.rb +459 -452
  260. data/generated/google/apis/sourcerepo_v1/representations.rb +90 -89
  261. data/generated/google/apis/sourcerepo_v1/service.rb +101 -100
  262. data/generated/google/apis/spanner_v1/classes.rb +2557 -2557
  263. data/generated/google/apis/spanner_v1/representations.rb +205 -205
  264. data/generated/google/apis/spanner_v1/service.rb +525 -525
  265. data/generated/google/apis/speech_v1beta1.rb +1 -1
  266. data/generated/google/apis/speech_v1beta1/classes.rb +73 -73
  267. data/generated/google/apis/speech_v1beta1/representations.rb +25 -25
  268. data/generated/google/apis/speech_v1beta1/service.rb +33 -33
  269. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  270. data/generated/google/apis/sqladmin_v1beta4/classes.rb +16 -15
  271. data/generated/google/apis/sqladmin_v1beta4/representations.rb +28 -28
  272. data/generated/google/apis/sqladmin_v1beta4/service.rb +58 -57
  273. data/generated/google/apis/storage_v1/classes.rb +6 -6
  274. data/generated/google/apis/storage_v1/representations.rb +4 -4
  275. data/generated/google/apis/storage_v1/service.rb +1 -1
  276. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  277. data/generated/google/apis/storagetransfer_v1/classes.rb +357 -357
  278. data/generated/google/apis/storagetransfer_v1/representations.rb +87 -87
  279. data/generated/google/apis/storagetransfer_v1/service.rb +53 -48
  280. data/generated/google/apis/tagmanager_v1/service.rb +33 -33
  281. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  282. data/generated/google/apis/translate_v2.rb +1 -1
  283. data/generated/google/apis/translate_v2/classes.rb +46 -46
  284. data/generated/google/apis/translate_v2/representations.rb +22 -22
  285. data/generated/google/apis/translate_v2/service.rb +81 -74
  286. data/generated/google/apis/vision_v1/classes.rb +1290 -1290
  287. data/generated/google/apis/vision_v1/representations.rb +166 -166
  288. data/generated/google/apis/vision_v1/service.rb +6 -6
  289. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  290. data/generated/google/apis/webmasters_v3/representations.rb +8 -8
  291. data/generated/google/apis/webmasters_v3/service.rb +21 -21
  292. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  293. data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
  294. data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
  295. data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
  296. data/generated/google/apis/youtube_v3/classes.rb +20 -20
  297. data/generated/google/apis/youtube_v3/representations.rb +40 -40
  298. data/generated/google/apis/youtube_v3/service.rb +80 -80
  299. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  300. data/generated/google/apis/youtubereporting_v1/classes.rb +127 -127
  301. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  302. data/generated/google/apis/youtubereporting_v1/service.rb +90 -90
  303. data/google-api-client.gemspec +3 -3
  304. data/lib/google/apis/core/base_service.rb +6 -0
  305. data/lib/google/apis/generator/annotator.rb +2 -2
  306. data/lib/google/apis/generator/model.rb +2 -2
  307. data/lib/google/apis/version.rb +1 -1
  308. metadata +11 -94
  309. data/dl.rb +0 -0
  310. data/generated/google/apis/adexchangebuyer_v1_3.rb +0 -35
  311. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +0 -1335
  312. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +0 -446
  313. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +0 -872
  314. data/generated/google/apis/appengine_v1beta4.rb +0 -35
  315. data/generated/google/apis/appengine_v1beta4/classes.rb +0 -1585
  316. data/generated/google/apis/appengine_v1beta4/representations.rb +0 -542
  317. data/generated/google/apis/appengine_v1beta4/service.rb +0 -477
  318. data/generated/google/apis/appengine_v1beta5.rb +0 -40
  319. data/generated/google/apis/appengine_v1beta5/classes.rb +0 -2094
  320. data/generated/google/apis/appengine_v1beta5/representations.rb +0 -802
  321. data/generated/google/apis/appengine_v1beta5/service.rb +0 -867
  322. data/generated/google/apis/autoscaler_v1beta2.rb +0 -38
  323. data/generated/google/apis/autoscaler_v1beta2/classes.rb +0 -710
  324. data/generated/google/apis/autoscaler_v1beta2/representations.rb +0 -296
  325. data/generated/google/apis/autoscaler_v1beta2/service.rb +0 -478
  326. data/generated/google/apis/classroom_v1beta1.rb +0 -49
  327. data/generated/google/apis/classroom_v1beta1/classes.rb +0 -447
  328. data/generated/google/apis/classroom_v1beta1/representations.rb +0 -190
  329. data/generated/google/apis/classroom_v1beta1/service.rb +0 -791
  330. data/generated/google/apis/cloudkms_v1beta1.rb +0 -35
  331. data/generated/google/apis/cloudkms_v1beta1/classes.rb +0 -1039
  332. data/generated/google/apis/cloudkms_v1beta1/representations.rb +0 -448
  333. data/generated/google/apis/cloudkms_v1beta1/service.rb +0 -933
  334. data/generated/google/apis/cloudlatencytest_v2.rb +0 -34
  335. data/generated/google/apis/cloudlatencytest_v2/classes.rb +0 -195
  336. data/generated/google/apis/cloudlatencytest_v2/representations.rb +0 -127
  337. data/generated/google/apis/cloudlatencytest_v2/service.rb +0 -135
  338. data/generated/google/apis/container_v1beta1.rb +0 -35
  339. data/generated/google/apis/container_v1beta1/classes.rb +0 -466
  340. data/generated/google/apis/container_v1beta1/representations.rb +0 -177
  341. data/generated/google/apis/container_v1beta1/service.rb +0 -394
  342. data/generated/google/apis/coordinate_v1.rb +0 -37
  343. data/generated/google/apis/coordinate_v1/classes.rb +0 -669
  344. data/generated/google/apis/coordinate_v1/representations.rb +0 -321
  345. data/generated/google/apis/coordinate_v1/service.rb +0 -678
  346. data/generated/google/apis/datastore_v1beta2.rb +0 -40
  347. data/generated/google/apis/datastore_v1beta2/classes.rb +0 -1186
  348. data/generated/google/apis/datastore_v1beta2/representations.rb +0 -594
  349. data/generated/google/apis/datastore_v1beta2/service.rb +0 -294
  350. data/generated/google/apis/datastore_v1beta3.rb +0 -38
  351. data/generated/google/apis/datastore_v1beta3/classes.rb +0 -1284
  352. data/generated/google/apis/datastore_v1beta3/representations.rb +0 -572
  353. data/generated/google/apis/datastore_v1beta3/service.rb +0 -259
  354. data/generated/google/apis/deploymentmanager_v2beta2.rb +0 -44
  355. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +0 -843
  356. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +0 -306
  357. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +0 -689
  358. data/generated/google/apis/dfareporting_v2_1.rb +0 -37
  359. data/generated/google/apis/dfareporting_v2_1/classes.rb +0 -10770
  360. data/generated/google/apis/dfareporting_v2_1/representations.rb +0 -3438
  361. data/generated/google/apis/dfareporting_v2_1/service.rb +0 -8585
  362. data/generated/google/apis/dfareporting_v2_3.rb +0 -37
  363. data/generated/google/apis/dfareporting_v2_3/classes.rb +0 -10839
  364. data/generated/google/apis/dfareporting_v2_3/representations.rb +0 -3829
  365. data/generated/google/apis/dfareporting_v2_3/service.rb +0 -8581
  366. data/generated/google/apis/dfareporting_v2_5.rb +0 -40
  367. data/generated/google/apis/dfareporting_v2_5/classes.rb +0 -11225
  368. data/generated/google/apis/dfareporting_v2_5/representations.rb +0 -3982
  369. data/generated/google/apis/dfareporting_v2_5/service.rb +0 -8755
  370. data/generated/google/apis/dfareporting_v2_6.rb +0 -40
  371. data/generated/google/apis/dfareporting_v2_6/classes.rb +0 -11599
  372. data/generated/google/apis/dfareporting_v2_6/representations.rb +0 -4119
  373. data/generated/google/apis/dfareporting_v2_6/service.rb +0 -9026
  374. data/generated/google/apis/gan_v1beta1.rb +0 -31
  375. data/generated/google/apis/gan_v1beta1/classes.rb +0 -1428
  376. data/generated/google/apis/gan_v1beta1/representations.rb +0 -462
  377. data/generated/google/apis/gan_v1beta1/service.rb +0 -682
  378. data/generated/google/apis/genomics_v1beta2.rb +0 -46
  379. data/generated/google/apis/genomics_v1beta2/classes.rb +0 -3288
  380. data/generated/google/apis/genomics_v1beta2/representations.rb +0 -1194
  381. data/generated/google/apis/genomics_v1beta2/service.rb +0 -2392
  382. data/generated/google/apis/logging_v1beta3.rb +0 -47
  383. data/generated/google/apis/logging_v1beta3/classes.rb +0 -1079
  384. data/generated/google/apis/logging_v1beta3/representations.rb +0 -366
  385. data/generated/google/apis/logging_v1beta3/service.rb +0 -1001
  386. data/generated/google/apis/manager_v1beta2.rb +0 -53
  387. data/generated/google/apis/manager_v1beta2/classes.rb +0 -1287
  388. data/generated/google/apis/manager_v1beta2/representations.rb +0 -606
  389. data/generated/google/apis/manager_v1beta2/service.rb +0 -372
  390. data/generated/google/apis/pubsub_v1beta2.rb +0 -37
  391. data/generated/google/apis/pubsub_v1beta2/classes.rb +0 -620
  392. data/generated/google/apis/pubsub_v1beta2/representations.rb +0 -282
  393. data/generated/google/apis/pubsub_v1beta2/service.rb +0 -774
  394. data/generated/google/apis/tracing_v1.rb +0 -40
  395. data/generated/google/apis/tracing_v1/classes.rb +0 -664
  396. data/generated/google/apis/tracing_v1/representations.rb +0 -279
  397. data/generated/google/apis/tracing_v1/service.rb +0 -226
@@ -58,13 +58,13 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class LogEntry
61
+ class Empty
62
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
63
 
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
- class Empty
67
+ class LogEntry
68
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
69
 
70
70
  include Google::Apis::Core::JsonObjectSupport
@@ -100,19 +100,19 @@ module Google
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
- class WriteLogEntriesResponse
103
+ class LogMetric
104
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
105
 
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
- class LogEntryOperation
109
+ class WriteLogEntriesResponse
110
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
111
 
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
- class LogMetric
115
+ class LogEntryOperation
116
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
117
 
118
118
  include Google::Apis::Core::JsonObjectSupport
@@ -124,13 +124,13 @@ module Google
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
- class WriteLogEntriesRequest
127
+ class LogSink
128
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
129
 
130
130
  include Google::Apis::Core::JsonObjectSupport
131
131
  end
132
132
 
133
- class LogSink
133
+ class WriteLogEntriesRequest
134
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
135
 
136
136
  include Google::Apis::Core::JsonObjectSupport
@@ -157,21 +157,21 @@ module Google
157
157
  class LabelDescriptor
158
158
  # @private
159
159
  class Representation < Google::Apis::Core::JsonRepresentation
160
- property :value_type, as: 'valueType'
161
160
  property :key, as: 'key'
162
161
  property :description, as: 'description'
162
+ property :value_type, as: 'valueType'
163
163
  end
164
164
  end
165
165
 
166
166
  class MonitoredResourceDescriptor
167
167
  # @private
168
168
  class Representation < Google::Apis::Core::JsonRepresentation
169
+ collection :labels, as: 'labels', class: Google::Apis::LoggingV2beta1::LabelDescriptor, decorator: Google::Apis::LoggingV2beta1::LabelDescriptor::Representation
170
+
169
171
  property :name, as: 'name'
170
172
  property :display_name, as: 'displayName'
171
173
  property :description, as: 'description'
172
174
  property :type, as: 'type'
173
- collection :labels, as: 'labels', class: Google::Apis::LoggingV2beta1::LabelDescriptor, decorator: Google::Apis::LoggingV2beta1::LabelDescriptor::Representation
174
-
175
175
  end
176
176
  end
177
177
 
@@ -187,9 +187,9 @@ module Google
187
187
  class ListLogEntriesResponse
188
188
  # @private
189
189
  class Representation < Google::Apis::Core::JsonRepresentation
190
- property :next_page_token, as: 'nextPageToken'
191
190
  collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation
192
191
 
192
+ property :next_page_token, as: 'nextPageToken'
193
193
  end
194
194
  end
195
195
 
@@ -213,6 +213,12 @@ module Google
213
213
  end
214
214
  end
215
215
 
216
+ class Empty
217
+ # @private
218
+ class Representation < Google::Apis::Core::JsonRepresentation
219
+ end
220
+ end
221
+
216
222
  class LogEntry
217
223
  # @private
218
224
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -224,10 +230,10 @@ module Google
224
230
  property :timestamp, as: 'timestamp'
225
231
  property :receive_timestamp, as: 'receiveTimestamp'
226
232
  property :log_name, as: 'logName'
227
- property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation
228
-
229
233
  property :http_request, as: 'httpRequest', class: Google::Apis::LoggingV2beta1::HttpRequest, decorator: Google::Apis::LoggingV2beta1::HttpRequest::Representation
230
234
 
235
+ property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation
236
+
231
237
  hash :json_payload, as: 'jsonPayload'
232
238
  property :insert_id, as: 'insertId'
233
239
  property :operation, as: 'operation', class: Google::Apis::LoggingV2beta1::LogEntryOperation, decorator: Google::Apis::LoggingV2beta1::LogEntryOperation::Representation
@@ -237,36 +243,31 @@ module Google
237
243
  end
238
244
  end
239
245
 
240
- class Empty
241
- # @private
242
- class Representation < Google::Apis::Core::JsonRepresentation
243
- end
244
- end
245
-
246
246
  class SourceLocation
247
247
  # @private
248
248
  class Representation < Google::Apis::Core::JsonRepresentation
249
- property :line, :numeric_string => true, as: 'line'
250
249
  property :file, as: 'file'
251
250
  property :function_name, as: 'functionName'
251
+ property :line, :numeric_string => true, as: 'line'
252
252
  end
253
253
  end
254
254
 
255
255
  class ListLogEntriesRequest
256
256
  # @private
257
257
  class Representation < Google::Apis::Core::JsonRepresentation
258
+ property :page_token, as: 'pageToken'
259
+ property :page_size, as: 'pageSize'
258
260
  property :order_by, as: 'orderBy'
259
261
  collection :resource_names, as: 'resourceNames'
260
- property :filter, as: 'filter'
261
262
  collection :project_ids, as: 'projectIds'
262
- property :page_token, as: 'pageToken'
263
- property :page_size, as: 'pageSize'
263
+ property :filter, as: 'filter'
264
264
  end
265
265
  end
266
266
 
267
267
  class RequestLog
268
268
  # @private
269
269
  class Representation < Google::Apis::Core::JsonRepresentation
270
+ property :end_time, as: 'endTime'
270
271
  property :user_agent, as: 'userAgent'
271
272
  property :was_loading_request, as: 'wasLoadingRequest'
272
273
  collection :source_reference, as: 'sourceReference', class: Google::Apis::LoggingV2beta1::SourceReference, decorator: Google::Apis::LoggingV2beta1::SourceReference::Representation
@@ -275,13 +276,13 @@ module Google
275
276
  property :trace_id, as: 'traceId'
276
277
  collection :line, as: 'line', class: Google::Apis::LoggingV2beta1::LogLine, decorator: Google::Apis::LoggingV2beta1::LogLine::Representation
277
278
 
278
- property :referrer, as: 'referrer'
279
279
  property :task_queue_name, as: 'taskQueueName'
280
+ property :referrer, as: 'referrer'
280
281
  property :request_id, as: 'requestId'
281
282
  property :nickname, as: 'nickname'
282
283
  property :status, as: 'status'
283
- property :pending_time, as: 'pendingTime'
284
284
  property :resource, as: 'resource'
285
+ property :pending_time, as: 'pendingTime'
285
286
  property :task_name, as: 'taskName'
286
287
  property :url_map_entry, as: 'urlMapEntry'
287
288
  property :instance_index, as: 'instanceIndex'
@@ -300,24 +301,33 @@ module Google
300
301
  property :first, as: 'first'
301
302
  property :version_id, as: 'versionId'
302
303
  property :module_id, as: 'moduleId'
303
- property :end_time, as: 'endTime'
304
304
  end
305
305
  end
306
306
 
307
307
  class ListMonitoredResourceDescriptorsResponse
308
308
  # @private
309
309
  class Representation < Google::Apis::Core::JsonRepresentation
310
+ property :next_page_token, as: 'nextPageToken'
310
311
  collection :resource_descriptors, as: 'resourceDescriptors', class: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor, decorator: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor::Representation
311
312
 
312
- property :next_page_token, as: 'nextPageToken'
313
313
  end
314
314
  end
315
315
 
316
316
  class SourceReference
317
317
  # @private
318
318
  class Representation < Google::Apis::Core::JsonRepresentation
319
- property :repository, as: 'repository'
320
319
  property :revision_id, as: 'revisionId'
320
+ property :repository, as: 'repository'
321
+ end
322
+ end
323
+
324
+ class LogMetric
325
+ # @private
326
+ class Representation < Google::Apis::Core::JsonRepresentation
327
+ property :version, as: 'version'
328
+ property :filter, as: 'filter'
329
+ property :name, as: 'name'
330
+ property :description, as: 'description'
321
331
  end
322
332
  end
323
333
 
@@ -337,48 +347,38 @@ module Google
337
347
  end
338
348
  end
339
349
 
340
- class LogMetric
350
+ class MonitoredResource
341
351
  # @private
342
352
  class Representation < Google::Apis::Core::JsonRepresentation
343
- property :version, as: 'version'
344
- property :filter, as: 'filter'
345
- property :name, as: 'name'
346
- property :description, as: 'description'
353
+ hash :labels, as: 'labels'
354
+ property :type, as: 'type'
347
355
  end
348
356
  end
349
357
 
350
- class MonitoredResource
358
+ class LogSink
351
359
  # @private
352
360
  class Representation < Google::Apis::Core::JsonRepresentation
353
- hash :labels, as: 'labels'
354
- property :type, as: 'type'
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'
355
369
  end
356
370
  end
357
371
 
358
372
  class WriteLogEntriesRequest
359
373
  # @private
360
374
  class Representation < Google::Apis::Core::JsonRepresentation
361
- hash :labels, as: 'labels'
362
- property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation
363
-
364
375
  property :log_name, as: 'logName'
365
376
  collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation
366
377
 
367
378
  property :partial_success, as: 'partialSuccess'
368
- end
369
- end
379
+ hash :labels, as: 'labels'
380
+ property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation
370
381
 
371
- class LogSink
372
- # @private
373
- class Representation < Google::Apis::Core::JsonRepresentation
374
- property :writer_identity, as: 'writerIdentity'
375
- property :start_time, as: 'startTime'
376
- property :output_version_format, as: 'outputVersionFormat'
377
- property :name, as: 'name'
378
- property :include_children, as: 'includeChildren'
379
- property :destination, as: 'destination'
380
- property :filter, as: 'filter'
381
- property :end_time, as: 'endTime'
382
382
  end
383
383
  end
384
384
 
@@ -393,15 +393,15 @@ module Google
393
393
  class HttpRequest
394
394
  # @private
395
395
  class Representation < Google::Apis::Core::JsonRepresentation
396
- property :latency, as: 'latency'
397
396
  property :user_agent, as: 'userAgent'
397
+ property :latency, as: 'latency'
398
398
  property :cache_fill_bytes, :numeric_string => true, as: 'cacheFillBytes'
399
399
  property :request_method, as: 'requestMethod'
400
400
  property :response_size, :numeric_string => true, as: 'responseSize'
401
401
  property :request_size, :numeric_string => true, as: 'requestSize'
402
402
  property :request_url, as: 'requestUrl'
403
- property :remote_ip, as: 'remoteIp'
404
403
  property :server_ip, as: 'serverIp'
404
+ property :remote_ip, as: 'remoteIp'
405
405
  property :cache_lookup, as: 'cacheLookup'
406
406
  property :cache_hit, as: 'cacheHit'
407
407
  property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
@@ -47,6 +47,44 @@ 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.
55
+ # @param [String] page_token
56
+ # Optional. If present, then retrieve the next batch of results from the
57
+ # preceding call to this method. pageToken must be the value of nextPageToken
58
+ # from the previous response. The values of other method parameters should be
59
+ # identical to those in the previous call.
60
+ # @param [String] fields
61
+ # Selector specifying which fields to include in a partial response.
62
+ # @param [String] quota_user
63
+ # Available to use for quota purposes for server-side applications. Can be any
64
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
65
+ # @param [Google::Apis::RequestOptions] options
66
+ # Request-specific options
67
+ #
68
+ # @yield [result, err] Result & error if block supplied
69
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse] parsed result object
70
+ # @yieldparam err [StandardError] error object if request failed
71
+ #
72
+ # @return [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse]
73
+ #
74
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
75
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
76
+ # @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?
82
+ command.query['pageToken'] = page_token unless page_token.nil?
83
+ command.query['fields'] = fields unless fields.nil?
84
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
85
+ execute_or_queue_command(command, &block)
86
+ end
87
+
50
88
  # Deletes all the log entries in a log. The log reappears if it receives new
51
89
  # entries. Log entries written shortly before the delete operation might not be
52
90
  # deleted.
@@ -59,11 +97,11 @@ module Google
59
97
  # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
60
98
  # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
61
99
  # 2Factivity". For more information about log names, see LogEntry.
100
+ # @param [String] fields
101
+ # Selector specifying which fields to include in a partial response.
62
102
  # @param [String] quota_user
63
103
  # Available to use for quota purposes for server-side applications. Can be any
64
104
  # arbitrary string assigned to a user, but should not exceed 40 characters.
65
- # @param [String] fields
66
- # Selector specifying which fields to include in a partial response.
67
105
  # @param [Google::Apis::RequestOptions] options
68
106
  # Request-specific options
69
107
  #
@@ -76,13 +114,13 @@ module Google
76
114
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
77
115
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
116
  # @raise [Google::Apis::AuthorizationError] Authorization is required
79
- def delete_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
117
+ def delete_organization_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
80
118
  command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
81
119
  command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
82
120
  command.response_class = Google::Apis::LoggingV2beta1::Empty
83
121
  command.params['logName'] = log_name unless log_name.nil?
84
- command.query['quotaUser'] = quota_user unless quota_user.nil?
85
122
  command.query['fields'] = fields unless fields.nil?
123
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
86
124
  execute_or_queue_command(command, &block)
87
125
  end
88
126
 
@@ -103,11 +141,11 @@ module Google
103
141
  # Optional. The maximum number of results to return from this request. Non-
104
142
  # positive values are ignored. The presence of nextPageToken in the response
105
143
  # indicates that more results might be available.
144
+ # @param [String] fields
145
+ # Selector specifying which fields to include in a partial response.
106
146
  # @param [String] quota_user
107
147
  # Available to use for quota purposes for server-side applications. Can be any
108
148
  # arbitrary string assigned to a user, but should not exceed 40 characters.
109
- # @param [String] fields
110
- # Selector specifying which fields to include in a partial response.
111
149
  # @param [Google::Apis::RequestOptions] options
112
150
  # Request-specific options
113
151
  #
@@ -120,62 +158,83 @@ module Google
120
158
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
121
159
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
122
160
  # @raise [Google::Apis::AuthorizationError] Authorization is required
123
- def list_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
161
+ def list_organization_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
124
162
  command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
125
163
  command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
126
164
  command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
127
165
  command.params['parent'] = parent unless parent.nil?
128
166
  command.query['pageToken'] = page_token unless page_token.nil?
129
167
  command.query['pageSize'] = page_size unless page_size.nil?
130
- command.query['quotaUser'] = quota_user unless quota_user.nil?
131
168
  command.query['fields'] = fields unless fields.nil?
169
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
132
170
  execute_or_queue_command(command, &block)
133
171
  end
134
172
 
135
- # Deletes a sink. If the sink has a unique writer_identity, then that service
136
- # account is also deleted.
137
- # @param [String] sink_name
138
- # Required. The full resource name of the sink to delete, including the parent
139
- # resource and the sink identifier:
140
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
141
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
142
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
143
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
144
- # Example: "projects/my-project-id/sinks/my-sink-id".
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.
145
178
  # @param [String] quota_user
146
179
  # Available to use for quota purposes for server-side applications. Can be any
147
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
148
206
  # @param [String] fields
149
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.
150
211
  # @param [Google::Apis::RequestOptions] options
151
212
  # Request-specific options
152
213
  #
153
214
  # @yield [result, err] Result & error if block supplied
154
- # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
215
+ # @yieldparam result [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse] parsed result object
155
216
  # @yieldparam err [StandardError] error object if request failed
156
217
  #
157
- # @return [Google::Apis::LoggingV2beta1::Empty]
218
+ # @return [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse]
158
219
  #
159
220
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
160
221
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
161
222
  # @raise [Google::Apis::AuthorizationError] Authorization is required
162
- def delete_project_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
163
- command = make_simple_command(:delete, 'v2beta1/{+sinkName}', options)
164
- command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
165
- command.response_class = Google::Apis::LoggingV2beta1::Empty
166
- command.params['sinkName'] = sink_name unless sink_name.nil?
167
- command.query['quotaUser'] = quota_user unless quota_user.nil?
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
168
229
  command.query['fields'] = fields unless fields.nil?
230
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
169
231
  execute_or_queue_command(command, &block)
170
232
  end
171
233
 
172
- # Lists sinks.
234
+ # Lists logs-based metrics.
173
235
  # @param [String] parent
174
- # Required. The parent resource whose sinks are to be listed:
236
+ # Required. The name of the project containing the metrics:
175
237
  # "projects/[PROJECT_ID]"
176
- # "organizations/[ORGANIZATION_ID]"
177
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
178
- # "folders/[FOLDER_ID]"
179
238
  # @param [String] page_token
180
239
  # Optional. If present, then retrieve the next batch of results from the
181
240
  # preceding call to this method. pageToken must be the value of nextPageToken
@@ -185,209 +244,135 @@ module Google
185
244
  # Optional. The maximum number of results to return from this request. Non-
186
245
  # positive values are ignored. The presence of nextPageToken in the response
187
246
  # indicates that more results might be available.
247
+ # @param [String] fields
248
+ # Selector specifying which fields to include in a partial response.
188
249
  # @param [String] quota_user
189
250
  # Available to use for quota purposes for server-side applications. Can be any
190
251
  # arbitrary string assigned to a user, but should not exceed 40 characters.
191
- # @param [String] fields
192
- # Selector specifying which fields to include in a partial response.
193
252
  # @param [Google::Apis::RequestOptions] options
194
253
  # Request-specific options
195
254
  #
196
255
  # @yield [result, err] Result & error if block supplied
197
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListSinksResponse] parsed result object
256
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogMetricsResponse] parsed result object
198
257
  # @yieldparam err [StandardError] error object if request failed
199
258
  #
200
- # @return [Google::Apis::LoggingV2beta1::ListSinksResponse]
259
+ # @return [Google::Apis::LoggingV2beta1::ListLogMetricsResponse]
201
260
  #
202
261
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
203
262
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
204
263
  # @raise [Google::Apis::AuthorizationError] Authorization is required
205
- def list_project_sinks(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
206
- command = make_simple_command(:get, 'v2beta1/{+parent}/sinks', options)
207
- command.response_representation = Google::Apis::LoggingV2beta1::ListSinksResponse::Representation
208
- command.response_class = Google::Apis::LoggingV2beta1::ListSinksResponse
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
209
268
  command.params['parent'] = parent unless parent.nil?
210
269
  command.query['pageToken'] = page_token unless page_token.nil?
211
270
  command.query['pageSize'] = page_size unless page_size.nil?
212
- command.query['quotaUser'] = quota_user unless quota_user.nil?
213
271
  command.query['fields'] = fields unless fields.nil?
272
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
214
273
  execute_or_queue_command(command, &block)
215
274
  end
216
275
 
217
- # Gets a sink.
218
- # @param [String] sink_name
219
- # Required. The resource name of the sink:
220
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
221
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
222
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
223
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
224
- # Example: "projects/my-project-id/sinks/my-sink-id".
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.
225
282
  # @param [String] quota_user
226
283
  # Available to use for quota purposes for server-side applications. Can be any
227
284
  # arbitrary string assigned to a user, but should not exceed 40 characters.
228
- # @param [String] fields
229
- # Selector specifying which fields to include in a partial response.
230
285
  # @param [Google::Apis::RequestOptions] options
231
286
  # Request-specific options
232
287
  #
233
288
  # @yield [result, err] Result & error if block supplied
234
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
289
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
235
290
  # @yieldparam err [StandardError] error object if request failed
236
291
  #
237
- # @return [Google::Apis::LoggingV2beta1::LogSink]
292
+ # @return [Google::Apis::LoggingV2beta1::LogMetric]
238
293
  #
239
294
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
240
295
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
241
296
  # @raise [Google::Apis::AuthorizationError] Authorization is required
242
- def get_project_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
243
- command = make_simple_command(:get, 'v2beta1/{+sinkName}', options)
244
- command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
245
- command.response_class = Google::Apis::LoggingV2beta1::LogSink
246
- command.params['sinkName'] = sink_name unless sink_name.nil?
247
- command.query['quotaUser'] = quota_user unless quota_user.nil?
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?
248
302
  command.query['fields'] = fields unless fields.nil?
303
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
249
304
  execute_or_queue_command(command, &block)
250
305
  end
251
306
 
252
- # Updates a sink. If the named sink doesn't exist, then this method is identical
253
- # to sinks.create. If the named sink does exist, then this method replaces the
254
- # following fields in the existing sink with values from the new sink:
255
- # destination, filter, output_version_format, start_time, and end_time. The
256
- # updated filter might also have a new writer_identity; see the
257
- # unique_writer_identity field.
258
- # @param [String] sink_name
259
- # Required. The full resource name of the sink to update, including the parent
260
- # resource and the sink identifier:
261
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
262
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
263
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
264
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
265
- # Example: "projects/my-project-id/sinks/my-sink-id".
266
- # @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_object
267
- # @param [Boolean] unique_writer_identity
268
- # Optional. See sinks.create for a description of this field. When updating a
269
- # sink, the effect of this field on the value of writer_identity in the updated
270
- # sink depends on both the old and new values of this field:
271
- # If the old and new values of this field are both false or both true, then
272
- # there is no change to the sink's writer_identity.
273
- # If the old value is false and the new value is true, then writer_identity is
274
- # changed to a unique service account.
275
- # It is an error if the old value is true and the new value is false.
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
315
+ # @param [String] fields
316
+ # Selector specifying which fields to include in a partial response.
276
317
  # @param [String] quota_user
277
318
  # Available to use for quota purposes for server-side applications. Can be any
278
319
  # arbitrary string assigned to a user, but should not exceed 40 characters.
279
- # @param [String] fields
280
- # Selector specifying which fields to include in a partial response.
281
320
  # @param [Google::Apis::RequestOptions] options
282
321
  # Request-specific options
283
322
  #
284
323
  # @yield [result, err] Result & error if block supplied
285
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
324
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
286
325
  # @yieldparam err [StandardError] error object if request failed
287
326
  #
288
- # @return [Google::Apis::LoggingV2beta1::LogSink]
327
+ # @return [Google::Apis::LoggingV2beta1::LogMetric]
289
328
  #
290
329
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
291
330
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
292
331
  # @raise [Google::Apis::AuthorizationError] Authorization is required
293
- def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
294
- command = make_simple_command(:put, 'v2beta1/{+sinkName}', options)
295
- command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
296
- command.request_object = log_sink_object
297
- command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
298
- command.response_class = Google::Apis::LoggingV2beta1::LogSink
299
- command.params['sinkName'] = sink_name unless sink_name.nil?
300
- command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
301
- command.query['quotaUser'] = quota_user unless quota_user.nil?
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?
302
339
  command.query['fields'] = fields unless fields.nil?
340
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
303
341
  execute_or_queue_command(command, &block)
304
342
  end
305
343
 
306
- # Creates a sink that exports specified log entries to a destination. The export
307
- # of newly-ingested log entries begins immediately, unless the current time is
308
- # outside the sink's start and end times or the sink's writer_identity is not
309
- # permitted to write to the destination. A sink can export log entries only from
310
- # the resource owning the sink.
344
+ # Creates a logs-based metric.
311
345
  # @param [String] parent
312
- # Required. The resource in which to create the sink:
346
+ # The resource name of the project in which to create the metric:
313
347
  # "projects/[PROJECT_ID]"
314
- # "organizations/[ORGANIZATION_ID]"
315
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
316
- # "folders/[FOLDER_ID]"
317
- # Examples: "projects/my-logging-project", "organizations/123456789".
318
- # @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_object
319
- # @param [Boolean] unique_writer_identity
320
- # Optional. Determines the kind of IAM identity returned as writer_identity in
321
- # the new sink. If this value is omitted or set to false, and if the sink's
322
- # parent is a project, then the value returned as writer_identity is the same
323
- # group or service account used by Stackdriver Logging before the addition of
324
- # writer identities to this API. The sink's destination must be in the same
325
- # project as the sink itself.If this field is set to true, or if the sink is
326
- # owned by a non-project resource such as an organization, then the value of
327
- # writer_identity will be a unique service account used only for exports from
328
- # the new sink. For more information, see writer_identity in LogSink.
348
+ # The new metric must be provided in the request.
349
+ # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
350
+ # @param [String] fields
351
+ # Selector specifying which fields to include in a partial response.
329
352
  # @param [String] quota_user
330
353
  # Available to use for quota purposes for server-side applications. Can be any
331
354
  # arbitrary string assigned to a user, but should not exceed 40 characters.
332
- # @param [String] fields
333
- # Selector specifying which fields to include in a partial response.
334
355
  # @param [Google::Apis::RequestOptions] options
335
356
  # Request-specific options
336
357
  #
337
358
  # @yield [result, err] Result & error if block supplied
338
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
359
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
339
360
  # @yieldparam err [StandardError] error object if request failed
340
361
  #
341
- # @return [Google::Apis::LoggingV2beta1::LogSink]
362
+ # @return [Google::Apis::LoggingV2beta1::LogMetric]
342
363
  #
343
364
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
344
365
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
345
366
  # @raise [Google::Apis::AuthorizationError] Authorization is required
346
- def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
347
- command = make_simple_command(:post, 'v2beta1/{+parent}/sinks', options)
348
- command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
349
- command.request_object = log_sink_object
350
- command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
351
- command.response_class = Google::Apis::LoggingV2beta1::LogSink
352
- command.params['parent'] = parent unless parent.nil?
353
- command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
354
- command.query['quotaUser'] = quota_user unless quota_user.nil?
355
- command.query['fields'] = fields unless fields.nil?
356
- execute_or_queue_command(command, &block)
357
- end
358
-
359
- # Creates a logs-based metric.
360
- # @param [String] parent
361
- # The resource name of the project in which to create the metric:
362
- # "projects/[PROJECT_ID]"
363
- # The new metric must be provided in the request.
364
- # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
365
- # @param [String] quota_user
366
- # Available to use for quota purposes for server-side applications. Can be any
367
- # arbitrary string assigned to a user, but should not exceed 40 characters.
368
- # @param [String] fields
369
- # Selector specifying which fields to include in a partial response.
370
- # @param [Google::Apis::RequestOptions] options
371
- # Request-specific options
372
- #
373
- # @yield [result, err] Result & error if block supplied
374
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
375
- # @yieldparam err [StandardError] error object if request failed
376
- #
377
- # @return [Google::Apis::LoggingV2beta1::LogMetric]
378
- #
379
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
380
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
381
- # @raise [Google::Apis::AuthorizationError] Authorization is required
382
- def create_project_metric(parent, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block)
367
+ def create_project_metric(parent, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
383
368
  command = make_simple_command(:post, 'v2beta1/{+parent}/metrics', options)
384
369
  command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
385
370
  command.request_object = log_metric_object
386
371
  command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
387
372
  command.response_class = Google::Apis::LoggingV2beta1::LogMetric
388
373
  command.params['parent'] = parent unless parent.nil?
389
- command.query['quotaUser'] = quota_user unless quota_user.nil?
390
374
  command.query['fields'] = fields unless fields.nil?
375
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
391
376
  execute_or_queue_command(command, &block)
392
377
  end
393
378
 
@@ -395,11 +380,11 @@ module Google
395
380
  # @param [String] metric_name
396
381
  # The resource name of the metric to delete:
397
382
  # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
383
+ # @param [String] fields
384
+ # Selector specifying which fields to include in a partial response.
398
385
  # @param [String] quota_user
399
386
  # Available to use for quota purposes for server-side applications. Can be any
400
387
  # arbitrary string assigned to a user, but should not exceed 40 characters.
401
- # @param [String] fields
402
- # Selector specifying which fields to include in a partial response.
403
388
  # @param [Google::Apis::RequestOptions] options
404
389
  # Request-specific options
405
390
  #
@@ -412,189 +397,223 @@ module Google
412
397
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
413
398
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
414
399
  # @raise [Google::Apis::AuthorizationError] Authorization is required
415
- def delete_project_metric(metric_name, quota_user: nil, fields: nil, options: nil, &block)
400
+ def delete_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
416
401
  command = make_simple_command(:delete, 'v2beta1/{+metricName}', options)
417
402
  command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
418
403
  command.response_class = Google::Apis::LoggingV2beta1::Empty
419
404
  command.params['metricName'] = metric_name unless metric_name.nil?
420
- command.query['quotaUser'] = quota_user unless quota_user.nil?
421
405
  command.query['fields'] = fields unless fields.nil?
406
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
422
407
  execute_or_queue_command(command, &block)
423
408
  end
424
409
 
425
- # Lists logs-based metrics.
426
- # @param [String] parent
427
- # Required. The name of the project containing the metrics:
428
- # "projects/[PROJECT_ID]"
429
- # @param [String] page_token
430
- # Optional. If present, then retrieve the next batch of results from the
431
- # preceding call to this method. pageToken must be the value of nextPageToken
432
- # from the previous response. The values of other method parameters should be
433
- # identical to those in the previous call.
434
- # @param [Fixnum] page_size
435
- # Optional. The maximum number of results to return from this request. Non-
436
- # positive values are ignored. The presence of nextPageToken in the response
437
- # indicates that more results might be available.
410
+ # Deletes all the log entries in a log. The log reappears if it receives new
411
+ # entries. Log entries written shortly before the delete operation might not be
412
+ # deleted.
413
+ # @param [String] log_name
414
+ # Required. The resource name of the log to delete:
415
+ # "projects/[PROJECT_ID]/logs/[LOG_ID]"
416
+ # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
417
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
418
+ # "folders/[FOLDER_ID]/logs/[LOG_ID]"
419
+ # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
420
+ # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
421
+ # 2Factivity". For more information about log names, see LogEntry.
422
+ # @param [String] fields
423
+ # Selector specifying which fields to include in a partial response.
438
424
  # @param [String] quota_user
439
425
  # Available to use for quota purposes for server-side applications. Can be any
440
426
  # arbitrary string assigned to a user, but should not exceed 40 characters.
441
- # @param [String] fields
442
- # Selector specifying which fields to include in a partial response.
443
427
  # @param [Google::Apis::RequestOptions] options
444
428
  # Request-specific options
445
429
  #
446
430
  # @yield [result, err] Result & error if block supplied
447
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogMetricsResponse] parsed result object
431
+ # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object
448
432
  # @yieldparam err [StandardError] error object if request failed
449
433
  #
450
- # @return [Google::Apis::LoggingV2beta1::ListLogMetricsResponse]
434
+ # @return [Google::Apis::LoggingV2beta1::Empty]
451
435
  #
452
436
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
453
437
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
454
438
  # @raise [Google::Apis::AuthorizationError] Authorization is required
455
- def list_project_metrics(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
456
- command = make_simple_command(:get, 'v2beta1/{+parent}/metrics', options)
457
- command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation
458
- command.response_class = Google::Apis::LoggingV2beta1::ListLogMetricsResponse
459
- command.params['parent'] = parent unless parent.nil?
460
- command.query['pageToken'] = page_token unless page_token.nil?
461
- command.query['pageSize'] = page_size unless page_size.nil?
462
- command.query['quotaUser'] = quota_user unless quota_user.nil?
439
+ def delete_project_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
440
+ command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
441
+ command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
442
+ command.response_class = Google::Apis::LoggingV2beta1::Empty
443
+ command.params['logName'] = log_name unless log_name.nil?
463
444
  command.query['fields'] = fields unless fields.nil?
445
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
464
446
  execute_or_queue_command(command, &block)
465
447
  end
466
448
 
467
- # Gets a logs-based metric.
468
- # @param [String] metric_name
469
- # The resource name of the desired metric:
470
- # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
449
+ # Lists the logs in projects, organizations, folders, or billing accounts. Only
450
+ # logs that have entries are listed.
451
+ # @param [String] parent
452
+ # Required. The resource name that owns the logs:
453
+ # "projects/[PROJECT_ID]"
454
+ # "organizations/[ORGANIZATION_ID]"
455
+ # "billingAccounts/[BILLING_ACCOUNT_ID]"
456
+ # "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
+ # @param [String] page_token
462
+ # Optional. If present, then retrieve the next batch of results from the
463
+ # preceding call to this method. pageToken must be the value of nextPageToken
464
+ # from the previous response. The values of other method parameters should be
465
+ # identical to those in the previous call.
466
+ # @param [String] fields
467
+ # Selector specifying which fields to include in a partial response.
471
468
  # @param [String] quota_user
472
469
  # Available to use for quota purposes for server-side applications. Can be any
473
470
  # arbitrary string assigned to a user, but should not exceed 40 characters.
474
- # @param [String] fields
475
- # Selector specifying which fields to include in a partial response.
476
471
  # @param [Google::Apis::RequestOptions] options
477
472
  # Request-specific options
478
473
  #
479
474
  # @yield [result, err] Result & error if block supplied
480
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
475
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogsResponse] parsed result object
481
476
  # @yieldparam err [StandardError] error object if request failed
482
477
  #
483
- # @return [Google::Apis::LoggingV2beta1::LogMetric]
478
+ # @return [Google::Apis::LoggingV2beta1::ListLogsResponse]
484
479
  #
485
480
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
486
481
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
487
482
  # @raise [Google::Apis::AuthorizationError] Authorization is required
488
- def get_project_metric(metric_name, quota_user: nil, fields: nil, options: nil, &block)
489
- command = make_simple_command(:get, 'v2beta1/{+metricName}', options)
490
- command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
491
- command.response_class = Google::Apis::LoggingV2beta1::LogMetric
492
- command.params['metricName'] = metric_name unless metric_name.nil?
493
- command.query['quotaUser'] = quota_user unless quota_user.nil?
483
+ def list_project_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
484
+ command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
485
+ command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
486
+ command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
487
+ command.params['parent'] = parent unless parent.nil?
488
+ command.query['pageSize'] = page_size unless page_size.nil?
489
+ command.query['pageToken'] = page_token unless page_token.nil?
494
490
  command.query['fields'] = fields unless fields.nil?
491
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
495
492
  execute_or_queue_command(command, &block)
496
493
  end
497
494
 
498
- # Creates or updates a logs-based metric.
499
- # @param [String] metric_name
500
- # The resource name of the metric to update:
501
- # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
502
- # The updated metric must be provided in the request and it's name field must be
503
- # the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
504
- # new metric is created.
505
- # @param [Google::Apis::LoggingV2beta1::LogMetric] log_metric_object
495
+ # Updates a sink. If the named sink doesn't exist, then this method is identical
496
+ # to sinks.create. If the named sink does exist, then this method replaces the
497
+ # following fields in the existing sink with values from the new sink:
498
+ # destination, filter, output_version_format, start_time, and end_time. The
499
+ # updated filter might also have a new writer_identity; see the
500
+ # unique_writer_identity field.
501
+ # @param [String] sink_name
502
+ # Required. The full resource name of the sink to update, including the parent
503
+ # resource and the sink identifier:
504
+ # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
505
+ # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
506
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
507
+ # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
508
+ # Example: "projects/my-project-id/sinks/my-sink-id".
509
+ # @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_object
510
+ # @param [Boolean] unique_writer_identity
511
+ # Optional. See sinks.create for a description of this field. When updating a
512
+ # sink, the effect of this field on the value of writer_identity in the updated
513
+ # sink depends on both the old and new values of this field:
514
+ # If the old and new values of this field are both false or both true, then
515
+ # there is no change to the sink's writer_identity.
516
+ # If the old value is false and the new value is true, then writer_identity is
517
+ # changed to a unique service account.
518
+ # It is an error if the old value is true and the new value is false.
519
+ # @param [String] fields
520
+ # Selector specifying which fields to include in a partial response.
506
521
  # @param [String] quota_user
507
522
  # Available to use for quota purposes for server-side applications. Can be any
508
523
  # arbitrary string assigned to a user, but should not exceed 40 characters.
509
- # @param [String] fields
510
- # Selector specifying which fields to include in a partial response.
511
524
  # @param [Google::Apis::RequestOptions] options
512
525
  # Request-specific options
513
526
  #
514
527
  # @yield [result, err] Result & error if block supplied
515
- # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object
528
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
516
529
  # @yieldparam err [StandardError] error object if request failed
517
530
  #
518
- # @return [Google::Apis::LoggingV2beta1::LogMetric]
531
+ # @return [Google::Apis::LoggingV2beta1::LogSink]
519
532
  #
520
533
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
521
534
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
522
535
  # @raise [Google::Apis::AuthorizationError] Authorization is required
523
- def update_project_metric(metric_name, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block)
524
- command = make_simple_command(:put, 'v2beta1/{+metricName}', options)
525
- command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
526
- command.request_object = log_metric_object
527
- command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation
528
- command.response_class = Google::Apis::LoggingV2beta1::LogMetric
529
- command.params['metricName'] = metric_name unless metric_name.nil?
530
- command.query['quotaUser'] = quota_user unless quota_user.nil?
536
+ def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
537
+ command = make_simple_command(:put, 'v2beta1/{+sinkName}', options)
538
+ command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
539
+ command.request_object = log_sink_object
540
+ command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
541
+ command.response_class = Google::Apis::LoggingV2beta1::LogSink
542
+ command.params['sinkName'] = sink_name unless sink_name.nil?
543
+ command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
531
544
  command.query['fields'] = fields unless fields.nil?
545
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
532
546
  execute_or_queue_command(command, &block)
533
547
  end
534
548
 
535
- # Lists the logs in projects, organizations, folders, or billing accounts. Only
536
- # logs that have entries are listed.
549
+ # Creates a sink that exports specified log entries to a destination. The export
550
+ # of newly-ingested log entries begins immediately, unless the current time is
551
+ # outside the sink's start and end times or the sink's writer_identity is not
552
+ # permitted to write to the destination. A sink can export log entries only from
553
+ # the resource owning the sink.
537
554
  # @param [String] parent
538
- # Required. The resource name that owns the logs:
555
+ # Required. The resource in which to create the sink:
539
556
  # "projects/[PROJECT_ID]"
540
557
  # "organizations/[ORGANIZATION_ID]"
541
558
  # "billingAccounts/[BILLING_ACCOUNT_ID]"
542
559
  # "folders/[FOLDER_ID]"
543
- # @param [String] page_token
544
- # Optional. If present, then retrieve the next batch of results from the
545
- # preceding call to this method. pageToken must be the value of nextPageToken
546
- # from the previous response. The values of other method parameters should be
547
- # identical to those in the previous call.
548
- # @param [Fixnum] page_size
549
- # Optional. The maximum number of results to return from this request. Non-
550
- # positive values are ignored. The presence of nextPageToken in the response
551
- # indicates that more results might be available.
560
+ # Examples: "projects/my-logging-project", "organizations/123456789".
561
+ # @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_object
562
+ # @param [Boolean] unique_writer_identity
563
+ # Optional. Determines the kind of IAM identity returned as writer_identity in
564
+ # the new sink. If this value is omitted or set to false, and if the sink's
565
+ # parent is a project, then the value returned as writer_identity is the same
566
+ # group or service account used by Stackdriver Logging before the addition of
567
+ # writer identities to this API. The sink's destination must be in the same
568
+ # project as the sink itself.If this field is set to true, or if the sink is
569
+ # owned by a non-project resource such as an organization, then the value of
570
+ # writer_identity will be a unique service account used only for exports from
571
+ # the new sink. For more information, see writer_identity in LogSink.
572
+ # @param [String] fields
573
+ # Selector specifying which fields to include in a partial response.
552
574
  # @param [String] quota_user
553
575
  # Available to use for quota purposes for server-side applications. Can be any
554
576
  # arbitrary string assigned to a user, but should not exceed 40 characters.
555
- # @param [String] fields
556
- # Selector specifying which fields to include in a partial response.
557
577
  # @param [Google::Apis::RequestOptions] options
558
578
  # Request-specific options
559
579
  #
560
580
  # @yield [result, err] Result & error if block supplied
561
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogsResponse] parsed result object
581
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
562
582
  # @yieldparam err [StandardError] error object if request failed
563
583
  #
564
- # @return [Google::Apis::LoggingV2beta1::ListLogsResponse]
584
+ # @return [Google::Apis::LoggingV2beta1::LogSink]
565
585
  #
566
586
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
567
587
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
568
588
  # @raise [Google::Apis::AuthorizationError] Authorization is required
569
- def list_billing_account_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
570
- command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
571
- command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
572
- command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
589
+ def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
590
+ command = make_simple_command(:post, 'v2beta1/{+parent}/sinks', options)
591
+ command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
592
+ command.request_object = log_sink_object
593
+ command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
594
+ command.response_class = Google::Apis::LoggingV2beta1::LogSink
573
595
  command.params['parent'] = parent unless parent.nil?
574
- command.query['pageToken'] = page_token unless page_token.nil?
575
- command.query['pageSize'] = page_size unless page_size.nil?
576
- command.query['quotaUser'] = quota_user unless quota_user.nil?
596
+ command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
577
597
  command.query['fields'] = fields unless fields.nil?
598
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
578
599
  execute_or_queue_command(command, &block)
579
600
  end
580
601
 
581
- # Deletes all the log entries in a log. The log reappears if it receives new
582
- # entries. Log entries written shortly before the delete operation might not be
583
- # deleted.
584
- # @param [String] log_name
585
- # Required. The resource name of the log to delete:
586
- # "projects/[PROJECT_ID]/logs/[LOG_ID]"
587
- # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
588
- # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
589
- # "folders/[FOLDER_ID]/logs/[LOG_ID]"
590
- # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
591
- # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
592
- # 2Factivity". For more information about log names, see LogEntry.
602
+ # Deletes a sink. If the sink has a unique writer_identity, then that service
603
+ # account is also deleted.
604
+ # @param [String] sink_name
605
+ # Required. The full resource name of the sink to delete, including the parent
606
+ # resource and the sink identifier:
607
+ # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
608
+ # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
609
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
610
+ # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
611
+ # Example: "projects/my-project-id/sinks/my-sink-id".
612
+ # @param [String] fields
613
+ # Selector specifying which fields to include in a partial response.
593
614
  # @param [String] quota_user
594
615
  # Available to use for quota purposes for server-side applications. Can be any
595
616
  # arbitrary string assigned to a user, but should not exceed 40 characters.
596
- # @param [String] fields
597
- # Selector specifying which fields to include in a partial response.
598
617
  # @param [Google::Apis::RequestOptions] options
599
618
  # Request-specific options
600
619
  #
@@ -607,51 +626,93 @@ module Google
607
626
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
608
627
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
609
628
  # @raise [Google::Apis::AuthorizationError] Authorization is required
610
- def delete_billing_account_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
611
- command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
629
+ def delete_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
630
+ command = make_simple_command(:delete, 'v2beta1/{+sinkName}', options)
612
631
  command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
613
632
  command.response_class = Google::Apis::LoggingV2beta1::Empty
614
- command.params['logName'] = log_name unless log_name.nil?
615
- command.query['quotaUser'] = quota_user unless quota_user.nil?
633
+ command.params['sinkName'] = sink_name unless sink_name.nil?
616
634
  command.query['fields'] = fields unless fields.nil?
635
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
617
636
  execute_or_queue_command(command, &block)
618
637
  end
619
638
 
620
- # Lists the descriptors for monitored resource types used by Stackdriver Logging.
639
+ # Lists sinks.
640
+ # @param [String] parent
641
+ # Required. The parent resource whose sinks are to be listed:
642
+ # "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.
621
650
  # @param [String] page_token
622
651
  # Optional. If present, then retrieve the next batch of results from the
623
652
  # preceding call to this method. pageToken must be the value of nextPageToken
624
653
  # from the previous response. The values of other method parameters should be
625
654
  # identical to those in the previous call.
626
- # @param [Fixnum] page_size
627
- # Optional. The maximum number of results to return from this request. Non-
628
- # positive values are ignored. The presence of nextPageToken in the response
629
- # indicates that more results might be available.
655
+ # @param [String] fields
656
+ # Selector specifying which fields to include in a partial response.
630
657
  # @param [String] quota_user
631
658
  # Available to use for quota purposes for server-side applications. Can be any
632
659
  # arbitrary string assigned to a user, but should not exceed 40 characters.
633
- # @param [String] fields
634
- # Selector specifying which fields to include in a partial response.
635
660
  # @param [Google::Apis::RequestOptions] options
636
661
  # Request-specific options
637
662
  #
638
663
  # @yield [result, err] Result & error if block supplied
639
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse] parsed result object
664
+ # @yieldparam result [Google::Apis::LoggingV2beta1::ListSinksResponse] parsed result object
640
665
  # @yieldparam err [StandardError] error object if request failed
641
666
  #
642
- # @return [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse]
667
+ # @return [Google::Apis::LoggingV2beta1::ListSinksResponse]
643
668
  #
644
669
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
645
670
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
646
671
  # @raise [Google::Apis::AuthorizationError] Authorization is required
647
- def list_monitored_resource_descriptors(page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
648
- command = make_simple_command(:get, 'v2beta1/monitoredResourceDescriptors', options)
649
- command.response_representation = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse::Representation
650
- command.response_class = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse
651
- command.query['pageToken'] = page_token unless page_token.nil?
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
676
+ command.params['parent'] = parent unless parent.nil?
652
677
  command.query['pageSize'] = page_size unless page_size.nil?
678
+ command.query['pageToken'] = page_token unless page_token.nil?
679
+ command.query['fields'] = fields unless fields.nil?
653
680
  command.query['quotaUser'] = quota_user unless quota_user.nil?
681
+ execute_or_queue_command(command, &block)
682
+ end
683
+
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".
692
+ # @param [String] fields
693
+ # Selector specifying which fields to include in a partial response.
694
+ # @param [String] quota_user
695
+ # Available to use for quota purposes for server-side applications. Can be any
696
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
697
+ # @param [Google::Apis::RequestOptions] options
698
+ # Request-specific options
699
+ #
700
+ # @yield [result, err] Result & error if block supplied
701
+ # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object
702
+ # @yieldparam err [StandardError] error object if request failed
703
+ #
704
+ # @return [Google::Apis::LoggingV2beta1::LogSink]
705
+ #
706
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
707
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
708
+ # @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?
654
714
  command.query['fields'] = fields unless fields.nil?
715
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
655
716
  execute_or_queue_command(command, &block)
656
717
  end
657
718
 
@@ -667,11 +728,11 @@ module Google
667
728
  # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
668
729
  # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
669
730
  # 2Factivity". For more information about log names, see LogEntry.
731
+ # @param [String] fields
732
+ # Selector specifying which fields to include in a partial response.
670
733
  # @param [String] quota_user
671
734
  # Available to use for quota purposes for server-side applications. Can be any
672
735
  # arbitrary string assigned to a user, but should not exceed 40 characters.
673
- # @param [String] fields
674
- # Selector specifying which fields to include in a partial response.
675
736
  # @param [Google::Apis::RequestOptions] options
676
737
  # Request-specific options
677
738
  #
@@ -684,13 +745,13 @@ module Google
684
745
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
685
746
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
686
747
  # @raise [Google::Apis::AuthorizationError] Authorization is required
687
- def delete_organization_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
748
+ def delete_billing_account_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
688
749
  command = make_simple_command(:delete, 'v2beta1/{+logName}', options)
689
750
  command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation
690
751
  command.response_class = Google::Apis::LoggingV2beta1::Empty
691
752
  command.params['logName'] = log_name unless log_name.nil?
692
- command.query['quotaUser'] = quota_user unless quota_user.nil?
693
753
  command.query['fields'] = fields unless fields.nil?
754
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
694
755
  execute_or_queue_command(command, &block)
695
756
  end
696
757
 
@@ -702,20 +763,20 @@ module Google
702
763
  # "organizations/[ORGANIZATION_ID]"
703
764
  # "billingAccounts/[BILLING_ACCOUNT_ID]"
704
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.
705
770
  # @param [String] page_token
706
771
  # Optional. If present, then retrieve the next batch of results from the
707
772
  # preceding call to this method. pageToken must be the value of nextPageToken
708
773
  # from the previous response. The values of other method parameters should be
709
774
  # identical to those in the previous call.
710
- # @param [Fixnum] page_size
711
- # Optional. The maximum number of results to return from this request. Non-
712
- # positive values are ignored. The presence of nextPageToken in the response
713
- # indicates that more results might be available.
775
+ # @param [String] fields
776
+ # Selector specifying which fields to include in a partial response.
714
777
  # @param [String] quota_user
715
778
  # Available to use for quota purposes for server-side applications. Can be any
716
779
  # arbitrary string assigned to a user, but should not exceed 40 characters.
717
- # @param [String] fields
718
- # Selector specifying which fields to include in a partial response.
719
780
  # @param [Google::Apis::RequestOptions] options
720
781
  # Request-specific options
721
782
  #
@@ -728,76 +789,15 @@ module Google
728
789
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
729
790
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
730
791
  # @raise [Google::Apis::AuthorizationError] Authorization is required
731
- def list_organization_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
792
+ def list_billing_account_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
732
793
  command = make_simple_command(:get, 'v2beta1/{+parent}/logs', options)
733
794
  command.response_representation = Google::Apis::LoggingV2beta1::ListLogsResponse::Representation
734
795
  command.response_class = Google::Apis::LoggingV2beta1::ListLogsResponse
735
796
  command.params['parent'] = parent unless parent.nil?
736
- command.query['pageToken'] = page_token unless page_token.nil?
737
797
  command.query['pageSize'] = page_size unless page_size.nil?
738
- command.query['quotaUser'] = quota_user unless quota_user.nil?
739
- command.query['fields'] = fields unless fields.nil?
740
- execute_or_queue_command(command, &block)
741
- end
742
-
743
- # Lists log entries. Use this method to retrieve log entries from Stackdriver
744
- # Logging. For ways to export log entries, see Exporting Logs.
745
- # @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_request_object
746
- # @param [String] quota_user
747
- # Available to use for quota purposes for server-side applications. Can be any
748
- # arbitrary string assigned to a user, but should not exceed 40 characters.
749
- # @param [String] fields
750
- # Selector specifying which fields to include in a partial response.
751
- # @param [Google::Apis::RequestOptions] options
752
- # Request-specific options
753
- #
754
- # @yield [result, err] Result & error if block supplied
755
- # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogEntriesResponse] parsed result object
756
- # @yieldparam err [StandardError] error object if request failed
757
- #
758
- # @return [Google::Apis::LoggingV2beta1::ListLogEntriesResponse]
759
- #
760
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
761
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
762
- # @raise [Google::Apis::AuthorizationError] Authorization is required
763
- def list_entry_log_entries(list_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
764
- command = make_simple_command(:post, 'v2beta1/entries:list', options)
765
- command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation
766
- command.request_object = list_log_entries_request_object
767
- command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation
768
- command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse
769
- command.query['quotaUser'] = quota_user unless quota_user.nil?
798
+ command.query['pageToken'] = page_token unless page_token.nil?
770
799
  command.query['fields'] = fields unless fields.nil?
771
- execute_or_queue_command(command, &block)
772
- end
773
-
774
- # Writes log entries to Stackdriver Logging.
775
- # @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_request_object
776
- # @param [String] quota_user
777
- # Available to use for quota purposes for server-side applications. Can be any
778
- # arbitrary string assigned to a user, but should not exceed 40 characters.
779
- # @param [String] fields
780
- # Selector specifying which fields to include in a partial response.
781
- # @param [Google::Apis::RequestOptions] options
782
- # Request-specific options
783
- #
784
- # @yield [result, err] Result & error if block supplied
785
- # @yieldparam result [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse] parsed result object
786
- # @yieldparam err [StandardError] error object if request failed
787
- #
788
- # @return [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse]
789
- #
790
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
791
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
792
- # @raise [Google::Apis::AuthorizationError] Authorization is required
793
- def write_entry_log_entries(write_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
794
- command = make_simple_command(:post, 'v2beta1/entries:write', options)
795
- command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation
796
- command.request_object = write_log_entries_request_object
797
- command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation
798
- command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse
799
800
  command.query['quotaUser'] = quota_user unless quota_user.nil?
800
- command.query['fields'] = fields unless fields.nil?
801
801
  execute_or_queue_command(command, &block)
802
802
  end
803
803