prelude-sdk-beta 1403__py3-none-any.whl → 1404__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 prelude-sdk-beta might be problematic. Click here for more details.

@@ -293,13 +293,13 @@ class ScmController(HttpController):
293
293
  setting_names=None,
294
294
  ):
295
295
  """Update policy exceptions"""
296
- body = dict(control=partner.name, instance_id=instance_id)
296
+ body = dict(control=partner.name, instance_id=instance_id, policy_id=policy_id)
297
297
  if expires != self.default:
298
298
  body["expires"] = expires
299
299
  if setting_names:
300
300
  body["setting_names"] = setting_names
301
- res = self.post(
302
- f"{self.account.hq}/scm/exceptions/policies/{policy_id}",
301
+ res = self.put(
302
+ f"{self.account.hq}/scm/exceptions/policies",
303
303
  json=body,
304
304
  headers=self.account.headers,
305
305
  timeout=10,
@@ -309,9 +309,9 @@ class ScmController(HttpController):
309
309
  @verify_credentials
310
310
  def delete_policy_exception(self, instance_id: str, policy_id: str):
311
311
  """Delete policy exceptions"""
312
- body = dict(instance_id=instance_id)
312
+ body = dict(instance_id=instance_id, policy_id=policy_id)
313
313
  res = self.delete(
314
- f"{self.account.hq}/scm/exceptions/policies/{policy_id}",
314
+ f"{self.account.hq}/scm/exceptions/policies",
315
315
  json=body,
316
316
  headers=self.account.headers,
317
317
  timeout=10,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prelude-sdk-beta
3
- Version: 1403
3
+ Version: 1404
4
4
  Summary: For interacting with the Prelude API
5
5
  Home-page: https://github.com/preludeorg
6
6
  Author: Prelude Research
@@ -9,12 +9,12 @@ prelude_sdk_beta/controllers/iam_controller.py,sha256=sbkq1xzAGefmUnRrAQ811fRBiN
9
9
  prelude_sdk_beta/controllers/jobs_controller.py,sha256=cYsqXViDycVgUAjN0GuJrNUMaTFC-dUTJSpIYHcfUgs,1165
10
10
  prelude_sdk_beta/controllers/partner_controller.py,sha256=WV51CY-Bsf8Ms59y7RjtfvCmsArBoXt5-AHqrN8Eras,5128
11
11
  prelude_sdk_beta/controllers/probe_controller.py,sha256=d2Aa74Css1uMNgBKGWqavbkEbXtVcOkYIIWbhDxzLS0,411
12
- prelude_sdk_beta/controllers/scm_controller.py,sha256=NyqYR9E0VTe0z7MbxVLZ-rKL2iFPU4F0Ah_Kl-3w9Js,17385
12
+ prelude_sdk_beta/controllers/scm_controller.py,sha256=6CNi4yp77wjlfyQH9A_rmp80mjnzuYCWUd-SlFLHZW8,17402
13
13
  prelude_sdk_beta/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  prelude_sdk_beta/models/account.py,sha256=dRKhX6_mrqDTyqyfIsvHFVavcedgZ5hZAIDYVF7YlZI,8962
15
15
  prelude_sdk_beta/models/codes.py,sha256=oDdHSR1Y0DfOxCUVdEbntkKGPEhazCactuZe-xT7e8s,13978
16
- prelude_sdk_beta-1403.dist-info/licenses/LICENSE,sha256=ttdT5omfN6LNmtQoIjUhkkFhz6i44SDMRNwKrbfyTf8,1069
17
- prelude_sdk_beta-1403.dist-info/METADATA,sha256=2DXmqvvCZwlQzleoCLFp2HUoMp0ur9uBcGw6WyJ_7Lg,1190
18
- prelude_sdk_beta-1403.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
19
- prelude_sdk_beta-1403.dist-info/top_level.txt,sha256=pqXTtEd5ElvJKoO6HAz232H9FW5j6X7gW4kEEakfSFM,17
20
- prelude_sdk_beta-1403.dist-info/RECORD,,
16
+ prelude_sdk_beta-1404.dist-info/licenses/LICENSE,sha256=ttdT5omfN6LNmtQoIjUhkkFhz6i44SDMRNwKrbfyTf8,1069
17
+ prelude_sdk_beta-1404.dist-info/METADATA,sha256=bBrxURVqkxtC6bUKCgl96Kp70j2fBZjzNgD5YuYnx00,1190
18
+ prelude_sdk_beta-1404.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
19
+ prelude_sdk_beta-1404.dist-info/top_level.txt,sha256=pqXTtEd5ElvJKoO6HAz232H9FW5j6X7gW4kEEakfSFM,17
20
+ prelude_sdk_beta-1404.dist-info/RECORD,,