@@ -56,7 +56,7 @@ def update(
56
56
* ,
57
57
account_id : str ,
58
58
rules : Iterable [cors_update_params .Rule ] | NotGiven = NOT_GIVEN ,
59
- cf_r2_jurisdiction : Literal ["default" , "eu" , "fedramp" ] | NotGiven = NOT_GIVEN ,
59
+ jurisdiction : Literal ["default" , "eu" , "fedramp" ] | NotGiven = NOT_GIVEN ,
60
60
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
61
61
# The extra values given here take precedence over values defined on the client or passed to this method.
62
62
extra_headers : Headers | None = None ,
@@ -72,7 +72,7 @@ def update(
72
72
73
73
bucket_name: Name of the bucket
74
74
75
- cf_r2_jurisdiction : The bucket jurisdiction
75
+ jurisdiction : The bucket jurisdiction
76
76
77
77
extra_headers: Send extra headers
78
78
@@ -87,9 +87,7 @@ def update(
87
87
if not bucket_name :
88
88
raise ValueError (f"Expected a non-empty value for `bucket_name` but received { bucket_name !r} " )
89
89
extra_headers = {
90
- ** strip_not_given (
91
- {"cf-r2-jurisdiction" : str (cf_r2_jurisdiction ) if is_given (cf_r2_jurisdiction ) else NOT_GIVEN }
92
- ),
90
+ ** strip_not_given ({"cf-r2-jurisdiction" : str (jurisdiction ) if is_given (jurisdiction ) else NOT_GIVEN }),
93
91
** (extra_headers or {}),
94
92
}
95
93
return self ._put (
@@ -110,7 +108,7 @@ def delete(
110
108
bucket_name : str ,
111
109
* ,
112
110
account_id : str ,
113
- cf_r2_jurisdiction : Literal ["default" , "eu" , "fedramp" ] | NotGiven = NOT_GIVEN ,
111
+ jurisdiction : Literal ["default" , "eu" , "fedramp" ] | NotGiven = NOT_GIVEN ,
114
112
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
115
113
# The extra values given here take precedence over values defined on the client or passed to this method.
116
114
extra_headers : Headers | None = None ,
@@ -126,7 +124,7 @@ def delete(
126
124
127
125
bucket_name: Name of the bucket
128
126
129
- cf_r2_jurisdiction : The bucket jurisdiction
127
+ jurisdiction : The bucket jurisdiction
130
128
131
129
extra_headers: Send extra headers
132
130
@@ -141,9 +139,7 @@ def delete(
141
139
if not bucket_name :
142
140
raise ValueError (f"Expected a non-empty value for `bucket_name` but received { bucket_name !r} " )
143
141
extra_headers = {
144
- ** strip_not_given (
145
- {"cf-r2-jurisdiction" : str (cf_r2_jurisdiction ) if is_given (cf_r2_jurisdiction ) else NOT_GIVEN }
146
- ),
142
+ ** strip_not_given ({"cf-r2-jurisdiction" : str (jurisdiction ) if is_given (jurisdiction ) else NOT_GIVEN }),
147
143
** (extra_headers or {}),
148
144
}
149
145
return self ._delete (
@@ -163,7 +159,7 @@ def get(
163
159
bucket_name : str ,
164
160
* ,
165
161
account_id : str ,
166
- cf_r2_jurisdiction : Literal ["default" , "eu" , "fedramp" ] | NotGiven = NOT_GIVEN ,
162
+ jurisdiction : Literal ["default" , "eu" , "fedramp" ] | NotGiven = NOT_GIVEN ,
167
163
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
168
164
# The extra values given here take precedence over values defined on the client or passed to this method.
169
165
extra_headers : Headers | None = None ,
@@ -179,7 +175,7 @@ def get(
179
175
180
176
bucket_name: Name of the bucket
181
177
182
- cf_r2_jurisdiction : The bucket jurisdiction
178
+ jurisdiction : The bucket jurisdiction
183
179
184
180
extra_headers: Send extra headers
185
181
@@ -194,9 +190,7 @@ def get(
194
190
if not bucket_name :
195
191
raise ValueError (f"Expected a non-empty value for `bucket_name` but received { bucket_name !r} " )
196
192
extra_headers = {
197
- ** strip_not_given (
198
- {"cf-r2-jurisdiction" : str (cf_r2_jurisdiction ) if is_given (cf_r2_jurisdiction ) else NOT_GIVEN }
199
- ),
193
+ ** strip_not_given ({"cf-r2-jurisdiction" : str (jurisdiction ) if is_given (jurisdiction ) else NOT_GIVEN }),
200
194
** (extra_headers or {}),
201
195
}
202
196
return self ._get (
@@ -238,7 +232,7 @@ async def update(
238
232
* ,
239
233
account_id : str ,
240
234
rules : Iterable [cors_update_params .Rule ] | NotGiven = NOT_GIVEN ,
241
- cf_r2_jurisdiction : Literal ["default" , "eu" , "fedramp" ] | NotGiven = NOT_GIVEN ,
235
+ jurisdiction : Literal ["default" , "eu" , "fedramp" ] | NotGiven = NOT_GIVEN ,
242
236
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
243
237
# The extra values given here take precedence over values defined on the client or passed to this method.
244
238
extra_headers : Headers | None = None ,
@@ -254,7 +248,7 @@ async def update(
254
248
255
249
bucket_name: Name of the bucket
256
250
257
- cf_r2_jurisdiction : The bucket jurisdiction
251
+ jurisdiction : The bucket jurisdiction
258
252
259
253
extra_headers: Send extra headers
260
254
@@ -269,9 +263,7 @@ async def update(
269
263
if not bucket_name :
270
264
raise ValueError (f"Expected a non-empty value for `bucket_name` but received { bucket_name !r} " )
271
265
extra_headers = {
272
- ** strip_not_given (
273
- {"cf-r2-jurisdiction" : str (cf_r2_jurisdiction ) if is_given (cf_r2_jurisdiction ) else NOT_GIVEN }
274
- ),
266
+ ** strip_not_given ({"cf-r2-jurisdiction" : str (jurisdiction ) if is_given (jurisdiction ) else NOT_GIVEN }),
275
267
** (extra_headers or {}),
276
268
}
277
269
return await self ._put (
@@ -292,7 +284,7 @@ async def delete(
292
284
bucket_name : str ,
293
285
* ,
294
286
account_id : str ,
295
- cf_r2_jurisdiction : Literal ["default" , "eu" , "fedramp" ] | NotGiven = NOT_GIVEN ,
287
+ jurisdiction : Literal ["default" , "eu" , "fedramp" ] | NotGiven = NOT_GIVEN ,
296
288
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
297
289
# The extra values given here take precedence over values defined on the client or passed to this method.
298
290
extra_headers : Headers | None = None ,
@@ -308,7 +300,7 @@ async def delete(
308
300
309
301
bucket_name: Name of the bucket
310
302
311
- cf_r2_jurisdiction : The bucket jurisdiction
303
+ jurisdiction : The bucket jurisdiction
312
304
313
305
extra_headers: Send extra headers
314
306
@@ -323,9 +315,7 @@ async def delete(
323
315
if not bucket_name :
324
316
raise ValueError (f"Expected a non-empty value for `bucket_name` but received { bucket_name !r} " )
325
317
extra_headers = {
326
- ** strip_not_given (
327
- {"cf-r2-jurisdiction" : str (cf_r2_jurisdiction ) if is_given (cf_r2_jurisdiction ) else NOT_GIVEN }
328
- ),
318
+ ** strip_not_given ({"cf-r2-jurisdiction" : str (jurisdiction ) if is_given (jurisdiction ) else NOT_GIVEN }),
329
319
** (extra_headers or {}),
330
320
}
331
321
return await self ._delete (
@@ -345,7 +335,7 @@ async def get(
345
335
bucket_name : str ,
346
336
* ,
347
337
account_id : str ,
348
- cf_r2_jurisdiction : Literal ["default" , "eu" , "fedramp" ] | NotGiven = NOT_GIVEN ,
338
+ jurisdiction : Literal ["default" , "eu" , "fedramp" ] | NotGiven = NOT_GIVEN ,
349
339
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
350
340
# The extra values given here take precedence over values defined on the client or passed to this method.
351
341
extra_headers : Headers | None = None ,
@@ -361,7 +351,7 @@ async def get(
361
351
362
352
bucket_name: Name of the bucket
363
353
364
- cf_r2_jurisdiction : The bucket jurisdiction
354
+ jurisdiction : The bucket jurisdiction
365
355
366
356
extra_headers: Send extra headers
367
357
@@ -376,9 +366,7 @@ async def get(
376
366
if not bucket_name :
377
367
raise ValueError (f"Expected a non-empty value for `bucket_name` but received { bucket_name !r} " )
378
368
extra_headers = {
379
- ** strip_not_given (
380
- {"cf-r2-jurisdiction" : str (cf_r2_jurisdiction ) if is_given (cf_r2_jurisdiction ) else NOT_GIVEN }
381
- ),
369
+ ** strip_not_given ({"cf-r2-jurisdiction" : str (jurisdiction ) if is_given (jurisdiction ) else NOT_GIVEN }),
382
370
** (extra_headers or {}),
383
371
}
384
372
return await self ._get (
0 commit comments