@@ -118,7 +118,7 @@ def create(
118
118
name : str ,
119
119
location_hint : Literal ["apac" , "eeur" , "enam" , "weur" , "wnam" ] | NotGiven = NOT_GIVEN ,
120
120
storage_class : Literal ["Standard" , "InfrequentAccess" ] | NotGiven = NOT_GIVEN ,
121
- cf_r2_jurisdiction : Literal ["default" , "eu" , "fedramp" ] | NotGiven = NOT_GIVEN ,
121
+ jurisdiction : Literal ["default" , "eu" , "fedramp" ] | NotGiven = NOT_GIVEN ,
122
122
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
123
123
# The extra values given here take precedence over values defined on the client or passed to this method.
124
124
extra_headers : Headers | None = None ,
@@ -138,7 +138,7 @@ def create(
138
138
139
139
storage_class: Storage class for newly uploaded objects, unless specified otherwise.
140
140
141
- cf_r2_jurisdiction : Creates the bucket in the provided jurisdiction
141
+ jurisdiction : Creates the bucket in the provided jurisdiction
142
142
143
143
extra_headers: Send extra headers
144
144
@@ -151,9 +151,7 @@ def create(
151
151
if not account_id :
152
152
raise ValueError (f"Expected a non-empty value for `account_id` but received { account_id !r} " )
153
153
extra_headers = {
154
- ** strip_not_given (
155
- {"cf-r2-jurisdiction" : str (cf_r2_jurisdiction ) if is_given (cf_r2_jurisdiction ) else NOT_GIVEN }
156
- ),
154
+ ** strip_not_given ({"cf-r2-jurisdiction" : str (jurisdiction ) if is_given (jurisdiction ) else NOT_GIVEN }),
157
155
** (extra_headers or {}),
158
156
}
159
157
return self ._post (
@@ -409,7 +407,7 @@ async def create(
409
407
name : str ,
410
408
location_hint : Literal ["apac" , "eeur" , "enam" , "weur" , "wnam" ] | NotGiven = NOT_GIVEN ,
411
409
storage_class : Literal ["Standard" , "InfrequentAccess" ] | NotGiven = NOT_GIVEN ,
412
- cf_r2_jurisdiction : Literal ["default" , "eu" , "fedramp" ] | NotGiven = NOT_GIVEN ,
410
+ jurisdiction : Literal ["default" , "eu" , "fedramp" ] | NotGiven = NOT_GIVEN ,
413
411
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
414
412
# The extra values given here take precedence over values defined on the client or passed to this method.
415
413
extra_headers : Headers | None = None ,
@@ -429,7 +427,7 @@ async def create(
429
427
430
428
storage_class: Storage class for newly uploaded objects, unless specified otherwise.
431
429
432
- cf_r2_jurisdiction : Creates the bucket in the provided jurisdiction
430
+ jurisdiction : Creates the bucket in the provided jurisdiction
433
431
434
432
extra_headers: Send extra headers
435
433
@@ -442,9 +440,7 @@ async def create(
442
440
if not account_id :
443
441
raise ValueError (f"Expected a non-empty value for `account_id` but received { account_id !r} " )
444
442
extra_headers = {
445
- ** strip_not_given (
446
- {"cf-r2-jurisdiction" : str (cf_r2_jurisdiction ) if is_given (cf_r2_jurisdiction ) else NOT_GIVEN }
447
- ),
443
+ ** strip_not_given ({"cf-r2-jurisdiction" : str (jurisdiction ) if is_given (jurisdiction ) else NOT_GIVEN }),
448
444
** (extra_headers or {}),
449
445
}
450
446
return await self ._post (
0 commit comments