google-api-client 0.9.pre3 → 0.9.pre4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (307) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +14 -2
  4. data/Gemfile +4 -0
  5. data/MIGRATING.md +1 -1
  6. data/README.md +17 -3
  7. data/api_names.yaml +127 -14
  8. data/api_names_out.yaml +5442 -710
  9. data/bin/generate-api +16 -14
  10. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
  12. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
  13. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
  16. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  17. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  18. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  19. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  20. data/generated/google/apis/admin_directory_v1.rb +25 -1
  21. data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
  22. data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
  23. data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
  24. data/generated/google/apis/admin_reports_v1.rb +1 -1
  25. data/generated/google/apis/admin_reports_v1/service.rb +5 -10
  26. data/generated/google/apis/adsense_v1_4.rb +1 -1
  27. data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
  28. data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
  29. data/generated/google/apis/adsense_v1_4/service.rb +40 -78
  30. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  31. data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
  32. data/generated/google/apis/analytics_v3.rb +1 -1
  33. data/generated/google/apis/analytics_v3/classes.rb +11 -13
  34. data/generated/google/apis/analytics_v3/service.rb +84 -158
  35. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
  38. data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
  41. data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
  42. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  43. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  44. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  45. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  46. data/generated/google/apis/appsactivity_v1.rb +1 -1
  47. data/generated/google/apis/appsactivity_v1/service.rb +1 -2
  48. data/generated/google/apis/appstate_v1.rb +1 -1
  49. data/generated/google/apis/appstate_v1/service.rb +6 -11
  50. data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
  51. data/generated/google/apis/bigquery_v2.rb +4 -1
  52. data/generated/google/apis/bigquery_v2/classes.rb +231 -16
  53. data/generated/google/apis/bigquery_v2/representations.rb +62 -0
  54. data/generated/google/apis/bigquery_v2/service.rb +24 -45
  55. data/generated/google/apis/blogger_v3/service.rb +33 -66
  56. data/generated/google/apis/books_v1.rb +1 -1
  57. data/generated/google/apis/books_v1/classes.rb +441 -0
  58. data/generated/google/apis/books_v1/representations.rb +177 -0
  59. data/generated/google/apis/books_v1/service.rb +210 -90
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +34 -18
  62. data/generated/google/apis/calendar_v3/service.rb +118 -103
  63. data/generated/google/apis/civicinfo_v2.rb +1 -1
  64. data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
  65. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +5 -10
  67. data/generated/google/apis/classroom_v1.rb +49 -0
  68. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  69. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  70. data/generated/google/apis/classroom_v1/service.rb +970 -0
  71. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  74. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  75. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  76. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  77. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  78. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  79. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  80. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
  81. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
  85. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  88. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  89. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  90. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  91. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  92. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  93. data/generated/google/apis/compute_beta.rb +49 -0
  94. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  95. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  96. data/generated/google/apis/compute_beta/service.rb +10154 -0
  97. data/generated/google/apis/compute_v1.rb +1 -1
  98. data/generated/google/apis/compute_v1/classes.rb +1305 -520
  99. data/generated/google/apis/compute_v1/representations.rb +122 -15
  100. data/generated/google/apis/compute_v1/service.rb +2202 -1085
  101. data/generated/google/apis/container_v1.rb +1 -1
  102. data/generated/google/apis/container_v1/classes.rb +56 -31
  103. data/generated/google/apis/container_v1/representations.rb +12 -0
  104. data/generated/google/apis/container_v1/service.rb +62 -41
  105. data/generated/google/apis/content_v2.rb +2 -2
  106. data/generated/google/apis/content_v2/classes.rb +2252 -56
  107. data/generated/google/apis/content_v2/representations.rb +917 -87
  108. data/generated/google/apis/content_v2/service.rb +680 -85
  109. data/generated/google/apis/coordinate_v1.rb +1 -1
  110. data/generated/google/apis/coordinate_v1/service.rb +16 -25
  111. data/generated/google/apis/customsearch_v1/service.rb +1 -2
  112. data/generated/google/apis/datastore_v1beta2.rb +1 -1
  113. data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
  114. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  115. data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
  116. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  117. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
  119. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
  120. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
  121. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
  122. data/generated/google/apis/dfareporting_v2_1.rb +1 -1
  123. data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
  125. data/generated/google/apis/discovery_v1/classes.rb +7 -0
  126. data/generated/google/apis/discovery_v1/representations.rb +1 -0
  127. data/generated/google/apis/discovery_v1/service.rb +2 -4
  128. data/generated/google/apis/dns_v1.rb +4 -1
  129. data/generated/google/apis/dns_v1/service.rb +9 -18
  130. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  131. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
  132. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
  133. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
  134. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  135. data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
  136. data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
  137. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
  138. data/generated/google/apis/drive_v2.rb +1 -1
  139. data/generated/google/apis/drive_v2/classes.rb +73 -30
  140. data/generated/google/apis/drive_v2/representations.rb +14 -0
  141. data/generated/google/apis/drive_v2/service.rb +139 -135
  142. data/generated/google/apis/drive_v3.rb +55 -0
  143. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  144. data/generated/google/apis/drive_v3/representations.rb +497 -0
  145. data/generated/google/apis/drive_v3/service.rb +1541 -0
  146. data/generated/google/apis/fitness_v1.rb +1 -1
  147. data/generated/google/apis/fitness_v1/service.rb +14 -27
  148. data/generated/google/apis/fusiontables_v2/service.rb +40 -73
  149. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  150. data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
  151. data/generated/google/apis/games_management_v1management.rb +37 -0
  152. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  153. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  154. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  155. data/generated/google/apis/games_v1.rb +1 -1
  156. data/generated/google/apis/games_v1/classes.rb +39 -0
  157. data/generated/google/apis/games_v1/representations.rb +14 -0
  158. data/generated/google/apis/games_v1/service.rb +93 -109
  159. data/generated/google/apis/gan_v1beta1/service.rb +10 -20
  160. data/generated/google/apis/genomics_v1.rb +5 -3
  161. data/generated/google/apis/genomics_v1/classes.rb +519 -200
  162. data/generated/google/apis/genomics_v1/representations.rb +126 -13
  163. data/generated/google/apis/genomics_v1/service.rb +392 -236
  164. data/generated/google/apis/gmail_v1.rb +4 -1
  165. data/generated/google/apis/gmail_v1/service.rb +39 -71
  166. data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
  167. data/generated/google/apis/groupssettings_v1/service.rb +3 -6
  168. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  169. data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
  170. data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
  171. data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
  172. data/generated/google/apis/kgsearch_v1.rb +32 -0
  173. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  174. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  175. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  176. data/generated/google/apis/licensing_v1.rb +1 -1
  177. data/generated/google/apis/licensing_v1/service.rb +7 -14
  178. data/generated/google/apis/logging_v1beta3.rb +16 -4
  179. data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
  180. data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
  181. data/generated/google/apis/logging_v1beta3/service.rb +435 -104
  182. data/generated/google/apis/manager_v1beta2.rb +3 -0
  183. data/generated/google/apis/manager_v1beta2/service.rb +8 -16
  184. data/generated/google/apis/mapsengine_v1.rb +1 -1
  185. data/generated/google/apis/mapsengine_v1/service.rb +85 -162
  186. data/generated/google/apis/mirror_v1.rb +1 -1
  187. data/generated/google/apis/mirror_v1/service.rb +28 -52
  188. data/generated/google/apis/oauth2_v2.rb +1 -1
  189. data/generated/google/apis/oauth2_v2/service.rb +4 -8
  190. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
  191. data/generated/google/apis/partners_v2.rb +32 -0
  192. data/generated/google/apis/partners_v2/classes.rb +942 -0
  193. data/generated/google/apis/partners_v2/representations.rb +402 -0
  194. data/generated/google/apis/partners_v2/service.rb +400 -0
  195. data/generated/google/apis/plus_domains_v1.rb +1 -1
  196. data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
  197. data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
  198. data/generated/google/apis/plus_domains_v1/service.rb +21 -41
  199. data/generated/google/apis/plus_v1.rb +1 -1
  200. data/generated/google/apis/plus_v1/classes.rb +207 -0
  201. data/generated/google/apis/plus_v1/representations.rb +114 -0
  202. data/generated/google/apis/plus_v1/service.rb +11 -56
  203. data/generated/google/apis/prediction_v1_6.rb +1 -1
  204. data/generated/google/apis/prediction_v1_6/service.rb +8 -16
  205. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  206. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  207. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  208. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  209. data/generated/google/apis/pubsub_v1.rb +37 -0
  210. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  211. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  212. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  213. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  214. data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
  215. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
  216. data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
  217. data/generated/google/apis/qpx_express_v1/service.rb +1 -2
  218. data/generated/google/apis/replicapool_v1beta2.rb +3 -0
  219. data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
  220. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
  221. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
  222. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
  223. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
  224. data/generated/google/apis/reseller_v1.rb +1 -1
  225. data/generated/google/apis/reseller_v1/classes.rb +19 -1
  226. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  227. data/generated/google/apis/reseller_v1/service.rb +16 -30
  228. data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
  230. data/generated/google/apis/script_v1.rb +61 -0
  231. data/generated/google/apis/script_v1/classes.rb +259 -0
  232. data/generated/google/apis/script_v1/representations.rb +106 -0
  233. data/generated/google/apis/script_v1/service.rb +98 -0
  234. data/generated/google/apis/site_verification_v1.rb +1 -1
  235. data/generated/google/apis/site_verification_v1/service.rb +8 -15
  236. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  237. data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
  238. data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
  239. data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
  240. data/generated/google/apis/storage_v1.rb +5 -2
  241. data/generated/google/apis/storage_v1/classes.rb +47 -4
  242. data/generated/google/apis/storage_v1/representations.rb +18 -0
  243. data/generated/google/apis/storage_v1/service.rb +77 -94
  244. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  245. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  246. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  247. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  248. data/generated/google/apis/tagmanager_v1.rb +1 -1
  249. data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
  250. data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
  251. data/generated/google/apis/tagmanager_v1/service.rb +114 -275
  252. data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
  253. data/generated/google/apis/tasks_v1/service.rb +14 -28
  254. data/generated/google/apis/translate_v2/service.rb +3 -6
  255. data/generated/google/apis/urlshortener_v1/service.rb +3 -6
  256. data/generated/google/apis/webmasters_v3.rb +3 -3
  257. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  258. data/generated/google/apis/webmasters_v3/service.rb +16 -30
  259. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  260. data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
  261. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
  262. data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
  263. data/generated/google/apis/youtube_v3.rb +1 -1
  264. data/generated/google/apis/youtube_v3/classes.rb +111 -78
  265. data/generated/google/apis/youtube_v3/representations.rb +2 -0
  266. data/generated/google/apis/youtube_v3/service.rb +78 -246
  267. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  268. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  269. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  270. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  271. data/google-api-client.gemspec +3 -3
  272. data/lib/google/api_client/auth/installed_app.rb +2 -2
  273. data/lib/google/api_client/auth/key_utils.rb +1 -0
  274. data/lib/google/api_client/auth/storage.rb +1 -0
  275. data/lib/google/api_client/auth/storages/file_store.rb +1 -0
  276. data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
  277. data/lib/google/api_client/client_secrets.rb +4 -5
  278. data/lib/google/apis/core/api_command.rb +2 -2
  279. data/lib/google/apis/core/base_service.rb +1 -0
  280. data/lib/google/apis/core/batch.rb +25 -8
  281. data/lib/google/apis/core/download.rb +1 -1
  282. data/lib/google/apis/core/http_command.rb +24 -12
  283. data/lib/google/apis/core/multipart.rb +20 -6
  284. data/lib/google/apis/core/upload.rb +11 -4
  285. data/lib/google/apis/generator/annotator.rb +29 -10
  286. data/lib/google/apis/generator/helpers.rb +1 -1
  287. data/lib/google/apis/generator/templates/_method.tmpl +5 -6
  288. data/lib/google/apis/options.rb +7 -3
  289. data/lib/google/apis/version.rb +1 -1
  290. data/samples/calendar/calendar.rb +1 -1
  291. data/samples/drive/drive.rb +9 -2
  292. data/samples/pubsub/pubsub.rb +5 -6
  293. data/samples/translate/translate.rb +1 -5
  294. data/script/generate +20 -5
  295. data/spec/fixtures/files/child/.gitignore +0 -0
  296. data/spec/fixtures/files/invalid.json +1 -0
  297. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  298. data/spec/google/apis/core/batch_spec.rb +22 -8
  299. data/spec/google/apis/core/download_spec.rb +13 -0
  300. data/spec/google/apis/core/http_command_spec.rb +26 -9
  301. data/spec/google/apis/core/upload_spec.rb +65 -17
  302. data/spec/google/apis/options_spec.rb +8 -0
  303. data/spec/integration_tests/adsense_spec.rb +28 -0
  304. data/spec/integration_tests/pubsub_spec.rb +3 -3
  305. data/spec/spec_helper.rb +5 -1
  306. data/third_party/hurley_patches.rb +103 -0
  307. metadata +87 -7
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/google-apps/licensing/
26
26
  module LicensingV1
27
27
  VERSION = 'V1'
28
- REVISION = '20150525'
28
+ REVISION = '20150901'
29
29
 
30
30
  # View and manage Google Apps licenses for your domain
31
31
  AUTH_APPS_LICENSING = 'https://www.googleapis.com/auth/apps.licensing'
@@ -81,8 +81,7 @@ module Google
81
81
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
82
82
  # @raise [Google::Apis::AuthorizationError] Authorization is required
83
83
  def delete_license_assignment(product_id, sku_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
84
- path = '{productId}/sku/{skuId}/user/{userId}'
85
- command = make_simple_command(:delete, path, options)
84
+ command = make_simple_command(:delete, '{productId}/sku/{skuId}/user/{userId}', options)
86
85
  command.params['productId'] = product_id unless product_id.nil?
87
86
  command.params['skuId'] = sku_id unless sku_id.nil?
88
87
  command.params['userId'] = user_id unless user_id.nil?
@@ -121,8 +120,7 @@ module Google
121
120
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
122
121
  # @raise [Google::Apis::AuthorizationError] Authorization is required
123
122
  def get_license_assignment(product_id, sku_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
124
- path = '{productId}/sku/{skuId}/user/{userId}'
125
- command = make_simple_command(:get, path, options)
123
+ command = make_simple_command(:get, '{productId}/sku/{skuId}/user/{userId}', options)
126
124
  command.response_representation = Google::Apis::LicensingV1::LicenseAssignment::Representation
127
125
  command.response_class = Google::Apis::LicensingV1::LicenseAssignment
128
126
  command.params['productId'] = product_id unless product_id.nil?
@@ -162,8 +160,7 @@ module Google
162
160
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
163
161
  # @raise [Google::Apis::AuthorizationError] Authorization is required
164
162
  def insert_license_assignment(product_id, sku_id, license_assignment_insert_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
165
- path = '{productId}/sku/{skuId}/user'
166
- command = make_simple_command(:post, path, options)
163
+ command = make_simple_command(:post, '{productId}/sku/{skuId}/user', options)
167
164
  command.request_representation = Google::Apis::LicensingV1::LicenseAssignmentInsert::Representation
168
165
  command.request_object = license_assignment_insert_object
169
166
  command.response_representation = Google::Apis::LicensingV1::LicenseAssignment::Representation
@@ -209,8 +206,7 @@ module Google
209
206
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
210
207
  # @raise [Google::Apis::AuthorizationError] Authorization is required
211
208
  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)
212
- path = '{productId}/users'
213
- command = make_simple_command(:get, path, options)
209
+ command = make_simple_command(:get, '{productId}/users', options)
214
210
  command.response_representation = Google::Apis::LicensingV1::LicenseAssignmentList::Representation
215
211
  command.response_class = Google::Apis::LicensingV1::LicenseAssignmentList
216
212
  command.params['productId'] = product_id unless product_id.nil?
@@ -258,8 +254,7 @@ module Google
258
254
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
259
255
  # @raise [Google::Apis::AuthorizationError] Authorization is required
260
256
  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)
261
- path = '{productId}/sku/{skuId}/users'
262
- command = make_simple_command(:get, path, options)
257
+ command = make_simple_command(:get, '{productId}/sku/{skuId}/users', options)
263
258
  command.response_representation = Google::Apis::LicensingV1::LicenseAssignmentList::Representation
264
259
  command.response_class = Google::Apis::LicensingV1::LicenseAssignmentList
265
260
  command.params['productId'] = product_id unless product_id.nil?
@@ -303,8 +298,7 @@ module Google
303
298
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
304
299
  # @raise [Google::Apis::AuthorizationError] Authorization is required
305
300
  def patch_license_assignment(product_id, sku_id, user_id, license_assignment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
306
- path = '{productId}/sku/{skuId}/user/{userId}'
307
- command = make_simple_command(:patch, path, options)
301
+ command = make_simple_command(:patch, '{productId}/sku/{skuId}/user/{userId}', options)
308
302
  command.request_representation = Google::Apis::LicensingV1::LicenseAssignment::Representation
309
303
  command.request_object = license_assignment_object
310
304
  command.response_representation = Google::Apis::LicensingV1::LicenseAssignment::Representation
@@ -348,8 +342,7 @@ module Google
348
342
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
349
343
  # @raise [Google::Apis::AuthorizationError] Authorization is required
350
344
  def update_license_assignment(product_id, sku_id, user_id, license_assignment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
351
- path = '{productId}/sku/{skuId}/user/{userId}'
352
- command = make_simple_command(:put, path, options)
345
+ command = make_simple_command(:put, '{productId}/sku/{skuId}/user/{userId}', options)
353
346
  command.request_representation = Google::Apis::LicensingV1::LicenseAssignment::Representation
354
347
  command.request_object = license_assignment_object
355
348
  command.response_representation = Google::Apis::LicensingV1::LicenseAssignment::Representation
@@ -20,16 +20,28 @@ module Google
20
20
  module Apis
21
21
  # Google Cloud Logging API
22
22
  #
23
- # Google Cloud Logging API lets you create logs, ingest log entries, and manage
24
- # log sinks.
23
+ # The Google Cloud Logging API lets you write log entries and manage your logs,
24
+ # log sinks and logs-based metrics.
25
25
  #
26
- # @see
26
+ # @see https://cloud.google.com/logging/docs/
27
27
  module LoggingV1beta3
28
28
  VERSION = 'V1beta3'
29
- REVISION = '20150326'
29
+ REVISION = '20151117'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
33
+
34
+ # View your data across Google Cloud Platform services
35
+ AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
36
+
37
+ # Administrate log data for your projects
38
+ AUTH_LOGGING_ADMIN = 'https://www.googleapis.com/auth/logging.admin'
39
+
40
+ # View log data for your projects
41
+ AUTH_LOGGING_READ = 'https://www.googleapis.com/auth/logging.read'
42
+
43
+ # Submit log data for your projects
44
+ AUTH_LOGGING_WRITE = 'https://www.googleapis.com/auth/logging.write'
33
45
  end
34
46
  end
35
47
  end
@@ -26,7 +26,7 @@ module Google
26
26
  class ListLogsResponse
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # A list of log resources.
29
+ # A list of log descriptions matching the criteria.
30
30
  # Corresponds to the JSON property `logs`
31
31
  # @return [Array<Google::Apis::LoggingV1beta3::Log>]
32
32
  attr_accessor :logs
@@ -50,23 +50,26 @@ module Google
50
50
  end
51
51
  end
52
52
 
53
- # A log object.
53
+ # _Output only._ Describes a log, which is a named stream of log entries.
54
54
  class Log
55
55
  include Google::Apis::Core::Hashable
56
56
 
57
- # REQUIRED: The log's name name. Example: `"compute.googleapis.com/activity_log"`
58
- # .
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"`.
59
63
  # Corresponds to the JSON property `name`
60
64
  # @return [String]
61
65
  attr_accessor :name
62
66
 
63
- # Name used when displaying the log to the user (for example, in a UI). Example:
64
- # `"activity_log"`
67
+ # _Optional._ The common name of the log. Example: `"request_log"`.
65
68
  # Corresponds to the JSON property `displayName`
66
69
  # @return [String]
67
70
  attr_accessor :display_name
68
71
 
69
- # Type URL describing the expected payload type for the log.
72
+ # _Optional_. A URI representing the expected payload type for log entries.
70
73
  # Corresponds to the JSON property `payloadType`
71
74
  # @return [String]
72
75
  attr_accessor :payload_type
@@ -86,7 +89,8 @@ module Google
86
89
  # A generic empty message that you can re-use to avoid defining duplicated empty
87
90
  # messages in your APIs. A typical example is to use it as the request or the
88
91
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
89
- # protobuf.Empty) returns (google.protobuf.Empty); `
92
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
93
+ # `Empty` is empty JSON object ````.
90
94
  class Empty
91
95
  include Google::Apis::Core::Hashable
92
96
 
@@ -103,9 +107,11 @@ module Google
103
107
  class WriteLogEntriesRequest
104
108
  include Google::Apis::Core::Hashable
105
109
 
106
- # Metadata labels that apply to all entries in this request. If one of the log
107
- # entries contains a (key, value) with the same key that is in `commonLabels`,
108
- # then the entry's (key, value) overrides the one in `commonLabels`.
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`.
109
115
  # Corresponds to the JSON property `commonLabels`
110
116
  # @return [Hash<String,String>]
111
117
  attr_accessor :common_labels
@@ -143,7 +149,7 @@ module Google
143
149
  # @return [Hash<String,Object>]
144
150
  attr_accessor :proto_payload
145
151
 
146
- # The log entry payload, represented as a text string.
152
+ # The log entry payload, represented as a Unicode string (UTF-8).
147
153
  # Corresponds to the JSON property `textPayload`
148
154
  # @return [String]
149
155
  attr_accessor :text_payload
@@ -167,6 +173,11 @@ module Google
167
173
  # @return [String]
168
174
  attr_accessor :log
169
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
+
170
181
  def initialize(**args)
171
182
  update!(**args)
172
183
  end
@@ -179,6 +190,7 @@ module Google
179
190
  @struct_payload = args[:struct_payload] unless args[:struct_payload].nil?
180
191
  @insert_id = args[:insert_id] unless args[:insert_id].nil?
181
192
  @log = args[:log] unless args[:log].nil?
193
+ @http_request = args[:http_request] unless args[:http_request].nil?
182
194
  end
183
195
  end
184
196
 
@@ -259,6 +271,88 @@ module Google
259
271
  end
260
272
  end
261
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
+
262
356
  # Result returned from WriteLogEntries. empty
263
357
  class WriteLogEntriesResponse
264
358
  include Google::Apis::Core::Hashable
@@ -300,17 +394,24 @@ module Google
300
394
  end
301
395
  end
302
396
 
303
- # A log service object.
397
+ # _Output only._ Describes a service that writes log entries.
304
398
  class LogService
305
399
  include Google::Apis::Core::Hashable
306
400
 
307
- # The service's name.
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.
308
405
  # Corresponds to the JSON property `name`
309
406
  # @return [String]
310
407
  attr_accessor :name
311
408
 
312
- # Label keys used when labeling log entries for this service. The order of the
313
- # keys is significant, with higher priority keys coming earlier in the list.
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" ]
314
415
  # Corresponds to the JSON property `indexKeys`
315
416
  # @return [Array<String>]
316
417
  attr_accessor :index_keys
@@ -330,14 +431,16 @@ module Google
330
431
  class ListLogServiceIndexesResponse
331
432
  include Google::Apis::Core::Hashable
332
433
 
333
- # A list of log service index prefixes.
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.
334
437
  # Corresponds to the JSON property `serviceIndexPrefixes`
335
438
  # @return [Array<String>]
336
439
  attr_accessor :service_index_prefixes
337
440
 
338
441
  # If there are more results, then `nextPageToken` is returned in the response.
339
442
  # To get the next batch of indexes, use the value of `nextPageToken` as `
340
- # pageToken` in the next call of `ListLogServiceIndexess`. If `nextPageToken` is
443
+ # pageToken` in the next call of `ListLogServiceIndexes`. If `nextPageToken` is
341
444
  # empty, then there are no more results.
342
445
  # Corresponds to the JSON property `nextPageToken`
343
446
  # @return [String]
@@ -358,9 +461,9 @@ module Google
358
461
  class ListLogSinksResponse
359
462
  include Google::Apis::Core::Hashable
360
463
 
361
- # The requested log sinks. If any of the returned `LogSink` objects have an
362
- # empty `destination` field, then call `logServices.sinks.get` to retrieve the
363
- # complete `LogSink` object.
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`.
364
467
  # Corresponds to the JSON property `sinks`
365
468
  # @return [Array<Google::Apis::LoggingV1beta3::LogSink>]
366
469
  attr_accessor :sinks
@@ -375,26 +478,32 @@ module Google
375
478
  end
376
479
  end
377
480
 
378
- # An object that describes where a log may be written.
481
+ # Describes where log entries are written outside of Cloud Logging.
379
482
  class LogSink
380
483
  include Google::Apis::Core::Hashable
381
484
 
382
- # The name of this sink. This is a client-assigned identifier for the resource.
383
- # This is ignored by UpdateLogSink and UpdateLogServicesSink.
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.
384
487
  # Corresponds to the JSON property `name`
385
488
  # @return [String]
386
489
  attr_accessor :name
387
490
 
388
- # The resource to send log entries to. The supported sink resource types are: +
389
- # Google Cloud Storage: `storage.googleapis.com/BUCKET` or `BUCKET.storage.
390
- # googleapis.com/` + Google BigQuery: `bigquery.googleapis.com/projects/PROJECT/
391
- # datasets/DATASET` Currently the Cloud Logging API supports at most one sink
392
- # for each resource type per log or log service resource.
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"`.
393
494
  # Corresponds to the JSON property `destination`
394
495
  # @return [String]
395
496
  attr_accessor :destination
396
497
 
397
- # _Output only._ All active errors found for this sink.
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.
398
507
  # Corresponds to the JSON property `errors`
399
508
  # @return [Array<Google::Apis::LoggingV1beta3::LogError>]
400
509
  attr_accessor :errors
@@ -407,28 +516,59 @@ module Google
407
516
  def update!(**args)
408
517
  @name = args[:name] unless args[:name].nil?
409
518
  @destination = args[:destination] unless args[:destination].nil?
519
+ @filter = args[:filter] unless args[:filter].nil?
410
520
  @errors = args[:errors] unless args[:errors].nil?
411
521
  end
412
522
  end
413
523
 
414
- # A problem in a sink or the sink's configuration.
524
+ # Describes a problem with a logging resource or operation.
415
525
  class LogError
416
526
  include Google::Apis::Core::Hashable
417
527
 
418
- # The resource associated with the error. It may be different from the sink
419
- # destination. For example, the sink may point to a BigQuery dataset, but the
420
- # error may refer to a table resource inside the dataset.
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.
421
531
  # Corresponds to the JSON property `resource`
422
532
  # @return [String]
423
533
  attr_accessor :resource
424
534
 
425
- # Represents the RPC error status for Google APIs. See http://go/errormodel for
426
- # details.
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.
427
567
  # Corresponds to the JSON property `status`
428
568
  # @return [Google::Apis::LoggingV1beta3::Status]
429
569
  attr_accessor :status
430
570
 
431
- # The last time the error was observed, in nanoseconds since the Unix epoch.
571
+ # The time the error was observed, in nanoseconds since the Unix epoch.
432
572
  # Corresponds to the JSON property `timeNanos`
433
573
  # @return [String]
434
574
  attr_accessor :time_nanos
@@ -445,19 +585,49 @@ module Google
445
585
  end
446
586
  end
447
587
 
448
- # Represents the RPC error status for Google APIs. See http://go/errormodel for
449
- # details.
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.
450
620
  class Status
451
621
  include Google::Apis::Core::Hashable
452
622
 
453
- # The status code, which should be an enum value of [google.rpc.Code][].
623
+ # The status code, which should be an enum value of google.rpc.Code.
454
624
  # Corresponds to the JSON property `code`
455
625
  # @return [Fixnum]
456
626
  attr_accessor :code
457
627
 
458
- # A developer-facing error message, which should be in English. The user-facing
459
- # error message should be localized and stored in the [google.rpc.Status.details]
460
- # [google.rpc.Status.details] field.
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.
461
631
  # Corresponds to the JSON property `message`
462
632
  # @return [String]
463
633
  attr_accessor :message
@@ -484,9 +654,9 @@ module Google
484
654
  class ListLogServiceSinksResponse
485
655
  include Google::Apis::Core::Hashable
486
656
 
487
- # The requested log service sinks. If any of the returned `LogSink` objects have
488
- # an empty `destination` field, then call `logServices.sinks.get` to retrieve
489
- # the complete `LogSink` object.
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`.
490
660
  # Corresponds to the JSON property `sinks`
491
661
  # @return [Array<Google::Apis::LoggingV1beta3::LogSink>]
492
662
  attr_accessor :sinks
@@ -500,6 +670,410 @@ module Google
500
670
  @sinks = args[:sinks] unless args[:sinks].nil?
501
671
  end
502
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
503
1077
  end
504
1078
  end
505
1079
  end