From 893b63c5d54e406bcb34926f8b41e10dbd90b858 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Mon, 24 Jul 2023 10:16:30 -0400 Subject: [PATCH 01/14] actions: capture Vault matterId output --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 27ce149b..f1f7908a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -727,7 +727,7 @@ jobs: $gam calendar $gam_user addevent summary "GHA test event" start "${starttime}" end "${endtime}" attendee $newgroup hangoutsmeet guestscanmodify true sendupdates all $gam calendar $gam_user printevents after -0d $gam config enable_dasa false save - matterid=uid:$($gam create vaultmatter name "GHA matter $newbase" description "test matter" collaborators $newuser | head -1 | cut -d ' ' -f 3) + matterid=uid:$($gam create vaultmatter name "GHA matter $newbase" description "test matter" collaborators $newuser | head -1 | awk -F'[()]' '{print $2}') $gam create vaulthold matter $matterid name "GHA hold $newbase" corpus mail accounts $newuser $gam print vaultmatters matterstate open $gam print vaultholds matter $matterid From ff6364c77be871f549af5c02a01d248934750d2b Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Mon, 24 Jul 2023 10:33:49 -0400 Subject: [PATCH 02/14] actions: noinfo on whatis command to avoid DASA license errors --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f1f7908a..f7688a33 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -746,7 +746,7 @@ jobs: $gam user $newuser delete license workspaceenterpriseplus echo finish $gam config enable_dasa true save - $gam whatis $newuser + $gam whatis $newuser noinfo $gam user $gam_user show tokens $gam config enable_dasa false save $gam print exports matter $matterid | $gam csv - gam download export $matterid id:~~id~~ From 3eea0cea083e0590ac9beaa4811cf88d276ac811 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Mon, 24 Jul 2023 08:14:35 -0700 Subject: [PATCH 03/14] Added option `returnidonly` to `gam create vaultexport|vaulthold|vaultmatter` --- src/GamCommands.txt | 6 ++--- src/GamUpdate.txt | 9 ++++++++ src/gam/__init__.py | 53 ++++++++++++++++++++++++++++++++------------- 3 files changed, 50 insertions(+), 18 deletions(-) diff --git a/src/GamCommands.txt b/src/GamCommands.txt index 887a210d..784d2322 100644 --- a/src/GamCommands.txt +++ b/src/GamCommands.txt @@ -4785,7 +4785,7 @@ gam show teamdriveacls gam create|add vaultmatter|matter [name ] [description ] [collaborator|collaborators ] [sendemails ] [ccme ] - [showdetails] + [showdetails|returnidonly] gam update vaultmatter|matter [name ] [description ] [addcollaborator|addcollaborators ] [removecollaborator|removecollaborators ] gam update vaultmatter|matter action close|reopen|delete|undelete @@ -4834,7 +4834,7 @@ gam create vaultexport|export matter [name ] corpus drive|m [showconfidentialmodecontent ] [usenewexport ] [includerooms ] [covereddata calllogs|textmessages|voicemails] [includeshareddrives|includeteamdrives ] [driveversiondate |