Skip to content

Commit

Permalink
Merge pull request PaloAltoNetworks#169 from PaloAltoNetworks/feature…
Browse files Browse the repository at this point in the history
…/add-repositories-endpoints-v2

add v2 repo endpoint
  • Loading branch information
SimOnPanw authored Feb 16, 2024
2 parents 2db7734 + d093640 commit d53d685
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions prismacloud/api/pccs/_repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
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.14"
version = "5.2.15"

0 comments on commit d53d685

Please sign in to comment.