File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed
Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 99module Cloudflare
1010 module R2
1111 class Cors < Representation
12- include Async ::REST ::Representation ::Mutable
13-
1412 def rules
1513 result [ :rules ]
1614 end
Original file line number Diff line number Diff line change 99module Cloudflare
1010 module R2
1111 class Domain < Representation
12- include Async ::REST ::Representation ::Mutable
13-
1412 def name
1513 result [ :domain ]
1614 end
Original file line number Diff line number Diff line change 6060
6161### Using a Bearer Token
6262
63- You can read more about [ bearer tokens here] ( https://blog.cloudflare.com/api-tokens-general-availability/ ) . This allows you to limit priviledges .
63+ You can read more about [ bearer tokens here] ( https://blog.cloudflare.com/api-tokens-general-availability/ ) . This allows you to limit privileges .
6464
6565``` ruby
6666require ' cloudflare'
Original file line number Diff line number Diff line change 3636
3737 expect ( namespace . resource . reference . path ) . to be ( :end_with? , "/#{ account . id } /storage/kv/namespaces" )
3838 end
39+
40+ it "can generate a representation for the R2 bucket endpoint" do
41+ buckets = connection . accounts . find_by_id ( account . id ) . r2_buckets
42+
43+ expect ( buckets ) . to be_a ( Cloudflare ::R2 ::Buckets )
44+
45+ expect ( buckets . resource . reference . path ) . to be ( :end_with? , "/#{ account . id } /r2/buckets" )
46+ end
3947end
You can’t perform that action at this time.
0 commit comments