google-api-client 0.8.7 → 0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (497) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +22 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +40 -4
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +32 -2
  11. data/MIGRATING.md +171 -0
  12. data/README.md +181 -148
  13. data/Rakefile +1 -40
  14. data/api_names.yaml +1036 -0
  15. data/api_names_out.yaml +26053 -0
  16. data/bin/generate-api +95 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  20. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  21. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  22. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
  23. data/generated/google/apis/adexchangeseller_v2_0/service.rb +668 -0
  24. data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
  25. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  26. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  27. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  28. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  29. data/generated/google/apis/admin_directory_v1/classes.rb +3141 -0
  30. data/generated/google/apis/admin_directory_v1/representations.rb +1029 -0
  31. data/generated/google/apis/admin_directory_v1/service.rb +3818 -0
  32. data/generated/google/apis/admin_directory_v1.rb +113 -0
  33. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  34. data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
  35. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  36. data/generated/google/apis/admin_reports_v1.rb +38 -0
  37. data/generated/google/apis/adsense_v1_4/classes.rb +1285 -0
  38. data/generated/google/apis/adsense_v1_4/representations.rb +494 -0
  39. data/generated/google/apis/adsense_v1_4/service.rb +1714 -0
  40. data/generated/google/apis/adsense_v1_4.rb +38 -0
  41. data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
  42. data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
  43. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  44. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  45. data/generated/google/apis/analytics_v3/classes.rb +5118 -0
  46. data/generated/google/apis/analytics_v3/representations.rb +1662 -0
  47. data/generated/google/apis/analytics_v3/service.rb +3568 -0
  48. data/generated/google/apis/analytics_v3.rb +49 -0
  49. data/generated/google/apis/androidenterprise_v1/classes.rb +1443 -0
  50. data/generated/google/apis/androidenterprise_v1/representations.rb +538 -0
  51. data/generated/google/apis/androidenterprise_v1/service.rb +2602 -0
  52. data/generated/google/apis/androidenterprise_v1.rb +35 -0
  53. data/generated/google/apis/androidpublisher_v2/classes.rb +1411 -0
  54. data/generated/google/apis/androidpublisher_v2/representations.rb +646 -0
  55. data/generated/google/apis/androidpublisher_v2/service.rb +2338 -0
  56. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  57. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  58. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  59. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  60. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  61. data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
  62. data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
  63. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  64. data/generated/google/apis/appsactivity_v1.rb +46 -0
  65. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  66. data/generated/google/apis/appstate_v1/representations.rb +79 -0
  67. data/generated/google/apis/appstate_v1/service.rb +260 -0
  68. data/generated/google/apis/appstate_v1.rb +34 -0
  69. data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
  70. data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
  71. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  72. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  73. data/generated/google/apis/bigquery_v2/classes.rb +2471 -0
  74. data/generated/google/apis/bigquery_v2/representations.rb +816 -0
  75. data/generated/google/apis/bigquery_v2/service.rb +982 -0
  76. data/generated/google/apis/bigquery_v2.rb +52 -0
  77. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  78. data/generated/google/apis/blogger_v3/representations.rb +562 -0
  79. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  80. data/generated/google/apis/blogger_v3.rb +37 -0
  81. data/generated/google/apis/books_v1/classes.rb +3956 -0
  82. data/generated/google/apis/books_v1/representations.rb +1538 -0
  83. data/generated/google/apis/books_v1/service.rb +2290 -0
  84. data/generated/google/apis/books_v1.rb +34 -0
  85. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  86. data/generated/google/apis/calendar_v3/representations.rb +567 -0
  87. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  88. data/generated/google/apis/calendar_v3.rb +37 -0
  89. data/generated/google/apis/civicinfo_v2/classes.rb +1127 -0
  90. data/generated/google/apis/civicinfo_v2/representations.rb +383 -0
  91. data/generated/google/apis/civicinfo_v2/service.rb +279 -0
  92. data/{lib/google/api_client/service_account.rb → generated/google/apis/civicinfo_v2.rb} +18 -8
  93. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  94. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  95. data/generated/google/apis/classroom_v1/service.rb +970 -0
  96. data/generated/google/apis/classroom_v1.rb +49 -0
  97. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  98. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  99. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  100. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  101. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  102. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  103. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  104. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  105. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  106. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  107. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  108. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  109. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  110. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
  111. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  112. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  113. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +437 -0
  114. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +188 -0
  115. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +623 -0
  116. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  117. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  118. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  119. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  120. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  121. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  122. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  123. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  124. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  125. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  126. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  127. data/generated/google/apis/compute_beta/service.rb +10154 -0
  128. data/generated/google/apis/compute_beta.rb +49 -0
  129. data/generated/google/apis/compute_v1/classes.rb +8681 -0
  130. data/generated/google/apis/compute_v1/representations.rb +2895 -0
  131. data/generated/google/apis/compute_v1/service.rb +9252 -0
  132. data/generated/google/apis/compute_v1.rb +49 -0
  133. data/generated/google/apis/container_v1/classes.rb +463 -0
  134. data/generated/google/apis/container_v1/representations.rb +175 -0
  135. data/generated/google/apis/container_v1/service.rb +367 -0
  136. data/generated/google/apis/container_v1.rb +35 -0
  137. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  138. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  139. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  140. data/generated/google/apis/container_v1beta1.rb +35 -0
  141. data/generated/google/apis/content_v2/classes.rb +5986 -0
  142. data/generated/google/apis/content_v2/representations.rb +2288 -0
  143. data/generated/google/apis/content_v2/service.rb +2338 -0
  144. data/generated/google/apis/content_v2.rb +35 -0
  145. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  146. data/generated/google/apis/coordinate_v1/representations.rb +285 -0
  147. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  148. data/generated/google/apis/coordinate_v1.rb +37 -0
  149. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  150. data/generated/google/apis/customsearch_v1/representations.rb +276 -0
  151. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  152. data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
  153. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  154. data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
  155. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  156. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  157. data/generated/google/apis/deploymentmanager_v2/classes.rb +1091 -0
  158. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  159. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  160. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  161. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  162. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  163. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  164. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  165. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  166. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  167. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  168. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  169. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  170. data/generated/google/apis/discovery_v1/representations.rb +357 -0
  171. data/generated/google/apis/discovery_v1/service.rb +142 -0
  172. data/generated/google/apis/discovery_v1.rb +32 -0
  173. data/generated/google/apis/dns_v1/classes.rb +406 -0
  174. data/generated/google/apis/dns_v1/representations.rb +151 -0
  175. data/generated/google/apis/dns_v1/service.rb +454 -0
  176. data/generated/google/apis/dns_v1.rb +44 -0
  177. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +716 -0
  178. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +298 -0
  179. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +341 -0
  180. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  181. data/generated/google/apis/doubleclicksearch_v2/classes.rb +956 -0
  182. data/generated/google/apis/doubleclicksearch_v2/representations.rb +316 -0
  183. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  184. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  185. data/generated/google/apis/drive_v2/classes.rb +2562 -0
  186. data/generated/google/apis/drive_v2/representations.rb +795 -0
  187. data/generated/google/apis/drive_v2/service.rb +2696 -0
  188. data/generated/google/apis/drive_v2.rb +58 -0
  189. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  190. data/generated/google/apis/drive_v3/representations.rb +497 -0
  191. data/generated/google/apis/drive_v3/service.rb +1541 -0
  192. data/generated/google/apis/drive_v3.rb +55 -0
  193. data/generated/google/apis/fitness_v1/classes.rb +885 -0
  194. data/generated/google/apis/fitness_v1/representations.rb +320 -0
  195. data/generated/google/apis/fitness_v1/service.rb +675 -0
  196. data/generated/google/apis/fitness_v1.rb +49 -0
  197. data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
  198. data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
  199. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  200. data/generated/google/apis/fusiontables_v2.rb +37 -0
  201. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  202. data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
  203. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  204. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  205. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  206. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  207. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  208. data/generated/google/apis/games_management_v1management.rb +37 -0
  209. data/generated/google/apis/games_v1/classes.rb +4617 -0
  210. data/generated/google/apis/games_v1/representations.rb +1584 -0
  211. data/generated/google/apis/games_v1/service.rb +2290 -0
  212. data/generated/google/apis/games_v1.rb +40 -0
  213. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  214. data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
  215. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  216. data/generated/google/apis/gan_v1beta1.rb +31 -0
  217. data/generated/google/apis/genomics_v1/classes.rb +2609 -0
  218. data/generated/google/apis/genomics_v1/representations.rb +909 -0
  219. data/generated/google/apis/genomics_v1/service.rb +1676 -0
  220. data/generated/google/apis/genomics_v1.rb +49 -0
  221. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  222. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  223. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  224. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  225. data/generated/google/apis/gmail_v1/classes.rb +794 -0
  226. data/generated/google/apis/gmail_v1/representations.rb +339 -0
  227. data/generated/google/apis/gmail_v1/service.rb +1470 -0
  228. data/generated/google/apis/gmail_v1.rb +52 -0
  229. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  230. data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
  231. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  232. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  233. data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
  234. data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
  235. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  236. data/generated/google/apis/groupssettings_v1.rb +34 -0
  237. data/generated/google/apis/identitytoolkit_v3/classes.rb +1466 -0
  238. data/generated/google/apis/identitytoolkit_v3/representations.rb +509 -0
  239. data/generated/google/apis/identitytoolkit_v3/service.rb +581 -0
  240. data/generated/google/apis/identitytoolkit_v3.rb +31 -0
  241. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  242. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  243. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  244. data/{spec/google/api_client/request_spec.rb → generated/google/apis/kgsearch_v1.rb} +16 -13
  245. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  246. data/generated/google/apis/licensing_v1/representations.rb +68 -0
  247. data/generated/google/apis/licensing_v1/service.rb +369 -0
  248. data/generated/google/apis/licensing_v1.rb +34 -0
  249. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  250. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  251. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  252. data/generated/google/apis/logging_v1beta3.rb +47 -0
  253. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  254. data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
  255. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  256. data/generated/google/apis/manager_v1beta2.rb +53 -0
  257. data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
  258. data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
  259. data/generated/google/apis/mapsengine_v1/service.rb +3388 -0
  260. data/generated/google/apis/mapsengine_v1.rb +38 -0
  261. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  262. data/generated/google/apis/mirror_v1/representations.rb +350 -0
  263. data/generated/google/apis/mirror_v1/service.rb +977 -0
  264. data/generated/google/apis/mirror_v1.rb +37 -0
  265. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  266. data/generated/google/apis/oauth2_v2/representations.rb +94 -0
  267. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  268. data/generated/google/apis/oauth2_v2.rb +43 -0
  269. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  270. data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
  271. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  272. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  273. data/generated/google/apis/partners_v2/classes.rb +942 -0
  274. data/generated/google/apis/partners_v2/representations.rb +402 -0
  275. data/generated/google/apis/partners_v2/service.rb +400 -0
  276. data/generated/google/apis/partners_v2.rb +32 -0
  277. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  278. data/generated/google/apis/plus_domains_v1/representations.rb +987 -0
  279. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  280. data/generated/google/apis/plus_domains_v1.rb +61 -0
  281. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  282. data/generated/google/apis/plus_v1/representations.rb +805 -0
  283. data/generated/google/apis/plus_v1/service.rb +470 -0
  284. data/generated/google/apis/plus_v1.rb +43 -0
  285. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  286. data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
  287. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  288. data/generated/google/apis/prediction_v1_6.rb +44 -0
  289. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  290. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  291. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  292. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  293. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  294. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  295. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  296. data/generated/google/apis/pubsub_v1.rb +37 -0
  297. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  298. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  299. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  300. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  301. data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
  302. data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
  303. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  304. data/generated/google/apis/qpx_express_v1.rb +31 -0
  305. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  306. data/generated/google/apis/replicapool_v1beta2/representations.rb +236 -0
  307. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  308. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  309. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  310. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +264 -0
  311. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +508 -0
  312. data/generated/google/apis/replicapoolupdater_v1beta1.rb +44 -0
  313. data/generated/google/apis/reseller_v1/classes.rb +520 -0
  314. data/generated/google/apis/reseller_v1/representations.rb +200 -0
  315. data/generated/google/apis/reseller_v1/service.rb +623 -0
  316. data/generated/google/apis/reseller_v1.rb +37 -0
  317. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  318. data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
  319. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  320. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  321. data/generated/google/apis/script_v1/classes.rb +259 -0
  322. data/generated/google/apis/script_v1/representations.rb +106 -0
  323. data/generated/google/apis/script_v1/service.rb +98 -0
  324. data/generated/google/apis/script_v1.rb +61 -0
  325. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  326. data/generated/google/apis/site_verification_v1/representations.rb +101 -0
  327. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  328. data/generated/google/apis/site_verification_v1.rb +37 -0
  329. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2001 -0
  330. data/generated/google/apis/sqladmin_v1beta4/representations.rb +758 -0
  331. data/generated/google/apis/sqladmin_v1beta4/service.rb +1625 -0
  332. data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
  333. data/generated/google/apis/storage_v1/classes.rb +1222 -0
  334. data/generated/google/apis/storage_v1/representations.rb +445 -0
  335. data/generated/google/apis/storage_v1/service.rb +1903 -0
  336. data/generated/google/apis/storage_v1.rb +46 -0
  337. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  338. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  339. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  340. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  341. data/generated/google/apis/tagmanager_v1/classes.rb +1384 -0
  342. data/generated/google/apis/tagmanager_v1/representations.rb +515 -0
  343. data/generated/google/apis/tagmanager_v1/service.rb +1817 -0
  344. data/generated/google/apis/tagmanager_v1.rb +52 -0
  345. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  346. data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
  347. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  348. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  349. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  350. data/generated/google/apis/tasks_v1/representations.rb +115 -0
  351. data/generated/google/apis/tasks_v1/service.rb +643 -0
  352. data/generated/google/apis/tasks_v1.rb +37 -0
  353. data/generated/google/apis/translate_v2/classes.rb +168 -0
  354. data/generated/google/apis/translate_v2/representations.rb +109 -0
  355. data/generated/google/apis/translate_v2/service.rb +182 -0
  356. data/generated/google/apis/translate_v2.rb +31 -0
  357. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  358. data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
  359. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  360. data/generated/google/apis/urlshortener_v1.rb +34 -0
  361. data/generated/google/apis/webmasters_v3/classes.rb +563 -0
  362. data/generated/google/apis/webmasters_v3/representations.rb +250 -0
  363. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  364. data/generated/google/apis/webmasters_v3.rb +37 -0
  365. data/generated/google/apis/youtube_analytics_v1/classes.rb +546 -0
  366. data/generated/google/apis/youtube_analytics_v1/representations.rb +243 -0
  367. data/generated/google/apis/youtube_analytics_v1/service.rb +562 -0
  368. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  369. data/generated/google/apis/youtube_v3/classes.rb +8136 -0
  370. data/generated/google/apis/youtube_v3/representations.rb +2838 -0
  371. data/generated/google/apis/youtube_v3/service.rb +4403 -0
  372. data/generated/google/apis/youtube_v3.rb +49 -0
  373. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  374. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  375. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  376. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  377. data/google-api-client.gemspec +27 -39
  378. data/lib/google/api_client/auth/installed_app.rb +7 -5
  379. data/lib/google/api_client/auth/key_utils.rb +1 -0
  380. data/lib/google/api_client/auth/storage.rb +4 -2
  381. data/lib/google/api_client/auth/storages/file_store.rb +2 -3
  382. data/lib/google/api_client/auth/storages/redis_store.rb +7 -2
  383. data/lib/google/api_client/client_secrets.rb +4 -5
  384. data/lib/google/apis/core/api_command.rb +135 -0
  385. data/lib/google/apis/core/base_service.rb +317 -0
  386. data/lib/google/apis/core/batch.rb +239 -0
  387. data/lib/google/apis/core/download.rb +94 -0
  388. data/lib/google/apis/core/hashable.rb +44 -0
  389. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  390. data/lib/google/apis/core/http_command.rb +312 -0
  391. data/lib/google/apis/core/json_representation.rb +127 -0
  392. data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
  393. data/lib/google/apis/core/multipart.rb +187 -0
  394. data/lib/google/apis/core/upload.rb +288 -0
  395. data/lib/google/{api_client → apis}/errors.rb +39 -28
  396. data/lib/google/apis/generator/annotator.rb +295 -0
  397. data/lib/google/apis/generator/helpers.rb +74 -0
  398. data/lib/google/apis/generator/model.rb +143 -0
  399. data/lib/google/apis/generator/template.rb +124 -0
  400. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  401. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  402. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  403. data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
  404. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  405. data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
  406. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  407. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  408. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  409. data/lib/google/apis/generator.rb +70 -0
  410. data/lib/google/apis/options.rb +85 -0
  411. data/lib/google/apis/version.rb +39 -0
  412. data/lib/google/apis.rb +48 -0
  413. data/rakelib/metrics.rake +22 -0
  414. data/rakelib/rubocop.rake +10 -0
  415. data/rakelib/spec.rake +11 -0
  416. data/rakelib/yard.rake +11 -0
  417. data/samples/Gemfile +7 -0
  418. data/samples/README.md +51 -0
  419. data/samples/google-api-samples +32 -0
  420. data/samples/lib/base_cli.rb +94 -0
  421. data/samples/lib/samples/analytics.rb +62 -0
  422. data/samples/lib/samples/calendar.rb +83 -0
  423. data/samples/lib/samples/drive.rb +82 -0
  424. data/samples/lib/samples/gmail.rb +50 -0
  425. data/samples/lib/samples/pubsub.rb +114 -0
  426. data/samples/lib/samples/translate.rb +44 -0
  427. data/samples/lib/samples/you_tube.rb +44 -0
  428. data/script/generate +95 -0
  429. data/script/package +8 -0
  430. data/script/release +15 -0
  431. data/spec/fixtures/files/api_names.yaml +3 -0
  432. data/spec/fixtures/files/auth_stored_credentials.json +8 -0
  433. data/spec/fixtures/files/child/.gitignore +0 -0
  434. data/spec/fixtures/files/client_secrets.json +1 -0
  435. data/spec/fixtures/files/invalid.json +1 -0
  436. data/spec/fixtures/files/test.blah +1 -0
  437. data/spec/fixtures/files/test.txt +1 -0
  438. data/spec/fixtures/files/test_api.json +440 -0
  439. data/spec/google/api_client/auth/storage_spec.rb +1 -3
  440. data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
  441. data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
  442. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  443. data/spec/google/apis/core/api_command_spec.rb +209 -0
  444. data/spec/google/apis/core/batch_spec.rb +142 -0
  445. data/spec/google/apis/core/download_spec.rb +103 -0
  446. data/spec/google/apis/core/hashable_spec.rb +60 -0
  447. data/spec/google/apis/core/http_command_spec.rb +284 -0
  448. data/spec/google/apis/core/json_representation_spec.rb +192 -0
  449. data/spec/google/apis/core/service_spec.rb +247 -0
  450. data/spec/google/apis/core/upload_spec.rb +300 -0
  451. data/{lib/google/api_client/discovery.rb → spec/google/apis/generated_spec.rb} +13 -5
  452. data/spec/google/apis/generator/generator_spec.rb +272 -0
  453. data/spec/google/apis/logging_spec.rb +45 -0
  454. data/spec/google/apis/options_spec.rb +40 -0
  455. data/spec/integration_tests/adsense_spec.rb +29 -0
  456. data/spec/integration_tests/drive_spec.rb +35 -0
  457. data/spec/integration_tests/pubsub_spec.rb +48 -0
  458. data/spec/integration_tests/url_shortener_spec.rb +45 -0
  459. data/spec/spec_helper/load_path_spec.rb +33 -0
  460. data/spec/spec_helper.rb +131 -44
  461. data/third_party/hurley_patches.rb +103 -0
  462. metadata +533 -175
  463. data/lib/compat/multi_json.rb +0 -19
  464. data/lib/google/api_client/auth/file_storage.rb +0 -59
  465. data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
  466. data/lib/google/api_client/auth/pkcs12.rb +0 -41
  467. data/lib/google/api_client/batch.rb +0 -326
  468. data/lib/google/api_client/charset.rb +0 -33
  469. data/lib/google/api_client/discovery/api.rb +0 -310
  470. data/lib/google/api_client/discovery/media.rb +0 -77
  471. data/lib/google/api_client/discovery/method.rb +0 -363
  472. data/lib/google/api_client/discovery/resource.rb +0 -156
  473. data/lib/google/api_client/discovery/schema.rb +0 -117
  474. data/lib/google/api_client/environment.rb +0 -42
  475. data/lib/google/api_client/gzip.rb +0 -28
  476. data/lib/google/api_client/logging.rb +0 -32
  477. data/lib/google/api_client/media.rb +0 -259
  478. data/lib/google/api_client/railtie.rb +0 -18
  479. data/lib/google/api_client/request.rb +0 -350
  480. data/lib/google/api_client/result.rb +0 -255
  481. data/lib/google/api_client/service/batch.rb +0 -110
  482. data/lib/google/api_client/service/request.rb +0 -144
  483. data/lib/google/api_client/service/resource.rb +0 -40
  484. data/lib/google/api_client/service/result.rb +0 -162
  485. data/lib/google/api_client/service/simple_file_store.rb +0 -151
  486. data/lib/google/api_client/service/stub_generator.rb +0 -61
  487. data/lib/google/api_client/service.rb +0 -233
  488. data/lib/google/api_client.rb +0 -750
  489. data/spec/google/api_client/batch_spec.rb +0 -248
  490. data/spec/google/api_client/discovery_spec.rb +0 -708
  491. data/spec/google/api_client/gzip_spec.rb +0 -98
  492. data/spec/google/api_client/media_spec.rb +0 -178
  493. data/spec/google/api_client/result_spec.rb +0 -207
  494. data/spec/google/api_client/service_account_spec.rb +0 -169
  495. data/spec/google/api_client/service_spec.rb +0 -618
  496. data/spec/google/api_client/simple_file_store_spec.rb +0 -133
  497. data/spec/google/api_client_spec.rb +0 -352
@@ -0,0 +1,1079 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module LoggingV1beta3
24
+
25
+ # Result returned from ListLogs.
26
+ class ListLogsResponse
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # A list of log descriptions matching the criteria.
30
+ # Corresponds to the JSON property `logs`
31
+ # @return [Array<Google::Apis::LoggingV1beta3::Log>]
32
+ attr_accessor :logs
33
+
34
+ # If there are more results, then `nextPageToken` is returned in the response.
35
+ # To get the next batch of logs, use the value of `nextPageToken` as `pageToken`
36
+ # in the next call of `ListLogs`. If `nextPageToken` is empty, then there are no
37
+ # more results.
38
+ # Corresponds to the JSON property `nextPageToken`
39
+ # @return [String]
40
+ attr_accessor :next_page_token
41
+
42
+ def initialize(**args)
43
+ update!(**args)
44
+ end
45
+
46
+ # Update properties of this object
47
+ def update!(**args)
48
+ @logs = args[:logs] unless args[:logs].nil?
49
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
50
+ end
51
+ end
52
+
53
+ # _Output only._ Describes a log, which is a named stream of log entries.
54
+ class Log
55
+ include Google::Apis::Core::Hashable
56
+
57
+ # The resource name of the log. Example: `"/projects/my-gcp-project-id/logs/
58
+ # LOG_NAME"`, where `LOG_NAME` is the URL-encoded given name of the log. The log
59
+ # includes those log entries whose `LogEntry.log` field contains this given name.
60
+ # To avoid name collisions, it is a best practice to prefix the given log name
61
+ # with the service name, but this is not required. Examples of log given names: `
62
+ # "appengine.googleapis.com/request_log"`, `"apache-access"`.
63
+ # Corresponds to the JSON property `name`
64
+ # @return [String]
65
+ attr_accessor :name
66
+
67
+ # _Optional._ The common name of the log. Example: `"request_log"`.
68
+ # Corresponds to the JSON property `displayName`
69
+ # @return [String]
70
+ attr_accessor :display_name
71
+
72
+ # _Optional_. A URI representing the expected payload type for log entries.
73
+ # Corresponds to the JSON property `payloadType`
74
+ # @return [String]
75
+ attr_accessor :payload_type
76
+
77
+ def initialize(**args)
78
+ update!(**args)
79
+ end
80
+
81
+ # Update properties of this object
82
+ def update!(**args)
83
+ @name = args[:name] unless args[:name].nil?
84
+ @display_name = args[:display_name] unless args[:display_name].nil?
85
+ @payload_type = args[:payload_type] unless args[:payload_type].nil?
86
+ end
87
+ end
88
+
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: service Foo ` rpc Bar(google.
92
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
93
+ # `Empty` is empty JSON object ````.
94
+ class Empty
95
+ include Google::Apis::Core::Hashable
96
+
97
+ def initialize(**args)
98
+ update!(**args)
99
+ end
100
+
101
+ # Update properties of this object
102
+ def update!(**args)
103
+ end
104
+ end
105
+
106
+ # The parameters to WriteLogEntries.
107
+ class WriteLogEntriesRequest
108
+ include Google::Apis::Core::Hashable
109
+
110
+ # Metadata labels that apply to all log entries in this request, so that you don'
111
+ # t have to repeat them in each log entry's `metadata.labels` field. If any of
112
+ # the log entries contains a (key, value) with the same key that is in `
113
+ # commonLabels`, then the entry's (key, value) overrides the one in `
114
+ # commonLabels`.
115
+ # Corresponds to the JSON property `commonLabels`
116
+ # @return [Hash<String,String>]
117
+ attr_accessor :common_labels
118
+
119
+ # Log entries to insert.
120
+ # Corresponds to the JSON property `entries`
121
+ # @return [Array<Google::Apis::LoggingV1beta3::LogEntry>]
122
+ attr_accessor :entries
123
+
124
+ def initialize(**args)
125
+ update!(**args)
126
+ end
127
+
128
+ # Update properties of this object
129
+ def update!(**args)
130
+ @common_labels = args[:common_labels] unless args[:common_labels].nil?
131
+ @entries = args[:entries] unless args[:entries].nil?
132
+ end
133
+ end
134
+
135
+ # An individual entry in a log.
136
+ class LogEntry
137
+ include Google::Apis::Core::Hashable
138
+
139
+ # Additional data that is associated with a log entry, set by the service
140
+ # creating the log entry.
141
+ # Corresponds to the JSON property `metadata`
142
+ # @return [Google::Apis::LoggingV1beta3::LogEntryMetadata]
143
+ attr_accessor :metadata
144
+
145
+ # The log entry payload, represented as a protocol buffer that is expressed as a
146
+ # JSON object. You can only pass `protoPayload` values that belong to a set of
147
+ # approved types.
148
+ # Corresponds to the JSON property `protoPayload`
149
+ # @return [Hash<String,Object>]
150
+ attr_accessor :proto_payload
151
+
152
+ # The log entry payload, represented as a Unicode string (UTF-8).
153
+ # Corresponds to the JSON property `textPayload`
154
+ # @return [String]
155
+ attr_accessor :text_payload
156
+
157
+ # The log entry payload, represented as a structure that is expressed as a JSON
158
+ # object.
159
+ # Corresponds to the JSON property `structPayload`
160
+ # @return [Hash<String,Object>]
161
+ attr_accessor :struct_payload
162
+
163
+ # A unique ID for the log entry. If you provide this field, the logging service
164
+ # considers other log entries in the same log with the same ID as duplicates
165
+ # which can be removed.
166
+ # Corresponds to the JSON property `insertId`
167
+ # @return [String]
168
+ attr_accessor :insert_id
169
+
170
+ # The log to which this entry belongs. When a log entry is ingested, the value
171
+ # of this field is set by the logging system.
172
+ # Corresponds to the JSON property `log`
173
+ # @return [String]
174
+ attr_accessor :log
175
+
176
+ # A common proto for logging HTTP requests.
177
+ # Corresponds to the JSON property `httpRequest`
178
+ # @return [Google::Apis::LoggingV1beta3::HttpRequest]
179
+ attr_accessor :http_request
180
+
181
+ def initialize(**args)
182
+ update!(**args)
183
+ end
184
+
185
+ # Update properties of this object
186
+ def update!(**args)
187
+ @metadata = args[:metadata] unless args[:metadata].nil?
188
+ @proto_payload = args[:proto_payload] unless args[:proto_payload].nil?
189
+ @text_payload = args[:text_payload] unless args[:text_payload].nil?
190
+ @struct_payload = args[:struct_payload] unless args[:struct_payload].nil?
191
+ @insert_id = args[:insert_id] unless args[:insert_id].nil?
192
+ @log = args[:log] unless args[:log].nil?
193
+ @http_request = args[:http_request] unless args[:http_request].nil?
194
+ end
195
+ end
196
+
197
+ # Additional data that is associated with a log entry, set by the service
198
+ # creating the log entry.
199
+ class LogEntryMetadata
200
+ include Google::Apis::Core::Hashable
201
+
202
+ # The time the event described by the log entry occurred. Timestamps must be
203
+ # later than January 1, 1970.
204
+ # Corresponds to the JSON property `timestamp`
205
+ # @return [String]
206
+ attr_accessor :timestamp
207
+
208
+ # The severity of the log entry.
209
+ # Corresponds to the JSON property `severity`
210
+ # @return [String]
211
+ attr_accessor :severity
212
+
213
+ # The project ID of the Google Cloud Platform service that created the log entry.
214
+ # Corresponds to the JSON property `projectId`
215
+ # @return [String]
216
+ attr_accessor :project_id
217
+
218
+ # The API name of the Google Cloud Platform service that created the log entry.
219
+ # For example, `"compute.googleapis.com"`.
220
+ # Corresponds to the JSON property `serviceName`
221
+ # @return [String]
222
+ attr_accessor :service_name
223
+
224
+ # The region name of the Google Cloud Platform service that created the log
225
+ # entry. For example, `"us-central1"`.
226
+ # Corresponds to the JSON property `region`
227
+ # @return [String]
228
+ attr_accessor :region
229
+
230
+ # The zone of the Google Cloud Platform service that created the log entry. For
231
+ # example, `"us-central1-a"`.
232
+ # Corresponds to the JSON property `zone`
233
+ # @return [String]
234
+ attr_accessor :zone
235
+
236
+ # The fully-qualified email address of the authenticated user that performed or
237
+ # requested the action represented by the log entry. If the log entry does not
238
+ # apply to an action taken by an authenticated user, then the field should be
239
+ # empty.
240
+ # Corresponds to the JSON property `userId`
241
+ # @return [String]
242
+ attr_accessor :user_id
243
+
244
+ # A set of (key, value) data that provides additional information about the log
245
+ # entry. If the log entry is from one of the Google Cloud Platform sources
246
+ # listed below, the indicated (key, value) information must be provided: Google
247
+ # App Engine, service_name `appengine.googleapis.com`: "appengine.googleapis.com/
248
+ # module_id", "appengine.googleapis.com/version_id", and one of: "appengine.
249
+ # googleapis.com/replica_index", "appengine.googleapis.com/clone_id", or else
250
+ # provide the following Compute Engine labels: Google Compute Engine,
251
+ # service_name `compute.googleapis.com`: "compute.googleapis.com/resource_type",
252
+ # "instance" "compute.googleapis.com/resource_id",
253
+ # Corresponds to the JSON property `labels`
254
+ # @return [Hash<String,String>]
255
+ attr_accessor :labels
256
+
257
+ def initialize(**args)
258
+ update!(**args)
259
+ end
260
+
261
+ # Update properties of this object
262
+ def update!(**args)
263
+ @timestamp = args[:timestamp] unless args[:timestamp].nil?
264
+ @severity = args[:severity] unless args[:severity].nil?
265
+ @project_id = args[:project_id] unless args[:project_id].nil?
266
+ @service_name = args[:service_name] unless args[:service_name].nil?
267
+ @region = args[:region] unless args[:region].nil?
268
+ @zone = args[:zone] unless args[:zone].nil?
269
+ @user_id = args[:user_id] unless args[:user_id].nil?
270
+ @labels = args[:labels] unless args[:labels].nil?
271
+ end
272
+ end
273
+
274
+ # A common proto for logging HTTP requests.
275
+ class HttpRequest
276
+ include Google::Apis::Core::Hashable
277
+
278
+ # Request method, such as `GET`, `HEAD`, `PUT` or `POST`.
279
+ # Corresponds to the JSON property `requestMethod`
280
+ # @return [String]
281
+ attr_accessor :request_method
282
+
283
+ # Contains the scheme (http|https), the host name, the path and the query
284
+ # portion of the URL that was requested.
285
+ # Corresponds to the JSON property `requestUrl`
286
+ # @return [String]
287
+ attr_accessor :request_url
288
+
289
+ # Size of the HTTP request message in bytes, including request headers and the
290
+ # request body.
291
+ # Corresponds to the JSON property `requestSize`
292
+ # @return [String]
293
+ attr_accessor :request_size
294
+
295
+ # A response code indicates the status of response, e.g., 200.
296
+ # Corresponds to the JSON property `status`
297
+ # @return [Fixnum]
298
+ attr_accessor :status
299
+
300
+ # Size of the HTTP response message in bytes sent back to the client, including
301
+ # response headers and response body.
302
+ # Corresponds to the JSON property `responseSize`
303
+ # @return [String]
304
+ attr_accessor :response_size
305
+
306
+ # User agent sent by the client, e.g., "Mozilla/4.0 (compatible; MSIE 6.0;
307
+ # Windows 98; Q312461; .NET CLR 1.0.3705)".
308
+ # Corresponds to the JSON property `userAgent`
309
+ # @return [String]
310
+ attr_accessor :user_agent
311
+
312
+ # IP address of the client who issues the HTTP request. Could be either IPv4 or
313
+ # IPv6.
314
+ # Corresponds to the JSON property `remoteIp`
315
+ # @return [String]
316
+ attr_accessor :remote_ip
317
+
318
+ # Referer (a.k.a. referrer) URL of request, as defined in http://www.w3.org/
319
+ # Protocols/rfc2616/rfc2616-sec14.html.
320
+ # Corresponds to the JSON property `referer`
321
+ # @return [String]
322
+ attr_accessor :referer
323
+
324
+ # Whether or not an entity was served from cache (with or without validation).
325
+ # Corresponds to the JSON property `cacheHit`
326
+ # @return [Boolean]
327
+ attr_accessor :cache_hit
328
+ alias_method :cache_hit?, :cache_hit
329
+
330
+ # Whether or not the response was validated with the origin server before being
331
+ # served from cache. This field is only meaningful if cache_hit is True.
332
+ # Corresponds to the JSON property `validatedWithOriginServer`
333
+ # @return [Boolean]
334
+ attr_accessor :validated_with_origin_server
335
+ alias_method :validated_with_origin_server?, :validated_with_origin_server
336
+
337
+ def initialize(**args)
338
+ update!(**args)
339
+ end
340
+
341
+ # Update properties of this object
342
+ def update!(**args)
343
+ @request_method = args[:request_method] unless args[:request_method].nil?
344
+ @request_url = args[:request_url] unless args[:request_url].nil?
345
+ @request_size = args[:request_size] unless args[:request_size].nil?
346
+ @status = args[:status] unless args[:status].nil?
347
+ @response_size = args[:response_size] unless args[:response_size].nil?
348
+ @user_agent = args[:user_agent] unless args[:user_agent].nil?
349
+ @remote_ip = args[:remote_ip] unless args[:remote_ip].nil?
350
+ @referer = args[:referer] unless args[:referer].nil?
351
+ @cache_hit = args[:cache_hit] unless args[:cache_hit].nil?
352
+ @validated_with_origin_server = args[:validated_with_origin_server] unless args[:validated_with_origin_server].nil?
353
+ end
354
+ end
355
+
356
+ # Result returned from WriteLogEntries. empty
357
+ class WriteLogEntriesResponse
358
+ include Google::Apis::Core::Hashable
359
+
360
+ def initialize(**args)
361
+ update!(**args)
362
+ end
363
+
364
+ # Update properties of this object
365
+ def update!(**args)
366
+ end
367
+ end
368
+
369
+ # Result returned from `ListLogServicesRequest`.
370
+ class ListLogServicesResponse
371
+ include Google::Apis::Core::Hashable
372
+
373
+ # A list of log services.
374
+ # Corresponds to the JSON property `logServices`
375
+ # @return [Array<Google::Apis::LoggingV1beta3::LogService>]
376
+ attr_accessor :log_services
377
+
378
+ # If there are more results, then `nextPageToken` is returned in the response.
379
+ # To get the next batch of services, use the value of `nextPageToken` as `
380
+ # pageToken` in the next call of `ListLogServices`. If `nextPageToken` is empty,
381
+ # then there are no more results.
382
+ # Corresponds to the JSON property `nextPageToken`
383
+ # @return [String]
384
+ attr_accessor :next_page_token
385
+
386
+ def initialize(**args)
387
+ update!(**args)
388
+ end
389
+
390
+ # Update properties of this object
391
+ def update!(**args)
392
+ @log_services = args[:log_services] unless args[:log_services].nil?
393
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
394
+ end
395
+ end
396
+
397
+ # _Output only._ Describes a service that writes log entries.
398
+ class LogService
399
+ include Google::Apis::Core::Hashable
400
+
401
+ # The service's name. Example: `"appengine.googleapis.com"`. Log names beginning
402
+ # with this string are reserved for this service. This value can appear in the `
403
+ # LogEntry.metadata.serviceName` field of log entries associated with this log
404
+ # service.
405
+ # Corresponds to the JSON property `name`
406
+ # @return [String]
407
+ attr_accessor :name
408
+
409
+ # A list of the names of the keys used to index and label individual log entries
410
+ # from this service. The first two keys are used as the primary and secondary
411
+ # index, respectively. Additional keys may be used to label the entries. For
412
+ # example, App Engine indexes its entries by module and by version, so its `
413
+ # indexKeys` field is the following: [ "appengine.googleapis.com/module_id", "
414
+ # appengine.googleapis.com/version_id" ]
415
+ # Corresponds to the JSON property `indexKeys`
416
+ # @return [Array<String>]
417
+ attr_accessor :index_keys
418
+
419
+ def initialize(**args)
420
+ update!(**args)
421
+ end
422
+
423
+ # Update properties of this object
424
+ def update!(**args)
425
+ @name = args[:name] unless args[:name].nil?
426
+ @index_keys = args[:index_keys] unless args[:index_keys].nil?
427
+ end
428
+ end
429
+
430
+ # Result returned from ListLogServiceIndexesRequest.
431
+ class ListLogServiceIndexesResponse
432
+ include Google::Apis::Core::Hashable
433
+
434
+ # A list of log service index values. Each index value has the form `"/value1/
435
+ # value2/..."`, where `value1` is a value in the primary index, `value2` is a
436
+ # value in the secondary index, and so forth.
437
+ # Corresponds to the JSON property `serviceIndexPrefixes`
438
+ # @return [Array<String>]
439
+ attr_accessor :service_index_prefixes
440
+
441
+ # If there are more results, then `nextPageToken` is returned in the response.
442
+ # To get the next batch of indexes, use the value of `nextPageToken` as `
443
+ # pageToken` in the next call of `ListLogServiceIndexes`. If `nextPageToken` is
444
+ # empty, then there are no more results.
445
+ # Corresponds to the JSON property `nextPageToken`
446
+ # @return [String]
447
+ attr_accessor :next_page_token
448
+
449
+ def initialize(**args)
450
+ update!(**args)
451
+ end
452
+
453
+ # Update properties of this object
454
+ def update!(**args)
455
+ @service_index_prefixes = args[:service_index_prefixes] unless args[:service_index_prefixes].nil?
456
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
457
+ end
458
+ end
459
+
460
+ # Result returned from `ListLogSinks`.
461
+ class ListLogSinksResponse
462
+ include Google::Apis::Core::Hashable
463
+
464
+ # The requested log sinks. If a returned `LogSink` object has an empty `
465
+ # destination` field, the client can retrieve the complete `LogSink` object by
466
+ # calling `log.sinks.get`.
467
+ # Corresponds to the JSON property `sinks`
468
+ # @return [Array<Google::Apis::LoggingV1beta3::LogSink>]
469
+ attr_accessor :sinks
470
+
471
+ def initialize(**args)
472
+ update!(**args)
473
+ end
474
+
475
+ # Update properties of this object
476
+ def update!(**args)
477
+ @sinks = args[:sinks] unless args[:sinks].nil?
478
+ end
479
+ end
480
+
481
+ # Describes where log entries are written outside of Cloud Logging.
482
+ class LogSink
483
+ include Google::Apis::Core::Hashable
484
+
485
+ # The client-assigned name of this sink. For example, `"my-syslog-sink"`. The
486
+ # name must be unique among the sinks of a similar kind in the project.
487
+ # Corresponds to the JSON property `name`
488
+ # @return [String]
489
+ attr_accessor :name
490
+
491
+ # The resource name of the destination. Cloud Logging writes designated log
492
+ # entries to this destination. For example, `"storage.googleapis.com/my-output-
493
+ # bucket"`.
494
+ # Corresponds to the JSON property `destination`
495
+ # @return [String]
496
+ attr_accessor :destination
497
+
498
+ # An advanced logs filter. If present, only log entries matching the filter are
499
+ # written. Only project sinks use this field; log sinks and log service sinks
500
+ # must not include a filter.
501
+ # Corresponds to the JSON property `filter`
502
+ # @return [String]
503
+ attr_accessor :filter
504
+
505
+ # _Output only._ If any errors occur when invoking a sink method, then this
506
+ # field contains descriptions of the errors.
507
+ # Corresponds to the JSON property `errors`
508
+ # @return [Array<Google::Apis::LoggingV1beta3::LogError>]
509
+ attr_accessor :errors
510
+
511
+ def initialize(**args)
512
+ update!(**args)
513
+ end
514
+
515
+ # Update properties of this object
516
+ def update!(**args)
517
+ @name = args[:name] unless args[:name].nil?
518
+ @destination = args[:destination] unless args[:destination].nil?
519
+ @filter = args[:filter] unless args[:filter].nil?
520
+ @errors = args[:errors] unless args[:errors].nil?
521
+ end
522
+ end
523
+
524
+ # Describes a problem with a logging resource or operation.
525
+ class LogError
526
+ include Google::Apis::Core::Hashable
527
+
528
+ # A resource name associated with this error. For example, the name of a Cloud
529
+ # Storage bucket that has insufficient permissions to be a destination for log
530
+ # entries.
531
+ # Corresponds to the JSON property `resource`
532
+ # @return [String]
533
+ attr_accessor :resource
534
+
535
+ # The `Status` type defines a logical error model that is suitable for different
536
+ # programming environments, including REST APIs and RPC APIs. It is used by [
537
+ # gRPC](https://github.com/grpc). The error model is designed to be: - Simple to
538
+ # use and understand for most users - Flexible enough to meet unexpected needs #
539
+ # Overview The `Status` message contains three pieces of data: error code, error
540
+ # message, and error details. The error code should be an enum value of google.
541
+ # rpc.Code, but it may accept additional error codes if needed. The error
542
+ # message should be a developer-facing English message that helps developers *
543
+ # understand* and *resolve* the error. If a localized user-facing error message
544
+ # is needed, put the localized message in the error details or localize it in
545
+ # the client. The optional error details may contain arbitrary information about
546
+ # the error. There is a predefined set of error detail types in the package `
547
+ # google.rpc` which can be used for common error conditions. # Language mapping
548
+ # The `Status` message is the logical representation of the error model, but it
549
+ # is not necessarily the actual wire format. When the `Status` message is
550
+ # exposed in different client libraries and different wire protocols, it can be
551
+ # mapped differently. For example, it will likely be mapped to some exceptions
552
+ # in Java, but more likely mapped to some error codes in C. # Other uses The
553
+ # error model and the `Status` message can be used in a variety of environments,
554
+ # either with or without APIs, to provide a consistent developer experience
555
+ # across different environments. Example uses of this error model include: -
556
+ # Partial errors. If a service needs to return partial errors to the client, it
557
+ # may embed the `Status` in the normal response to indicate the partial errors. -
558
+ # Workflow errors. A typical workflow has multiple steps. Each step may have a `
559
+ # Status` message for error reporting purpose. - Batch operations. If a client
560
+ # uses batch request and batch response, the `Status` message should be used
561
+ # directly inside batch response, one for each error sub-response. -
562
+ # Asynchronous operations. If an API call embeds asynchronous operation results
563
+ # in its response, the status of those operations should be represented directly
564
+ # using the `Status` message. - Logging. If some API errors are stored in logs,
565
+ # the message `Status` could be used directly after any stripping needed for
566
+ # security/privacy reasons.
567
+ # Corresponds to the JSON property `status`
568
+ # @return [Google::Apis::LoggingV1beta3::Status]
569
+ attr_accessor :status
570
+
571
+ # The time the error was observed, in nanoseconds since the Unix epoch.
572
+ # Corresponds to the JSON property `timeNanos`
573
+ # @return [String]
574
+ attr_accessor :time_nanos
575
+
576
+ def initialize(**args)
577
+ update!(**args)
578
+ end
579
+
580
+ # Update properties of this object
581
+ def update!(**args)
582
+ @resource = args[:resource] unless args[:resource].nil?
583
+ @status = args[:status] unless args[:status].nil?
584
+ @time_nanos = args[:time_nanos] unless args[:time_nanos].nil?
585
+ end
586
+ end
587
+
588
+ # The `Status` type defines a logical error model that is suitable for different
589
+ # programming environments, including REST APIs and RPC APIs. It is used by [
590
+ # gRPC](https://github.com/grpc). The error model is designed to be: - Simple to
591
+ # use and understand for most users - Flexible enough to meet unexpected needs #
592
+ # Overview The `Status` message contains three pieces of data: error code, error
593
+ # message, and error details. The error code should be an enum value of google.
594
+ # rpc.Code, but it may accept additional error codes if needed. The error
595
+ # message should be a developer-facing English message that helps developers *
596
+ # understand* and *resolve* the error. If a localized user-facing error message
597
+ # is needed, put the localized message in the error details or localize it in
598
+ # the client. The optional error details may contain arbitrary information about
599
+ # the error. There is a predefined set of error detail types in the package `
600
+ # google.rpc` which can be used for common error conditions. # Language mapping
601
+ # The `Status` message is the logical representation of the error model, but it
602
+ # is not necessarily the actual wire format. When the `Status` message is
603
+ # exposed in different client libraries and different wire protocols, it can be
604
+ # mapped differently. For example, it will likely be mapped to some exceptions
605
+ # in Java, but more likely mapped to some error codes in C. # Other uses The
606
+ # error model and the `Status` message can be used in a variety of environments,
607
+ # either with or without APIs, to provide a consistent developer experience
608
+ # across different environments. Example uses of this error model include: -
609
+ # Partial errors. If a service needs to return partial errors to the client, it
610
+ # may embed the `Status` in the normal response to indicate the partial errors. -
611
+ # Workflow errors. A typical workflow has multiple steps. Each step may have a `
612
+ # Status` message for error reporting purpose. - Batch operations. If a client
613
+ # uses batch request and batch response, the `Status` message should be used
614
+ # directly inside batch response, one for each error sub-response. -
615
+ # Asynchronous operations. If an API call embeds asynchronous operation results
616
+ # in its response, the status of those operations should be represented directly
617
+ # using the `Status` message. - Logging. If some API errors are stored in logs,
618
+ # the message `Status` could be used directly after any stripping needed for
619
+ # security/privacy reasons.
620
+ class Status
621
+ include Google::Apis::Core::Hashable
622
+
623
+ # The status code, which should be an enum value of google.rpc.Code.
624
+ # Corresponds to the JSON property `code`
625
+ # @return [Fixnum]
626
+ attr_accessor :code
627
+
628
+ # A developer-facing error message, which should be in English. Any user-facing
629
+ # error message should be localized and sent in the google.rpc.Status.details
630
+ # field, or localized by the client.
631
+ # Corresponds to the JSON property `message`
632
+ # @return [String]
633
+ attr_accessor :message
634
+
635
+ # A list of messages that carry the error details. There will be a common set of
636
+ # message types for APIs to use.
637
+ # Corresponds to the JSON property `details`
638
+ # @return [Array<Hash<String,Object>>]
639
+ attr_accessor :details
640
+
641
+ def initialize(**args)
642
+ update!(**args)
643
+ end
644
+
645
+ # Update properties of this object
646
+ def update!(**args)
647
+ @code = args[:code] unless args[:code].nil?
648
+ @message = args[:message] unless args[:message].nil?
649
+ @details = args[:details] unless args[:details].nil?
650
+ end
651
+ end
652
+
653
+ # Result returned from `ListLogServiceSinks`.
654
+ class ListLogServiceSinksResponse
655
+ include Google::Apis::Core::Hashable
656
+
657
+ # The requested log service sinks. If a returned `LogSink` object has an empty `
658
+ # destination` field, the client can retrieve the complete `LogSink` object by
659
+ # calling `logServices.sinks.get`.
660
+ # Corresponds to the JSON property `sinks`
661
+ # @return [Array<Google::Apis::LoggingV1beta3::LogSink>]
662
+ attr_accessor :sinks
663
+
664
+ def initialize(**args)
665
+ update!(**args)
666
+ end
667
+
668
+ # Update properties of this object
669
+ def update!(**args)
670
+ @sinks = args[:sinks] unless args[:sinks].nil?
671
+ end
672
+ end
673
+
674
+ # Result returned from `ListSinks`.
675
+ class ListSinksResponse
676
+ include Google::Apis::Core::Hashable
677
+
678
+ # The requested sinks. If a returned `LogSink` object has an empty `destination`
679
+ # field, the client can retrieve the complete `LogSink` object by calling `
680
+ # projects.sinks.get`.
681
+ # Corresponds to the JSON property `sinks`
682
+ # @return [Array<Google::Apis::LoggingV1beta3::LogSink>]
683
+ attr_accessor :sinks
684
+
685
+ def initialize(**args)
686
+ update!(**args)
687
+ end
688
+
689
+ # Update properties of this object
690
+ def update!(**args)
691
+ @sinks = args[:sinks] unless args[:sinks].nil?
692
+ end
693
+ end
694
+
695
+ # Result returned from ListLogMetrics.
696
+ class ListLogMetricsResponse
697
+ include Google::Apis::Core::Hashable
698
+
699
+ # The list of metrics that was requested.
700
+ # Corresponds to the JSON property `metrics`
701
+ # @return [Array<Google::Apis::LoggingV1beta3::LogMetric>]
702
+ attr_accessor :metrics
703
+
704
+ # If there are more results, then `nextPageToken` is returned in the response.
705
+ # To get the next batch of entries, use the value of `nextPageToken` as `
706
+ # pageToken` in the next call of `ListLogMetrics`. If `nextPageToken` is empty,
707
+ # then there are no more results.
708
+ # Corresponds to the JSON property `nextPageToken`
709
+ # @return [String]
710
+ attr_accessor :next_page_token
711
+
712
+ def initialize(**args)
713
+ update!(**args)
714
+ end
715
+
716
+ # Update properties of this object
717
+ def update!(**args)
718
+ @metrics = args[:metrics] unless args[:metrics].nil?
719
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
720
+ end
721
+ end
722
+
723
+ # Describes a logs-based metric. The value of the metric is the number of log
724
+ # entries in your project that match a logs filter.
725
+ class LogMetric
726
+ include Google::Apis::Core::Hashable
727
+
728
+ # The client-assigned name for this metric, such as `"severe_errors"`. Metric
729
+ # names are limited to 1000 characters and can include only the following
730
+ # characters: `A-Z`, `a-z`, `0-9`, and the special characters `_-.,+!*',()%/\`.
731
+ # The slash character (`/`) denotes a hierarchy of name pieces, and it cannot be
732
+ # the first character of the name.
733
+ # Corresponds to the JSON property `name`
734
+ # @return [String]
735
+ attr_accessor :name
736
+
737
+ # A description of this metric.
738
+ # Corresponds to the JSON property `description`
739
+ # @return [String]
740
+ attr_accessor :description
741
+
742
+ # An [advanced logs filter](/logging/docs/view/advanced_filters). Example: `"log:
743
+ # syslog AND metadata.severity>=ERROR"`.
744
+ # Corresponds to the JSON property `filter`
745
+ # @return [String]
746
+ attr_accessor :filter
747
+
748
+ def initialize(**args)
749
+ update!(**args)
750
+ end
751
+
752
+ # Update properties of this object
753
+ def update!(**args)
754
+ @name = args[:name] unless args[:name].nil?
755
+ @description = args[:description] unless args[:description].nil?
756
+ @filter = args[:filter] unless args[:filter].nil?
757
+ end
758
+ end
759
+
760
+ # Complete log information about a single request to an application.
761
+ class RequestLog
762
+ include Google::Apis::Core::Hashable
763
+
764
+ # Identifies the application that handled this request.
765
+ # Corresponds to the JSON property `appId`
766
+ # @return [String]
767
+ attr_accessor :app_id
768
+
769
+ # Identifies the module of the application that handled this request.
770
+ # Corresponds to the JSON property `moduleId`
771
+ # @return [String]
772
+ attr_accessor :module_id
773
+
774
+ # Version of the application that handled this request.
775
+ # Corresponds to the JSON property `versionId`
776
+ # @return [String]
777
+ attr_accessor :version_id
778
+
779
+ # Globally unique identifier for a request, based on request start time. Request
780
+ # IDs for requests which started later will compare greater as strings than
781
+ # those for requests which started earlier.
782
+ # Corresponds to the JSON property `requestId`
783
+ # @return [String]
784
+ attr_accessor :request_id
785
+
786
+ # Origin IP address.
787
+ # Corresponds to the JSON property `ip`
788
+ # @return [String]
789
+ attr_accessor :ip
790
+
791
+ # Time at which request was known to have begun processing.
792
+ # Corresponds to the JSON property `startTime`
793
+ # @return [String]
794
+ attr_accessor :start_time
795
+
796
+ # Time at which request was known to end processing.
797
+ # Corresponds to the JSON property `endTime`
798
+ # @return [String]
799
+ attr_accessor :end_time
800
+
801
+ # Latency of the request.
802
+ # Corresponds to the JSON property `latency`
803
+ # @return [String]
804
+ attr_accessor :latency
805
+
806
+ # Number of CPU megacycles used to process request.
807
+ # Corresponds to the JSON property `megaCycles`
808
+ # @return [String]
809
+ attr_accessor :mega_cycles
810
+
811
+ # Request method, such as `GET`, `HEAD`, `PUT`, `POST`, or `DELETE`.
812
+ # Corresponds to the JSON property `method`
813
+ # @return [String]
814
+ attr_accessor :method_prop
815
+
816
+ # Contains the path and query portion of the URL that was requested. For example,
817
+ # if the URL was "http://example.com/app?name=val", the resource would be "/app?
818
+ # name=val". Any trailing fragment (separated by a '#' character) will not be
819
+ # included.
820
+ # Corresponds to the JSON property `resource`
821
+ # @return [String]
822
+ attr_accessor :resource
823
+
824
+ # HTTP version of request.
825
+ # Corresponds to the JSON property `httpVersion`
826
+ # @return [String]
827
+ attr_accessor :http_version
828
+
829
+ # Response status of request.
830
+ # Corresponds to the JSON property `status`
831
+ # @return [Fixnum]
832
+ attr_accessor :status
833
+
834
+ # Size in bytes sent back to client by request.
835
+ # Corresponds to the JSON property `responseSize`
836
+ # @return [String]
837
+ attr_accessor :response_size
838
+
839
+ # Referrer URL of request.
840
+ # Corresponds to the JSON property `referrer`
841
+ # @return [String]
842
+ attr_accessor :referrer
843
+
844
+ # User agent used for making request.
845
+ # Corresponds to the JSON property `userAgent`
846
+ # @return [String]
847
+ attr_accessor :user_agent
848
+
849
+ # A string that identifies a logged-in user who made this request, or empty if
850
+ # the user is not logged in. Most likely, this is the part of the user's email
851
+ # before the '@' sign. The field value is the same for different requests from
852
+ # the same user, but different users may have a similar name. This information
853
+ # is also available to the application via Users API. This field will be
854
+ # populated starting with App Engine 1.9.21.
855
+ # Corresponds to the JSON property `nickname`
856
+ # @return [String]
857
+ attr_accessor :nickname
858
+
859
+ # File or class within URL mapping used for request. Useful for tracking down
860
+ # the source code which was responsible for managing request. Especially for
861
+ # multiply mapped handlers.
862
+ # Corresponds to the JSON property `urlMapEntry`
863
+ # @return [String]
864
+ attr_accessor :url_map_entry
865
+
866
+ # The Internet host and port number of the resource being requested.
867
+ # Corresponds to the JSON property `host`
868
+ # @return [String]
869
+ attr_accessor :host
870
+
871
+ # An indication of the relative cost of serving this request.
872
+ # Corresponds to the JSON property `cost`
873
+ # @return [Float]
874
+ attr_accessor :cost
875
+
876
+ # Queue name of the request (for an offline request).
877
+ # Corresponds to the JSON property `taskQueueName`
878
+ # @return [String]
879
+ attr_accessor :task_queue_name
880
+
881
+ # Task name of the request (for an offline request).
882
+ # Corresponds to the JSON property `taskName`
883
+ # @return [String]
884
+ attr_accessor :task_name
885
+
886
+ # Was this request a loading request for this instance?
887
+ # Corresponds to the JSON property `wasLoadingRequest`
888
+ # @return [Boolean]
889
+ attr_accessor :was_loading_request
890
+ alias_method :was_loading_request?, :was_loading_request
891
+
892
+ # Time this request spent in the pending request queue, if it was pending at all.
893
+ # Corresponds to the JSON property `pendingTime`
894
+ # @return [String]
895
+ attr_accessor :pending_time
896
+
897
+ # If the instance that processed this request was individually addressable (i.e.
898
+ # belongs to a manually scaled module), this is the index of the instance.
899
+ # Corresponds to the JSON property `instanceIndex`
900
+ # @return [Fixnum]
901
+ attr_accessor :instance_index
902
+
903
+ # If true, represents a finished request. Otherwise, the request is active.
904
+ # Corresponds to the JSON property `finished`
905
+ # @return [Boolean]
906
+ attr_accessor :finished
907
+ alias_method :finished?, :finished
908
+
909
+ # An opaque identifier for the instance that handled the request.
910
+ # Corresponds to the JSON property `instanceId`
911
+ # @return [String]
912
+ attr_accessor :instance_id
913
+
914
+ # List of log lines emitted by the application while serving this request, if
915
+ # requested.
916
+ # Corresponds to the JSON property `line`
917
+ # @return [Array<Google::Apis::LoggingV1beta3::LogLine>]
918
+ attr_accessor :line
919
+
920
+ # App Engine release version string.
921
+ # Corresponds to the JSON property `appEngineRelease`
922
+ # @return [String]
923
+ attr_accessor :app_engine_release
924
+
925
+ # Cloud Trace identifier of the trace for this request.
926
+ # Corresponds to the JSON property `traceId`
927
+ # @return [String]
928
+ attr_accessor :trace_id
929
+
930
+ # Source code for the application that handled this request. There can be more
931
+ # than one source reference per deployed application if source code is
932
+ # distributed among multiple repositories.
933
+ # Corresponds to the JSON property `sourceReference`
934
+ # @return [Array<Google::Apis::LoggingV1beta3::SourceReference>]
935
+ attr_accessor :source_reference
936
+
937
+ def initialize(**args)
938
+ update!(**args)
939
+ end
940
+
941
+ # Update properties of this object
942
+ def update!(**args)
943
+ @app_id = args[:app_id] unless args[:app_id].nil?
944
+ @module_id = args[:module_id] unless args[:module_id].nil?
945
+ @version_id = args[:version_id] unless args[:version_id].nil?
946
+ @request_id = args[:request_id] unless args[:request_id].nil?
947
+ @ip = args[:ip] unless args[:ip].nil?
948
+ @start_time = args[:start_time] unless args[:start_time].nil?
949
+ @end_time = args[:end_time] unless args[:end_time].nil?
950
+ @latency = args[:latency] unless args[:latency].nil?
951
+ @mega_cycles = args[:mega_cycles] unless args[:mega_cycles].nil?
952
+ @method_prop = args[:method_prop] unless args[:method_prop].nil?
953
+ @resource = args[:resource] unless args[:resource].nil?
954
+ @http_version = args[:http_version] unless args[:http_version].nil?
955
+ @status = args[:status] unless args[:status].nil?
956
+ @response_size = args[:response_size] unless args[:response_size].nil?
957
+ @referrer = args[:referrer] unless args[:referrer].nil?
958
+ @user_agent = args[:user_agent] unless args[:user_agent].nil?
959
+ @nickname = args[:nickname] unless args[:nickname].nil?
960
+ @url_map_entry = args[:url_map_entry] unless args[:url_map_entry].nil?
961
+ @host = args[:host] unless args[:host].nil?
962
+ @cost = args[:cost] unless args[:cost].nil?
963
+ @task_queue_name = args[:task_queue_name] unless args[:task_queue_name].nil?
964
+ @task_name = args[:task_name] unless args[:task_name].nil?
965
+ @was_loading_request = args[:was_loading_request] unless args[:was_loading_request].nil?
966
+ @pending_time = args[:pending_time] unless args[:pending_time].nil?
967
+ @instance_index = args[:instance_index] unless args[:instance_index].nil?
968
+ @finished = args[:finished] unless args[:finished].nil?
969
+ @instance_id = args[:instance_id] unless args[:instance_id].nil?
970
+ @line = args[:line] unless args[:line].nil?
971
+ @app_engine_release = args[:app_engine_release] unless args[:app_engine_release].nil?
972
+ @trace_id = args[:trace_id] unless args[:trace_id].nil?
973
+ @source_reference = args[:source_reference] unless args[:source_reference].nil?
974
+ end
975
+ end
976
+
977
+ # Application log line emitted while processing a request.
978
+ class LogLine
979
+ include Google::Apis::Core::Hashable
980
+
981
+ # Time when log entry was made. May be inaccurate.
982
+ # Corresponds to the JSON property `time`
983
+ # @return [String]
984
+ attr_accessor :time
985
+
986
+ # Severity of log.
987
+ # Corresponds to the JSON property `severity`
988
+ # @return [String]
989
+ attr_accessor :severity
990
+
991
+ # App provided log message.
992
+ # Corresponds to the JSON property `logMessage`
993
+ # @return [String]
994
+ attr_accessor :log_message
995
+
996
+ # Specifies a location in a source file.
997
+ # Corresponds to the JSON property `sourceLocation`
998
+ # @return [Google::Apis::LoggingV1beta3::SourceLocation]
999
+ attr_accessor :source_location
1000
+
1001
+ def initialize(**args)
1002
+ update!(**args)
1003
+ end
1004
+
1005
+ # Update properties of this object
1006
+ def update!(**args)
1007
+ @time = args[:time] unless args[:time].nil?
1008
+ @severity = args[:severity] unless args[:severity].nil?
1009
+ @log_message = args[:log_message] unless args[:log_message].nil?
1010
+ @source_location = args[:source_location] unless args[:source_location].nil?
1011
+ end
1012
+ end
1013
+
1014
+ # Specifies a location in a source file.
1015
+ class SourceLocation
1016
+ include Google::Apis::Core::Hashable
1017
+
1018
+ # Source file name. May or may not be a fully qualified name, depending on the
1019
+ # runtime environment.
1020
+ # Corresponds to the JSON property `file`
1021
+ # @return [String]
1022
+ attr_accessor :file
1023
+
1024
+ # Line within the source file.
1025
+ # Corresponds to the JSON property `line`
1026
+ # @return [String]
1027
+ attr_accessor :line
1028
+
1029
+ # Human-readable name of the function or method being invoked, with optional
1030
+ # context such as the class or package name, for use in contexts such as the
1031
+ # logs viewer where file:line number is less meaningful. This may vary by
1032
+ # language, for example: in Java: qual.if.ied.Class.method in Go: dir/package.
1033
+ # func in Python: function ...
1034
+ # Corresponds to the JSON property `functionName`
1035
+ # @return [String]
1036
+ attr_accessor :function_name
1037
+
1038
+ def initialize(**args)
1039
+ update!(**args)
1040
+ end
1041
+
1042
+ # Update properties of this object
1043
+ def update!(**args)
1044
+ @file = args[:file] unless args[:file].nil?
1045
+ @line = args[:line] unless args[:line].nil?
1046
+ @function_name = args[:function_name] unless args[:function_name].nil?
1047
+ end
1048
+ end
1049
+
1050
+ # A reference to a particular snapshot of the source tree used to build and
1051
+ # deploy an application.
1052
+ class SourceReference
1053
+ include Google::Apis::Core::Hashable
1054
+
1055
+ # Optional. A URI string identifying the repository. Example: "https://github.
1056
+ # com/GoogleCloudPlatform/kubernetes.git"
1057
+ # Corresponds to the JSON property `repository`
1058
+ # @return [String]
1059
+ attr_accessor :repository
1060
+
1061
+ # The canonical (and persistent) identifier of the deployed revision. Example (
1062
+ # git): "0035781c50ec7aa23385dc841529ce8a4b70db1b"
1063
+ # Corresponds to the JSON property `revisionId`
1064
+ # @return [String]
1065
+ attr_accessor :revision_id
1066
+
1067
+ def initialize(**args)
1068
+ update!(**args)
1069
+ end
1070
+
1071
+ # Update properties of this object
1072
+ def update!(**args)
1073
+ @repository = args[:repository] unless args[:repository].nil?
1074
+ @revision_id = args[:revision_id] unless args[:revision_id].nil?
1075
+ end
1076
+ end
1077
+ end
1078
+ end
1079
+ end