mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 09:51:36 +00:00
Two changes (#1335)
Allow DATE as schema field type Allow gam check isinvitable <EmailAddress>
This commit is contained in:
@@ -1230,6 +1230,11 @@ The listlimit <Number> argument limits the number of recent users, time ranges a
|
||||
The start <Date> and end <Date> arguments filter the time ranges.
|
||||
Delimiter defaults to comma.
|
||||
|
||||
gam delete chromepolicy <SchemaName>+ orgunit <OrgUnitItem>
|
||||
gam update chromepolicy (<SchemaName> (<Field> <Value>)+)+ orgunit <OrgUnitItem>
|
||||
gam print chromepolicy [todrive] [orgunit <OrgUnitItem>]
|
||||
gam print chromeschema [todrive]
|
||||
|
||||
<DeviceID> ::= devices/<String>
|
||||
<DeviceType> ::= android|chrome_os|google_sync|ios|linux|mac_os|windows
|
||||
<DeviceUserID> ::= devices/<String>/deviceUsers/<String>
|
||||
@@ -1332,7 +1337,7 @@ gam print group-members|groups-members [todrive]
|
||||
|
||||
gam create userinvitation <EmailAddress>
|
||||
gam cancel userinvitation <EmailAddress>
|
||||
gam check userinvitation <EmailAddress>
|
||||
gam check userinvitation|isinvitable <EmailAddress>
|
||||
gam info userinvitation <EmailAddress>
|
||||
gam print userinvitations [todrive] [filter <String>]
|
||||
gam <UserTypeEntity> check isinvitable [todrive]
|
||||
|
||||
@@ -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']:
|
||||
|
||||
Reference in New Issue
Block a user