Commit Graph

73 Commits

Author SHA1 Message Date
adb1e58937 GAM_ADMIN_EMAIL overrides oauth2.txt value (#1249)
pylint cleanup unused imports
2020-09-22 12:43:53 -04:00
a59c893652 Device updates (#1247)
* Device updates

Make info device consistent with action device: id keyword is optional
Add nodeviceusers to print devices
pylint cleanup

* Fix documentation

* Sdd orderby to print devices

* Device assetTag cleanup

* Fix typo, appease pylint

* Strip C from customer ID
2020-09-21 10:14:34 -04:00
597256d048 Ensure that customer_id, domain and an admin email address are present for DASA (#1242)
* Ensure that customer_id, domain and an admin email address are present for DASA

* Fix typos
2020-09-18 07:38:38 -04:00
7d84da1520 GAM 5.20 2020-09-16 16:54:33 -04:00
c2f53577ab Cloud Identity Devices API, 5.20 2020-09-16 15:33:55 -04:00
908edff878 Fix error; DASA suggestions (#1236)
* userKey and customer is an invalid combination; userkey and domain is allowed

* DASA suggestions

I would not use OAUTHFILE to distinguish between normal/DASA, it seems to me that this might lead to oauth2service.json getting deleted by accident.

By using enabledasa.txt you can flip between the two modes easily.

* Update __init__.py

Is this what yuou meant?
2020-09-11 11:33:06 -04:00
88c17af8ef Merge branch 'master' of https://github.com/jay0lee/GAM 2020-08-27 14:33:51 -04:00
549670e45f some APIs now using v2 discovery URLs 2020-08-27 14:31:47 -04:00
4fa0e58e80 Update var.py 2020-08-21 08:42:01 -04:00
c1063d1967 Initial CloudIdentity Groups work, more APIs to own files 2020-06-28 17:26:21 -04:00
73677544a3 GAM 5.11 2020-06-17 14:21:49 -04:00
7c46d8548e servicemanagement API to serviceusage API 2020-06-17 13:30:08 -04:00
7937fd00d4 Clean up group_inde (#1203) 2020-05-26 15:09:15 -04:00
90d628cc75 Remove deprecated CloudPrint commands 2020-05-15 18:35:48 -04:00
7959d35f3f Fix listing of G Suite Essentials SKU 2020-05-14 10:19:50 -04:00
b68b773b95 Handle G Suite Essentials unverified domain better 2020-05-14 09:38:21 -04:00
96095453d5 GAM 5.10 2020-05-13 13:01:37 -04:00
32c02c36c9 Allow disabling short URLs with noshorturls.txt file 2020-05-13 13:00:51 -04:00
d46dd46732 GAM 5.09 2020-05-12 14:23:29 -04:00
6238a4c127 GAM 5.08 2020-05-07 12:01:00 -04:00
0bd4eefeca Auto-format all files using yapf and pre-commit (#1173)
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.
2020-04-28 16:59:47 -04:00
402ff9e8d0 GAM 5.07 2020-04-24 14:00:13 -04:00
e1660aa909 Refactor into Python package format (#1165)
* 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
2020-04-23 14:06:30 -04:00