gam7 7.20.0__py3-none-any.whl → 7.20.1__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 +22 -5
- {gam7-7.20.0.dist-info → gam7-7.20.1.dist-info}/METADATA +1 -1
- {gam7-7.20.0.dist-info → gam7-7.20.1.dist-info}/RECORD +6 -6
- {gam7-7.20.0.dist-info → gam7-7.20.1.dist-info}/WHEEL +0 -0
- {gam7-7.20.0.dist-info → gam7-7.20.1.dist-info}/entry_points.txt +0 -0
- {gam7-7.20.0.dist-info → gam7-7.20.1.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.20.
|
|
28
|
+
__version__ = '7.20.01'
|
|
29
29
|
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
|
|
30
30
|
|
|
31
31
|
#pylint: disable=wrong-import-position
|
|
@@ -27004,31 +27004,33 @@ CHAT_SPACES_ADMIN_ORDERBY_CHOICE_MAP = {
|
|
|
27004
27004
|
|
|
27005
27005
|
# gam [<UserTypeEntity>] show chatspaces
|
|
27006
27006
|
# [types <ChatSpaceTypeList>]
|
|
27007
|
-
# [fields <ChatSpaceFieldNameList>]
|
|
27007
|
+
# [fields <ChatSpaceFieldNameList>] [showaccesssettings]
|
|
27008
27008
|
# [formatjson]
|
|
27009
27009
|
# gam [<UserTypeEntity>] print chatspaces [todrive <ToDriveAttribute>*]
|
|
27010
27010
|
# [types <ChatSpaceTypeList>]
|
|
27011
|
-
# [fields <ChatSpaceFieldNameList>]
|
|
27011
|
+
# [fields <ChatSpaceFieldNameList>] [showaccesssettings]
|
|
27012
27012
|
# [formatjson [quotechar <Character>]]
|
|
27013
27013
|
# gam <UserItem> show chatspaces asadmin
|
|
27014
27014
|
# [query <String>] [querytime<String> <Time>]
|
|
27015
27015
|
# [orderby <ChatSpaceAdminOrderByFieldName> [ascending|descending]]
|
|
27016
|
-
# [fields <ChatSpaceFieldNameList>]
|
|
27016
|
+
# [fields <ChatSpaceFieldNameList>] [showaccesssettings]
|
|
27017
27017
|
# [formatjson]
|
|
27018
27018
|
# gam <UserItem> print chatspaces asadmin [todrive <ToDriveAttribute>*]
|
|
27019
27019
|
# [query <String>] [querytime<String> <Time>]
|
|
27020
27020
|
# [orderby <ChatSpaceAdminOrderByFieldName> [ascending|descending]]
|
|
27021
|
-
# [fields <ChatSpaceFieldNameList>]
|
|
27021
|
+
# [fields <ChatSpaceFieldNameList>] [showaccesssettings]
|
|
27022
27022
|
# [formatjson [quotechar <Character>]]
|
|
27023
27023
|
def printShowChatSpaces(users):
|
|
27024
27024
|
csvPF = CSVPrintFile(['User', 'name'] if not isinstance(users, list) else ['name']) if Act.csvFormat() else None
|
|
27025
27025
|
FJQC = FormatJSONQuoteChar(csvPF)
|
|
27026
27026
|
OBY = OrderBy(CHAT_SPACES_ADMIN_ORDERBY_CHOICE_MAP)
|
|
27027
27027
|
useAdminAccess, api, kwargsCS = _getChatAdminAccess(API.CHAT_SPACES_ADMIN, API.CHAT_SPACES)
|
|
27028
|
+
kwargsSAS = {'useAdminAccess': useAdminAccess}
|
|
27028
27029
|
fieldsList = []
|
|
27029
27030
|
queries = []
|
|
27030
27031
|
queryTimes = {}
|
|
27031
27032
|
pfilter = ''
|
|
27033
|
+
showAccessSettings = False
|
|
27032
27034
|
if useAdminAccess:
|
|
27033
27035
|
function = 'search'
|
|
27034
27036
|
queries = ['customer = "customers/my_customer" AND spaceType = "SPACE"']
|
|
@@ -27044,8 +27046,12 @@ def printShowChatSpaces(users):
|
|
|
27044
27046
|
pass
|
|
27045
27047
|
elif useAdminAccess and _getChatSpaceSearchParms(myarg, queries, queryTimes, OBY):
|
|
27046
27048
|
pass
|
|
27049
|
+
elif myarg == 'showaccesssettings':
|
|
27050
|
+
showAccessSettings = True
|
|
27047
27051
|
else:
|
|
27048
27052
|
FJQC.GetFormatJSONQuoteChar(myarg, True)
|
|
27053
|
+
if showAccessSettings and fieldsList:
|
|
27054
|
+
fieldsList.extend(['name', 'spaceType'])
|
|
27049
27055
|
fields = getItemFieldsFromFieldsList('spaces', fieldsList)
|
|
27050
27056
|
i, count, users = getEntityArgument(users)
|
|
27051
27057
|
if useAdminAccess:
|
|
@@ -27070,6 +27076,17 @@ def printShowChatSpaces(users):
|
|
|
27070
27076
|
GAPI.PERMISSION_DENIED, GAPI.FAILED_PRECONDITION],
|
|
27071
27077
|
retryReasons=GAPI.SERVICE_NOT_AVAILABLE_RETRY_REASONS,
|
|
27072
27078
|
fields=fields, pageSize=CHAT_PAGE_SIZE, **kwargsCS)
|
|
27079
|
+
if showAccessSettings:
|
|
27080
|
+
for space in spaces:
|
|
27081
|
+
if space['spaceType'] == 'SPACE':
|
|
27082
|
+
try:
|
|
27083
|
+
result = callGAPI(chat.spaces(), 'get',
|
|
27084
|
+
throwReasons=[GAPI.NOT_FOUND, GAPI.INVALID_ARGUMENT, GAPI.INTERNAL_ERROR,
|
|
27085
|
+
GAPI.PERMISSION_DENIED, GAPI.FAILED_PRECONDITION],
|
|
27086
|
+
name=space['name'], fields='accessSettings', **kwargsSAS)
|
|
27087
|
+
space.update(result)
|
|
27088
|
+
except (GAPI.notFound, GAPI.invalidArgument, GAPI.internalError, GAPI.permissionDenied, GAPI.failedPrecondition):
|
|
27089
|
+
pass
|
|
27073
27090
|
except (GAPI.notFound, GAPI.invalidArgument, GAPI.internalError, GAPI.permissionDenied) as e:
|
|
27074
27091
|
exitIfChatNotConfigured(chat, kvList, str(e), i, count)
|
|
27075
27092
|
continue
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
gam/__init__.py,sha256=
|
|
1
|
+
gam/__init__.py,sha256=sa-yzi7R7kgKEULVunOY9AKzQbWAZfX9XH3tRPwGefg,3608416
|
|
2
2
|
gam/__main__.py,sha256=amz0-959ph6zkZKqjaar4n60yho-T37w6qWI36qx0CA,1049
|
|
3
3
|
gam/cacerts.pem,sha256=DUsVo2XlFYwfkhe3gnxa-Km4Z4noz74hSApXwTT-nQE,44344
|
|
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.20.
|
|
69
|
-
gam7-7.20.
|
|
70
|
-
gam7-7.20.
|
|
71
|
-
gam7-7.20.
|
|
72
|
-
gam7-7.20.
|
|
68
|
+
gam7-7.20.1.dist-info/METADATA,sha256=7C53COsDbo2DNmBB177TsMQBp3Y_fgnMnx88aqQXuHg,2940
|
|
69
|
+
gam7-7.20.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
70
|
+
gam7-7.20.1.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
|
|
71
|
+
gam7-7.20.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
72
|
+
gam7-7.20.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|