gam7 7.7.3__py3-none-any.whl → 7.7.5__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 +16 -8
- {gam7-7.7.3.dist-info → gam7-7.7.5.dist-info}/METADATA +1 -1
- {gam7-7.7.3.dist-info → gam7-7.7.5.dist-info}/RECORD +6 -6
- {gam7-7.7.3.dist-info → gam7-7.7.5.dist-info}/WHEEL +0 -0
- {gam7-7.7.3.dist-info → gam7-7.7.5.dist-info}/entry_points.txt +0 -0
- {gam7-7.7.3.dist-info → gam7-7.7.5.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.07.
|
|
28
|
+
__version__ = '7.07.05'
|
|
29
29
|
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
|
|
30
30
|
|
|
31
31
|
#pylint: disable=wrong-import-position
|
|
@@ -40745,6 +40745,8 @@ def _showVaultExport(matterNameId, export, cd, FJQC, k=0, kcount=0):
|
|
|
40745
40745
|
VAULT_SEARCH_METHODS_MAP = {
|
|
40746
40746
|
'account': 'ACCOUNT',
|
|
40747
40747
|
'accounts': 'ACCOUNT',
|
|
40748
|
+
'chatspace': 'ROOM',
|
|
40749
|
+
'chatspaces': 'ROOM',
|
|
40748
40750
|
'entireorg': 'ENTIRE_ORG',
|
|
40749
40751
|
'everyone': 'ENTIRE_ORG',
|
|
40750
40752
|
'org': 'ORG_UNIT',
|
|
@@ -40868,7 +40870,11 @@ def _buildVaultQuery(myarg, query, corpusArgumentMap):
|
|
|
40868
40870
|
elif searchMethod == 'SHARED_DRIVE':
|
|
40869
40871
|
query['sharedDriveInfo'] = {'sharedDriveIds': _getQueryList(Cmd.OB_SHAREDDRIVE_ID_LIST)}
|
|
40870
40872
|
elif searchMethod == 'ROOM':
|
|
40871
|
-
|
|
40873
|
+
roomIds = _getQueryList(Cmd.OB_CHAT_SPACE_LIST)
|
|
40874
|
+
for i, roomId in enumerate(roomIds):
|
|
40875
|
+
if roomId.startswith('spaces/') or roomId.startswith('space/'):
|
|
40876
|
+
_, roomIds[i] = roomId.split('/', 1)
|
|
40877
|
+
query['hangoutsChatInfo'] = {'roomId': roomIds}
|
|
40872
40878
|
elif searchMethod == 'SITES_URL':
|
|
40873
40879
|
query['sitesUrlInfo'] = {'urls': _getQueryList(Cmd.OB_URL_LIST)}
|
|
40874
40880
|
elif myarg == 'scope':
|
|
@@ -59522,7 +59528,8 @@ def copyDriveFile(users):
|
|
|
59522
59528
|
throwReasons=GAPI.DRIVE_USER_THROW_REASONS+[GAPI.FORBIDDEN, GAPI.INSUFFICIENT_PERMISSIONS, GAPI.INSUFFICIENT_PARENT_PERMISSIONS,
|
|
59523
59529
|
GAPI.INVALID, GAPI.BAD_REQUEST, GAPI.FILE_NOT_FOUND, GAPI.UNKNOWN_ERROR,
|
|
59524
59530
|
GAPI.STORAGE_QUOTA_EXCEEDED, GAPI.TEAMDRIVES_SHARING_RESTRICTION_NOT_ALLOWED,
|
|
59525
|
-
GAPI.TEAMDRIVE_FILE_LIMIT_EXCEEDED, GAPI.TEAMDRIVE_HIERARCHY_TOO_DEEP,
|
|
59531
|
+
GAPI.TEAMDRIVE_FILE_LIMIT_EXCEEDED, GAPI.TEAMDRIVE_HIERARCHY_TOO_DEEP,
|
|
59532
|
+
GAPI.SHORTCUT_TARGET_INVALID, GAPI.SHARE_OUT_WARNING],
|
|
59526
59533
|
body=body, fields='id', supportsAllDrives=True)
|
|
59527
59534
|
Act.Set(Act.CREATE_SHORTCUT)
|
|
59528
59535
|
entityModifierItemValueListActionPerformed(kvList, Act.MODIFIER_IN,
|
|
@@ -59533,7 +59540,8 @@ def copyDriveFile(users):
|
|
|
59533
59540
|
except (GAPI.forbidden, GAPI.insufficientFilePermissions, GAPI.insufficientParentPermissions,
|
|
59534
59541
|
GAPI.invalid, GAPI.badRequest, GAPI.fileNotFound, GAPI.unknownError,
|
|
59535
59542
|
GAPI.storageQuotaExceeded, GAPI.teamDrivesSharingRestrictionNotAllowed,
|
|
59536
|
-
GAPI.teamDriveFileLimitExceeded, GAPI.teamDriveHierarchyTooDeep,
|
|
59543
|
+
GAPI.teamDriveFileLimitExceeded, GAPI.teamDriveHierarchyTooDeep,
|
|
59544
|
+
GAPI.shortcutTargetInvalid, GAPI.shareOutWarning) as e:
|
|
59537
59545
|
entityActionFailedWarning(kvList+[Ent.DRIVE_FILE_SHORTCUT, childName], str(e), k, kcount)
|
|
59538
59546
|
_incrStatistic(statistics, STAT_FILE_FAILED)
|
|
59539
59547
|
|
|
@@ -59666,7 +59674,7 @@ def copyDriveFile(users):
|
|
|
59666
59674
|
result = callGAPI(drive.files(), 'copy',
|
|
59667
59675
|
bailOnInternalError=True,
|
|
59668
59676
|
throwReasons=GAPI.DRIVE_COPY_THROW_REASONS+[GAPI.INTERNAL_ERROR, GAPI.INSUFFICIENT_PARENT_PERMISSIONS,
|
|
59669
|
-
GAPI.TEAMDRIVES_SHORTCUT_FILE_NOT_SUPPORTED],
|
|
59677
|
+
GAPI.TEAMDRIVES_SHORTCUT_FILE_NOT_SUPPORTED, GAPI.SHARE_OUT_WARNING],
|
|
59670
59678
|
fileId=childId, body=child, fields='id,name', supportsAllDrives=True)
|
|
59671
59679
|
if not csvPF:
|
|
59672
59680
|
entityModifierItemValueListActionPerformed(kvList, Act.MODIFIER_TO,
|
|
@@ -59703,7 +59711,7 @@ def copyDriveFile(users):
|
|
|
59703
59711
|
GAPI.insufficientParentPermissions, GAPI.unknownError,
|
|
59704
59712
|
GAPI.invalid, GAPI.cannotCopyFile, GAPI.badRequest, GAPI.responsePreparationFailure, GAPI.fileNeverWritable, GAPI.fieldNotWritable,
|
|
59705
59713
|
GAPI.teamDrivesSharingRestrictionNotAllowed, GAPI.rateLimitExceeded, GAPI.userRateLimitExceeded,
|
|
59706
|
-
GAPI.internalError, GAPI.teamDrivesShortcutFileNotSupported) as e:
|
|
59714
|
+
GAPI.internalError, GAPI.teamDrivesShortcutFileNotSupported, GAPI.shareOutWarning) as e:
|
|
59707
59715
|
entityActionFailedWarning(kvList, str(e), k, kcount)
|
|
59708
59716
|
_incrStatistic(statistics, STAT_FILE_FAILED)
|
|
59709
59717
|
except (GAPI.storageQuotaExceeded, GAPI.teamDriveFileLimitExceeded, GAPI.teamDriveHierarchyTooDeep) as e:
|
|
@@ -60375,7 +60383,7 @@ def moveDriveFile(users):
|
|
|
60375
60383
|
GAPI.INVALID, GAPI.BAD_REQUEST, GAPI.FILE_NOT_FOUND, GAPI.UNKNOWN_ERROR,
|
|
60376
60384
|
GAPI.STORAGE_QUOTA_EXCEEDED, GAPI.TEAMDRIVES_SHARING_RESTRICTION_NOT_ALLOWED,
|
|
60377
60385
|
GAPI.TEAMDRIVE_FILE_LIMIT_EXCEEDED, GAPI.TEAMDRIVE_HIERARCHY_TOO_DEEP, GAPI.SHORTCUT_TARGET_INVALID,
|
|
60378
|
-
GAPI.TARGET_USER_ROLE_LIMITED_BY_LICENSE_RESTRICTION],
|
|
60386
|
+
GAPI.TARGET_USER_ROLE_LIMITED_BY_LICENSE_RESTRICTION, GAPI.SHARE_OUT_WARNING],
|
|
60379
60387
|
body=body, fields='id', supportsAllDrives=True)
|
|
60380
60388
|
Act.Set(Act.CREATE_SHORTCUT)
|
|
60381
60389
|
entityModifierItemValueListActionPerformed(kvList, Act.MODIFIER_IN,
|
|
@@ -60387,7 +60395,7 @@ def moveDriveFile(users):
|
|
|
60387
60395
|
GAPI.invalid, GAPI.badRequest, GAPI.fileNotFound, GAPI.unknownError,
|
|
60388
60396
|
GAPI.storageQuotaExceeded, GAPI.teamDrivesSharingRestrictionNotAllowed,
|
|
60389
60397
|
GAPI.teamDriveFileLimitExceeded, GAPI.teamDriveHierarchyTooDeep, GAPI.shortcutTargetInvalid,
|
|
60390
|
-
GAPI.targetUserRoleLimitedByLicenseRestriction) as e:
|
|
60398
|
+
GAPI.targetUserRoleLimitedByLicenseRestriction, GAPI.shareOutWarning) as e:
|
|
60391
60399
|
entityActionFailedWarning(kvList+[Ent.DRIVE_FILE_SHORTCUT, childName], str(e), k, kcount)
|
|
60392
60400
|
_incrStatistic(statistics, STAT_FILE_FAILED)
|
|
60393
60401
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
gam/__init__.py,sha256=
|
|
1
|
+
gam/__init__.py,sha256=g4Igp-HrQ97iJlBTNMDPYVPPAiGoAlKhWY08A1VILL4,3499561
|
|
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.7.
|
|
69
|
-
gam7-7.7.
|
|
70
|
-
gam7-7.7.
|
|
71
|
-
gam7-7.7.
|
|
72
|
-
gam7-7.7.
|
|
68
|
+
gam7-7.7.5.dist-info/METADATA,sha256=C2Xs6CLuI69B-ABkkWX_KFESSbXeL7kmspqft-O_4_c,2969
|
|
69
|
+
gam7-7.7.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
70
|
+
gam7-7.7.5.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
|
|
71
|
+
gam7-7.7.5.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
72
|
+
gam7-7.7.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|