diff --git a/prismacloud/api/pccs/__init__.py b/prismacloud/api/pccs/__init__.py index 4e3507f..7d01a57 100644 --- a/prismacloud/api/pccs/__init__.py +++ b/prismacloud/api/pccs/__init__.py @@ -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] diff --git a/prismacloud/api/pccs/_code_policies.py b/prismacloud/api/pccs/_code_policies.py new file mode 100644 index 0000000..dafc308 --- /dev/null +++ b/prismacloud/api/pccs/_code_policies.py @@ -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) diff --git a/prismacloud/api/version.py b/prismacloud/api/version.py index 5dfe327..9e74770 100644 --- a/prismacloud/api/version.py +++ b/prismacloud/api/version.py @@ -1 +1 @@ -version = "5.2.12" +version = "5.2.13"