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

Commit d8d15c7

Browse files
authored
Add support for Argo
Added 2 API endpoints required for Argo support: zones/:zone_identifier/argo/tiered_caching zones/:zone_identifier/argo/smart_routing
1 parent 5358208 commit d8d15c7

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
@@ -289,6 +291,19 @@ def ips(self):
289291
setattr(self, "ips",
290292
self._add_noauth(base, "ips"))
291293

294+
def zones_argo(self):
295+
""" API core commands for Cloudflare API"""
296+
297+
base = self._base
298+
branch = getattr(self, "zones")
299+
setattr(branch, "argo",
300+
self._add_unused(base, "zones", "argo"))
301+
branch = getattr(getattr(self, "zones"), "argo")
302+
setattr(branch, "tiered_caching",
303+
self._add_with_auth(base, "zones", "argo/tiered_caching"))
304+
setattr(branch, "smart_routing",
305+
self._add_with_auth(base, "zones", "argo/smart_routing"))
306+
292307
def zones_dnssec(self):
293308
""" API core commands for Cloudflare API"""
294309

0 commit comments

Comments
 (0)