gam7 7.10.5__py3-none-any.whl → 7.10.6__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 +29 -5
- {gam7-7.10.5.dist-info → gam7-7.10.6.dist-info}/METADATA +1 -1
- {gam7-7.10.5.dist-info → gam7-7.10.6.dist-info}/RECORD +6 -6
- {gam7-7.10.5.dist-info → gam7-7.10.6.dist-info}/WHEEL +0 -0
- {gam7-7.10.5.dist-info → gam7-7.10.6.dist-info}/entry_points.txt +0 -0
- {gam7-7.10.5.dist-info → gam7-7.10.6.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.06'
|
|
29
29
|
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
|
|
30
30
|
|
|
31
31
|
#pylint: disable=wrong-import-position
|
|
@@ -29508,6 +29508,7 @@ def getCIDeviceEntity():
|
|
|
29508
29508
|
return ([], ci, customer, False)
|
|
29509
29509
|
|
|
29510
29510
|
DEVICE_USERNAME_PATTERN = re.compile(r'^(devices/.+)/(deviceUsers/.+)$')
|
|
29511
|
+
DEVICE_USERNAME_CLIENT_STATE_PATTERN = re.compile(r'^(devices/.+/deviceUsers/.+)/clientStates/(.+)$')
|
|
29511
29512
|
DEVICE_USERNAME_FORMAT_REQUIRED = 'devices/<String>/deviceUsers/<String>'
|
|
29512
29513
|
def getCIDeviceUserEntity():
|
|
29513
29514
|
ci = buildGAPICIDeviceServiceObject()
|
|
@@ -29956,6 +29957,7 @@ DEVICE_ORDERBY_CHOICE_MAP = {
|
|
|
29956
29957
|
# [orderby <DeviceOrderByFieldName> [ascending|descending]]
|
|
29957
29958
|
# [all|company|personal|nocompanydevices|nopersonaldevices]
|
|
29958
29959
|
# [nodeviceusers|oneuserperrow]
|
|
29960
|
+
# [clientstates]
|
|
29959
29961
|
# [formatjson [quotechar <Character>]]
|
|
29960
29962
|
# [showitemcountonly]
|
|
29961
29963
|
def doPrintCIDevices():
|
|
@@ -29971,6 +29973,7 @@ def doPrintCIDevices():
|
|
|
29971
29973
|
queries = [None]
|
|
29972
29974
|
view, entityType = DEVICE_VIEW_CHOICE_MAP['all']
|
|
29973
29975
|
getDeviceUsers = True
|
|
29976
|
+
getClientStates = False
|
|
29974
29977
|
oneUserPerRow = showItemCountOnly = False
|
|
29975
29978
|
while Cmd.ArgumentsRemaining():
|
|
29976
29979
|
myarg = getArgument()
|
|
@@ -29986,6 +29989,8 @@ def doPrintCIDevices():
|
|
|
29986
29989
|
view, entityType = DEVICE_VIEW_CHOICE_MAP[myarg]
|
|
29987
29990
|
elif myarg == 'nodeviceusers':
|
|
29988
29991
|
getDeviceUsers = False
|
|
29992
|
+
elif myarg == 'clientstates':
|
|
29993
|
+
getClientStates = True
|
|
29989
29994
|
elif myarg in {'oneuserperrow', 'oneitemperrow'}:
|
|
29990
29995
|
getDeviceUsers = oneUserPerRow = True
|
|
29991
29996
|
elif getFieldsList(myarg, DEVICE_FIELDS_CHOICE_MAP, fieldsList, initialField='name'):
|
|
@@ -30004,14 +30009,16 @@ def doPrintCIDevices():
|
|
|
30004
30009
|
if FJQC.formatJSON and oneUserPerRow:
|
|
30005
30010
|
csvPF.SetJSONTitles(['name', 'user.name', 'JSON'])
|
|
30006
30011
|
itemCount = 0
|
|
30012
|
+
throwReasons = [GAPI.INVALID, GAPI.INVALID_ARGUMENT, GAPI.PERMISSION_DENIED]
|
|
30013
|
+
retryReasons = GAPI.SERVICE_NOT_AVAILABLE_RETRY_REASONS
|
|
30007
30014
|
for query in queries:
|
|
30008
30015
|
printGettingAllAccountEntities(entityType, query)
|
|
30009
30016
|
pageMessage = getPageMessage()
|
|
30010
30017
|
try:
|
|
30011
30018
|
devices = callGAPIpages(ci.devices(), 'list', 'devices',
|
|
30012
30019
|
pageMessage=pageMessage,
|
|
30013
|
-
throwReasons=
|
|
30014
|
-
retryReasons=
|
|
30020
|
+
throwReasons=throwReasons,
|
|
30021
|
+
retryReasons=retryReasons,
|
|
30015
30022
|
customer=customer, filter=query,
|
|
30016
30023
|
orderBy=OBY.orderBy, view=view, fields=fields, pageSize=100)
|
|
30017
30024
|
if showItemCountOnly:
|
|
@@ -30030,10 +30037,27 @@ def doPrintCIDevices():
|
|
|
30030
30037
|
try:
|
|
30031
30038
|
deviceUsers = callGAPIpages(ci.devices().deviceUsers(), 'list', 'deviceUsers',
|
|
30032
30039
|
pageMessage=pageMessage,
|
|
30033
|
-
throwReasons=
|
|
30034
|
-
retryReasons=
|
|
30040
|
+
throwReasons=throwReasons,
|
|
30041
|
+
retryReasons=retryReasons,
|
|
30035
30042
|
customer=customer, filter=query, parent=parent,
|
|
30036
30043
|
orderBy=OBY.orderBy, fields=userFields, pageSize=20)
|
|
30044
|
+
if getClientStates:
|
|
30045
|
+
printGettingAllAccountEntities(Ent.DEVICE_USER_CLIENT_STATE, None)
|
|
30046
|
+
states = callGAPIpages(ci.devices().deviceUsers().clientStates(), 'list', 'clientStates',
|
|
30047
|
+
pageMessage=pageMessage,
|
|
30048
|
+
throwReasons=throwReasons,
|
|
30049
|
+
retryReasons=retryReasons,
|
|
30050
|
+
customer=customer, filter=query, parent='devices/-/deviceUsers/-')
|
|
30051
|
+
for state in states:
|
|
30052
|
+
mg = DEVICE_USERNAME_CLIENT_STATE_PATTERN.match(state['name'])
|
|
30053
|
+
if mg:
|
|
30054
|
+
du = mg.group(1)
|
|
30055
|
+
state_name = mg.group(2)
|
|
30056
|
+
for i in range(len(deviceUsers)):
|
|
30057
|
+
if deviceUsers[i]['name'] == du:
|
|
30058
|
+
deviceUsers[i].setdefault('clientstates', {})
|
|
30059
|
+
deviceUsers[i]['clientstates'][state_name] = state
|
|
30060
|
+
break
|
|
30037
30061
|
for deviceUser in deviceUsers:
|
|
30038
30062
|
mg = DEVICE_USERNAME_PATTERN.match(deviceUser['name'])
|
|
30039
30063
|
if mg:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
gam/__init__.py,sha256=
|
|
1
|
+
gam/__init__.py,sha256=yvibVAzILcATl-jk73JqR_QHSzQVd911lW-8937nM10,3533835
|
|
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.6.dist-info/METADATA,sha256=HOvXQLyeFroUAFznW21mso2g7EIQJBKU2n0hy-vBYfs,2978
|
|
69
|
+
gam7-7.10.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
70
|
+
gam7-7.10.6.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
|
|
71
|
+
gam7-7.10.6.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
72
|
+
gam7-7.10.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|