google-api-client 0.9.8 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (320) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +15 -8
  3. data/CHANGELOG.md +84 -0
  4. data/Gemfile +10 -2
  5. data/README.md +10 -2
  6. data/api_names.yaml +37172 -135
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
  11. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  12. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
  13. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
  14. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  15. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  16. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  17. data/generated/google/apis/admin_directory_v1.rb +1 -1
  18. data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
  19. data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
  20. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  21. data/generated/google/apis/admin_reports_v1.rb +5 -5
  22. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  23. data/generated/google/apis/adsense_v1_4.rb +1 -1
  24. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  26. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  27. data/generated/google/apis/analytics_v3.rb +1 -1
  28. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  29. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  30. data/generated/google/apis/analytics_v3/service.rb +256 -0
  31. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  32. data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
  33. data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
  34. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  35. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
  38. data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
  41. data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
  42. data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
  43. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  44. data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
  45. data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
  46. data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
  47. data/generated/google/apis/appsactivity_v1.rb +3 -3
  48. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  49. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  50. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  51. data/generated/google/apis/appstate_v1.rb +1 -1
  52. data/generated/google/apis/bigquery_v2.rb +1 -1
  53. data/generated/google/apis/bigquery_v2/classes.rb +360 -38
  54. data/generated/google/apis/bigquery_v2/representations.rb +106 -0
  55. data/generated/google/apis/bigquery_v2/service.rb +18 -4
  56. data/generated/google/apis/books_v1.rb +2 -2
  57. data/generated/google/apis/books_v1/classes.rb +83 -0
  58. data/generated/google/apis/books_v1/representations.rb +35 -0
  59. data/generated/google/apis/books_v1/service.rb +7 -3
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +208 -5
  62. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  63. data/generated/google/apis/civicinfo_v2.rb +3 -2
  64. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  65. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  67. data/generated/google/apis/classroom_v1.rb +22 -25
  68. data/generated/google/apis/classroom_v1/classes.rb +998 -761
  69. data/generated/google/apis/classroom_v1/representations.rb +263 -198
  70. data/generated/google/apis/classroom_v1/service.rb +1349 -672
  71. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  74. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  75. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  76. data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
  77. data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
  78. data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
  79. data/generated/google/apis/clouddebugger_v2.rb +5 -8
  80. data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
  81. data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
  82. data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
  83. data/generated/google/apis/cloudkms_v1.rb +35 -0
  84. data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
  85. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  86. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  87. data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
  88. data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
  89. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  90. data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
  91. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  92. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  93. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
  94. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
  95. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
  96. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  97. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
  98. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
  99. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
  100. data/generated/google/apis/cloudtrace_v1.rb +9 -9
  101. data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
  102. data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
  103. data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
  104. data/generated/google/apis/compute_beta.rb +1 -1
  105. data/generated/google/apis/compute_beta/classes.rb +7007 -3648
  106. data/generated/google/apis/compute_beta/representations.rb +1459 -120
  107. data/generated/google/apis/compute_beta/service.rb +7943 -3726
  108. data/generated/google/apis/compute_v1.rb +1 -1
  109. data/generated/google/apis/compute_v1/classes.rb +2567 -370
  110. data/generated/google/apis/compute_v1/representations.rb +855 -0
  111. data/generated/google/apis/compute_v1/service.rb +6388 -2908
  112. data/generated/google/apis/container_v1.rb +1 -1
  113. data/generated/google/apis/container_v1/classes.rb +287 -16
  114. data/generated/google/apis/container_v1/representations.rb +113 -2
  115. data/generated/google/apis/container_v1/service.rb +130 -0
  116. data/generated/google/apis/content_v2.rb +1 -1
  117. data/generated/google/apis/content_v2/classes.rb +778 -10
  118. data/generated/google/apis/content_v2/representations.rb +339 -0
  119. data/generated/google/apis/content_v2/service.rb +364 -49
  120. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  121. data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
  122. data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
  123. data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
  124. data/generated/google/apis/dataproc_v1.rb +1 -1
  125. data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
  126. data/generated/google/apis/dataproc_v1/representations.rb +299 -225
  127. data/generated/google/apis/dataproc_v1/service.rb +277 -192
  128. data/generated/google/apis/datastore_v1.rb +38 -0
  129. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  130. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  131. data/generated/google/apis/datastore_v1/service.rb +259 -0
  132. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  133. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  134. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  135. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  136. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  137. data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
  138. data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
  139. data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
  140. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  141. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  142. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  143. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  144. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  145. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  146. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  147. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  148. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  149. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  150. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  151. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  152. data/generated/google/apis/dns_v1.rb +1 -1
  153. data/generated/google/apis/dns_v1/classes.rb +1 -1
  154. data/generated/google/apis/dns_v2beta1.rb +43 -0
  155. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  156. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  157. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  158. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  159. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  160. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  161. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  162. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  163. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  164. data/generated/google/apis/drive_v2.rb +1 -1
  165. data/generated/google/apis/drive_v2/classes.rb +595 -37
  166. data/generated/google/apis/drive_v2/representations.rb +140 -0
  167. data/generated/google/apis/drive_v2/service.rb +406 -40
  168. data/generated/google/apis/drive_v3.rb +1 -1
  169. data/generated/google/apis/drive_v3/classes.rb +507 -40
  170. data/generated/google/apis/drive_v3/representations.rb +105 -0
  171. data/generated/google/apis/drive_v3/service.rb +326 -29
  172. data/generated/google/apis/fitness_v1.rb +38 -2
  173. data/generated/google/apis/fitness_v1/classes.rb +65 -7
  174. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  175. data/generated/google/apis/fitness_v1/service.rb +17 -18
  176. data/generated/google/apis/fusiontables_v2.rb +1 -1
  177. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  178. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  179. data/generated/google/apis/games_management_v1management.rb +1 -1
  180. data/generated/google/apis/games_v1.rb +1 -1
  181. data/generated/google/apis/genomics_v1.rb +10 -12
  182. data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
  183. data/generated/google/apis/genomics_v1/representations.rb +468 -496
  184. data/generated/google/apis/genomics_v1/service.rb +978 -882
  185. data/generated/google/apis/gmail_v1.rb +11 -2
  186. data/generated/google/apis/gmail_v1/classes.rb +655 -5
  187. data/generated/google/apis/gmail_v1/representations.rb +261 -0
  188. data/generated/google/apis/gmail_v1/service.rb +1211 -48
  189. data/generated/google/apis/groupssettings_v1.rb +2 -2
  190. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  191. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  192. data/generated/google/apis/iam_v1.rb +2 -2
  193. data/generated/google/apis/iam_v1/classes.rb +446 -368
  194. data/generated/google/apis/iam_v1/representations.rb +109 -91
  195. data/generated/google/apis/iam_v1/service.rb +249 -162
  196. data/generated/google/apis/identitytoolkit_v3.rb +7 -1
  197. data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
  198. data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
  199. data/generated/google/apis/kgsearch_v1.rb +2 -3
  200. data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
  201. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  202. data/generated/google/apis/kgsearch_v1/service.rb +26 -24
  203. data/generated/google/apis/language_v1beta1.rb +36 -0
  204. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  205. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  206. data/generated/google/apis/language_v1beta1/service.rb +185 -0
  207. data/generated/google/apis/licensing_v1.rb +3 -3
  208. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  209. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  210. data/generated/google/apis/licensing_v1/service.rb +1 -1
  211. data/generated/google/apis/logging_v2beta1.rb +6 -6
  212. data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
  213. data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
  214. data/generated/google/apis/logging_v2beta1/service.rb +427 -155
  215. data/generated/google/apis/manufacturers_v1.rb +34 -0
  216. data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
  217. data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
  218. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  219. data/generated/google/apis/mirror_v1.rb +2 -2
  220. data/generated/google/apis/mirror_v1/service.rb +1 -1
  221. data/generated/google/apis/monitoring_v3.rb +45 -0
  222. data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
  223. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  224. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  225. data/generated/google/apis/oauth2_v2.rb +1 -1
  226. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  227. data/generated/google/apis/partners_v2.rb +3 -3
  228. data/generated/google/apis/partners_v2/classes.rb +1831 -477
  229. data/generated/google/apis/partners_v2/representations.rb +571 -114
  230. data/generated/google/apis/partners_v2/service.rb +898 -167
  231. data/generated/google/apis/people_v1.rb +15 -16
  232. data/generated/google/apis/people_v1/classes.rb +1047 -859
  233. data/generated/google/apis/people_v1/representations.rb +252 -213
  234. data/generated/google/apis/people_v1/service.rb +75 -62
  235. data/generated/google/apis/plus_domains_v1.rb +1 -1
  236. data/generated/google/apis/plus_v1.rb +1 -1
  237. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  238. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
  239. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
  240. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
  241. data/generated/google/apis/pubsub_v1.rb +1 -1
  242. data/generated/google/apis/pubsub_v1/classes.rb +363 -310
  243. data/generated/google/apis/pubsub_v1/representations.rb +76 -76
  244. data/generated/google/apis/pubsub_v1/service.rb +464 -335
  245. data/generated/google/apis/qpx_express_v1.rb +1 -1
  246. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  247. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  248. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  249. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  250. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  251. data/generated/google/apis/reseller_v1.rb +1 -1
  252. data/generated/google/apis/reseller_v1/classes.rb +222 -61
  253. data/generated/google/apis/reseller_v1/representations.rb +28 -0
  254. data/generated/google/apis/reseller_v1/service.rb +240 -47
  255. data/generated/google/apis/script_v1.rb +19 -19
  256. data/generated/google/apis/script_v1/classes.rb +151 -137
  257. data/generated/google/apis/script_v1/representations.rb +26 -26
  258. data/generated/google/apis/script_v1/service.rb +9 -8
  259. data/generated/google/apis/sheets_v4.rb +7 -7
  260. data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
  261. data/generated/google/apis/sheets_v4/representations.rb +988 -737
  262. data/generated/google/apis/sheets_v4/service.rb +266 -99
  263. data/generated/google/apis/site_verification_v1.rb +1 -1
  264. data/generated/google/apis/slides_v1.rb +49 -0
  265. data/generated/google/apis/slides_v1/classes.rb +4480 -0
  266. data/generated/google/apis/slides_v1/representations.rb +1926 -0
  267. data/generated/google/apis/slides_v1/service.rb +245 -0
  268. data/generated/google/apis/speech_v1beta1.rb +34 -0
  269. data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
  270. data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
  271. data/generated/google/apis/speech_v1beta1/service.rb +270 -0
  272. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  273. data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
  274. data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
  275. data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
  276. data/generated/google/apis/storage_v1.rb +1 -1
  277. data/generated/google/apis/storage_v1/classes.rb +205 -21
  278. data/generated/google/apis/storage_v1/representations.rb +51 -1
  279. data/generated/google/apis/storage_v1/service.rb +263 -9
  280. data/generated/google/apis/tagmanager_v1.rb +5 -5
  281. data/generated/google/apis/translate_v2.rb +2 -2
  282. data/generated/google/apis/translate_v2/service.rb +1 -1
  283. data/generated/google/apis/vision_v1.rb +1 -1
  284. data/generated/google/apis/vision_v1/classes.rb +1275 -731
  285. data/generated/google/apis/vision_v1/representations.rb +378 -111
  286. data/generated/google/apis/vision_v1/service.rb +4 -4
  287. data/generated/google/apis/webmasters_v3.rb +1 -1
  288. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  289. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
  290. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
  291. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
  292. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  293. data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
  294. data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
  295. data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
  296. data/generated/google/apis/youtube_v3.rb +1 -1
  297. data/generated/google/apis/youtube_v3/classes.rb +430 -22
  298. data/generated/google/apis/youtube_v3/representations.rb +171 -4
  299. data/generated/google/apis/youtube_v3/service.rb +100 -9
  300. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  301. data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
  302. data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
  303. data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
  304. data/google-api-client.gemspec +4 -3
  305. data/lib/google/apis/core/api_command.rb +16 -6
  306. data/lib/google/apis/core/base_service.rb +17 -9
  307. data/lib/google/apis/core/download.rb +7 -2
  308. data/lib/google/apis/core/http_command.rb +5 -1
  309. data/lib/google/apis/core/json_representation.rb +2 -2
  310. data/lib/google/apis/core/upload.rb +7 -1
  311. data/lib/google/apis/errors.rb +6 -2
  312. data/lib/google/apis/generator/annotator.rb +6 -0
  313. data/lib/google/apis/version.rb +1 -1
  314. data/samples/cli/lib/samples/bigquery.rb +101 -0
  315. data/samples/cli/lib/samples/calendar.rb +1 -1
  316. data/samples/cli/lib/samples/gmail.rb +74 -0
  317. data/samples/cli/lib/samples/sheets.rb +61 -0
  318. data/samples/cli/lib/samples/you_tube.rb +4 -1
  319. data/sync.rb +71 -0
  320. metadata +86 -18
@@ -18,26 +18,26 @@ require 'google/apis/cloudtrace_v1/representations.rb'
18
18
 
19
19
  module Google
20
20
  module Apis
21
- # Google Cloud Trace API
21
+ # Stackdriver Trace API
22
22
  #
23
- # Send and retrieve trace data from Google Cloud Trace. Data is generated and
23
+ # Send and retrieve trace data from Stackdriver Trace. Data is generated and
24
24
  # available by default for all App Engine applications. Data from other
25
- # applications can be written to Cloud Trace for display, reporting, and
25
+ # applications can be written to Stackdriver Trace for display, reporting, and
26
26
  # analysis.
27
27
  #
28
- # @see https://cloud.google.com/tools/cloud-trace
28
+ # @see https://cloud.google.com/trace
29
29
  module CloudtraceV1
30
30
  VERSION = 'V1'
31
- REVISION = '20160518'
31
+ REVISION = '20170320'
32
32
 
33
- # View and manage your data across Google Cloud Platform services
34
- AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
33
+ # Read Trace data for a project or application
34
+ AUTH_TRACE_READONLY = 'https://www.googleapis.com/auth/trace.readonly'
35
35
 
36
36
  # Write Trace data for a project or application
37
37
  AUTH_TRACE_APPEND = 'https://www.googleapis.com/auth/trace.append'
38
38
 
39
- # Read Trace data for a project or application
40
- AUTH_TRACE_READONLY = 'https://www.googleapis.com/auth/trace.readonly'
39
+ # View and manage your data across Google Cloud Platform services
40
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
41
41
  end
42
42
  end
43
43
  end
@@ -22,6 +22,75 @@ module Google
22
22
  module Apis
23
23
  module CloudtraceV1
24
24
 
25
+ # A span represents a single timed event within a trace. Spans can be nested
26
+ # and form a trace tree. Often, a trace contains a root span that describes the
27
+ # end-to-end latency of an operation and, optionally, one or more subspans for
28
+ # its suboperations. Spans do not need to be contiguous. There may be gaps
29
+ # between spans in a trace.
30
+ class TraceSpan
31
+ include Google::Apis::Core::Hashable
32
+
33
+ # Identifier for the span. Must be a 64-bit integer other than 0 and
34
+ # unique within a trace.
35
+ # Corresponds to the JSON property `spanId`
36
+ # @return [String]
37
+ attr_accessor :span_id
38
+
39
+ # ID of the parent span, if any. Optional.
40
+ # Corresponds to the JSON property `parentSpanId`
41
+ # @return [String]
42
+ attr_accessor :parent_span_id
43
+
44
+ # End time of the span in nanoseconds from the UNIX epoch.
45
+ # Corresponds to the JSON property `endTime`
46
+ # @return [String]
47
+ attr_accessor :end_time
48
+
49
+ # Start time of the span in nanoseconds from the UNIX epoch.
50
+ # Corresponds to the JSON property `startTime`
51
+ # @return [String]
52
+ attr_accessor :start_time
53
+
54
+ # Distinguishes between spans generated in a particular context. For example,
55
+ # two spans with the same name may be distinguished using `RPC_CLIENT`
56
+ # and `RPC_SERVER` to identify queueing latency associated with the span.
57
+ # Corresponds to the JSON property `kind`
58
+ # @return [String]
59
+ attr_accessor :kind
60
+
61
+ # Collection of labels associated with the span. Label keys must be less than
62
+ # 128 bytes. Label values must be less than 16 kilobytes.
63
+ # Corresponds to the JSON property `labels`
64
+ # @return [Hash<String,String>]
65
+ attr_accessor :labels
66
+
67
+ # Name of the span. Must be less than 128 bytes. The span name is sanitized
68
+ # and displayed in the Stackdriver Trace tool in the
69
+ # `% dynamic print site_values.console_name %`.
70
+ # The name may be a method name or some other per-call site name.
71
+ # For the same executable and the same call point, a best practice is
72
+ # to use a consistent name, which makes it easier to correlate
73
+ # cross-trace spans.
74
+ # Corresponds to the JSON property `name`
75
+ # @return [String]
76
+ attr_accessor :name
77
+
78
+ def initialize(**args)
79
+ update!(**args)
80
+ end
81
+
82
+ # Update properties of this object
83
+ def update!(**args)
84
+ @span_id = args[:span_id] if args.key?(:span_id)
85
+ @parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id)
86
+ @end_time = args[:end_time] if args.key?(:end_time)
87
+ @start_time = args[:start_time] if args.key?(:start_time)
88
+ @kind = args[:kind] if args.key?(:kind)
89
+ @labels = args[:labels] if args.key?(:labels)
90
+ @name = args[:name] if args.key?(:name)
91
+ end
92
+ end
93
+
25
94
  # The response message for the `ListTraces` method.
26
95
  class ListTracesResponse
27
96
  include Google::Apis::Core::Hashable
@@ -31,9 +100,9 @@ module Google
31
100
  # @return [Array<Google::Apis::CloudtraceV1::Trace>]
32
101
  attr_accessor :traces
33
102
 
34
- # If defined, indicates that there are more traces that match the request and
35
- # that this value should be passed to the next request to continue retrieving
36
- # additional traces.
103
+ # If defined, indicates that there are more traces that match the request
104
+ # and that this value should be passed to the next request to continue
105
+ # retrieving additional traces.
37
106
  # Corresponds to the JSON property `nextPageToken`
38
107
  # @return [String]
39
108
  attr_accessor :next_page_token
@@ -49,88 +118,46 @@ module Google
49
118
  end
50
119
  end
51
120
 
52
- # A trace describes how long it takes for an application to perform an operation.
53
- # It consists of a set of spans, each of which represent a single timed event
54
- # within the operation.
55
- class Trace
121
+ # A generic empty message that you can re-use to avoid defining duplicated
122
+ # empty messages in your APIs. A typical example is to use it as the request
123
+ # or the response type of an API method. For instance:
124
+ # service Foo `
125
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
126
+ # `
127
+ # The JSON representation for `Empty` is empty JSON object ````.
128
+ class Empty
56
129
  include Google::Apis::Core::Hashable
57
130
 
58
- # Project ID of the Cloud project where the trace data is stored.
59
- # Corresponds to the JSON property `projectId`
60
- # @return [String]
61
- attr_accessor :project_id
62
-
63
- # Globally unique identifier for the trace. This identifier is a 128-bit numeric
64
- # value formatted as a 32-byte hex string.
65
- # Corresponds to the JSON property `traceId`
66
- # @return [String]
67
- attr_accessor :trace_id
68
-
69
- # Collection of spans in the trace.
70
- # Corresponds to the JSON property `spans`
71
- # @return [Array<Google::Apis::CloudtraceV1::TraceSpan>]
72
- attr_accessor :spans
73
-
74
131
  def initialize(**args)
75
132
  update!(**args)
76
133
  end
77
134
 
78
135
  # Update properties of this object
79
136
  def update!(**args)
80
- @project_id = args[:project_id] if args.key?(:project_id)
81
- @trace_id = args[:trace_id] if args.key?(:trace_id)
82
- @spans = args[:spans] if args.key?(:spans)
83
137
  end
84
138
  end
85
139
 
86
- # A span represents a single timed event within a trace. Spans can be nested and
87
- # form a trace tree. Often, a trace contains a root span that describes the end-
88
- # to-end latency of an operation and, optionally, one or more subspans for its
89
- # suboperations. Spans do not need to be contiguous. There may be gaps between
90
- # spans in a trace.
91
- class TraceSpan
140
+ # A trace describes how long it takes for an application to perform an
141
+ # operation. It consists of a set of spans, each of which represent a single
142
+ # timed event within the operation.
143
+ class Trace
92
144
  include Google::Apis::Core::Hashable
93
145
 
94
- # Identifier for the span. This identifier must be unique within a trace.
95
- # Corresponds to the JSON property `spanId`
96
- # @return [String]
97
- attr_accessor :span_id
98
-
99
- # Distinguishes between spans generated in a particular context. For example,
100
- # two spans with the same name may be distinguished using `RPC_CLIENT` and `
101
- # RPC_SERVER` to identify queueing latency associated with the span.
102
- # Corresponds to the JSON property `kind`
103
- # @return [String]
104
- attr_accessor :kind
105
-
106
- # Name of the trace. The trace name is sanitized and displayed in the
107
- # Stackdriver Trace tool in the `% dynamic print site_values.console_name %`.
108
- # The name may be a method name or some other per-call site name. For the same
109
- # executable and the same call point, a best practice is to use a consistent
110
- # name, which makes it easier to correlate cross-trace spans.
111
- # Corresponds to the JSON property `name`
112
- # @return [String]
113
- attr_accessor :name
114
-
115
- # Start time of the span in nanoseconds from the UNIX epoch.
116
- # Corresponds to the JSON property `startTime`
146
+ # Project ID of the Cloud project where the trace data is stored.
147
+ # Corresponds to the JSON property `projectId`
117
148
  # @return [String]
118
- attr_accessor :start_time
149
+ attr_accessor :project_id
119
150
 
120
- # End time of the span in nanoseconds from the UNIX epoch.
121
- # Corresponds to the JSON property `endTime`
122
- # @return [String]
123
- attr_accessor :end_time
151
+ # Collection of spans in the trace.
152
+ # Corresponds to the JSON property `spans`
153
+ # @return [Array<Google::Apis::CloudtraceV1::TraceSpan>]
154
+ attr_accessor :spans
124
155
 
125
- # ID of the parent span, if any. Optional.
126
- # Corresponds to the JSON property `parentSpanId`
156
+ # Globally unique identifier for the trace. This identifier is a 128-bit
157
+ # numeric value formatted as a 32-byte hex string.
158
+ # Corresponds to the JSON property `traceId`
127
159
  # @return [String]
128
- attr_accessor :parent_span_id
129
-
130
- # Collection of labels associated with the span.
131
- # Corresponds to the JSON property `labels`
132
- # @return [Hash<String,String>]
133
- attr_accessor :labels
160
+ attr_accessor :trace_id
134
161
 
135
162
  def initialize(**args)
136
163
  update!(**args)
@@ -138,13 +165,9 @@ module Google
138
165
 
139
166
  # Update properties of this object
140
167
  def update!(**args)
141
- @span_id = args[:span_id] if args.key?(:span_id)
142
- @kind = args[:kind] if args.key?(:kind)
143
- @name = args[:name] if args.key?(:name)
144
- @start_time = args[:start_time] if args.key?(:start_time)
145
- @end_time = args[:end_time] if args.key?(:end_time)
146
- @parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id)
147
- @labels = args[:labels] if args.key?(:labels)
168
+ @project_id = args[:project_id] if args.key?(:project_id)
169
+ @spans = args[:spans] if args.key?(:spans)
170
+ @trace_id = args[:trace_id] if args.key?(:trace_id)
148
171
  end
149
172
  end
150
173
 
@@ -166,23 +189,6 @@ module Google
166
189
  @traces = args[:traces] if args.key?(:traces)
167
190
  end
168
191
  end
169
-
170
- # A generic empty message that you can re-use to avoid defining duplicated empty
171
- # messages in your APIs. A typical example is to use it as the request or the
172
- # response type of an API method. For instance: service Foo ` rpc Bar(google.
173
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
174
- # `Empty` is empty JSON object ````.
175
- class Empty
176
- include Google::Apis::Core::Hashable
177
-
178
- def initialize(**args)
179
- update!(**args)
180
- end
181
-
182
- # Update properties of this object
183
- def update!(**args)
184
- end
185
- end
186
192
  end
187
193
  end
188
194
  end
@@ -22,79 +22,79 @@ module Google
22
22
  module Apis
23
23
  module CloudtraceV1
24
24
 
25
- class ListTracesResponse
25
+ class TraceSpan
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class Trace
31
+ class ListTracesResponse
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class TraceSpan
37
+ class Empty
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class Traces
43
+ class Trace
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class Empty
49
+ class Traces
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class ListTracesResponse
55
+ class TraceSpan
56
56
  # @private
57
57
  class Representation < Google::Apis::Core::JsonRepresentation
58
- collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
59
-
60
- property :next_page_token, as: 'nextPageToken'
58
+ property :span_id, as: 'spanId'
59
+ property :parent_span_id, as: 'parentSpanId'
60
+ property :end_time, as: 'endTime'
61
+ property :start_time, as: 'startTime'
62
+ property :kind, as: 'kind'
63
+ hash :labels, as: 'labels'
64
+ property :name, as: 'name'
61
65
  end
62
66
  end
63
67
 
64
- class Trace
68
+ class ListTracesResponse
65
69
  # @private
66
70
  class Representation < Google::Apis::Core::JsonRepresentation
67
- property :project_id, as: 'projectId'
68
- property :trace_id, as: 'traceId'
69
- collection :spans, as: 'spans', class: Google::Apis::CloudtraceV1::TraceSpan, decorator: Google::Apis::CloudtraceV1::TraceSpan::Representation
71
+ collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
70
72
 
73
+ property :next_page_token, as: 'nextPageToken'
71
74
  end
72
75
  end
73
76
 
74
- class TraceSpan
77
+ class Empty
75
78
  # @private
76
79
  class Representation < Google::Apis::Core::JsonRepresentation
77
- property :span_id, as: 'spanId'
78
- property :kind, as: 'kind'
79
- property :name, as: 'name'
80
- property :start_time, as: 'startTime'
81
- property :end_time, as: 'endTime'
82
- property :parent_span_id, as: 'parentSpanId'
83
- hash :labels, as: 'labels'
84
80
  end
85
81
  end
86
82
 
87
- class Traces
83
+ class Trace
88
84
  # @private
89
85
  class Representation < Google::Apis::Core::JsonRepresentation
90
- collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
86
+ property :project_id, as: 'projectId'
87
+ collection :spans, as: 'spans', class: Google::Apis::CloudtraceV1::TraceSpan, decorator: Google::Apis::CloudtraceV1::TraceSpan::Representation
91
88
 
89
+ property :trace_id, as: 'traceId'
92
90
  end
93
91
  end
94
92
 
95
- class Empty
93
+ class Traces
96
94
  # @private
97
95
  class Representation < Google::Apis::Core::JsonRepresentation
96
+ collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
97
+
98
98
  end
99
99
  end
100
100
  end
@@ -20,11 +20,11 @@ require 'google/apis/errors'
20
20
  module Google
21
21
  module Apis
22
22
  module CloudtraceV1
23
- # Google Cloud Trace API
23
+ # Stackdriver Trace API
24
24
  #
25
- # Send and retrieve trace data from Google Cloud Trace. Data is generated and
25
+ # Send and retrieve trace data from Stackdriver Trace. Data is generated and
26
26
  # available by default for all App Engine applications. Data from other
27
- # applications can be written to Cloud Trace for display, reporting, and
27
+ # applications can be written to Stackdriver Trace for display, reporting, and
28
28
  # analysis.
29
29
  #
30
30
  # @example
@@ -33,7 +33,7 @@ module Google
33
33
  # Cloudtrace = Google::Apis::CloudtraceV1 # Alias the module
34
34
  # service = Cloudtrace::CloudTraceService.new
35
35
  #
36
- # @see https://cloud.google.com/tools/cloud-trace
36
+ # @see https://cloud.google.com/trace
37
37
  class CloudTraceService < Google::Apis::Core::BaseService
38
38
  # @return [String]
39
39
  # API key. Your API key identifies your project and provides you with API access,
@@ -49,11 +49,11 @@ module Google
49
49
  super('https://cloudtrace.googleapis.com/', '')
50
50
  end
51
51
 
52
- # Sends new traces to Stackdriver Trace or updates existing traces. If the ID of
53
- # a trace that you send matches that of an existing trace, any fields in the
54
- # existing trace and its spans are overwritten by the provided values, and any
55
- # new fields provided are merged with the existing trace data. If the ID does
56
- # not match, a new trace is created.
52
+ # Sends new traces to Stackdriver Trace or updates existing traces. If the ID
53
+ # of a trace that you send matches that of an existing trace, any fields
54
+ # in the existing trace and its spans are overwritten by the provided values,
55
+ # and any new fields provided are merged with the existing trace data. If the
56
+ # ID does not match, a new trace is created.
57
57
  # @param [String] project_id
58
58
  # ID of the Cloud project where the trace data is stored.
59
59
  # @param [Google::Apis::CloudtraceV1::Traces] traces_object
@@ -89,30 +89,35 @@ module Google
89
89
  # Returns of a list of traces that match the specified filter conditions.
90
90
  # @param [String] project_id
91
91
  # ID of the Cloud project where the trace data is stored.
92
- # @param [String] view
93
- # Type of data returned for traces in the list. Optional. Default is `MINIMAL`.
94
- # @param [Fixnum] page_size
95
- # Maximum number of traces to return. If not specified or <= 0, the
96
- # implementation selects a reasonable value. The implementation may return fewer
97
- # traces than the requested page size. Optional.
98
- # @param [String] page_token
99
- # Token identifying the page of results to return. If provided, use the value of
100
- # the `next_page_token` field from a previous request. Optional.
101
- # @param [String] start_time
102
- # End of the time interval (inclusive) during which the trace data was collected
103
- # from the application.
92
+ # @param [String] order_by
93
+ # Field used to sort the returned traces. Optional.
94
+ # Can be one of the following:
95
+ # * `trace_id`
96
+ # * `name` (`name` field of root span in the trace)
97
+ # * `duration` (difference between `end_time` and `start_time` fields of
98
+ # the root span)
99
+ # * `start` (`start_time` field of the root span)
100
+ # Descending order can be specified by appending `desc` to the sort field
101
+ # (for example, `name desc`).
102
+ # Only one sort field is permitted.
103
+ # @param [String] filter
104
+ # An optional filter for the request.
104
105
  # @param [String] end_time
105
106
  # Start of the time interval (inclusive) during which the trace data was
106
107
  # collected from the application.
107
- # @param [String] filter
108
- # An optional filter for the request.
109
- # @param [String] order_by
110
- # Field used to sort the returned traces. Optional. Can be one of the following:
111
- # * `trace_id` * `name` (`name` field of root span in the trace) * `duration` (
112
- # difference between `end_time` and `start_time` fields of the root span) * `
113
- # start` (`start_time` field of the root span) Descending order can be specified
114
- # by appending `desc` to the sort field (for example, `name desc`). Only one
115
- # sort field is permitted.
108
+ # @param [String] start_time
109
+ # End of the time interval (inclusive) during which the trace data was
110
+ # collected from the application.
111
+ # @param [String] page_token
112
+ # Token identifying the page of results to return. If provided, use the
113
+ # value of the `next_page_token` field from a previous request. Optional.
114
+ # @param [Fixnum] page_size
115
+ # Maximum number of traces to return. If not specified or <= 0, the
116
+ # implementation selects a reasonable value. The implementation may
117
+ # return fewer traces than the requested page size. Optional.
118
+ # @param [String] view
119
+ # Type of data returned for traces in the list. Optional. Default is
120
+ # `MINIMAL`.
116
121
  # @param [String] fields
117
122
  # Selector specifying which fields to include in a partial response.
118
123
  # @param [String] quota_user
@@ -130,18 +135,18 @@ module Google
130
135
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
131
136
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
132
137
  # @raise [Google::Apis::AuthorizationError] Authorization is required
133
- def list_project_traces(project_id, view: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, filter: nil, order_by: nil, fields: nil, quota_user: nil, options: nil, &block)
138
+ def list_project_traces(project_id, order_by: nil, filter: nil, end_time: nil, start_time: nil, page_token: nil, page_size: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
134
139
  command = make_simple_command(:get, 'v1/projects/{projectId}/traces', options)
135
140
  command.response_representation = Google::Apis::CloudtraceV1::ListTracesResponse::Representation
136
141
  command.response_class = Google::Apis::CloudtraceV1::ListTracesResponse
137
142
  command.params['projectId'] = project_id unless project_id.nil?
138
- command.query['view'] = view unless view.nil?
139
- command.query['pageSize'] = page_size unless page_size.nil?
140
- command.query['pageToken'] = page_token unless page_token.nil?
141
- command.query['startTime'] = start_time unless start_time.nil?
142
- command.query['endTime'] = end_time unless end_time.nil?
143
- command.query['filter'] = filter unless filter.nil?
144
143
  command.query['orderBy'] = order_by unless order_by.nil?
144
+ command.query['filter'] = filter unless filter.nil?
145
+ command.query['endTime'] = end_time unless end_time.nil?
146
+ command.query['startTime'] = start_time unless start_time.nil?
147
+ command.query['pageToken'] = page_token unless page_token.nil?
148
+ command.query['pageSize'] = page_size unless page_size.nil?
149
+ command.query['view'] = view unless view.nil?
145
150
  command.query['fields'] = fields unless fields.nil?
146
151
  command.query['quotaUser'] = quota_user unless quota_user.nil?
147
152
  execute_or_queue_command(command, &block)