mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
Cleaned up Getting/Got messages for gam print courses|course-participants.
This commit is contained in:
@@ -695,6 +695,23 @@ gam print cros
|
|||||||
(cros_ous <OrgUnitList>)|(cros_ous_and_children <OrgUnitList>)]]
|
(cros_ous <OrgUnitList>)|(cros_ous_and_children <OrgUnitList>)]]
|
||||||
showitemcountonly
|
showitemcountonly
|
||||||
```
|
```
|
||||||
|
Example
|
||||||
|
```
|
||||||
|
$ gam print cros query "sync:..2020-01-01" showitemcountonly
|
||||||
|
Getting all CrOS Devices that match query (sync:..2020-01-01) for /, may take some time on a large Organizational Unit...
|
||||||
|
Got 77 CrOS Devices that matched query (sync:..2020-01-01) for /...
|
||||||
|
Got 77 CrOS Devices that matched query (sync:..2020-01-01)
|
||||||
|
77
|
||||||
|
```
|
||||||
|
The `Getting` and `Got` messages are written to stderr, the count is writtem to stdout.
|
||||||
|
|
||||||
|
To retrieve the count with `showitemcountonly`:
|
||||||
|
```
|
||||||
|
Linux/MacOS
|
||||||
|
count=$(gam print cros query "sync:..2020-01-01" showitemcountonly)
|
||||||
|
Windows PowerShell
|
||||||
|
count = & gam print cros query "sync:..2020-01-01" showitemcountonly
|
||||||
|
```
|
||||||
|
|
||||||
## Print ChromeOS device activity
|
## Print ChromeOS device activity
|
||||||
|
|
||||||
|
|||||||
@@ -441,6 +441,24 @@ gam print courses
|
|||||||
[owneremailmatchpattern <RegularExpression>]
|
[owneremailmatchpattern <RegularExpression>]
|
||||||
showitemcountonly
|
showitemcountonly
|
||||||
```
|
```
|
||||||
|
Example
|
||||||
|
```
|
||||||
|
$ gam print courses states active showitemcountonly
|
||||||
|
Getting all Courses that match query (Course State: ACTIVE), may take some time on a large Google Workspace Account...
|
||||||
|
Got 268 Courses...
|
||||||
|
Got 272 Courses...
|
||||||
|
Got 272 Courses...
|
||||||
|
272
|
||||||
|
```
|
||||||
|
The `Getting` and `Got` messages are written to stderr, the count is writtem to stdout.
|
||||||
|
|
||||||
|
To retrieve the count with `showitemcountonly`:
|
||||||
|
```
|
||||||
|
Linux/MacOS
|
||||||
|
count=$(gam print courses states active showitemcountonly)
|
||||||
|
Windows PowerShell
|
||||||
|
count = & gam print courses states active showitemcountonly
|
||||||
|
```
|
||||||
|
|
||||||
## Display course announcements
|
## Display course announcements
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -141,3 +141,26 @@ gam print course-participants
|
|||||||
[show all|students|teachers]
|
[show all|students|teachers]
|
||||||
showitemcountonly
|
showitemcountonly
|
||||||
```
|
```
|
||||||
|
Example
|
||||||
|
```
|
||||||
|
$ gam print course-participants teacher asmith states active show students showitemcountonly
|
||||||
|
Getting all Courses that match query (Teacher: asmith@domain.com, Course State: ACTIVE), may take some time on a large Google Workspace Account...
|
||||||
|
Got 3 Courses...
|
||||||
|
Getting Students for Course: 636981507234 (1/3)
|
||||||
|
Got 30 Students...
|
||||||
|
Got 43 Students...
|
||||||
|
Getting Students for Course: 589346784341 (2/3)
|
||||||
|
Got 22 Students...
|
||||||
|
Getting Students for Course: 589345535881 (3/3)
|
||||||
|
Got 23 Students...
|
||||||
|
88
|
||||||
|
```
|
||||||
|
The `Getting` and `Got` messages are written to stderr, the count is writtem to stdout.
|
||||||
|
|
||||||
|
To retrieve the count with `showitemcountonly`:
|
||||||
|
```
|
||||||
|
Linux/MacOS
|
||||||
|
count=$(gam print course-participants teacher asmith states active show students showitemcountonly)
|
||||||
|
Windows PowerShell
|
||||||
|
count = & gam print course-participants teacher asmith states active show students showitemcountonly
|
||||||
|
```
|
||||||
|
|||||||
@@ -235,6 +235,28 @@ gam print devices
|
|||||||
[all|company|personal|nocompanydevices|nopersonaldevices]
|
[all|company|personal|nocompanydevices|nopersonaldevices]
|
||||||
showitemcountonly
|
showitemcountonly
|
||||||
```
|
```
|
||||||
|
Example
|
||||||
|
```
|
||||||
|
$ gam print devices queries "'model:Mac'" showitemcountonly
|
||||||
|
Getting all Devices that match query (model:Mac), may take some time on a large Google Workspace Account...
|
||||||
|
Got 100 Devices...
|
||||||
|
Got 200 Devices...
|
||||||
|
Got 300 Devices...
|
||||||
|
...
|
||||||
|
Got 900 Devices...
|
||||||
|
Got 995 Devices...
|
||||||
|
Got 995 Devices...
|
||||||
|
995
|
||||||
|
```
|
||||||
|
The `Getting` and `Got` messages are written to stderr, the count is writtem to stdout.
|
||||||
|
|
||||||
|
To retrieve the count with `showitemcountonly`:
|
||||||
|
```
|
||||||
|
Linux/MacOS
|
||||||
|
count=$(gam print devices queries "'model:Mac'" showitemcountonly)
|
||||||
|
Windows PowerShell
|
||||||
|
count = & gam print devices queries "'model:Mac'" showitemcountonly
|
||||||
|
```
|
||||||
|
|
||||||
## Approve or block device users
|
## Approve or block device users
|
||||||
Approve or block user profiles on a device.
|
Approve or block user profiles on a device.
|
||||||
@@ -304,6 +326,29 @@ gam print deviceusers [todrive <ToDriveAttribute>*]
|
|||||||
[(query <QueryDevice>)|(queries <QueryDeviceList>) (querytime<String> <Time>)*]
|
[(query <QueryDevice>)|(queries <QueryDeviceList>) (querytime<String> <Time>)*]
|
||||||
showitemcountonly
|
showitemcountonly
|
||||||
```
|
```
|
||||||
|
Example
|
||||||
|
```
|
||||||
|
$ gam print deviceusers queries "'model:Mac'" showitemcountonly
|
||||||
|
Getting all Device Users that match query (model:Mac), may take some time on a large Google Workspace Account...
|
||||||
|
Got 20 Device Users...
|
||||||
|
Got 40 Device Users...
|
||||||
|
Got 60 Device Users...
|
||||||
|
...
|
||||||
|
Got 980 Device Users...
|
||||||
|
Got 995 Device Users...
|
||||||
|
Got 995 Device Users...
|
||||||
|
995
|
||||||
|
```
|
||||||
|
The `Getting` and `Got` messages are written to stderr, the count is writtem to stdout.
|
||||||
|
|
||||||
|
To retrieve the count with `showitemcountonly`:
|
||||||
|
```
|
||||||
|
Linux/MacOS
|
||||||
|
count=$(gam print deviceusers queries "'model:Mac'" showitemcountonly)
|
||||||
|
Windows PowerShell
|
||||||
|
count = & gam print deviceusers queries "'model:Mac'" showitemcountonly
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Display device user client state
|
## Display device user client state
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -387,4 +387,19 @@ gam print cigroups
|
|||||||
[descriptionmatchpattern [not] <RegularExpression>]
|
[descriptionmatchpattern [not] <RegularExpression>]
|
||||||
showitemcountonly
|
showitemcountonly
|
||||||
```
|
```
|
||||||
|
Example
|
||||||
|
```
|
||||||
|
$ gam print cigroups showitemcountonly
|
||||||
|
Getting all Cloud Identity Groups, may take some time on a large Google Workspace Account...
|
||||||
|
Got 242 Cloud Identity Groups: td.current@domain.com - postmaster@domain.com
|
||||||
|
242
|
||||||
|
```
|
||||||
|
The `Getting` and `Got` messages are written to stderr, the count is writtem to stdout.
|
||||||
|
|
||||||
|
To retrieve the count with `showitemcountonly`:
|
||||||
|
```
|
||||||
|
Linux/MacOS
|
||||||
|
count=$(gam print cigroups showitemcountonly)
|
||||||
|
Windows PowerShell
|
||||||
|
count = & gam print cidgroups showitemcountonly
|
||||||
|
```
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ Add the `-s` option to the end of the above commands to suppress creating the `g
|
|||||||
|
|
||||||
See [Downloads](https://github.com/taers232c/GAMADV-XTD3/wiki/Downloads) for Windows or other options, including manual installation
|
See [Downloads](https://github.com/taers232c/GAMADV-XTD3/wiki/Downloads) for Windows or other options, including manual installation
|
||||||
|
|
||||||
|
### 6.67.18
|
||||||
|
|
||||||
|
Cleaned up `Getting/Got` messages for `gam print courses|course-participants`.
|
||||||
|
|
||||||
### 6.67.17
|
### 6.67.17
|
||||||
|
|
||||||
Added option `showitemcountonly` to various commands that causes GAM to display the
|
Added option `showitemcountonly` to various commands that causes GAM to display the
|
||||||
@@ -21,7 +25,7 @@ item count on stdout; no CSV file is written.
|
|||||||
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Classroom-Membership#display-course-membership-counts
|
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Classroom-Membership#display-course-membership-counts
|
||||||
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/ChromeOS-Devices#display-cros-device-counts
|
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/ChromeOS-Devices#display-cros-device-counts
|
||||||
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Cloud-Identity-Devices#display-device-counts
|
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Cloud-Identity-Devices#display-device-counts
|
||||||
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Cloud-Identity-Devices#display-device-counts
|
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Cloud-Identity-Devices#display-device-user-counts
|
||||||
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Groups#display-group-counts
|
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Groups#display-group-counts
|
||||||
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Mobile-Devices#display-mobile-device-counts
|
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Mobile-Devices#display-mobile-device-counts
|
||||||
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Organizational-Units#display-organizational-unit-counts
|
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Organizational-Units#display-organizational-unit-counts
|
||||||
|
|||||||
@@ -575,3 +575,20 @@ gam print groups
|
|||||||
[admincreatedmatch <Boolean>]
|
[admincreatedmatch <Boolean>]
|
||||||
showitemcountonly
|
showitemcountonly
|
||||||
```
|
```
|
||||||
|
Example
|
||||||
|
```
|
||||||
|
$ gam print groups showitemcountonly
|
||||||
|
Getting all Groups, may take some time on a large Google Workspace Account...
|
||||||
|
Got 200 Groups: 1aparents@domain.com - students-genderfood@domain.com
|
||||||
|
Got 238 Groups: students-worldculture@domain.com - xcarestaff@domain.com
|
||||||
|
238
|
||||||
|
```
|
||||||
|
The `Getting` and `Got` messages are written to stderr, the count is writtem to stdout.
|
||||||
|
|
||||||
|
To retrieve the count with `showitemcountonly`:
|
||||||
|
```
|
||||||
|
Linux/MacOS
|
||||||
|
count=$(gam print groups showitemcountonly)
|
||||||
|
Windows PowerShell
|
||||||
|
count = & gam print groups showitemcountonly
|
||||||
|
```
|
||||||
|
|||||||
@@ -334,7 +334,7 @@ writes the credentials into the file oauth2.txt.
|
|||||||
admin@server:/Users/admin/bin/gamadv-xtd3$ rm -f /Users/admin/GAMConfig/oauth2.txt
|
admin@server:/Users/admin/bin/gamadv-xtd3$ rm -f /Users/admin/GAMConfig/oauth2.txt
|
||||||
admin@server:/Users/admin/bin/gamadv-xtd3$ ./gam version
|
admin@server:/Users/admin/bin/gamadv-xtd3$ ./gam version
|
||||||
WARNING: Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /Users/admin/GAMConfig/oauth2.txt, Not Found
|
WARNING: Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /Users/admin/GAMConfig/oauth2.txt, Not Found
|
||||||
GAMADV-XTD3 6.67.17 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
|
GAMADV-XTD3 6.67.18 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
|
||||||
Ross Scroggs <ross.scroggs@gmail.com>
|
Ross Scroggs <ross.scroggs@gmail.com>
|
||||||
Python 3.12.1 64-bit final
|
Python 3.12.1 64-bit final
|
||||||
MacOS Sonoma 14.2.1 x86_64
|
MacOS Sonoma 14.2.1 x86_64
|
||||||
@@ -1002,7 +1002,7 @@ writes the credentials into the file oauth2.txt.
|
|||||||
C:\GAMADV-XTD3>del C:\GAMConfig\oauth2.txt
|
C:\GAMADV-XTD3>del C:\GAMConfig\oauth2.txt
|
||||||
C:\GAMADV-XTD3>gam version
|
C:\GAMADV-XTD3>gam version
|
||||||
WARNING: Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: C:\GAMConfig\oauth2.txt, Not Found
|
WARNING: Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: C:\GAMConfig\oauth2.txt, Not Found
|
||||||
GAMADV-XTD3 6.67.17 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
|
GAMADV-XTD3 6.67.18 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
|
||||||
Ross Scroggs <ross.scroggs@gmail.com>
|
Ross Scroggs <ross.scroggs@gmail.com>
|
||||||
Python 3.12.1 64-bit final
|
Python 3.12.1 64-bit final
|
||||||
Windows-10-10.0.17134 AMD64
|
Windows-10-10.0.17134 AMD64
|
||||||
|
|||||||
@@ -158,3 +158,20 @@ gam print mobile
|
|||||||
[(query <QueryMobile>)|(queries <QueryMobileList>) (querytime<String> <Time>)*]
|
[(query <QueryMobile>)|(queries <QueryMobileList>) (querytime<String> <Time>)*]
|
||||||
showitemcountonly
|
showitemcountonly
|
||||||
```
|
```
|
||||||
|
Example
|
||||||
|
```
|
||||||
|
$ gam print mobile showitemcountonly
|
||||||
|
Getting all Mobile Devices, may take some time on a large Google Workspace Account...
|
||||||
|
Got 100 Mobile Devices...
|
||||||
|
Got 115 Mobile Devices
|
||||||
|
115
|
||||||
|
```
|
||||||
|
The `Getting` and `Got` messages are written to stderr, the count is writtem to stdout.
|
||||||
|
|
||||||
|
To retrieve the count with `showitemcountonly`:
|
||||||
|
```
|
||||||
|
Linux/MacOS
|
||||||
|
count=$(gam print mobile showitemcountonly)
|
||||||
|
Windows PowerShell
|
||||||
|
count = & gam print mobile showitemcountonly
|
||||||
|
```
|
||||||
|
|||||||
@@ -245,6 +245,22 @@ gam print orgs|ous
|
|||||||
[fromparent <OrgUnitItem>] [showparent [Boolean>]] [toplevelonly]
|
[fromparent <OrgUnitItem>] [showparent [Boolean>]] [toplevelonly]
|
||||||
showitemcountonly
|
showitemcountonly
|
||||||
```
|
```
|
||||||
|
Example
|
||||||
|
```
|
||||||
|
$ gam print orgs showitemcountonly
|
||||||
|
Getting all Organizational Units, may take some time on a large Google Workspace Account...
|
||||||
|
Got 98 Organizational Units
|
||||||
|
98
|
||||||
|
```
|
||||||
|
The `Getting` and `Got` messages are written to stderr, the count is writtem to stdout.
|
||||||
|
|
||||||
|
To retrieve the count with `showitemcountonly`:
|
||||||
|
```
|
||||||
|
Linux/MacOS
|
||||||
|
count=$(gam print orgs showitemcountonly)
|
||||||
|
Windows PowerShell
|
||||||
|
count = & gam print orgs showitemcountonly
|
||||||
|
```
|
||||||
|
|
||||||
## Display indented organizational unit tree
|
## Display indented organizational unit tree
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -253,6 +253,22 @@ gam print resources
|
|||||||
[query <String>]
|
[query <String>]
|
||||||
showitemcountonly
|
showitemcountonly
|
||||||
```
|
```
|
||||||
|
Example
|
||||||
|
```
|
||||||
|
$ gam print resources showitemcountonly
|
||||||
|
Getting all Resource Calendars, may take some time on a large Google Workspace Account...
|
||||||
|
Got 32 Resource Calendars: Back 50 - Video Cameras Class Set
|
||||||
|
32
|
||||||
|
```
|
||||||
|
The `Getting` and `Got` messages are written to stderr, the count is writtem to stdout.
|
||||||
|
|
||||||
|
To retrieve the count with `showitemcountonly`:
|
||||||
|
```
|
||||||
|
Linux/MacOS
|
||||||
|
count=$(gam print resources showitemcountonly)
|
||||||
|
Windows PowerShell
|
||||||
|
count = & gam print resources showitemcountonly
|
||||||
|
```
|
||||||
|
|
||||||
## Manage resource calendar ACLs
|
## Manage resource calendar ACLs
|
||||||
These commands operate on a single resource calendar.
|
These commands operate on a single resource calendar.
|
||||||
|
|||||||
@@ -1218,3 +1218,19 @@ gam print users
|
|||||||
[issuspended <Boolean>]
|
[issuspended <Boolean>]
|
||||||
showitemcountonly
|
showitemcountonly
|
||||||
```
|
```
|
||||||
|
Example
|
||||||
|
```
|
||||||
|
$ gam print users query "orgUnitPath='/Students/Middle School'" showitemcountonly
|
||||||
|
Getting all Users that match query (query="orgUnitPath='/Students/Middle School'"), may take some time on a large Google Workspace Account...
|
||||||
|
Got 221 Users: aaron-first@domain.com - zoe-last@domain.com
|
||||||
|
221
|
||||||
|
```
|
||||||
|
The `Getting` and `Got` messages are written to stderr, the count is writtem to stdout.
|
||||||
|
|
||||||
|
To retrieve the count with `showitemcountonly`:
|
||||||
|
```
|
||||||
|
Linux/MacOS
|
||||||
|
count=$(gam print users query "orgUnitPath='/Students/Middle School'" showitemcountonly)
|
||||||
|
Windows PowerShell
|
||||||
|
count = & gam print users query "orgUnitPath='/Students/Middle School'" showitemcountonly
|
||||||
|
```
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
Print the current version of Gam with details
|
Print the current version of Gam with details
|
||||||
```
|
```
|
||||||
gam version
|
gam version
|
||||||
GAMADV-XTD3 6.67.17 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
|
GAMADV-XTD3 6.67.18 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
|
||||||
Ross Scroggs <ross.scroggs@gmail.com>
|
Ross Scroggs <ross.scroggs@gmail.com>
|
||||||
Python 3.12.1 64-bit final
|
Python 3.12.1 64-bit final
|
||||||
MacOS Sonoma 14.2.1 x86_64
|
MacOS Sonoma 14.2.1 x86_64
|
||||||
@@ -16,7 +16,7 @@ Time: 2023-06-02T21:10:00-07:00
|
|||||||
Print the current version of Gam with details and time offset information
|
Print the current version of Gam with details and time offset information
|
||||||
```
|
```
|
||||||
gam version timeoffset
|
gam version timeoffset
|
||||||
GAMADV-XTD3 6.67.17 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
|
GAMADV-XTD3 6.67.18 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
|
||||||
Ross Scroggs <ross.scroggs@gmail.com>
|
Ross Scroggs <ross.scroggs@gmail.com>
|
||||||
Python 3.12.1 64-bit final
|
Python 3.12.1 64-bit final
|
||||||
MacOS Sonoma 14.2.1 x86_64
|
MacOS Sonoma 14.2.1 x86_64
|
||||||
@@ -28,7 +28,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
|
Print the current version of Gam with extended details and SSL information
|
||||||
```
|
```
|
||||||
gam version extended
|
gam version extended
|
||||||
GAMADV-XTD3 6.67.17 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
|
GAMADV-XTD3 6.67.18 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource
|
||||||
Ross Scroggs <ross.scroggs@gmail.com>
|
Ross Scroggs <ross.scroggs@gmail.com>
|
||||||
Python 3.12.1 64-bit final
|
Python 3.12.1 64-bit final
|
||||||
MacOS Sonoma 14.2.1 x86_64
|
MacOS Sonoma 14.2.1 x86_64
|
||||||
@@ -65,7 +65,7 @@ MacOS High Sierra 10.13.6 x86_64
|
|||||||
Path: /Users/Admin/bin/gamadv-xtd3
|
Path: /Users/Admin/bin/gamadv-xtd3
|
||||||
Version Check:
|
Version Check:
|
||||||
Current: 5.35.08
|
Current: 5.35.08
|
||||||
Latest: 6.67.17
|
Latest: 6.67.18
|
||||||
echo $?
|
echo $?
|
||||||
1
|
1
|
||||||
```
|
```
|
||||||
@@ -73,7 +73,7 @@ echo $?
|
|||||||
Print the current version number without details
|
Print the current version number without details
|
||||||
```
|
```
|
||||||
gam version simple
|
gam version simple
|
||||||
6.67.17
|
6.67.18
|
||||||
```
|
```
|
||||||
In Linux/MacOS you can do:
|
In Linux/MacOS you can do:
|
||||||
```
|
```
|
||||||
@@ -83,7 +83,7 @@ echo $VER
|
|||||||
Print the current version of Gam and address of this Wiki
|
Print the current version of Gam and address of this Wiki
|
||||||
```
|
```
|
||||||
gam help
|
gam help
|
||||||
GAM 6.67.17 - https://github.com/taers232c/GAMADV-XTD3
|
GAM 6.67.18 - https://github.com/taers232c/GAMADV-XTD3
|
||||||
Ross Scroggs <ross.scroggs@gmail.com>
|
Ross Scroggs <ross.scroggs@gmail.com>
|
||||||
Python 3.12.1 64-bit final
|
Python 3.12.1 64-bit final
|
||||||
MacOS Sonoma 14.2.1 x86_64
|
MacOS Sonoma 14.2.1 x86_64
|
||||||
|
|||||||
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
Merged GAM-Team version
|
Merged GAM-Team version
|
||||||
|
|
||||||
|
6.67.18
|
||||||
|
|
||||||
|
Cleaned up `Getting/Got` messages for `gam print courses|course-participants`.
|
||||||
|
|
||||||
6.67.17
|
6.67.17
|
||||||
|
|
||||||
Added option `showitemcountonly` to various commands that causes GAM to display the
|
Added option `showitemcountonly` to various commands that causes GAM to display the
|
||||||
@@ -12,7 +16,7 @@ item count on stdout; no CSV file is written.
|
|||||||
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Classroom-Membership#display-course-membership-counts
|
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Classroom-Membership#display-course-membership-counts
|
||||||
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/ChromeOS-Devices#display-cros-device-counts
|
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/ChromeOS-Devices#display-cros-device-counts
|
||||||
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Cloud-Identity-Devices#display-device-counts
|
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Cloud-Identity-Devices#display-device-counts
|
||||||
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Cloud-Identity-Devices#display-device-counts
|
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Cloud-Identity-Devices#display-device-user-counts
|
||||||
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Groups#display-group-counts
|
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Groups#display-group-counts
|
||||||
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Mobile-Devices#display-mobile-device-counts
|
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Mobile-Devices#display-mobile-device-counts
|
||||||
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Organizational-Units#display-organizational-unit-counts
|
* See: https://github.com/taers232c/GAMADV-XTD3/wiki/Organizational-Units#display-organizational-unit-counts
|
||||||
|
|||||||
@@ -44891,15 +44891,12 @@ def _getCourseAliasesMembers(croom, courseId, courseShowProperties, teachersFiel
|
|||||||
aliases = []
|
aliases = []
|
||||||
teachers = []
|
teachers = []
|
||||||
students = []
|
students = []
|
||||||
if showGettings:
|
if not showGettings:
|
||||||
pageMessage = getPageMessageForWhom(forWhom=formatKeyValueList('',
|
|
||||||
[Ent.Singular(Ent.COURSE), courseId],
|
|
||||||
currentCount(i, count)))
|
|
||||||
else:
|
|
||||||
pageMessage = None
|
pageMessage = None
|
||||||
if courseShowProperties.get('aliases'):
|
if courseShowProperties.get('aliases'):
|
||||||
if showGettings:
|
if showGettings:
|
||||||
Ent.SetGetting(Ent.ALIAS)
|
printGettingEntityItemForWhom(Ent.ALIAS, formatKeyValueList('', [Ent.Singular(Ent.COURSE), courseId], currentCount(i, count)))
|
||||||
|
pageMessage = getPageMessage()
|
||||||
try:
|
try:
|
||||||
aliases = callGAPIpages(croom.courses().aliases(), 'list', 'aliases',
|
aliases = callGAPIpages(croom.courses().aliases(), 'list', 'aliases',
|
||||||
pageMessage=pageMessage,
|
pageMessage=pageMessage,
|
||||||
@@ -44913,7 +44910,8 @@ def _getCourseAliasesMembers(croom, courseId, courseShowProperties, teachersFiel
|
|||||||
if courseShowProperties['members'] != 'none':
|
if courseShowProperties['members'] != 'none':
|
||||||
if courseShowProperties['members'] != 'students':
|
if courseShowProperties['members'] != 'students':
|
||||||
if showGettings:
|
if showGettings:
|
||||||
Ent.SetGetting(Ent.TEACHER)
|
printGettingEntityItemForWhom(Ent.TEACHER, formatKeyValueList('', [Ent.Singular(Ent.COURSE), courseId], currentCount(i, count)))
|
||||||
|
pageMessage = getPageMessage()
|
||||||
try:
|
try:
|
||||||
teachers = callGAPIpages(croom.courses().teachers(), 'list', 'teachers',
|
teachers = callGAPIpages(croom.courses().teachers(), 'list', 'teachers',
|
||||||
pageMessage=pageMessage,
|
pageMessage=pageMessage,
|
||||||
@@ -44926,7 +44924,8 @@ def _getCourseAliasesMembers(croom, courseId, courseShowProperties, teachersFiel
|
|||||||
ClientAPIAccessDeniedExit()
|
ClientAPIAccessDeniedExit()
|
||||||
if courseShowProperties['members'] != 'teachers':
|
if courseShowProperties['members'] != 'teachers':
|
||||||
if showGettings:
|
if showGettings:
|
||||||
Ent.SetGetting(Ent.STUDENT)
|
printGettingEntityItemForWhom(Ent.STUDENT, formatKeyValueList('', [Ent.Singular(Ent.COURSE), courseId], currentCount(i, count)))
|
||||||
|
pageMessage = getPageMessage()
|
||||||
try:
|
try:
|
||||||
students = callGAPIpages(croom.courses().students(), 'list', 'students',
|
students = callGAPIpages(croom.courses().students(), 'list', 'students',
|
||||||
pageMessage=pageMessage,
|
pageMessage=pageMessage,
|
||||||
|
|||||||
Reference in New Issue
Block a user