-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #178 from PaloAltoNetworks/feature/add_enforcement…
…_rules_endpoints add enforcement rules endpoint
- Loading branch information
Showing
4 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
""" Prisma Cloud Code Security enforcement-rules Endpoints Class """ | ||
|
||
# enforcement-rules | ||
|
||
class SuppressionsPrismaCloudAPIPCCSMixin: | ||
""" Prisma Cloud Code Security API Suppressions Endpoints Class """ | ||
|
||
def enforcement_rules_read(self): | ||
return self.execute_code_security('GET', 'code/api/v1/enforcement-rules') | ||
|
||
def enforcement_rules_update(self, rules): | ||
return self.execute_code_security('PUT', 'code/api/v1/enforcement-rules', body_params=rules) | ||
|
||
def enforcement_rules_exception_create(self, policy_id, rule): | ||
return self.execute_code_security('POST', 'code/api/v1/enforcement-rules', body_params=rule) | ||
|
||
def enforcement_rules_exception_delete(self, rule_id): | ||
return self.execute_code_security('DELETE', 'code/api/v1/enforcement-rules/%s' % (rule_id)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version = "5.2.22" | ||
version = "5.2.23" |