gam7 7.5.11__py3-none-any.whl → 7.5.13__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 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.11'
28
+ __version__ = '7.05.13'
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
- Cmd.Backup()
28214
- break # field is actually a new policy name or orgunit
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.append(schemaNameAppId)
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
- notFoundBody[up] = password
42480
- if notFoundBody[up].lower() in {'blocklogin'}:
42480
+ if password.lower() == 'blocklogin':
42481
42481
  self.makeCleanPassword = False
42482
42482
  notFoundBody[up] = self.CreateRandomPassword()
42483
- self.notFoundPassword = notFoundBody[up]
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
- self.notFoundPassword = notFoundBody[up]
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()
gam/atom/mock_http.py CHANGED
@@ -108,7 +108,7 @@ class MockHttpClient(atom.http_interface.GenericHttpClient):
108
108
  for recording in self.recordings:
109
109
  if recording[0].operation == operation and recording[0].url == url:
110
110
  return recording[1]
111
- raise NoRecordingFound('No recodings found for %s %s' % (
111
+ raise NoRecordingFound('No recordings found for %s %s' % (
112
112
  operation, url))
113
113
  else:
114
114
  # There is a real HTTP client, so make the request, and record the
gam/gamlib/glmsgs.py CHANGED
@@ -118,7 +118,7 @@ Your workspace is configured to disable service account private key uploads.
118
118
 
119
119
  Please go to:
120
120
 
121
- https://github.com/taers232c/GAMADV-XTD3/wiki/Authorization#authorize-service-account-key-uploads
121
+ https://github.com/GAM-team/GAM/wiki/Authorization#authorize-service-account-key-uploads
122
122
 
123
123
  Follow the steps to allow a service account private key upload for the project ({0}) just created.
124
124
  Once those steps are completed, you can continue with your project authentication.
@@ -322,7 +322,7 @@ INVALID_NUMBER_OF_CHAT_SPACE_MEMBERS = '{0} type {1} number of members, {2}, mus
322
322
  INVALID_ORGUNIT = 'Invalid Organizational Unit'
323
323
  INVALID_PATH = 'Invalid Path'
324
324
  INVALID_PERMISSION_ATTRIBUTE_TYPE = 'permission attribute {0} not allowed with type {1}'
325
- INVALID_REGION = 'See: https://github.com/taers232c/GAMADV-XTD3/wiki/Context-Aware-Access-Levels#caa-region-codes'
325
+ INVALID_REGION = 'See: https://github.com/GAM-team/GAM/wiki/Context-Aware-Access-Levels#caa-region-codes'
326
326
  INVALID_QUERY = 'Invalid Query'
327
327
  INVALID_RE = 'Invalid RE'
328
328
  INVALID_REQUEST = 'Invalid Request'
gam/gamlib/glskus.py CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  # Products/SKUs
24
24
  _PRODUCTS = {
25
- '101001': 'Cloud Identity Free',
25
+ '101001': 'Cloud Identity',
26
26
  '101005': 'Cloud Identity Premium',
27
27
  '101031': 'Google Workspace for Education',
28
28
  '101033': 'Google Voice',
@@ -127,7 +127,7 @@ _SKUS = {
127
127
  'product': 'Google-Apps', 'aliases': ['gau', 'gsb', 'unlimited', 'gsuitebusiness'], 'displayName': 'G Suite Business'},
128
128
  '1010020020': {
129
129
  'product': 'Google-Apps', 'aliases': ['gae', 'gse', 'enterprise', 'gsuiteenterprise',
130
- 'wsentplus', 'workspaceenterpriseplus'], 'displayName': 'Google Workspace Enterprise Plus'},
130
+ 'wsentplus', 'workspaceenterpriseplus'], 'displayName': 'Google Workspace Enterprise Plus (formerly G Suite Enterprise)'},
131
131
  '1010020025': {
132
132
  'product': 'Google-Apps', 'aliases': ['wsbizplus', 'workspacebusinessplus'], 'displayName': 'Google Workspace Business Plus'},
133
133
  '1010020026': {
@@ -159,11 +159,11 @@ _SKUS = {
159
159
  '1010060001': {
160
160
  'product': '101006', 'aliases': ['gsuiteessentials', 'essentials',
161
161
  'd4e', 'driveenterprise', 'drive4enterprise',
162
- 'wsess', 'workspaceesentials'], 'displayName': 'Google Workspace Essentials'},
162
+ 'wsess', 'workspaceesentials'], 'displayName': 'Google Workspace Essentials (formerly G Suite Essentials)'},
163
163
  '1010060003': {
164
164
  'product': 'Google-Apps', 'aliases': ['wsentess', 'workspaceenterpriseessentials'], 'displayName': 'Google Workspace Enterprise Essentials'},
165
165
  '1010060005': {
166
- 'product': 'Google-Apps', 'aliases': ['wsessplus', 'workspaceessentialsplus'], 'displayName': 'Google Workspace Essentials Plus'},
166
+ 'product': 'Google-Apps', 'aliases': ['wsessplus', 'workspaceessentialsplus'], 'displayName': 'Google Workspace Enterprise Essentials Plus'},
167
167
  'Google-Drive-storage-20GB': {
168
168
  'product': 'Google-Drive-storage', 'aliases': ['drive20gb', '20gb', 'googledrivestorage20gb'], 'displayName': 'Google Drive Storage 20GB'},
169
169
  'Google-Drive-storage-50GB': {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gam7
3
- Version: 7.5.11
3
+ Version: 7.5.13
4
4
  Summary: CLI tool to manage Google Workspace
5
5
  Project-URL: Homepage, https://github.com/GAM-team/GAM
6
6
  Project-URL: Issues, https://github.com/GAM-team/GAM/issues
@@ -1,4 +1,4 @@
1
- gam/__init__.py,sha256=OrZbqA0gDEbcEnIk3y_TPjhwAb98sVcBVHAiyRLF_Ps,3481964
1
+ gam/__init__.py,sha256=WyiotxnCk3vx3blQExDd4BTa18nacFaLgyXKN1raggI,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
@@ -15,7 +15,7 @@ gam/atom/data.py,sha256=_is4rCh3qBudtBaZvCD2hwChckv7TmOGHNLh1Gcc25M,8120
15
15
  gam/atom/http.py,sha256=1kY9bqhg1dPn2nGZVSJ_sPNuhiIL8r9Fje27CZsAT3I,13863
16
16
  gam/atom/http_core.py,sha256=mXBTxlQfyiADpY5Fxxk5HHiHZtycq9XwTcpd3QWBcZo,22435
17
17
  gam/atom/http_interface.py,sha256=zxyVYtgaNrep0VabgeWf-QCOVBn8RoXAB_iLLiM4V8s,4975
18
- gam/atom/mock_http.py,sha256=x_Az5s1wXx07JQ8Ooosc7q147iE4ghDNNPZjD3VBAtg,4353
18
+ gam/atom/mock_http.py,sha256=r-fqbGgxNpcYsGVPdPW2bYst-VdaZW_7-36StZ-xrlc,4354
19
19
  gam/atom/mock_http_core.py,sha256=FmaB3pXPc_jnBJ7vd-kbXz0p6VE08RcnBDe0z0aRmc4,12473
20
20
  gam/atom/mock_service.py,sha256=KA96qug2Es5_csm0lOhfzov-EtArP1hU7ApMcMlP1YM,10525
21
21
  gam/atom/service.py,sha256=KPTcHgBaJN-7lvkPAogqCNUvii34uojrNfCexMHzEZE,30392
@@ -31,8 +31,8 @@ gam/gamlib/glgapi.py,sha256=TYPc91Ab-tNr-_nRArhPdRaB_6FbCZjBBNpEmRJuXrw,38295
31
31
  gam/gamlib/glgdata.py,sha256=weRppttWm6uRyqtBoGPKoHiNZ2h28nhfUV4J_mbCszY,2707
32
32
  gam/gamlib/glglobals.py,sha256=B0kCz4K6PO1-n3eZI_lvdRG99Ane1-dH4zS4J4aymlI,9566
33
33
  gam/gamlib/glindent.py,sha256=RfBa2LDfLIqPLL5vMfC689TCVmqn8xf-qulSzkiatrc,1228
34
- gam/gamlib/glmsgs.py,sha256=HSMxHRLbafIv7qByS1XJYbshu-B_xMrNzWXVakEmrME,33278
35
- gam/gamlib/glskus.py,sha256=43JykBXQsB54sm8GZMbSLaOBTXqIOfNYIoGPvwvJeUE,14872
34
+ gam/gamlib/glmsgs.py,sha256=fUEwnzJsyThJDgrqslhXFLp7Ah_5e3VuyGNWAJKRi5o,33260
35
+ gam/gamlib/glskus.py,sha256=ei4_avXHruNZBTS8asHtEJVnAY8fgjGXQSxiqxrYMnc,14938
36
36
  gam/gamlib/gluprop.py,sha256=IyPLCyvn7-NHTUenM71YPQPXRZXx6CB5q-GtJ-FYd1c,11461
37
37
  gam/gamlib/glverlibs.py,sha256=XXYhmjOVti78JTy7NNr4ShIwiOX7LrfrmFSlqSWixrE,1077
38
38
  gam/gamlib/yubikey.py,sha256=-UC-3oue9qarYK3LT7YL6Gmqs7TMK8oz9_AoxdaG2FA,7925
@@ -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.11.dist-info/METADATA,sha256=XzuFD5rY8lPikiu5vDH75M-DTjfkCVGTxSjKjoH5br0,2889
69
- gam7-7.5.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
70
- gam7-7.5.11.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
71
- gam7-7.5.11.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
72
- gam7-7.5.11.dist-info/RECORD,,
68
+ gam7-7.5.13.dist-info/METADATA,sha256=X96I_IZkH9sGK-qvM90K_6NjRvM56lwadcVgsK0GQzQ,2889
69
+ gam7-7.5.13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
70
+ gam7-7.5.13.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
71
+ gam7-7.5.13.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
72
+ gam7-7.5.13.dist-info/RECORD,,
File without changes