Skip to content

Commit 0c6f4a1

Browse files
feat(api): api update
1 parent a2ddb17 commit 0c6f4a1

37 files changed

+376
-376
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1706
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e5a5e9edc27ac5af647639c1cb38e7642c12f5e2c05c9351f6708277cd0e43ad.yml
3-
openapi_spec_hash: 5968696bb0a216b997e7c35bbe2e7519
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5fae71ae89257df82dea89d7cf73d174ad9d3863f861d8ede030faeca964efd7.yml
3+
openapi_spec_hash: 20d30ef81b6c200bb01bdf67096ec2c3
44
config_hash: 67f412c990647f3cb598378fa22a9db5

src/cloudflare/resources/r2/buckets/buckets.py

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,15 @@ def create(
149149
Creates a new R2 bucket.
150150
151151
Args:
152-
account_id: Account ID
152+
account_id: Account ID.
153153
154-
name: Name of the bucket
154+
name: Name of the bucket.
155155
156-
location_hint: Location of the bucket
156+
location_hint: Location of the bucket.
157157
158158
storage_class: Storage class for newly uploaded objects, unless specified otherwise.
159159
160-
jurisdiction: Creates the bucket in the provided jurisdiction
160+
jurisdiction: Creates the bucket in the provided jurisdiction.
161161
162162
extra_headers: Send extra headers
163163
@@ -212,26 +212,26 @@ def list(
212212
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
213213
) -> BucketListResponse:
214214
"""
215-
Lists all R2 buckets on your account
215+
Lists all R2 buckets on your account.
216216
217217
Args:
218-
account_id: Account ID
218+
account_id: Account ID.
219219
220220
cursor: Pagination cursor received during the last List Buckets call. R2 buckets are
221221
paginated using cursors instead of page numbers.
222222
223-
direction: Direction to order buckets
223+
direction: Direction to order buckets.
224224
225225
name_contains: Bucket names to filter by. Only buckets with this phrase in their name will be
226226
returned.
227227
228-
order: Field to order buckets by
228+
order: Field to order buckets by.
229229
230-
per_page: Maximum number of buckets to return in a single call
230+
per_page: Maximum number of buckets to return in a single call.
231231
232232
start_after: Bucket name to start searching after. Buckets are ordered lexicographically.
233233
234-
jurisdiction: Lists buckets in the provided jurisdiction
234+
jurisdiction: Lists buckets in the provided jurisdiction.
235235
236236
extra_headers: Send extra headers
237237
@@ -287,11 +287,11 @@ def delete(
287287
Deletes an existing R2 bucket.
288288
289289
Args:
290-
account_id: Account ID
290+
account_id: Account ID.
291291
292-
bucket_name: Name of the bucket
292+
bucket_name: Name of the bucket.
293293
294-
jurisdiction: The bucket jurisdiction
294+
jurisdiction: The bucket jurisdiction.
295295
296296
extra_headers: Send extra headers
297297
@@ -335,14 +335,14 @@ def get(
335335
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
336336
) -> Bucket:
337337
"""
338-
Gets metadata for an existing R2 bucket.
338+
Gets properties of an existing R2 bucket.
339339
340340
Args:
341-
account_id: Account ID
341+
account_id: Account ID.
342342
343-
bucket_name: Name of the bucket
343+
bucket_name: Name of the bucket.
344344
345-
jurisdiction: The bucket jurisdiction
345+
jurisdiction: The bucket jurisdiction.
346346
347347
extra_headers: Send extra headers
348348
@@ -440,15 +440,15 @@ async def create(
440440
Creates a new R2 bucket.
441441
442442
Args:
443-
account_id: Account ID
443+
account_id: Account ID.
444444
445-
name: Name of the bucket
445+
name: Name of the bucket.
446446
447-
location_hint: Location of the bucket
447+
location_hint: Location of the bucket.
448448
449449
storage_class: Storage class for newly uploaded objects, unless specified otherwise.
450450
451-
jurisdiction: Creates the bucket in the provided jurisdiction
451+
jurisdiction: Creates the bucket in the provided jurisdiction.
452452
453453
extra_headers: Send extra headers
454454
@@ -503,26 +503,26 @@ async def list(
503503
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
504504
) -> BucketListResponse:
505505
"""
506-
Lists all R2 buckets on your account
506+
Lists all R2 buckets on your account.
507507
508508
Args:
509-
account_id: Account ID
509+
account_id: Account ID.
510510
511511
cursor: Pagination cursor received during the last List Buckets call. R2 buckets are
512512
paginated using cursors instead of page numbers.
513513
514-
direction: Direction to order buckets
514+
direction: Direction to order buckets.
515515
516516
name_contains: Bucket names to filter by. Only buckets with this phrase in their name will be
517517
returned.
518518
519-
order: Field to order buckets by
519+
order: Field to order buckets by.
520520
521-
per_page: Maximum number of buckets to return in a single call
521+
per_page: Maximum number of buckets to return in a single call.
522522
523523
start_after: Bucket name to start searching after. Buckets are ordered lexicographically.
524524
525-
jurisdiction: Lists buckets in the provided jurisdiction
525+
jurisdiction: Lists buckets in the provided jurisdiction.
526526
527527
extra_headers: Send extra headers
528528
@@ -578,11 +578,11 @@ async def delete(
578578
Deletes an existing R2 bucket.
579579
580580
Args:
581-
account_id: Account ID
581+
account_id: Account ID.
582582
583-
bucket_name: Name of the bucket
583+
bucket_name: Name of the bucket.
584584
585-
jurisdiction: The bucket jurisdiction
585+
jurisdiction: The bucket jurisdiction.
586586
587587
extra_headers: Send extra headers
588588
@@ -626,14 +626,14 @@ async def get(
626626
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
627627
) -> Bucket:
628628
"""
629-
Gets metadata for an existing R2 bucket.
629+
Gets properties of an existing R2 bucket.
630630
631631
Args:
632-
account_id: Account ID
632+
account_id: Account ID.
633633
634-
bucket_name: Name of the bucket
634+
bucket_name: Name of the bucket.
635635
636-
jurisdiction: The bucket jurisdiction
636+
jurisdiction: The bucket jurisdiction.
637637
638638
extra_headers: Send extra headers
639639

src/cloudflare/resources/r2/buckets/cors.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ def update(
6060
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
6161
) -> object:
6262
"""
63-
Set the CORS policy for a bucket
63+
Set the CORS policy for a bucket.
6464
6565
Args:
66-
account_id: Account ID
66+
account_id: Account ID.
6767
68-
bucket_name: Name of the bucket
68+
bucket_name: Name of the bucket.
6969
70-
jurisdiction: The bucket jurisdiction
70+
jurisdiction: The bucket jurisdiction.
7171
7272
extra_headers: Send extra headers
7373
@@ -112,14 +112,14 @@ def delete(
112112
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
113113
) -> object:
114114
"""
115-
Delete the CORS policy for a bucket
115+
Delete the CORS policy for a bucket.
116116
117117
Args:
118-
account_id: Account ID
118+
account_id: Account ID.
119119
120-
bucket_name: Name of the bucket
120+
bucket_name: Name of the bucket.
121121
122-
jurisdiction: The bucket jurisdiction
122+
jurisdiction: The bucket jurisdiction.
123123
124124
extra_headers: Send extra headers
125125
@@ -163,14 +163,14 @@ def get(
163163
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
164164
) -> CORSGetResponse:
165165
"""
166-
Get the CORS policy for a bucket
166+
Get the CORS policy for a bucket.
167167
168168
Args:
169-
account_id: Account ID
169+
account_id: Account ID.
170170
171-
bucket_name: Name of the bucket
171+
bucket_name: Name of the bucket.
172172
173-
jurisdiction: The bucket jurisdiction
173+
jurisdiction: The bucket jurisdiction.
174174
175175
extra_headers: Send extra headers
176176
@@ -236,14 +236,14 @@ async def update(
236236
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
237237
) -> object:
238238
"""
239-
Set the CORS policy for a bucket
239+
Set the CORS policy for a bucket.
240240
241241
Args:
242-
account_id: Account ID
242+
account_id: Account ID.
243243
244-
bucket_name: Name of the bucket
244+
bucket_name: Name of the bucket.
245245
246-
jurisdiction: The bucket jurisdiction
246+
jurisdiction: The bucket jurisdiction.
247247
248248
extra_headers: Send extra headers
249249
@@ -288,14 +288,14 @@ async def delete(
288288
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
289289
) -> object:
290290
"""
291-
Delete the CORS policy for a bucket
291+
Delete the CORS policy for a bucket.
292292
293293
Args:
294-
account_id: Account ID
294+
account_id: Account ID.
295295
296-
bucket_name: Name of the bucket
296+
bucket_name: Name of the bucket.
297297
298-
jurisdiction: The bucket jurisdiction
298+
jurisdiction: The bucket jurisdiction.
299299
300300
extra_headers: Send extra headers
301301
@@ -339,14 +339,14 @@ async def get(
339339
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
340340
) -> CORSGetResponse:
341341
"""
342-
Get the CORS policy for a bucket
342+
Get the CORS policy for a bucket.
343343
344344
Args:
345-
account_id: Account ID
345+
account_id: Account ID.
346346
347-
bucket_name: Name of the bucket
347+
bucket_name: Name of the bucket.
348348
349-
jurisdiction: The bucket jurisdiction
349+
jurisdiction: The bucket jurisdiction.
350350
351351
extra_headers: Send extra headers
352352

0 commit comments

Comments
 (0)