Skip to content

Commit a328942

Browse files
committed
feat(API): improved error handling
We are now able to decode detailed errors and pass them on. This allows the CLI to provide more useful error responses. Additionally, the CLI will only print debug responses in --debug mode. Fixes #82
1 parent f8689be commit a328942

94 files changed

Lines changed: 35183 additions & 16 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# DO NOT EDIT !
2+
# This file was generated automatically from 'src/mako/Cargo.toml.mako'
3+
# DO NOT EDIT !
4+
[package]
5+
6+
name = "google-admin1_directory-cli"
7+
version = "0.0.1+20150314"
8+
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
9+
description = "A complete library to interact with directory (protocol directory_v1)"
10+
repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/admin1_directory-cli"
11+
homepage = "https://developers.google.com/admin-sdk/directory/"
12+
documentation = "http://byron.github.io/google-apis-rs/google_admin1_directory_cli"
13+
license = "MIT"
14+
keywords = ["admin", "google", "cli"]
15+
16+
[[bin]]
17+
name = "admin1-directory"
18+
19+
[dependencies]
20+
hyper = "*"
21+
mime = "*"
22+
yup-oauth2 = "*"
23+
docopt = "*"
24+
docopt_macros = "*"
25+
rustc-serialize = "*"
26+
yup-hyper-mock = "*"
27+
serde = ">= 0.3.0"
28+
serde_macros = "*"
29+
30+
[dependencies.google-admin1_directory]
31+
path = "../admin1_directory"
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!---
2+
DO NOT EDIT !
3+
This file was generated automatically from 'src/mako/LICENSE.md.mako'
4+
DO NOT EDIT !
5+
-->
6+
The MIT License (MIT)
7+
=====================
8+
9+
Copyright © `2015` `Sebastian Thiel`
10+
11+
Permission is hereby granted, free of charge, to any person
12+
obtaining a copy of this software and associated documentation
13+
files (the “Software”), to deal in the Software without
14+
restriction, including without limitation the rights to use,
15+
copy, modify, merge, publish, distribute, sublicense, and/or sell
16+
copies of the Software, and to permit persons to whom the
17+
Software is furnished to do so, subject to the following
18+
conditions:
19+
20+
The above copyright notice and this permission notice shall be
21+
included in all copies or substantial portions of the Software.
22+
23+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
24+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
25+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
27+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
28+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
29+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
30+
OTHER DEALINGS IN THE SOFTWARE.

gen/admin1_directory-cli/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# HELLO ADMIN:DIRECTORY_V1
2+
3+
4+
Include information about application secret files, and how we automatically write a default one.
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
site_name: directory v0.0.1+20150314
2+
site_url: http://byron.github.io/google-apis-rs/google-admin1_directory-cli
3+
site_description: Write integrating applications with bcore
4+
5+
repo_url: https://github.com/Byron/google-apis-rs/tree/master/gen/admin1_directory-cli
6+
7+
docs_dir: docs
8+
site_dir: build_html
9+
10+
pages:
11+
- ['index.md', 'Home']
12+
- ['asps_delete.md', 'Asps', 'Delete']
13+
- ['asps_get.md', 'Asps', 'Get']
14+
- ['asps_list.md', 'Asps', 'List']
15+
- ['channels_stop.md', 'Channels', 'Stop']
16+
- ['chromeosdevices_get.md', 'Chromeosdevices', 'Get']
17+
- ['chromeosdevices_list.md', 'Chromeosdevices', 'List']
18+
- ['chromeosdevices_patch.md', 'Chromeosdevices', 'Patch']
19+
- ['chromeosdevices_update.md', 'Chromeosdevices', 'Update']
20+
- ['groups_aliases-delete.md', 'Groups', 'Aliases Delete']
21+
- ['groups_aliases-insert.md', 'Groups', 'Aliases Insert']
22+
- ['groups_aliases-list.md', 'Groups', 'Aliases List']
23+
- ['groups_delete.md', 'Groups', 'Delete']
24+
- ['groups_get.md', 'Groups', 'Get']
25+
- ['groups_insert.md', 'Groups', 'Insert']
26+
- ['groups_list.md', 'Groups', 'List']
27+
- ['groups_patch.md', 'Groups', 'Patch']
28+
- ['groups_update.md', 'Groups', 'Update']
29+
- ['members_delete.md', 'Members', 'Delete']
30+
- ['members_get.md', 'Members', 'Get']
31+
- ['members_insert.md', 'Members', 'Insert']
32+
- ['members_list.md', 'Members', 'List']
33+
- ['members_patch.md', 'Members', 'Patch']
34+
- ['members_update.md', 'Members', 'Update']
35+
- ['mobiledevices_action.md', 'Mobiledevices', 'Action']
36+
- ['mobiledevices_delete.md', 'Mobiledevices', 'Delete']
37+
- ['mobiledevices_get.md', 'Mobiledevices', 'Get']
38+
- ['mobiledevices_list.md', 'Mobiledevices', 'List']
39+
- ['notifications_delete.md', 'Notifications', 'Delete']
40+
- ['notifications_get.md', 'Notifications', 'Get']
41+
- ['notifications_list.md', 'Notifications', 'List']
42+
- ['notifications_patch.md', 'Notifications', 'Patch']
43+
- ['notifications_update.md', 'Notifications', 'Update']
44+
- ['orgunits_delete.md', 'Orgunits', 'Delete']
45+
- ['orgunits_get.md', 'Orgunits', 'Get']
46+
- ['orgunits_insert.md', 'Orgunits', 'Insert']
47+
- ['orgunits_list.md', 'Orgunits', 'List']
48+
- ['orgunits_patch.md', 'Orgunits', 'Patch']
49+
- ['orgunits_update.md', 'Orgunits', 'Update']
50+
- ['schemas_delete.md', 'Schemas', 'Delete']
51+
- ['schemas_get.md', 'Schemas', 'Get']
52+
- ['schemas_insert.md', 'Schemas', 'Insert']
53+
- ['schemas_list.md', 'Schemas', 'List']
54+
- ['schemas_patch.md', 'Schemas', 'Patch']
55+
- ['schemas_update.md', 'Schemas', 'Update']
56+
- ['tokens_delete.md', 'Tokens', 'Delete']
57+
- ['tokens_get.md', 'Tokens', 'Get']
58+
- ['tokens_list.md', 'Tokens', 'List']
59+
- ['users_aliases-delete.md', 'Users', 'Aliases Delete']
60+
- ['users_aliases-insert.md', 'Users', 'Aliases Insert']
61+
- ['users_aliases-list.md', 'Users', 'Aliases List']
62+
- ['users_aliases-watch.md', 'Users', 'Aliases Watch']
63+
- ['users_delete.md', 'Users', 'Delete']
64+
- ['users_get.md', 'Users', 'Get']
65+
- ['users_insert.md', 'Users', 'Insert']
66+
- ['users_list.md', 'Users', 'List']
67+
- ['users_make-admin.md', 'Users', 'Make Admin']
68+
- ['users_patch.md', 'Users', 'Patch']
69+
- ['users_photos-delete.md', 'Users', 'Photos Delete']
70+
- ['users_photos-get.md', 'Users', 'Photos Get']
71+
- ['users_photos-patch.md', 'Users', 'Photos Patch']
72+
- ['users_photos-update.md', 'Users', 'Photos Update']
73+
- ['users_undelete.md', 'Users', 'Undelete']
74+
- ['users_update.md', 'Users', 'Update']
75+
- ['users_watch.md', 'Users', 'Watch']
76+
- ['verification-codes_generate.md', 'Verification Codes', 'Generate']
77+
- ['verification-codes_invalidate.md', 'Verification Codes', 'Invalidate']
78+
- ['verification-codes_list.md', 'Verification Codes', 'List']
79+
80+
theme: readthedocs
81+
82+
copyright: Copyright &copy; 2015, `Sebastian Thiel`
83+

0 commit comments

Comments
 (0)