Commit Graph

2746 Commits

Author SHA1 Message Date
Sebastian Thiel
b272b3f4e2 Fix action runner 2021-04-01 18:38:33 +08:00
Sebastian Thiel
c4d4013358 Fix doc tests 2021-04-01 18:31:35 +08:00
Sebastian Thiel
e363097e43 Fix issue with handling downloads the brutal way…
…as this will copy buffers multiple times, it's quite inefficient
and should probably be fixed for serious use.
2021-04-01 18:10:46 +08:00
Sebastian Thiel
06550d3a55 disable resumable downloads for CLIs
They cause issues now that we can't represent them anymore via
the call-type protocol enumeration. Something went wrong there
and it's not worth fixing it on CLI side (probably nobody uses them)
even though they *were* good for debugging one previously.
2021-04-01 17:49:11 +08:00
Sebastian Thiel
69acd16746 Groupsmigration-cli compiles, even though resumable uploads are gone. 2021-04-01 16:52:49 +08:00
Sebastian Thiel
1569ff47b7 Just one more issue with groupsmigration - unexhaustive match 2021-04-01 16:49:10 +08:00
Sebastian Thiel
1a9d155449 refactor 2021-04-01 16:43:23 +08:00
Sebastian Thiel
0bf46b95f3 Remove support for debug logging of CLI programs
The needed feature was removed from yup-hyper-mock, and if needed
it can certainly be re-implemented.
2021-04-01 16:38:36 +08:00
Sebastian Thiel
112ef3f3ac Blacklist 'homegraph' API 'async' keyword is used as field name 2021-04-01 10:32:18 +08:00
Sebastian Thiel
84655f81db Youtube 3 compiles; remove 'api_key()' authenticator call…
…because in v3 of yup-oauth2, nobody seems to implement it with
anything else but `None`.
That's probably fair and we can revisit this once we upgrade
to a 5.1 or newer.
See 0710d310f8
2021-04-01 10:11:52 +08:00
Sebastian Thiel
891f126a56 Groupsmigration compiles 2021-04-01 09:58:13 +08:00
Sebastian Thiel
3dbb53e924 Make mime 0.2 work with more recent hyper
In 0.2 there is only `Display` available, so we have to be wasteful
by allocating a new string.

However, this is less work than switching to 0.3 which supports
`AsRef`, which is left for another day.
2021-04-01 09:00:54 +08:00
Daniel Rodgers-Pryor
0236e24291 Fixes for CLI code
This doesn't work completely yet because yup_hyper_mock is pulling in old crates: it needs to be updated or removed, but I'm not sure that I have enough context to do it.
2021-02-05 20:15:56 +11:00
Daniel Rodgers-Pryor
b8a66bc666 Update hyper, rustls and yup-oauth2
I've switched to a new M1 laptop which couldn't build the old dependencies because the old ring library version doesn't compile on mac arm (but new version do). There's no way to update ring in isolation, so I've got to update the whole tree at once.
2021-02-04 23:49:07 +11:00
Sebastian Thiel
b88e1633ed Fix rust compile warnings 2021-01-06 22:45:28 +08:00
Sebastian Thiel
60e50da476 Merge branch 'master' into namespaced-items 2021-01-06 21:54:15 +08:00
Sebastian Thiel
0cd2238498 Merge branch 'toolchain-update' 2021-01-06 21:50:12 +08:00
Sebastian Thiel
1b87b1ca6b make calling virtualenv independent of the binary…
…forget binaries, it's python.
2021-01-06 21:02:16 +08:00
Sebastian Thiel
904b46d1b2 Don't rely on pip user installations to be in the PATH
Because why would they…
2021-01-06 19:55:24 +08:00
Sebastian Thiel
3a4151b38c fix sorting of properties by name 2021-01-06 18:24:45 +08:00
Sebastian Thiel
f7aba5114e everything runs through now, only ordering missing 2021-01-06 17:10:36 +08:00
Sebastian Thiel
80dadc5a80 nearly there… 2021-01-05 23:39:04 +08:00
Sebastian Thiel
043f3752e6 basic python 3 port, nearly works 2021-01-05 23:24:57 +08:00
Sebastian Thiel
2573462792 Some simplification, but it runs venv install way too often 2021-01-05 23:19:05 +08:00
Sebastian Thiel
301f140c83 Basic fixups for python3 2021-01-05 23:02:51 +08:00
Sebastian Thiel
7aba410489 pyenv is working, at least locally and without perfect isolation 2021-01-05 22:44:16 +08:00
Petros Angelatos
9ff51f9417 fix cli imports 2020-12-19 20:15:59 +01:00
Petros Angelatos
b2244df4e0 blacklist the spanner API
For readers of the future, this appeared to be broken even before this
PR was introduced but I couldn't pinpoint exactly where the breakage was
introduced

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2020-12-19 19:42:54 +01:00
Petros Angelatos
87c9c10ce1 remove unused import that was causing a clash
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2020-12-19 19:42:38 +01:00
Petros Angelatos
684d54d445 handle cases where part is a repeated property
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2020-12-19 10:01:58 +01:00
Petros Angelatos
33aa680b6f remove gmail from the blacklist
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2020-12-19 00:46:10 +01:00
Petros Angelatos
af73936b95 rename cmn to client
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2020-12-19 00:46:06 +01:00
Petros Angelatos
0e69ffc9eb cleanup top-level namespace and organize items under cmn and api
the top level module re-exports a few very common items like the hub
struct of the particular API and Result, Error, and Delegate.

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2020-12-19 00:44:20 +01:00
Petros Angelatos
b5923b277c use direct references to types to generate documentation
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2020-12-19 00:44:20 +01:00
Petros Angelatos
38b1ed145c use fully qualified names to access items from cmn
Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2020-12-19 00:44:15 +01:00
Sebastian Thiel
5c071ba03c Don't expect any particular commit format for contributions 2020-10-04 13:22:47 +08:00
Sebastian Thiel
4c4c669441 last batch 2020-07-11 12:20:29 +08:00
Sebastian Thiel
221fe9606c second batch of published crates 2020-07-10 16:56:07 +08:00
Sebastian Thiel
7bdbebf458 intermediate result of republish 2020-07-10 13:45:18 +08:00
Sebastian Thiel
d1ffa68287 update all code after version update 2020-07-10 09:41:44 +08:00
Sebastian Thiel
c949124df5 Bump patch level to prep for release 2020-07-10 09:13:01 +08:00
Sebastian Thiel
69fb05c4e1 update API descriptions 2020-07-10 09:11:32 +08:00
Joel Lathrop
b6ee34dcff Update the PubSub schema to include new API features.
Since the last time the PubSub v1 schema was fetched from Discovery in
April, Google has added new API features: namely, subscription filters
and retry policies.  This update to the JSON schema and its generated
code bring in support for these features.
2020-07-09 09:11:08 +08:00
Joel Lathrop
6ad88cb773 Fix '-force' target generation for JSON schemata.
In some environments, a variable-existence test in a template was
yielding a false negative which resulted in the template not generating
'-force' targets for API JSON files, even when the `FETCH_APIS`
environment variable was set during template rendering.

This commit adjusts the way the test for the variable presence is done
such that the '-force' targets now render when they should.
2020-07-09 09:09:51 +08:00
Sebastian Thiel
5e5327f3f7 Use api overrides to specialize building of drive2/3 APIs
This seems preferable over hardcoding special knowledge into the
generator code.
2020-06-05 11:11:17 +08:00
Sebastian Thiel
e06c7c67e0 Avoid talking to google each time dependencies are built…
…which doesn't work very well in certain geographical locations.
This can be triggered using by setting FETCH_API to a value, like

`FETCH_APIS=1 make`
2020-06-05 11:00:24 +08:00
Dennis Vestergaard Værum
8f7ed2e5e9 Added the doit_without_upload function for the drive3 & drive2 lib/api 2020-06-03 00:34:00 +02:00
Dennis Vestergaard Værum
041f8951e3 Added the doit_without_upload function to the code generator 2020-06-03 00:33:21 +02:00
Dennis Vestergaard Værum
1cc94d5281 Rebuild everything, becuase it makes it easier to compare everything to my changes 2020-06-02 14:56:19 +02:00
Björn Weinehall
6ed8df5f96 Extend attempted error message parsing to also cover ErrorResponse
objects. Fixes errors in e.g. drive3 api not getting passed to delegate
error handlers.
2020-05-29 19:43:50 +08:00