google-api-client 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/api_names.yaml +945 -41609
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +12 -12
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +2 -2
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1437 -412
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +516 -71
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1098 -422
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
  12. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
  13. data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
  14. data/generated/google/apis/admin_directory_v1/service.rb +26 -26
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  17. data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
  18. data/generated/google/apis/adsense_v1_4/service.rb +44 -44
  19. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  20. data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
  21. data/generated/google/apis/analytics_v3/classes.rb +3 -3
  22. data/generated/google/apis/analytics_v3/representations.rb +3 -3
  23. data/generated/google/apis/analytics_v3/service.rb +82 -82
  24. data/generated/google/apis/analyticsreporting_v4/classes.rb +937 -937
  25. data/generated/google/apis/analyticsreporting_v4/representations.rb +128 -128
  26. data/generated/google/apis/analyticsreporting_v4/service.rb +1 -1
  27. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  28. data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
  29. data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
  30. data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
  31. data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
  32. data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
  33. data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
  34. data/generated/google/apis/appengine_v1.rb +4 -4
  35. data/generated/google/apis/appengine_v1/classes.rb +1570 -1512
  36. data/generated/google/apis/appengine_v1/representations.rb +362 -343
  37. data/generated/google/apis/appengine_v1/service.rb +220 -220
  38. data/generated/google/apis/appstate_v1.rb +1 -1
  39. data/generated/google/apis/bigquery_v2.rb +1 -1
  40. data/generated/google/apis/bigquery_v2/classes.rb +5 -5
  41. data/generated/google/apis/bigquery_v2/representations.rb +8 -8
  42. data/generated/google/apis/bigquery_v2/service.rb +13 -13
  43. data/generated/google/apis/blogger_v3/service.rb +3 -3
  44. data/generated/google/apis/books_v1/classes.rb +55 -55
  45. data/generated/google/apis/books_v1/representations.rb +67 -67
  46. data/generated/google/apis/books_v1/service.rb +82 -82
  47. data/generated/google/apis/calendar_v3.rb +1 -1
  48. data/generated/google/apis/calendar_v3/classes.rb +6 -6
  49. data/generated/google/apis/calendar_v3/representations.rb +3 -3
  50. data/generated/google/apis/calendar_v3/service.rb +2 -2
  51. data/generated/google/apis/civicinfo_v2/classes.rb +2 -2
  52. data/generated/google/apis/civicinfo_v2/representations.rb +4 -4
  53. data/generated/google/apis/civicinfo_v2/service.rb +12 -12
  54. data/generated/google/apis/classroom_v1.rb +7 -7
  55. data/generated/google/apis/classroom_v1/classes.rb +1013 -991
  56. data/generated/google/apis/classroom_v1/representations.rb +207 -204
  57. data/generated/google/apis/classroom_v1/service.rb +709 -709
  58. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  59. data/generated/google/apis/cloudbuild_v1/classes.rb +307 -307
  60. data/generated/google/apis/cloudbuild_v1/representations.rb +84 -84
  61. data/generated/google/apis/cloudbuild_v1/service.rb +125 -125
  62. data/generated/google/apis/clouddebugger_v2/classes.rb +673 -673
  63. data/generated/google/apis/clouddebugger_v2/representations.rb +152 -152
  64. data/generated/google/apis/clouddebugger_v2/service.rb +55 -55
  65. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  66. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +121 -121
  67. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +25 -25
  68. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +74 -74
  69. data/generated/google/apis/cloudkms_v1.rb +1 -1
  70. data/generated/google/apis/cloudkms_v1/classes.rb +668 -613
  71. data/generated/google/apis/cloudkms_v1/representations.rb +151 -133
  72. data/generated/google/apis/cloudkms_v1/service.rb +267 -267
  73. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  74. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1167 -1168
  75. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +193 -193
  76. data/generated/google/apis/cloudresourcemanager_v1/service.rb +470 -469
  77. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  78. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +508 -509
  79. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +94 -94
  80. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +157 -156
  81. data/generated/google/apis/cloudtrace_v1/service.rb +34 -34
  82. data/generated/google/apis/compute_beta.rb +1 -1
  83. data/generated/google/apis/compute_beta/classes.rb +163 -15
  84. data/generated/google/apis/compute_beta/representations.rb +54 -14
  85. data/generated/google/apis/compute_beta/service.rb +2258 -482
  86. data/generated/google/apis/compute_v1.rb +1 -1
  87. data/generated/google/apis/compute_v1/classes.rb +465 -13
  88. data/generated/google/apis/compute_v1/representations.rb +202 -16
  89. data/generated/google/apis/compute_v1/service.rb +573 -309
  90. data/generated/google/apis/container_v1.rb +1 -1
  91. data/generated/google/apis/container_v1/classes.rb +635 -589
  92. data/generated/google/apis/container_v1/representations.rb +139 -111
  93. data/generated/google/apis/container_v1/service.rb +272 -227
  94. data/generated/google/apis/content_v2.rb +1 -1
  95. data/generated/google/apis/content_v2/classes.rb +86 -74
  96. data/generated/google/apis/content_v2/representations.rb +107 -105
  97. data/generated/google/apis/content_v2/service.rb +131 -130
  98. data/generated/google/apis/customsearch_v1.rb +2 -2
  99. data/generated/google/apis/customsearch_v1/classes.rb +0 -6
  100. data/generated/google/apis/customsearch_v1/representations.rb +0 -1
  101. data/generated/google/apis/customsearch_v1/service.rb +2 -5
  102. data/generated/google/apis/dataflow_v1b3.rb +7 -4
  103. data/generated/google/apis/dataflow_v1b3/classes.rb +3405 -3405
  104. data/generated/google/apis/dataflow_v1b3/representations.rb +834 -834
  105. data/generated/google/apis/dataflow_v1b3/service.rb +244 -244
  106. data/generated/google/apis/dataproc_v1.rb +1 -1
  107. data/generated/google/apis/dataproc_v1/classes.rb +543 -691
  108. data/generated/google/apis/dataproc_v1/representations.rb +129 -185
  109. data/generated/google/apis/dataproc_v1/service.rb +347 -347
  110. data/generated/google/apis/datastore_v1.rb +4 -4
  111. data/generated/google/apis/datastore_v1/classes.rb +833 -833
  112. data/generated/google/apis/datastore_v1/representations.rb +182 -182
  113. data/generated/google/apis/datastore_v1/service.rb +45 -45
  114. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  115. data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
  116. data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
  117. data/generated/google/apis/discovery_v1/classes.rb +4 -4
  118. data/generated/google/apis/discovery_v1/representations.rb +2 -2
  119. data/generated/google/apis/discovery_v1/service.rb +1 -1
  120. data/generated/google/apis/dns_v1.rb +1 -1
  121. data/generated/google/apis/dns_v1/classes.rb +3 -3
  122. data/generated/google/apis/dns_v1/representations.rb +6 -6
  123. data/generated/google/apis/dns_v1/service.rb +12 -12
  124. data/generated/google/apis/dns_v2beta1.rb +1 -1
  125. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
  126. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  127. data/generated/google/apis/drive_v2.rb +1 -1
  128. data/generated/google/apis/drive_v2/classes.rb +1 -1
  129. data/generated/google/apis/drive_v2/service.rb +1 -1
  130. data/generated/google/apis/drive_v3.rb +1 -1
  131. data/generated/google/apis/drive_v3/service.rb +1 -1
  132. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  133. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +160 -110
  134. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +60 -31
  135. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +38 -3
  136. data/generated/google/apis/firebaserules_v1/classes.rb +354 -354
  137. data/generated/google/apis/firebaserules_v1/representations.rb +87 -87
  138. data/generated/google/apis/firebaserules_v1/service.rb +103 -103
  139. data/generated/google/apis/fusiontables_v2/service.rb +2 -2
  140. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  141. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  142. data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
  143. data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
  144. data/generated/google/apis/games_management_v1management.rb +1 -1
  145. data/generated/google/apis/games_v1.rb +1 -1
  146. data/generated/google/apis/games_v1/classes.rb +23 -23
  147. data/generated/google/apis/games_v1/representations.rb +43 -43
  148. data/generated/google/apis/games_v1/service.rb +72 -72
  149. data/generated/google/apis/genomics_v1.rb +1 -1
  150. data/generated/google/apis/genomics_v1/classes.rb +2316 -2316
  151. data/generated/google/apis/genomics_v1/representations.rb +291 -291
  152. data/generated/google/apis/genomics_v1/service.rb +821 -821
  153. data/generated/google/apis/gmail_v1.rb +1 -1
  154. data/generated/google/apis/groupsmigration_v1.rb +1 -1
  155. data/generated/google/apis/groupssettings_v1.rb +1 -1
  156. data/generated/google/apis/groupssettings_v1/classes.rb +2 -2
  157. data/generated/google/apis/groupssettings_v1/service.rb +3 -0
  158. data/generated/google/apis/iam_v1/classes.rb +338 -338
  159. data/generated/google/apis/iam_v1/representations.rb +98 -98
  160. data/generated/google/apis/iam_v1/service.rb +35 -35
  161. data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
  162. data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
  163. data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
  164. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  165. data/generated/google/apis/language_v1.rb +1 -1
  166. data/generated/google/apis/language_v1/classes.rb +374 -374
  167. data/generated/google/apis/language_v1/representations.rb +97 -97
  168. data/generated/google/apis/language_v1/service.rb +16 -16
  169. data/generated/google/apis/language_v1beta1.rb +1 -1
  170. data/generated/google/apis/language_v1beta1/classes.rb +441 -441
  171. data/generated/google/apis/language_v1beta1/representations.rb +108 -108
  172. data/generated/google/apis/language_v1beta1/service.rb +30 -30
  173. data/generated/google/apis/licensing_v1/service.rb +2 -2
  174. data/generated/google/apis/logging_v2.rb +1 -1
  175. data/generated/google/apis/logging_v2/classes.rb +712 -712
  176. data/generated/google/apis/logging_v2/representations.rb +109 -109
  177. data/generated/google/apis/logging_v2/service.rb +543 -539
  178. data/generated/google/apis/logging_v2beta1.rb +1 -1
  179. data/generated/google/apis/logging_v2beta1/classes.rb +752 -752
  180. data/generated/google/apis/logging_v2beta1/representations.rb +94 -94
  181. data/generated/google/apis/logging_v2beta1/service.rb +257 -256
  182. data/generated/google/apis/manufacturers_v1/classes.rb +130 -130
  183. data/generated/google/apis/manufacturers_v1/representations.rb +28 -28
  184. data/generated/google/apis/mirror_v1/classes.rb +5 -5
  185. data/generated/google/apis/mirror_v1/representations.rb +10 -10
  186. data/generated/google/apis/mirror_v1/service.rb +20 -20
  187. data/generated/google/apis/ml_v1.rb +1 -1
  188. data/generated/google/apis/ml_v1/classes.rb +1830 -1210
  189. data/generated/google/apis/ml_v1/representations.rb +342 -120
  190. data/generated/google/apis/ml_v1/service.rb +365 -258
  191. data/generated/google/apis/monitoring_v3.rb +4 -4
  192. data/generated/google/apis/monitoring_v3/classes.rb +889 -889
  193. data/generated/google/apis/monitoring_v3/representations.rb +174 -174
  194. data/generated/google/apis/monitoring_v3/service.rb +119 -119
  195. data/generated/google/apis/mybusiness_v3/service.rb +5 -5
  196. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  197. data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
  198. data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
  199. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  200. data/generated/google/apis/partners_v2.rb +1 -1
  201. data/generated/google/apis/partners_v2/classes.rb +550 -536
  202. data/generated/google/apis/partners_v2/representations.rb +118 -116
  203. data/generated/google/apis/partners_v2/service.rb +439 -439
  204. data/generated/google/apis/people_v1.rb +4 -4
  205. data/generated/google/apis/people_v1/classes.rb +414 -413
  206. data/generated/google/apis/people_v1/representations.rb +85 -85
  207. data/generated/google/apis/people_v1/service.rb +111 -18
  208. data/generated/google/apis/plus_domains_v1.rb +1 -1
  209. data/generated/google/apis/plus_domains_v1/service.rb +4 -4
  210. data/generated/google/apis/plus_v1.rb +1 -1
  211. data/generated/google/apis/plus_v1/service.rb +1 -1
  212. data/generated/google/apis/prediction_v1_6/service.rb +8 -8
  213. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  214. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +443 -443
  215. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +92 -92
  216. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +152 -152
  217. data/generated/google/apis/pubsub_v1/classes.rb +249 -249
  218. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  219. data/generated/google/apis/pubsub_v1/service.rb +415 -415
  220. data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
  221. data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
  222. data/generated/google/apis/qpx_express_v1/service.rb +8 -8
  223. data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
  224. data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
  225. data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
  226. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
  227. data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
  228. data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
  230. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  231. data/generated/google/apis/runtimeconfig_v1/classes.rb +15 -15
  232. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  233. data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
  234. data/generated/google/apis/script_v1.rb +17 -17
  235. data/generated/google/apis/script_v1/classes.rb +27 -27
  236. data/generated/google/apis/script_v1/representations.rb +5 -5
  237. data/generated/google/apis/script_v1/service.rb +4 -4
  238. data/generated/google/apis/searchconsole_v1.rb +1 -1
  239. data/generated/google/apis/searchconsole_v1/classes.rb +53 -53
  240. data/generated/google/apis/searchconsole_v1/representations.rb +23 -23
  241. data/generated/google/apis/searchconsole_v1/service.rb +4 -4
  242. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  243. data/generated/google/apis/servicecontrol_v1/classes.rb +1175 -1175
  244. data/generated/google/apis/servicecontrol_v1/representations.rb +206 -206
  245. data/generated/google/apis/servicecontrol_v1/service.rb +116 -116
  246. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  247. data/generated/google/apis/servicemanagement_v1/classes.rb +1186 -1125
  248. data/generated/google/apis/servicemanagement_v1/representations.rb +241 -223
  249. data/generated/google/apis/servicemanagement_v1/service.rb +201 -201
  250. data/generated/google/apis/serviceuser_v1.rb +1 -1
  251. data/generated/google/apis/serviceuser_v1/classes.rb +2645 -2641
  252. data/generated/google/apis/serviceuser_v1/representations.rb +234 -234
  253. data/generated/google/apis/serviceuser_v1/service.rb +37 -37
  254. data/generated/google/apis/sheets_v4.rb +1 -1
  255. data/generated/google/apis/sheets_v4/classes.rb +5042 -4111
  256. data/generated/google/apis/sheets_v4/representations.rb +994 -824
  257. data/generated/google/apis/sheets_v4/service.rb +80 -80
  258. data/generated/google/apis/site_verification_v1/classes.rb +6 -6
  259. data/generated/google/apis/site_verification_v1/representations.rb +8 -8
  260. data/generated/google/apis/site_verification_v1/service.rb +12 -12
  261. data/generated/google/apis/slides_v1.rb +1 -1
  262. data/generated/google/apis/slides_v1/classes.rb +2885 -2885
  263. data/generated/google/apis/slides_v1/representations.rb +310 -310
  264. data/generated/google/apis/slides_v1/service.rb +54 -54
  265. data/generated/google/apis/sourcerepo_v1/classes.rb +206 -206
  266. data/generated/google/apis/sourcerepo_v1/representations.rb +52 -52
  267. data/generated/google/apis/sourcerepo_v1/service.rb +5 -5
  268. data/generated/google/apis/spanner_v1.rb +1 -1
  269. data/generated/google/apis/spanner_v1/classes.rb +2142 -2141
  270. data/generated/google/apis/spanner_v1/representations.rb +174 -174
  271. data/generated/google/apis/spanner_v1/service.rb +497 -497
  272. data/generated/google/apis/speech_v1beta1.rb +1 -1
  273. data/generated/google/apis/speech_v1beta1/classes.rb +227 -227
  274. data/generated/google/apis/speech_v1beta1/representations.rb +50 -50
  275. data/generated/google/apis/speech_v1beta1/service.rb +33 -33
  276. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  277. data/generated/google/apis/sqladmin_v1beta4/classes.rb +21 -21
  278. data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -29
  279. data/generated/google/apis/sqladmin_v1beta4/service.rb +56 -56
  280. data/generated/google/apis/storage_v1.rb +1 -1
  281. data/generated/google/apis/storage_v1/classes.rb +40 -6
  282. data/generated/google/apis/storage_v1/representations.rb +20 -4
  283. data/generated/google/apis/storage_v1/service.rb +61 -46
  284. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  285. data/generated/google/apis/storagetransfer_v1/classes.rb +184 -184
  286. data/generated/google/apis/storagetransfer_v1/representations.rb +35 -35
  287. data/generated/google/apis/storagetransfer_v1/service.rb +70 -70
  288. data/generated/google/apis/tagmanager_v1/service.rb +33 -33
  289. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  290. data/generated/google/apis/translate_v2/classes.rb +12 -12
  291. data/generated/google/apis/translate_v2/representations.rb +10 -10
  292. data/generated/google/apis/translate_v2/service.rb +62 -62
  293. data/generated/google/apis/vision_v1.rb +1 -1
  294. data/generated/google/apis/vision_v1/classes.rb +1267 -1267
  295. data/generated/google/apis/vision_v1/representations.rb +200 -200
  296. data/generated/google/apis/vision_v1/service.rb +10 -10
  297. data/generated/google/apis/webmasters_v3.rb +1 -1
  298. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  299. data/generated/google/apis/webmasters_v3/representations.rb +8 -8
  300. data/generated/google/apis/webmasters_v3/service.rb +21 -21
  301. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  302. data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
  303. data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
  304. data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
  305. data/generated/google/apis/youtube_v3/classes.rb +20 -20
  306. data/generated/google/apis/youtube_v3/representations.rb +40 -40
  307. data/generated/google/apis/youtube_v3/service.rb +80 -80
  308. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  309. data/generated/google/apis/youtubereporting_v1/classes.rb +129 -129
  310. data/generated/google/apis/youtubereporting_v1/representations.rb +38 -38
  311. data/generated/google/apis/youtubereporting_v1/service.rb +97 -97
  312. data/lib/google/apis/generator/annotator.rb +2 -2
  313. data/lib/google/apis/generator/model.rb +2 -2
  314. data/lib/google/apis/version.rb +1 -1
  315. metadata +2 -2
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/logging/docs/
26
26
  module LoggingV2beta1
27
27
  VERSION = 'V2beta1'
28
- REVISION = '20170523'
28
+ REVISION = '20170605'
29
29
 
30
30
  # View your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
@@ -22,24 +22,69 @@ module Google
22
22
  module Apis
23
23
  module LoggingV2beta1
24
24
 
25
- # A description of a label.
26
- class LabelDescriptor
25
+ # The parameters to WriteLogEntries.
26
+ class WriteLogEntriesRequest
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # The label key.
30
- # Corresponds to the JSON property `key`
31
- # @return [String]
32
- attr_accessor :key
29
+ # Optional. Whether valid entries should be written even if some other entries
30
+ # fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any entry is not
31
+ # written, then the response status is the error associated with one of the
32
+ # failed entries and the response includes error details keyed by the entries'
33
+ # zero-based index in the entries.write method.
34
+ # Corresponds to the JSON property `partialSuccess`
35
+ # @return [Boolean]
36
+ attr_accessor :partial_success
37
+ alias_method :partial_success?, :partial_success
33
38
 
34
- # A human-readable description for the label.
35
- # Corresponds to the JSON property `description`
36
- # @return [String]
37
- attr_accessor :description
39
+ # Optional. Default labels that are added to the labels field of all log entries
40
+ # in entries. If a log entry already has a label with the same key as a label in
41
+ # this parameter, then the log entry's label is not changed. See LogEntry.
42
+ # Corresponds to the JSON property `labels`
43
+ # @return [Hash<String,String>]
44
+ attr_accessor :labels
38
45
 
39
- # The type of data that can be assigned to the label.
40
- # Corresponds to the JSON property `valueType`
46
+ # An object representing a resource that can be used for monitoring, logging,
47
+ # billing, or other purposes. Examples include virtual machine instances,
48
+ # databases, and storage devices such as disks. The type field identifies a
49
+ # MonitoredResourceDescriptor object that describes the resource's schema.
50
+ # Information in the labels field identifies the actual resource and its
51
+ # attributes according to the schema. For example, a particular Compute Engine
52
+ # VM instance could be represented by the following object, because the
53
+ # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
54
+ # zone":
55
+ # ` "type": "gce_instance",
56
+ # "labels": ` "instance_id": "12345678901234",
57
+ # "zone": "us-central1-a" ``
58
+ # Corresponds to the JSON property `resource`
59
+ # @return [Google::Apis::LoggingV2beta1::MonitoredResource]
60
+ attr_accessor :resource
61
+
62
+ # Optional. A default log resource name that is assigned to all log entries in
63
+ # entries that do not specify a value for log_name:
64
+ # "projects/[PROJECT_ID]/logs/[LOG_ID]"
65
+ # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
66
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
67
+ # "folders/[FOLDER_ID]/logs/[LOG_ID]"
68
+ # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
69
+ # or "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
70
+ # 2Factivity". For more information about log names, see LogEntry.
71
+ # Corresponds to the JSON property `logName`
41
72
  # @return [String]
42
- attr_accessor :value_type
73
+ attr_accessor :log_name
74
+
75
+ # Required. The log entries to write. Values supplied for the fields log_name,
76
+ # resource, and labels in this entries.write request are inserted into those log
77
+ # entries in this list that do not provide their own values.Stackdriver Logging
78
+ # also creates and inserts values for timestamp and insert_id if the entries do
79
+ # not provide them. The created insert_id for the N'th entry in this list will
80
+ # be greater than earlier entries and less than later entries. Otherwise, the
81
+ # order of log entries in this list does not matter.To improve throughput and to
82
+ # avoid exceeding the quota limit for calls to entries.write, you should write
83
+ # multiple log entries at once rather than calling this method for each
84
+ # individual log entry.
85
+ # Corresponds to the JSON property `entries`
86
+ # @return [Array<Google::Apis::LoggingV2beta1::LogEntry>]
87
+ attr_accessor :entries
43
88
 
44
89
  def initialize(**args)
45
90
  update!(**args)
@@ -47,98 +92,101 @@ module Google
47
92
 
48
93
  # Update properties of this object
49
94
  def update!(**args)
50
- @key = args[:key] if args.key?(:key)
51
- @description = args[:description] if args.key?(:description)
52
- @value_type = args[:value_type] if args.key?(:value_type)
95
+ @partial_success = args[:partial_success] if args.key?(:partial_success)
96
+ @labels = args[:labels] if args.key?(:labels)
97
+ @resource = args[:resource] if args.key?(:resource)
98
+ @log_name = args[:log_name] if args.key?(:log_name)
99
+ @entries = args[:entries] if args.key?(:entries)
53
100
  end
54
101
  end
55
102
 
56
- # An object that describes the schema of a MonitoredResource object using a type
57
- # name and a set of labels. For example, the monitored resource descriptor for
58
- # Google Compute Engine VM instances has a type of "gce_instance" and specifies
59
- # the use of the labels "instance_id" and "zone" to identify particular VM
60
- # instances.Different APIs can support different monitored resource types. APIs
61
- # generally provide a list method that returns the monitored resource
62
- # descriptors used by the API.
63
- class MonitoredResourceDescriptor
103
+ # Describes a sink used to export log entries to one of the following
104
+ # destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a
105
+ # Cloud Pub/Sub topic. A logs filter controls which log entries are exported.
106
+ # The sink must be created within a project, organization, billing account, or
107
+ # folder.
108
+ class LogSink
64
109
  include Google::Apis::Core::Hashable
65
110
 
66
- # Required. A set of labels used to describe instances of this monitored
67
- # resource type. For example, an individual Google Cloud SQL database is
68
- # identified by values for the labels "database_id" and "zone".
69
- # Corresponds to the JSON property `labels`
70
- # @return [Array<Google::Apis::LoggingV2beta1::LabelDescriptor>]
71
- attr_accessor :labels
111
+ # Optional. This field applies only to sinks owned by organizations and folders.
112
+ # If the field is false, the default, only the logs owned by the sink's parent
113
+ # resource are available for export. If the field is true, then logs from all
114
+ # the projects, folders, and billing accounts contained in the sink's parent
115
+ # resource are also available for export. Whether a particular log entry from
116
+ # the children is exported depends on the sink's filter expression. For example,
117
+ # if this field is true, then the filter resource.type=gce_instance would export
118
+ # all Compute Engine VM instance log entries from all projects in the sink's
119
+ # parent. To only export entries from certain child projects, filter on the
120
+ # project part of the log name:
121
+ # logName:("projects/test-project1/" OR "projects/test-project2/") AND
122
+ # resource.type=gce_instance
123
+ # Corresponds to the JSON property `includeChildren`
124
+ # @return [Boolean]
125
+ attr_accessor :include_children
126
+ alias_method :include_children?, :include_children
72
127
 
73
- # Optional. The resource name of the monitored resource descriptor: "projects/`
74
- # project_id`/monitoredResourceDescriptors/`type`" where `type` is the value of
75
- # the type field in this object and `project_id` is a project ID that provides
76
- # API-specific context for accessing the type. APIs that do not use project
77
- # information can use the resource name format "monitoredResourceDescriptors/`
78
- # type`".
79
- # Corresponds to the JSON property `name`
128
+ # Required. The export destination:
129
+ # "storage.googleapis.com/[GCS_BUCKET]"
130
+ # "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
131
+ # "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
132
+ # The sink's writer_identity, set when the sink is created, must have permission
133
+ # to write to the destination or else the log entries are not exported. For more
134
+ # information, see Exporting Logs With Sinks.
135
+ # Corresponds to the JSON property `destination`
80
136
  # @return [String]
81
- attr_accessor :name
137
+ attr_accessor :destination
82
138
 
83
- # Optional. A concise name for the monitored resource type that might be
84
- # displayed in user interfaces. It should be a Title Cased Noun Phrase, without
85
- # any article or other determiners. For example, "Google Cloud SQL Database".
86
- # Corresponds to the JSON property `displayName`
139
+ # Optional. An advanced logs filter. The only exported log entries are those
140
+ # that are in the resource owning the sink and that match the filter. The filter
141
+ # must use the log entry format specified by the output_version_format parameter.
142
+ # For example, in the v2 format:
143
+ # logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
144
+ # Corresponds to the JSON property `filter`
87
145
  # @return [String]
88
- attr_accessor :display_name
146
+ attr_accessor :filter
89
147
 
90
- # Optional. A detailed description of the monitored resource type that might be
91
- # used in documentation.
92
- # Corresponds to the JSON property `description`
148
+ # Optional. The time at which this sink will stop exporting log entries. Log
149
+ # entries are exported only if their timestamp is earlier than the end time. If
150
+ # this field is not supplied, there is no end time. If both a start time and an
151
+ # end time are provided, then the end time must be later than the start time.
152
+ # Corresponds to the JSON property `endTime`
93
153
  # @return [String]
94
- attr_accessor :description
154
+ attr_accessor :end_time
95
155
 
96
- # Required. The monitored resource type. For example, the type "
97
- # cloudsql_database" represents databases in Google Cloud SQL. The maximum
98
- # length of this value is 256 characters.
99
- # Corresponds to the JSON property `type`
156
+ # Output only. An IAM identity&mdash;a service account or group&mdash;under
157
+ # which Stackdriver Logging writes the exported log entries to the sink's
158
+ # destination. This field is set by sinks.create and sinks.update, based on the
159
+ # setting of unique_writer_identity in those methods.Until you grant this
160
+ # identity write-access to the destination, log entry exports from this sink
161
+ # will fail. For more information, see Granting access for a resource. Consult
162
+ # the destination service's documentation to determine the appropriate IAM roles
163
+ # to assign to the identity.
164
+ # Corresponds to the JSON property `writerIdentity`
100
165
  # @return [String]
101
- attr_accessor :type
102
-
103
- def initialize(**args)
104
- update!(**args)
105
- end
106
-
107
- # Update properties of this object
108
- def update!(**args)
109
- @labels = args[:labels] if args.key?(:labels)
110
- @name = args[:name] if args.key?(:name)
111
- @display_name = args[:display_name] if args.key?(:display_name)
112
- @description = args[:description] if args.key?(:description)
113
- @type = args[:type] if args.key?(:type)
114
- end
115
- end
116
-
117
- # Additional information about the source code location that produced the log
118
- # entry.
119
- class LogEntrySourceLocation
120
- include Google::Apis::Core::Hashable
166
+ attr_accessor :writer_identity
121
167
 
122
- # Optional. Source file name. Depending on the runtime environment, this might
123
- # be a simple name or a fully-qualified name.
124
- # Corresponds to the JSON property `file`
168
+ # Optional. The time at which this sink will begin exporting log entries. Log
169
+ # entries are exported only if their timestamp is not earlier than the start
170
+ # time. The default value of this field is the time the sink is created or
171
+ # updated.
172
+ # Corresponds to the JSON property `startTime`
125
173
  # @return [String]
126
- attr_accessor :file
174
+ attr_accessor :start_time
127
175
 
128
- # Optional. Human-readable name of the function or method being invoked, with
129
- # optional context such as the class or package name. This information may be
130
- # used in contexts such as the logs viewer, where a file and line number are
131
- # less meaningful. The format can vary by language. For example: qual.if.ied.
132
- # Class.method (Java), dir/package.func (Go), function (Python).
133
- # Corresponds to the JSON property `function`
176
+ # Optional. The log entry format to use for this sink's exported log entries.
177
+ # The v2 format is used by default. The v1 format is deprecated and should be
178
+ # used only as part of a migration effort to v2. See Migration to the v2 API.
179
+ # Corresponds to the JSON property `outputVersionFormat`
134
180
  # @return [String]
135
- attr_accessor :function
181
+ attr_accessor :output_version_format
136
182
 
137
- # Optional. Line within the source file. 1-based; 0 indicates no line number
138
- # available.
139
- # Corresponds to the JSON property `line`
140
- # @return [Fixnum]
141
- attr_accessor :line
183
+ # Required. The client-assigned sink identifier, unique within the project.
184
+ # Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100
185
+ # characters and can include only the following characters: upper and lower-case
186
+ # alphanumeric characters, underscores, hyphens, and periods.
187
+ # Corresponds to the JSON property `name`
188
+ # @return [String]
189
+ attr_accessor :name
142
190
 
143
191
  def initialize(**args)
144
192
  update!(**args)
@@ -146,68 +194,133 @@ module Google
146
194
 
147
195
  # Update properties of this object
148
196
  def update!(**args)
149
- @file = args[:file] if args.key?(:file)
150
- @function = args[:function] if args.key?(:function)
151
- @line = args[:line] if args.key?(:line)
197
+ @include_children = args[:include_children] if args.key?(:include_children)
198
+ @destination = args[:destination] if args.key?(:destination)
199
+ @filter = args[:filter] if args.key?(:filter)
200
+ @end_time = args[:end_time] if args.key?(:end_time)
201
+ @writer_identity = args[:writer_identity] if args.key?(:writer_identity)
202
+ @start_time = args[:start_time] if args.key?(:start_time)
203
+ @output_version_format = args[:output_version_format] if args.key?(:output_version_format)
204
+ @name = args[:name] if args.key?(:name)
152
205
  end
153
206
  end
154
207
 
155
- # Result returned from ListLogEntries.
156
- class ListLogEntriesResponse
208
+ # Result returned from ListLogs.
209
+ class ListLogsResponse
157
210
  include Google::Apis::Core::Hashable
158
211
 
159
- # A list of log entries.
160
- # Corresponds to the JSON property `entries`
161
- # @return [Array<Google::Apis::LoggingV2beta1::LogEntry>]
162
- attr_accessor :entries
163
-
164
212
  # If there might be more results than those appearing in this response, then
165
213
  # nextPageToken is included. To get the next set of results, call this method
166
- # again using the value of nextPageToken as pageToken.If a value for
167
- # next_page_token appears and the entries field is empty, it means that the
168
- # search found no log entries so far but it did not have time to search all the
169
- # possible log entries. Retry the method with this value for page_token to
170
- # continue the search. Alternatively, consider speeding up the search by
171
- # changing your filter to specify a single log name or resource type, or to
172
- # narrow the time range of the search.
214
+ # again using the value of nextPageToken as pageToken.
173
215
  # Corresponds to the JSON property `nextPageToken`
174
216
  # @return [String]
175
217
  attr_accessor :next_page_token
176
218
 
219
+ # A list of log names. For example, "projects/my-project/syslog" or "
220
+ # organizations/123/cloudresourcemanager.googleapis.com%2Factivity".
221
+ # Corresponds to the JSON property `logNames`
222
+ # @return [Array<String>]
223
+ attr_accessor :log_names
224
+
177
225
  def initialize(**args)
178
226
  update!(**args)
179
227
  end
180
228
 
181
229
  # Update properties of this object
182
230
  def update!(**args)
183
- @entries = args[:entries] if args.key?(:entries)
184
231
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
232
+ @log_names = args[:log_names] if args.key?(:log_names)
185
233
  end
186
234
  end
187
235
 
188
- # Application log line emitted while processing a request.
189
- class LogLine
236
+ # A common proto for logging HTTP requests. Only contains semantics defined by
237
+ # the HTTP specification. Product-specific logging information MUST be defined
238
+ # in a separate message.
239
+ class HttpRequest
190
240
  include Google::Apis::Core::Hashable
191
241
 
192
- # Severity of this log entry.
193
- # Corresponds to the JSON property `severity`
242
+ # The user agent sent by the client. Example: "Mozilla/4.0 (compatible; MSIE 6.0;
243
+ # Windows 98; Q312461; .NET CLR 1.0.3705)".
244
+ # Corresponds to the JSON property `userAgent`
194
245
  # @return [String]
195
- attr_accessor :severity
246
+ attr_accessor :user_agent
196
247
 
197
- # App-provided log message.
198
- # Corresponds to the JSON property `logMessage`
248
+ # The request processing latency on the server, from the time the request was
249
+ # received until the response was sent.
250
+ # Corresponds to the JSON property `latency`
199
251
  # @return [String]
200
- attr_accessor :log_message
252
+ attr_accessor :latency
201
253
 
202
- # Specifies a location in a source code file.
203
- # Corresponds to the JSON property `sourceLocation`
204
- # @return [Google::Apis::LoggingV2beta1::SourceLocation]
205
- attr_accessor :source_location
254
+ # The number of HTTP response bytes inserted into cache. Set only when a cache
255
+ # fill was attempted.
256
+ # Corresponds to the JSON property `cacheFillBytes`
257
+ # @return [Fixnum]
258
+ attr_accessor :cache_fill_bytes
206
259
 
207
- # Approximate time when this log entry was made.
208
- # Corresponds to the JSON property `time`
260
+ # The request method. Examples: "GET", "HEAD", "PUT", "POST".
261
+ # Corresponds to the JSON property `requestMethod`
209
262
  # @return [String]
210
- attr_accessor :time
263
+ attr_accessor :request_method
264
+
265
+ # The size of the HTTP response message sent back to the client, in bytes,
266
+ # including the response headers and the response body.
267
+ # Corresponds to the JSON property `responseSize`
268
+ # @return [Fixnum]
269
+ attr_accessor :response_size
270
+
271
+ # The size of the HTTP request message in bytes, including the request headers
272
+ # and the request body.
273
+ # Corresponds to the JSON property `requestSize`
274
+ # @return [Fixnum]
275
+ attr_accessor :request_size
276
+
277
+ # The scheme (http, https), the host name, the path and the query portion of the
278
+ # URL that was requested. Example: "http://example.com/some/info?color=red".
279
+ # Corresponds to the JSON property `requestUrl`
280
+ # @return [String]
281
+ attr_accessor :request_url
282
+
283
+ # The IP address (IPv4 or IPv6) of the origin server that the request was sent
284
+ # to.
285
+ # Corresponds to the JSON property `serverIp`
286
+ # @return [String]
287
+ attr_accessor :server_ip
288
+
289
+ # The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
290
+ # Examples: "192.168.1.1", "FE80::0202:B3FF:FE1E:8329".
291
+ # Corresponds to the JSON property `remoteIp`
292
+ # @return [String]
293
+ attr_accessor :remote_ip
294
+
295
+ # Whether or not a cache lookup was attempted.
296
+ # Corresponds to the JSON property `cacheLookup`
297
+ # @return [Boolean]
298
+ attr_accessor :cache_lookup
299
+ alias_method :cache_lookup?, :cache_lookup
300
+
301
+ # Whether or not an entity was served from cache (with or without validation).
302
+ # Corresponds to the JSON property `cacheHit`
303
+ # @return [Boolean]
304
+ attr_accessor :cache_hit
305
+ alias_method :cache_hit?, :cache_hit
306
+
307
+ # Whether or not the response was validated with the origin server before being
308
+ # served from cache. This field is only meaningful if cache_hit is True.
309
+ # Corresponds to the JSON property `cacheValidatedWithOriginServer`
310
+ # @return [Boolean]
311
+ attr_accessor :cache_validated_with_origin_server
312
+ alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server
313
+
314
+ # The response code indicating the status of response. Examples: 200, 404.
315
+ # Corresponds to the JSON property `status`
316
+ # @return [Fixnum]
317
+ attr_accessor :status
318
+
319
+ # The referer URL of the request, as defined in HTTP/1.1 Header Field
320
+ # Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
321
+ # Corresponds to the JSON property `referer`
322
+ # @return [String]
323
+ attr_accessor :referer
211
324
 
212
325
  def initialize(**args)
213
326
  update!(**args)
@@ -215,25 +328,35 @@ module Google
215
328
 
216
329
  # Update properties of this object
217
330
  def update!(**args)
218
- @severity = args[:severity] if args.key?(:severity)
219
- @log_message = args[:log_message] if args.key?(:log_message)
220
- @source_location = args[:source_location] if args.key?(:source_location)
221
- @time = args[:time] if args.key?(:time)
331
+ @user_agent = args[:user_agent] if args.key?(:user_agent)
332
+ @latency = args[:latency] if args.key?(:latency)
333
+ @cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes)
334
+ @request_method = args[:request_method] if args.key?(:request_method)
335
+ @response_size = args[:response_size] if args.key?(:response_size)
336
+ @request_size = args[:request_size] if args.key?(:request_size)
337
+ @request_url = args[:request_url] if args.key?(:request_url)
338
+ @server_ip = args[:server_ip] if args.key?(:server_ip)
339
+ @remote_ip = args[:remote_ip] if args.key?(:remote_ip)
340
+ @cache_lookup = args[:cache_lookup] if args.key?(:cache_lookup)
341
+ @cache_hit = args[:cache_hit] if args.key?(:cache_hit)
342
+ @cache_validated_with_origin_server = args[:cache_validated_with_origin_server] if args.key?(:cache_validated_with_origin_server)
343
+ @status = args[:status] if args.key?(:status)
344
+ @referer = args[:referer] if args.key?(:referer)
222
345
  end
223
346
  end
224
347
 
225
- # Result returned from ListLogMetrics.
226
- class ListLogMetricsResponse
348
+ # Result returned from ListSinks.
349
+ class ListSinksResponse
227
350
  include Google::Apis::Core::Hashable
228
351
 
229
- # A list of logs-based metrics.
230
- # Corresponds to the JSON property `metrics`
231
- # @return [Array<Google::Apis::LoggingV2beta1::LogMetric>]
232
- attr_accessor :metrics
352
+ # A list of sinks.
353
+ # Corresponds to the JSON property `sinks`
354
+ # @return [Array<Google::Apis::LoggingV2beta1::LogSink>]
355
+ attr_accessor :sinks
233
356
 
234
357
  # If there might be more results than appear in this response, then
235
- # nextPageToken is included. To get the next set of results, call this method
236
- # again using the value of nextPageToken as pageToken.
358
+ # nextPageToken is included. To get the next set of results, call the same
359
+ # method again using the value of nextPageToken as pageToken.
237
360
  # Corresponds to the JSON property `nextPageToken`
238
361
  # @return [String]
239
362
  attr_accessor :next_page_token
@@ -244,102 +367,322 @@ module Google
244
367
 
245
368
  # Update properties of this object
246
369
  def update!(**args)
247
- @metrics = args[:metrics] if args.key?(:metrics)
370
+ @sinks = args[:sinks] if args.key?(:sinks)
248
371
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
249
372
  end
250
373
  end
251
374
 
252
- # A generic empty message that you can re-use to avoid defining duplicated empty
253
- # messages in your APIs. A typical example is to use it as the request or the
254
- # response type of an API method. For instance:
255
- # service Foo `
256
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
257
- # `
258
- # The JSON representation for Empty is empty JSON object ``.
259
- class Empty
375
+ # A description of a label.
376
+ class LabelDescriptor
260
377
  include Google::Apis::Core::Hashable
261
378
 
379
+ # The type of data that can be assigned to the label.
380
+ # Corresponds to the JSON property `valueType`
381
+ # @return [String]
382
+ attr_accessor :value_type
383
+
384
+ # The label key.
385
+ # Corresponds to the JSON property `key`
386
+ # @return [String]
387
+ attr_accessor :key
388
+
389
+ # A human-readable description for the label.
390
+ # Corresponds to the JSON property `description`
391
+ # @return [String]
392
+ attr_accessor :description
393
+
262
394
  def initialize(**args)
263
395
  update!(**args)
264
396
  end
265
397
 
266
398
  # Update properties of this object
267
399
  def update!(**args)
400
+ @value_type = args[:value_type] if args.key?(:value_type)
401
+ @key = args[:key] if args.key?(:key)
402
+ @description = args[:description] if args.key?(:description)
268
403
  end
269
404
  end
270
405
 
271
- # An individual entry in a log.
272
- class LogEntry
406
+ # An object that describes the schema of a MonitoredResource object using a type
407
+ # name and a set of labels. For example, the monitored resource descriptor for
408
+ # Google Compute Engine VM instances has a type of "gce_instance" and specifies
409
+ # the use of the labels "instance_id" and "zone" to identify particular VM
410
+ # instances.Different APIs can support different monitored resource types. APIs
411
+ # generally provide a list method that returns the monitored resource
412
+ # descriptors used by the API.
413
+ class MonitoredResourceDescriptor
273
414
  include Google::Apis::Core::Hashable
274
415
 
275
- # Optional. A set of user-defined (key, value) data that provides additional
276
- # information about the log entry.
416
+ # Required. A set of labels used to describe instances of this monitored
417
+ # resource type. For example, an individual Google Cloud SQL database is
418
+ # identified by values for the labels "database_id" and "zone".
277
419
  # Corresponds to the JSON property `labels`
278
- # @return [Hash<String,String>]
420
+ # @return [Array<Google::Apis::LoggingV2beta1::LabelDescriptor>]
279
421
  attr_accessor :labels
280
422
 
281
- # Optional. Resource name of the trace associated with the log entry, if any. If
282
- # it contains a relative resource name, the name is assumed to be relative to //
283
- # tracing.googleapis.com. Example: projects/my-projectid/traces/
284
- # 06796866738c859f2f19b7cfb3214824
285
- # Corresponds to the JSON property `trace`
286
- # @return [String]
287
- attr_accessor :trace
288
-
289
- # Optional. The severity of the log entry. The default value is LogSeverity.
290
- # DEFAULT.
291
- # Corresponds to the JSON property `severity`
423
+ # Optional. The resource name of the monitored resource descriptor: "projects/`
424
+ # project_id`/monitoredResourceDescriptors/`type`" where `type` is the value of
425
+ # the type field in this object and `project_id` is a project ID that provides
426
+ # API-specific context for accessing the type. APIs that do not use project
427
+ # information can use the resource name format "monitoredResourceDescriptors/`
428
+ # type`".
429
+ # Corresponds to the JSON property `name`
292
430
  # @return [String]
293
- attr_accessor :severity
294
-
295
- # Additional information about the source code location that produced the log
296
- # entry.
297
- # Corresponds to the JSON property `sourceLocation`
298
- # @return [Google::Apis::LoggingV2beta1::LogEntrySourceLocation]
299
- attr_accessor :source_location
431
+ attr_accessor :name
300
432
 
301
- # Optional. The time the event described by the log entry occurred. If omitted
302
- # in a new log entry, Stackdriver Logging will insert the time the log entry is
303
- # received. Stackdriver Logging might reject log entries whose time stamps are
304
- # more than a couple of hours in the future. Log entries with time stamps in the
305
- # past are accepted.
306
- # Corresponds to the JSON property `timestamp`
433
+ # Optional. A concise name for the monitored resource type that might be
434
+ # displayed in user interfaces. It should be a Title Cased Noun Phrase, without
435
+ # any article or other determiners. For example, "Google Cloud SQL Database".
436
+ # Corresponds to the JSON property `displayName`
307
437
  # @return [String]
308
- attr_accessor :timestamp
438
+ attr_accessor :display_name
309
439
 
310
- # Output only. The time the log entry was received by Stackdriver Logging.
311
- # Corresponds to the JSON property `receiveTimestamp`
440
+ # Optional. A detailed description of the monitored resource type that might be
441
+ # used in documentation.
442
+ # Corresponds to the JSON property `description`
312
443
  # @return [String]
313
- attr_accessor :receive_timestamp
444
+ attr_accessor :description
314
445
 
315
- # Required. The resource name of the log to which this log entry belongs:
316
- # "projects/[PROJECT_ID]/logs/[LOG_ID]"
317
- # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
318
- # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
319
- # "folders/[FOLDER_ID]/logs/[LOG_ID]"
320
- # [LOG_ID] must be URL-encoded within log_name. Example: "organizations/
321
- # 1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". [LOG_ID] must
322
- # be less than 512 characters long and can only include the following characters:
323
- # upper and lower case alphanumeric characters, forward-slash, underscore,
324
- # hyphen, and period.For backward compatibility, if log_name begins with a
325
- # forward-slash, such as /projects/..., then the log entry is ingested as usual
326
- # but the forward-slash is removed. Listing the log entry will not show the
327
- # leading slash and filtering for a log name with a leading slash will never
328
- # return any results.
329
- # Corresponds to the JSON property `logName`
446
+ # Required. The monitored resource type. For example, the type "
447
+ # cloudsql_database" represents databases in Google Cloud SQL. The maximum
448
+ # length of this value is 256 characters.
449
+ # Corresponds to the JSON property `type`
330
450
  # @return [String]
331
- attr_accessor :log_name
451
+ attr_accessor :type
332
452
 
333
- # A common proto for logging HTTP requests. Only contains semantics defined by
334
- # the HTTP specification. Product-specific logging information MUST be defined
335
- # in a separate message.
336
- # Corresponds to the JSON property `httpRequest`
337
- # @return [Google::Apis::LoggingV2beta1::HttpRequest]
338
- attr_accessor :http_request
453
+ def initialize(**args)
454
+ update!(**args)
455
+ end
339
456
 
340
- # An object representing a resource that can be used for monitoring, logging,
341
- # billing, or other purposes. Examples include virtual machine instances,
342
- # databases, and storage devices such as disks. The type field identifies a
457
+ # Update properties of this object
458
+ def update!(**args)
459
+ @labels = args[:labels] if args.key?(:labels)
460
+ @name = args[:name] if args.key?(:name)
461
+ @display_name = args[:display_name] if args.key?(:display_name)
462
+ @description = args[:description] if args.key?(:description)
463
+ @type = args[:type] if args.key?(:type)
464
+ end
465
+ end
466
+
467
+ # Additional information about the source code location that produced the log
468
+ # entry.
469
+ class LogEntrySourceLocation
470
+ include Google::Apis::Core::Hashable
471
+
472
+ # Optional. Source file name. Depending on the runtime environment, this might
473
+ # be a simple name or a fully-qualified name.
474
+ # Corresponds to the JSON property `file`
475
+ # @return [String]
476
+ attr_accessor :file
477
+
478
+ # Optional. Human-readable name of the function or method being invoked, with
479
+ # optional context such as the class or package name. This information may be
480
+ # used in contexts such as the logs viewer, where a file and line number are
481
+ # less meaningful. The format can vary by language. For example: qual.if.ied.
482
+ # Class.method (Java), dir/package.func (Go), function (Python).
483
+ # Corresponds to the JSON property `function`
484
+ # @return [String]
485
+ attr_accessor :function
486
+
487
+ # Optional. Line within the source file. 1-based; 0 indicates no line number
488
+ # available.
489
+ # Corresponds to the JSON property `line`
490
+ # @return [Fixnum]
491
+ attr_accessor :line
492
+
493
+ def initialize(**args)
494
+ update!(**args)
495
+ end
496
+
497
+ # Update properties of this object
498
+ def update!(**args)
499
+ @file = args[:file] if args.key?(:file)
500
+ @function = args[:function] if args.key?(:function)
501
+ @line = args[:line] if args.key?(:line)
502
+ end
503
+ end
504
+
505
+ # Result returned from ListLogEntries.
506
+ class ListLogEntriesResponse
507
+ include Google::Apis::Core::Hashable
508
+
509
+ # A list of log entries.
510
+ # Corresponds to the JSON property `entries`
511
+ # @return [Array<Google::Apis::LoggingV2beta1::LogEntry>]
512
+ attr_accessor :entries
513
+
514
+ # If there might be more results than those appearing in this response, then
515
+ # nextPageToken is included. To get the next set of results, call this method
516
+ # again using the value of nextPageToken as pageToken.If a value for
517
+ # next_page_token appears and the entries field is empty, it means that the
518
+ # search found no log entries so far but it did not have time to search all the
519
+ # possible log entries. Retry the method with this value for page_token to
520
+ # continue the search. Alternatively, consider speeding up the search by
521
+ # changing your filter to specify a single log name or resource type, or to
522
+ # narrow the time range of the search.
523
+ # Corresponds to the JSON property `nextPageToken`
524
+ # @return [String]
525
+ attr_accessor :next_page_token
526
+
527
+ def initialize(**args)
528
+ update!(**args)
529
+ end
530
+
531
+ # Update properties of this object
532
+ def update!(**args)
533
+ @entries = args[:entries] if args.key?(:entries)
534
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
535
+ end
536
+ end
537
+
538
+ # Application log line emitted while processing a request.
539
+ class LogLine
540
+ include Google::Apis::Core::Hashable
541
+
542
+ # Severity of this log entry.
543
+ # Corresponds to the JSON property `severity`
544
+ # @return [String]
545
+ attr_accessor :severity
546
+
547
+ # App-provided log message.
548
+ # Corresponds to the JSON property `logMessage`
549
+ # @return [String]
550
+ attr_accessor :log_message
551
+
552
+ # Specifies a location in a source code file.
553
+ # Corresponds to the JSON property `sourceLocation`
554
+ # @return [Google::Apis::LoggingV2beta1::SourceLocation]
555
+ attr_accessor :source_location
556
+
557
+ # Approximate time when this log entry was made.
558
+ # Corresponds to the JSON property `time`
559
+ # @return [String]
560
+ attr_accessor :time
561
+
562
+ def initialize(**args)
563
+ update!(**args)
564
+ end
565
+
566
+ # Update properties of this object
567
+ def update!(**args)
568
+ @severity = args[:severity] if args.key?(:severity)
569
+ @log_message = args[:log_message] if args.key?(:log_message)
570
+ @source_location = args[:source_location] if args.key?(:source_location)
571
+ @time = args[:time] if args.key?(:time)
572
+ end
573
+ end
574
+
575
+ # Result returned from ListLogMetrics.
576
+ class ListLogMetricsResponse
577
+ include Google::Apis::Core::Hashable
578
+
579
+ # If there might be more results than appear in this response, then
580
+ # nextPageToken is included. To get the next set of results, call this method
581
+ # again using the value of nextPageToken as pageToken.
582
+ # Corresponds to the JSON property `nextPageToken`
583
+ # @return [String]
584
+ attr_accessor :next_page_token
585
+
586
+ # A list of logs-based metrics.
587
+ # Corresponds to the JSON property `metrics`
588
+ # @return [Array<Google::Apis::LoggingV2beta1::LogMetric>]
589
+ attr_accessor :metrics
590
+
591
+ def initialize(**args)
592
+ update!(**args)
593
+ end
594
+
595
+ # Update properties of this object
596
+ def update!(**args)
597
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
598
+ @metrics = args[:metrics] if args.key?(:metrics)
599
+ end
600
+ end
601
+
602
+ # A generic empty message that you can re-use to avoid defining duplicated empty
603
+ # messages in your APIs. A typical example is to use it as the request or the
604
+ # response type of an API method. For instance:
605
+ # service Foo `
606
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
607
+ # `
608
+ # The JSON representation for Empty is empty JSON object ``.
609
+ class Empty
610
+ include Google::Apis::Core::Hashable
611
+
612
+ def initialize(**args)
613
+ update!(**args)
614
+ end
615
+
616
+ # Update properties of this object
617
+ def update!(**args)
618
+ end
619
+ end
620
+
621
+ # An individual entry in a log.
622
+ class LogEntry
623
+ include Google::Apis::Core::Hashable
624
+
625
+ # Optional. A set of user-defined (key, value) data that provides additional
626
+ # information about the log entry.
627
+ # Corresponds to the JSON property `labels`
628
+ # @return [Hash<String,String>]
629
+ attr_accessor :labels
630
+
631
+ # Optional. Resource name of the trace associated with the log entry, if any. If
632
+ # it contains a relative resource name, the name is assumed to be relative to //
633
+ # tracing.googleapis.com. Example: projects/my-projectid/traces/
634
+ # 06796866738c859f2f19b7cfb3214824
635
+ # Corresponds to the JSON property `trace`
636
+ # @return [String]
637
+ attr_accessor :trace
638
+
639
+ # Optional. The severity of the log entry. The default value is LogSeverity.
640
+ # DEFAULT.
641
+ # Corresponds to the JSON property `severity`
642
+ # @return [String]
643
+ attr_accessor :severity
644
+
645
+ # Additional information about the source code location that produced the log
646
+ # entry.
647
+ # Corresponds to the JSON property `sourceLocation`
648
+ # @return [Google::Apis::LoggingV2beta1::LogEntrySourceLocation]
649
+ attr_accessor :source_location
650
+
651
+ # Optional. The time the event described by the log entry occurred. If omitted
652
+ # in a new log entry, Stackdriver Logging will insert the time the log entry is
653
+ # received. Stackdriver Logging might reject log entries whose time stamps are
654
+ # more than a couple of hours in the future. Log entries with time stamps in the
655
+ # past are accepted.
656
+ # Corresponds to the JSON property `timestamp`
657
+ # @return [String]
658
+ attr_accessor :timestamp
659
+
660
+ # Output only. The time the log entry was received by Stackdriver Logging.
661
+ # Corresponds to the JSON property `receiveTimestamp`
662
+ # @return [String]
663
+ attr_accessor :receive_timestamp
664
+
665
+ # Required. The resource name of the log to which this log entry belongs:
666
+ # "projects/[PROJECT_ID]/logs/[LOG_ID]"
667
+ # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
668
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
669
+ # "folders/[FOLDER_ID]/logs/[LOG_ID]"
670
+ # [LOG_ID] must be URL-encoded within log_name. Example: "organizations/
671
+ # 1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". [LOG_ID] must
672
+ # be less than 512 characters long and can only include the following characters:
673
+ # upper and lower case alphanumeric characters, forward-slash, underscore,
674
+ # hyphen, and period.For backward compatibility, if log_name begins with a
675
+ # forward-slash, such as /projects/..., then the log entry is ingested as usual
676
+ # but the forward-slash is removed. Listing the log entry will not show the
677
+ # leading slash and filtering for a log name with a leading slash will never
678
+ # return any results.
679
+ # Corresponds to the JSON property `logName`
680
+ # @return [String]
681
+ attr_accessor :log_name
682
+
683
+ # An object representing a resource that can be used for monitoring, logging,
684
+ # billing, or other purposes. Examples include virtual machine instances,
685
+ # databases, and storage devices such as disks. The type field identifies a
343
686
  # MonitoredResourceDescriptor object that describes the resource's schema.
344
687
  # Information in the labels field identifies the actual resource and its
345
688
  # attributes according to the schema. For example, a particular Compute Engine
@@ -353,12 +696,25 @@ module Google
353
696
  # @return [Google::Apis::LoggingV2beta1::MonitoredResource]
354
697
  attr_accessor :resource
355
698
 
699
+ # A common proto for logging HTTP requests. Only contains semantics defined by
700
+ # the HTTP specification. Product-specific logging information MUST be defined
701
+ # in a separate message.
702
+ # Corresponds to the JSON property `httpRequest`
703
+ # @return [Google::Apis::LoggingV2beta1::HttpRequest]
704
+ attr_accessor :http_request
705
+
356
706
  # The log entry payload, represented as a structure that is expressed as a JSON
357
707
  # object.
358
708
  # Corresponds to the JSON property `jsonPayload`
359
709
  # @return [Hash<String,Object>]
360
710
  attr_accessor :json_payload
361
711
 
712
+ # Additional information about a potentially long-running operation with which a
713
+ # log entry is associated.
714
+ # Corresponds to the JSON property `operation`
715
+ # @return [Google::Apis::LoggingV2beta1::LogEntryOperation]
716
+ attr_accessor :operation
717
+
362
718
  # Optional. A unique identifier for the log entry. If you provide a value, then
363
719
  # Stackdriver Logging considers other log entries in the same project, with the
364
720
  # same timestamp, and with the same insert_id to be duplicates which can be
@@ -369,12 +725,6 @@ module Google
369
725
  # @return [String]
370
726
  attr_accessor :insert_id
371
727
 
372
- # Additional information about a potentially long-running operation with which a
373
- # log entry is associated.
374
- # Corresponds to the JSON property `operation`
375
- # @return [Google::Apis::LoggingV2beta1::LogEntryOperation]
376
- attr_accessor :operation
377
-
378
728
  # The log entry payload, represented as a Unicode string (UTF-8).
379
729
  # Corresponds to the JSON property `textPayload`
380
730
  # @return [String]
@@ -399,11 +749,11 @@ module Google
399
749
  @timestamp = args[:timestamp] if args.key?(:timestamp)
400
750
  @receive_timestamp = args[:receive_timestamp] if args.key?(:receive_timestamp)
401
751
  @log_name = args[:log_name] if args.key?(:log_name)
402
- @http_request = args[:http_request] if args.key?(:http_request)
403
752
  @resource = args[:resource] if args.key?(:resource)
753
+ @http_request = args[:http_request] if args.key?(:http_request)
404
754
  @json_payload = args[:json_payload] if args.key?(:json_payload)
405
- @insert_id = args[:insert_id] if args.key?(:insert_id)
406
755
  @operation = args[:operation] if args.key?(:operation)
756
+ @insert_id = args[:insert_id] if args.key?(:insert_id)
407
757
  @text_payload = args[:text_payload] if args.key?(:text_payload)
408
758
  @proto_payload = args[:proto_payload] if args.key?(:proto_payload)
409
759
  end
@@ -413,10 +763,15 @@ module Google
413
763
  class SourceLocation
414
764
  include Google::Apis::Core::Hashable
415
765
 
416
- # Source file name. Depending on the runtime environment, this might be a simple
417
- # name or a fully-qualified name.
418
- # Corresponds to the JSON property `file`
419
- # @return [String]
766
+ # Line within the source file.
767
+ # Corresponds to the JSON property `line`
768
+ # @return [Fixnum]
769
+ attr_accessor :line
770
+
771
+ # Source file name. Depending on the runtime environment, this might be a simple
772
+ # name or a fully-qualified name.
773
+ # Corresponds to the JSON property `file`
774
+ # @return [String]
420
775
  attr_accessor :file
421
776
 
422
777
  # Human-readable name of the function or method being invoked, with optional
@@ -428,20 +783,15 @@ module Google
428
783
  # @return [String]
429
784
  attr_accessor :function_name
430
785
 
431
- # Line within the source file.
432
- # Corresponds to the JSON property `line`
433
- # @return [Fixnum]
434
- attr_accessor :line
435
-
436
786
  def initialize(**args)
437
787
  update!(**args)
438
788
  end
439
789
 
440
790
  # Update properties of this object
441
791
  def update!(**args)
792
+ @line = args[:line] if args.key?(:line)
442
793
  @file = args[:file] if args.key?(:file)
443
794
  @function_name = args[:function_name] if args.key?(:function_name)
444
- @line = args[:line] if args.key?(:line)
445
795
  end
446
796
  end
447
797
 
@@ -449,6 +799,23 @@ module Google
449
799
  class ListLogEntriesRequest
450
800
  include Google::Apis::Core::Hashable
451
801
 
802
+ # Optional. A filter that chooses which log entries to return. See Advanced Logs
803
+ # Filters. Only log entries that match the filter are returned. An empty filter
804
+ # matches all log entries in the resources listed in resource_names. Referencing
805
+ # a parent resource that is not listed in resource_names will cause the filter
806
+ # to return no results. The maximum length of the filter is 20000 characters.
807
+ # Corresponds to the JSON property `filter`
808
+ # @return [String]
809
+ attr_accessor :filter
810
+
811
+ # Deprecated. Use resource_names instead. One or more project identifiers or
812
+ # project numbers from which to retrieve log entries. Example: "my-project-1A".
813
+ # If present, these project identifiers are converted to resource name format
814
+ # and added to the list of resources in resource_names.
815
+ # Corresponds to the JSON property `projectIds`
816
+ # @return [Array<String>]
817
+ attr_accessor :project_ids
818
+
452
819
  # Optional. If present, then retrieve the next batch of results from the
453
820
  # preceding call to this method. page_token must be the value of next_page_token
454
821
  # from the previous response. The values of other method parameters should be
@@ -485,35 +852,18 @@ module Google
485
852
  # @return [Array<String>]
486
853
  attr_accessor :resource_names
487
854
 
488
- # Deprecated. Use resource_names instead. One or more project identifiers or
489
- # project numbers from which to retrieve log entries. Example: "my-project-1A".
490
- # If present, these project identifiers are converted to resource name format
491
- # and added to the list of resources in resource_names.
492
- # Corresponds to the JSON property `projectIds`
493
- # @return [Array<String>]
494
- attr_accessor :project_ids
495
-
496
- # Optional. A filter that chooses which log entries to return. See Advanced Logs
497
- # Filters. Only log entries that match the filter are returned. An empty filter
498
- # matches all log entries in the resources listed in resource_names. Referencing
499
- # a parent resource that is not listed in resource_names will cause the filter
500
- # to return no results. The maximum length of the filter is 20000 characters.
501
- # Corresponds to the JSON property `filter`
502
- # @return [String]
503
- attr_accessor :filter
504
-
505
855
  def initialize(**args)
506
856
  update!(**args)
507
857
  end
508
858
 
509
859
  # Update properties of this object
510
860
  def update!(**args)
861
+ @filter = args[:filter] if args.key?(:filter)
862
+ @project_ids = args[:project_ids] if args.key?(:project_ids)
511
863
  @page_token = args[:page_token] if args.key?(:page_token)
512
864
  @page_size = args[:page_size] if args.key?(:page_size)
513
865
  @order_by = args[:order_by] if args.key?(:order_by)
514
866
  @resource_names = args[:resource_names] if args.key?(:resource_names)
515
- @project_ids = args[:project_ids] if args.key?(:project_ids)
516
- @filter = args[:filter] if args.key?(:filter)
517
867
  end
518
868
  end
519
869
 
@@ -522,6 +872,11 @@ module Google
522
872
  class RequestLog
523
873
  include Google::Apis::Core::Hashable
524
874
 
875
+ # Module of the application that handled this request.
876
+ # Corresponds to the JSON property `moduleId`
877
+ # @return [String]
878
+ attr_accessor :module_id
879
+
525
880
  # Time when the request finished.
526
881
  # Corresponds to the JSON property `endTime`
527
882
  # @return [String]
@@ -560,16 +915,16 @@ module Google
560
915
  # @return [Array<Google::Apis::LoggingV2beta1::LogLine>]
561
916
  attr_accessor :line
562
917
 
563
- # Queue name of the request, in the case of an offline request.
564
- # Corresponds to the JSON property `taskQueueName`
565
- # @return [String]
566
- attr_accessor :task_queue_name
567
-
568
918
  # Referrer URL of request.
569
919
  # Corresponds to the JSON property `referrer`
570
920
  # @return [String]
571
921
  attr_accessor :referrer
572
922
 
923
+ # Queue name of the request, in the case of an offline request.
924
+ # Corresponds to the JSON property `taskQueueName`
925
+ # @return [String]
926
+ attr_accessor :task_queue_name
927
+
573
928
  # Globally unique identifier for a request, which is based on the request start
574
929
  # time. Request IDs for requests which started later will compare greater as
575
930
  # strings than those for requests which started earlier.
@@ -694,17 +1049,13 @@ module Google
694
1049
  # @return [String]
695
1050
  attr_accessor :version_id
696
1051
 
697
- # Module of the application that handled this request.
698
- # Corresponds to the JSON property `moduleId`
699
- # @return [String]
700
- attr_accessor :module_id
701
-
702
1052
  def initialize(**args)
703
1053
  update!(**args)
704
1054
  end
705
1055
 
706
1056
  # Update properties of this object
707
1057
  def update!(**args)
1058
+ @module_id = args[:module_id] if args.key?(:module_id)
708
1059
  @end_time = args[:end_time] if args.key?(:end_time)
709
1060
  @user_agent = args[:user_agent] if args.key?(:user_agent)
710
1061
  @was_loading_request = args[:was_loading_request] if args.key?(:was_loading_request)
@@ -712,428 +1063,37 @@ module Google
712
1063
  @response_size = args[:response_size] if args.key?(:response_size)
713
1064
  @trace_id = args[:trace_id] if args.key?(:trace_id)
714
1065
  @line = args[:line] if args.key?(:line)
715
- @task_queue_name = args[:task_queue_name] if args.key?(:task_queue_name)
716
1066
  @referrer = args[:referrer] if args.key?(:referrer)
1067
+ @task_queue_name = args[:task_queue_name] if args.key?(:task_queue_name)
717
1068
  @request_id = args[:request_id] if args.key?(:request_id)
718
1069
  @nickname = args[:nickname] if args.key?(:nickname)
719
1070
  @status = args[:status] if args.key?(:status)
720
1071
  @resource = args[:resource] if args.key?(:resource)
721
- @pending_time = args[:pending_time] if args.key?(:pending_time)
722
- @task_name = args[:task_name] if args.key?(:task_name)
723
- @url_map_entry = args[:url_map_entry] if args.key?(:url_map_entry)
724
- @instance_index = args[:instance_index] if args.key?(:instance_index)
725
- @host = args[:host] if args.key?(:host)
726
- @finished = args[:finished] if args.key?(:finished)
727
- @http_version = args[:http_version] if args.key?(:http_version)
728
- @start_time = args[:start_time] if args.key?(:start_time)
729
- @latency = args[:latency] if args.key?(:latency)
730
- @ip = args[:ip] if args.key?(:ip)
731
- @app_id = args[:app_id] if args.key?(:app_id)
732
- @app_engine_release = args[:app_engine_release] if args.key?(:app_engine_release)
733
- @method_prop = args[:method_prop] if args.key?(:method_prop)
734
- @cost = args[:cost] if args.key?(:cost)
735
- @instance_id = args[:instance_id] if args.key?(:instance_id)
736
- @mega_cycles = args[:mega_cycles] if args.key?(:mega_cycles)
737
- @first = args[:first] if args.key?(:first)
738
- @version_id = args[:version_id] if args.key?(:version_id)
739
- @module_id = args[:module_id] if args.key?(:module_id)
740
- end
741
- end
742
-
743
- # Result returned from ListMonitoredResourceDescriptors.
744
- class ListMonitoredResourceDescriptorsResponse
745
- include Google::Apis::Core::Hashable
746
-
747
- # If there might be more results than those appearing in this response, then
748
- # nextPageToken is included. To get the next set of results, call this method
749
- # again using the value of nextPageToken as pageToken.
750
- # Corresponds to the JSON property `nextPageToken`
751
- # @return [String]
752
- attr_accessor :next_page_token
753
-
754
- # A list of resource descriptors.
755
- # Corresponds to the JSON property `resourceDescriptors`
756
- # @return [Array<Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor>]
757
- attr_accessor :resource_descriptors
758
-
759
- def initialize(**args)
760
- update!(**args)
761
- end
762
-
763
- # Update properties of this object
764
- def update!(**args)
765
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
766
- @resource_descriptors = args[:resource_descriptors] if args.key?(:resource_descriptors)
767
- end
768
- end
769
-
770
- # A reference to a particular snapshot of the source tree used to build and
771
- # deploy an application.
772
- class SourceReference
773
- include Google::Apis::Core::Hashable
774
-
775
- # The canonical and persistent identifier of the deployed revision. Example (git)
776
- # : "0035781c50ec7aa23385dc841529ce8a4b70db1b"
777
- # Corresponds to the JSON property `revisionId`
778
- # @return [String]
779
- attr_accessor :revision_id
780
-
781
- # Optional. A URI string identifying the repository. Example: "https://github.
782
- # com/GoogleCloudPlatform/kubernetes.git"
783
- # Corresponds to the JSON property `repository`
784
- # @return [String]
785
- attr_accessor :repository
786
-
787
- def initialize(**args)
788
- update!(**args)
789
- end
790
-
791
- # Update properties of this object
792
- def update!(**args)
793
- @revision_id = args[:revision_id] if args.key?(:revision_id)
794
- @repository = args[:repository] if args.key?(:repository)
795
- end
796
- end
797
-
798
- # Describes a logs-based metric. The value of the metric is the number of log
799
- # entries that match a logs filter in a given time interval.
800
- class LogMetric
801
- include Google::Apis::Core::Hashable
802
-
803
- # Output only. The API version that created or updated this metric. The version
804
- # also dictates the syntax of the filter expression. When a value for this field
805
- # is missing, the default value of V2 should be assumed.
806
- # Corresponds to the JSON property `version`
807
- # @return [String]
808
- attr_accessor :version
809
-
810
- # Required. An advanced logs filter which is used to match log entries. Example:
811
- # "resource.type=gae_app AND severity>=ERROR"
812
- # The maximum length of the filter is 20000 characters.
813
- # Corresponds to the JSON property `filter`
814
- # @return [String]
815
- attr_accessor :filter
816
-
817
- # Required. The client-assigned metric identifier. Examples: "error_count", "
818
- # nginx/requests".Metric identifiers are limited to 100 characters and can
819
- # include only the following characters: A-Z, a-z, 0-9, and the special
820
- # characters _-.,+!*',()%/. The forward-slash character (/) denotes a hierarchy
821
- # of name pieces, and it cannot be the first character of the name.The metric
822
- # identifier in this field must not be URL-encoded (https://en.wikipedia.org/
823
- # wiki/Percent-encoding). However, when the metric identifier appears as the [
824
- # METRIC_ID] part of a metric_name API parameter, then the metric identifier
825
- # must be URL-encoded. Example: "projects/my-project/metrics/nginx%2Frequests".
826
- # Corresponds to the JSON property `name`
827
- # @return [String]
828
- attr_accessor :name
829
-
830
- # Optional. A description of this metric, which is used in documentation.
831
- # Corresponds to the JSON property `description`
832
- # @return [String]
833
- attr_accessor :description
834
-
835
- def initialize(**args)
836
- update!(**args)
837
- end
838
-
839
- # Update properties of this object
840
- def update!(**args)
841
- @version = args[:version] if args.key?(:version)
842
- @filter = args[:filter] if args.key?(:filter)
843
- @name = args[:name] if args.key?(:name)
844
- @description = args[:description] if args.key?(:description)
845
- end
846
- end
847
-
848
- # Result returned from WriteLogEntries. empty
849
- class WriteLogEntriesResponse
850
- include Google::Apis::Core::Hashable
851
-
852
- def initialize(**args)
853
- update!(**args)
854
- end
855
-
856
- # Update properties of this object
857
- def update!(**args)
858
- end
859
- end
860
-
861
- # Additional information about a potentially long-running operation with which a
862
- # log entry is associated.
863
- class LogEntryOperation
864
- include Google::Apis::Core::Hashable
865
-
866
- # Optional. Set this to True if this is the last log entry in the operation.
867
- # Corresponds to the JSON property `last`
868
- # @return [Boolean]
869
- attr_accessor :last
870
- alias_method :last?, :last
871
-
872
- # Optional. An arbitrary operation identifier. Log entries with the same
873
- # identifier are assumed to be part of the same operation.
874
- # Corresponds to the JSON property `id`
875
- # @return [String]
876
- attr_accessor :id
877
-
878
- # Optional. An arbitrary producer identifier. The combination of id and producer
879
- # must be globally unique. Examples for producer: "MyDivision.MyBigCompany.com",
880
- # "github.com/MyProject/MyApplication".
881
- # Corresponds to the JSON property `producer`
882
- # @return [String]
883
- attr_accessor :producer
884
-
885
- # Optional. Set this to True if this is the first log entry in the operation.
886
- # Corresponds to the JSON property `first`
887
- # @return [Boolean]
888
- attr_accessor :first
889
- alias_method :first?, :first
890
-
891
- def initialize(**args)
892
- update!(**args)
893
- end
894
-
895
- # Update properties of this object
896
- def update!(**args)
897
- @last = args[:last] if args.key?(:last)
898
- @id = args[:id] if args.key?(:id)
899
- @producer = args[:producer] if args.key?(:producer)
900
- @first = args[:first] if args.key?(:first)
901
- end
902
- end
903
-
904
- # An object representing a resource that can be used for monitoring, logging,
905
- # billing, or other purposes. Examples include virtual machine instances,
906
- # databases, and storage devices such as disks. The type field identifies a
907
- # MonitoredResourceDescriptor object that describes the resource's schema.
908
- # Information in the labels field identifies the actual resource and its
909
- # attributes according to the schema. For example, a particular Compute Engine
910
- # VM instance could be represented by the following object, because the
911
- # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
912
- # zone":
913
- # ` "type": "gce_instance",
914
- # "labels": ` "instance_id": "12345678901234",
915
- # "zone": "us-central1-a" ``
916
- class MonitoredResource
917
- include Google::Apis::Core::Hashable
918
-
919
- # Required. Values for all of the labels listed in the associated monitored
920
- # resource descriptor. For example, Compute Engine VM instances use the labels "
921
- # project_id", "instance_id", and "zone".
922
- # Corresponds to the JSON property `labels`
923
- # @return [Hash<String,String>]
924
- attr_accessor :labels
925
-
926
- # Required. The monitored resource type. This field must match the type field of
927
- # a MonitoredResourceDescriptor object. For example, the type of a Compute
928
- # Engine VM instance is gce_instance.
929
- # Corresponds to the JSON property `type`
930
- # @return [String]
931
- attr_accessor :type
932
-
933
- def initialize(**args)
934
- update!(**args)
935
- end
936
-
937
- # Update properties of this object
938
- def update!(**args)
939
- @labels = args[:labels] if args.key?(:labels)
940
- @type = args[:type] if args.key?(:type)
941
- end
942
- end
943
-
944
- # Describes a sink used to export log entries to one of the following
945
- # destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a
946
- # Cloud Pub/Sub topic. A logs filter controls which log entries are exported.
947
- # The sink must be created within a project, organization, billing account, or
948
- # folder.
949
- class LogSink
950
- include Google::Apis::Core::Hashable
951
-
952
- # Optional. This field applies only to sinks owned by organizations and folders.
953
- # If the field is false, the default, only the logs owned by the sink's parent
954
- # resource are available for export. If the field is true, then logs from all
955
- # the projects, folders, and billing accounts contained in the sink's parent
956
- # resource are also available for export. Whether a particular log entry from
957
- # the children is exported depends on the sink's filter expression. For example,
958
- # if this field is true, then the filter resource.type=gce_instance would export
959
- # all Compute Engine VM instance log entries from all projects in the sink's
960
- # parent. To only export entries from certain child projects, filter on the
961
- # project part of the log name:
962
- # logName:("projects/test-project1/" OR "projects/test-project2/") AND
963
- # resource.type=gce_instance
964
- # Corresponds to the JSON property `includeChildren`
965
- # @return [Boolean]
966
- attr_accessor :include_children
967
- alias_method :include_children?, :include_children
968
-
969
- # Required. The export destination:
970
- # "storage.googleapis.com/[GCS_BUCKET]"
971
- # "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
972
- # "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
973
- # The sink's writer_identity, set when the sink is created, must have permission
974
- # to write to the destination or else the log entries are not exported. For more
975
- # information, see Exporting Logs With Sinks.
976
- # Corresponds to the JSON property `destination`
977
- # @return [String]
978
- attr_accessor :destination
979
-
980
- # Optional. An advanced logs filter. The only exported log entries are those
981
- # that are in the resource owning the sink and that match the filter. The filter
982
- # must use the log entry format specified by the output_version_format parameter.
983
- # For example, in the v2 format:
984
- # logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
985
- # Corresponds to the JSON property `filter`
986
- # @return [String]
987
- attr_accessor :filter
988
-
989
- # Optional. The time at which this sink will stop exporting log entries. Log
990
- # entries are exported only if their timestamp is earlier than the end time. If
991
- # this field is not supplied, there is no end time. If both a start time and an
992
- # end time are provided, then the end time must be later than the start time.
993
- # Corresponds to the JSON property `endTime`
994
- # @return [String]
995
- attr_accessor :end_time
996
-
997
- # Optional. The time at which this sink will begin exporting log entries. Log
998
- # entries are exported only if their timestamp is not earlier than the start
999
- # time. The default value of this field is the time the sink is created or
1000
- # updated.
1001
- # Corresponds to the JSON property `startTime`
1002
- # @return [String]
1003
- attr_accessor :start_time
1004
-
1005
- # Output only. An IAM identity&mdash;a service account or group&mdash;under
1006
- # which Stackdriver Logging writes the exported log entries to the sink's
1007
- # destination. This field is set by sinks.create and sinks.update, based on the
1008
- # setting of unique_writer_identity in those methods.Until you grant this
1009
- # identity write-access to the destination, log entry exports from this sink
1010
- # will fail. For more information, see Granting access for a resource. Consult
1011
- # the destination service's documentation to determine the appropriate IAM roles
1012
- # to assign to the identity.
1013
- # Corresponds to the JSON property `writerIdentity`
1014
- # @return [String]
1015
- attr_accessor :writer_identity
1016
-
1017
- # Optional. The log entry format to use for this sink's exported log entries.
1018
- # The v2 format is used by default. The v1 format is deprecated and should be
1019
- # used only as part of a migration effort to v2. See Migration to the v2 API.
1020
- # Corresponds to the JSON property `outputVersionFormat`
1021
- # @return [String]
1022
- attr_accessor :output_version_format
1023
-
1024
- # Required. The client-assigned sink identifier, unique within the project.
1025
- # Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100
1026
- # characters and can include only the following characters: upper and lower-case
1027
- # alphanumeric characters, underscores, hyphens, and periods.
1028
- # Corresponds to the JSON property `name`
1029
- # @return [String]
1030
- attr_accessor :name
1031
-
1032
- def initialize(**args)
1033
- update!(**args)
1034
- end
1035
-
1036
- # Update properties of this object
1037
- def update!(**args)
1038
- @include_children = args[:include_children] if args.key?(:include_children)
1039
- @destination = args[:destination] if args.key?(:destination)
1040
- @filter = args[:filter] if args.key?(:filter)
1041
- @end_time = args[:end_time] if args.key?(:end_time)
1042
- @start_time = args[:start_time] if args.key?(:start_time)
1043
- @writer_identity = args[:writer_identity] if args.key?(:writer_identity)
1044
- @output_version_format = args[:output_version_format] if args.key?(:output_version_format)
1045
- @name = args[:name] if args.key?(:name)
1046
- end
1047
- end
1048
-
1049
- # The parameters to WriteLogEntries.
1050
- class WriteLogEntriesRequest
1051
- include Google::Apis::Core::Hashable
1052
-
1053
- # Optional. A default log resource name that is assigned to all log entries in
1054
- # entries that do not specify a value for log_name:
1055
- # "projects/[PROJECT_ID]/logs/[LOG_ID]"
1056
- # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
1057
- # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
1058
- # "folders/[FOLDER_ID]/logs/[LOG_ID]"
1059
- # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
1060
- # or "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
1061
- # 2Factivity". For more information about log names, see LogEntry.
1062
- # Corresponds to the JSON property `logName`
1063
- # @return [String]
1064
- attr_accessor :log_name
1065
-
1066
- # Required. The log entries to write. Values supplied for the fields log_name,
1067
- # resource, and labels in this entries.write request are inserted into those log
1068
- # entries in this list that do not provide their own values.Stackdriver Logging
1069
- # also creates and inserts values for timestamp and insert_id if the entries do
1070
- # not provide them. The created insert_id for the N'th entry in this list will
1071
- # be greater than earlier entries and less than later entries. Otherwise, the
1072
- # order of log entries in this list does not matter.To improve throughput and to
1073
- # avoid exceeding the quota limit for calls to entries.write, you should write
1074
- # multiple log entries at once rather than calling this method for each
1075
- # individual log entry.
1076
- # Corresponds to the JSON property `entries`
1077
- # @return [Array<Google::Apis::LoggingV2beta1::LogEntry>]
1078
- attr_accessor :entries
1079
-
1080
- # Optional. Whether valid entries should be written even if some other entries
1081
- # fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any entry is not
1082
- # written, then the response status is the error associated with one of the
1083
- # failed entries and the response includes error details keyed by the entries'
1084
- # zero-based index in the entries.write method.
1085
- # Corresponds to the JSON property `partialSuccess`
1086
- # @return [Boolean]
1087
- attr_accessor :partial_success
1088
- alias_method :partial_success?, :partial_success
1089
-
1090
- # Optional. Default labels that are added to the labels field of all log entries
1091
- # in entries. If a log entry already has a label with the same key as a label in
1092
- # this parameter, then the log entry's label is not changed. See LogEntry.
1093
- # Corresponds to the JSON property `labels`
1094
- # @return [Hash<String,String>]
1095
- attr_accessor :labels
1096
-
1097
- # An object representing a resource that can be used for monitoring, logging,
1098
- # billing, or other purposes. Examples include virtual machine instances,
1099
- # databases, and storage devices such as disks. The type field identifies a
1100
- # MonitoredResourceDescriptor object that describes the resource's schema.
1101
- # Information in the labels field identifies the actual resource and its
1102
- # attributes according to the schema. For example, a particular Compute Engine
1103
- # VM instance could be represented by the following object, because the
1104
- # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
1105
- # zone":
1106
- # ` "type": "gce_instance",
1107
- # "labels": ` "instance_id": "12345678901234",
1108
- # "zone": "us-central1-a" ``
1109
- # Corresponds to the JSON property `resource`
1110
- # @return [Google::Apis::LoggingV2beta1::MonitoredResource]
1111
- attr_accessor :resource
1112
-
1113
- def initialize(**args)
1114
- update!(**args)
1115
- end
1116
-
1117
- # Update properties of this object
1118
- def update!(**args)
1119
- @log_name = args[:log_name] if args.key?(:log_name)
1120
- @entries = args[:entries] if args.key?(:entries)
1121
- @partial_success = args[:partial_success] if args.key?(:partial_success)
1122
- @labels = args[:labels] if args.key?(:labels)
1123
- @resource = args[:resource] if args.key?(:resource)
1072
+ @pending_time = args[:pending_time] if args.key?(:pending_time)
1073
+ @task_name = args[:task_name] if args.key?(:task_name)
1074
+ @url_map_entry = args[:url_map_entry] if args.key?(:url_map_entry)
1075
+ @instance_index = args[:instance_index] if args.key?(:instance_index)
1076
+ @host = args[:host] if args.key?(:host)
1077
+ @finished = args[:finished] if args.key?(:finished)
1078
+ @http_version = args[:http_version] if args.key?(:http_version)
1079
+ @start_time = args[:start_time] if args.key?(:start_time)
1080
+ @latency = args[:latency] if args.key?(:latency)
1081
+ @ip = args[:ip] if args.key?(:ip)
1082
+ @app_id = args[:app_id] if args.key?(:app_id)
1083
+ @app_engine_release = args[:app_engine_release] if args.key?(:app_engine_release)
1084
+ @method_prop = args[:method_prop] if args.key?(:method_prop)
1085
+ @cost = args[:cost] if args.key?(:cost)
1086
+ @instance_id = args[:instance_id] if args.key?(:instance_id)
1087
+ @mega_cycles = args[:mega_cycles] if args.key?(:mega_cycles)
1088
+ @first = args[:first] if args.key?(:first)
1089
+ @version_id = args[:version_id] if args.key?(:version_id)
1124
1090
  end
1125
1091
  end
1126
1092
 
1127
- # Result returned from ListLogs.
1128
- class ListLogsResponse
1093
+ # Result returned from ListMonitoredResourceDescriptors.
1094
+ class ListMonitoredResourceDescriptorsResponse
1129
1095
  include Google::Apis::Core::Hashable
1130
1096
 
1131
- # A list of log names. For example, "projects/my-project/syslog" or "
1132
- # organizations/123/cloudresourcemanager.googleapis.com%2Factivity".
1133
- # Corresponds to the JSON property `logNames`
1134
- # @return [Array<String>]
1135
- attr_accessor :log_names
1136
-
1137
1097
  # If there might be more results than those appearing in this response, then
1138
1098
  # nextPageToken is included. To get the next set of results, call this method
1139
1099
  # again using the value of nextPageToken as pageToken.
@@ -1141,105 +1101,142 @@ module Google
1141
1101
  # @return [String]
1142
1102
  attr_accessor :next_page_token
1143
1103
 
1104
+ # A list of resource descriptors.
1105
+ # Corresponds to the JSON property `resourceDescriptors`
1106
+ # @return [Array<Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor>]
1107
+ attr_accessor :resource_descriptors
1108
+
1144
1109
  def initialize(**args)
1145
1110
  update!(**args)
1146
1111
  end
1147
1112
 
1148
1113
  # Update properties of this object
1149
1114
  def update!(**args)
1150
- @log_names = args[:log_names] if args.key?(:log_names)
1151
1115
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1116
+ @resource_descriptors = args[:resource_descriptors] if args.key?(:resource_descriptors)
1152
1117
  end
1153
1118
  end
1154
1119
 
1155
- # A common proto for logging HTTP requests. Only contains semantics defined by
1156
- # the HTTP specification. Product-specific logging information MUST be defined
1157
- # in a separate message.
1158
- class HttpRequest
1120
+ # A reference to a particular snapshot of the source tree used to build and
1121
+ # deploy an application.
1122
+ class SourceReference
1159
1123
  include Google::Apis::Core::Hashable
1160
1124
 
1161
- # The user agent sent by the client. Example: "Mozilla/4.0 (compatible; MSIE 6.0;
1162
- # Windows 98; Q312461; .NET CLR 1.0.3705)".
1163
- # Corresponds to the JSON property `userAgent`
1125
+ # Optional. A URI string identifying the repository. Example: "https://github.
1126
+ # com/GoogleCloudPlatform/kubernetes.git"
1127
+ # Corresponds to the JSON property `repository`
1164
1128
  # @return [String]
1165
- attr_accessor :user_agent
1129
+ attr_accessor :repository
1166
1130
 
1167
- # The request processing latency on the server, from the time the request was
1168
- # received until the response was sent.
1169
- # Corresponds to the JSON property `latency`
1131
+ # The canonical and persistent identifier of the deployed revision. Example (git)
1132
+ # : "0035781c50ec7aa23385dc841529ce8a4b70db1b"
1133
+ # Corresponds to the JSON property `revisionId`
1170
1134
  # @return [String]
1171
- attr_accessor :latency
1135
+ attr_accessor :revision_id
1172
1136
 
1173
- # The number of HTTP response bytes inserted into cache. Set only when a cache
1174
- # fill was attempted.
1175
- # Corresponds to the JSON property `cacheFillBytes`
1176
- # @return [Fixnum]
1177
- attr_accessor :cache_fill_bytes
1137
+ def initialize(**args)
1138
+ update!(**args)
1139
+ end
1178
1140
 
1179
- # The request method. Examples: "GET", "HEAD", "PUT", "POST".
1180
- # Corresponds to the JSON property `requestMethod`
1181
- # @return [String]
1182
- attr_accessor :request_method
1141
+ # Update properties of this object
1142
+ def update!(**args)
1143
+ @repository = args[:repository] if args.key?(:repository)
1144
+ @revision_id = args[:revision_id] if args.key?(:revision_id)
1145
+ end
1146
+ end
1183
1147
 
1184
- # The size of the HTTP response message sent back to the client, in bytes,
1185
- # including the response headers and the response body.
1186
- # Corresponds to the JSON property `responseSize`
1187
- # @return [Fixnum]
1188
- attr_accessor :response_size
1148
+ # Describes a logs-based metric. The value of the metric is the number of log
1149
+ # entries that match a logs filter in a given time interval.
1150
+ class LogMetric
1151
+ include Google::Apis::Core::Hashable
1189
1152
 
1190
- # The size of the HTTP request message in bytes, including the request headers
1191
- # and the request body.
1192
- # Corresponds to the JSON property `requestSize`
1193
- # @return [Fixnum]
1194
- attr_accessor :request_size
1153
+ # Required. The client-assigned metric identifier. Examples: "error_count", "
1154
+ # nginx/requests".Metric identifiers are limited to 100 characters and can
1155
+ # include only the following characters: A-Z, a-z, 0-9, and the special
1156
+ # characters _-.,+!*',()%/. The forward-slash character (/) denotes a hierarchy
1157
+ # of name pieces, and it cannot be the first character of the name.The metric
1158
+ # identifier in this field must not be URL-encoded (https://en.wikipedia.org/
1159
+ # wiki/Percent-encoding). However, when the metric identifier appears as the [
1160
+ # METRIC_ID] part of a metric_name API parameter, then the metric identifier
1161
+ # must be URL-encoded. Example: "projects/my-project/metrics/nginx%2Frequests".
1162
+ # Corresponds to the JSON property `name`
1163
+ # @return [String]
1164
+ attr_accessor :name
1195
1165
 
1196
- # The scheme (http, https), the host name, the path and the query portion of the
1197
- # URL that was requested. Example: "http://example.com/some/info?color=red".
1198
- # Corresponds to the JSON property `requestUrl`
1166
+ # Optional. A description of this metric, which is used in documentation.
1167
+ # Corresponds to the JSON property `description`
1199
1168
  # @return [String]
1200
- attr_accessor :request_url
1169
+ attr_accessor :description
1201
1170
 
1202
- # The IP address (IPv4 or IPv6) of the origin server that the request was sent
1203
- # to.
1204
- # Corresponds to the JSON property `serverIp`
1171
+ # Output only. The API version that created or updated this metric. The version
1172
+ # also dictates the syntax of the filter expression. When a value for this field
1173
+ # is missing, the default value of V2 should be assumed.
1174
+ # Corresponds to the JSON property `version`
1205
1175
  # @return [String]
1206
- attr_accessor :server_ip
1176
+ attr_accessor :version
1207
1177
 
1208
- # The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
1209
- # Examples: "192.168.1.1", "FE80::0202:B3FF:FE1E:8329".
1210
- # Corresponds to the JSON property `remoteIp`
1178
+ # Required. An advanced logs filter which is used to match log entries. Example:
1179
+ # "resource.type=gae_app AND severity>=ERROR"
1180
+ # The maximum length of the filter is 20000 characters.
1181
+ # Corresponds to the JSON property `filter`
1211
1182
  # @return [String]
1212
- attr_accessor :remote_ip
1183
+ attr_accessor :filter
1213
1184
 
1214
- # Whether or not a cache lookup was attempted.
1215
- # Corresponds to the JSON property `cacheLookup`
1216
- # @return [Boolean]
1217
- attr_accessor :cache_lookup
1218
- alias_method :cache_lookup?, :cache_lookup
1185
+ def initialize(**args)
1186
+ update!(**args)
1187
+ end
1219
1188
 
1220
- # Whether or not an entity was served from cache (with or without validation).
1221
- # Corresponds to the JSON property `cacheHit`
1222
- # @return [Boolean]
1223
- attr_accessor :cache_hit
1224
- alias_method :cache_hit?, :cache_hit
1189
+ # Update properties of this object
1190
+ def update!(**args)
1191
+ @name = args[:name] if args.key?(:name)
1192
+ @description = args[:description] if args.key?(:description)
1193
+ @version = args[:version] if args.key?(:version)
1194
+ @filter = args[:filter] if args.key?(:filter)
1195
+ end
1196
+ end
1225
1197
 
1226
- # Whether or not the response was validated with the origin server before being
1227
- # served from cache. This field is only meaningful if cache_hit is True.
1228
- # Corresponds to the JSON property `cacheValidatedWithOriginServer`
1198
+ # Result returned from WriteLogEntries. empty
1199
+ class WriteLogEntriesResponse
1200
+ include Google::Apis::Core::Hashable
1201
+
1202
+ def initialize(**args)
1203
+ update!(**args)
1204
+ end
1205
+
1206
+ # Update properties of this object
1207
+ def update!(**args)
1208
+ end
1209
+ end
1210
+
1211
+ # Additional information about a potentially long-running operation with which a
1212
+ # log entry is associated.
1213
+ class LogEntryOperation
1214
+ include Google::Apis::Core::Hashable
1215
+
1216
+ # Optional. An arbitrary producer identifier. The combination of id and producer
1217
+ # must be globally unique. Examples for producer: "MyDivision.MyBigCompany.com",
1218
+ # "github.com/MyProject/MyApplication".
1219
+ # Corresponds to the JSON property `producer`
1220
+ # @return [String]
1221
+ attr_accessor :producer
1222
+
1223
+ # Optional. Set this to True if this is the first log entry in the operation.
1224
+ # Corresponds to the JSON property `first`
1229
1225
  # @return [Boolean]
1230
- attr_accessor :cache_validated_with_origin_server
1231
- alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server
1226
+ attr_accessor :first
1227
+ alias_method :first?, :first
1232
1228
 
1233
- # The response code indicating the status of response. Examples: 200, 404.
1234
- # Corresponds to the JSON property `status`
1235
- # @return [Fixnum]
1236
- attr_accessor :status
1229
+ # Optional. Set this to True if this is the last log entry in the operation.
1230
+ # Corresponds to the JSON property `last`
1231
+ # @return [Boolean]
1232
+ attr_accessor :last
1233
+ alias_method :last?, :last
1237
1234
 
1238
- # The referer URL of the request, as defined in HTTP/1.1 Header Field
1239
- # Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
1240
- # Corresponds to the JSON property `referer`
1235
+ # Optional. An arbitrary operation identifier. Log entries with the same
1236
+ # identifier are assumed to be part of the same operation.
1237
+ # Corresponds to the JSON property `id`
1241
1238
  # @return [String]
1242
- attr_accessor :referer
1239
+ attr_accessor :id
1243
1240
 
1244
1241
  def initialize(**args)
1245
1242
  update!(**args)
@@ -1247,38 +1244,41 @@ module Google
1247
1244
 
1248
1245
  # Update properties of this object
1249
1246
  def update!(**args)
1250
- @user_agent = args[:user_agent] if args.key?(:user_agent)
1251
- @latency = args[:latency] if args.key?(:latency)
1252
- @cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes)
1253
- @request_method = args[:request_method] if args.key?(:request_method)
1254
- @response_size = args[:response_size] if args.key?(:response_size)
1255
- @request_size = args[:request_size] if args.key?(:request_size)
1256
- @request_url = args[:request_url] if args.key?(:request_url)
1257
- @server_ip = args[:server_ip] if args.key?(:server_ip)
1258
- @remote_ip = args[:remote_ip] if args.key?(:remote_ip)
1259
- @cache_lookup = args[:cache_lookup] if args.key?(:cache_lookup)
1260
- @cache_hit = args[:cache_hit] if args.key?(:cache_hit)
1261
- @cache_validated_with_origin_server = args[:cache_validated_with_origin_server] if args.key?(:cache_validated_with_origin_server)
1262
- @status = args[:status] if args.key?(:status)
1263
- @referer = args[:referer] if args.key?(:referer)
1247
+ @producer = args[:producer] if args.key?(:producer)
1248
+ @first = args[:first] if args.key?(:first)
1249
+ @last = args[:last] if args.key?(:last)
1250
+ @id = args[:id] if args.key?(:id)
1264
1251
  end
1265
1252
  end
1266
1253
 
1267
- # Result returned from ListSinks.
1268
- class ListSinksResponse
1254
+ # An object representing a resource that can be used for monitoring, logging,
1255
+ # billing, or other purposes. Examples include virtual machine instances,
1256
+ # databases, and storage devices such as disks. The type field identifies a
1257
+ # MonitoredResourceDescriptor object that describes the resource's schema.
1258
+ # Information in the labels field identifies the actual resource and its
1259
+ # attributes according to the schema. For example, a particular Compute Engine
1260
+ # VM instance could be represented by the following object, because the
1261
+ # MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
1262
+ # zone":
1263
+ # ` "type": "gce_instance",
1264
+ # "labels": ` "instance_id": "12345678901234",
1265
+ # "zone": "us-central1-a" ``
1266
+ class MonitoredResource
1269
1267
  include Google::Apis::Core::Hashable
1270
1268
 
1271
- # If there might be more results than appear in this response, then
1272
- # nextPageToken is included. To get the next set of results, call the same
1273
- # method again using the value of nextPageToken as pageToken.
1274
- # Corresponds to the JSON property `nextPageToken`
1269
+ # Required. The monitored resource type. This field must match the type field of
1270
+ # a MonitoredResourceDescriptor object. For example, the type of a Compute
1271
+ # Engine VM instance is gce_instance.
1272
+ # Corresponds to the JSON property `type`
1275
1273
  # @return [String]
1276
- attr_accessor :next_page_token
1274
+ attr_accessor :type
1277
1275
 
1278
- # A list of sinks.
1279
- # Corresponds to the JSON property `sinks`
1280
- # @return [Array<Google::Apis::LoggingV2beta1::LogSink>]
1281
- attr_accessor :sinks
1276
+ # Required. Values for all of the labels listed in the associated monitored
1277
+ # resource descriptor. For example, Compute Engine VM instances use the labels "
1278
+ # project_id", "instance_id", and "zone".
1279
+ # Corresponds to the JSON property `labels`
1280
+ # @return [Hash<String,String>]
1281
+ attr_accessor :labels
1282
1282
 
1283
1283
  def initialize(**args)
1284
1284
  update!(**args)
@@ -1286,8 +1286,8 @@ module Google
1286
1286
 
1287
1287
  # Update properties of this object
1288
1288
  def update!(**args)
1289
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1290
- @sinks = args[:sinks] if args.key?(:sinks)
1289
+ @type = args[:type] if args.key?(:type)
1290
+ @labels = args[:labels] if args.key?(:labels)
1291
1291
  end
1292
1292
  end
1293
1293
  end