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

Add support for Argo #35

Merged
merged 1 commit into from
Aug 22, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -289,6 +291,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