From 0ea7c500e1411b55e456093d9fc420749a2b65c5 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Thu, 18 Mar 2021 07:40:22 -0700 Subject: [PATCH] Two changes (#1335) Allow DATE as schema field type Allow gam check isinvitable --- src/GamCommands.txt | 7 ++++++- src/gam/__init__.py | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/GamCommands.txt b/src/GamCommands.txt index 74365c63..ac982361 100644 --- a/src/GamCommands.txt +++ b/src/GamCommands.txt @@ -1230,6 +1230,11 @@ The listlimit argument limits the number of recent users, time ranges a The start and end arguments filter the time ranges. Delimiter defaults to comma. +gam delete chromepolicy + orgunit +gam update chromepolicy ( ( )+)+ orgunit +gam print chromepolicy [todrive] [orgunit ] +gam print chromeschema [todrive] + ::= devices/ ::= android|chrome_os|google_sync|ios|linux|mac_os|windows ::= devices//deviceUsers/ @@ -1332,7 +1337,7 @@ gam print group-members|groups-members [todrive] gam create userinvitation gam cancel userinvitation -gam check userinvitation +gam check userinvitation|isinvitable gam info userinvitation gam print userinvitations [todrive] [filter ] gam check isinvitable [todrive] diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 02d40c7a..9dda0fd2 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -6312,7 +6312,7 @@ def doCreateOrUpdateUserSchema(updateCmd): if myarg == 'type': a_field['fieldType'] = sys.argv[i + 1].upper() validTypes = [ - 'BOOL', 'DOUBLE', 'EMAIL', 'INT64', 'PHONE', 'STRING' + 'BOOL', 'DATE', 'DOUBLE', 'EMAIL', 'INT64', 'PHONE', 'STRING' ] if a_field['fieldType'] not in validTypes: controlflow.expected_argument_exit( @@ -11606,7 +11606,7 @@ def ProcessGAMCommand(args): sys.exit(0) elif command == 'check': argument = sys.argv[2].lower() - if argument in ['userinvitation', 'userinvitations']: + if argument in ['isinvitable', 'userinvitation', 'userinvitations']: gapi_cloudidentity_userinvitations.is_invitable_user() sys.exit(0) elif command in ['cancelwipe', 'wipe', 'approve', 'block', 'sync']: