Skip to content

Commit

Permalink
Merge pull request cloudflare#35 from Bellardia/implement-argo
Browse files Browse the repository at this point in the history
Add support for Argo
  • Loading branch information
mahtin committed Aug 22, 2017
2 parents b07a3c9 + d8d15c7 commit 4745e20
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CloudFlare/api_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def api_v4(self):
certificates(self)
# The API commands for /ips/
ips(self)
# The API commands for /zones/:zone_id/argo
zones_argo(self)
# The API commands for /zones/:zone_id/dnssec
zones_dnssec(self)
# The API commands for /zones/:zone_id/ssl
Expand Down Expand Up @@ -296,6 +298,19 @@ def ips(self):
setattr(self, "ips",
self._add_noauth(base, "ips"))

def zones_argo(self):
""" API core commands for Cloudflare API"""

base = self._base
branch = getattr(self, "zones")
setattr(branch, "argo",
self._add_unused(base, "zones", "argo"))
branch = getattr(getattr(self, "zones"), "argo")
setattr(branch, "tiered_caching",
self._add_with_auth(base, "zones", "argo/tiered_caching"))
setattr(branch, "smart_routing",
self._add_with_auth(base, "zones", "argo/smart_routing"))

def zones_dnssec(self):
""" API core commands for Cloudflare API"""

Expand Down

0 comments on commit 4745e20

Please sign in to comment.