Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 4745e20

Browse files
authored
Merge pull request #35 from Bellardia/implement-argo
Add support for Argo
2 parents b07a3c9 + d8d15c7 commit 4745e20

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

CloudFlare/api_v4.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ def api_v4(self):
1919
certificates(self)
2020
# The API commands for /ips/
2121
ips(self)
22+
# The API commands for /zones/:zone_id/argo
23+
zones_argo(self)
2224
# The API commands for /zones/:zone_id/dnssec
2325
zones_dnssec(self)
2426
# The API commands for /zones/:zone_id/ssl
@@ -296,6 +298,19 @@ def ips(self):
296298
setattr(self, "ips",
297299
self._add_noauth(base, "ips"))
298300

301+
def zones_argo(self):
302+
""" API core commands for Cloudflare API"""
303+
304+
base = self._base
305+
branch = getattr(self, "zones")
306+
setattr(branch, "argo",
307+
self._add_unused(base, "zones", "argo"))
308+
branch = getattr(getattr(self, "zones"), "argo")
309+
setattr(branch, "tiered_caching",
310+
self._add_with_auth(base, "zones", "argo/tiered_caching"))
311+
setattr(branch, "smart_routing",
312+
self._add_with_auth(base, "zones", "argo/smart_routing"))
313+
299314
def zones_dnssec(self):
300315
""" API core commands for Cloudflare API"""
301316

0 commit comments

Comments
 (0)