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

Commit

Permalink
added more api calls - available_rate_plans websockets ssl/analyze ss…
Browse files Browse the repository at this point in the history
…l/verification
  • Loading branch information
mahtin committed Oct 19, 2016
1 parent 6655fee commit f89c64b
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions CloudFlare/api_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def api_v4(self):
self._add_with_auth(self._base, "zones", "activation_check"))
setattr(zones, "available_plans",
self._add_with_auth(self._base, "zones", "available_plans"))
setattr(zones, "available_rate_plans",
self._add_with_auth(self._base, "zones", "available_rate_plans"))
setattr(zones, "custom_certificates",
self._add_with_auth(self._base, "zones", "custom_certificates"))
zones_custom_certificates = getattr(zones, "custom_certificates")
Expand Down Expand Up @@ -123,10 +125,12 @@ def api_v4(self):
self._add_with_auth(self._base, "zones", "settings/tls_1_2_only"))
setattr(zones_settings, "tls_1_3",
self._add_with_auth(self._base, "zones", "settings/tls_1_3"))
setattr(zones_settings, "tlsadd_auth",
self._add_with_auth(self._base, "zones", "settings/tlsadd_auth"))
setattr(zones_settings, "trueadd_ip_header",
self._add_with_auth(self._base, "zones", "settings/trueadd_ip_header"))
# setattr(zones_settings, "tlsadd_auth",
# self._add_with_auth(self._base, "zones", "settings/tlsadd_auth"))
# setattr(zones_settings, "trueadd_ip_header",
# self._add_with_auth(self._base, "zones", "settings/trueadd_ip_header"))
setattr(zones_settings, "websockets",
self._add_with_auth(self._base, "zones", "settings/websockets"))
setattr(zones_settings, "waf",
self._add_with_auth(self._base, "zones", "settings/waf"))
setattr(zones, "analytics",
Expand Down Expand Up @@ -198,15 +202,18 @@ def api_v4(self):
setattr(self, "ips",
self._add_noauth(self._base, "ips"))

# The DNSSEC commands
# The API commands for /zones/:zone_id/dnssec
setattr(zones, "dnssec",
self._add_with_auth(self._base, "zones", "dnssec"))

# EXTRAS
# /zones/:zone_id/ssl/certificate_packs
# The API commands for /zones/:zone_id/ssl
setattr(zones, "ssl",
self._add_unused(self._base, "zones", "ssl"))
zones_ssl = getattr(zones, "ssl")
setattr(zones_ssl, "analyze",
self._add_with_auth(self._base, "zones", "ssl/analyze"))
setattr(zones_ssl, "certificate_packs",
self._add_with_auth(self._base, "zones", "ssl/certificate_packs"))
setattr(zones_ssl, "verification",
self._add_with_auth(self._base, "zones", "ssl/verification"))

0 comments on commit f89c64b

Please sign in to comment.