@@ -118,7 +118,7 @@ def create(
118118 name : str ,
119119 location_hint : Literal ["apac" , "eeur" , "enam" , "weur" , "wnam" ] | NotGiven = NOT_GIVEN ,
120120 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 ,
122122 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
123123 # The extra values given here take precedence over values defined on the client or passed to this method.
124124 extra_headers : Headers | None = None ,
@@ -138,7 +138,7 @@ def create(
138138
139139 storage_class: Storage class for newly uploaded objects, unless specified otherwise.
140140
141- cf_r2_jurisdiction : Creates the bucket in the provided jurisdiction
141+ jurisdiction : Creates the bucket in the provided jurisdiction
142142
143143 extra_headers: Send extra headers
144144
@@ -151,9 +151,7 @@ def create(
151151 if not account_id :
152152 raise ValueError (f"Expected a non-empty value for `account_id` but received { account_id !r} " )
153153 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 }),
157155 ** (extra_headers or {}),
158156 }
159157 return self ._post (
@@ -409,7 +407,7 @@ async def create(
409407 name : str ,
410408 location_hint : Literal ["apac" , "eeur" , "enam" , "weur" , "wnam" ] | NotGiven = NOT_GIVEN ,
411409 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 ,
413411 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
414412 # The extra values given here take precedence over values defined on the client or passed to this method.
415413 extra_headers : Headers | None = None ,
@@ -429,7 +427,7 @@ async def create(
429427
430428 storage_class: Storage class for newly uploaded objects, unless specified otherwise.
431429
432- cf_r2_jurisdiction : Creates the bucket in the provided jurisdiction
430+ jurisdiction : Creates the bucket in the provided jurisdiction
433431
434432 extra_headers: Send extra headers
435433
@@ -442,9 +440,7 @@ async def create(
442440 if not account_id :
443441 raise ValueError (f"Expected a non-empty value for `account_id` but received { account_id !r} " )
444442 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 }),
448444 ** (extra_headers or {}),
449445 }
450446 return await self ._post (
0 commit comments