Skip to content

Commit

Permalink
removed deprecated /organizations and /user/virtual_dns api
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtin committed Jul 18, 2020
1 parent 7edcc96 commit 94e4236
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions CloudFlare/api_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def api_v4(self):
user_load_balancers(self)
user_load_balancing_analytics(self)
user_tokens_verify(self)
user_virtual_dns(self)
user_workers(self)

# The API commands for /zones/
Expand All @@ -35,11 +34,6 @@ def api_v4(self):
# The API commands for /railguns/
railguns(self)

# The API commands for /organizations/
organizations(self)
organizations_audit_logs(self)
organizations_virtual_dns(self)

# The API commands for /certificates/
certificates(self)

Expand Down Expand Up @@ -234,23 +228,6 @@ def railguns(self):
self.add('AUTH', "railguns")
self.add('AUTH', "railguns", "zones")

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

self.add('AUTH', "organizations")
self.add('AUTH', "organizations", "members")
self.add('AUTH', "organizations", "invites")
self.add('AUTH', "organizations", "railguns")
self.add('AUTH', "organizations", "railguns", "zones")
self.add('AUTH', "organizations", "roles")
self.add('VOID', "organizations", "firewall")
self.add('VOID', "organizations", "firewall/access_rules")
self.add('AUTH', "organizations", "firewall/access_rules/rules")
self.add('VOID', "organizations", "load_balancers")
self.add('AUTH', "organizations", "load_balancers/monitors")
self.add('AUTH', "organizations", "load_balancers/pools")
self.add('AUTH', "organizations", "load_balancers/pools", "health")

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

Expand Down Expand Up @@ -336,28 +313,12 @@ def user_load_balancers(self):
self.add('AUTH', "user/load_balancers/pools", "health")
self.add('AUTH', "user/load_balancers/pools", "preview")

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

self.add('AUTH', "user/virtual_dns")
self.add('VOID', "user/virtual_dns", "dns_analytics")
self.add('AUTH', "user/virtual_dns", "dns_analytics/report")
self.add('AUTH', "user/virtual_dns", "dns_analytics/report/bytime")

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

self.add('VOID', "user/workers")
self.add('AUTH', "user/workers/scripts")

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

self.add('AUTH', "organizations", "virtual_dns")
self.add('VOID', "organizations", "virtual_dns", "dns_analytics")
self.add('AUTH', "organizations", "virtual_dns", "dns_analytics/report")
self.add('AUTH', "organizations", "virtual_dns", "dns_analytics/report/bytime")

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

Expand All @@ -378,11 +339,6 @@ def user_tokens_verify(self):
self.add('AUTH', "user/tokens/verify")
self.add('AUTH', "user/tokens", "value")

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

self.add('AUTH', "organizations", "audit_logs")

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

Expand Down

0 comments on commit 94e4236

Please sign in to comment.