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
@@ -1,366 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'date'
16
- require 'google/apis/core/base_service'
17
- require 'google/apis/core/json_representation'
18
- require 'google/apis/core/hashable'
19
- require 'google/apis/errors'
20
-
21
- module Google
22
- module Apis
23
- module LoggingV1beta3
24
-
25
- class ListLogsResponse
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
- end
28
-
29
- class Log
30
- class Representation < Google::Apis::Core::JsonRepresentation; end
31
- end
32
-
33
- class Empty
34
- class Representation < Google::Apis::Core::JsonRepresentation; end
35
- end
36
-
37
- class WriteLogEntriesRequest
38
- class Representation < Google::Apis::Core::JsonRepresentation; end
39
- end
40
-
41
- class LogEntry
42
- class Representation < Google::Apis::Core::JsonRepresentation; end
43
- end
44
-
45
- class LogEntryMetadata
46
- class Representation < Google::Apis::Core::JsonRepresentation; end
47
- end
48
-
49
- class HttpRequest
50
- class Representation < Google::Apis::Core::JsonRepresentation; end
51
- end
52
-
53
- class WriteLogEntriesResponse
54
- class Representation < Google::Apis::Core::JsonRepresentation; end
55
- end
56
-
57
- class ListLogServicesResponse
58
- class Representation < Google::Apis::Core::JsonRepresentation; end
59
- end
60
-
61
- class LogService
62
- class Representation < Google::Apis::Core::JsonRepresentation; end
63
- end
64
-
65
- class ListLogServiceIndexesResponse
66
- class Representation < Google::Apis::Core::JsonRepresentation; end
67
- end
68
-
69
- class ListLogSinksResponse
70
- class Representation < Google::Apis::Core::JsonRepresentation; end
71
- end
72
-
73
- class LogSink
74
- class Representation < Google::Apis::Core::JsonRepresentation; end
75
- end
76
-
77
- class LogError
78
- class Representation < Google::Apis::Core::JsonRepresentation; end
79
- end
80
-
81
- class Status
82
- class Representation < Google::Apis::Core::JsonRepresentation; end
83
- end
84
-
85
- class ListLogServiceSinksResponse
86
- class Representation < Google::Apis::Core::JsonRepresentation; end
87
- end
88
-
89
- class ListSinksResponse
90
- class Representation < Google::Apis::Core::JsonRepresentation; end
91
- end
92
-
93
- class ListLogMetricsResponse
94
- class Representation < Google::Apis::Core::JsonRepresentation; end
95
- end
96
-
97
- class LogMetric
98
- class Representation < Google::Apis::Core::JsonRepresentation; end
99
- end
100
-
101
- class RequestLog
102
- class Representation < Google::Apis::Core::JsonRepresentation; end
103
- end
104
-
105
- class LogLine
106
- class Representation < Google::Apis::Core::JsonRepresentation; end
107
- end
108
-
109
- class SourceLocation
110
- class Representation < Google::Apis::Core::JsonRepresentation; end
111
- end
112
-
113
- class SourceReference
114
- class Representation < Google::Apis::Core::JsonRepresentation; end
115
- end
116
-
117
- class ListLogsResponse
118
- # @private
119
- class Representation < Google::Apis::Core::JsonRepresentation
120
- collection :logs, as: 'logs', class: Google::Apis::LoggingV1beta3::Log, decorator: Google::Apis::LoggingV1beta3::Log::Representation
121
-
122
- property :next_page_token, as: 'nextPageToken'
123
- end
124
- end
125
-
126
- class Log
127
- # @private
128
- class Representation < Google::Apis::Core::JsonRepresentation
129
- property :name, as: 'name'
130
- property :display_name, as: 'displayName'
131
- property :payload_type, as: 'payloadType'
132
- end
133
- end
134
-
135
- class Empty
136
- # @private
137
- class Representation < Google::Apis::Core::JsonRepresentation
138
- end
139
- end
140
-
141
- class WriteLogEntriesRequest
142
- # @private
143
- class Representation < Google::Apis::Core::JsonRepresentation
144
- hash :common_labels, as: 'commonLabels'
145
- collection :entries, as: 'entries', class: Google::Apis::LoggingV1beta3::LogEntry, decorator: Google::Apis::LoggingV1beta3::LogEntry::Representation
146
-
147
- end
148
- end
149
-
150
- class LogEntry
151
- # @private
152
- class Representation < Google::Apis::Core::JsonRepresentation
153
- property :metadata, as: 'metadata', class: Google::Apis::LoggingV1beta3::LogEntryMetadata, decorator: Google::Apis::LoggingV1beta3::LogEntryMetadata::Representation
154
-
155
- hash :proto_payload, as: 'protoPayload'
156
- property :text_payload, as: 'textPayload'
157
- hash :struct_payload, as: 'structPayload'
158
- property :insert_id, as: 'insertId'
159
- property :log, as: 'log'
160
- property :http_request, as: 'httpRequest', class: Google::Apis::LoggingV1beta3::HttpRequest, decorator: Google::Apis::LoggingV1beta3::HttpRequest::Representation
161
-
162
- end
163
- end
164
-
165
- class LogEntryMetadata
166
- # @private
167
- class Representation < Google::Apis::Core::JsonRepresentation
168
- property :timestamp, as: 'timestamp'
169
- property :severity, as: 'severity'
170
- property :project_id, as: 'projectId'
171
- property :service_name, as: 'serviceName'
172
- property :region, as: 'region'
173
- property :zone, as: 'zone'
174
- property :user_id, as: 'userId'
175
- hash :labels, as: 'labels'
176
- end
177
- end
178
-
179
- class HttpRequest
180
- # @private
181
- class Representation < Google::Apis::Core::JsonRepresentation
182
- property :request_method, as: 'requestMethod'
183
- property :request_url, as: 'requestUrl'
184
- property :request_size, as: 'requestSize'
185
- property :status, as: 'status'
186
- property :response_size, as: 'responseSize'
187
- property :user_agent, as: 'userAgent'
188
- property :remote_ip, as: 'remoteIp'
189
- property :referer, as: 'referer'
190
- property :cache_hit, as: 'cacheHit'
191
- property :validated_with_origin_server, as: 'validatedWithOriginServer'
192
- end
193
- end
194
-
195
- class WriteLogEntriesResponse
196
- # @private
197
- class Representation < Google::Apis::Core::JsonRepresentation
198
- end
199
- end
200
-
201
- class ListLogServicesResponse
202
- # @private
203
- class Representation < Google::Apis::Core::JsonRepresentation
204
- collection :log_services, as: 'logServices', class: Google::Apis::LoggingV1beta3::LogService, decorator: Google::Apis::LoggingV1beta3::LogService::Representation
205
-
206
- property :next_page_token, as: 'nextPageToken'
207
- end
208
- end
209
-
210
- class LogService
211
- # @private
212
- class Representation < Google::Apis::Core::JsonRepresentation
213
- property :name, as: 'name'
214
- collection :index_keys, as: 'indexKeys'
215
- end
216
- end
217
-
218
- class ListLogServiceIndexesResponse
219
- # @private
220
- class Representation < Google::Apis::Core::JsonRepresentation
221
- collection :service_index_prefixes, as: 'serviceIndexPrefixes'
222
- property :next_page_token, as: 'nextPageToken'
223
- end
224
- end
225
-
226
- class ListLogSinksResponse
227
- # @private
228
- class Representation < Google::Apis::Core::JsonRepresentation
229
- collection :sinks, as: 'sinks', class: Google::Apis::LoggingV1beta3::LogSink, decorator: Google::Apis::LoggingV1beta3::LogSink::Representation
230
-
231
- end
232
- end
233
-
234
- class LogSink
235
- # @private
236
- class Representation < Google::Apis::Core::JsonRepresentation
237
- property :name, as: 'name'
238
- property :destination, as: 'destination'
239
- property :filter, as: 'filter'
240
- collection :errors, as: 'errors', class: Google::Apis::LoggingV1beta3::LogError, decorator: Google::Apis::LoggingV1beta3::LogError::Representation
241
-
242
- end
243
- end
244
-
245
- class LogError
246
- # @private
247
- class Representation < Google::Apis::Core::JsonRepresentation
248
- property :resource, as: 'resource'
249
- property :status, as: 'status', class: Google::Apis::LoggingV1beta3::Status, decorator: Google::Apis::LoggingV1beta3::Status::Representation
250
-
251
- property :time_nanos, as: 'timeNanos'
252
- end
253
- end
254
-
255
- class Status
256
- # @private
257
- class Representation < Google::Apis::Core::JsonRepresentation
258
- property :code, as: 'code'
259
- property :message, as: 'message'
260
- collection :details, as: 'details'
261
- end
262
- end
263
-
264
- class ListLogServiceSinksResponse
265
- # @private
266
- class Representation < Google::Apis::Core::JsonRepresentation
267
- collection :sinks, as: 'sinks', class: Google::Apis::LoggingV1beta3::LogSink, decorator: Google::Apis::LoggingV1beta3::LogSink::Representation
268
-
269
- end
270
- end
271
-
272
- class ListSinksResponse
273
- # @private
274
- class Representation < Google::Apis::Core::JsonRepresentation
275
- collection :sinks, as: 'sinks', class: Google::Apis::LoggingV1beta3::LogSink, decorator: Google::Apis::LoggingV1beta3::LogSink::Representation
276
-
277
- end
278
- end
279
-
280
- class ListLogMetricsResponse
281
- # @private
282
- class Representation < Google::Apis::Core::JsonRepresentation
283
- collection :metrics, as: 'metrics', class: Google::Apis::LoggingV1beta3::LogMetric, decorator: Google::Apis::LoggingV1beta3::LogMetric::Representation
284
-
285
- property :next_page_token, as: 'nextPageToken'
286
- end
287
- end
288
-
289
- class LogMetric
290
- # @private
291
- class Representation < Google::Apis::Core::JsonRepresentation
292
- property :name, as: 'name'
293
- property :description, as: 'description'
294
- property :filter, as: 'filter'
295
- end
296
- end
297
-
298
- class RequestLog
299
- # @private
300
- class Representation < Google::Apis::Core::JsonRepresentation
301
- property :app_id, as: 'appId'
302
- property :module_id, as: 'moduleId'
303
- property :version_id, as: 'versionId'
304
- property :request_id, as: 'requestId'
305
- property :ip, as: 'ip'
306
- property :start_time, as: 'startTime'
307
- property :end_time, as: 'endTime'
308
- property :latency, as: 'latency'
309
- property :mega_cycles, as: 'megaCycles'
310
- property :method_prop, as: 'method'
311
- property :resource, as: 'resource'
312
- property :http_version, as: 'httpVersion'
313
- property :status, as: 'status'
314
- property :response_size, as: 'responseSize'
315
- property :referrer, as: 'referrer'
316
- property :user_agent, as: 'userAgent'
317
- property :nickname, as: 'nickname'
318
- property :url_map_entry, as: 'urlMapEntry'
319
- property :host, as: 'host'
320
- property :cost, as: 'cost'
321
- property :task_queue_name, as: 'taskQueueName'
322
- property :task_name, as: 'taskName'
323
- property :was_loading_request, as: 'wasLoadingRequest'
324
- property :pending_time, as: 'pendingTime'
325
- property :instance_index, as: 'instanceIndex'
326
- property :finished, as: 'finished'
327
- property :instance_id, as: 'instanceId'
328
- collection :line, as: 'line', class: Google::Apis::LoggingV1beta3::LogLine, decorator: Google::Apis::LoggingV1beta3::LogLine::Representation
329
-
330
- property :app_engine_release, as: 'appEngineRelease'
331
- property :trace_id, as: 'traceId'
332
- collection :source_reference, as: 'sourceReference', class: Google::Apis::LoggingV1beta3::SourceReference, decorator: Google::Apis::LoggingV1beta3::SourceReference::Representation
333
-
334
- end
335
- end
336
-
337
- class LogLine
338
- # @private
339
- class Representation < Google::Apis::Core::JsonRepresentation
340
- property :time, as: 'time'
341
- property :severity, as: 'severity'
342
- property :log_message, as: 'logMessage'
343
- property :source_location, as: 'sourceLocation', class: Google::Apis::LoggingV1beta3::SourceLocation, decorator: Google::Apis::LoggingV1beta3::SourceLocation::Representation
344
-
345
- end
346
- end
347
-
348
- class SourceLocation
349
- # @private
350
- class Representation < Google::Apis::Core::JsonRepresentation
351
- property :file, as: 'file'
352
- property :line, as: 'line'
353
- property :function_name, as: 'functionName'
354
- end
355
- end
356
-
357
- class SourceReference
358
- # @private
359
- class Representation < Google::Apis::Core::JsonRepresentation
360
- property :repository, as: 'repository'
361
- property :revision_id, as: 'revisionId'
362
- end
363
- end
364
- end
365
- end
366
- end
@@ -1,1001 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'google/apis/core/base_service'
16
- require 'google/apis/core/json_representation'
17
- require 'google/apis/core/hashable'
18
- require 'google/apis/errors'
19
-
20
- module Google
21
- module Apis
22
- module LoggingV1beta3
23
- # Google Cloud Logging API
24
- #
25
- # The Google Cloud Logging API lets you write log entries and manage your logs,
26
- # log sinks and logs-based metrics.
27
- #
28
- # @example
29
- # require 'google/apis/logging_v1beta3'
30
- #
31
- # Logging = Google::Apis::LoggingV1beta3 # Alias the module
32
- # service = Logging::LoggingService.new
33
- #
34
- # @see https://cloud.google.com/logging/docs/
35
- class LoggingService < Google::Apis::Core::BaseService
36
- # @return [String]
37
- # API key. Your API key identifies your project and provides you with API access,
38
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
- attr_accessor :key
40
-
41
- # @return [String]
42
- # Available to use for quota purposes for server-side applications. Can be any
43
- # arbitrary string assigned to a user, but should not exceed 40 characters.
44
- attr_accessor :quota_user
45
-
46
- def initialize
47
- super('https://logging.googleapis.com/', '')
48
- end
49
-
50
- # Lists the logs in the project. Only logs that have entries are listed.
51
- # @param [String] projects_id
52
- # Part of `projectName`. The resource name of the project whose logs are
53
- # requested. If both `serviceName` and `serviceIndexPrefix` are empty, then all
54
- # logs with entries in this project are listed.
55
- # @param [String] service_name
56
- # If not empty, this field must be a log service name such as `"compute.
57
- # googleapis.com"`. Only logs associated with that that log service are listed.
58
- # @param [String] service_index_prefix
59
- # The purpose of this field is to restrict the listed logs to those with entries
60
- # of a certain kind. If `serviceName` is the name of a log service, then this
61
- # field may contain values for the log service's indexes. Only logs that have
62
- # entries whose indexes include the values are listed. The format for this field
63
- # is `"/val1/val2.../valN"`, where `val1` is a value for the first index, `val2`
64
- # for the second index, etc. An empty value (a single slash) for an index
65
- # matches all values, and you can omit values for later indexes entirely.
66
- # @param [Fixnum] page_size
67
- # The maximum number of results to return.
68
- # @param [String] page_token
69
- # An opaque token, returned as `nextPageToken` by a prior `ListLogs` operation.
70
- # If `pageToken` is supplied, then the other fields of this request are ignored,
71
- # and instead the previous `ListLogs` operation is continued.
72
- # @param [String] fields
73
- # Selector specifying which fields to include in a partial response.
74
- # @param [String] quota_user
75
- # Available to use for quota purposes for server-side applications. Can be any
76
- # arbitrary string assigned to a user, but should not exceed 40 characters.
77
- # @param [Google::Apis::RequestOptions] options
78
- # Request-specific options
79
- #
80
- # @yield [result, err] Result & error if block supplied
81
- # @yieldparam result [Google::Apis::LoggingV1beta3::ListLogsResponse] parsed result object
82
- # @yieldparam err [StandardError] error object if request failed
83
- #
84
- # @return [Google::Apis::LoggingV1beta3::ListLogsResponse]
85
- #
86
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
87
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
88
- # @raise [Google::Apis::AuthorizationError] Authorization is required
89
- def list_logs(projects_id, service_name: nil, service_index_prefix: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
90
- command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logs', options)
91
- command.response_representation = Google::Apis::LoggingV1beta3::ListLogsResponse::Representation
92
- command.response_class = Google::Apis::LoggingV1beta3::ListLogsResponse
93
- command.params['projectsId'] = projects_id unless projects_id.nil?
94
- command.query['serviceName'] = service_name unless service_name.nil?
95
- command.query['serviceIndexPrefix'] = service_index_prefix unless service_index_prefix.nil?
96
- command.query['pageSize'] = page_size unless page_size.nil?
97
- command.query['pageToken'] = page_token unless page_token.nil?
98
- command.query['fields'] = fields unless fields.nil?
99
- command.query['quotaUser'] = quota_user unless quota_user.nil?
100
- execute_or_queue_command(command, &block)
101
- end
102
-
103
- # Deletes a log and all its log entries. The log will reappear if it receives
104
- # new entries.
105
- # @param [String] projects_id
106
- # Part of `logName`. The resource name of the log to be deleted.
107
- # @param [String] logs_id
108
- # Part of `logName`. See documentation of `projectsId`.
109
- # @param [String] fields
110
- # Selector specifying which fields to include in a partial response.
111
- # @param [String] quota_user
112
- # Available to use for quota purposes for server-side applications. Can be any
113
- # arbitrary string assigned to a user, but should not exceed 40 characters.
114
- # @param [Google::Apis::RequestOptions] options
115
- # Request-specific options
116
- #
117
- # @yield [result, err] Result & error if block supplied
118
- # @yieldparam result [Google::Apis::LoggingV1beta3::Empty] parsed result object
119
- # @yieldparam err [StandardError] error object if request failed
120
- #
121
- # @return [Google::Apis::LoggingV1beta3::Empty]
122
- #
123
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
124
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
125
- # @raise [Google::Apis::AuthorizationError] Authorization is required
126
- def delete_log(projects_id, logs_id, fields: nil, quota_user: nil, options: nil, &block)
127
- command = make_simple_command(:delete, 'v1beta3/projects/{projectsId}/logs/{logsId}', options)
128
- command.response_representation = Google::Apis::LoggingV1beta3::Empty::Representation
129
- command.response_class = Google::Apis::LoggingV1beta3::Empty
130
- command.params['projectsId'] = projects_id unless projects_id.nil?
131
- command.params['logsId'] = logs_id unless logs_id.nil?
132
- command.query['fields'] = fields unless fields.nil?
133
- command.query['quotaUser'] = quota_user unless quota_user.nil?
134
- execute_or_queue_command(command, &block)
135
- end
136
-
137
- # Writes log entries to Cloud Logging. Each entry consists of a `LogEntry`
138
- # object. You must fill in all the fields of the object, including one of the
139
- # payload fields. You may supply a map, `commonLabels`, that holds default (key,
140
- # value) data for the `entries[].metadata.labels` map in each entry, saving you
141
- # the trouble of creating identical copies for each entry.
142
- # @param [String] projects_id
143
- # Part of `logName`. The resource name of the log that will receive the log
144
- # entries.
145
- # @param [String] logs_id
146
- # Part of `logName`. See documentation of `projectsId`.
147
- # @param [Google::Apis::LoggingV1beta3::WriteLogEntriesRequest] write_log_entries_request_object
148
- # @param [String] fields
149
- # Selector specifying which fields to include in a partial response.
150
- # @param [String] quota_user
151
- # Available to use for quota purposes for server-side applications. Can be any
152
- # arbitrary string assigned to a user, but should not exceed 40 characters.
153
- # @param [Google::Apis::RequestOptions] options
154
- # Request-specific options
155
- #
156
- # @yield [result, err] Result & error if block supplied
157
- # @yieldparam result [Google::Apis::LoggingV1beta3::WriteLogEntriesResponse] parsed result object
158
- # @yieldparam err [StandardError] error object if request failed
159
- #
160
- # @return [Google::Apis::LoggingV1beta3::WriteLogEntriesResponse]
161
- #
162
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
163
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
164
- # @raise [Google::Apis::AuthorizationError] Authorization is required
165
- def write_log_entries(projects_id, logs_id, write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
166
- command = make_simple_command(:post, 'v1beta3/projects/{projectsId}/logs/{logsId}/entries:write', options)
167
- command.request_representation = Google::Apis::LoggingV1beta3::WriteLogEntriesRequest::Representation
168
- command.request_object = write_log_entries_request_object
169
- command.response_representation = Google::Apis::LoggingV1beta3::WriteLogEntriesResponse::Representation
170
- command.response_class = Google::Apis::LoggingV1beta3::WriteLogEntriesResponse
171
- command.params['projectsId'] = projects_id unless projects_id.nil?
172
- command.params['logsId'] = logs_id unless logs_id.nil?
173
- command.query['fields'] = fields unless fields.nil?
174
- command.query['quotaUser'] = quota_user unless quota_user.nil?
175
- execute_or_queue_command(command, &block)
176
- end
177
-
178
- # Lists log sinks associated with a log.
179
- # @param [String] projects_id
180
- # Part of `logName`. The log whose sinks are wanted. For example, `"compute.
181
- # google.com/syslog"`.
182
- # @param [String] logs_id
183
- # Part of `logName`. See documentation of `projectsId`.
184
- # @param [String] fields
185
- # Selector specifying which fields to include in a partial response.
186
- # @param [String] quota_user
187
- # Available to use for quota purposes for server-side applications. Can be any
188
- # arbitrary string assigned to a user, but should not exceed 40 characters.
189
- # @param [Google::Apis::RequestOptions] options
190
- # Request-specific options
191
- #
192
- # @yield [result, err] Result & error if block supplied
193
- # @yieldparam result [Google::Apis::LoggingV1beta3::ListLogSinksResponse] parsed result object
194
- # @yieldparam err [StandardError] error object if request failed
195
- #
196
- # @return [Google::Apis::LoggingV1beta3::ListLogSinksResponse]
197
- #
198
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
199
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
200
- # @raise [Google::Apis::AuthorizationError] Authorization is required
201
- def list_log_sinks(projects_id, logs_id, fields: nil, quota_user: nil, options: nil, &block)
202
- command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks', options)
203
- command.response_representation = Google::Apis::LoggingV1beta3::ListLogSinksResponse::Representation
204
- command.response_class = Google::Apis::LoggingV1beta3::ListLogSinksResponse
205
- command.params['projectsId'] = projects_id unless projects_id.nil?
206
- command.params['logsId'] = logs_id unless logs_id.nil?
207
- command.query['fields'] = fields unless fields.nil?
208
- command.query['quotaUser'] = quota_user unless quota_user.nil?
209
- execute_or_queue_command(command, &block)
210
- end
211
-
212
- # Gets a log sink.
213
- # @param [String] projects_id
214
- # Part of `sinkName`. The resource name of the log sink to return.
215
- # @param [String] logs_id
216
- # Part of `sinkName`. See documentation of `projectsId`.
217
- # @param [String] sinks_id
218
- # Part of `sinkName`. See documentation of `projectsId`.
219
- # @param [String] fields
220
- # Selector specifying which fields to include in a partial response.
221
- # @param [String] quota_user
222
- # Available to use for quota purposes for server-side applications. Can be any
223
- # arbitrary string assigned to a user, but should not exceed 40 characters.
224
- # @param [Google::Apis::RequestOptions] options
225
- # Request-specific options
226
- #
227
- # @yield [result, err] Result & error if block supplied
228
- # @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object
229
- # @yieldparam err [StandardError] error object if request failed
230
- #
231
- # @return [Google::Apis::LoggingV1beta3::LogSink]
232
- #
233
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
234
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
235
- # @raise [Google::Apis::AuthorizationError] Authorization is required
236
- def get_log_sink(projects_id, logs_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block)
237
- command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}', options)
238
- command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
239
- command.response_class = Google::Apis::LoggingV1beta3::LogSink
240
- command.params['projectsId'] = projects_id unless projects_id.nil?
241
- command.params['logsId'] = logs_id unless logs_id.nil?
242
- command.params['sinksId'] = sinks_id unless sinks_id.nil?
243
- command.query['fields'] = fields unless fields.nil?
244
- command.query['quotaUser'] = quota_user unless quota_user.nil?
245
- execute_or_queue_command(command, &block)
246
- end
247
-
248
- # Creates a log sink. All log entries for a specified log are written to the
249
- # destination.
250
- # @param [String] projects_id
251
- # Part of `logName`. The resource name of the log to which to the sink is bound.
252
- # @param [String] logs_id
253
- # Part of `logName`. See documentation of `projectsId`.
254
- # @param [Google::Apis::LoggingV1beta3::LogSink] log_sink_object
255
- # @param [String] fields
256
- # Selector specifying which fields to include in a partial response.
257
- # @param [String] quota_user
258
- # Available to use for quota purposes for server-side applications. Can be any
259
- # arbitrary string assigned to a user, but should not exceed 40 characters.
260
- # @param [Google::Apis::RequestOptions] options
261
- # Request-specific options
262
- #
263
- # @yield [result, err] Result & error if block supplied
264
- # @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object
265
- # @yieldparam err [StandardError] error object if request failed
266
- #
267
- # @return [Google::Apis::LoggingV1beta3::LogSink]
268
- #
269
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
270
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
271
- # @raise [Google::Apis::AuthorizationError] Authorization is required
272
- def create_log_sink(projects_id, logs_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
273
- command = make_simple_command(:post, 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks', options)
274
- command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
275
- command.request_object = log_sink_object
276
- command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
277
- command.response_class = Google::Apis::LoggingV1beta3::LogSink
278
- command.params['projectsId'] = projects_id unless projects_id.nil?
279
- command.params['logsId'] = logs_id unless logs_id.nil?
280
- command.query['fields'] = fields unless fields.nil?
281
- command.query['quotaUser'] = quota_user unless quota_user.nil?
282
- execute_or_queue_command(command, &block)
283
- end
284
-
285
- # Updates a log sink. If the sink does not exist, it is created.
286
- # @param [String] projects_id
287
- # Part of `sinkName`. The resource name of the sink to update.
288
- # @param [String] logs_id
289
- # Part of `sinkName`. See documentation of `projectsId`.
290
- # @param [String] sinks_id
291
- # Part of `sinkName`. See documentation of `projectsId`.
292
- # @param [Google::Apis::LoggingV1beta3::LogSink] log_sink_object
293
- # @param [String] fields
294
- # Selector specifying which fields to include in a partial response.
295
- # @param [String] quota_user
296
- # Available to use for quota purposes for server-side applications. Can be any
297
- # arbitrary string assigned to a user, but should not exceed 40 characters.
298
- # @param [Google::Apis::RequestOptions] options
299
- # Request-specific options
300
- #
301
- # @yield [result, err] Result & error if block supplied
302
- # @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object
303
- # @yieldparam err [StandardError] error object if request failed
304
- #
305
- # @return [Google::Apis::LoggingV1beta3::LogSink]
306
- #
307
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
308
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
309
- # @raise [Google::Apis::AuthorizationError] Authorization is required
310
- def update_log_sink(projects_id, logs_id, sinks_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
311
- command = make_simple_command(:put, 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}', options)
312
- command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
313
- command.request_object = log_sink_object
314
- command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
315
- command.response_class = Google::Apis::LoggingV1beta3::LogSink
316
- command.params['projectsId'] = projects_id unless projects_id.nil?
317
- command.params['logsId'] = logs_id unless logs_id.nil?
318
- command.params['sinksId'] = sinks_id unless sinks_id.nil?
319
- command.query['fields'] = fields unless fields.nil?
320
- command.query['quotaUser'] = quota_user unless quota_user.nil?
321
- execute_or_queue_command(command, &block)
322
- end
323
-
324
- # Deletes a log sink. After deletion, no new log entries are written to the
325
- # destination.
326
- # @param [String] projects_id
327
- # Part of `sinkName`. The resource name of the log sink to delete.
328
- # @param [String] logs_id
329
- # Part of `sinkName`. See documentation of `projectsId`.
330
- # @param [String] sinks_id
331
- # Part of `sinkName`. See documentation of `projectsId`.
332
- # @param [String] fields
333
- # Selector specifying which fields to include in a partial response.
334
- # @param [String] quota_user
335
- # Available to use for quota purposes for server-side applications. Can be any
336
- # arbitrary string assigned to a user, but should not exceed 40 characters.
337
- # @param [Google::Apis::RequestOptions] options
338
- # Request-specific options
339
- #
340
- # @yield [result, err] Result & error if block supplied
341
- # @yieldparam result [Google::Apis::LoggingV1beta3::Empty] parsed result object
342
- # @yieldparam err [StandardError] error object if request failed
343
- #
344
- # @return [Google::Apis::LoggingV1beta3::Empty]
345
- #
346
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
347
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
348
- # @raise [Google::Apis::AuthorizationError] Authorization is required
349
- def delete_log_sink(projects_id, logs_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block)
350
- command = make_simple_command(:delete, 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}', options)
351
- command.response_representation = Google::Apis::LoggingV1beta3::Empty::Representation
352
- command.response_class = Google::Apis::LoggingV1beta3::Empty
353
- command.params['projectsId'] = projects_id unless projects_id.nil?
354
- command.params['logsId'] = logs_id unless logs_id.nil?
355
- command.params['sinksId'] = sinks_id unless sinks_id.nil?
356
- command.query['fields'] = fields unless fields.nil?
357
- command.query['quotaUser'] = quota_user unless quota_user.nil?
358
- execute_or_queue_command(command, &block)
359
- end
360
-
361
- # Lists the log services that have log entries in this project.
362
- # @param [String] projects_id
363
- # Part of `projectName`. The resource name of the project whose services are to
364
- # be listed.
365
- # @param [Fixnum] page_size
366
- # The maximum number of `LogService` objects to return in one operation.
367
- # @param [String] page_token
368
- # An opaque token, returned as `nextPageToken` by a prior `ListLogServices`
369
- # operation. If `pageToken` is supplied, then the other fields of this request
370
- # are ignored, and instead the previous `ListLogServices` operation is continued.
371
- # @param [String] fields
372
- # Selector specifying which fields to include in a partial response.
373
- # @param [String] quota_user
374
- # Available to use for quota purposes for server-side applications. Can be any
375
- # arbitrary string assigned to a user, but should not exceed 40 characters.
376
- # @param [Google::Apis::RequestOptions] options
377
- # Request-specific options
378
- #
379
- # @yield [result, err] Result & error if block supplied
380
- # @yieldparam result [Google::Apis::LoggingV1beta3::ListLogServicesResponse] parsed result object
381
- # @yieldparam err [StandardError] error object if request failed
382
- #
383
- # @return [Google::Apis::LoggingV1beta3::ListLogServicesResponse]
384
- #
385
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
386
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
387
- # @raise [Google::Apis::AuthorizationError] Authorization is required
388
- def list_log_services(projects_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
389
- command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logServices', options)
390
- command.response_representation = Google::Apis::LoggingV1beta3::ListLogServicesResponse::Representation
391
- command.response_class = Google::Apis::LoggingV1beta3::ListLogServicesResponse
392
- command.params['projectsId'] = projects_id unless projects_id.nil?
393
- command.query['pageSize'] = page_size unless page_size.nil?
394
- command.query['pageToken'] = page_token unless page_token.nil?
395
- command.query['fields'] = fields unless fields.nil?
396
- command.query['quotaUser'] = quota_user unless quota_user.nil?
397
- execute_or_queue_command(command, &block)
398
- end
399
-
400
- # Lists the current index values for a log service.
401
- # @param [String] projects_id
402
- # Part of `serviceName`. The resource name of a log service whose service
403
- # indexes are requested. Example: `"projects/my-project-id/logServices/appengine.
404
- # googleapis.com"`.
405
- # @param [String] log_services_id
406
- # Part of `serviceName`. See documentation of `projectsId`.
407
- # @param [String] index_prefix
408
- # Restricts the index values returned to be those with a specified prefix for
409
- # each index key. This field has the form `"/prefix1/prefix2/..."`, in order
410
- # corresponding to the `LogService indexKeys`. Non-empty prefixes must begin
411
- # with `/`. For example, App Engine's two keys are the module ID and the version
412
- # ID. Following is the effect of using various values for `indexPrefix`: + `"/
413
- # Mod/"` retrieves `/Mod/10` and `/Mod/11` but not `/ModA/10`. + `"/Mod`
414
- # retrieves `/Mod/10`, `/Mod/11` and `/ModA/10` but not `/XXX/33`. + `"/Mod/1"`
415
- # retrieves `/Mod/10` and `/Mod/11` but not `/ModA/10`. + `"/Mod/10/"` retrieves
416
- # `/Mod/10` only. + An empty prefix or `"/"` retrieves all values.
417
- # @param [Fixnum] depth
418
- # A non-negative integer that limits the number of levels of the index hierarchy
419
- # that are returned. If `depth` is 1 (default), only the first index key value
420
- # is returned. If `depth` is 2, both primary and secondary key values are
421
- # returned. If `depth` is 0, the depth is the number of slash-separators in the `
422
- # indexPrefix` field, not counting a slash appearing as the last character of
423
- # the prefix. If the `indexPrefix` field is empty, the default depth is 1. It is
424
- # an error for `depth` to be any positive value less than the number of
425
- # components in `indexPrefix`.
426
- # @param [Fixnum] page_size
427
- # The maximum number of log service index resources to return in one operation.
428
- # @param [String] page_token
429
- # An opaque token, returned as `nextPageToken` by a prior `ListLogServiceIndexes`
430
- # operation. If `pageToken` is supplied, then the other fields of this request
431
- # are ignored, and instead the previous `ListLogServiceIndexes` operation is
432
- # continued.
433
- # @param [String] fields
434
- # Selector specifying which fields to include in a partial response.
435
- # @param [String] quota_user
436
- # Available to use for quota purposes for server-side applications. Can be any
437
- # arbitrary string assigned to a user, but should not exceed 40 characters.
438
- # @param [Google::Apis::RequestOptions] options
439
- # Request-specific options
440
- #
441
- # @yield [result, err] Result & error if block supplied
442
- # @yieldparam result [Google::Apis::LoggingV1beta3::ListLogServiceIndexesResponse] parsed result object
443
- # @yieldparam err [StandardError] error object if request failed
444
- #
445
- # @return [Google::Apis::LoggingV1beta3::ListLogServiceIndexesResponse]
446
- #
447
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
448
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
449
- # @raise [Google::Apis::AuthorizationError] Authorization is required
450
- def list_log_service_indexes(projects_id, log_services_id, index_prefix: nil, depth: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
451
- command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/indexes', options)
452
- command.response_representation = Google::Apis::LoggingV1beta3::ListLogServiceIndexesResponse::Representation
453
- command.response_class = Google::Apis::LoggingV1beta3::ListLogServiceIndexesResponse
454
- command.params['projectsId'] = projects_id unless projects_id.nil?
455
- command.params['logServicesId'] = log_services_id unless log_services_id.nil?
456
- command.query['indexPrefix'] = index_prefix unless index_prefix.nil?
457
- command.query['depth'] = depth unless depth.nil?
458
- command.query['pageSize'] = page_size unless page_size.nil?
459
- command.query['pageToken'] = page_token unless page_token.nil?
460
- command.query['fields'] = fields unless fields.nil?
461
- command.query['quotaUser'] = quota_user unless quota_user.nil?
462
- execute_or_queue_command(command, &block)
463
- end
464
-
465
- # Lists log service sinks associated with a log service.
466
- # @param [String] projects_id
467
- # Part of `serviceName`. The log service whose sinks are wanted.
468
- # @param [String] log_services_id
469
- # Part of `serviceName`. See documentation of `projectsId`.
470
- # @param [String] fields
471
- # Selector specifying which fields to include in a partial response.
472
- # @param [String] quota_user
473
- # Available to use for quota purposes for server-side applications. Can be any
474
- # arbitrary string assigned to a user, but should not exceed 40 characters.
475
- # @param [Google::Apis::RequestOptions] options
476
- # Request-specific options
477
- #
478
- # @yield [result, err] Result & error if block supplied
479
- # @yieldparam result [Google::Apis::LoggingV1beta3::ListLogServiceSinksResponse] parsed result object
480
- # @yieldparam err [StandardError] error object if request failed
481
- #
482
- # @return [Google::Apis::LoggingV1beta3::ListLogServiceSinksResponse]
483
- #
484
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
485
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
486
- # @raise [Google::Apis::AuthorizationError] Authorization is required
487
- def list_log_service_sinks(projects_id, log_services_id, fields: nil, quota_user: nil, options: nil, &block)
488
- command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks', options)
489
- command.response_representation = Google::Apis::LoggingV1beta3::ListLogServiceSinksResponse::Representation
490
- command.response_class = Google::Apis::LoggingV1beta3::ListLogServiceSinksResponse
491
- command.params['projectsId'] = projects_id unless projects_id.nil?
492
- command.params['logServicesId'] = log_services_id unless log_services_id.nil?
493
- command.query['fields'] = fields unless fields.nil?
494
- command.query['quotaUser'] = quota_user unless quota_user.nil?
495
- execute_or_queue_command(command, &block)
496
- end
497
-
498
- # Gets a log service sink.
499
- # @param [String] projects_id
500
- # Part of `sinkName`. The resource name of the log service sink to return.
501
- # @param [String] log_services_id
502
- # Part of `sinkName`. See documentation of `projectsId`.
503
- # @param [String] sinks_id
504
- # Part of `sinkName`. See documentation of `projectsId`.
505
- # @param [String] fields
506
- # Selector specifying which fields to include in a partial response.
507
- # @param [String] quota_user
508
- # Available to use for quota purposes for server-side applications. Can be any
509
- # arbitrary string assigned to a user, but should not exceed 40 characters.
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::LoggingV1beta3::LogSink] parsed result object
515
- # @yieldparam err [StandardError] error object if request failed
516
- #
517
- # @return [Google::Apis::LoggingV1beta3::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 get_log_service_sink(projects_id, log_services_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block)
523
- command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}', options)
524
- command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
525
- command.response_class = Google::Apis::LoggingV1beta3::LogSink
526
- command.params['projectsId'] = projects_id unless projects_id.nil?
527
- command.params['logServicesId'] = log_services_id unless log_services_id.nil?
528
- command.params['sinksId'] = sinks_id unless sinks_id.nil?
529
- command.query['fields'] = fields unless fields.nil?
530
- command.query['quotaUser'] = quota_user unless quota_user.nil?
531
- execute_or_queue_command(command, &block)
532
- end
533
-
534
- # Creates a log service sink. All log entries from a specified log service are
535
- # written to the destination.
536
- # @param [String] projects_id
537
- # Part of `serviceName`. The resource name of the log service to which the sink
538
- # is bound.
539
- # @param [String] log_services_id
540
- # Part of `serviceName`. See documentation of `projectsId`.
541
- # @param [Google::Apis::LoggingV1beta3::LogSink] log_sink_object
542
- # @param [String] fields
543
- # Selector specifying which fields to include in a partial response.
544
- # @param [String] quota_user
545
- # Available to use for quota purposes for server-side applications. Can be any
546
- # arbitrary string assigned to a user, but should not exceed 40 characters.
547
- # @param [Google::Apis::RequestOptions] options
548
- # Request-specific options
549
- #
550
- # @yield [result, err] Result & error if block supplied
551
- # @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object
552
- # @yieldparam err [StandardError] error object if request failed
553
- #
554
- # @return [Google::Apis::LoggingV1beta3::LogSink]
555
- #
556
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
557
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
558
- # @raise [Google::Apis::AuthorizationError] Authorization is required
559
- def create_log_service_sink(projects_id, log_services_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
560
- command = make_simple_command(:post, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks', options)
561
- command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
562
- command.request_object = log_sink_object
563
- command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
564
- command.response_class = Google::Apis::LoggingV1beta3::LogSink
565
- command.params['projectsId'] = projects_id unless projects_id.nil?
566
- command.params['logServicesId'] = log_services_id unless log_services_id.nil?
567
- command.query['fields'] = fields unless fields.nil?
568
- command.query['quotaUser'] = quota_user unless quota_user.nil?
569
- execute_or_queue_command(command, &block)
570
- end
571
-
572
- # Updates a log service sink. If the sink does not exist, it is created.
573
- # @param [String] projects_id
574
- # Part of `sinkName`. The resource name of the log service sink to update.
575
- # @param [String] log_services_id
576
- # Part of `sinkName`. See documentation of `projectsId`.
577
- # @param [String] sinks_id
578
- # Part of `sinkName`. See documentation of `projectsId`.
579
- # @param [Google::Apis::LoggingV1beta3::LogSink] log_sink_object
580
- # @param [String] fields
581
- # Selector specifying which fields to include in a partial response.
582
- # @param [String] quota_user
583
- # Available to use for quota purposes for server-side applications. Can be any
584
- # arbitrary string assigned to a user, but should not exceed 40 characters.
585
- # @param [Google::Apis::RequestOptions] options
586
- # Request-specific options
587
- #
588
- # @yield [result, err] Result & error if block supplied
589
- # @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object
590
- # @yieldparam err [StandardError] error object if request failed
591
- #
592
- # @return [Google::Apis::LoggingV1beta3::LogSink]
593
- #
594
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
595
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
596
- # @raise [Google::Apis::AuthorizationError] Authorization is required
597
- def update_log_service_sink(projects_id, log_services_id, sinks_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
598
- command = make_simple_command(:put, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}', options)
599
- command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
600
- command.request_object = log_sink_object
601
- command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
602
- command.response_class = Google::Apis::LoggingV1beta3::LogSink
603
- command.params['projectsId'] = projects_id unless projects_id.nil?
604
- command.params['logServicesId'] = log_services_id unless log_services_id.nil?
605
- command.params['sinksId'] = sinks_id unless sinks_id.nil?
606
- command.query['fields'] = fields unless fields.nil?
607
- command.query['quotaUser'] = quota_user unless quota_user.nil?
608
- execute_or_queue_command(command, &block)
609
- end
610
-
611
- # Deletes a log service sink. After deletion, no new log entries are written to
612
- # the destination.
613
- # @param [String] projects_id
614
- # Part of `sinkName`. The resource name of the log service sink to delete.
615
- # @param [String] log_services_id
616
- # Part of `sinkName`. See documentation of `projectsId`.
617
- # @param [String] sinks_id
618
- # Part of `sinkName`. See documentation of `projectsId`.
619
- # @param [String] fields
620
- # Selector specifying which fields to include in a partial response.
621
- # @param [String] quota_user
622
- # Available to use for quota purposes for server-side applications. Can be any
623
- # arbitrary string assigned to a user, but should not exceed 40 characters.
624
- # @param [Google::Apis::RequestOptions] options
625
- # Request-specific options
626
- #
627
- # @yield [result, err] Result & error if block supplied
628
- # @yieldparam result [Google::Apis::LoggingV1beta3::Empty] parsed result object
629
- # @yieldparam err [StandardError] error object if request failed
630
- #
631
- # @return [Google::Apis::LoggingV1beta3::Empty]
632
- #
633
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
634
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
635
- # @raise [Google::Apis::AuthorizationError] Authorization is required
636
- def delete_log_service_sink(projects_id, log_services_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block)
637
- command = make_simple_command(:delete, 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}', options)
638
- command.response_representation = Google::Apis::LoggingV1beta3::Empty::Representation
639
- command.response_class = Google::Apis::LoggingV1beta3::Empty
640
- command.params['projectsId'] = projects_id unless projects_id.nil?
641
- command.params['logServicesId'] = log_services_id unless log_services_id.nil?
642
- command.params['sinksId'] = sinks_id unless sinks_id.nil?
643
- command.query['fields'] = fields unless fields.nil?
644
- command.query['quotaUser'] = quota_user unless quota_user.nil?
645
- execute_or_queue_command(command, &block)
646
- end
647
-
648
- # Lists project sinks associated with a project.
649
- # @param [String] projects_id
650
- # Part of `projectName`. The project whose sinks are wanted.
651
- # @param [String] fields
652
- # Selector specifying which fields to include in a partial response.
653
- # @param [String] quota_user
654
- # Available to use for quota purposes for server-side applications. Can be any
655
- # arbitrary string assigned to a user, but should not exceed 40 characters.
656
- # @param [Google::Apis::RequestOptions] options
657
- # Request-specific options
658
- #
659
- # @yield [result, err] Result & error if block supplied
660
- # @yieldparam result [Google::Apis::LoggingV1beta3::ListSinksResponse] parsed result object
661
- # @yieldparam err [StandardError] error object if request failed
662
- #
663
- # @return [Google::Apis::LoggingV1beta3::ListSinksResponse]
664
- #
665
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
666
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
667
- # @raise [Google::Apis::AuthorizationError] Authorization is required
668
- def list_project_sinks(projects_id, fields: nil, quota_user: nil, options: nil, &block)
669
- command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/sinks', options)
670
- command.response_representation = Google::Apis::LoggingV1beta3::ListSinksResponse::Representation
671
- command.response_class = Google::Apis::LoggingV1beta3::ListSinksResponse
672
- command.params['projectsId'] = projects_id unless projects_id.nil?
673
- command.query['fields'] = fields unless fields.nil?
674
- command.query['quotaUser'] = quota_user unless quota_user.nil?
675
- execute_or_queue_command(command, &block)
676
- end
677
-
678
- # Gets a project sink.
679
- # @param [String] projects_id
680
- # Part of `sinkName`. The resource name of the project sink to return.
681
- # @param [String] sinks_id
682
- # Part of `sinkName`. See documentation of `projectsId`.
683
- # @param [String] fields
684
- # Selector specifying which fields to include in a partial response.
685
- # @param [String] quota_user
686
- # Available to use for quota purposes for server-side applications. Can be any
687
- # arbitrary string assigned to a user, but should not exceed 40 characters.
688
- # @param [Google::Apis::RequestOptions] options
689
- # Request-specific options
690
- #
691
- # @yield [result, err] Result & error if block supplied
692
- # @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object
693
- # @yieldparam err [StandardError] error object if request failed
694
- #
695
- # @return [Google::Apis::LoggingV1beta3::LogSink]
696
- #
697
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
698
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
699
- # @raise [Google::Apis::AuthorizationError] Authorization is required
700
- def get_project_sink(projects_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block)
701
- command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/sinks/{sinksId}', options)
702
- command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
703
- command.response_class = Google::Apis::LoggingV1beta3::LogSink
704
- command.params['projectsId'] = projects_id unless projects_id.nil?
705
- command.params['sinksId'] = sinks_id unless sinks_id.nil?
706
- command.query['fields'] = fields unless fields.nil?
707
- command.query['quotaUser'] = quota_user unless quota_user.nil?
708
- execute_or_queue_command(command, &block)
709
- end
710
-
711
- # Creates a project sink. A logs filter determines which log entries are written
712
- # to the destination.
713
- # @param [String] projects_id
714
- # Part of `projectName`. The resource name of the project to which the sink is
715
- # bound.
716
- # @param [Google::Apis::LoggingV1beta3::LogSink] log_sink_object
717
- # @param [String] fields
718
- # Selector specifying which fields to include in a partial response.
719
- # @param [String] quota_user
720
- # Available to use for quota purposes for server-side applications. Can be any
721
- # arbitrary string assigned to a user, but should not exceed 40 characters.
722
- # @param [Google::Apis::RequestOptions] options
723
- # Request-specific options
724
- #
725
- # @yield [result, err] Result & error if block supplied
726
- # @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object
727
- # @yieldparam err [StandardError] error object if request failed
728
- #
729
- # @return [Google::Apis::LoggingV1beta3::LogSink]
730
- #
731
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
732
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
733
- # @raise [Google::Apis::AuthorizationError] Authorization is required
734
- def create_project_sink(projects_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
735
- command = make_simple_command(:post, 'v1beta3/projects/{projectsId}/sinks', options)
736
- command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
737
- command.request_object = log_sink_object
738
- command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
739
- command.response_class = Google::Apis::LoggingV1beta3::LogSink
740
- command.params['projectsId'] = projects_id unless projects_id.nil?
741
- command.query['fields'] = fields unless fields.nil?
742
- command.query['quotaUser'] = quota_user unless quota_user.nil?
743
- execute_or_queue_command(command, &block)
744
- end
745
-
746
- # Updates a project sink. If the sink does not exist, it is created. The
747
- # destination, filter, or both may be updated.
748
- # @param [String] projects_id
749
- # Part of `sinkName`. The resource name of the project sink to update.
750
- # @param [String] sinks_id
751
- # Part of `sinkName`. See documentation of `projectsId`.
752
- # @param [Google::Apis::LoggingV1beta3::LogSink] log_sink_object
753
- # @param [String] fields
754
- # Selector specifying which fields to include in a partial response.
755
- # @param [String] quota_user
756
- # Available to use for quota purposes for server-side applications. Can be any
757
- # arbitrary string assigned to a user, but should not exceed 40 characters.
758
- # @param [Google::Apis::RequestOptions] options
759
- # Request-specific options
760
- #
761
- # @yield [result, err] Result & error if block supplied
762
- # @yieldparam result [Google::Apis::LoggingV1beta3::LogSink] parsed result object
763
- # @yieldparam err [StandardError] error object if request failed
764
- #
765
- # @return [Google::Apis::LoggingV1beta3::LogSink]
766
- #
767
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
768
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
769
- # @raise [Google::Apis::AuthorizationError] Authorization is required
770
- def update_project_sink(projects_id, sinks_id, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block)
771
- command = make_simple_command(:put, 'v1beta3/projects/{projectsId}/sinks/{sinksId}', options)
772
- command.request_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
773
- command.request_object = log_sink_object
774
- command.response_representation = Google::Apis::LoggingV1beta3::LogSink::Representation
775
- command.response_class = Google::Apis::LoggingV1beta3::LogSink
776
- command.params['projectsId'] = projects_id unless projects_id.nil?
777
- command.params['sinksId'] = sinks_id unless sinks_id.nil?
778
- command.query['fields'] = fields unless fields.nil?
779
- command.query['quotaUser'] = quota_user unless quota_user.nil?
780
- execute_or_queue_command(command, &block)
781
- end
782
-
783
- # Deletes a project sink. After deletion, no new log entries are written to the
784
- # destination.
785
- # @param [String] projects_id
786
- # Part of `sinkName`. The resource name of the project sink to delete.
787
- # @param [String] sinks_id
788
- # Part of `sinkName`. See documentation of `projectsId`.
789
- # @param [String] fields
790
- # Selector specifying which fields to include in a partial response.
791
- # @param [String] quota_user
792
- # Available to use for quota purposes for server-side applications. Can be any
793
- # arbitrary string assigned to a user, but should not exceed 40 characters.
794
- # @param [Google::Apis::RequestOptions] options
795
- # Request-specific options
796
- #
797
- # @yield [result, err] Result & error if block supplied
798
- # @yieldparam result [Google::Apis::LoggingV1beta3::Empty] parsed result object
799
- # @yieldparam err [StandardError] error object if request failed
800
- #
801
- # @return [Google::Apis::LoggingV1beta3::Empty]
802
- #
803
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
804
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
805
- # @raise [Google::Apis::AuthorizationError] Authorization is required
806
- def delete_project_sink(projects_id, sinks_id, fields: nil, quota_user: nil, options: nil, &block)
807
- command = make_simple_command(:delete, 'v1beta3/projects/{projectsId}/sinks/{sinksId}', options)
808
- command.response_representation = Google::Apis::LoggingV1beta3::Empty::Representation
809
- command.response_class = Google::Apis::LoggingV1beta3::Empty
810
- command.params['projectsId'] = projects_id unless projects_id.nil?
811
- command.params['sinksId'] = sinks_id unless sinks_id.nil?
812
- command.query['fields'] = fields unless fields.nil?
813
- command.query['quotaUser'] = quota_user unless quota_user.nil?
814
- execute_or_queue_command(command, &block)
815
- end
816
-
817
- # Lists the logs-based metrics associated with a project.
818
- # @param [String] projects_id
819
- # Part of `projectName`. The resource name for the project whose metrics are
820
- # wanted.
821
- # @param [String] page_token
822
- # An opaque token, returned as `nextPageToken` by a prior `ListLogMetrics`
823
- # operation. If `pageToken` is supplied, then the other fields of this request
824
- # are ignored, and instead the previous `ListLogMetrics` operation is continued.
825
- # @param [Fixnum] page_size
826
- # The maximum number of `LogMetric` objects to return in one operation.
827
- # @param [String] fields
828
- # Selector specifying which fields to include in a partial response.
829
- # @param [String] quota_user
830
- # Available to use for quota purposes for server-side applications. Can be any
831
- # arbitrary string assigned to a user, but should not exceed 40 characters.
832
- # @param [Google::Apis::RequestOptions] options
833
- # Request-specific options
834
- #
835
- # @yield [result, err] Result & error if block supplied
836
- # @yieldparam result [Google::Apis::LoggingV1beta3::ListLogMetricsResponse] parsed result object
837
- # @yieldparam err [StandardError] error object if request failed
838
- #
839
- # @return [Google::Apis::LoggingV1beta3::ListLogMetricsResponse]
840
- #
841
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
842
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
843
- # @raise [Google::Apis::AuthorizationError] Authorization is required
844
- def list_project_metrics(projects_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
845
- command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/metrics', options)
846
- command.response_representation = Google::Apis::LoggingV1beta3::ListLogMetricsResponse::Representation
847
- command.response_class = Google::Apis::LoggingV1beta3::ListLogMetricsResponse
848
- command.params['projectsId'] = projects_id unless projects_id.nil?
849
- command.query['pageToken'] = page_token unless page_token.nil?
850
- command.query['pageSize'] = page_size unless page_size.nil?
851
- command.query['fields'] = fields unless fields.nil?
852
- command.query['quotaUser'] = quota_user unless quota_user.nil?
853
- execute_or_queue_command(command, &block)
854
- end
855
-
856
- # Gets a logs-based metric.
857
- # @param [String] projects_id
858
- # Part of `metricName`. The resource name of the desired metric.
859
- # @param [String] metrics_id
860
- # Part of `metricName`. See documentation of `projectsId`.
861
- # @param [String] fields
862
- # Selector specifying which fields to include in a partial response.
863
- # @param [String] quota_user
864
- # Available to use for quota purposes for server-side applications. Can be any
865
- # arbitrary string assigned to a user, but should not exceed 40 characters.
866
- # @param [Google::Apis::RequestOptions] options
867
- # Request-specific options
868
- #
869
- # @yield [result, err] Result & error if block supplied
870
- # @yieldparam result [Google::Apis::LoggingV1beta3::LogMetric] parsed result object
871
- # @yieldparam err [StandardError] error object if request failed
872
- #
873
- # @return [Google::Apis::LoggingV1beta3::LogMetric]
874
- #
875
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
876
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
877
- # @raise [Google::Apis::AuthorizationError] Authorization is required
878
- def get_project_metric(projects_id, metrics_id, fields: nil, quota_user: nil, options: nil, &block)
879
- command = make_simple_command(:get, 'v1beta3/projects/{projectsId}/metrics/{metricsId}', options)
880
- command.response_representation = Google::Apis::LoggingV1beta3::LogMetric::Representation
881
- command.response_class = Google::Apis::LoggingV1beta3::LogMetric
882
- command.params['projectsId'] = projects_id unless projects_id.nil?
883
- command.params['metricsId'] = metrics_id unless metrics_id.nil?
884
- command.query['fields'] = fields unless fields.nil?
885
- command.query['quotaUser'] = quota_user unless quota_user.nil?
886
- execute_or_queue_command(command, &block)
887
- end
888
-
889
- # Creates a logs-based metric.
890
- # @param [String] projects_id
891
- # Part of `projectName`. The resource name of the project in which to create the
892
- # metric.
893
- # @param [Google::Apis::LoggingV1beta3::LogMetric] log_metric_object
894
- # @param [String] fields
895
- # Selector specifying which fields to include in a partial response.
896
- # @param [String] quota_user
897
- # Available to use for quota purposes for server-side applications. Can be any
898
- # arbitrary string assigned to a user, but should not exceed 40 characters.
899
- # @param [Google::Apis::RequestOptions] options
900
- # Request-specific options
901
- #
902
- # @yield [result, err] Result & error if block supplied
903
- # @yieldparam result [Google::Apis::LoggingV1beta3::LogMetric] parsed result object
904
- # @yieldparam err [StandardError] error object if request failed
905
- #
906
- # @return [Google::Apis::LoggingV1beta3::LogMetric]
907
- #
908
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
909
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
910
- # @raise [Google::Apis::AuthorizationError] Authorization is required
911
- def create_project_metric(projects_id, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
912
- command = make_simple_command(:post, 'v1beta3/projects/{projectsId}/metrics', options)
913
- command.request_representation = Google::Apis::LoggingV1beta3::LogMetric::Representation
914
- command.request_object = log_metric_object
915
- command.response_representation = Google::Apis::LoggingV1beta3::LogMetric::Representation
916
- command.response_class = Google::Apis::LoggingV1beta3::LogMetric
917
- command.params['projectsId'] = projects_id unless projects_id.nil?
918
- command.query['fields'] = fields unless fields.nil?
919
- command.query['quotaUser'] = quota_user unless quota_user.nil?
920
- execute_or_queue_command(command, &block)
921
- end
922
-
923
- # Creates or updates a logs-based metric.
924
- # @param [String] projects_id
925
- # Part of `metricName`. The resource name of the metric to update.
926
- # @param [String] metrics_id
927
- # Part of `metricName`. See documentation of `projectsId`.
928
- # @param [Google::Apis::LoggingV1beta3::LogMetric] log_metric_object
929
- # @param [String] fields
930
- # Selector specifying which fields to include in a partial response.
931
- # @param [String] quota_user
932
- # Available to use for quota purposes for server-side applications. Can be any
933
- # arbitrary string assigned to a user, but should not exceed 40 characters.
934
- # @param [Google::Apis::RequestOptions] options
935
- # Request-specific options
936
- #
937
- # @yield [result, err] Result & error if block supplied
938
- # @yieldparam result [Google::Apis::LoggingV1beta3::LogMetric] parsed result object
939
- # @yieldparam err [StandardError] error object if request failed
940
- #
941
- # @return [Google::Apis::LoggingV1beta3::LogMetric]
942
- #
943
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
944
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
945
- # @raise [Google::Apis::AuthorizationError] Authorization is required
946
- def update_project_metric(projects_id, metrics_id, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block)
947
- command = make_simple_command(:put, 'v1beta3/projects/{projectsId}/metrics/{metricsId}', options)
948
- command.request_representation = Google::Apis::LoggingV1beta3::LogMetric::Representation
949
- command.request_object = log_metric_object
950
- command.response_representation = Google::Apis::LoggingV1beta3::LogMetric::Representation
951
- command.response_class = Google::Apis::LoggingV1beta3::LogMetric
952
- command.params['projectsId'] = projects_id unless projects_id.nil?
953
- command.params['metricsId'] = metrics_id unless metrics_id.nil?
954
- command.query['fields'] = fields unless fields.nil?
955
- command.query['quotaUser'] = quota_user unless quota_user.nil?
956
- execute_or_queue_command(command, &block)
957
- end
958
-
959
- # Deletes a logs-based metric.
960
- # @param [String] projects_id
961
- # Part of `metricName`. The resource name of the metric to delete.
962
- # @param [String] metrics_id
963
- # Part of `metricName`. See documentation of `projectsId`.
964
- # @param [String] fields
965
- # Selector specifying which fields to include in a partial response.
966
- # @param [String] quota_user
967
- # Available to use for quota purposes for server-side applications. Can be any
968
- # arbitrary string assigned to a user, but should not exceed 40 characters.
969
- # @param [Google::Apis::RequestOptions] options
970
- # Request-specific options
971
- #
972
- # @yield [result, err] Result & error if block supplied
973
- # @yieldparam result [Google::Apis::LoggingV1beta3::Empty] parsed result object
974
- # @yieldparam err [StandardError] error object if request failed
975
- #
976
- # @return [Google::Apis::LoggingV1beta3::Empty]
977
- #
978
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
979
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
980
- # @raise [Google::Apis::AuthorizationError] Authorization is required
981
- def delete_project_metric(projects_id, metrics_id, fields: nil, quota_user: nil, options: nil, &block)
982
- command = make_simple_command(:delete, 'v1beta3/projects/{projectsId}/metrics/{metricsId}', options)
983
- command.response_representation = Google::Apis::LoggingV1beta3::Empty::Representation
984
- command.response_class = Google::Apis::LoggingV1beta3::Empty
985
- command.params['projectsId'] = projects_id unless projects_id.nil?
986
- command.params['metricsId'] = metrics_id unless metrics_id.nil?
987
- command.query['fields'] = fields unless fields.nil?
988
- command.query['quotaUser'] = quota_user unless quota_user.nil?
989
- execute_or_queue_command(command, &block)
990
- end
991
-
992
- protected
993
-
994
- def apply_command_defaults(command)
995
- command.query['key'] = key unless key.nil?
996
- command.query['quotaUser'] = quota_user unless quota_user.nil?
997
- end
998
- end
999
- end
1000
- end
1001
- end