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
@@ -59,6 +59,19 @@ RSpec.describe Google::Apis::Core::DownloadCommand do
59
59
  expect(received).to eql('Hello world')
60
60
  end
61
61
  end
62
+
63
+ context 'with redirect' do
64
+ before(:example) do
65
+ stub_request(:get, 'https://www.googleapis.com/zoo/animals')
66
+ .to_return(status: [302, 'Content moved'], headers: { 'Location' => 'https://content.googleapis.com/files/12345' }, body: %(Content moved))
67
+ stub_request(:get, 'https://content.googleapis.com/files/12345')
68
+ .to_return(headers: { 'Content-Type' => 'application/json' }, body: %(Hello world))
69
+ end
70
+
71
+ it 'should receive content' do
72
+ expect(received).to eql 'Hello world'
73
+ end
74
+ end
62
75
  end
63
76
 
64
77
  context 'with default destination' do
@@ -123,13 +123,13 @@ RSpec.describe Google::Apis::Core::HttpCommand do
123
123
  command.options.retries = 1
124
124
  expect { command.execute(client) }.to raise_error(Google::Apis::ServerError)
125
125
  end
126
-
126
+
127
127
 
128
128
  context('with retries exceeded') do
129
129
  before(:example) do
130
130
  command.options.retries = 1
131
131
  end
132
-
132
+
133
133
  let(:err) do
134
134
  begin
135
135
  command.execute(client)
@@ -137,19 +137,16 @@ RSpec.describe Google::Apis::Core::HttpCommand do
137
137
  e
138
138
  end
139
139
  end
140
-
140
+
141
141
  it 'should raise error with HTTP status code' do
142
142
  expect(err.status_code).to eq 500
143
143
  end
144
-
144
+
145
145
  end
146
-
146
+
147
147
  context('with callbacks') do
148
148
  it 'should return the response body after retries' do
149
- expect { |b| command.execute(client, &b) }.to yield_successive_args(
150
- [nil, an_instance_of(Google::Apis::ServerError)],
151
- [nil, an_instance_of(Google::Apis::ServerError)],
152
- ['Hello world', nil])
149
+ expect { |b| command.execute(client, &b) }.to yield_with_args('Hello world', nil)
153
150
  end
154
151
  end
155
152
  end
@@ -254,5 +251,25 @@ RSpec.describe Google::Apis::Core::HttpCommand do
254
251
  it 'should call block if present' do
255
252
  expect { |b| command.execute(client, &b) }.to yield_with_args(nil, an_instance_of(Google::Apis::ClientError))
256
253
  end
254
+
255
+ it 'should not swallow errors raised in block' do
256
+ expect { command.execute(client) { raise "Potatoes detected in tailpipe" } }.to raise_error("Potatoes detected in tailpipe")
257
+ end
258
+ end
259
+
260
+ it 'should send repeated query parameters' do
261
+ stub_request(:get, 'https://www.googleapis.com/zoo/animals?a=1&a=2&a=3')
262
+ .to_return(status: [200, ''])
263
+ command = Google::Apis::Core::HttpCommand.new(:get, 'https://www.googleapis.com/zoo/animals')
264
+ command.query['a'] = [1,2,3]
265
+ command.execute(client)
266
+ end
267
+
268
+ it 'should not remove initial query parameters' do
269
+ stub_request(:get, 'https://www.googleapis.com/zoo/animals?a=1&a=2&a=3&foo=bar')
270
+ .to_return(status: [200, ''])
271
+ command = Google::Apis::Core::HttpCommand.new(:get, 'https://www.googleapis.com/zoo/animals?foo=bar')
272
+ command.query['a'] = [1,2,3]
273
+ command.execute(client)
257
274
  end
258
275
  end
@@ -22,30 +22,61 @@ require 'hurley/test'
22
22
  # TODO: Upload from file
23
23
 
24
24
  RSpec.describe Google::Apis::Core::UploadIO do
25
- let(:upload_io) { Google::Apis::Core::UploadIO.from_file(file) }
26
-
27
- context 'with text file' do
28
- let(:file) { File.join(FIXTURES_DIR, 'files', 'test.txt') }
29
- it 'should infer content type from file' do
30
- expect(upload_io.content_type).to eql('text/plain')
25
+ context 'from_file' do
26
+ let(:upload_io) { Google::Apis::Core::UploadIO.from_file(file) }
27
+
28
+ context 'with text file' do
29
+ let(:file) { File.join(FIXTURES_DIR, 'files', 'test.txt') }
30
+ it 'should infer content type from file' do
31
+ expect(upload_io.content_type).to eql('text/plain')
32
+ end
33
+
34
+ it 'should allow overriding the mime type' do
35
+ io = Google::Apis::Core::UploadIO.from_file(file, content_type: 'application/json')
36
+ expect(io.content_type).to eql('application/json')
37
+ end
31
38
  end
32
39
 
33
- it 'should allow overriding the mime type' do
34
- io = Google::Apis::Core::UploadIO.from_file(file, content_type: 'application/json')
35
- expect(io.content_type).to eql('application/json')
40
+ context 'with unknown type' do
41
+ let(:file) { File.join(FIXTURES_DIR, 'files', 'test.blah') }
42
+ it 'should use the default mime type' do
43
+ expect(upload_io.content_type).to eql('application/octet-stream')
44
+ end
45
+
46
+ it 'should allow overriding the mime type' do
47
+ io = Google::Apis::Core::UploadIO.from_file(file, content_type: 'application/json')
48
+ expect(io.content_type).to eql('application/json')
49
+ end
50
+
51
+ it 'should setup length of the stream' do
52
+ upload_io = Google::Apis::Core::UploadIO.from_file(file)
53
+ expect(upload_io.length).to eq File.size(file)
54
+ end
55
+
36
56
  end
37
57
  end
38
58
 
39
- context 'with unknown type' do
40
- let(:file) { File.join(FIXTURES_DIR, 'files', 'test.blah') }
41
- it 'should use the default mime type' do
42
- expect(upload_io.content_type).to eql('application/octet-stream')
43
- end
59
+ context 'from_io' do
44
60
 
45
- it 'should allow overriding the mime type' do
46
- io = Google::Apis::Core::UploadIO.from_file(file, content_type: 'application/json')
47
- expect(io.content_type).to eql('application/json')
61
+ context 'with i/o stream' do
62
+ let(:io) { StringIO.new 'Hello google' }
63
+
64
+ it 'should setup default content-type' do
65
+ upload_io = Google::Apis::Core::UploadIO.from_io(io)
66
+ expect(upload_io.content_type).to eql Google::Apis::Core::UploadIO::OCTET_STREAM_CONTENT_TYPE
67
+ end
68
+
69
+ it 'should allow overring the mime type' do
70
+ upload_io = Google::Apis::Core::UploadIO.from_io(io, content_type: 'application/x-gzip')
71
+ expect(upload_io.content_type).to eq('application/x-gzip')
72
+ end
73
+
74
+ it 'should setup length of the stream' do
75
+ upload_io = Google::Apis::Core::UploadIO.from_io(io)
76
+ expect(upload_io.length).to eq 'Hello google'.length
77
+ end
48
78
  end
79
+
49
80
  end
50
81
  end
51
82
 
@@ -76,6 +107,12 @@ RSpec.describe Google::Apis::Core::RawUploadCommand do
76
107
  expect(a_request(:post, 'https://www.googleapis.com/zoo/animals')
77
108
  .with { |req| req.headers['X-Goog-Upload-Protocol'] == 'raw' }).to have_been_made
78
109
  end
110
+
111
+ it 'should send content-type header' do
112
+ command.execute(client)
113
+ expect(a_request(:post, 'https://www.googleapis.com/zoo/animals')
114
+ .with { |req| req.headers['X-Goog-Upload-Header-Content-Type'] == 'text/plain' }).to have_been_made
115
+ end
79
116
  end
80
117
 
81
118
  context('with StringIO input') do
@@ -207,6 +244,17 @@ RSpec.describe Google::Apis::Core::ResumableUploadCommand do
207
244
  end
208
245
  end
209
246
 
247
+ context 'with non-retriable authorization error on start' do
248
+ before(:example) do
249
+ stub_request(:post, 'https://www.googleapis.com/zoo/animals')
250
+ .to_return(status: [401, 'unauthorized'], headers: { 'X-Goog-Upload-Status' => 'final' }, body: %(unauthorized))
251
+ end
252
+
253
+ it 'should propagate the original error' do
254
+ expect { command.execute(client) }.to raise_error Google::Apis::AuthorizationError
255
+ end
256
+ end
257
+
210
258
  context 'with interruption' do
211
259
  before(:example) do
212
260
  stub_request(:post, 'https://www.googleapis.com/zoo/animals')
@@ -37,4 +37,12 @@ RSpec.describe Google::Apis::RequestOptions do
37
37
  it 'should allow nil in merge' do
38
38
  expect(options.merge(nil)).to be_an_instance_of(Google::Apis::RequestOptions)
39
39
  end
40
+
41
+ it 'should override default options' do
42
+ Google::Apis::RequestOptions.default.header = 'Content-Length: 50'
43
+ opts = Google::Apis::RequestOptions.new
44
+ opts.header = 'Content-Length: 70'
45
+ expect(options.merge(opts).header).to eq 'Content-Length: 70'
46
+ end
47
+
40
48
  end
@@ -0,0 +1,28 @@
1
+ require 'spec_helper'
2
+ require 'google/apis/adsense_v1_4'
3
+ require 'googleauth'
4
+
5
+ Adsense = Google::Apis::AdsenseV1_4
6
+
7
+ RSpec.describe Google::Apis::AdsenseV1_4, :if => run_integration_tests? do
8
+
9
+ before(:context) do
10
+ #WebMock.allow_net_connect!
11
+ @adsense = Adsense::AdSenseService.new
12
+ #@adsense.authorization = Google::Auth.get_application_default([Adsense::AUTH_ADSENSE])
13
+ #@adsense.authorization.sub = 'cb@travelingnuker.com'
14
+ #@adsense.authorization.fetch_access_token!
15
+ end
16
+
17
+ it 'should download a report with multiple dimensions' do
18
+ report = @adsense.generate_report( Date.today.to_s, Date.today.to_s, dimension: ["DATE", "AD_UNIT_NAME"] )
19
+
20
+ report_header_names = report.headers.map { |h| h.name }
21
+ expect(report_header_names).to include('DATE')
22
+ expect(report_header_names).to include('AD_UNIT_NAME')
23
+ end
24
+
25
+ after(:context) do
26
+ #WebMock.disable_net_connect!
27
+ end
28
+ end
@@ -23,10 +23,10 @@ RSpec.describe Google::Apis::PubsubV1beta2, :if => run_integration_tests? do
23
23
  request = Pubsub::PublishRequest.new(messages: [])
24
24
  request.messages << Pubsub::Message.new(attributes: { "language" => "en" }, data: 'Hello')
25
25
  request.messages << Pubsub::Message.new(attributes: { "language" => "en" }, data: 'World')
26
- @pubsub.publish(@topic_name, request)
26
+ @pubsub.publish_topic(@topic_name, request)
27
27
 
28
28
  # Pull messages
29
- response = @pubsub.pull(@subscription_name, Pubsub::PullRequest.new(max_messages: 5))
29
+ response = @pubsub.pull_subscription(@subscription_name, Pubsub::PullRequest.new(max_messages: 5))
30
30
  response.received_messages.each do |received_message|
31
31
  data = received_message.message.data
32
32
  puts "Received #{data}"
@@ -34,7 +34,7 @@ RSpec.describe Google::Apis::PubsubV1beta2, :if => run_integration_tests? do
34
34
 
35
35
  # Acknowledge receipt
36
36
  ack_ids = response.received_messages.map{ |msg| msg.ack_id }
37
- @pubsub.acknowledge(@subscription_name, Pubsub::AcknowledgeRequest.new(ack_ids: ack_ids))
37
+ @pubsub.acknowledge_subscription(@subscription_name, Pubsub::AcknowledgeRequest.new(ack_ids: ack_ids))
38
38
 
39
39
  expect(response.received_messages.length).to eq 2
40
40
  end
data/spec/spec_helper.rb CHANGED
@@ -16,11 +16,13 @@ SPEC_DIR = File.expand_path(File.dirname(__FILE__))
16
16
  ROOT_DIR = File.expand_path(File.join(SPEC_DIR, '..'))
17
17
  LIB_DIR = File.expand_path(File.join(ROOT_DIR, 'lib'))
18
18
  GENERATED_DIR = File.expand_path(File.join(ROOT_DIR, 'generated'))
19
+ THIRD_PARTY_DIR = File.expand_path(File.join(ROOT_DIR, 'third_party'))
19
20
  FIXTURES_DIR = File.expand_path(File.join(SPEC_DIR, 'fixtures'))
20
21
 
21
22
  $LOAD_PATH.unshift(SPEC_DIR)
22
23
  $LOAD_PATH.unshift(LIB_DIR)
23
24
  $LOAD_PATH.unshift(GENERATED_DIR)
25
+ $LOAD_PATH.unshift(THIRD_PARTY_DIR)
24
26
  $LOAD_PATH.uniq!
25
27
 
26
28
 
@@ -43,6 +45,7 @@ end
43
45
 
44
46
  require 'rspec'
45
47
  require 'webmock/rspec'
48
+ require 'fakefs/spec_helpers'
46
49
  require 'json_spec'
47
50
  require 'logging'
48
51
  require 'rspec/logging_helper'
@@ -53,11 +56,13 @@ require 'google/apis/core/base_service'
53
56
  # logs will be stored in the @log_output variable. It is a StringIO instance.
54
57
  RSpec.configure do |config|
55
58
  include RSpec::LoggingHelper
59
+ config.include FakeFS::SpecHelpers, fakefs: true
56
60
  config.include JsonSpec::Helpers
57
61
  config.include WebMock::API
58
62
  config.capture_log_messages
59
63
 
60
64
  Google::Apis.logger.level = Logger::DEBUG
65
+ WebMock::Config.instance.query_values_notation = :flat_array
61
66
  end
62
67
 
63
68
  [JsonSpec::Matchers::BeJsonEql,
@@ -119,4 +124,3 @@ end
119
124
  def run_integration_tests?
120
125
  ENV['GOOGLE_APPLICATION_CREDENTIALS'] && ENV['GOOGLE_PROJECT_ID']
121
126
  end
122
-
@@ -0,0 +1,103 @@
1
+ #
2
+ # Copyright (c) 2015 Rick Olson
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ # of this software and associated documentation files (the "Software"), to deal
6
+ # in the Software without restriction, including without limitation the rights
7
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ # copies of the Software, and to permit persons to whom the Software is
9
+ # furnished to do so, subject to the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be included in all
12
+ # copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ # SOFTWARE.
21
+ #
22
+ require 'hurley'
23
+ require 'hurley/client'
24
+ require 'hurley/connection'
25
+ require 'net/https'
26
+
27
+ # Temporary monkey patch for streaming downloads. These are fixed in HEAD,
28
+ # but pending a 0.3 release.
29
+ if Hurley::VERSION == '0.2'
30
+ module Hurley
31
+ class Response
32
+ def location
33
+ @location ||= begin
34
+ return unless loc = @header[:location]
35
+ verb = STATUS_FORCE_GET.include?(status_code) ? :get : request.verb
36
+ statuses, receiver = request.send(:body_receiver)
37
+ new_request = Request.new(verb, request.url.join(Url.parse(loc)), request.header, request.body, request.options, request.ssl_options)
38
+ new_request.on_body(*statuses, &receiver) unless receiver.is_a?(Hurley::BodyReceiver)
39
+ new_request
40
+ end
41
+ end
42
+ end
43
+
44
+ class Connection
45
+ def call(request)
46
+ net_http_connection(request) do |http|
47
+ begin
48
+ Response.new(request) do |res|
49
+ perform_request(http, request, res)
50
+
51
+ # net/http only raises exception on 407 with ssl...?
52
+ if res.status_code == 407
53
+ raise ConnectionFailed, %(407 "Proxy Authentication Required")
54
+ end
55
+ end
56
+ rescue *NET_HTTP_EXCEPTIONS => err
57
+ if defined?(OpenSSL) && OpenSSL::SSL::SSLError === err
58
+ raise SSLError, err
59
+ else
60
+ raise ConnectionFailed, err
61
+ end
62
+ end
63
+ end
64
+
65
+ rescue ::Timeout::Error => err
66
+ raise Timeout, err
67
+ end
68
+
69
+ private
70
+
71
+ def net_http_request(request)
72
+ http_req = Net::HTTPGenericRequest.new(
73
+ request.verb.to_s.upcase, # request method
74
+ !!request.body, # is there a request body
75
+ :head != request.verb, # is there a response body
76
+ request.url.request_uri, # request uri path
77
+ request.header, # request headers
78
+ )
79
+
80
+ if body = request.body_io
81
+ http_req.body_stream = body
82
+ end
83
+
84
+ http_req
85
+ end
86
+
87
+ def perform_request(http, request, res)
88
+ http.request(net_http_request(request)) do |http_res|
89
+ res.status_code = http_res.code.to_i
90
+ http_res.each_header do |key, value|
91
+ res.header[key] = value
92
+ end
93
+
94
+ if :get == request.verb
95
+ http_res.read_body { |chunk| res.receive_body(chunk) }
96
+ else
97
+ res.receive_body(http_res.body)
98
+ end
99
+ end
100
+ end
101
+ end
102
+ end
103
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.pre3
4
+ version: 0.9.pre4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Bazyl
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-07-31 00:00:00.000000000 Z
14
+ date: 2015-12-17 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: representable
@@ -19,14 +19,14 @@ dependencies:
19
19
  requirements:
20
20
  - - "~>"
21
21
  - !ruby/object:Gem::Version
22
- version: '2.1'
22
+ version: 2.3.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '2.1'
29
+ version: 2.3.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: multi_json
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -117,14 +117,14 @@ dependencies:
117
117
  requirements:
118
118
  - - "~>"
119
119
  - !ruby/object:Gem::Version
120
- version: '0.2'
120
+ version: '0.5'
121
121
  type: :runtime
122
122
  prerelease: false
123
123
  version_requirements: !ruby/object:Gem::Requirement
124
124
  requirements:
125
125
  - - "~>"
126
126
  - !ruby/object:Gem::Version
127
- version: '0.2'
127
+ version: '0.5'
128
128
  - !ruby/object:Gem::Dependency
129
129
  name: thor
130
130
  requirement: !ruby/object:Gem::Requirement
@@ -185,6 +185,10 @@ files:
185
185
  - generated/google/apis/adexchangeseller_v2_0/classes.rb
186
186
  - generated/google/apis/adexchangeseller_v2_0/representations.rb
187
187
  - generated/google/apis/adexchangeseller_v2_0/service.rb
188
+ - generated/google/apis/admin_datatransfer_v1.rb
189
+ - generated/google/apis/admin_datatransfer_v1/classes.rb
190
+ - generated/google/apis/admin_datatransfer_v1/representations.rb
191
+ - generated/google/apis/admin_datatransfer_v1/service.rb
188
192
  - generated/google/apis/admin_directory_v1.rb
189
193
  - generated/google/apis/admin_directory_v1/classes.rb
190
194
  - generated/google/apis/admin_directory_v1/representations.rb
@@ -213,6 +217,10 @@ files:
213
217
  - generated/google/apis/androidpublisher_v2/classes.rb
214
218
  - generated/google/apis/androidpublisher_v2/representations.rb
215
219
  - generated/google/apis/androidpublisher_v2/service.rb
220
+ - generated/google/apis/appengine_v1beta4.rb
221
+ - generated/google/apis/appengine_v1beta4/classes.rb
222
+ - generated/google/apis/appengine_v1beta4/representations.rb
223
+ - generated/google/apis/appengine_v1beta4/service.rb
216
224
  - generated/google/apis/appsactivity_v1.rb
217
225
  - generated/google/apis/appsactivity_v1/classes.rb
218
226
  - generated/google/apis/appsactivity_v1/representations.rb
@@ -245,10 +253,22 @@ files:
245
253
  - generated/google/apis/civicinfo_v2/classes.rb
246
254
  - generated/google/apis/civicinfo_v2/representations.rb
247
255
  - generated/google/apis/civicinfo_v2/service.rb
256
+ - generated/google/apis/classroom_v1.rb
257
+ - generated/google/apis/classroom_v1/classes.rb
258
+ - generated/google/apis/classroom_v1/representations.rb
259
+ - generated/google/apis/classroom_v1/service.rb
248
260
  - generated/google/apis/classroom_v1beta1.rb
249
261
  - generated/google/apis/classroom_v1beta1/classes.rb
250
262
  - generated/google/apis/classroom_v1beta1/representations.rb
251
263
  - generated/google/apis/classroom_v1beta1/service.rb
264
+ - generated/google/apis/cloudbilling_v1.rb
265
+ - generated/google/apis/cloudbilling_v1/classes.rb
266
+ - generated/google/apis/cloudbilling_v1/representations.rb
267
+ - generated/google/apis/cloudbilling_v1/service.rb
268
+ - generated/google/apis/clouddebugger_v2.rb
269
+ - generated/google/apis/clouddebugger_v2/classes.rb
270
+ - generated/google/apis/clouddebugger_v2/representations.rb
271
+ - generated/google/apis/clouddebugger_v2/service.rb
252
272
  - generated/google/apis/cloudmonitoring_v2beta2.rb
253
273
  - generated/google/apis/cloudmonitoring_v2beta2/classes.rb
254
274
  - generated/google/apis/cloudmonitoring_v2beta2/representations.rb
@@ -257,6 +277,18 @@ files:
257
277
  - generated/google/apis/cloudresourcemanager_v1beta1/classes.rb
258
278
  - generated/google/apis/cloudresourcemanager_v1beta1/representations.rb
259
279
  - generated/google/apis/cloudresourcemanager_v1beta1/service.rb
280
+ - generated/google/apis/cloudtrace_v1.rb
281
+ - generated/google/apis/cloudtrace_v1/classes.rb
282
+ - generated/google/apis/cloudtrace_v1/representations.rb
283
+ - generated/google/apis/cloudtrace_v1/service.rb
284
+ - generated/google/apis/clouduseraccounts_beta.rb
285
+ - generated/google/apis/clouduseraccounts_beta/classes.rb
286
+ - generated/google/apis/clouduseraccounts_beta/representations.rb
287
+ - generated/google/apis/clouduseraccounts_beta/service.rb
288
+ - generated/google/apis/compute_beta.rb
289
+ - generated/google/apis/compute_beta/classes.rb
290
+ - generated/google/apis/compute_beta/representations.rb
291
+ - generated/google/apis/compute_beta/service.rb
260
292
  - generated/google/apis/compute_v1.rb
261
293
  - generated/google/apis/compute_v1/classes.rb
262
294
  - generated/google/apis/compute_v1/representations.rb
@@ -285,6 +317,10 @@ files:
285
317
  - generated/google/apis/datastore_v1beta2/classes.rb
286
318
  - generated/google/apis/datastore_v1beta2/representations.rb
287
319
  - generated/google/apis/datastore_v1beta2/service.rb
320
+ - generated/google/apis/deploymentmanager_v2.rb
321
+ - generated/google/apis/deploymentmanager_v2/classes.rb
322
+ - generated/google/apis/deploymentmanager_v2/representations.rb
323
+ - generated/google/apis/deploymentmanager_v2/service.rb
288
324
  - generated/google/apis/deploymentmanager_v2beta2.rb
289
325
  - generated/google/apis/deploymentmanager_v2beta2/classes.rb
290
326
  - generated/google/apis/deploymentmanager_v2beta2/representations.rb
@@ -313,6 +349,10 @@ files:
313
349
  - generated/google/apis/drive_v2/classes.rb
314
350
  - generated/google/apis/drive_v2/representations.rb
315
351
  - generated/google/apis/drive_v2/service.rb
352
+ - generated/google/apis/drive_v3.rb
353
+ - generated/google/apis/drive_v3/classes.rb
354
+ - generated/google/apis/drive_v3/representations.rb
355
+ - generated/google/apis/drive_v3/service.rb
316
356
  - generated/google/apis/fitness_v1.rb
317
357
  - generated/google/apis/fitness_v1/classes.rb
318
358
  - generated/google/apis/fitness_v1/representations.rb
@@ -325,6 +365,10 @@ files:
325
365
  - generated/google/apis/games_configuration_v1configuration/classes.rb
326
366
  - generated/google/apis/games_configuration_v1configuration/representations.rb
327
367
  - generated/google/apis/games_configuration_v1configuration/service.rb
368
+ - generated/google/apis/games_management_v1management.rb
369
+ - generated/google/apis/games_management_v1management/classes.rb
370
+ - generated/google/apis/games_management_v1management/representations.rb
371
+ - generated/google/apis/games_management_v1management/service.rb
328
372
  - generated/google/apis/games_v1.rb
329
373
  - generated/google/apis/games_v1/classes.rb
330
374
  - generated/google/apis/games_v1/representations.rb
@@ -357,6 +401,10 @@ files:
357
401
  - generated/google/apis/identitytoolkit_v3/classes.rb
358
402
  - generated/google/apis/identitytoolkit_v3/representations.rb
359
403
  - generated/google/apis/identitytoolkit_v3/service.rb
404
+ - generated/google/apis/kgsearch_v1.rb
405
+ - generated/google/apis/kgsearch_v1/classes.rb
406
+ - generated/google/apis/kgsearch_v1/representations.rb
407
+ - generated/google/apis/kgsearch_v1/service.rb
360
408
  - generated/google/apis/licensing_v1.rb
361
409
  - generated/google/apis/licensing_v1/classes.rb
362
410
  - generated/google/apis/licensing_v1/representations.rb
@@ -385,6 +433,10 @@ files:
385
433
  - generated/google/apis/pagespeedonline_v2/classes.rb
386
434
  - generated/google/apis/pagespeedonline_v2/representations.rb
387
435
  - generated/google/apis/pagespeedonline_v2/service.rb
436
+ - generated/google/apis/partners_v2.rb
437
+ - generated/google/apis/partners_v2/classes.rb
438
+ - generated/google/apis/partners_v2/representations.rb
439
+ - generated/google/apis/partners_v2/service.rb
388
440
  - generated/google/apis/plus_domains_v1.rb
389
441
  - generated/google/apis/plus_domains_v1/classes.rb
390
442
  - generated/google/apis/plus_domains_v1/representations.rb
@@ -397,6 +449,14 @@ files:
397
449
  - generated/google/apis/prediction_v1_6/classes.rb
398
450
  - generated/google/apis/prediction_v1_6/representations.rb
399
451
  - generated/google/apis/prediction_v1_6/service.rb
452
+ - generated/google/apis/proximitybeacon_v1beta1.rb
453
+ - generated/google/apis/proximitybeacon_v1beta1/classes.rb
454
+ - generated/google/apis/proximitybeacon_v1beta1/representations.rb
455
+ - generated/google/apis/proximitybeacon_v1beta1/service.rb
456
+ - generated/google/apis/pubsub_v1.rb
457
+ - generated/google/apis/pubsub_v1/classes.rb
458
+ - generated/google/apis/pubsub_v1/representations.rb
459
+ - generated/google/apis/pubsub_v1/service.rb
400
460
  - generated/google/apis/pubsub_v1beta2.rb
401
461
  - generated/google/apis/pubsub_v1beta2/classes.rb
402
462
  - generated/google/apis/pubsub_v1beta2/representations.rb
@@ -421,6 +481,10 @@ files:
421
481
  - generated/google/apis/resourceviews_v1beta2/classes.rb
422
482
  - generated/google/apis/resourceviews_v1beta2/representations.rb
423
483
  - generated/google/apis/resourceviews_v1beta2/service.rb
484
+ - generated/google/apis/script_v1.rb
485
+ - generated/google/apis/script_v1/classes.rb
486
+ - generated/google/apis/script_v1/representations.rb
487
+ - generated/google/apis/script_v1/service.rb
424
488
  - generated/google/apis/site_verification_v1.rb
425
489
  - generated/google/apis/site_verification_v1/classes.rb
426
490
  - generated/google/apis/site_verification_v1/representations.rb
@@ -433,6 +497,10 @@ files:
433
497
  - generated/google/apis/storage_v1/classes.rb
434
498
  - generated/google/apis/storage_v1/representations.rb
435
499
  - generated/google/apis/storage_v1/service.rb
500
+ - generated/google/apis/storagetransfer_v1.rb
501
+ - generated/google/apis/storagetransfer_v1/classes.rb
502
+ - generated/google/apis/storagetransfer_v1/representations.rb
503
+ - generated/google/apis/storagetransfer_v1/service.rb
436
504
  - generated/google/apis/tagmanager_v1.rb
437
505
  - generated/google/apis/tagmanager_v1/classes.rb
438
506
  - generated/google/apis/tagmanager_v1/representations.rb
@@ -465,6 +533,10 @@ files:
465
533
  - generated/google/apis/youtube_v3/classes.rb
466
534
  - generated/google/apis/youtube_v3/representations.rb
467
535
  - generated/google/apis/youtube_v3/service.rb
536
+ - generated/google/apis/youtubereporting_v1.rb
537
+ - generated/google/apis/youtubereporting_v1/classes.rb
538
+ - generated/google/apis/youtubereporting_v1/representations.rb
539
+ - generated/google/apis/youtubereporting_v1/service.rb
468
540
  - google-api-client.gemspec
469
541
  - lib/cacerts.pem
470
542
  - lib/google/api_client/auth/installed_app.rb
@@ -514,7 +586,9 @@ files:
514
586
  - script/release
515
587
  - spec/fixtures/files/api_names.yaml
516
588
  - spec/fixtures/files/auth_stored_credentials.json
589
+ - spec/fixtures/files/child/.gitignore
517
590
  - spec/fixtures/files/client_secrets.json
591
+ - spec/fixtures/files/invalid.json
518
592
  - spec/fixtures/files/test.blah
519
593
  - spec/fixtures/files/test.txt
520
594
  - spec/fixtures/files/test_api.json
@@ -534,10 +608,12 @@ files:
534
608
  - spec/google/apis/generator/generator_spec.rb
535
609
  - spec/google/apis/logging_spec.rb
536
610
  - spec/google/apis/options_spec.rb
611
+ - spec/integration_tests/adsense_spec.rb
537
612
  - spec/integration_tests/drive_spec.rb
538
613
  - spec/integration_tests/pubsub_spec.rb
539
614
  - spec/integration_tests/url_shortener_spec.rb
540
615
  - spec/spec_helper.rb
616
+ - third_party/hurley_patches.rb
541
617
  homepage: https://github.com/google/google-api-ruby-client
542
618
  licenses:
543
619
  - Apache 2.0
@@ -547,6 +623,7 @@ rdoc_options: []
547
623
  require_paths:
548
624
  - lib
549
625
  - generated
626
+ - third_party
550
627
  required_ruby_version: !ruby/object:Gem::Requirement
551
628
  requirements:
552
629
  - - ">="
@@ -559,14 +636,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
559
636
  version: 1.3.1
560
637
  requirements: []
561
638
  rubyforge_project:
562
- rubygems_version: 2.4.8
639
+ rubygems_version: 2.4.6
563
640
  signing_key:
564
641
  specification_version: 4
565
642
  summary: Client for accessing Google APIs
566
643
  test_files:
567
644
  - spec/fixtures/files/api_names.yaml
568
645
  - spec/fixtures/files/auth_stored_credentials.json
646
+ - spec/fixtures/files/child/.gitignore
569
647
  - spec/fixtures/files/client_secrets.json
648
+ - spec/fixtures/files/invalid.json
570
649
  - spec/fixtures/files/test.blah
571
650
  - spec/fixtures/files/test.txt
572
651
  - spec/fixtures/files/test_api.json
@@ -586,6 +665,7 @@ test_files:
586
665
  - spec/google/apis/generator/generator_spec.rb
587
666
  - spec/google/apis/logging_spec.rb
588
667
  - spec/google/apis/options_spec.rb
668
+ - spec/integration_tests/adsense_spec.rb
589
669
  - spec/integration_tests/drive_spec.rb
590
670
  - spec/integration_tests/pubsub_spec.rb
591
671
  - spec/integration_tests/url_shortener_spec.rb