gam7 7.6.4__py3-none-any.whl → 7.6.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 +11 -9
- {gam7-7.6.4.dist-info → gam7-7.6.6.dist-info}/METADATA +1 -1
- {gam7-7.6.4.dist-info → gam7-7.6.6.dist-info}/RECORD +6 -6
- {gam7-7.6.4.dist-info → gam7-7.6.6.dist-info}/WHEEL +0 -0
- {gam7-7.6.4.dist-info → gam7-7.6.6.dist-info}/entry_points.txt +0 -0
- {gam7-7.6.4.dist-info → gam7-7.6.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.06.
|
|
28
|
+
__version__ = '7.06.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
|
|
@@ -28090,10 +28090,12 @@ def updatePolicyRequests(body, targetResource, printer_id, app_id):
|
|
|
28090
28090
|
for request in body['requests']:
|
|
28091
28091
|
request.setdefault('policyTargetKey', {})
|
|
28092
28092
|
request['policyTargetKey']['targetResource'] = targetResource
|
|
28093
|
-
if app_id:
|
|
28094
|
-
request['policyTargetKey']
|
|
28095
|
-
|
|
28096
|
-
|
|
28093
|
+
if app_id or printer_id:
|
|
28094
|
+
request['policyTargetKey'].setdefault('additionalTargetKeys', {})
|
|
28095
|
+
if app_id:
|
|
28096
|
+
request['policyTargetKey']['additionalTargetKeys']['app_id'] = app_id
|
|
28097
|
+
elif printer_id:
|
|
28098
|
+
request['policyTargetKey']['additionalTargetKeys']['printer_id'] = printer_id
|
|
28097
28099
|
|
|
28098
28100
|
# gam delete chromepolicy
|
|
28099
28101
|
# (<SchemaName> [<JSONData>])+
|
|
@@ -28126,9 +28128,9 @@ def doDeleteChromePolicy():
|
|
|
28126
28128
|
if checkArgumentPresent('json'):
|
|
28127
28129
|
jsonData = getJSON(['direct', 'name', 'orgUnitPath', 'parentOrgUnitPath', 'group'])
|
|
28128
28130
|
if 'additionalTargetKeys' in jsonData:
|
|
28129
|
-
body['requests'][-1].setdefault('policyTargetKey', {})
|
|
28131
|
+
body['requests'][-1].setdefault('policyTargetKey', {'additionalTargetKeys': {}})
|
|
28130
28132
|
for atk in jsonData['additionalTargetKeys']:
|
|
28131
|
-
body['requests'][-1]['policyTargetKey']['additionalTargetKeys']
|
|
28133
|
+
body['requests'][-1]['policyTargetKey']['additionalTargetKeys'][atk['name']] = atk['value']
|
|
28132
28134
|
checkPolicyArgs(targetResource, printer_id, app_id)
|
|
28133
28135
|
count = len(body['requests'])
|
|
28134
28136
|
if count != 1:
|
|
@@ -28281,9 +28283,9 @@ def doUpdateChromePolicy():
|
|
|
28281
28283
|
jsonData = getJSON(['direct', 'name', 'orgUnitPath', 'parentOrgUnitPath', 'group'])
|
|
28282
28284
|
schemaNameAppId = schemaName
|
|
28283
28285
|
if 'additionalTargetKeys' in jsonData:
|
|
28284
|
-
body['requests'][-1].setdefault('policyTargetKey', {})
|
|
28286
|
+
body['requests'][-1].setdefault('policyTargetKey', {'additionalTargetKeys': {}})
|
|
28285
28287
|
for atk in jsonData['additionalTargetKeys']:
|
|
28286
|
-
body['requests'][-1]['policyTargetKey']['additionalTargetKeys']
|
|
28288
|
+
body['requests'][-1]['policyTargetKey']['additionalTargetKeys'][atk['name']] = atk['value']
|
|
28287
28289
|
if atk['name'] == 'app_id':
|
|
28288
28290
|
schemaNameAppId += f"({atk['value']})"
|
|
28289
28291
|
schemaNameList[-1] = schemaNameAppId
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
gam/__init__.py,sha256=
|
|
1
|
+
gam/__init__.py,sha256=MMhRlQPFaZ2ePX-ftnlJUIpWR-pgdwAEiLmnnwo1uyY,3492434
|
|
2
2
|
gam/__main__.py,sha256=amz0-959ph6zkZKqjaar4n60yho-T37w6qWI36qx0CA,1049
|
|
3
3
|
gam/cacerts.pem,sha256=nJuWha0xm5dHw_5ptGphwRoO-r36Ccpqiww9pCEDbSc,67484
|
|
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.6.
|
|
69
|
-
gam7-7.6.
|
|
70
|
-
gam7-7.6.
|
|
71
|
-
gam7-7.6.
|
|
72
|
-
gam7-7.6.
|
|
68
|
+
gam7-7.6.6.dist-info/METADATA,sha256=VqeCY4wl5y4XhXjvrwu3XFP21dZGuWBlCNKk7EWDYgQ,2888
|
|
69
|
+
gam7-7.6.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
70
|
+
gam7-7.6.6.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
|
|
71
|
+
gam7-7.6.6.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
72
|
+
gam7-7.6.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|