From 8ce18960fe059e97e8171fe5ece2b8c861fb94b7 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Sat, 5 Dec 2020 18:54:26 -0800 Subject: [PATCH] Multiple updates (#1273) * Multiple updates Add member to print cigroups|cigroup-members to select groups to display Drop Google-Coordinate product ID Update print|show driveactivity to Drive Activity API v2 Check for more parents than 1 in create|update drivefile Update documentation Allow times_to_check_status with gam getcommand cros Display deviceId and commandId when issuing/getting commands * Fix orgunit references in vault * Rename member to enterprisemember in print cigroups|cigroup-members Give error message indication the Enterprise license is required * Add lastKnownNetwork to CrOS fields * Soft fail when deleting user photo * Fix bug in PR #1273 --- src/GamCommands.txt | 153 +++++++++++++-------------- src/gam/__init__.py | 119 +++++++++++++++++---- src/gam/gapi/__init__.py | 95 ++++++++++------- src/gam/gapi/cloudidentity/groups.py | 93 ++++++++++++---- src/gam/gapi/directory/cros.py | 35 +++--- src/gam/gapi/vault.py | 9 +- src/gam/var.py | 9 +- 7 files changed, 328 insertions(+), 185 deletions(-) diff --git a/src/GamCommands.txt b/src/GamCommands.txt index dcf35e01..b8414857 100644 --- a/src/GamCommands.txt +++ b/src/GamCommands.txt @@ -73,17 +73,9 @@ If an item contains spaces, it should be surrounded by ". ::= Google-Apps| Google-Chrome-Device-Management| - Google-Coordinate| Google-Drive-storage| Google-Vault| - 101001|101005|101031 - ::= - Google-Apps| - Google-Chrome-Device-Management| - Google-Coordinate| - Google-Drive-storage| - Google-Vault| - 101001|101005|101006|101031|101033|101034 + 101001|101005|101031|101033|101034 ::= cloudidentity|identity|1010010001| cloudidentitypremium|identitypremium|1010050001| @@ -103,7 +95,6 @@ If an item contains spaces, it should be surrounded by ". gsbau|businessarchived|gsuitebusinessarchived| gseau|enterprisearchived|gsuiteenterprisearchived| chrome|cdm|googlechromedevicemanagement|Google-Chrome-Device-Management| - coordinate|googlecoordinate|Google-Coordinate| wsess|workspaceesentials|gsuiteessentials|essentials|d4e|driveenterprise|drive4enterprise|1010060001| wsentess|workspaceenterpriseessentials|1010060003| drive20gb|20gb|googledrivestorage20gb|Google-Drive-storage-20GB| @@ -209,10 +200,6 @@ If an item contains spaces, it should be surrounded by ". ::= ::= ::= id:||anyone|anyonewithlink - ::= - ::= [m|h|d] - ::= - ::= done|error|held|in_progress|queued|submitted ::= ::= ::= @@ -222,7 +209,6 @@ If an item contains spaces, it should be surrounded by ". ::= See: https://support.google.com/mail/answer/7190 ::= See: https://developers.google.com/admin-sdk/directory/v1/guides/search-groups ::= See: https://support.google.com/a/answer/7549103 - ::= See: https://developers.google.com/cloud-print/docs/appInterfaces#search ::= See: https://developers.google.com/cloud-print/docs/appInterfaces#parameters_3 ::= See: https://developers.google.com/admin-sdk/directory/v1/guides/search-users ::= See: https://developers.google.com/vault/reference/rest/v1/matters.holds#CorpusQuery @@ -594,12 +580,10 @@ Items, separated by spaces, with spaces, commas or single quotes in the items th ::= "(,)*" ::= "(,)*" ::= "(,)*" - ::= "(,)*" ::= "(|SKUID>)(,|SKUID>)*" ::= "(,)*" ::= "(,)*" ::= "(,)*" - ::= "(,)*" ::= "(,)*" ::= "(,)*" ="(,)*" @@ -653,7 +637,7 @@ Specify a collection of Users by directly specifying them or by specifiying item ## Item attributes - ::= + ::= (description )| (floors )| (id )| @@ -661,7 +645,7 @@ Specify a collection of Users by directly specifying them or by specifiying item (longitude )| (name ) - ::= + ::= (selected )|(hidden )|(summary )|(colorindex|colorid )|(backgroundcolor )|(foregroundcolor )| (reminder clear|(email|sms|pop ))| (notification clear|(email|sms eventcreation|eventchange|eventcancellation|eventresponse|agenda)) @@ -669,7 +653,7 @@ Specify a collection of Users by directly specifying them or by specifiying item ::= (summary )|(description )|(location )|(timezone ) - ::= + ::= (description )| (heading )| (name )| @@ -678,14 +662,18 @@ Specify a collection of Users by directly specifying them or by specifiying item (state|status )| (owner|ownerid|teacher ) - ::= + ::= (asset|assetid|tag )| (location )| (notes )| (org|ou )| (user ) - ::= + ::= + (description )| + (name ) + + ::= (localfile )| (convert)|(ocr)|(ocrlanguage )| (restricted|restrict)|(starred|star)|(trashed|trash)|(viewed|view)| @@ -695,7 +683,7 @@ Specify a collection of Users by directly specifying them or by specifiying item (lastviewedbyme