Commit Graph

672 Commits

Author SHA1 Message Date
OMGeeky
d9a7fcc946 fix conflicting implementation error for TryFrom
(basically don't use generic, since blanket implementations make it impossible to not have conflicts)
2024-05-13 18:46:24 +02:00
OMGeeky
97198260a0 add impl to try to convert strings into the enum 2024-05-13 18:30:08 +02:00
OMGeeky
e8e1722294 fix wrong value for enums 2024-05-13 18:29:36 +02:00
OMGeeky
41049ede1a implement workaround for status singular mistake 2024-05-13 18:29:02 +02:00
OMGeeky
d39652dc0b add test for wrong name
(this test currently fails and should be fixed at some point)
2024-05-13 00:05:35 +02:00
OMGeeky
5bfd23d73e fix some errors where some stuff does not exist
all apis libs build now
2024-05-12 23:56:24 +02:00
OMGeeky
5a40cf1683 fix some items not having parameters crashing the script 2024-05-12 22:11:10 +02:00
OMGeeky
e5a85b3727 fix enum result parsing 2024-05-12 22:11:10 +02:00
OMGeeky
c034d75efa change enums visibility 2024-05-12 22:11:10 +02:00
OMGeeky
8fc78fe0ae a building version of the enums-change (cli is broken).
(at least youtube3 builds, the others get generated successfully)
2024-05-12 22:10:59 +02:00
OMGeeky
cf0248f0f3 move scope_enum to own mako file 2024-05-12 22:10:55 +02:00
OMGeeky
95e10c9700 cleanup python usages 2024-05-12 22:09:24 +02:00
OMGeeky
3c93d7fc44 restructure templates to use modules, so it's not just one big file 2024-05-12 22:09:24 +02:00
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