gam7 7.10.2__py3-none-any.whl → 7.10.4__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 +34 -27
- {gam7-7.10.2.dist-info → gam7-7.10.4.dist-info}/METADATA +1 -1
- {gam7-7.10.2.dist-info → gam7-7.10.4.dist-info}/RECORD +6 -6
- {gam7-7.10.2.dist-info → gam7-7.10.4.dist-info}/WHEEL +0 -0
- {gam7-7.10.2.dist-info → gam7-7.10.4.dist-info}/entry_points.txt +0 -0
- {gam7-7.10.2.dist-info → gam7-7.10.4.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.04'
|
|
29
29
|
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
|
|
30
30
|
|
|
31
31
|
#pylint: disable=wrong-import-position
|
|
@@ -13548,52 +13548,55 @@ def doReportUsage():
|
|
|
13548
13548
|
NL_SPACES_PATTERN = re.compile(r'\n +')
|
|
13549
13549
|
DISABLED_REASON_TIME_PATTERN = re.compile(r'.*(\d{4}/\d{2}/\d{2}-\d{2}:\d{2}:\d{2})')
|
|
13550
13550
|
|
|
13551
|
+
REPORT_ALIASES_CHOICE_MAP = {
|
|
13552
|
+
'access': 'accesstransparency',
|
|
13553
|
+
'calendars': 'calendar',
|
|
13554
|
+
'cloud': 'gcp',
|
|
13555
|
+
'currents': 'gplus',
|
|
13556
|
+
'customers': 'customer',
|
|
13557
|
+
'domain': 'customer',
|
|
13558
|
+
'devices': 'mobile',
|
|
13559
|
+
'doc': 'drive',
|
|
13560
|
+
'docs': 'drive',
|
|
13561
|
+
'enterprisegroups': 'groupsenterprise',
|
|
13562
|
+
'gemini': 'geminiinworkspaceapps',
|
|
13563
|
+
'geminiforworkspace': 'geminiinworkspaceapps',
|
|
13564
|
+
'group': 'groups',
|
|
13565
|
+
'google+': 'gplus',
|
|
13566
|
+
'hangoutsmeet': 'meet',
|
|
13567
|
+
'logins': 'login',
|
|
13568
|
+
'lookerstudio': 'datastudio',
|
|
13569
|
+
'oauthtoken': 'token',
|
|
13570
|
+
'tokens': 'token',
|
|
13571
|
+
'users': 'user',
|
|
13572
|
+
}
|
|
13573
|
+
|
|
13551
13574
|
REPORT_CHOICE_MAP = {
|
|
13552
|
-
'access': 'access_transparency',
|
|
13553
13575
|
'accesstransparency': 'access_transparency',
|
|
13554
13576
|
'admin': 'admin',
|
|
13555
13577
|
'calendar': 'calendar',
|
|
13556
|
-
'calendars': 'calendar',
|
|
13557
13578
|
'chat': 'chat',
|
|
13558
13579
|
'chrome': 'chrome',
|
|
13559
|
-
'classroom': 'classroom',
|
|
13560
|
-
'cloud': 'gcp',
|
|
13561
13580
|
'contextawareaccess': 'context_aware_access',
|
|
13562
|
-
'currents': 'gplus',
|
|
13563
13581
|
'customer': 'customer',
|
|
13564
|
-
'customers': 'customer',
|
|
13565
13582
|
'datastudio': 'data_studio',
|
|
13566
|
-
'devices': 'mobile',
|
|
13567
|
-
'doc': 'drive',
|
|
13568
|
-
'docs': 'drive',
|
|
13569
|
-
'domain': 'customer',
|
|
13570
13583
|
'drive': 'drive',
|
|
13571
|
-
'enterprisegroups': 'groups_enterprise',
|
|
13572
13584
|
'gcp': 'gcp',
|
|
13573
|
-
'
|
|
13574
|
-
'geminiforworkspace': 'gemini_for_workspace',
|
|
13585
|
+
'geminiinworkspaceapps': 'gemini_in_workspace_apps',
|
|
13575
13586
|
'gplus': 'gplus',
|
|
13576
|
-
'google+': 'gplus',
|
|
13577
|
-
'group': 'groups',
|
|
13578
13587
|
'groups': 'groups',
|
|
13579
13588
|
'groupsenterprise': 'groups_enterprise',
|
|
13580
|
-
'hangoutsmeet': 'meet',
|
|
13581
13589
|
'jamboard': 'jamboard',
|
|
13582
13590
|
'keep': 'keep',
|
|
13583
13591
|
'login': 'login',
|
|
13584
|
-
'logins': 'login',
|
|
13585
|
-
'lookerstudio': 'data_studio',
|
|
13586
13592
|
'meet': 'meet',
|
|
13587
13593
|
'mobile': 'mobile',
|
|
13588
|
-
'oauthtoken': 'token',
|
|
13589
13594
|
'rules': 'rules',
|
|
13590
13595
|
'saml': 'saml',
|
|
13591
13596
|
'token': 'token',
|
|
13592
|
-
'tokens': 'token',
|
|
13593
13597
|
'usage': 'usage',
|
|
13594
13598
|
'usageparameters': 'usageparameters',
|
|
13595
13599
|
'user': 'user',
|
|
13596
|
-
'users': 'user',
|
|
13597
13600
|
'useraccounts': 'user_accounts',
|
|
13598
13601
|
'vault': 'vault',
|
|
13599
13602
|
}
|
|
@@ -13883,7 +13886,7 @@ def doReport():
|
|
|
13883
13886
|
if dyn_choice.replace('_', '') not in REPORT_CHOICE_MAP and \
|
|
13884
13887
|
dyn_choice not in REPORT_CHOICE_MAP.values():
|
|
13885
13888
|
REPORT_CHOICE_MAP[dyn_choice.replace('_', '')] = dyn_choice
|
|
13886
|
-
report = getChoice(REPORT_CHOICE_MAP, mapChoice=True)
|
|
13889
|
+
report = getChoice(REPORT_CHOICE_MAP, choiceAliases=REPORT_ALIASES_CHOICE_MAP, mapChoice=True)
|
|
13887
13890
|
if report == 'usage':
|
|
13888
13891
|
doReportUsage()
|
|
13889
13892
|
return
|
|
@@ -70267,7 +70270,8 @@ def archiveMessages(users):
|
|
|
70267
70270
|
listResult = callGAPIpages(service, 'list', parameters['listType'],
|
|
70268
70271
|
pageMessage=getPageMessageForWhom(), maxItems=parameters['maxItems'],
|
|
70269
70272
|
throwReasons=GAPI.GMAIL_THROW_REASONS+GAPI.GMAIL_LIST_THROW_REASONS,
|
|
70270
|
-
userId='me', q=parameters['query'],
|
|
70273
|
+
userId='me', q=parameters['query'], labelIds=parameters['labelIds'],
|
|
70274
|
+
fields=parameters['fields'],
|
|
70271
70275
|
maxResults=GC.Values[GC.MESSAGE_MAX_RESULTS])
|
|
70272
70276
|
messageIds = [message['id'] for message in listResult]
|
|
70273
70277
|
except (GAPI.failedPrecondition, GAPI.permissionDenied, GAPI.invalid, GAPI.invalidArgument) as e:
|
|
@@ -70456,7 +70460,8 @@ def _processMessagesThreads(users, entityType):
|
|
|
70456
70460
|
listResult = callGAPIpages(service, 'list', parameters['listType'],
|
|
70457
70461
|
pageMessage=getPageMessageForWhom(), maxItems=parameters['maxItems'],
|
|
70458
70462
|
throwReasons=GAPI.GMAIL_THROW_REASONS+GAPI.GMAIL_LIST_THROW_REASONS,
|
|
70459
|
-
userId='me', q=parameters['query'],
|
|
70463
|
+
userId='me', q=parameters['query'], labelIds=parameters['labelIds'],
|
|
70464
|
+
fields=parameters['fields'], includeSpamTrash=includeSpamTrash,
|
|
70460
70465
|
maxResults=GC.Values[GC.MESSAGE_MAX_RESULTS])
|
|
70461
70466
|
messageIds = [message['id'] for message in listResult]
|
|
70462
70467
|
else:
|
|
@@ -70572,7 +70577,8 @@ def exportMessagesThreads(users, entityType):
|
|
|
70572
70577
|
listResult = callGAPIpages(service, 'list', parameters['listType'],
|
|
70573
70578
|
pageMessage=getPageMessageForWhom(), maxItems=parameters['maxItems'],
|
|
70574
70579
|
throwReasons=GAPI.GMAIL_THROW_REASONS+GAPI.GMAIL_LIST_THROW_REASONS,
|
|
70575
|
-
userId='me', q=parameters['query'],
|
|
70580
|
+
userId='me', q=parameters['query'], labelIds=parameters['labelIds'],
|
|
70581
|
+
fields=parameters['fields'], includeSpamTrash=includeSpamTrash,
|
|
70576
70582
|
maxResults=GC.Values[GC.MESSAGE_MAX_RESULTS])
|
|
70577
70583
|
entityIds = [entity['id'] for entity in listResult]
|
|
70578
70584
|
except (GAPI.failedPrecondition, GAPI.permissionDenied, GAPI.invalid, GAPI.invalidArgument) as e:
|
|
@@ -70707,7 +70713,8 @@ def forwardMessagesThreads(users, entityType):
|
|
|
70707
70713
|
listResult = callGAPIpages(service, 'list', parameters['listType'],
|
|
70708
70714
|
pageMessage=getPageMessageForWhom(), maxItems=parameters['maxItems'],
|
|
70709
70715
|
throwReasons=GAPI.GMAIL_THROW_REASONS+GAPI.GMAIL_LIST_THROW_REASONS,
|
|
70710
|
-
userId='me', q=parameters['query'],
|
|
70716
|
+
userId='me', q=parameters['query'], labelIds=parameters['labelIds'],
|
|
70717
|
+
fields=parameters['fields'], includeSpamTrash=includeSpamTrash,
|
|
70711
70718
|
maxResults=GC.Values[GC.MESSAGE_MAX_RESULTS])
|
|
70712
70719
|
entityIds = [entity['id'] for entity in listResult]
|
|
70713
70720
|
except (GAPI.failedPrecondition, GAPI.permissionDenied, GAPI.invalid, GAPI.invalidArgument) as e:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
gam/__init__.py,sha256=
|
|
1
|
+
gam/__init__.py,sha256=eIHhyg9VDrX8BohVyQinhFfvP_089WBvCkSEXYFxpvw,3532402
|
|
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.4.dist-info/METADATA,sha256=lgEqMVhCPH4Owx4FkSQFCnAlOjMb7CiKBivLhIFLYU0,2978
|
|
69
|
+
gam7-7.10.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
70
|
+
gam7-7.10.4.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
|
|
71
|
+
gam7-7.10.4.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
72
|
+
gam7-7.10.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|