From d093640353532ebbb75e825ec4aad9906b262527 Mon Sep 17 00:00:00 2001 From: Simon Melotte Date: Fri, 16 Feb 2024 13:24:08 +0100 Subject: [PATCH] add v2 repo endpoint --- prismacloud/api/pccs/_repositories.py | 6 ++++-- prismacloud/api/version.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/prismacloud/api/pccs/_repositories.py b/prismacloud/api/pccs/_repositories.py index a405405..f03361d 100644 --- a/prismacloud/api/pccs/_repositories.py +++ b/prismacloud/api/pccs/_repositories.py @@ -6,8 +6,7 @@ class RepositoriesPrismaCloudAPIPCCSMixin: """ Prisma Cloud Code Security API Repositories Endpoints Class """ def repositories_list_read(self, query_params=None): - repositories = self.execute_code_security('GET', 'code/api/v1/repositories', query_params=query_params) - return repositories + return self.execute_code_security('GET', 'code/api/v1/repositories', query_params=query_params) def repository_name(self, body_params=None): return self.execute_code_security('POST', 'code/api/v1/repositories/query', body_params=body_params) @@ -17,3 +16,6 @@ def repository_branches(self, query_params=None): def repositories_update(self, body_params): return self.execute_code_security('POST', 'code/api/v1/repositories', body_params=body_params) + + def repositories_list_read_v2(self, query_params=None): + return self.execute_code_security('GET', 'code/api/v2/repositories', query_params=query_params) diff --git a/prismacloud/api/version.py b/prismacloud/api/version.py index c846aaa..1254890 100644 --- a/prismacloud/api/version.py +++ b/prismacloud/api/version.py @@ -1 +1 @@ -version = "5.2.14" +version = "5.2.15"