Skip to content

Commit

Permalink
add code policies endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
SimOnPanw committed Feb 15, 2024
1 parent 9b8307a commit 413fc37
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions prismacloud/api/pccs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from ._scans import *
from ._suppressions import *
from ._packages import *
from ._code_policies import *

mixin_classes_as_strings = list(filter(lambda x: x.endswith('PrismaCloudAPIPCCSMixin'), dir()))
mixin_classes = [getattr(sys.modules[__name__], x) for x in mixin_classes_as_strings]
Expand Down
9 changes: 9 additions & 0 deletions prismacloud/api/pccs/_code_policies.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
""" Prisma Cloud Code Security API Code Policies Endpoints Class """

# Code Policies

class CodePoliciesPrismaCloudAPIPCCSMixin:
""" Prisma Cloud Code Security API Code Policies Endpoints Class """

def suppressions_justifications_list_read(self, policy_id):
return self.execute_code_security('GET', 'code/api/v2/policies/%s' % policy_id)
2 changes: 1 addition & 1 deletion prismacloud/api/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "5.2.12"
version = "5.2.13"

0 comments on commit 413fc37

Please sign in to comment.