@@ -418,6 +418,8 @@ def create_warm_pool(
418418 environment_class_id : str ,
419419 project_id : str ,
420420 desired_size : int | Omit = omit ,
421+ max_size : Optional [int ] | Omit = omit ,
422+ min_size : Optional [int ] | Omit = omit ,
421423 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
422424 # The extra values given here take precedence over values defined on the client or passed to this method.
423425 extra_headers : Headers | None = None ,
@@ -457,7 +459,14 @@ def create_warm_pool(
457459 project_id: project_id specifies the project this warm pool belongs to. The project must
458460 have prebuilds enabled.
459461
460- desired_size: desired_size is the number of warm instances to maintain.
462+ desired_size: desired_size is the number of warm instances to maintain. Deprecated: Use
463+ min_size and max_size instead for dynamic scaling.
464+
465+ max_size: max_size is the maximum number of warm instances to maintain. The pool will
466+ never scale above this value. Must be >= min_size and <= 20.
467+
468+ min_size: min_size is the minimum number of warm instances to maintain. The pool will
469+ never scale below this value. Must be >= 1 and <= max_size.
461470
462471 extra_headers: Send extra headers
463472
@@ -474,6 +483,8 @@ def create_warm_pool(
474483 "environment_class_id" : environment_class_id ,
475484 "project_id" : project_id ,
476485 "desired_size" : desired_size ,
486+ "max_size" : max_size ,
487+ "min_size" : min_size ,
477488 },
478489 prebuild_create_warm_pool_params .PrebuildCreateWarmPoolParams ,
479490 ),
@@ -660,6 +671,8 @@ def update_warm_pool(
660671 * ,
661672 warm_pool_id : str ,
662673 desired_size : Optional [int ] | Omit = omit ,
674+ max_size : Optional [int ] | Omit = omit ,
675+ min_size : Optional [int ] | Omit = omit ,
663676 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
664677 # The extra values given here take precedence over values defined on the client or passed to this method.
665678 extra_headers : Headers | None = None ,
@@ -684,7 +697,14 @@ def update_warm_pool(
684697 Args:
685698 warm_pool_id: warm_pool_id specifies the warm pool to update
686699
687- desired_size: desired_size updates the number of warm instances to maintain.
700+ desired_size: desired_size updates the number of warm instances to maintain. Deprecated: Use
701+ min_size and max_size instead for dynamic scaling.
702+
703+ max_size: max_size updates the maximum number of warm instances to maintain. The pool will
704+ never scale above this value. Must be >= min_size and <= 20.
705+
706+ min_size: min_size updates the minimum number of warm instances to maintain. The pool will
707+ never scale below this value. Must be >= 1 and <= max_size.
688708
689709 extra_headers: Send extra headers
690710
@@ -700,6 +720,8 @@ def update_warm_pool(
700720 {
701721 "warm_pool_id" : warm_pool_id ,
702722 "desired_size" : desired_size ,
723+ "max_size" : max_size ,
724+ "min_size" : min_size ,
703725 },
704726 prebuild_update_warm_pool_params .PrebuildUpdateWarmPoolParams ,
705727 ),
@@ -1085,6 +1107,8 @@ async def create_warm_pool(
10851107 environment_class_id : str ,
10861108 project_id : str ,
10871109 desired_size : int | Omit = omit ,
1110+ max_size : Optional [int ] | Omit = omit ,
1111+ min_size : Optional [int ] | Omit = omit ,
10881112 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
10891113 # The extra values given here take precedence over values defined on the client or passed to this method.
10901114 extra_headers : Headers | None = None ,
@@ -1124,7 +1148,14 @@ async def create_warm_pool(
11241148 project_id: project_id specifies the project this warm pool belongs to. The project must
11251149 have prebuilds enabled.
11261150
1127- desired_size: desired_size is the number of warm instances to maintain.
1151+ desired_size: desired_size is the number of warm instances to maintain. Deprecated: Use
1152+ min_size and max_size instead for dynamic scaling.
1153+
1154+ max_size: max_size is the maximum number of warm instances to maintain. The pool will
1155+ never scale above this value. Must be >= min_size and <= 20.
1156+
1157+ min_size: min_size is the minimum number of warm instances to maintain. The pool will
1158+ never scale below this value. Must be >= 1 and <= max_size.
11281159
11291160 extra_headers: Send extra headers
11301161
@@ -1141,6 +1172,8 @@ async def create_warm_pool(
11411172 "environment_class_id" : environment_class_id ,
11421173 "project_id" : project_id ,
11431174 "desired_size" : desired_size ,
1175+ "max_size" : max_size ,
1176+ "min_size" : min_size ,
11441177 },
11451178 prebuild_create_warm_pool_params .PrebuildCreateWarmPoolParams ,
11461179 ),
@@ -1327,6 +1360,8 @@ async def update_warm_pool(
13271360 * ,
13281361 warm_pool_id : str ,
13291362 desired_size : Optional [int ] | Omit = omit ,
1363+ max_size : Optional [int ] | Omit = omit ,
1364+ min_size : Optional [int ] | Omit = omit ,
13301365 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
13311366 # The extra values given here take precedence over values defined on the client or passed to this method.
13321367 extra_headers : Headers | None = None ,
@@ -1351,7 +1386,14 @@ async def update_warm_pool(
13511386 Args:
13521387 warm_pool_id: warm_pool_id specifies the warm pool to update
13531388
1354- desired_size: desired_size updates the number of warm instances to maintain.
1389+ desired_size: desired_size updates the number of warm instances to maintain. Deprecated: Use
1390+ min_size and max_size instead for dynamic scaling.
1391+
1392+ max_size: max_size updates the maximum number of warm instances to maintain. The pool will
1393+ never scale above this value. Must be >= min_size and <= 20.
1394+
1395+ min_size: min_size updates the minimum number of warm instances to maintain. The pool will
1396+ never scale below this value. Must be >= 1 and <= max_size.
13551397
13561398 extra_headers: Send extra headers
13571399
@@ -1367,6 +1409,8 @@ async def update_warm_pool(
13671409 {
13681410 "warm_pool_id" : warm_pool_id ,
13691411 "desired_size" : desired_size ,
1412+ "max_size" : max_size ,
1413+ "min_size" : min_size ,
13701414 },
13711415 prebuild_update_warm_pool_params .PrebuildUpdateWarmPoolParams ,
13721416 ),
0 commit comments