Commit Graph

74 Commits

Author SHA1 Message Date
OMGeeky
51728ff5d7 correctly handle multiline descriptions for enums 2024-05-16 23:59:32 +02:00
OMGeeky
488c81a0af fix usage 2024-05-16 23:59:31 +02:00
OMGeeky
52d2e89e51 reposition doc usage to better fit other usages 2024-05-16 19:40:57 +02:00
OMGeeky
0f1e01363c add regions around enums for better overview 2024-05-16 19:29:32 +02:00
OMGeeky
e7cce53a51 add use for all enums to make the docs build
I got no Idea if there is a better way to do this without importing all the enums but since it is only the docs I think it's fine.
2024-05-16 19:27:34 +02:00
OMGeeky
3e27f63739 generate random values in documentation correctly 2024-05-16 19:20:28 +02:00
OMGeeky
5dd05e4ee4 fix enums not finding nested variants etc 2024-05-15 00:55:15 +02:00
OMGeeky
b6c063a854 fix some enums getting wrong names
(some were way too long)
2024-05-15 00:24:23 +02:00
OMGeeky
3092fef613 add comment 2024-05-13 19:24:28 +02:00
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
5bfd23d73e fix some errors where some stuff does not exist
all apis libs build now
2024-05-12 23:56:24 +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
1ee7a03816 Unwrap after with_native_roots 2024-03-21 16:03:37 +01:00
DreamingCodes
de4fd8040a fixed Content-Length with empty body 2024-03-11 10:18:15 +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
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
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
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
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
philippeitis
3183af080a Refactor modification of scopes
`add_scope` is simplified to simply add scopes, and no longer takes an `Option<_>` item.
Added `add_scopes` convenience function, which allows adding multiple scopes at once.
Added `clear_scopes` function to explicitly allow clearing method scopes.

Refactor modification of scopes

`add_scope` is simplified to simply add scopes, and no longer takes an `Option<_>` item.
Added `add_scopes` convenience function, which allows adding multiple scopes at once.
Added `clear_scopes` function to explicitly allow clearing method scopes.

Refactor modification of scopes

`add_scope` is simplified to simply add scopes, and no longer takes an `Option<_>` item.
Added `add_scopes` convenience function, which allows adding multiple scopes at once.
Added `clear_scopes` function to explicitly allow clearing method scopes.
2022-10-14 22:04:40 -07:00
philippeitis
24f361749a Use .to_string() directly for reduction in build size
Went from 3,325,128b to 3,287,744b for accessapproval1 by using .to_string() directly, under --release config.
2022-10-10 17:37:16 -07:00
philippeitis
98a02a73a4 Simplify searching for "alt=json" param 2022-10-10 17:14:43 -07:00