From 0f670b5ae88194a9ea314b8cc1f5b071dce56143 Mon Sep 17 00:00:00 2001 From: Martin Levy Date: Thu, 22 Dec 2016 13:55:38 -0800 Subject: [PATCH] Added /zones/rate_limits API command --- CloudFlare/api_v4.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CloudFlare/api_v4.py b/CloudFlare/api_v4.py index fce5e76..b94cbf4 100644 --- a/CloudFlare/api_v4.py +++ b/CloudFlare/api_v4.py @@ -10,6 +10,7 @@ def api_v4(self): zones_settings(self) zones_analytics(self) zones_firewall(self) + zones_rate_limits(self) # The API commands for /railguns/ railguns(self) # The API commands for /organizations/ @@ -208,6 +209,14 @@ def zones_firewall(self): setattr(branch, "rules", self._add_with_auth(base, "zones", "firewall/access_rules/rules")) +def zones_rate_limits(self): + """ API core commands for Cloudflare API""" + + base = self._base + branch = getattr(self, "zones") + setattr(branch, "rate_limits", + self._add_with_auth(base, "zones", "rate_limits")) + def railguns(self): """ API core commands for Cloudflare API"""