* Add info printer command
* ChromePolicy cleanup
Make update chromepolicy orgunit default to / like delete and print
Add `filter <String>` to print chromeschema
Make update_policy code to set additionalTargetKeys consistent with delete_policy
I left verb at print for chromepolicy/chromeschema
* When printing schemasa, use ":" instead of " - "
* Fix print policy indentation
* Chrome policy cleanup
orgunit must be specified
Use verb show, add verb print later
* Recognize all ou forms to exit from schema mode
* Don't assign multiple variables on same line
* Clean up printer commands/documentation
driverless has to take value so it can be changed from true to false
Drop separate deleteprinters command, merge into delete printers
* Printer delete update
Allow a list of printer IDs
Drop cros from crosfile and croscsvfile to avoid confusion; add cros back when calling getUsersToModify
* Map / to %2F in group email address for Group Settings API
* Make update deviceuserstate consistent with other deviceuser commands
gam update deviceuserstate [id] <DeviceUserID> ...
* 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
Google now allows GCP service accounts to be granted delegated admin status for a G Suite domain.
To use this, admins can grant the service account email address delegated admin rights in the admin console
and then set some environment variables for GAM to use:
OAUTHFILE=oauth2service.json
GA_DOMAIN=example.com # your primary domain name in Google
CUSTOMER_ID=1d80dfc # admin.google.com > Account > Account settings > Customer ID
Automatic fixes produced by yapf formatting using `--style=google`, as
well as common pre-commit checks such as trailing whitespace removal,
double quote fixer, and newlines at the end of a file.
* Refactor into a python module format
-Updates import statements to be absolute vs implicitly relative
-Uses import syntax that minimizes the need to update references in code
and/or reformat affected lines (e.g. `import gapi.directory` becomes `from gam.gapi import directory as
gapi_directory`)
-Adds a `__main__.py` such that the module can be executed on its own
using standard `python3 -m gam` syntax
-Replaces __main__ import hack with module import
-Updates the GAM path to be the module's parent dir
* Add gam.py to /src for backwards compatibility
A stub that calls gam.__main__.main() to be used by users who are not
with the syntax of calling a module implementation. It should also
provide immediate backwards-compatibility with existing scripts with
references to this file.
* Move build tools back to the main dir and out of the package
* Fix pylint errors
* Update build spec to use new package format
Incorporates @jay0lee's patch from
https://github.com/jay0lee/GAM/pull/1165#issuecomment-618430828