gam7 7.10.9__py3-none-any.whl → 7.10.10__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 +11 -6
- {gam7-7.10.9.dist-info → gam7-7.10.10.dist-info}/METADATA +1 -1
- {gam7-7.10.9.dist-info → gam7-7.10.10.dist-info}/RECORD +6 -6
- {gam7-7.10.9.dist-info → gam7-7.10.10.dist-info}/WHEEL +0 -0
- {gam7-7.10.9.dist-info → gam7-7.10.10.dist-info}/entry_points.txt +0 -0
- {gam7-7.10.9.dist-info → gam7-7.10.10.dist-info}/licenses/LICENSE +0 -0
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.
|
|
28
|
+
__version__ = '7.10.10'
|
|
29
29
|
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
|
|
30
30
|
|
|
31
31
|
#pylint: disable=wrong-import-position
|
|
@@ -65870,12 +65870,14 @@ SHAREDDRIVE_ACL_ROLES_MAP = {
|
|
|
65870
65870
|
'writer': 'writer',
|
|
65871
65871
|
}
|
|
65872
65872
|
|
|
65873
|
+
SHOWWEBVIEWLINK_CHOICES = {'text', 'hyperlink'}
|
|
65874
|
+
|
|
65873
65875
|
# gam <UserTypeEntity> print shareddrives [todrive <ToDriveAttribute>*]
|
|
65874
65876
|
# [asadmin [shareddriveadminquery|query <QuerySharedDrive>]]
|
|
65875
65877
|
# [matchname <REMatchPattern>] [orgunit|org|ou <OrgUnitPath>]
|
|
65876
65878
|
# (role|roles <SharedDriveACLRoleList>)*
|
|
65877
65879
|
# [fields <SharedDriveFieldNameList>] [noorgunits [<Boolean>]]
|
|
65878
|
-
# [showwebviewlink]
|
|
65880
|
+
# [showwebviewlink [text|hyperlink]]
|
|
65879
65881
|
# [guiroles [<Boolean>]] [formatjson [quotechar <Character>]]
|
|
65880
65882
|
# [showitemcountonly]
|
|
65881
65883
|
# gam <UserTypeEntity> show shareddrives
|
|
@@ -65883,7 +65885,7 @@ SHAREDDRIVE_ACL_ROLES_MAP = {
|
|
|
65883
65885
|
# [matchname <REMatchPattrn>] [orgunit|org|ou <OrgUnitPath>]
|
|
65884
65886
|
# (role|roles <SharedDriveACLRoleLIst>)*
|
|
65885
65887
|
# [fields <SharedDriveFieldNameList>] [noorgunits [<Boolean>]]
|
|
65886
|
-
# [showwebviewlink]
|
|
65888
|
+
# [showwebviewlink [text|hyperlink]]
|
|
65887
65889
|
# [guiroles [<Boolean>]] [formatjson]
|
|
65888
65890
|
# [showitemcountonly]
|
|
65889
65891
|
def printShowSharedDrives(users, useDomainAdminAccess=False):
|
|
@@ -65893,7 +65895,10 @@ def printShowSharedDrives(users, useDomainAdminAccess=False):
|
|
|
65893
65895
|
if td_ouid:
|
|
65894
65896
|
shareddrive['orgUnit'] = orgUnitIdToPathMap.get(f'id:{td_ouid}', UNKNOWN)
|
|
65895
65897
|
if showWebViewLink:
|
|
65896
|
-
|
|
65898
|
+
if showWebViewLink == 'text':
|
|
65899
|
+
shareddrive['webViewLink'] = 'https://drive.google.com/drive/folders/'+shareddrive['id']
|
|
65900
|
+
else:
|
|
65901
|
+
shareddrive['webViewLink'] = '=HYPERLINK("https://drive.google.com/drive/folders/'+shareddrive['id']+'", "'+shareddrive['name']+'")'
|
|
65897
65902
|
if not showFields:
|
|
65898
65903
|
return shareddrive
|
|
65899
65904
|
sshareddrive = {}
|
|
@@ -65912,7 +65917,7 @@ def printShowSharedDrives(users, useDomainAdminAccess=False):
|
|
|
65912
65917
|
showOrgUnitPaths = True
|
|
65913
65918
|
orgUnitIdToPathMap = None
|
|
65914
65919
|
guiRoles = showItemCountOnly = False
|
|
65915
|
-
showWebViewLink =
|
|
65920
|
+
showWebViewLink = ''
|
|
65916
65921
|
while Cmd.ArgumentsRemaining():
|
|
65917
65922
|
myarg = getArgument()
|
|
65918
65923
|
if csvPF and myarg == 'todrive':
|
|
@@ -65943,7 +65948,7 @@ def printShowSharedDrives(users, useDomainAdminAccess=False):
|
|
|
65943
65948
|
elif myarg == 'guiroles':
|
|
65944
65949
|
guiRoles = getBoolean()
|
|
65945
65950
|
elif myarg == 'showwebviewlink':
|
|
65946
|
-
showWebViewLink =
|
|
65951
|
+
showWebViewLink = getChoice(SHOWWEBVIEWLINK_CHOICES)
|
|
65947
65952
|
elif myarg == 'showitemcountonly':
|
|
65948
65953
|
showItemCountOnly = True
|
|
65949
65954
|
showOrgUnitPaths = False
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
gam/__init__.py,sha256=
|
|
1
|
+
gam/__init__.py,sha256=C5XqLpxD3To__hnP3UlucBFjppN3jz8SHVudZbR_7Xk,3535865
|
|
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.
|
|
69
|
-
gam7-7.10.
|
|
70
|
-
gam7-7.10.
|
|
71
|
-
gam7-7.10.
|
|
72
|
-
gam7-7.10.
|
|
68
|
+
gam7-7.10.10.dist-info/METADATA,sha256=D8BHGKv5ivgdoRH1-SiRtsqbdjK1Bqgb7ZFJ2-kTV08,2979
|
|
69
|
+
gam7-7.10.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
70
|
+
gam7-7.10.10.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
|
|
71
|
+
gam7-7.10.10.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
72
|
+
gam7-7.10.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|