gam7 7.17.1__py3-none-any.whl → 7.17.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of gam7 might be problematic. Click here for more details.

gam/__init__.py CHANGED
@@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki
25
25
  """
26
26
 
27
27
  __author__ = 'GAM Team <google-apps-manager@googlegroups.com>'
28
- __version__ = '7.17.01'
28
+ __version__ = '7.17.02'
29
29
  __license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
30
30
 
31
31
  #pylint: disable=wrong-import-position
@@ -5688,19 +5688,22 @@ def getUserEmailFromID(uid, cd):
5688
5688
  try:
5689
5689
  result = callGAPI(cd.users(), 'get',
5690
5690
  throwReasons=GAPI.USER_GET_THROW_REASONS,
5691
+ retryReasons=GAPI.SERVICE_NOT_AVAILABLE_RETRY_REASONS,
5691
5692
  userKey=uid, fields='primaryEmail')
5692
5693
  return result.get('primaryEmail')
5693
5694
  except (GAPI.userNotFound, GAPI.domainNotFound, GAPI.domainCannotUseApis, GAPI.forbidden,
5694
- GAPI.badRequest, GAPI.backendError, GAPI.systemError):
5695
+ GAPI.badRequest, GAPI.backendError, GAPI.systemError, GAPI.serviceNotAvailable):
5695
5696
  return None
5696
5697
 
5697
5698
  def getGroupEmailFromID(uid, cd):
5698
5699
  try:
5699
5700
  result = callGAPI(cd.groups(), 'get',
5700
5701
  throwReasons=GAPI.GROUP_GET_THROW_REASONS,
5702
+ retryReasons=GAPI.SERVICE_NOT_AVAILABLE_RETRY_REASONS,
5701
5703
  groupKey=uid, fields='email')
5702
5704
  return result.get('email')
5703
- except (GAPI.groupNotFound, GAPI.domainNotFound, GAPI.domainCannotUseApis, GAPI.forbidden, GAPI.badRequest):
5705
+ except (GAPI.groupNotFound, GAPI.domainNotFound, GAPI.domainCannotUseApis, GAPI.forbidden,
5706
+ GAPI.badRequest, GAPI.serviceNotAvailable):
5704
5707
  return None
5705
5708
 
5706
5709
  def getServiceAccountEmailFromID(account_id, sal=None):
@@ -47129,7 +47132,11 @@ def printShowWebMasterSites(users):
47129
47132
  user, searchconsole = buildGAPIServiceObject(API.SEARCHCONSOLE, user, i, count)
47130
47133
  if not searchconsole:
47131
47134
  continue
47132
- sites = callGAPIitems(searchconsole.sites(), 'list', 'siteEntry')
47135
+ try:
47136
+ sites = callGAPIitems(searchconsole.sites(), 'list', 'siteEntry',
47137
+ throwReasons=[GAPI.PERMISSION_DENIED])
47138
+ except GAPI.permissionDenied as e:
47139
+ accessErrorExitNonDirectory(API.SEARCHCONSOLE, str(e))
47133
47140
  jcount = len(sites)
47134
47141
  if not csvPF:
47135
47142
  entityPerformActionNumItems([Ent.USER, user], jcount, Ent.WEB_MASTERSITE, i, count)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gam7
3
- Version: 7.17.1
3
+ Version: 7.17.2
4
4
  Summary: CLI tool to manage Google Workspace
5
5
  Project-URL: Homepage, https://github.com/GAM-team/GAM
6
6
  Project-URL: Issues, https://github.com/GAM-team/GAM/issues
@@ -1,4 +1,4 @@
1
- gam/__init__.py,sha256=iyTl-pcv9rgneWPM50y1WsDmuLd6UBFYcYNQVrKwQro,3569466
1
+ gam/__init__.py,sha256=w02rYK598O7U2qyWCx6AHGAVdYWfQc-ky-A6hbTzP7k,3569860
2
2
  gam/__main__.py,sha256=amz0-959ph6zkZKqjaar4n60yho-T37w6qWI36qx0CA,1049
3
3
  gam/cacerts.pem,sha256=82Ak7btW_2XvocLUvAwPmpx8Chi0oqtZUG1gseLK_t4,50235
4
4
  gam/cbcm-v1.1beta1.json,sha256=xO5XloCQQULmPbFBx5bckdqmbLFQ7sJ2TImhE1ysDIY,19439
@@ -65,8 +65,8 @@ gam/googleapiclient/discovery_cache/base.py,sha256=yCDPtxnbNN-p5_9fzBacC6P3wcUPl
65
65
  gam/googleapiclient/discovery_cache/file_cache.py,sha256=sim3Mg4HgRYo3vX75jvcKy_aV568EvIrtBfvfbw-044,4774
66
66
  gam/iso8601/__init__.py,sha256=Z2PsYbXgAH5a5xzUvgczCboPzqWpm65kRcIngCnhViU,1218
67
67
  gam/iso8601/iso8601.py,sha256=Li2FHZ4sBTWuthuQhyCvmvj0j6At8JbGzkSv2fc2RHU,4384
68
- gam7-7.17.1.dist-info/METADATA,sha256=G_WiPureV-B_yL5RqM55Iaz_chLX3Lrh5Q_QyQW9LH4,2940
69
- gam7-7.17.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
70
- gam7-7.17.1.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
71
- gam7-7.17.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
72
- gam7-7.17.1.dist-info/RECORD,,
68
+ gam7-7.17.2.dist-info/METADATA,sha256=b_c7VSX_oXFw33FJ15f6Yk3YqiMde8__w2Q0o05HPjQ,2940
69
+ gam7-7.17.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
70
+ gam7-7.17.2.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
71
+ gam7-7.17.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
72
+ gam7-7.17.2.dist-info/RECORD,,
File without changes