From a1967bc70616123ad4589ce28617b3e0cbec0122 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Mon, 10 Feb 2020 15:22:55 -0800 Subject: [PATCH] Improve error handling when invalid report is entered (#1094) * Improve error handling when invalid report is entered * Add chat to report list * Use discovery document * This will work * Fix formatting * These aren't necessary * Yes, these are necessary because the user may enter the version without _ and gam has has to add it back --- src/GamCommands.txt | 21 ++++++++++++++++++++- src/gam.py | 39 ++++++++++++++++++++++++++------------- 2 files changed, 46 insertions(+), 14 deletions(-) diff --git a/src/GamCommands.txt b/src/GamCommands.txt index f934cefb..9b1735fa 100644 --- a/src/GamCommands.txt +++ b/src/GamCommands.txt @@ -880,6 +880,25 @@ gam update resoldsubscription gam delete resoldsubscription cancel|downgrade|transfer_to_direct gam info resoldsubscriptions [customer_auth_token ] + ::= + access|accesstransparency| + admin| + calendar|calendars| + chat| + drive|doc|docs| + enterprisegroups|groupsenterprise| + gcp| + google+|gplus| + group|groups| + hangoutsmeet|meet| + jamboard| + login|logins| + mobile| + oauthtoken|token|tokens| + rules| + saml| + useraccounts + ::= accounts| app_maker| @@ -899,7 +918,7 @@ gam report users|user [todrive] [date ] [fulldatarequired all|)|(orgunit|org|ou )] [filter|filters ] [fields|parameters ] gam report customers|customer|domain [todrive] [date ] [fulldatarequired all|] [fields|parameters ] -gam report admin|calendar|calendars|drive|docs|doc|groups|group|logins|login|mobile|tokens|token [todrive] +gam report [todrive] [start