Commit Graph

659 Commits

Author SHA1 Message Date
OMGeeky
90ac61067f make regen-apis 2024-05-12 22:09:19 +02:00
Ivan Ukhov
52459ab1fa Update the license 2024-04-24 10:11:33 +02:00
Ivan Ukhov
c80e2789f3 Add support for Spanner 2024-04-21 16:41:21 +02:00
Ivan Ukhov
1ee7a03816 Unwrap after with_native_roots 2024-03-21 16:03:37 +01:00
Ivan Ukhov
edd572cc7b Update yup-oauth2 to 8.3.3 and hyper-rustls to 0.25 2024-03-21 15:55:00 +01:00
Sebastian Thiel
033a4fcf13 Assure the latest version of the common crate is used (#480) 2024-03-15 17:30:04 +01:00
DreamingCodes
de4fd8040a fixed Content-Length with empty body 2024-03-11 10:18:15 +01:00
Sebastian Thiel
8a12e9d47e fix python
Maybe it now works on CI as well?
2024-03-05 19:07:36 +01:00
Sebastian Thiel
23aecc38e8 Merge pull request #464 from andrewbaxter/standard-base64
Attempt to add 'standard' base64 bytes support
2024-01-05 18:42:22 +01:00
Sebastian Thiel
c30df00f35 Add even more derived traits to Scope 2023-10-22 15:34:28 +02:00
OMGeeky
aa8b90002e Add Clone derive to Scope enum 2023-10-22 13:47:00 +02:00
OMGeeky
a171d0e8dd Add Debug derive to Scope enum
Adding that makes logging and debugging easier.
2023-10-21 02:00:14 +02:00
Eugene Marcotte
ee4ed07af1 Attempt to add 'standard' base64 bytes support
https://github.com/Byron/google-apis-rs/issues/442 flags an issue where
some APIs respond with non-valid base64 bytes values for the "URL safe"
flavor of configuration.

This adds support for a "standard" wrapper adjacent to the URL safe one
with the intention of finding a way to flag which structures should use
which configuration.
2023-09-26 17:56:57 -04:00
Sebastian Thiel
d189f3055a Don't depend on latest source as this will prevent markers to work as expected. 2023-08-23 14:25:02 +02:00
Sebastian Thiel
66ff40e765 use cargp publish instead of cargo smart-release
It definitely fits our use-case here better.
2023-08-23 14:22:42 +02:00
Sebastian Thiel
89b4bd3546 avoid pushing publish results each time; consider returning to cargo publish 2023-08-23 14:16:49 +02:00
Sebastian Thiel
209d70bfed fix: relative links (#418) 2023-05-08 08:48:14 +02:00
Sebastian Thiel
5cccc5ba83 Manually integrate changes from c43aa69e2b4f87a0c76eb8fd37c221042014d3c1
This was a force-pushed commit that probably doesn't exist for long before
beign collected.

Co-authored-by: Filipp <samoylovfp@gmail.com>
2023-05-08 08:04:46 +02:00
Sebastian Thiel
58189b3149 Bump yup-oauth2 to the latest version, bringing in hyper-rustls v0.24.
We consider this a breaking change  as `cargo-update` updates `yup-oauth2`
but not the explicitly mentioned `hyper-rustls`.
2023-04-19 08:15:36 +02:00
Mihir Samdarshi
7e1909e4db Update Cargo.toml.mako 2023-04-18 18:21:02 -07:00
Sebastian Thiel
fc1754fbfa thanks clippy 2023-04-17 15:13:27 +02:00
Sebastian Thiel
94167acfe8 Merge branch 'main' into fix-relative-links
Conflicts
=========
 * src/rust/preproc/src/main.rs
2023-04-17 15:09:24 +02:00
Sebastian Thiel
41fd613b86 Fix generated example invocations - they compile now. 2023-04-17 15:03:25 +02:00
Sebastian Thiel
ad7c74af16 Upgrade preprocessor markdown processor to latest version
This might improve the output quality and seems to work for youtube3.
2023-04-17 15:03:24 +02:00
Filipp Samoilov
de51978c69 WIP 2023-04-16 17:50:13 +03:00
Filipp
4ec155d70d WIP fixing relative links
check the FIXMEs
2023-03-28 17:02:29 +03:00
Darksome
11dc2ef170 Map 'any' JSON Schema type to json::Value instead of String 2022-12-31 09:12:08 +01:00
Gary Coady
bd24ea872a Improve handling of plurals in generator.
The generator tries to turn plural into singular nouns.
However, some words turn out badly, including:
 - Addresse (from Addresses)
 - Prefixe (from Prefixes)
 - Bookshelve (from Bookshelves)
 - Sery (from Series)

By using a library, we can get a slightly better outcome.
I've added an exception for "Data", because seeing that
turned into "Datum" is a bit jarring.
2022-11-29 22:51:05 +01:00
Sebastian Thiel
2f38895f83 update common dependencies to latest version
There were some (breaking) changes in these dependencies and the
required versions changed.

On the bright side, both common crates are now in the 5.0 range.
2022-10-20 13:35:14 +08:00
philippeitis
05fc10b0c4 Fix clippy lint in preproc 2022-10-19 20:30:19 -07:00
philippeitis
9c9c17b923 Fix default values in CLI crates 2022-10-19 20:30:04 -07:00
philippeitis
852bd70ecb Move error checking earlier 2022-10-19 18:42:15 -07:00
philippeitis
83007472c9 Fix stringly typed upload protocol 2022-10-19 18:25:58 -07:00
philippeitis
0ad3b1258f Refactor Params into external struct
Reduces file size of generated library:

```
cargo build --release
   Compiling google-compute1 v5.0.1+20220224 (/home/philippe/PycharmProjects/google-apis-rs/gen/compute1)
    Finished release [optimized] target(s) in 35.15s
```
164 MB resulting lib (4MB reduction)
2022-10-19 17:10:24 -07:00
philippeitis
9fa31bd034 Don't call .to_string() on string values 2022-10-19 15:44:48 -07:00
philippeitis
a6e763f495 Use top-level constants for upload protocols 2022-10-19 15:17:08 -07:00
philippeitis
cfa6958aa0 Add UploadProtocol enum to remove string types 2022-10-19 15:13:20 -07:00
philippeitis
ae3e6a232b Simplify search for alt=json param 2022-10-19 15:00:16 -07:00
philippeitis
eb072087de Use Cow for parameter replacement 2022-10-18 20:04:09 -07:00
philippeitis
925d7b0376 Reduce number of clones 2022-10-18 19:28:48 -07:00
philippeitis
f6b195df4f Make MultiPartReader::mime_type associated fn 2022-10-18 16:58:26 -07:00
philippeitis
616b324a77 Update mime 2022-10-18 16:25:08 -07:00
Sebastian Thiel
fb884e193a Merge branch 'auth-refactor' 2022-10-18 15:50:11 +08:00
philippeitis
c6439ee165 Remove .expect() 2022-10-16 21:38:06 -07:00
philippeitis
a375b710b1 Use Result<Option<_>, _> 2022-10-16 21:26:21 -07:00
philippeitis
02dbcb9782 Fix lib.rs docs 2022-10-16 17:25:46 -07:00
philippeitis
7ca7f1cafd Make yup-oauth2 optional 2022-10-16 17:19:10 -07:00
philippeitis
32110d6970 Return Option<String> from GetToken::get_token instead of Result<...> 2022-10-16 16:35:34 -07:00
Sebastian Thiel
869a50e64a fix typo 2022-10-16 20:28:47 +08:00
philippeitis
a8d5b2e6d9 Link hub in resource builder docs 2022-10-14 22:41:36 -07:00