Skip to content

Commit dfaaa0b

Browse files
committed
add tamperProtectionActive flag
1 parent 3c3f95d commit dfaaa0b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cbapi/protection/models.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ def _build_api_request_uri(self, http_method="GET"):
9797
if any(n in self._dirty_attributes
9898
for n in ["template", "templateCloneCleanupMode", "templateCloneCleanupTime", "templateCloneCleanupTimeScale", "templateTrackModsOnly"]):
9999
args.append("changeTemplate=true")
100+
if "tamperProtectionActive" in self._dirty_attributes:
101+
if self.get("tamperProtectionActive", True) == True:
102+
args.append("newTamperProtectionActive=true")
103+
else:
104+
args.append("newTamperProtectionActive=false")
100105

101106
if args:
102107
base_uri += "?{0}".format("&".join(args))

0 commit comments

Comments
 (0)