google-api-client 0.11.3 → 0.12.0

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