From a59e3008c5d42b4e890f2782dd3bb3fbffc1eaa5 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Mon, 16 Jun 2025 09:55:44 -0700 Subject: [PATCH] Added `webviewlink` to `` --- src/GamCommands.txt | 3 ++- src/GamUpdate.txt | 6 +++++- src/gam/__init__.py | 7 ++++--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/GamCommands.txt b/src/GamCommands.txt index d1f7f2cb..9f0e19f7 100644 --- a/src/GamCommands.txt +++ b/src/GamCommands.txt @@ -7204,7 +7204,8 @@ gam show filesharecounts owners| parents| size| - trashed + trashed| + webviewlink ::= "(,)*" gam print filetree [todrive *] diff --git a/src/GamUpdate.txt b/src/GamUpdate.txt index dd6575af..60d55463 100644 --- a/src/GamUpdate.txt +++ b/src/GamUpdate.txt @@ -1,6 +1,10 @@ +7.09.07 + +Added `webviewlink` to `` for use in `gam print|show filetree`. + 7.09.06 -Upddated `gam print|show shareddrives', `gam print|show shareddriveacls', `gam print shareddriveorganizers` +Upddated `gam print|show shareddrives`, `gam print|show shareddriveacls`, `gam print shareddriveorganizers` to display the Shared Drives in ascending name order; the API returns them in an unidentifiable order. 7.09.05 diff --git a/src/gam/__init__.py b/src/gam/__init__.py index f7267bfe..d7ac6957 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki """ __author__ = 'GAM Team ' -__version__ = '7.09.06' +__version__ = '7.09.07' __license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)' #pylint: disable=wrong-import-position @@ -57618,9 +57618,10 @@ FILETREE_FIELDS_CHOICE_MAP = { 'parents': 'parents', 'size': 'size', 'trashed': 'trashed', + 'webviewlink': 'webViewLink', } -FILETREE_FIELDS_PRINT_ORDER = ['id', 'parents', 'owners', 'mimeType', 'size', 'explicitlyTrashed', 'trashed'] +FILETREE_FIELDS_PRINT_ORDER = ['id', 'parents', 'owners', 'mimeType', 'size', 'explicitlyTrashed', 'trashed', 'webViewLink'] # gam print filetree [todrive *] # [select [selectsubquery ] [depth ]] @@ -57785,7 +57786,7 @@ def printShowFileTree(users): else: unknownArgumentExit() fieldsList = ['driveId', 'id', 'name', 'parents', 'mimeType', 'ownedByMe', 'owners(emailAddress)', - 'shared', sizeField, 'explicitlyTrashed', 'trashed'] + 'shared', sizeField, 'explicitlyTrashed', 'trashed', 'webViewLink'] if csvPF: if not GC.Values[GC.DRIVE_V3_NATIVE_NAMES]: fileNameTitle = 'title'