google-api-client 0.13.2 → 0.13.3

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