gam7 7.5.11__py3-none-any.whl → 7.5.12__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 +15 -15
- {gam7-7.5.11.dist-info → gam7-7.5.12.dist-info}/METADATA +1 -1
- {gam7-7.5.11.dist-info → gam7-7.5.12.dist-info}/RECORD +6 -6
- {gam7-7.5.11.dist-info → gam7-7.5.12.dist-info}/WHEEL +0 -0
- {gam7-7.5.11.dist-info → gam7-7.5.12.dist-info}/entry_points.txt +0 -0
- {gam7-7.5.11.dist-info → gam7-7.5.12.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.05.
|
|
28
|
+
__version__ = '7.05.12'
|
|
29
29
|
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
|
|
30
30
|
|
|
31
31
|
#pylint: disable=wrong-import-position
|
|
@@ -28202,6 +28202,7 @@ def doUpdateChromePolicy():
|
|
|
28202
28202
|
schemaName, schema = simplifyChromeSchema(_getChromePolicySchema(cp, Cmd.Previous(), '*'))
|
|
28203
28203
|
body['requests'].append({'policyValue': {'policySchema': schemaName, 'value': {}},
|
|
28204
28204
|
'updateMask': ''})
|
|
28205
|
+
schemaNameList.append(schemaName)
|
|
28205
28206
|
while Cmd.ArgumentsRemaining():
|
|
28206
28207
|
field = getArgumentEmptyAllowed()
|
|
28207
28208
|
# Allow an empty field/value pair which makes processing an input CSV file with schemas with different numbers of fields easy
|
|
@@ -28210,8 +28211,9 @@ def doUpdateChromePolicy():
|
|
|
28210
28211
|
Cmd.Advance()
|
|
28211
28212
|
continue
|
|
28212
28213
|
if field in {'ou', 'org', 'orgunit', 'group', 'printerid', 'appid'} or '.' in field:
|
|
28213
|
-
|
|
28214
|
-
|
|
28214
|
+
if field != 'appid' or not schemaName.startswith('chrome.devices.kiosk'):
|
|
28215
|
+
Cmd.Backup()
|
|
28216
|
+
break # field is actually a new policy name or orgunit
|
|
28215
28217
|
# JSON
|
|
28216
28218
|
if field == 'json':
|
|
28217
28219
|
jsonData = getJSON(['direct', 'name', 'orgUnitPath', 'parentOrgUnitPath', 'group'])
|
|
@@ -28222,7 +28224,7 @@ def doUpdateChromePolicy():
|
|
|
28222
28224
|
body['requests'][-1]['policyTargetKey']['additionalTargetKeys'] = {atk['name']: atk['value']}
|
|
28223
28225
|
if atk['name'] == 'app_id':
|
|
28224
28226
|
schemaNameAppId += f"({atk['value']})"
|
|
28225
|
-
schemaNameList
|
|
28227
|
+
schemaNameList[-1] = schemaNameAppId
|
|
28226
28228
|
for field in jsonData.get('fields', []):
|
|
28227
28229
|
casedField = field['name']
|
|
28228
28230
|
lowerField = casedField.lower()
|
|
@@ -28263,7 +28265,6 @@ def doUpdateChromePolicy():
|
|
|
28263
28265
|
body['requests'][-1]['policyValue']['value'][casedField] = value
|
|
28264
28266
|
body['requests'][-1]['updateMask'] += f'{casedField},'
|
|
28265
28267
|
break
|
|
28266
|
-
schemaNameList.append(schemaName)
|
|
28267
28268
|
# Handle TYPE_MESSAGE fields with durations, values, counts and timeOfDay as special cases
|
|
28268
28269
|
tmschema = CHROME_SCHEMA_TYPE_MESSAGE.get(schemaName, {}).get(field)
|
|
28269
28270
|
if tmschema:
|
|
@@ -42476,16 +42477,16 @@ class PasswordOptions():
|
|
|
42476
42477
|
up = 'password'
|
|
42477
42478
|
password = self.GetPassword()
|
|
42478
42479
|
if password:
|
|
42479
|
-
|
|
42480
|
-
if notFoundBody[up].lower() in {'blocklogin'}:
|
|
42480
|
+
if password.lower() == 'blocklogin':
|
|
42481
42481
|
self.makeCleanPassword = False
|
|
42482
42482
|
notFoundBody[up] = self.CreateRandomPassword()
|
|
42483
|
-
|
|
42484
|
-
elif notFoundBody[up].lower() in {'random', 'uniquerandom'}:
|
|
42483
|
+
elif password.lower() in {'random', 'uniquerandom'}:
|
|
42485
42484
|
self.SetCleanPasswordLen()
|
|
42486
42485
|
self.makeCleanPassword = True
|
|
42487
42486
|
notFoundBody[up] = self.CreateRandomPassword()
|
|
42488
|
-
|
|
42487
|
+
else:
|
|
42488
|
+
notFoundBody[up] = password
|
|
42489
|
+
self.notFoundPassword = notFoundBody[up]
|
|
42489
42490
|
elif myarg in {'lograndompassword', 'logpassword'}:
|
|
42490
42491
|
self.filename = getString(Cmd.OB_FILE_NAME)
|
|
42491
42492
|
else:
|
|
@@ -42528,6 +42529,8 @@ class PasswordOptions():
|
|
|
42528
42529
|
self.promptForUniquePassword = True
|
|
42529
42530
|
else:
|
|
42530
42531
|
self.promptForPassword = True
|
|
42532
|
+
else:
|
|
42533
|
+
self.password = password
|
|
42531
42534
|
elif up == 'hashFunction':
|
|
42532
42535
|
body[up] = self.HASH_FUNCTION_MAP[myarg]
|
|
42533
42536
|
self.clearPassword = self.hashPassword = False
|
|
@@ -43240,9 +43243,7 @@ def doCreateUser():
|
|
|
43240
43243
|
cd = buildGAPIObject(API.DIRECTORY)
|
|
43241
43244
|
body, notify, tagReplacements, addGroups, addAliases, PwdOpts, \
|
|
43242
43245
|
_, _, _, \
|
|
43243
|
-
parameters, resolveConflictAccount = getUserAttributes(cd,
|
|
43244
|
-
False,
|
|
43245
|
-
noUid=True)
|
|
43246
|
+
parameters, resolveConflictAccount = getUserAttributes(cd, False, noUid=True)
|
|
43246
43247
|
suffix = 0
|
|
43247
43248
|
originalEmail = body['primaryEmail']
|
|
43248
43249
|
atLoc = originalEmail.find('@')
|
|
@@ -43350,8 +43351,7 @@ def updateUsers(entityList):
|
|
|
43350
43351
|
updateRetryDelay = 5
|
|
43351
43352
|
body, notify, tagReplacements, addGroups, addAliases, PwdOpts, \
|
|
43352
43353
|
updatePrimaryEmail, notFoundBody, groupOrgUnitMap, \
|
|
43353
|
-
parameters, resolveConflictAccount = getUserAttributes(cd,
|
|
43354
|
-
True)
|
|
43354
|
+
parameters, resolveConflictAccount = getUserAttributes(cd, True)
|
|
43355
43355
|
vfe = 'primaryEmail' in body and body['primaryEmail'][:4].lower() == 'vfe@'
|
|
43356
43356
|
if body.get('orgUnitPath', '') and parameters['immutableOUs']:
|
|
43357
43357
|
ubody = body.copy()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
gam/__init__.py,sha256=
|
|
1
|
+
gam/__init__.py,sha256=_cRAiwvxNCX3XEMBfvhoqoGgDW_rQAtNEzzhu9GLe7Q,3481865
|
|
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.5.
|
|
69
|
-
gam7-7.5.
|
|
70
|
-
gam7-7.5.
|
|
71
|
-
gam7-7.5.
|
|
72
|
-
gam7-7.5.
|
|
68
|
+
gam7-7.5.12.dist-info/METADATA,sha256=DVAK1UDfxM6yp1YXBpFWiiNISvTSfdc4lm28UJDYxVA,2889
|
|
69
|
+
gam7-7.5.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
70
|
+
gam7-7.5.12.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
|
|
71
|
+
gam7-7.5.12.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
72
|
+
gam7-7.5.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|