gam7 7.10.8__py3-none-any.whl → 7.10.9__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.10.08'
28
+ __version__ = '7.10.09'
29
29
  __license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
30
30
 
31
31
  #pylint: disable=wrong-import-position
@@ -65800,7 +65800,7 @@ def _showSharedDrive(user, shareddrive, j, jcount, FJQC):
65800
65800
  printKeyValueList(['hidden', shareddrive['hidden']])
65801
65801
  if 'createdTime' in shareddrive:
65802
65802
  printKeyValueList(['createdTime', formatLocalTime(shareddrive['createdTime'])])
65803
- for setting in ['backgroundImageLink', 'colorRgb', 'themeId', 'orgUnit', 'orgUnitId']:
65803
+ for setting in ['backgroundImageLink', 'colorRgb', 'themeId', 'orgUnit', 'orgUnitId', 'webViewLink']:
65804
65804
  if setting in shareddrive:
65805
65805
  printKeyValueList([setting, shareddrive[setting]])
65806
65806
  if 'role' in shareddrive:
@@ -65875,6 +65875,7 @@ SHAREDDRIVE_ACL_ROLES_MAP = {
65875
65875
  # [matchname <REMatchPattern>] [orgunit|org|ou <OrgUnitPath>]
65876
65876
  # (role|roles <SharedDriveACLRoleList>)*
65877
65877
  # [fields <SharedDriveFieldNameList>] [noorgunits [<Boolean>]]
65878
+ # [showwebviewlink]
65878
65879
  # [guiroles [<Boolean>]] [formatjson [quotechar <Character>]]
65879
65880
  # [showitemcountonly]
65880
65881
  # gam <UserTypeEntity> show shareddrives
@@ -65882,6 +65883,7 @@ SHAREDDRIVE_ACL_ROLES_MAP = {
65882
65883
  # [matchname <REMatchPattrn>] [orgunit|org|ou <OrgUnitPath>]
65883
65884
  # (role|roles <SharedDriveACLRoleLIst>)*
65884
65885
  # [fields <SharedDriveFieldNameList>] [noorgunits [<Boolean>]]
65886
+ # [showwebviewlink]
65885
65887
  # [guiroles [<Boolean>]] [formatjson]
65886
65888
  # [showitemcountonly]
65887
65889
  def printShowSharedDrives(users, useDomainAdminAccess=False):
@@ -65890,6 +65892,8 @@ def printShowSharedDrives(users, useDomainAdminAccess=False):
65890
65892
  td_ouid = shareddrive.get('orgUnitId')
65891
65893
  if td_ouid:
65892
65894
  shareddrive['orgUnit'] = orgUnitIdToPathMap.get(f'id:{td_ouid}', UNKNOWN)
65895
+ if showWebViewLink:
65896
+ shareddrive['webViewLink'] = 'https://drive.google.com/drive/folders/'+shareddrive['id']
65893
65897
  if not showFields:
65894
65898
  return shareddrive
65895
65899
  sshareddrive = {}
@@ -65908,6 +65912,7 @@ def printShowSharedDrives(users, useDomainAdminAccess=False):
65908
65912
  showOrgUnitPaths = True
65909
65913
  orgUnitIdToPathMap = None
65910
65914
  guiRoles = showItemCountOnly = False
65915
+ showWebViewLink = False
65911
65916
  while Cmd.ArgumentsRemaining():
65912
65917
  myarg = getArgument()
65913
65918
  if csvPF and myarg == 'todrive':
@@ -65937,6 +65942,8 @@ def printShowSharedDrives(users, useDomainAdminAccess=False):
65937
65942
  showOrgUnitPaths = not getBoolean()
65938
65943
  elif myarg == 'guiroles':
65939
65944
  guiRoles = getBoolean()
65945
+ elif myarg == 'showwebviewlink':
65946
+ showWebViewLink = True
65940
65947
  elif myarg == 'showitemcountonly':
65941
65948
  showItemCountOnly = True
65942
65949
  showOrgUnitPaths = False
@@ -65961,6 +65968,14 @@ def printShowSharedDrives(users, useDomainAdminAccess=False):
65961
65968
  orgUnitIdToPathMap = getOrgUnitIdToPathMap(cd)
65962
65969
  if showFields:
65963
65970
  showFields.add('orgUnit')
65971
+ if showWebViewLink:
65972
+ if showFields:
65973
+ showFields.add('webViewLink')
65974
+ if csvPF:
65975
+ csvPF.AddTitle('webViewLink')
65976
+ if FJQC.formatJSON:
65977
+ csvPF.AddJSONTitles(['webViewLink'])
65978
+ csvPF.MoveJSONTitlesToEnd(['JSON'])
65964
65979
  i, count, users = getEntityArgument(users)
65965
65980
  for user in users:
65966
65981
  i += 1
@@ -66029,6 +66044,8 @@ def printShowSharedDrives(users, useDomainAdminAccess=False):
66029
66044
  row = {'User': user, 'id': shareddrive['id'], 'name': shareddrive['name']}
66030
66045
  if not useDomainAdminAccess:
66031
66046
  row['role'] = shareddrive['role'] if not guiRoles else SHAREDDRIVE_API_GUI_ROLES_MAP[shareddrive['role']]
66047
+ if showWebViewLink:
66048
+ row['webViewLink'] = shareddrive['webViewLink']
66032
66049
  row['JSON'] = json.dumps(cleanJSON(shareddrive, timeObjects=SHAREDDRIVE_TIME_OBJECTS), ensure_ascii=False, sort_keys=True)
66033
66050
  csvPF.WriteRow(row)
66034
66051
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gam7
3
- Version: 7.10.8
3
+ Version: 7.10.9
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=dylNcZjzYccpgDnK8eV0UehP3HfMc_XbIv8AW7NKuf8,3534966
1
+ gam/__init__.py,sha256=a5ax8oW9hLZp6ojUKdPmXBmRIKKA949pTP3H9OvJvoY,3535564
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.10.8.dist-info/METADATA,sha256=aj7mavAYxuN9vF7DjO56zXVMgQoY2BW2SkVq27MFCv8,2978
69
- gam7-7.10.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
70
- gam7-7.10.8.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
71
- gam7-7.10.8.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
72
- gam7-7.10.8.dist-info/RECORD,,
68
+ gam7-7.10.9.dist-info/METADATA,sha256=9YO3xc8QUSIb2qXdCLLFSbQDi0UcpQshJOXVhGhTfng,2978
69
+ gam7-7.10.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
70
+ gam7-7.10.9.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
71
+ gam7-7.10.9.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
72
+ gam7-7.10.9.dist-info/RECORD,,
File without changes