Commit Graph

426 Commits

Author SHA1 Message Date
Steve Bazyl 8e701f7f41 Merge pull request #593 from janko-m/avoid-rewinding-on-full-response
Recover from non-Ranged responses without rewinding
2017-08-03 11:49:29 -06:00
Sai Cheemalapati 74c0242266 Make the generator deterministic (#601) 2017-07-18 09:56:05 -07:00
Steve Bazyl a9901b82e0 Regenerate APIs 2017-07-12 14:10:42 -06:00
Janko Marohnić 0eeb3ee9f9 Recover from non-Ranged responses without rewinding
Not all IO objects know how to #rewind themselves. For example, Ruby
pipes (returned by `IO.pipe`) do implement #rewind, but they will throw
an error if you try to call it.

  rd, wr = IO.pipe
  wr.rewind # Errno::ESPIPE: Illegal seek

But we don't need to rewind and overwrite the IO object if we didn't get
the Ranged response we expected, we could instead wait out the content
that has already been downloaded, and start appending again once we
reached where we left off. This is what this commit does.
2017-06-23 11:22:37 +02:00
Sai Cheemalapati 749539e46a Bump version, regen APIs
Revert api_names.yaml to pick up the manual overrides lost in v0.12.0
2017-06-14 10:06:42 -07:00
Sai Cheemalapati 3f26743ef7 Bump version, regen APIs
Delete services which are no longer discoverable:
 - adexchangebuyer:v1_3
 - appengine:v1beta4
 - appengine:v1beta5
 - autoscaler:v1beta2
 - classroom:v1beta1
 - cloudkms:v1beta1
 - cloudlatencytest:v2
 - container:v1beta1
 - coordinate:v1
 - datastore:v1beta2
 - datastore:v1beta3
 - deploymentmanager:v2beta2
 - dfareporting:v2_1
 - dfareporting:v2_3
 - dfareporting:v2_5
 - dfareporting:v2_6
 - gan:v1beta1
 - genomics:v1beta2
 - logging:v1beta3
 - manager:v1beta2
 - pubsub:v1beta2
 - tracing:v1

Also include fixes in the gemspec file recommended by the package
script.
2017-06-02 00:27:33 -07:00
Sai Cheemalapati e3792b19d2 Add Hash support to fetch_all (#586)
This commit aligns the behavior of `fetch_all` over map responses with
that of arrays (returning a single collection with all entries).
2017-06-01 23:52:09 -04:00
Steve Bazyl 9237ba59cb Bump version, regen APIs 2017-05-26 10:44:32 -06:00
Steven Bazyl 6a4e9184e7 Allow using v2 error messages + fix to_json signature to allow arbitrary args 2017-05-19 17:16:22 -06:00
Sai Cheemalapati 7b5a460934 Regen APIs and bump version
This commit also adds `dfareporting:v2.8`.
2017-05-04 12:35:56 -07:00
Steve Bazyl ff5eb3670d Bump version for minor release 2017-04-04 13:47:17 -07:00
sonots ed27c6ec07 remove print debug 2017-04-04 17:36:46 +09:00
Steve Bazyl 48916bfce7 Merge branch 'master' of https://github.com/sqrrrl/google-api-ruby-client into sqrrrl-master 2017-04-03 12:31:20 -07:00
Steve Bazyl 4682267161 Move timeouts from request to clientoptions, update migration/changelog 2017-04-03 11:10:54 -07:00
Steve Bazyl 97ff7f4d9a #475, #488 -- allow raw JSON if explicitly requested, fix empty body handling & test cleanup 2017-03-31 15:26:51 -07:00
Steve Bazyl 489378db58 Ensure content length when empty body, hook up httpclient to logger when debugging 2017-03-31 14:59:07 -07:00
Steve Bazyl c9e0d52d96 Merge branch 'master' into v0.10 2017-03-31 13:04:01 -07:00
Steve Bazyl 70236aca40 Regen APIs & bump version 2017-03-31 12:53:27 -07:00
Steve Bazyl 51b41edb1c #474 - Clarify that base64 properties are automatically encoded/decoded. 2017-03-31 12:27:30 -07:00
Steve Bazyl bdc903776d Fix inflection for teamdrives, better logging for conflicting names 2017-03-31 11:22:28 -07:00
Steve Bazyl cc80d64a75 Update generator to output conflicting paths when duplicate name generated 2017-03-30 15:32:02 -07:00
Steve Bazyl 5447ddb7c0 Don't normalize unicode in templates (fixed #557 + GCS issues) 2017-03-30 12:33:49 -07:00
Steve Bazyl c4d0ed5d3c Merge branch 'master' into v0.10 2017-03-29 16:25:34 -07:00
Thomas Coffee 123d118d78 Regen APIs 2017-03-27 15:14:47 -07:00
Steven Bazyl 5804593f25 Tighten validation around batch operations 2017-03-13 13:40:15 -07:00
Thomas Coffee 899864d0fe Regen APIs and add cloudkms:v1 2017-03-10 13:11:09 -08:00
Steven Bazyl 687223feb4 Update generator to use batchPath instead of hardcoded path 2017-03-06 12:24:30 -08:00
Sai Cheemalapati 4447d65a96 Regen APIs and bump version (#540) 2017-02-13 15:28:52 -08:00
Sai Cheemalapati 4f143ae551 Bump `representable` dependency to 3.0 (#532)
Also fixes a breaking change introduced between `representable` 2.3 and
3.0. Specifically, `:skip_undefined` is now be passed via the
`:user_options` option.
2017-02-13 12:24:14 -08:00
Thomas Coffee 235fd7abcc Fix file permissions issue 2017-02-08 09:35:14 -08:00
Thomas Coffee 16f0a768f7 Allow abnormal page token cases for paging methods
Addresses https://github.com/googleapis/toolkit/issues/692.

Manual changes are in:
lib/google/apis/core/base_service.rb
spec/google/apis/core/service_spec.rb
2017-02-03 12:09:18 -08:00
Austin Wang e9d7e47c75 Update check_status to better support different types of errors (#517) 2017-02-01 23:20:19 -08:00
Sai Cheemalapati 71df0fe92a Bump version and update CHANGELOG.md 2017-01-27 19:54:17 -08:00
Sai Cheemalapati 12ba6ef946 Bump version and update CHANGELOG.md 2017-01-27 19:45:56 -08:00
Sai Cheemalapati 28a8318989 Regen APIs and add dfareporting:v2.7 (#524)
Also bump version.
2017-01-24 23:37:13 -08:00
Sai Cheemalapati 15dd35cd50 Bump version 2017-01-20 15:34:05 -08:00
Sai Cheemalapati bf100a7446 Bump version 2017-01-20 11:09:38 -08:00
Sai Cheemalapati 0edc957a46 Regen APIs 2017-01-20 10:56:42 -08:00
Steve Bazyl 1f7cb2446a Add slides_v1, regenerate APIs 2016-11-08 15:43:14 -08:00
Steve Bazyl d4286e35a2 Regen APIs 2016-10-20 13:15:24 -07:00
Thomas Coffee 1f4537989b Update version tag 2016-10-14 15:54:55 -07:00
Thomas Coffee 204359d4cb Regen APIs 2016-10-12 15:52:51 -07:00
Thomas Coffee c0e7fc9249 Regenerate APIs and bump version 2016-10-04 12:47:28 -07:00
Steve Bazyl f650a39e16 Add datastore_v1, bump version 2016-09-20 11:55:45 -07:00
Steve Bazyl fd722a72b3 Bump version 2016-09-19 14:44:28 -07:00
Steve Bazyl a68b8cb758 #467 - Restore error handling for failed downloads 2016-09-19 14:16:36 -07:00
Steve Bazyl e13da8e05e Tighten use of form-encoding to only cases where a JSON body is not ever allowed 2016-09-08 13:40:30 -07:00
Steve Bazyl 0dc543205e add language_v1beta1 and speech_v1beta1 APIs, bump version 2016-08-31 13:33:12 -07:00
Steve Bazyl 70596d26f6 #459 - Fix iteration for genomics API which only has 1 item per page 2016-08-31 13:26:24 -07:00
Steve Bazyl ecc107f805 Update changelog/version 2016-08-17 15:40:17 -07:00