Skip to content

Commit

Permalink
zones/waiting_rooms, accounts/diagnostics, and more
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtin committed Sep 17, 2020
1 parent 8ed99e4 commit 9975223
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions CloudFlare/api_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def api_v4(self):
zones_settings(self)
zones_spectrum(self)
zones_ssl(self)
zones_waiting_rooms(self)
zones_workers(self)

# The API commands for /railguns/
Expand All @@ -46,6 +47,7 @@ def api_v4(self):
accounts_access(self)
accounts_addressing(self)
accounts_audit_logs(self)
accounts_diagnostics(self)
accounts_firewall(self)
accounts_load_balancers(self)
accounts_secondary_dns(self)
Expand Down Expand Up @@ -392,6 +394,7 @@ def accounts_load_balancers(self):
self.add('AUTH', "accounts", "load_balancers/pools")
self.add('AUTH', "accounts", "load_balancers/pools", "health")
self.add('AUTH', 'accounts', 'load_balancers/pools', 'preview')
self.add('AUTH', 'accounts', 'load_balancers/regions')
self.add('AUTH', 'accounts', 'load_balancers/search')

def accounts_firewall(self):
Expand All @@ -406,6 +409,7 @@ def accounts_secondary_dns(self):

self.add('VOID', "accounts", "secondary_dns")
self.add('AUTH', "accounts", "secondary_dns/masters")
self.add('AUTH', 'accounts', 'secondary_dns/primaries')
self.add('AUTH', "accounts", "secondary_dns/tsigs")

def accounts_stream(self):
Expand Down Expand Up @@ -472,3 +476,15 @@ def accounts_access(self):
self.add('AUTH', 'accounts', 'access/apps', 'policies')
self.add('AUTH', 'accounts', 'access/apps', 'revoke_tokens')

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

self.add('VOID', 'accounts', 'diagnostics')
self.add('AUTH', 'accounts', 'diagnostics/traceroute')

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

self.add('AUTH', 'zones', 'waiting_rooms')
self.add('AUTH', 'zones', 'waiting_rooms', 'status')
self.add('AUTH', 'zones', 'waiting_rooms/preview')

0 comments on commit 9975223

Please sign in to comment.