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
@@ -22,42 +22,6 @@ module Google
22
22
  module Apis
23
23
  module LoggingV2
24
24
 
25
- class HttpRequest
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class ListSinksResponse
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
- class LabelDescriptor
38
- class Representation < Google::Apis::Core::JsonRepresentation; end
39
-
40
- include Google::Apis::Core::JsonObjectSupport
41
- end
42
-
43
- class MonitoredResourceDescriptor
44
- class Representation < Google::Apis::Core::JsonRepresentation; end
45
-
46
- include Google::Apis::Core::JsonObjectSupport
47
- end
48
-
49
- class LogEntrySourceLocation
50
- class Representation < Google::Apis::Core::JsonRepresentation; end
51
-
52
- include Google::Apis::Core::JsonObjectSupport
53
- end
54
-
55
- class ListLogEntriesResponse
56
- class Representation < Google::Apis::Core::JsonRepresentation; end
57
-
58
- include Google::Apis::Core::JsonObjectSupport
59
- end
60
-
61
25
  class LogLine
62
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
27
 
@@ -70,13 +34,13 @@ module Google
70
34
  include Google::Apis::Core::JsonObjectSupport
71
35
  end
72
36
 
73
- class LogEntry
37
+ class Empty
74
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
39
 
76
40
  include Google::Apis::Core::JsonObjectSupport
77
41
  end
78
42
 
79
- class Empty
43
+ class LogEntry
80
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
45
 
82
46
  include Google::Apis::Core::JsonObjectSupport
@@ -136,13 +100,13 @@ module Google
136
100
  include Google::Apis::Core::JsonObjectSupport
137
101
  end
138
102
 
139
- class WriteLogEntriesRequest
103
+ class LogSink
140
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
105
 
142
106
  include Google::Apis::Core::JsonObjectSupport
143
107
  end
144
108
 
145
- class LogSink
109
+ class WriteLogEntriesRequest
146
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
111
 
148
112
  include Google::Apis::Core::JsonObjectSupport
@@ -155,71 +119,39 @@ module Google
155
119
  end
156
120
 
157
121
  class HttpRequest
158
- # @private
159
- class Representation < Google::Apis::Core::JsonRepresentation
160
- property :cache_lookup, as: 'cacheLookup'
161
- property :cache_hit, as: 'cacheHit'
162
- property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
163
- property :status, as: 'status'
164
- property :referer, as: 'referer'
165
- property :user_agent, as: 'userAgent'
166
- property :latency, as: 'latency'
167
- property :cache_fill_bytes, :numeric_string => true, as: 'cacheFillBytes'
168
- property :request_method, as: 'requestMethod'
169
- property :request_size, :numeric_string => true, as: 'requestSize'
170
- property :response_size, :numeric_string => true, as: 'responseSize'
171
- property :request_url, as: 'requestUrl'
172
- property :server_ip, as: 'serverIp'
173
- property :remote_ip, as: 'remoteIp'
174
- end
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
175
125
  end
176
126
 
177
127
  class ListSinksResponse
178
- # @private
179
- class Representation < Google::Apis::Core::JsonRepresentation
180
- collection :sinks, as: 'sinks', class: Google::Apis::LoggingV2::LogSink, decorator: Google::Apis::LoggingV2::LogSink::Representation
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
181
129
 
182
- property :next_page_token, as: 'nextPageToken'
183
- end
130
+ include Google::Apis::Core::JsonObjectSupport
184
131
  end
185
132
 
186
133
  class LabelDescriptor
187
- # @private
188
- class Representation < Google::Apis::Core::JsonRepresentation
189
- property :key, as: 'key'
190
- property :description, as: 'description'
191
- property :value_type, as: 'valueType'
192
- end
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
193
137
  end
194
138
 
195
139
  class MonitoredResourceDescriptor
196
- # @private
197
- class Representation < Google::Apis::Core::JsonRepresentation
198
- property :name, as: 'name'
199
- property :display_name, as: 'displayName'
200
- property :description, as: 'description'
201
- property :type, as: 'type'
202
- collection :labels, as: 'labels', class: Google::Apis::LoggingV2::LabelDescriptor, decorator: Google::Apis::LoggingV2::LabelDescriptor::Representation
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
203
141
 
204
- end
142
+ include Google::Apis::Core::JsonObjectSupport
205
143
  end
206
144
 
207
145
  class LogEntrySourceLocation
208
- # @private
209
- class Representation < Google::Apis::Core::JsonRepresentation
210
- property :file, as: 'file'
211
- property :function, as: 'function'
212
- property :line, :numeric_string => true, as: 'line'
213
- end
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
214
149
  end
215
150
 
216
151
  class ListLogEntriesResponse
217
- # @private
218
- class Representation < Google::Apis::Core::JsonRepresentation
219
- property :next_page_token, as: 'nextPageToken'
220
- collection :entries, as: 'entries', class: Google::Apis::LoggingV2::LogEntry, decorator: Google::Apis::LoggingV2::LogEntry::Representation
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
221
153
 
222
- end
154
+ include Google::Apis::Core::JsonObjectSupport
223
155
  end
224
156
 
225
157
  class LogLine
@@ -242,33 +174,33 @@ module Google
242
174
  end
243
175
  end
244
176
 
177
+ class Empty
178
+ # @private
179
+ class Representation < Google::Apis::Core::JsonRepresentation
180
+ end
181
+ end
182
+
245
183
  class LogEntry
246
184
  # @private
247
185
  class Representation < Google::Apis::Core::JsonRepresentation
248
- property :receive_timestamp, as: 'receiveTimestamp'
186
+ property :trace, as: 'trace'
187
+ hash :labels, as: 'labels'
188
+ property :severity, as: 'severity'
189
+ property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2::LogEntrySourceLocation, decorator: Google::Apis::LoggingV2::LogEntrySourceLocation::Representation
190
+
249
191
  property :timestamp, as: 'timestamp'
192
+ property :receive_timestamp, as: 'receiveTimestamp'
250
193
  property :log_name, as: 'logName'
251
- property :resource, as: 'resource', class: Google::Apis::LoggingV2::MonitoredResource, decorator: Google::Apis::LoggingV2::MonitoredResource::Representation
252
-
253
194
  property :http_request, as: 'httpRequest', class: Google::Apis::LoggingV2::HttpRequest, decorator: Google::Apis::LoggingV2::HttpRequest::Representation
254
195
 
196
+ property :resource, as: 'resource', class: Google::Apis::LoggingV2::MonitoredResource, decorator: Google::Apis::LoggingV2::MonitoredResource::Representation
197
+
255
198
  hash :json_payload, as: 'jsonPayload'
256
199
  property :insert_id, as: 'insertId'
257
200
  property :operation, as: 'operation', class: Google::Apis::LoggingV2::LogEntryOperation, decorator: Google::Apis::LoggingV2::LogEntryOperation::Representation
258
201
 
259
202
  property :text_payload, as: 'textPayload'
260
203
  hash :proto_payload, as: 'protoPayload'
261
- hash :labels, as: 'labels'
262
- property :trace, as: 'trace'
263
- property :severity, as: 'severity'
264
- property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV2::LogEntrySourceLocation, decorator: Google::Apis::LoggingV2::LogEntrySourceLocation::Representation
265
-
266
- end
267
- end
268
-
269
- class Empty
270
- # @private
271
- class Representation < Google::Apis::Core::JsonRepresentation
272
204
  end
273
205
  end
274
206
 
@@ -284,18 +216,21 @@ module Google
284
216
  class ListLogEntriesRequest
285
217
  # @private
286
218
  class Representation < Google::Apis::Core::JsonRepresentation
287
- collection :project_ids, as: 'projectIds'
288
- property :filter, as: 'filter'
289
219
  property :page_token, as: 'pageToken'
290
220
  property :page_size, as: 'pageSize'
291
221
  property :order_by, as: 'orderBy'
292
222
  collection :resource_names, as: 'resourceNames'
223
+ collection :project_ids, as: 'projectIds'
224
+ property :filter, as: 'filter'
293
225
  end
294
226
  end
295
227
 
296
228
  class RequestLog
297
229
  # @private
298
230
  class Representation < Google::Apis::Core::JsonRepresentation
231
+ property :mega_cycles, :numeric_string => true, as: 'megaCycles'
232
+ property :first, as: 'first'
233
+ property :version_id, as: 'versionId'
299
234
  property :module_id, as: 'moduleId'
300
235
  property :end_time, as: 'endTime'
301
236
  property :user_agent, as: 'userAgent'
@@ -306,8 +241,8 @@ module Google
306
241
  property :trace_id, as: 'traceId'
307
242
  collection :line, as: 'line', class: Google::Apis::LoggingV2::LogLine, decorator: Google::Apis::LoggingV2::LogLine::Representation
308
243
 
309
- property :task_queue_name, as: 'taskQueueName'
310
244
  property :referrer, as: 'referrer'
245
+ property :task_queue_name, as: 'taskQueueName'
311
246
  property :request_id, as: 'requestId'
312
247
  property :nickname, as: 'nickname'
313
248
  property :pending_time, as: 'pendingTime'
@@ -327,9 +262,6 @@ module Google
327
262
  property :method_prop, as: 'method'
328
263
  property :cost, as: 'cost'
329
264
  property :instance_id, as: 'instanceId'
330
- property :mega_cycles, :numeric_string => true, as: 'megaCycles'
331
- property :first, as: 'first'
332
- property :version_id, as: 'versionId'
333
265
  end
334
266
  end
335
267
 
@@ -345,8 +277,8 @@ module Google
345
277
  class SourceReference
346
278
  # @private
347
279
  class Representation < Google::Apis::Core::JsonRepresentation
348
- property :revision_id, as: 'revisionId'
349
280
  property :repository, as: 'repository'
281
+ property :revision_id, as: 'revisionId'
350
282
  end
351
283
  end
352
284
 
@@ -359,10 +291,10 @@ module Google
359
291
  class LogMetric
360
292
  # @private
361
293
  class Representation < Google::Apis::Core::JsonRepresentation
362
- property :name, as: 'name'
363
- property :description, as: 'description'
364
294
  property :version, as: 'version'
365
295
  property :filter, as: 'filter'
296
+ property :name, as: 'name'
297
+ property :description, as: 'description'
366
298
  end
367
299
  end
368
300
 
@@ -384,6 +316,20 @@ module Google
384
316
  end
385
317
  end
386
318
 
319
+ class LogSink
320
+ # @private
321
+ class Representation < Google::Apis::Core::JsonRepresentation
322
+ property :name, as: 'name'
323
+ property :include_children, as: 'includeChildren'
324
+ property :destination, as: 'destination'
325
+ property :filter, as: 'filter'
326
+ property :end_time, as: 'endTime'
327
+ property :writer_identity, as: 'writerIdentity'
328
+ property :start_time, as: 'startTime'
329
+ property :output_version_format, as: 'outputVersionFormat'
330
+ end
331
+ end
332
+
387
333
  class WriteLogEntriesRequest
388
334
  # @private
389
335
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -397,25 +343,79 @@ module Google
397
343
  end
398
344
  end
399
345
 
400
- class LogSink
346
+ class ListLogsResponse
347
+ # @private
348
+ class Representation < Google::Apis::Core::JsonRepresentation
349
+ collection :log_names, as: 'logNames'
350
+ property :next_page_token, as: 'nextPageToken'
351
+ end
352
+ end
353
+
354
+ class HttpRequest
355
+ # @private
356
+ class Representation < Google::Apis::Core::JsonRepresentation
357
+ property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
358
+ property :status, as: 'status'
359
+ property :referer, as: 'referer'
360
+ property :user_agent, as: 'userAgent'
361
+ property :latency, as: 'latency'
362
+ property :cache_fill_bytes, :numeric_string => true, as: 'cacheFillBytes'
363
+ property :request_method, as: 'requestMethod'
364
+ property :response_size, :numeric_string => true, as: 'responseSize'
365
+ property :request_size, :numeric_string => true, as: 'requestSize'
366
+ property :request_url, as: 'requestUrl'
367
+ property :server_ip, as: 'serverIp'
368
+ property :remote_ip, as: 'remoteIp'
369
+ property :cache_lookup, as: 'cacheLookup'
370
+ property :cache_hit, as: 'cacheHit'
371
+ end
372
+ end
373
+
374
+ class ListSinksResponse
375
+ # @private
376
+ class Representation < Google::Apis::Core::JsonRepresentation
377
+ property :next_page_token, as: 'nextPageToken'
378
+ collection :sinks, as: 'sinks', class: Google::Apis::LoggingV2::LogSink, decorator: Google::Apis::LoggingV2::LogSink::Representation
379
+
380
+ end
381
+ end
382
+
383
+ class LabelDescriptor
384
+ # @private
385
+ class Representation < Google::Apis::Core::JsonRepresentation
386
+ property :key, as: 'key'
387
+ property :description, as: 'description'
388
+ property :value_type, as: 'valueType'
389
+ end
390
+ end
391
+
392
+ class MonitoredResourceDescriptor
401
393
  # @private
402
394
  class Representation < Google::Apis::Core::JsonRepresentation
403
- property :end_time, as: 'endTime'
404
- property :writer_identity, as: 'writerIdentity'
405
- property :start_time, as: 'startTime'
406
- property :output_version_format, as: 'outputVersionFormat'
407
395
  property :name, as: 'name'
408
- property :include_children, as: 'includeChildren'
409
- property :destination, as: 'destination'
410
- property :filter, as: 'filter'
396
+ property :display_name, as: 'displayName'
397
+ property :description, as: 'description'
398
+ property :type, as: 'type'
399
+ collection :labels, as: 'labels', class: Google::Apis::LoggingV2::LabelDescriptor, decorator: Google::Apis::LoggingV2::LabelDescriptor::Representation
400
+
411
401
  end
412
402
  end
413
403
 
414
- class ListLogsResponse
404
+ class LogEntrySourceLocation
405
+ # @private
406
+ class Representation < Google::Apis::Core::JsonRepresentation
407
+ property :file, as: 'file'
408
+ property :function, as: 'function'
409
+ property :line, :numeric_string => true, as: 'line'
410
+ end
411
+ end
412
+
413
+ class ListLogEntriesResponse
415
414
  # @private
416
415
  class Representation < Google::Apis::Core::JsonRepresentation
417
- collection :log_names, as: 'logNames'
418
416
  property :next_page_token, as: 'nextPageToken'
417
+ collection :entries, as: 'entries', class: Google::Apis::LoggingV2::LogEntry, decorator: Google::Apis::LoggingV2::LogEntry::Representation
418
+
419
419
  end
420
420
  end
421
421
  end
@@ -47,45 +47,6 @@ module Google
47
47
  @batch_path = 'batch'
48
48
  end
49
49
 
50
- # Deletes all the log entries in a log. The log reappears if it receives new
51
- # entries. Log entries written shortly before the delete operation might not be
52
- # deleted.
53
- # @param [String] log_name
54
- # Required. The resource name of the log to delete:
55
- # "projects/[PROJECT_ID]/logs/[LOG_ID]"
56
- # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
57
- # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
58
- # "folders/[FOLDER_ID]/logs/[LOG_ID]"
59
- # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
60
- # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
61
- # 2Factivity". For more information about log names, see LogEntry.
62
- # @param [String] fields
63
- # Selector specifying which fields to include in a partial response.
64
- # @param [String] quota_user
65
- # Available to use for quota purposes for server-side applications. Can be any
66
- # arbitrary string assigned to a user, but should not exceed 40 characters.
67
- # @param [Google::Apis::RequestOptions] options
68
- # Request-specific options
69
- #
70
- # @yield [result, err] Result & error if block supplied
71
- # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
72
- # @yieldparam err [StandardError] error object if request failed
73
- #
74
- # @return [Google::Apis::LoggingV2::Empty]
75
- #
76
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
77
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
- # @raise [Google::Apis::AuthorizationError] Authorization is required
79
- def delete_billing_account_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
80
- command = make_simple_command(:delete, 'v2/{+logName}', options)
81
- command.response_representation = Google::Apis::LoggingV2::Empty::Representation
82
- command.response_class = Google::Apis::LoggingV2::Empty
83
- command.params['logName'] = log_name unless log_name.nil?
84
- command.query['fields'] = fields unless fields.nil?
85
- command.query['quotaUser'] = quota_user unless quota_user.nil?
86
- execute_or_queue_command(command, &block)
87
- end
88
-
89
50
  # Lists the logs in projects, organizations, folders, or billing accounts. Only
90
51
  # logs that have entries are listed.
91
52
  # @param [String] parent
@@ -94,20 +55,20 @@ module Google
94
55
  # "organizations/[ORGANIZATION_ID]"
95
56
  # "billingAccounts/[BILLING_ACCOUNT_ID]"
96
57
  # "folders/[FOLDER_ID]"
97
- # @param [Fixnum] page_size
98
- # Optional. The maximum number of results to return from this request. Non-
99
- # positive values are ignored. The presence of nextPageToken in the response
100
- # indicates that more results might be available.
101
58
  # @param [String] page_token
102
59
  # Optional. If present, then retrieve the next batch of results from the
103
60
  # preceding call to this method. pageToken must be the value of nextPageToken
104
61
  # from the previous response. The values of other method parameters should be
105
62
  # identical to those in the previous call.
106
- # @param [String] fields
107
- # Selector specifying which fields to include in a partial response.
63
+ # @param [Fixnum] page_size
64
+ # Optional. The maximum number of results to return from this request. Non-
65
+ # positive values are ignored. The presence of nextPageToken in the response
66
+ # indicates that more results might be available.
108
67
  # @param [String] quota_user
109
68
  # Available to use for quota purposes for server-side applications. Can be any
110
69
  # arbitrary string assigned to a user, but should not exceed 40 characters.
70
+ # @param [String] fields
71
+ # Selector specifying which fields to include in a partial response.
111
72
  # @param [Google::Apis::RequestOptions] options
112
73
  # Request-specific options
113
74
  #
@@ -120,15 +81,54 @@ module Google
120
81
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
121
82
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
122
83
  # @raise [Google::Apis::AuthorizationError] Authorization is required
123
- def list_billing_account_logs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
84
+ def list_folder_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
124
85
  command = make_simple_command(:get, 'v2/{+parent}/logs', options)
125
86
  command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
126
87
  command.response_class = Google::Apis::LoggingV2::ListLogsResponse
127
88
  command.params['parent'] = parent unless parent.nil?
128
- command.query['pageSize'] = page_size unless page_size.nil?
129
89
  command.query['pageToken'] = page_token unless page_token.nil?
90
+ command.query['pageSize'] = page_size unless page_size.nil?
91
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
130
92
  command.query['fields'] = fields unless fields.nil?
93
+ execute_or_queue_command(command, &block)
94
+ end
95
+
96
+ # Deletes all the log entries in a log. The log reappears if it receives new
97
+ # entries. Log entries written shortly before the delete operation might not be
98
+ # deleted.
99
+ # @param [String] log_name
100
+ # Required. The resource name of the log to delete:
101
+ # "projects/[PROJECT_ID]/logs/[LOG_ID]"
102
+ # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
103
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
104
+ # "folders/[FOLDER_ID]/logs/[LOG_ID]"
105
+ # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
106
+ # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
107
+ # 2Factivity". For more information about log names, see LogEntry.
108
+ # @param [String] quota_user
109
+ # Available to use for quota purposes for server-side applications. Can be any
110
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
111
+ # @param [String] fields
112
+ # Selector specifying which fields to include in a partial response.
113
+ # @param [Google::Apis::RequestOptions] options
114
+ # Request-specific options
115
+ #
116
+ # @yield [result, err] Result & error if block supplied
117
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
118
+ # @yieldparam err [StandardError] error object if request failed
119
+ #
120
+ # @return [Google::Apis::LoggingV2::Empty]
121
+ #
122
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
123
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
124
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
125
+ def delete_folder_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
126
+ command = make_simple_command(:delete, 'v2/{+logName}', options)
127
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
128
+ command.response_class = Google::Apis::LoggingV2::Empty
129
+ command.params['logName'] = log_name unless log_name.nil?
131
130
  command.query['quotaUser'] = quota_user unless quota_user.nil?
131
+ command.query['fields'] = fields unless fields.nil?
132
132
  execute_or_queue_command(command, &block)
133
133
  end
134
134
 
@@ -142,11 +142,11 @@ module Google
142
142
  # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
143
143
  # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
144
144
  # Example: "projects/my-project-id/sinks/my-sink-id".
145
- # @param [String] fields
146
- # Selector specifying which fields to include in a partial response.
147
145
  # @param [String] quota_user
148
146
  # Available to use for quota purposes for server-side applications. Can be any
149
147
  # arbitrary string assigned to a user, but should not exceed 40 characters.
148
+ # @param [String] fields
149
+ # Selector specifying which fields to include in a partial response.
150
150
  # @param [Google::Apis::RequestOptions] options
151
151
  # Request-specific options
152
152
  #
@@ -159,13 +159,13 @@ module Google
159
159
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
160
160
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
161
161
  # @raise [Google::Apis::AuthorizationError] Authorization is required
162
- def delete_billing_account_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
162
+ def delete_folder_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
163
163
  command = make_simple_command(:delete, 'v2/{+sinkName}', options)
164
164
  command.response_representation = Google::Apis::LoggingV2::Empty::Representation
165
165
  command.response_class = Google::Apis::LoggingV2::Empty
166
166
  command.params['sinkName'] = sink_name unless sink_name.nil?
167
- command.query['fields'] = fields unless fields.nil?
168
167
  command.query['quotaUser'] = quota_user unless quota_user.nil?
168
+ command.query['fields'] = fields unless fields.nil?
169
169
  execute_or_queue_command(command, &block)
170
170
  end
171
171
 
@@ -176,20 +176,20 @@ module Google
176
176
  # "organizations/[ORGANIZATION_ID]"
177
177
  # "billingAccounts/[BILLING_ACCOUNT_ID]"
178
178
  # "folders/[FOLDER_ID]"
179
- # @param [Fixnum] page_size
180
- # Optional. The maximum number of results to return from this request. Non-
181
- # positive values are ignored. The presence of nextPageToken in the response
182
- # indicates that more results might be available.
183
179
  # @param [String] page_token
184
180
  # Optional. If present, then retrieve the next batch of results from the
185
181
  # preceding call to this method. pageToken must be the value of nextPageToken
186
182
  # from the previous response. The values of other method parameters should be
187
183
  # identical to those in the previous call.
188
- # @param [String] fields
189
- # Selector specifying which fields to include in a partial response.
184
+ # @param [Fixnum] page_size
185
+ # Optional. The maximum number of results to return from this request. Non-
186
+ # positive values are ignored. The presence of nextPageToken in the response
187
+ # indicates that more results might be available.
190
188
  # @param [String] quota_user
191
189
  # Available to use for quota purposes for server-side applications. Can be any
192
190
  # 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
193
  # @param [Google::Apis::RequestOptions] options
194
194
  # Request-specific options
195
195
  #
@@ -202,15 +202,15 @@ module Google
202
202
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
203
203
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
204
204
  # @raise [Google::Apis::AuthorizationError] Authorization is required
205
- def list_billing_account_sinks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
205
+ def list_folder_sinks(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
206
206
  command = make_simple_command(:get, 'v2/{+parent}/sinks', options)
207
207
  command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation
208
208
  command.response_class = Google::Apis::LoggingV2::ListSinksResponse
209
209
  command.params['parent'] = parent unless parent.nil?
210
- command.query['pageSize'] = page_size unless page_size.nil?
211
210
  command.query['pageToken'] = page_token unless page_token.nil?
212
- command.query['fields'] = fields unless fields.nil?
211
+ command.query['pageSize'] = page_size unless page_size.nil?
213
212
  command.query['quotaUser'] = quota_user unless quota_user.nil?
213
+ command.query['fields'] = fields unless fields.nil?
214
214
  execute_or_queue_command(command, &block)
215
215
  end
216
216
 
@@ -222,11 +222,11 @@ module Google
222
222
  # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
223
223
  # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
224
224
  # Example: "projects/my-project-id/sinks/my-sink-id".
225
- # @param [String] fields
226
- # Selector specifying which fields to include in a partial response.
227
225
  # @param [String] quota_user
228
226
  # Available to use for quota purposes for server-side applications. Can be any
229
227
  # 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
230
  # @param [Google::Apis::RequestOptions] options
231
231
  # Request-specific options
232
232
  #
@@ -239,13 +239,13 @@ module Google
239
239
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
240
240
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
241
241
  # @raise [Google::Apis::AuthorizationError] Authorization is required
242
- def get_billing_account_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
242
+ def get_folder_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
243
243
  command = make_simple_command(:get, 'v2/{+sinkName}', options)
244
244
  command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
245
245
  command.response_class = Google::Apis::LoggingV2::LogSink
246
246
  command.params['sinkName'] = sink_name unless sink_name.nil?
247
- command.query['fields'] = fields unless fields.nil?
248
247
  command.query['quotaUser'] = quota_user unless quota_user.nil?
248
+ command.query['fields'] = fields unless fields.nil?
249
249
  execute_or_queue_command(command, &block)
250
250
  end
251
251
 
@@ -273,11 +273,11 @@ module Google
273
273
  # If the old value is false and the new value is true, then writer_identity is
274
274
  # changed to a unique service account.
275
275
  # It is an error if the old value is true and the new value is false.
276
- # @param [String] fields
277
- # Selector specifying which fields to include in a partial response.
278
276
  # @param [String] quota_user
279
277
  # Available to use for quota purposes for server-side applications. Can be any
280
278
  # 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
281
  # @param [Google::Apis::RequestOptions] options
282
282
  # Request-specific options
283
283
  #
@@ -290,7 +290,7 @@ module Google
290
290
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
291
291
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
292
292
  # @raise [Google::Apis::AuthorizationError] Authorization is required
293
- def update_billing_account_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
293
+ def update_folder_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
294
294
  command = make_simple_command(:put, 'v2/{+sinkName}', options)
295
295
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
296
296
  command.request_object = log_sink_object
@@ -298,8 +298,8 @@ module Google
298
298
  command.response_class = Google::Apis::LoggingV2::LogSink
299
299
  command.params['sinkName'] = sink_name unless sink_name.nil?
300
300
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
301
- command.query['fields'] = fields unless fields.nil?
302
301
  command.query['quotaUser'] = quota_user unless quota_user.nil?
302
+ command.query['fields'] = fields unless fields.nil?
303
303
  execute_or_queue_command(command, &block)
304
304
  end
305
305
 
@@ -326,11 +326,11 @@ module Google
326
326
  # owned by a non-project resource such as an organization, then the value of
327
327
  # writer_identity will be a unique service account used only for exports from
328
328
  # the new sink. For more information, see writer_identity in LogSink.
329
- # @param [String] fields
330
- # Selector specifying which fields to include in a partial response.
331
329
  # @param [String] quota_user
332
330
  # Available to use for quota purposes for server-side applications. Can be any
333
331
  # 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
334
  # @param [Google::Apis::RequestOptions] options
335
335
  # Request-specific options
336
336
  #
@@ -343,7 +343,7 @@ module Google
343
343
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
344
344
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
345
345
  # @raise [Google::Apis::AuthorizationError] Authorization is required
346
- def create_billing_account_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
346
+ def create_folder_sink(parent, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
347
347
  command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
348
348
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
349
349
  command.request_object = log_sink_object
@@ -351,8 +351,46 @@ module Google
351
351
  command.response_class = Google::Apis::LoggingV2::LogSink
352
352
  command.params['parent'] = parent unless parent.nil?
353
353
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
354
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
354
355
  command.query['fields'] = fields unless fields.nil?
356
+ execute_or_queue_command(command, &block)
357
+ end
358
+
359
+ # Lists the descriptors for monitored resource types used by Stackdriver Logging.
360
+ # @param [String] page_token
361
+ # Optional. If present, then retrieve the next batch of results from the
362
+ # preceding call to this method. pageToken must be the value of nextPageToken
363
+ # from the previous response. The values of other method parameters should be
364
+ # identical to those in the previous call.
365
+ # @param [Fixnum] page_size
366
+ # Optional. The maximum number of results to return from this request. Non-
367
+ # positive values are ignored. The presence of nextPageToken in the response
368
+ # indicates that more results might be available.
369
+ # @param [String] quota_user
370
+ # Available to use for quota purposes for server-side applications. Can be any
371
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
372
+ # @param [String] fields
373
+ # Selector specifying which fields to include in a partial response.
374
+ # @param [Google::Apis::RequestOptions] options
375
+ # Request-specific options
376
+ #
377
+ # @yield [result, err] Result & error if block supplied
378
+ # @yieldparam result [Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse] parsed result object
379
+ # @yieldparam err [StandardError] error object if request failed
380
+ #
381
+ # @return [Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse]
382
+ #
383
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
384
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
385
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
386
+ def list_monitored_resource_descriptors(page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
387
+ command = make_simple_command(:get, 'v2/monitoredResourceDescriptors', options)
388
+ command.response_representation = Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse::Representation
389
+ command.response_class = Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse
390
+ command.query['pageToken'] = page_token unless page_token.nil?
391
+ command.query['pageSize'] = page_size unless page_size.nil?
355
392
  command.query['quotaUser'] = quota_user unless quota_user.nil?
393
+ command.query['fields'] = fields unless fields.nil?
356
394
  execute_or_queue_command(command, &block)
357
395
  end
358
396
 
@@ -373,11 +411,11 @@ module Google
373
411
  # Optional. The maximum number of results to return from this request. Non-
374
412
  # positive values are ignored. The presence of nextPageToken in the response
375
413
  # indicates that more results might be available.
376
- # @param [String] fields
377
- # Selector specifying which fields to include in a partial response.
378
414
  # @param [String] quota_user
379
415
  # Available to use for quota purposes for server-side applications. Can be any
380
416
  # arbitrary string assigned to a user, but should not exceed 40 characters.
417
+ # @param [String] fields
418
+ # Selector specifying which fields to include in a partial response.
381
419
  # @param [Google::Apis::RequestOptions] options
382
420
  # Request-specific options
383
421
  #
@@ -390,15 +428,15 @@ module Google
390
428
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
391
429
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
392
430
  # @raise [Google::Apis::AuthorizationError] Authorization is required
393
- def list_folder_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
431
+ def list_organization_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
394
432
  command = make_simple_command(:get, 'v2/{+parent}/logs', options)
395
433
  command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
396
434
  command.response_class = Google::Apis::LoggingV2::ListLogsResponse
397
435
  command.params['parent'] = parent unless parent.nil?
398
436
  command.query['pageToken'] = page_token unless page_token.nil?
399
437
  command.query['pageSize'] = page_size unless page_size.nil?
400
- command.query['fields'] = fields unless fields.nil?
401
438
  command.query['quotaUser'] = quota_user unless quota_user.nil?
439
+ command.query['fields'] = fields unless fields.nil?
402
440
  execute_or_queue_command(command, &block)
403
441
  end
404
442
 
@@ -414,11 +452,11 @@ module Google
414
452
  # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
415
453
  # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
416
454
  # 2Factivity". For more information about log names, see LogEntry.
417
- # @param [String] fields
418
- # Selector specifying which fields to include in a partial response.
419
455
  # @param [String] quota_user
420
456
  # Available to use for quota purposes for server-side applications. Can be any
421
457
  # arbitrary string assigned to a user, but should not exceed 40 characters.
458
+ # @param [String] fields
459
+ # Selector specifying which fields to include in a partial response.
422
460
  # @param [Google::Apis::RequestOptions] options
423
461
  # Request-specific options
424
462
  #
@@ -431,13 +469,66 @@ module Google
431
469
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
432
470
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
433
471
  # @raise [Google::Apis::AuthorizationError] Authorization is required
434
- def delete_folder_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
472
+ def delete_organization_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
435
473
  command = make_simple_command(:delete, 'v2/{+logName}', options)
436
474
  command.response_representation = Google::Apis::LoggingV2::Empty::Representation
437
475
  command.response_class = Google::Apis::LoggingV2::Empty
438
476
  command.params['logName'] = log_name unless log_name.nil?
477
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
439
478
  command.query['fields'] = fields unless fields.nil?
479
+ execute_or_queue_command(command, &block)
480
+ end
481
+
482
+ # Creates a sink that exports specified log entries to a destination. The export
483
+ # of newly-ingested log entries begins immediately, unless the current time is
484
+ # outside the sink's start and end times or the sink's writer_identity is not
485
+ # permitted to write to the destination. A sink can export log entries only from
486
+ # the resource owning the sink.
487
+ # @param [String] parent
488
+ # Required. The resource in which to create the sink:
489
+ # "projects/[PROJECT_ID]"
490
+ # "organizations/[ORGANIZATION_ID]"
491
+ # "billingAccounts/[BILLING_ACCOUNT_ID]"
492
+ # "folders/[FOLDER_ID]"
493
+ # Examples: "projects/my-logging-project", "organizations/123456789".
494
+ # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
495
+ # @param [Boolean] unique_writer_identity
496
+ # Optional. Determines the kind of IAM identity returned as writer_identity in
497
+ # the new sink. If this value is omitted or set to false, and if the sink's
498
+ # parent is a project, then the value returned as writer_identity is the same
499
+ # group or service account used by Stackdriver Logging before the addition of
500
+ # writer identities to this API. The sink's destination must be in the same
501
+ # project as the sink itself.If this field is set to true, or if the sink is
502
+ # owned by a non-project resource such as an organization, then the value of
503
+ # writer_identity will be a unique service account used only for exports from
504
+ # the new sink. For more information, see writer_identity in LogSink.
505
+ # @param [String] quota_user
506
+ # Available to use for quota purposes for server-side applications. Can be any
507
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
508
+ # @param [String] fields
509
+ # Selector specifying which fields to include in a partial response.
510
+ # @param [Google::Apis::RequestOptions] options
511
+ # Request-specific options
512
+ #
513
+ # @yield [result, err] Result & error if block supplied
514
+ # @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
515
+ # @yieldparam err [StandardError] error object if request failed
516
+ #
517
+ # @return [Google::Apis::LoggingV2::LogSink]
518
+ #
519
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
520
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
521
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
522
+ def create_organization_sink(parent, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
523
+ command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
524
+ command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
525
+ command.request_object = log_sink_object
526
+ command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
527
+ command.response_class = Google::Apis::LoggingV2::LogSink
528
+ command.params['parent'] = parent unless parent.nil?
529
+ command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
440
530
  command.query['quotaUser'] = quota_user unless quota_user.nil?
531
+ command.query['fields'] = fields unless fields.nil?
441
532
  execute_or_queue_command(command, &block)
442
533
  end
443
534
 
@@ -451,11 +542,11 @@ module Google
451
542
  # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
452
543
  # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
453
544
  # Example: "projects/my-project-id/sinks/my-sink-id".
454
- # @param [String] fields
455
- # Selector specifying which fields to include in a partial response.
456
545
  # @param [String] quota_user
457
546
  # Available to use for quota purposes for server-side applications. Can be any
458
547
  # arbitrary string assigned to a user, but should not exceed 40 characters.
548
+ # @param [String] fields
549
+ # Selector specifying which fields to include in a partial response.
459
550
  # @param [Google::Apis::RequestOptions] options
460
551
  # Request-specific options
461
552
  #
@@ -468,13 +559,13 @@ module Google
468
559
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
469
560
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
470
561
  # @raise [Google::Apis::AuthorizationError] Authorization is required
471
- def delete_folder_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
562
+ def delete_organization_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
472
563
  command = make_simple_command(:delete, 'v2/{+sinkName}', options)
473
564
  command.response_representation = Google::Apis::LoggingV2::Empty::Representation
474
565
  command.response_class = Google::Apis::LoggingV2::Empty
475
566
  command.params['sinkName'] = sink_name unless sink_name.nil?
476
- command.query['fields'] = fields unless fields.nil?
477
567
  command.query['quotaUser'] = quota_user unless quota_user.nil?
568
+ command.query['fields'] = fields unless fields.nil?
478
569
  execute_or_queue_command(command, &block)
479
570
  end
480
571
 
@@ -485,20 +576,20 @@ module Google
485
576
  # "organizations/[ORGANIZATION_ID]"
486
577
  # "billingAccounts/[BILLING_ACCOUNT_ID]"
487
578
  # "folders/[FOLDER_ID]"
488
- # @param [Fixnum] page_size
489
- # Optional. The maximum number of results to return from this request. Non-
490
- # positive values are ignored. The presence of nextPageToken in the response
491
- # indicates that more results might be available.
492
579
  # @param [String] page_token
493
580
  # Optional. If present, then retrieve the next batch of results from the
494
581
  # preceding call to this method. pageToken must be the value of nextPageToken
495
582
  # from the previous response. The values of other method parameters should be
496
583
  # identical to those in the previous call.
497
- # @param [String] fields
498
- # Selector specifying which fields to include in a partial response.
584
+ # @param [Fixnum] page_size
585
+ # Optional. The maximum number of results to return from this request. Non-
586
+ # positive values are ignored. The presence of nextPageToken in the response
587
+ # indicates that more results might be available.
499
588
  # @param [String] quota_user
500
589
  # Available to use for quota purposes for server-side applications. Can be any
501
590
  # arbitrary string assigned to a user, but should not exceed 40 characters.
591
+ # @param [String] fields
592
+ # Selector specifying which fields to include in a partial response.
502
593
  # @param [Google::Apis::RequestOptions] options
503
594
  # Request-specific options
504
595
  #
@@ -511,15 +602,15 @@ module Google
511
602
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
512
603
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
513
604
  # @raise [Google::Apis::AuthorizationError] Authorization is required
514
- def list_folder_sinks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
605
+ def list_organization_sinks(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
515
606
  command = make_simple_command(:get, 'v2/{+parent}/sinks', options)
516
607
  command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation
517
608
  command.response_class = Google::Apis::LoggingV2::ListSinksResponse
518
609
  command.params['parent'] = parent unless parent.nil?
519
- command.query['pageSize'] = page_size unless page_size.nil?
520
610
  command.query['pageToken'] = page_token unless page_token.nil?
521
- command.query['fields'] = fields unless fields.nil?
611
+ command.query['pageSize'] = page_size unless page_size.nil?
522
612
  command.query['quotaUser'] = quota_user unless quota_user.nil?
613
+ command.query['fields'] = fields unless fields.nil?
523
614
  execute_or_queue_command(command, &block)
524
615
  end
525
616
 
@@ -531,11 +622,11 @@ module Google
531
622
  # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
532
623
  # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
533
624
  # Example: "projects/my-project-id/sinks/my-sink-id".
534
- # @param [String] fields
535
- # Selector specifying which fields to include in a partial response.
536
625
  # @param [String] quota_user
537
626
  # Available to use for quota purposes for server-side applications. Can be any
538
627
  # arbitrary string assigned to a user, but should not exceed 40 characters.
628
+ # @param [String] fields
629
+ # Selector specifying which fields to include in a partial response.
539
630
  # @param [Google::Apis::RequestOptions] options
540
631
  # Request-specific options
541
632
  #
@@ -548,13 +639,13 @@ module Google
548
639
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
549
640
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
550
641
  # @raise [Google::Apis::AuthorizationError] Authorization is required
551
- def get_folder_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
642
+ def get_organization_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
552
643
  command = make_simple_command(:get, 'v2/{+sinkName}', options)
553
644
  command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
554
645
  command.response_class = Google::Apis::LoggingV2::LogSink
555
646
  command.params['sinkName'] = sink_name unless sink_name.nil?
556
- command.query['fields'] = fields unless fields.nil?
557
647
  command.query['quotaUser'] = quota_user unless quota_user.nil?
648
+ command.query['fields'] = fields unless fields.nil?
558
649
  execute_or_queue_command(command, &block)
559
650
  end
560
651
 
@@ -582,11 +673,11 @@ module Google
582
673
  # If the old value is false and the new value is true, then writer_identity is
583
674
  # changed to a unique service account.
584
675
  # It is an error if the old value is true and the new value is false.
585
- # @param [String] fields
586
- # Selector specifying which fields to include in a partial response.
587
676
  # @param [String] quota_user
588
677
  # Available to use for quota purposes for server-side applications. Can be any
589
678
  # arbitrary string assigned to a user, but should not exceed 40 characters.
679
+ # @param [String] fields
680
+ # Selector specifying which fields to include in a partial response.
590
681
  # @param [Google::Apis::RequestOptions] options
591
682
  # Request-specific options
592
683
  #
@@ -599,7 +690,7 @@ module Google
599
690
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
600
691
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
601
692
  # @raise [Google::Apis::AuthorizationError] Authorization is required
602
- def update_folder_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
693
+ def update_organization_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
603
694
  command = make_simple_command(:put, 'v2/{+sinkName}', options)
604
695
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
605
696
  command.request_object = log_sink_object
@@ -607,65 +698,80 @@ module Google
607
698
  command.response_class = Google::Apis::LoggingV2::LogSink
608
699
  command.params['sinkName'] = sink_name unless sink_name.nil?
609
700
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
610
- command.query['fields'] = fields unless fields.nil?
611
701
  command.query['quotaUser'] = quota_user unless quota_user.nil?
702
+ command.query['fields'] = fields unless fields.nil?
612
703
  execute_or_queue_command(command, &block)
613
704
  end
614
705
 
615
- # Creates a sink that exports specified log entries to a destination. The export
616
- # of newly-ingested log entries begins immediately, unless the current time is
617
- # outside the sink's start and end times or the sink's writer_identity is not
618
- # permitted to write to the destination. A sink can export log entries only from
619
- # the resource owning the sink.
620
- # @param [String] parent
621
- # Required. The resource in which to create the sink:
622
- # "projects/[PROJECT_ID]"
623
- # "organizations/[ORGANIZATION_ID]"
624
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
625
- # "folders/[FOLDER_ID]"
626
- # Examples: "projects/my-logging-project", "organizations/123456789".
627
- # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
628
- # @param [Boolean] unique_writer_identity
629
- # Optional. Determines the kind of IAM identity returned as writer_identity in
630
- # the new sink. If this value is omitted or set to false, and if the sink's
631
- # parent is a project, then the value returned as writer_identity is the same
632
- # group or service account used by Stackdriver Logging before the addition of
633
- # writer identities to this API. The sink's destination must be in the same
634
- # project as the sink itself.If this field is set to true, or if the sink is
635
- # owned by a non-project resource such as an organization, then the value of
636
- # writer_identity will be a unique service account used only for exports from
637
- # the new sink. For more information, see writer_identity in LogSink.
706
+ # Writes log entries to Stackdriver Logging.
707
+ # @param [Google::Apis::LoggingV2::WriteLogEntriesRequest] write_log_entries_request_object
708
+ # @param [String] quota_user
709
+ # Available to use for quota purposes for server-side applications. Can be any
710
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
638
711
  # @param [String] fields
639
712
  # Selector specifying which fields to include in a partial response.
713
+ # @param [Google::Apis::RequestOptions] options
714
+ # Request-specific options
715
+ #
716
+ # @yield [result, err] Result & error if block supplied
717
+ # @yieldparam result [Google::Apis::LoggingV2::WriteLogEntriesResponse] parsed result object
718
+ # @yieldparam err [StandardError] error object if request failed
719
+ #
720
+ # @return [Google::Apis::LoggingV2::WriteLogEntriesResponse]
721
+ #
722
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
723
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
724
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
725
+ def write_entry_log_entries(write_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
726
+ command = make_simple_command(:post, 'v2/entries:write', options)
727
+ command.request_representation = Google::Apis::LoggingV2::WriteLogEntriesRequest::Representation
728
+ command.request_object = write_log_entries_request_object
729
+ command.response_representation = Google::Apis::LoggingV2::WriteLogEntriesResponse::Representation
730
+ command.response_class = Google::Apis::LoggingV2::WriteLogEntriesResponse
731
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
732
+ command.query['fields'] = fields unless fields.nil?
733
+ execute_or_queue_command(command, &block)
734
+ end
735
+
736
+ # Lists log entries. Use this method to retrieve log entries from Stackdriver
737
+ # Logging. For ways to export log entries, see Exporting Logs.
738
+ # @param [Google::Apis::LoggingV2::ListLogEntriesRequest] list_log_entries_request_object
640
739
  # @param [String] quota_user
641
740
  # Available to use for quota purposes for server-side applications. Can be any
642
741
  # arbitrary string assigned to a user, but should not exceed 40 characters.
742
+ # @param [String] fields
743
+ # Selector specifying which fields to include in a partial response.
643
744
  # @param [Google::Apis::RequestOptions] options
644
745
  # Request-specific options
645
746
  #
646
747
  # @yield [result, err] Result & error if block supplied
647
- # @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
748
+ # @yieldparam result [Google::Apis::LoggingV2::ListLogEntriesResponse] parsed result object
648
749
  # @yieldparam err [StandardError] error object if request failed
649
750
  #
650
- # @return [Google::Apis::LoggingV2::LogSink]
751
+ # @return [Google::Apis::LoggingV2::ListLogEntriesResponse]
651
752
  #
652
753
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
653
754
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
654
755
  # @raise [Google::Apis::AuthorizationError] Authorization is required
655
- def create_folder_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
656
- command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
657
- command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
658
- command.request_object = log_sink_object
659
- command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
660
- command.response_class = Google::Apis::LoggingV2::LogSink
661
- command.params['parent'] = parent unless parent.nil?
662
- command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
663
- command.query['fields'] = fields unless fields.nil?
756
+ def list_entry_log_entries(list_log_entries_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
757
+ command = make_simple_command(:post, 'v2/entries:list', options)
758
+ command.request_representation = Google::Apis::LoggingV2::ListLogEntriesRequest::Representation
759
+ command.request_object = list_log_entries_request_object
760
+ command.response_representation = Google::Apis::LoggingV2::ListLogEntriesResponse::Representation
761
+ command.response_class = Google::Apis::LoggingV2::ListLogEntriesResponse
664
762
  command.query['quotaUser'] = quota_user unless quota_user.nil?
763
+ command.query['fields'] = fields unless fields.nil?
665
764
  execute_or_queue_command(command, &block)
666
765
  end
667
766
 
668
- # Lists the descriptors for monitored resource types used by Stackdriver Logging.
767
+ # Lists the logs in projects, organizations, folders, or billing accounts. Only
768
+ # logs that have entries are listed.
769
+ # @param [String] parent
770
+ # Required. The resource name that owns the logs:
771
+ # "projects/[PROJECT_ID]"
772
+ # "organizations/[ORGANIZATION_ID]"
773
+ # "billingAccounts/[BILLING_ACCOUNT_ID]"
774
+ # "folders/[FOLDER_ID]"
669
775
  # @param [String] page_token
670
776
  # Optional. If present, then retrieve the next batch of results from the
671
777
  # preceding call to this method. pageToken must be the value of nextPageToken
@@ -675,31 +781,32 @@ module Google
675
781
  # Optional. The maximum number of results to return from this request. Non-
676
782
  # positive values are ignored. The presence of nextPageToken in the response
677
783
  # indicates that more results might be available.
678
- # @param [String] fields
679
- # Selector specifying which fields to include in a partial response.
680
784
  # @param [String] quota_user
681
785
  # Available to use for quota purposes for server-side applications. Can be any
682
786
  # arbitrary string assigned to a user, but should not exceed 40 characters.
787
+ # @param [String] fields
788
+ # Selector specifying which fields to include in a partial response.
683
789
  # @param [Google::Apis::RequestOptions] options
684
790
  # Request-specific options
685
791
  #
686
792
  # @yield [result, err] Result & error if block supplied
687
- # @yieldparam result [Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse] parsed result object
793
+ # @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
688
794
  # @yieldparam err [StandardError] error object if request failed
689
795
  #
690
- # @return [Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse]
796
+ # @return [Google::Apis::LoggingV2::ListLogsResponse]
691
797
  #
692
798
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
693
799
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
694
800
  # @raise [Google::Apis::AuthorizationError] Authorization is required
695
- def list_monitored_resource_descriptors(page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
696
- command = make_simple_command(:get, 'v2/monitoredResourceDescriptors', options)
697
- command.response_representation = Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse::Representation
698
- command.response_class = Google::Apis::LoggingV2::ListMonitoredResourceDescriptorsResponse
801
+ def list_project_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
802
+ command = make_simple_command(:get, 'v2/{+parent}/logs', options)
803
+ command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
804
+ command.response_class = Google::Apis::LoggingV2::ListLogsResponse
805
+ command.params['parent'] = parent unless parent.nil?
699
806
  command.query['pageToken'] = page_token unless page_token.nil?
700
807
  command.query['pageSize'] = page_size unless page_size.nil?
701
- command.query['fields'] = fields unless fields.nil?
702
808
  command.query['quotaUser'] = quota_user unless quota_user.nil?
809
+ command.query['fields'] = fields unless fields.nil?
703
810
  execute_or_queue_command(command, &block)
704
811
  end
705
812
 
@@ -715,11 +822,11 @@ module Google
715
822
  # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
716
823
  # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
717
824
  # 2Factivity". For more information about log names, see LogEntry.
718
- # @param [String] fields
719
- # Selector specifying which fields to include in a partial response.
720
825
  # @param [String] quota_user
721
826
  # Available to use for quota purposes for server-side applications. Can be any
722
827
  # arbitrary string assigned to a user, but should not exceed 40 characters.
828
+ # @param [String] fields
829
+ # Selector specifying which fields to include in a partial response.
723
830
  # @param [Google::Apis::RequestOptions] options
724
831
  # Request-specific options
725
832
  #
@@ -732,20 +839,19 @@ module Google
732
839
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
733
840
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
734
841
  # @raise [Google::Apis::AuthorizationError] Authorization is required
735
- def delete_organization_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
842
+ def delete_project_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
736
843
  command = make_simple_command(:delete, 'v2/{+logName}', options)
737
844
  command.response_representation = Google::Apis::LoggingV2::Empty::Representation
738
845
  command.response_class = Google::Apis::LoggingV2::Empty
739
846
  command.params['logName'] = log_name unless log_name.nil?
740
- command.query['fields'] = fields unless fields.nil?
741
847
  command.query['quotaUser'] = quota_user unless quota_user.nil?
848
+ command.query['fields'] = fields unless fields.nil?
742
849
  execute_or_queue_command(command, &block)
743
850
  end
744
851
 
745
- # Lists the logs in projects, organizations, folders, or billing accounts. Only
746
- # logs that have entries are listed.
852
+ # Lists sinks.
747
853
  # @param [String] parent
748
- # Required. The resource name that owns the logs:
854
+ # Required. The parent resource whose sinks are to be listed:
749
855
  # "projects/[PROJECT_ID]"
750
856
  # "organizations/[ORGANIZATION_ID]"
751
857
  # "billingAccounts/[BILLING_ACCOUNT_ID]"
@@ -759,32 +865,121 @@ module Google
759
865
  # Optional. The maximum number of results to return from this request. Non-
760
866
  # positive values are ignored. The presence of nextPageToken in the response
761
867
  # indicates that more results might be available.
762
- # @param [String] fields
763
- # Selector specifying which fields to include in a partial response.
764
868
  # @param [String] quota_user
765
869
  # Available to use for quota purposes for server-side applications. Can be any
766
870
  # arbitrary string assigned to a user, but should not exceed 40 characters.
871
+ # @param [String] fields
872
+ # Selector specifying which fields to include in a partial response.
767
873
  # @param [Google::Apis::RequestOptions] options
768
874
  # Request-specific options
769
875
  #
770
876
  # @yield [result, err] Result & error if block supplied
771
- # @yieldparam result [Google::Apis::LoggingV2::ListLogsResponse] parsed result object
877
+ # @yieldparam result [Google::Apis::LoggingV2::ListSinksResponse] parsed result object
772
878
  # @yieldparam err [StandardError] error object if request failed
773
879
  #
774
- # @return [Google::Apis::LoggingV2::ListLogsResponse]
880
+ # @return [Google::Apis::LoggingV2::ListSinksResponse]
775
881
  #
776
882
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
777
883
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
778
884
  # @raise [Google::Apis::AuthorizationError] Authorization is required
779
- def list_organization_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
780
- command = make_simple_command(:get, 'v2/{+parent}/logs', options)
781
- command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
782
- command.response_class = Google::Apis::LoggingV2::ListLogsResponse
885
+ def list_project_sinks(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
886
+ command = make_simple_command(:get, 'v2/{+parent}/sinks', options)
887
+ command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation
888
+ command.response_class = Google::Apis::LoggingV2::ListSinksResponse
783
889
  command.params['parent'] = parent unless parent.nil?
784
890
  command.query['pageToken'] = page_token unless page_token.nil?
785
891
  command.query['pageSize'] = page_size unless page_size.nil?
892
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
786
893
  command.query['fields'] = fields unless fields.nil?
894
+ execute_or_queue_command(command, &block)
895
+ end
896
+
897
+ # Gets a sink.
898
+ # @param [String] sink_name
899
+ # Required. The resource name of the sink:
900
+ # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
901
+ # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
902
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
903
+ # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
904
+ # Example: "projects/my-project-id/sinks/my-sink-id".
905
+ # @param [String] quota_user
906
+ # Available to use for quota purposes for server-side applications. Can be any
907
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
908
+ # @param [String] fields
909
+ # Selector specifying which fields to include in a partial response.
910
+ # @param [Google::Apis::RequestOptions] options
911
+ # Request-specific options
912
+ #
913
+ # @yield [result, err] Result & error if block supplied
914
+ # @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
915
+ # @yieldparam err [StandardError] error object if request failed
916
+ #
917
+ # @return [Google::Apis::LoggingV2::LogSink]
918
+ #
919
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
920
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
921
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
922
+ def get_project_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
923
+ command = make_simple_command(:get, 'v2/{+sinkName}', options)
924
+ command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
925
+ command.response_class = Google::Apis::LoggingV2::LogSink
926
+ command.params['sinkName'] = sink_name unless sink_name.nil?
927
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
928
+ command.query['fields'] = fields unless fields.nil?
929
+ execute_or_queue_command(command, &block)
930
+ end
931
+
932
+ # Updates a sink. If the named sink doesn't exist, then this method is identical
933
+ # to sinks.create. If the named sink does exist, then this method replaces the
934
+ # following fields in the existing sink with values from the new sink:
935
+ # destination, filter, output_version_format, start_time, and end_time. The
936
+ # updated filter might also have a new writer_identity; see the
937
+ # unique_writer_identity field.
938
+ # @param [String] sink_name
939
+ # Required. The full resource name of the sink to update, including the parent
940
+ # resource and the sink identifier:
941
+ # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
942
+ # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
943
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
944
+ # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
945
+ # Example: "projects/my-project-id/sinks/my-sink-id".
946
+ # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
947
+ # @param [Boolean] unique_writer_identity
948
+ # Optional. See sinks.create for a description of this field. When updating a
949
+ # sink, the effect of this field on the value of writer_identity in the updated
950
+ # sink depends on both the old and new values of this field:
951
+ # If the old and new values of this field are both false or both true, then
952
+ # there is no change to the sink's writer_identity.
953
+ # If the old value is false and the new value is true, then writer_identity is
954
+ # changed to a unique service account.
955
+ # It is an error if the old value is true and the new value is false.
956
+ # @param [String] quota_user
957
+ # Available to use for quota purposes for server-side applications. Can be any
958
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
959
+ # @param [String] fields
960
+ # Selector specifying which fields to include in a partial response.
961
+ # @param [Google::Apis::RequestOptions] options
962
+ # Request-specific options
963
+ #
964
+ # @yield [result, err] Result & error if block supplied
965
+ # @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
966
+ # @yieldparam err [StandardError] error object if request failed
967
+ #
968
+ # @return [Google::Apis::LoggingV2::LogSink]
969
+ #
970
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
971
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
972
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
973
+ def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
974
+ command = make_simple_command(:put, 'v2/{+sinkName}', options)
975
+ command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
976
+ command.request_object = log_sink_object
977
+ command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
978
+ command.response_class = Google::Apis::LoggingV2::LogSink
979
+ command.params['sinkName'] = sink_name unless sink_name.nil?
980
+ command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
787
981
  command.query['quotaUser'] = quota_user unless quota_user.nil?
982
+ command.query['fields'] = fields unless fields.nil?
788
983
  execute_or_queue_command(command, &block)
789
984
  end
790
985
 
@@ -811,11 +1006,11 @@ module Google
811
1006
  # owned by a non-project resource such as an organization, then the value of
812
1007
  # writer_identity will be a unique service account used only for exports from
813
1008
  # the new sink. For more information, see writer_identity in LogSink.
814
- # @param [String] fields
815
- # Selector specifying which fields to include in a partial response.
816
1009
  # @param [String] quota_user
817
1010
  # Available to use for quota purposes for server-side applications. Can be any
818
1011
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1012
+ # @param [String] fields
1013
+ # Selector specifying which fields to include in a partial response.
819
1014
  # @param [Google::Apis::RequestOptions] options
820
1015
  # Request-specific options
821
1016
  #
@@ -828,7 +1023,7 @@ module Google
828
1023
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
829
1024
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
830
1025
  # @raise [Google::Apis::AuthorizationError] Authorization is required
831
- def create_organization_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
1026
+ def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
832
1027
  command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
833
1028
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
834
1029
  command.request_object = log_sink_object
@@ -836,8 +1031,8 @@ module Google
836
1031
  command.response_class = Google::Apis::LoggingV2::LogSink
837
1032
  command.params['parent'] = parent unless parent.nil?
838
1033
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
839
- command.query['fields'] = fields unless fields.nil?
840
1034
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1035
+ command.query['fields'] = fields unless fields.nil?
841
1036
  execute_or_queue_command(command, &block)
842
1037
  end
843
1038
 
@@ -851,11 +1046,11 @@ module Google
851
1046
  # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
852
1047
  # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
853
1048
  # Example: "projects/my-project-id/sinks/my-sink-id".
854
- # @param [String] fields
855
- # Selector specifying which fields to include in a partial response.
856
1049
  # @param [String] quota_user
857
1050
  # Available to use for quota purposes for server-side applications. Can be any
858
1051
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1052
+ # @param [String] fields
1053
+ # Selector specifying which fields to include in a partial response.
859
1054
  # @param [Google::Apis::RequestOptions] options
860
1055
  # Request-specific options
861
1056
  #
@@ -868,208 +1063,189 @@ module Google
868
1063
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
869
1064
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
870
1065
  # @raise [Google::Apis::AuthorizationError] Authorization is required
871
- def delete_organization_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
1066
+ def delete_project_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
872
1067
  command = make_simple_command(:delete, 'v2/{+sinkName}', options)
873
1068
  command.response_representation = Google::Apis::LoggingV2::Empty::Representation
874
1069
  command.response_class = Google::Apis::LoggingV2::Empty
875
1070
  command.params['sinkName'] = sink_name unless sink_name.nil?
876
- command.query['fields'] = fields unless fields.nil?
877
1071
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1072
+ command.query['fields'] = fields unless fields.nil?
878
1073
  execute_or_queue_command(command, &block)
879
1074
  end
880
1075
 
881
- # Lists sinks.
882
- # @param [String] parent
883
- # Required. The parent resource whose sinks are to be listed:
884
- # "projects/[PROJECT_ID]"
885
- # "organizations/[ORGANIZATION_ID]"
886
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
887
- # "folders/[FOLDER_ID]"
888
- # @param [String] page_token
889
- # Optional. If present, then retrieve the next batch of results from the
890
- # preceding call to this method. pageToken must be the value of nextPageToken
891
- # from the previous response. The values of other method parameters should be
892
- # identical to those in the previous call.
893
- # @param [Fixnum] page_size
894
- # Optional. The maximum number of results to return from this request. Non-
895
- # positive values are ignored. The presence of nextPageToken in the response
896
- # indicates that more results might be available.
897
- # @param [String] fields
898
- # Selector specifying which fields to include in a partial response.
1076
+ # Deletes a logs-based metric.
1077
+ # @param [String] metric_name
1078
+ # The resource name of the metric to delete:
1079
+ # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
899
1080
  # @param [String] quota_user
900
1081
  # Available to use for quota purposes for server-side applications. Can be any
901
1082
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1083
+ # @param [String] fields
1084
+ # Selector specifying which fields to include in a partial response.
902
1085
  # @param [Google::Apis::RequestOptions] options
903
1086
  # Request-specific options
904
1087
  #
905
1088
  # @yield [result, err] Result & error if block supplied
906
- # @yieldparam result [Google::Apis::LoggingV2::ListSinksResponse] parsed result object
1089
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
907
1090
  # @yieldparam err [StandardError] error object if request failed
908
1091
  #
909
- # @return [Google::Apis::LoggingV2::ListSinksResponse]
1092
+ # @return [Google::Apis::LoggingV2::Empty]
910
1093
  #
911
1094
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
912
1095
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
913
1096
  # @raise [Google::Apis::AuthorizationError] Authorization is required
914
- def list_organization_sinks(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
915
- command = make_simple_command(:get, 'v2/{+parent}/sinks', options)
916
- command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation
917
- command.response_class = Google::Apis::LoggingV2::ListSinksResponse
918
- command.params['parent'] = parent unless parent.nil?
919
- command.query['pageToken'] = page_token unless page_token.nil?
920
- command.query['pageSize'] = page_size unless page_size.nil?
921
- command.query['fields'] = fields unless fields.nil?
1097
+ def delete_project_metric(metric_name, quota_user: nil, fields: nil, options: nil, &block)
1098
+ command = make_simple_command(:delete, 'v2/{+metricName}', options)
1099
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
1100
+ command.response_class = Google::Apis::LoggingV2::Empty
1101
+ command.params['metricName'] = metric_name unless metric_name.nil?
922
1102
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1103
+ command.query['fields'] = fields unless fields.nil?
923
1104
  execute_or_queue_command(command, &block)
924
1105
  end
925
1106
 
926
- # Gets a sink.
927
- # @param [String] sink_name
928
- # Required. The resource name of the sink:
929
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
930
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
931
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
932
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
933
- # Example: "projects/my-project-id/sinks/my-sink-id".
934
- # @param [String] fields
935
- # Selector specifying which fields to include in a partial response.
1107
+ # Lists logs-based metrics.
1108
+ # @param [String] parent
1109
+ # Required. The name of the project containing the metrics:
1110
+ # "projects/[PROJECT_ID]"
1111
+ # @param [String] page_token
1112
+ # Optional. If present, then retrieve the next batch of results from the
1113
+ # preceding call to this method. pageToken must be the value of nextPageToken
1114
+ # from the previous response. The values of other method parameters should be
1115
+ # identical to those in the previous call.
1116
+ # @param [Fixnum] page_size
1117
+ # Optional. The maximum number of results to return from this request. Non-
1118
+ # positive values are ignored. The presence of nextPageToken in the response
1119
+ # indicates that more results might be available.
936
1120
  # @param [String] quota_user
937
1121
  # Available to use for quota purposes for server-side applications. Can be any
938
1122
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1123
+ # @param [String] fields
1124
+ # Selector specifying which fields to include in a partial response.
939
1125
  # @param [Google::Apis::RequestOptions] options
940
1126
  # Request-specific options
941
1127
  #
942
1128
  # @yield [result, err] Result & error if block supplied
943
- # @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
1129
+ # @yieldparam result [Google::Apis::LoggingV2::ListLogMetricsResponse] parsed result object
944
1130
  # @yieldparam err [StandardError] error object if request failed
945
1131
  #
946
- # @return [Google::Apis::LoggingV2::LogSink]
1132
+ # @return [Google::Apis::LoggingV2::ListLogMetricsResponse]
947
1133
  #
948
1134
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
949
1135
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
950
1136
  # @raise [Google::Apis::AuthorizationError] Authorization is required
951
- def get_organization_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
952
- command = make_simple_command(:get, 'v2/{+sinkName}', options)
953
- command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
954
- command.response_class = Google::Apis::LoggingV2::LogSink
955
- command.params['sinkName'] = sink_name unless sink_name.nil?
956
- command.query['fields'] = fields unless fields.nil?
1137
+ def list_project_metrics(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
1138
+ command = make_simple_command(:get, 'v2/{+parent}/metrics', options)
1139
+ command.response_representation = Google::Apis::LoggingV2::ListLogMetricsResponse::Representation
1140
+ command.response_class = Google::Apis::LoggingV2::ListLogMetricsResponse
1141
+ command.params['parent'] = parent unless parent.nil?
1142
+ command.query['pageToken'] = page_token unless page_token.nil?
1143
+ command.query['pageSize'] = page_size unless page_size.nil?
957
1144
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1145
+ command.query['fields'] = fields unless fields.nil?
958
1146
  execute_or_queue_command(command, &block)
959
1147
  end
960
1148
 
961
- # Updates a sink. If the named sink doesn't exist, then this method is identical
962
- # to sinks.create. If the named sink does exist, then this method replaces the
963
- # following fields in the existing sink with values from the new sink:
964
- # destination, filter, output_version_format, start_time, and end_time. The
965
- # updated filter might also have a new writer_identity; see the
966
- # unique_writer_identity field.
967
- # @param [String] sink_name
968
- # Required. The full resource name of the sink to update, including the parent
969
- # resource and the sink identifier:
970
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
971
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
972
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
973
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
974
- # Example: "projects/my-project-id/sinks/my-sink-id".
975
- # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
976
- # @param [Boolean] unique_writer_identity
977
- # Optional. See sinks.create for a description of this field. When updating a
978
- # sink, the effect of this field on the value of writer_identity in the updated
979
- # sink depends on both the old and new values of this field:
980
- # If the old and new values of this field are both false or both true, then
981
- # there is no change to the sink's writer_identity.
982
- # If the old value is false and the new value is true, then writer_identity is
983
- # changed to a unique service account.
984
- # It is an error if the old value is true and the new value is false.
985
- # @param [String] fields
986
- # Selector specifying which fields to include in a partial response.
1149
+ # Gets a logs-based metric.
1150
+ # @param [String] metric_name
1151
+ # The resource name of the desired metric:
1152
+ # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
987
1153
  # @param [String] quota_user
988
1154
  # Available to use for quota purposes for server-side applications. Can be any
989
1155
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1156
+ # @param [String] fields
1157
+ # Selector specifying which fields to include in a partial response.
990
1158
  # @param [Google::Apis::RequestOptions] options
991
1159
  # Request-specific options
992
1160
  #
993
1161
  # @yield [result, err] Result & error if block supplied
994
- # @yieldparam result [Google::Apis::LoggingV2::LogSink] parsed result object
1162
+ # @yieldparam result [Google::Apis::LoggingV2::LogMetric] parsed result object
995
1163
  # @yieldparam err [StandardError] error object if request failed
996
1164
  #
997
- # @return [Google::Apis::LoggingV2::LogSink]
1165
+ # @return [Google::Apis::LoggingV2::LogMetric]
998
1166
  #
999
1167
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1000
1168
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1001
1169
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1002
- def update_organization_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
1003
- command = make_simple_command(:put, 'v2/{+sinkName}', options)
1004
- command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
1005
- command.request_object = log_sink_object
1006
- command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
1007
- command.response_class = Google::Apis::LoggingV2::LogSink
1008
- command.params['sinkName'] = sink_name unless sink_name.nil?
1009
- command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
1010
- command.query['fields'] = fields unless fields.nil?
1170
+ def get_project_metric(metric_name, quota_user: nil, fields: nil, options: nil, &block)
1171
+ command = make_simple_command(:get, 'v2/{+metricName}', options)
1172
+ command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation
1173
+ command.response_class = Google::Apis::LoggingV2::LogMetric
1174
+ command.params['metricName'] = metric_name unless metric_name.nil?
1011
1175
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1176
+ command.query['fields'] = fields unless fields.nil?
1012
1177
  execute_or_queue_command(command, &block)
1013
1178
  end
1014
1179
 
1015
- # Lists log entries. Use this method to retrieve log entries from Stackdriver
1016
- # Logging. For ways to export log entries, see Exporting Logs.
1017
- # @param [Google::Apis::LoggingV2::ListLogEntriesRequest] list_log_entries_request_object
1018
- # @param [String] fields
1019
- # Selector specifying which fields to include in a partial response.
1180
+ # Creates or updates a logs-based metric.
1181
+ # @param [String] metric_name
1182
+ # The resource name of the metric to update:
1183
+ # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
1184
+ # The updated metric must be provided in the request and it's name field must be
1185
+ # the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
1186
+ # new metric is created.
1187
+ # @param [Google::Apis::LoggingV2::LogMetric] log_metric_object
1020
1188
  # @param [String] quota_user
1021
1189
  # Available to use for quota purposes for server-side applications. Can be any
1022
1190
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1191
+ # @param [String] fields
1192
+ # Selector specifying which fields to include in a partial response.
1023
1193
  # @param [Google::Apis::RequestOptions] options
1024
1194
  # Request-specific options
1025
1195
  #
1026
1196
  # @yield [result, err] Result & error if block supplied
1027
- # @yieldparam result [Google::Apis::LoggingV2::ListLogEntriesResponse] parsed result object
1197
+ # @yieldparam result [Google::Apis::LoggingV2::LogMetric] parsed result object
1028
1198
  # @yieldparam err [StandardError] error object if request failed
1029
1199
  #
1030
- # @return [Google::Apis::LoggingV2::ListLogEntriesResponse]
1200
+ # @return [Google::Apis::LoggingV2::LogMetric]
1031
1201
  #
1032
1202
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1033
1203
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1034
1204
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1035
- def list_entry_log_entries(list_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1036
- command = make_simple_command(:post, 'v2/entries:list', options)
1037
- command.request_representation = Google::Apis::LoggingV2::ListLogEntriesRequest::Representation
1038
- command.request_object = list_log_entries_request_object
1039
- command.response_representation = Google::Apis::LoggingV2::ListLogEntriesResponse::Representation
1040
- command.response_class = Google::Apis::LoggingV2::ListLogEntriesResponse
1041
- command.query['fields'] = fields unless fields.nil?
1205
+ def update_project_metric(metric_name, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1206
+ command = make_simple_command(:put, 'v2/{+metricName}', options)
1207
+ command.request_representation = Google::Apis::LoggingV2::LogMetric::Representation
1208
+ command.request_object = log_metric_object
1209
+ command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation
1210
+ command.response_class = Google::Apis::LoggingV2::LogMetric
1211
+ command.params['metricName'] = metric_name unless metric_name.nil?
1042
1212
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1213
+ command.query['fields'] = fields unless fields.nil?
1043
1214
  execute_or_queue_command(command, &block)
1044
1215
  end
1045
1216
 
1046
- # Writes log entries to Stackdriver Logging.
1047
- # @param [Google::Apis::LoggingV2::WriteLogEntriesRequest] write_log_entries_request_object
1048
- # @param [String] fields
1049
- # Selector specifying which fields to include in a partial response.
1217
+ # Creates a logs-based metric.
1218
+ # @param [String] parent
1219
+ # The resource name of the project in which to create the metric:
1220
+ # "projects/[PROJECT_ID]"
1221
+ # The new metric must be provided in the request.
1222
+ # @param [Google::Apis::LoggingV2::LogMetric] log_metric_object
1050
1223
  # @param [String] quota_user
1051
1224
  # Available to use for quota purposes for server-side applications. Can be any
1052
1225
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1226
+ # @param [String] fields
1227
+ # Selector specifying which fields to include in a partial response.
1053
1228
  # @param [Google::Apis::RequestOptions] options
1054
1229
  # Request-specific options
1055
1230
  #
1056
1231
  # @yield [result, err] Result & error if block supplied
1057
- # @yieldparam result [Google::Apis::LoggingV2::WriteLogEntriesResponse] parsed result object
1232
+ # @yieldparam result [Google::Apis::LoggingV2::LogMetric] parsed result object
1058
1233
  # @yieldparam err [StandardError] error object if request failed
1059
1234
  #
1060
- # @return [Google::Apis::LoggingV2::WriteLogEntriesResponse]
1235
+ # @return [Google::Apis::LoggingV2::LogMetric]
1061
1236
  #
1062
1237
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1063
1238
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1064
1239
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1065
- def write_entry_log_entries(write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1066
- command = make_simple_command(:post, 'v2/entries:write', options)
1067
- command.request_representation = Google::Apis::LoggingV2::WriteLogEntriesRequest::Representation
1068
- command.request_object = write_log_entries_request_object
1069
- command.response_representation = Google::Apis::LoggingV2::WriteLogEntriesResponse::Representation
1070
- command.response_class = Google::Apis::LoggingV2::WriteLogEntriesResponse
1071
- command.query['fields'] = fields unless fields.nil?
1240
+ def create_project_metric(parent, log_metric_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1241
+ command = make_simple_command(:post, 'v2/{+parent}/metrics', options)
1242
+ command.request_representation = Google::Apis::LoggingV2::LogMetric::Representation
1243
+ command.request_object = log_metric_object
1244
+ command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation
1245
+ command.response_class = Google::Apis::LoggingV2::LogMetric
1246
+ command.params['parent'] = parent unless parent.nil?
1072
1247
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1248
+ command.query['fields'] = fields unless fields.nil?
1073
1249
  execute_or_queue_command(command, &block)
1074
1250
  end
1075
1251
 
@@ -1090,11 +1266,11 @@ module Google
1090
1266
  # Optional. The maximum number of results to return from this request. Non-
1091
1267
  # positive values are ignored. The presence of nextPageToken in the response
1092
1268
  # indicates that more results might be available.
1093
- # @param [String] fields
1094
- # Selector specifying which fields to include in a partial response.
1095
1269
  # @param [String] quota_user
1096
1270
  # Available to use for quota purposes for server-side applications. Can be any
1097
1271
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1272
+ # @param [String] fields
1273
+ # Selector specifying which fields to include in a partial response.
1098
1274
  # @param [Google::Apis::RequestOptions] options
1099
1275
  # Request-specific options
1100
1276
  #
@@ -1107,15 +1283,15 @@ module Google
1107
1283
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1108
1284
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1109
1285
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1110
- def list_project_logs(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
1286
+ def list_billing_account_logs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
1111
1287
  command = make_simple_command(:get, 'v2/{+parent}/logs', options)
1112
1288
  command.response_representation = Google::Apis::LoggingV2::ListLogsResponse::Representation
1113
1289
  command.response_class = Google::Apis::LoggingV2::ListLogsResponse
1114
1290
  command.params['parent'] = parent unless parent.nil?
1115
1291
  command.query['pageToken'] = page_token unless page_token.nil?
1116
1292
  command.query['pageSize'] = page_size unless page_size.nil?
1117
- command.query['fields'] = fields unless fields.nil?
1118
1293
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1294
+ command.query['fields'] = fields unless fields.nil?
1119
1295
  execute_or_queue_command(command, &block)
1120
1296
  end
1121
1297
 
@@ -1131,11 +1307,11 @@ module Google
1131
1307
  # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
1132
1308
  # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
1133
1309
  # 2Factivity". For more information about log names, see LogEntry.
1134
- # @param [String] fields
1135
- # Selector specifying which fields to include in a partial response.
1136
1310
  # @param [String] quota_user
1137
1311
  # Available to use for quota purposes for server-side applications. Can be any
1138
1312
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1313
+ # @param [String] fields
1314
+ # Selector specifying which fields to include in a partial response.
1139
1315
  # @param [Google::Apis::RequestOptions] options
1140
1316
  # Request-specific options
1141
1317
  #
@@ -1148,13 +1324,13 @@ module Google
1148
1324
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1149
1325
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1150
1326
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1151
- def delete_project_log(log_name, fields: nil, quota_user: nil, options: nil, &block)
1327
+ def delete_billing_account_log(log_name, quota_user: nil, fields: nil, options: nil, &block)
1152
1328
  command = make_simple_command(:delete, 'v2/{+logName}', options)
1153
1329
  command.response_representation = Google::Apis::LoggingV2::Empty::Representation
1154
1330
  command.response_class = Google::Apis::LoggingV2::Empty
1155
1331
  command.params['logName'] = log_name unless log_name.nil?
1156
- command.query['fields'] = fields unless fields.nil?
1157
1332
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1333
+ command.query['fields'] = fields unless fields.nil?
1158
1334
  execute_or_queue_command(command, &block)
1159
1335
  end
1160
1336
 
@@ -1182,11 +1358,11 @@ module Google
1182
1358
  # If the old value is false and the new value is true, then writer_identity is
1183
1359
  # changed to a unique service account.
1184
1360
  # It is an error if the old value is true and the new value is false.
1185
- # @param [String] fields
1186
- # Selector specifying which fields to include in a partial response.
1187
1361
  # @param [String] quota_user
1188
1362
  # Available to use for quota purposes for server-side applications. Can be any
1189
1363
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1364
+ # @param [String] fields
1365
+ # Selector specifying which fields to include in a partial response.
1190
1366
  # @param [Google::Apis::RequestOptions] options
1191
1367
  # Request-specific options
1192
1368
  #
@@ -1199,7 +1375,7 @@ module Google
1199
1375
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1200
1376
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1201
1377
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1202
- def update_project_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
1378
+ def update_billing_account_sink(sink_name, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
1203
1379
  command = make_simple_command(:put, 'v2/{+sinkName}', options)
1204
1380
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
1205
1381
  command.request_object = log_sink_object
@@ -1207,8 +1383,8 @@ module Google
1207
1383
  command.response_class = Google::Apis::LoggingV2::LogSink
1208
1384
  command.params['sinkName'] = sink_name unless sink_name.nil?
1209
1385
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
1210
- command.query['fields'] = fields unless fields.nil?
1211
1386
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1387
+ command.query['fields'] = fields unless fields.nil?
1212
1388
  execute_or_queue_command(command, &block)
1213
1389
  end
1214
1390
 
@@ -1235,11 +1411,11 @@ module Google
1235
1411
  # owned by a non-project resource such as an organization, then the value of
1236
1412
  # writer_identity will be a unique service account used only for exports from
1237
1413
  # the new sink. For more information, see writer_identity in LogSink.
1238
- # @param [String] fields
1239
- # Selector specifying which fields to include in a partial response.
1240
1414
  # @param [String] quota_user
1241
1415
  # Available to use for quota purposes for server-side applications. Can be any
1242
1416
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1417
+ # @param [String] fields
1418
+ # Selector specifying which fields to include in a partial response.
1243
1419
  # @param [Google::Apis::RequestOptions] options
1244
1420
  # Request-specific options
1245
1421
  #
@@ -1252,7 +1428,7 @@ module Google
1252
1428
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1253
1429
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1254
1430
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1255
- def create_project_sink(parent, log_sink_object = nil, unique_writer_identity: nil, fields: nil, quota_user: nil, options: nil, &block)
1431
+ def create_billing_account_sink(parent, log_sink_object = nil, unique_writer_identity: nil, quota_user: nil, fields: nil, options: nil, &block)
1256
1432
  command = make_simple_command(:post, 'v2/{+parent}/sinks', options)
1257
1433
  command.request_representation = Google::Apis::LoggingV2::LogSink::Representation
1258
1434
  command.request_object = log_sink_object
@@ -1260,8 +1436,8 @@ module Google
1260
1436
  command.response_class = Google::Apis::LoggingV2::LogSink
1261
1437
  command.params['parent'] = parent unless parent.nil?
1262
1438
  command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
1263
- command.query['fields'] = fields unless fields.nil?
1264
1439
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1440
+ command.query['fields'] = fields unless fields.nil?
1265
1441
  execute_or_queue_command(command, &block)
1266
1442
  end
1267
1443
 
@@ -1275,11 +1451,11 @@ module Google
1275
1451
  # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
1276
1452
  # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
1277
1453
  # Example: "projects/my-project-id/sinks/my-sink-id".
1278
- # @param [String] fields
1279
- # Selector specifying which fields to include in a partial response.
1280
1454
  # @param [String] quota_user
1281
1455
  # Available to use for quota purposes for server-side applications. Can be any
1282
1456
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1457
+ # @param [String] fields
1458
+ # Selector specifying which fields to include in a partial response.
1283
1459
  # @param [Google::Apis::RequestOptions] options
1284
1460
  # Request-specific options
1285
1461
  #
@@ -1292,13 +1468,13 @@ module Google
1292
1468
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1293
1469
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1294
1470
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1295
- def delete_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
1471
+ def delete_billing_account_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
1296
1472
  command = make_simple_command(:delete, 'v2/{+sinkName}', options)
1297
1473
  command.response_representation = Google::Apis::LoggingV2::Empty::Representation
1298
1474
  command.response_class = Google::Apis::LoggingV2::Empty
1299
1475
  command.params['sinkName'] = sink_name unless sink_name.nil?
1300
- command.query['fields'] = fields unless fields.nil?
1301
1476
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1477
+ command.query['fields'] = fields unless fields.nil?
1302
1478
  execute_or_queue_command(command, &block)
1303
1479
  end
1304
1480
 
@@ -1318,11 +1494,11 @@ module Google
1318
1494
  # Optional. The maximum number of results to return from this request. Non-
1319
1495
  # positive values are ignored. The presence of nextPageToken in the response
1320
1496
  # indicates that more results might be available.
1321
- # @param [String] fields
1322
- # Selector specifying which fields to include in a partial response.
1323
1497
  # @param [String] quota_user
1324
1498
  # Available to use for quota purposes for server-side applications. Can be any
1325
1499
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1500
+ # @param [String] fields
1501
+ # Selector specifying which fields to include in a partial response.
1326
1502
  # @param [Google::Apis::RequestOptions] options
1327
1503
  # Request-specific options
1328
1504
  #
@@ -1335,15 +1511,15 @@ module Google
1335
1511
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1336
1512
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1337
1513
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1338
- def list_project_sinks(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
1514
+ def list_billing_account_sinks(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
1339
1515
  command = make_simple_command(:get, 'v2/{+parent}/sinks', options)
1340
1516
  command.response_representation = Google::Apis::LoggingV2::ListSinksResponse::Representation
1341
1517
  command.response_class = Google::Apis::LoggingV2::ListSinksResponse
1342
1518
  command.params['parent'] = parent unless parent.nil?
1343
1519
  command.query['pageToken'] = page_token unless page_token.nil?
1344
1520
  command.query['pageSize'] = page_size unless page_size.nil?
1345
- command.query['fields'] = fields unless fields.nil?
1346
1521
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1522
+ command.query['fields'] = fields unless fields.nil?
1347
1523
  execute_or_queue_command(command, &block)
1348
1524
  end
1349
1525
 
@@ -1355,11 +1531,11 @@ module Google
1355
1531
  # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
1356
1532
  # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
1357
1533
  # Example: "projects/my-project-id/sinks/my-sink-id".
1358
- # @param [String] fields
1359
- # Selector specifying which fields to include in a partial response.
1360
1534
  # @param [String] quota_user
1361
1535
  # Available to use for quota purposes for server-side applications. Can be any
1362
1536
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1537
+ # @param [String] fields
1538
+ # Selector specifying which fields to include in a partial response.
1363
1539
  # @param [Google::Apis::RequestOptions] options
1364
1540
  # Request-specific options
1365
1541
  #
@@ -1372,189 +1548,13 @@ module Google
1372
1548
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1373
1549
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1374
1550
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1375
- def get_project_sink(sink_name, fields: nil, quota_user: nil, options: nil, &block)
1551
+ def get_billing_account_sink(sink_name, quota_user: nil, fields: nil, options: nil, &block)
1376
1552
  command = make_simple_command(:get, 'v2/{+sinkName}', options)
1377
1553
  command.response_representation = Google::Apis::LoggingV2::LogSink::Representation
1378
1554
  command.response_class = Google::Apis::LoggingV2::LogSink
1379
1555
  command.params['sinkName'] = sink_name unless sink_name.nil?
1380
- command.query['fields'] = fields unless fields.nil?
1381
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1382
- execute_or_queue_command(command, &block)
1383
- end
1384
-
1385
- # Creates a logs-based metric.
1386
- # @param [String] parent
1387
- # The resource name of the project in which to create the metric:
1388
- # "projects/[PROJECT_ID]"
1389
- # The new metric must be provided in the request.
1390
- # @param [Google::Apis::LoggingV2::LogMetric] log_metric_object
1391
- # @param [String] fields
1392
- # Selector specifying which fields to include in a partial response.
1393
- # @param [String] quota_user
1394
- # Available to use for quota purposes for server-side applications. Can be any
1395
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1396
- # @param [Google::Apis::RequestOptions] options
1397
- # Request-specific options
1398
- #
1399
- # @yield [result, err] Result & error if block supplied
1400
- # @yieldparam result [Google::Apis::LoggingV2::LogMetric] parsed result object
1401
- # @yieldparam err [StandardError] error object if request failed
1402
- #
1403
- # @return [Google::Apis::LoggingV2::LogMetric]
1404
- #
1405
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1406
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1407
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1408
- def create_project_metric(parent, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1409
- command = make_simple_command(:post, 'v2/{+parent}/metrics', options)
1410
- command.request_representation = Google::Apis::LoggingV2::LogMetric::Representation
1411
- command.request_object = log_metric_object
1412
- command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation
1413
- command.response_class = Google::Apis::LoggingV2::LogMetric
1414
- command.params['parent'] = parent unless parent.nil?
1415
- command.query['fields'] = fields unless fields.nil?
1416
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1417
- execute_or_queue_command(command, &block)
1418
- end
1419
-
1420
- # Deletes a logs-based metric.
1421
- # @param [String] metric_name
1422
- # The resource name of the metric to delete:
1423
- # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
1424
- # @param [String] fields
1425
- # Selector specifying which fields to include in a partial response.
1426
- # @param [String] quota_user
1427
- # Available to use for quota purposes for server-side applications. Can be any
1428
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1429
- # @param [Google::Apis::RequestOptions] options
1430
- # Request-specific options
1431
- #
1432
- # @yield [result, err] Result & error if block supplied
1433
- # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
1434
- # @yieldparam err [StandardError] error object if request failed
1435
- #
1436
- # @return [Google::Apis::LoggingV2::Empty]
1437
- #
1438
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1439
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1440
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1441
- def delete_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
1442
- command = make_simple_command(:delete, 'v2/{+metricName}', options)
1443
- command.response_representation = Google::Apis::LoggingV2::Empty::Representation
1444
- command.response_class = Google::Apis::LoggingV2::Empty
1445
- command.params['metricName'] = metric_name unless metric_name.nil?
1446
- command.query['fields'] = fields unless fields.nil?
1447
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1448
- execute_or_queue_command(command, &block)
1449
- end
1450
-
1451
- # Lists logs-based metrics.
1452
- # @param [String] parent
1453
- # Required. The name of the project containing the metrics:
1454
- # "projects/[PROJECT_ID]"
1455
- # @param [String] page_token
1456
- # Optional. If present, then retrieve the next batch of results from the
1457
- # preceding call to this method. pageToken must be the value of nextPageToken
1458
- # from the previous response. The values of other method parameters should be
1459
- # identical to those in the previous call.
1460
- # @param [Fixnum] page_size
1461
- # Optional. The maximum number of results to return from this request. Non-
1462
- # positive values are ignored. The presence of nextPageToken in the response
1463
- # indicates that more results might be available.
1464
- # @param [String] fields
1465
- # Selector specifying which fields to include in a partial response.
1466
- # @param [String] quota_user
1467
- # Available to use for quota purposes for server-side applications. Can be any
1468
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1469
- # @param [Google::Apis::RequestOptions] options
1470
- # Request-specific options
1471
- #
1472
- # @yield [result, err] Result & error if block supplied
1473
- # @yieldparam result [Google::Apis::LoggingV2::ListLogMetricsResponse] parsed result object
1474
- # @yieldparam err [StandardError] error object if request failed
1475
- #
1476
- # @return [Google::Apis::LoggingV2::ListLogMetricsResponse]
1477
- #
1478
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1479
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1480
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1481
- def list_project_metrics(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
1482
- command = make_simple_command(:get, 'v2/{+parent}/metrics', options)
1483
- command.response_representation = Google::Apis::LoggingV2::ListLogMetricsResponse::Representation
1484
- command.response_class = Google::Apis::LoggingV2::ListLogMetricsResponse
1485
- command.params['parent'] = parent unless parent.nil?
1486
- command.query['pageToken'] = page_token unless page_token.nil?
1487
- command.query['pageSize'] = page_size unless page_size.nil?
1488
- command.query['fields'] = fields unless fields.nil?
1489
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1490
- execute_or_queue_command(command, &block)
1491
- end
1492
-
1493
- # Gets a logs-based metric.
1494
- # @param [String] metric_name
1495
- # The resource name of the desired metric:
1496
- # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
1497
- # @param [String] fields
1498
- # Selector specifying which fields to include in a partial response.
1499
- # @param [String] quota_user
1500
- # Available to use for quota purposes for server-side applications. Can be any
1501
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1502
- # @param [Google::Apis::RequestOptions] options
1503
- # Request-specific options
1504
- #
1505
- # @yield [result, err] Result & error if block supplied
1506
- # @yieldparam result [Google::Apis::LoggingV2::LogMetric] parsed result object
1507
- # @yieldparam err [StandardError] error object if request failed
1508
- #
1509
- # @return [Google::Apis::LoggingV2::LogMetric]
1510
- #
1511
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1512
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1513
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1514
- def get_project_metric(metric_name, fields: nil, quota_user: nil, options: nil, &block)
1515
- command = make_simple_command(:get, 'v2/{+metricName}', options)
1516
- command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation
1517
- command.response_class = Google::Apis::LoggingV2::LogMetric
1518
- command.params['metricName'] = metric_name unless metric_name.nil?
1519
- command.query['fields'] = fields unless fields.nil?
1520
1556
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1521
- execute_or_queue_command(command, &block)
1522
- end
1523
-
1524
- # Creates or updates a logs-based metric.
1525
- # @param [String] metric_name
1526
- # The resource name of the metric to update:
1527
- # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
1528
- # The updated metric must be provided in the request and it's name field must be
1529
- # the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
1530
- # new metric is created.
1531
- # @param [Google::Apis::LoggingV2::LogMetric] log_metric_object
1532
- # @param [String] fields
1533
- # Selector specifying which fields to include in a partial response.
1534
- # @param [String] quota_user
1535
- # Available to use for quota purposes for server-side applications. Can be any
1536
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1537
- # @param [Google::Apis::RequestOptions] options
1538
- # Request-specific options
1539
- #
1540
- # @yield [result, err] Result & error if block supplied
1541
- # @yieldparam result [Google::Apis::LoggingV2::LogMetric] parsed result object
1542
- # @yieldparam err [StandardError] error object if request failed
1543
- #
1544
- # @return [Google::Apis::LoggingV2::LogMetric]
1545
- #
1546
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1547
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1548
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1549
- def update_project_metric(metric_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1550
- command = make_simple_command(:put, 'v2/{+metricName}', options)
1551
- command.request_representation = Google::Apis::LoggingV2::LogMetric::Representation
1552
- command.request_object = log_metric_object
1553
- command.response_representation = Google::Apis::LoggingV2::LogMetric::Representation
1554
- command.response_class = Google::Apis::LoggingV2::LogMetric
1555
- command.params['metricName'] = metric_name unless metric_name.nil?
1556
1557
  command.query['fields'] = fields unless fields.nil?
1557
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1558
1558
  execute_or_queue_command(command, &block)
1559
1559
  end
1560
1560