@@ -131,15 +131,13 @@ async def read(
131
131
self ,
132
132
* ,
133
133
initial_headers : Optional [Dict [str , str ]] = None ,
134
- throughput_bucket : Optional [int ] = None ,
135
134
** kwargs : Any
136
135
) -> Dict [str , Any ]:
137
136
"""Read the database properties.
138
137
139
138
:keyword dict[str, str] initial_headers: Initial headers to be sent as part of the request.
140
139
:keyword response_hook: A callable invoked with the response metadata.
141
140
:paramtype response_hook: Callable[[Mapping[str, str], Dict[str, Any]], None]
142
- :keyword int throughput_bucket: The desired throughput bucket for the client
143
141
:raises ~azure.cosmos.exceptions.CosmosHttpResponseError: If the given database couldn't be retrieved.
144
142
:returns: A dict representing the database properties
145
143
:rtype: Dict[str, Any]
@@ -154,8 +152,6 @@ async def read(
154
152
database_link = _get_database_link (self )
155
153
if initial_headers is not None :
156
154
kwargs ['initial_headers' ] = initial_headers
157
- if throughput_bucket is not None :
158
- kwargs ["throughput_bucket" ] = throughput_bucket
159
155
request_options = _build_options (kwargs )
160
156
161
157
self ._properties = await self .client_connection .ReadDatabase (
@@ -181,7 +177,6 @@ async def create_container(
181
177
vector_embedding_policy : Optional [Dict [str , Any ]] = None ,
182
178
change_feed_policy : Optional [Dict [str , Any ]] = None ,
183
179
full_text_policy : Optional [Dict [str , Any ]] = None ,
184
- throughput_bucket : Optional [int ] = None ,
185
180
** kwargs : Any
186
181
) -> ContainerProxy :
187
182
"""Create a new container with the given ID (name).
@@ -215,7 +210,6 @@ async def create_container(
215
210
:keyword Dict[str, Any] full_text_policy: **provisional** The full text policy for the container.
216
211
Used to denote the default language to be used for all full text indexes, or to individually
217
212
assign a language to each full text index path.
218
- :keyword int throughput_bucket: The desired throughput bucket for the client
219
213
:raises ~azure.cosmos.exceptions.CosmosHttpResponseError: The container creation failed.
220
214
:returns: A `ContainerProxy` instance representing the new container.
221
215
:rtype: ~azure.cosmos.aio.ContainerProxy
@@ -285,8 +279,6 @@ async def create_container(
285
279
definition ["fullTextPolicy" ] = full_text_policy
286
280
if initial_headers is not None :
287
281
kwargs ['initial_headers' ] = initial_headers
288
- if throughput_bucket is not None :
289
- kwargs ['throughput_bucket' ] = throughput_bucket
290
282
request_options = _build_options (kwargs )
291
283
_set_throughput_options (offer = offer_throughput , request_options = request_options )
292
284
@@ -312,7 +304,6 @@ async def create_container_if_not_exists(
312
304
vector_embedding_policy : Optional [Dict [str , Any ]] = None ,
313
305
change_feed_policy : Optional [Dict [str , Any ]] = None ,
314
306
full_text_policy : Optional [Dict [str , Any ]] = None ,
315
- throughput_bucket : Optional [int ] = None ,
316
307
** kwargs : Any
317
308
) -> ContainerProxy :
318
309
"""Create a container if it does not exist already.
@@ -348,7 +339,6 @@ async def create_container_if_not_exists(
348
339
:keyword Dict[str, Any] full_text_policy: **provisional** The full text policy for the container.
349
340
Used to denote the default language to be used for all full text indexes, or to individually
350
341
assign a language to each full text index path.
351
- :keyword int throughput_bucket: The desired throughput bucket for the client
352
342
:raises ~azure.cosmos.exceptions.CosmosHttpResponseError: The container creation failed.
353
343
:returns: A `ContainerProxy` instance representing the new container.
354
344
:rtype: ~azure.cosmos.aio.ContainerProxy
@@ -393,7 +383,6 @@ async def create_container_if_not_exists(
393
383
vector_embedding_policy = vector_embedding_policy ,
394
384
change_feed_policy = change_feed_policy ,
395
385
full_text_policy = full_text_policy ,
396
- throughput_bucket = throughput_bucket ,
397
386
** kwargs
398
387
)
399
388
@@ -431,15 +420,13 @@ def list_containers(
431
420
max_item_count : Optional [int ] = None ,
432
421
initial_headers : Optional [Dict [str , str ]] = None ,
433
422
response_hook : Optional [Callable [[Mapping [str , Any ], AsyncItemPaged [Dict [str , Any ]]], None ]] = None ,
434
- throughput_bucket : Optional [int ] = None ,
435
423
** kwargs
436
424
) -> AsyncItemPaged [Dict [str , Any ]]:
437
425
"""List the containers in the database.
438
426
439
427
:keyword int max_item_count: Max number of items to be returned in the enumeration operation.
440
428
:keyword dict[str, str] initial_headers: Initial headers to be sent as part of the request.
441
429
:keyword response_hook: A callable invoked with the response metadata.
442
- :keyword int throughput_bucket: The desired throughput bucket for the client
443
430
:paramtype response_hook: Callable[[Mapping[str, Any], AsyncItemPaged[Dict[str, Any]]], None]
444
431
:returns: An AsyncItemPaged of container properties (dicts).
445
432
:rtype: AsyncItemPaged[Dict[str, Any]]
@@ -462,8 +449,6 @@ def list_containers(
462
449
DeprecationWarning )
463
450
if initial_headers is not None :
464
451
kwargs ['initial_headers' ] = initial_headers
465
- if throughput_bucket is not None :
466
- kwargs ["throughput_bucket" ] = throughput_bucket
467
452
feed_options = _build_options (kwargs )
468
453
if max_item_count is not None :
469
454
feed_options ["maxItemCount" ] = max_item_count
@@ -484,7 +469,6 @@ def query_containers(
484
469
max_item_count : Optional [int ] = None ,
485
470
initial_headers : Optional [Dict [str , str ]] = None ,
486
471
response_hook : Optional [Callable [[Mapping [str , Any ], AsyncItemPaged [Dict [str , Any ]]], None ]] = None ,
487
- throughput_bucket : Optional [int ] = None ,
488
472
** kwargs : Any
489
473
) -> AsyncItemPaged [Dict [str , Any ]]:
490
474
"""List the properties for containers in the current database.
@@ -496,7 +480,6 @@ def query_containers(
496
480
:keyword int max_item_count: Max number of items to be returned in the enumeration operation.
497
481
:keyword dict[str, str] initial_headers: Initial headers to be sent as part of the request.
498
482
:keyword response_hook: A callable invoked with the response metadata.
499
- :keyword int throughput_bucket: The desired throughput bucket for the client
500
483
:paramtype response_hook: Callable[[Mapping[str, Any], AsyncItemPaged[Dict[str, Any]]], None]
501
484
:returns: An AsyncItemPaged of container properties (dicts).
502
485
:rtype: AsyncItemPaged[Dict[str, Any]]
@@ -509,8 +492,6 @@ def query_containers(
509
492
DeprecationWarning )
510
493
if initial_headers is not None :
511
494
kwargs ['initial_headers' ] = initial_headers
512
- if throughput_bucket is not None :
513
- kwargs ["throughput_bucket" ] = throughput_bucket
514
495
feed_options = _build_options (kwargs )
515
496
if max_item_count is not None :
516
497
feed_options ["maxItemCount" ] = max_item_count
@@ -538,7 +519,6 @@ async def replace_container(
538
519
analytical_storage_ttl : Optional [int ] = None ,
539
520
computed_properties : Optional [List [Dict [str , str ]]] = None ,
540
521
full_text_policy : Optional [Dict [str , Any ]] = None ,
541
- throughput_bucket : Optional [int ] = None ,
542
522
** kwargs : Any
543
523
) -> ContainerProxy :
544
524
"""Reset the properties of the container.
@@ -567,7 +547,6 @@ async def replace_container(
567
547
:keyword Dict[str, Any] full_text_policy: **provisional** The full text policy for the container.
568
548
Used to denote the default language to be used for all full text indexes, or to individually
569
549
assign a language to each full text index path.
570
- :keyword int throughput_bucket: The desired throughput bucket for the client
571
550
:returns: A `ContainerProxy` instance representing the container after replace completed.
572
551
:raises ~azure.cosmos.exceptions.CosmosHttpResponseError: Raised if the container couldn't be replaced.
573
552
This includes if the container with given id does not exist.
@@ -603,8 +582,6 @@ async def replace_container(
603
582
DeprecationWarning )
604
583
if initial_headers is not None :
605
584
kwargs ['initial_headers' ] = initial_headers
606
- if throughput_bucket is not None :
607
- kwargs ['throughput_bucket' ] = throughput_bucket
608
585
request_options = _build_options (kwargs )
609
586
610
587
container_id = self ._get_container_id (container )
@@ -637,7 +614,6 @@ async def delete_container(
637
614
container : Union [str , ContainerProxy , Mapping [str , Any ]],
638
615
* ,
639
616
initial_headers : Optional [Dict [str , str ]] = None ,
640
- throughput_bucket : Optional [int ] = None ,
641
617
** kwargs : Any
642
618
) -> None :
643
619
"""Delete a container.
@@ -649,7 +625,6 @@ async def delete_container(
649
625
:keyword dict[str, str] initial_headers: Initial headers to be sent as part of the request.
650
626
:keyword response_hook: A callable invoked with the response metadata.
651
627
:paramtype response_hook: Callable[[Mapping[str, str], None], None]
652
- :keyword int throughput_bucket: The desired throughput bucket for the client
653
628
:raises ~azure.cosmos.exceptions.CosmosHttpResponseError: If the container couldn't be deleted.
654
629
:rtype: None
655
630
"""
@@ -673,8 +648,6 @@ async def delete_container(
673
648
DeprecationWarning )
674
649
if initial_headers is not None :
675
650
kwargs ['initial_headers' ] = initial_headers
676
- if throughput_bucket is not None :
677
- kwargs ['throughput_bucket' ] = throughput_bucket
678
651
request_options = _build_options (kwargs )
679
652
680
653
collection_link = self ._get_container_link (container )
0 commit comments