google-api-client 0.9.8 → 0.10.2

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