From 4a1e19a75347849317964be599eba117a4d7b18a Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Wed, 21 May 2025 16:43:07 -0700 Subject: [PATCH] Added eventrowfilter to print events ... countsonly --- wiki/Calendars-Events.md | 12 +++++++++--- wiki/GamUpdates.md | 11 +++++++++++ wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md | 4 ++-- wiki/Users-Calendars-Events.md | 10 ++++++++-- wiki/Users-Drive-Files-Manage.md | 2 +- wiki/Version-and-Help.md | 12 ++++++------ 6 files changed, 37 insertions(+), 14 deletions(-) diff --git a/wiki/Calendars-Events.md b/wiki/Calendars-Events.md index 00822715..03d13a50 100644 --- a/wiki/Calendars-Events.md +++ b/wiki/Calendars-Events.md @@ -567,7 +567,7 @@ By default, Gam displays the information as an indented list of keys and values. ``` gam calendar show events [] * [fields ] [showdayofweek] - [countsonly] [formatjson] + [countsly] [formatjson] ``` In ``, any `` options must precede all other options. @@ -585,8 +585,9 @@ By default, Gam displays event details, use `countsonly` to display only the num ``` gam calendar print events [] * - [fields ] [showdayofweek] - [countsonly] [formatjson [quotechar ]] [todrive *] + [fields ] [showdayofweek] + [countsonly [eventrowfilter]] + [formatjson [quotechar ]] [todrive *] ``` In ``, any `` options must precede all other options. @@ -602,6 +603,11 @@ By default, Gam displays the information as columns of fields; the following opt By default, Gam displays event details, use `countsonly` to display only the number of events. `formatjson` does not apply in this case. +When `countsonly` is specified, the `eventrowfilter` option causes +GAM to apply `config csv_output_row_filter` to the event details rather than the event counts. +This will be useful when `` and `` do not have the +capabilty to select the events of interest; e.g., you want to filter based on the event `created` property. + By default, when writing CSV files, Gam uses a quote character of double quote `"`. The quote character is used to enclose columns that contain the quote character itself, the column delimiter (comma by default) and new-line characters. Any quote characters within the column are doubled. When using the `formatjson` option, double quotes are used extensively in the data resulting in hard to read/process output. diff --git a/wiki/GamUpdates.md b/wiki/GamUpdates.md index ea2aed98..386edd98 100644 --- a/wiki/GamUpdates.md +++ b/wiki/GamUpdates.md @@ -10,6 +10,17 @@ Add the `-s` option to the end of the above commands to suppress creating the `g See [Downloads-Installs-GAM7](https://github.com/GAM-team/GAM/wiki/Downloads-Installs) for Windows or other options, including manual installation +### 7.07.06 + +Added option `eventrowfilter` to `gam calendars print events ... countsonly` +and `gam print events ... countsonly` that causes +GAM to apply `config csv_output_row_filter` to the event details rather than the event counts. +This will be useful when `` and `` do not have the +capabilty to select the events of interest; e.g., you want to filter based on the event `created` property. + +Dropped the extraneous `id` column for `gam calendars print events ... countsonly` +and `gam print events ... countsonly`. + ### 7.07.05 Updated `gam move drivefile` to recognize the API error: `ERROR: 400: shareOutWarning`. diff --git a/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md b/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md index 1f115216..ccb74814 100644 --- a/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md +++ b/wiki/How-to-Upgrade-Legacy-GAM-to-GAM7.md @@ -251,7 +251,7 @@ writes the credentials into the file oauth2.txt. admin@server:/Users/admin$ rm -f /Users/admin/GAMConfig/oauth2.txt admin@server:/Users/admin$ gam version WARNING: Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /Users/admin/GAMConfig/oauth2.txt, Not Found -GAM 7.07.05 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.07.06 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.13.3 64-bit final MacOS Sequoia 15.4.1 x86_64 @@ -989,7 +989,7 @@ writes the credentials into the file oauth2.txt. C:\>del C:\GAMConfig\oauth2.txt C:\>gam version WARNING: Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: C:\GAMConfig\oauth2.txt, Not Found -GAM 7.07.05 - https://github.com/GAM-team/GAM - pythonsource +GAM 7.07.06 - https://github.com/GAM-team/GAM - pythonsource GAM Team Python 3.13.3 64-bit final Windows-10-10.0.17134 AMD64 diff --git a/wiki/Users-Calendars-Events.md b/wiki/Users-Calendars-Events.md index a22709d7..fd579822 100644 --- a/wiki/Users-Calendars-Events.md +++ b/wiki/Users-Calendars-Events.md @@ -671,8 +671,9 @@ By default, Gam displays event details, use `countsonly` to display only the num ``` gam print events [] * - [fields ] [showdayofweek] - [countsonly] [formatjson [quotechar ]] [todrive *] + [fields ] [showdayofweek] + [countsonly] + [formatjson [quotechar ]] [todrive *] ``` In ``, any `` options must precede all other options. @@ -688,6 +689,11 @@ By default, Gam displays the information as columns of fields; the following opt By default, Gam displays event details, use `countsonly` to display only the number of events. `formatjson` does not apply in this case. +When `countsonly` is specified, the `eventrowfilter` option causes +GAM to apply `config csv_output_row_filter` to the event details rather than the event counts. +This will be useful when `` and `` do not have the +capabilty to select the events of interest; e.g., you want to filter based on the event `created` property. + By default, when writing CSV files, Gam uses a quote character of double quote `"`. The quote character is used to enclose columns that contain the quote character itself, the column delimiter (comma by default) and new-line characters. Any quote characters within the column are doubled. When using the `formatjson` option, double quotes are used extensively in the data resulting in hard to read/process output. diff --git a/wiki/Users-Drive-Files-Manage.md b/wiki/Users-Drive-Files-Manage.md index a7fdc92c..6a680f3c 100644 --- a/wiki/Users-Drive-Files-Manage.md +++ b/wiki/Users-Drive-Files-Manage.md @@ -30,7 +30,7 @@ * [Shared Drive Limits](https://support.google.com/a/users/answer/7338880) * [My Drive Shared Drive API differences](https://developers.google.com/drive/api/v3/shared-drives-diffs) * [Google Docs API](https://developers.google.com/docs/api/reference/rest) -* [Limited Access](https://workspaceupdates.googleblog.com/2025/02/updating-access-experience-in-google-drive.html) +* [Limited and Expansive Access](https://developers.google.com/workspace/drive/api/guides/limited-expansive-access) ## Definitions * [``](Drive-File-Selection) diff --git a/wiki/Version-and-Help.md b/wiki/Version-and-Help.md index f94c3c53..8eb35433 100644 --- a/wiki/Version-and-Help.md +++ b/wiki/Version-and-Help.md @@ -3,7 +3,7 @@ Print the current version of Gam with details ``` gam version -GAM 7.07.05 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.07.06 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.13.3 64-bit final MacOS Sequoia 15.4.1 x86_64 @@ -15,7 +15,7 @@ Time: 2023-06-02T21:10:00-07:00 Print the current version of Gam with details and time offset information ``` gam version timeoffset -GAM 7.07.05 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.07.06 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.13.3 64-bit final MacOS Sequoia 15.4.1 x86_64 @@ -27,7 +27,7 @@ Your system time differs from www.googleapis.com by less than 1 second Print the current version of Gam with extended details and SSL information ``` gam version extended -GAM 7.07.05 - https://github.com/GAM-team/GAM - pyinstaller +GAM 7.07.06 - https://github.com/GAM-team/GAM - pyinstaller GAM Team Python 3.13.3 64-bit final MacOS Sequoia 15.4.1 x86_64 @@ -64,7 +64,7 @@ MacOS High Sierra 10.13.6 x86_64 Path: /Users/Admin/bin/gam7 Version Check: Current: 5.35.08 - Latest: 7.07.05 + Latest: 7.07.06 echo $? 1 ``` @@ -72,7 +72,7 @@ echo $? Print the current version number without details ``` gam version simple -7.07.05 +7.07.06 ``` In Linux/MacOS you can do: ``` @@ -82,7 +82,7 @@ echo $VER Print the current version of Gam and address of this Wiki ``` gam help -GAM 7.07.05 - https://github.com/GAM-team/GAM +GAM 7.07.06 - https://github.com/GAM-team/GAM GAM Team Python 3.13.3 64-bit final MacOS Sequoia 15.4.1 x86_64