From 28b831c6a25c0e44122e307761373cea06c93c23 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Mon, 18 Jan 2021 14:03:58 -0800 Subject: [PATCH] Fix bug in calendar delete ACL, code assumed a role was included (#1308) * Fix bug in calendar delete ACL, code assumed a role was included Update documentation * Add support for Chrome Browser Enrollment Tokens create browsertoken always returns `ERROR: 400: Invalid Input - invalid` Maybe you can figure out what's going on --- src/GamCommands.txt | 34 ++- src/cbcm-v1.1beta1.json | 600 ++++++++++++++++++++++++++------------- src/gam/__init__.py | 17 +- src/gam/gapi/calendar.py | 8 +- src/gam/gapi/cbcm.py | 93 +++++- 5 files changed, 538 insertions(+), 214 deletions(-) diff --git a/src/GamCommands.txt b/src/GamCommands.txt index ad4d7dcb..0294f1af 100644 --- a/src/GamCommands.txt +++ b/src/GamCommands.txt @@ -142,6 +142,7 @@ If an item contains spaces, it should be surrounded by ". ::= ::= ::= + ::= ::= |id: ::= editor|freebusy|freebusyreader|owner|reader|writer ::= user:|group:|domain:|default @@ -204,6 +205,7 @@ If an item contains spaces, it should be surrounded by ". ::= ::= ::= See: https://support.google.com/chrome/a/answer/9681204#retrieve_all_chrome_devices_for_an_account + ::= See: https://support.google.com/chrome/a/answer/9949706?ref_topic=9301744 ::= ::= See: https://developers.google.com/google-apps/contacts/v3/reference#contacts-query-parameters-reference ::= See: https://support.google.com/chrome/a/answer/1698333?hl=en @@ -1004,9 +1006,9 @@ gam delete alias|nickname [user|group|target] | gam info alias|nickname gam print aliases|nicknames [todrive] [shownoneditable] [nogroups] [nousers] [(query )|(queries add ([user] )|(group )|(domain [])|default [sendnotifications ] -gam calendar update ([user] )|(group )|(domain [])|default [sendnotifications ] -gam calendar del|delete |(domain [])|default +gam calendar add ([user] )|(group )|(domain ) [sendnotifications ] +gam calendar update ([user] )|(group )|(domain )|domain|default [sendnotifications ] +gam calendar del|delete ([user] )|(group )|(domain )|domainx|default gam calendar del|delete id gam calendar showacl gam calendar printacl [todrive] @@ -1130,6 +1132,32 @@ gam print browsers [todrive] [fields ] [sortheaders] +gam create browsertoken + [ou|org|orgunit ] [expire|expires