Skip to content

Commit

Permalink
some R2 calls added - there is still some calls that are not yet docu…
Browse files Browse the repository at this point in the history
…mented
  • Loading branch information
mahtin committed Aug 7, 2022
1 parent 85d1404 commit 10b30c9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CloudFlare/api_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def api_v4(self):
accounts_stream(self)
accounts_extras(self)
accounts_email(self)
accounts_r2(self)

# The API commands for /memberships/
memberships(self)
Expand Down Expand Up @@ -388,6 +389,7 @@ def accounts(self):
self.add('VOID', 'accounts', 'rulesets/phases')
self.add('AUTH', 'accounts', 'rulesets/phases', 'entrypoint')
self.add('AUTH', 'accounts', 'rulesets/phases', 'entrypoint/versions')
# self.add('AUTH', 'accounts', 'rulesets/phases/http_custom_errors/entrypoint')

self.add('VOID', "accounts", "storage")
self.add('AUTH', "accounts", "storage/analytics")
Expand Down Expand Up @@ -683,6 +685,14 @@ def accounts_email(self):
self.add('AUTH', 'accounts', 'email-fwdr')
self.add('AUTH', 'accounts', 'email-fwdr/addresses')

def accounts_r2(self):
""" accounts r2 """

self.add('AUTH', 'accounts', 'r2')
self.add('AUTH', 'accounts', 'r2/buckets')
self.add('AUTH', 'accounts', 'r2/buckets', 'usage')
self.add('AUTH', 'accounts', 'r2/buckets', 'objects')

def zones_email(self):
""" zones email """

Expand Down

0 comments on commit 10b30c9

Please sign in to comment.