Skip to content

Commit d2529cf

Browse files
chore(internal): regenerate SDK with no functional changes
1 parent f958013 commit d2529cf

File tree

9 files changed

+18
-124
lines changed

9 files changed

+18
-124
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 193
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-a4ab6604a76d175e72a9e789ed92900b511a0dd1eefbb5b9eff7598d03805b43.yml
3-
openapi_spec_hash: b68d741be82e05899e816fd3c540c160
4-
config_hash: 2b667d8e1f2c879dc0cfac9aceed9eb3
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-d3cb9b32fcd7b10a75bdb3ab72be3ce62ef2ebbc4321663dc892bf653e69edcd.yml
3+
openapi_spec_hash: db205e154f216da622892c7b07d33234
4+
config_hash: 719d606666b99e520b83306733eee5d5

src/gitpod/resources/prebuilds.py

Lines changed: 4 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,6 @@ 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,
423421
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
424422
# The extra values given here take precedence over values defined on the client or passed to this method.
425423
extra_headers: Headers | None = None,
@@ -459,14 +457,7 @@ def create_warm_pool(
459457
project_id: project_id specifies the project this warm pool belongs to. The project must
460458
have prebuilds enabled.
461459
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.
460+
desired_size: desired_size is the number of warm instances to maintain.
470461
471462
extra_headers: Send extra headers
472463
@@ -483,8 +474,6 @@ def create_warm_pool(
483474
"environment_class_id": environment_class_id,
484475
"project_id": project_id,
485476
"desired_size": desired_size,
486-
"max_size": max_size,
487-
"min_size": min_size,
488477
},
489478
prebuild_create_warm_pool_params.PrebuildCreateWarmPoolParams,
490479
),
@@ -671,8 +660,6 @@ def update_warm_pool(
671660
*,
672661
warm_pool_id: str,
673662
desired_size: Optional[int] | Omit = omit,
674-
max_size: Optional[int] | Omit = omit,
675-
min_size: Optional[int] | Omit = omit,
676663
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
677664
# The extra values given here take precedence over values defined on the client or passed to this method.
678665
extra_headers: Headers | None = None,
@@ -697,14 +684,7 @@ def update_warm_pool(
697684
Args:
698685
warm_pool_id: warm_pool_id specifies the warm pool to update
699686
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.
687+
desired_size: desired_size updates the number of warm instances to maintain.
708688
709689
extra_headers: Send extra headers
710690
@@ -720,8 +700,6 @@ def update_warm_pool(
720700
{
721701
"warm_pool_id": warm_pool_id,
722702
"desired_size": desired_size,
723-
"max_size": max_size,
724-
"min_size": min_size,
725703
},
726704
prebuild_update_warm_pool_params.PrebuildUpdateWarmPoolParams,
727705
),
@@ -1107,8 +1085,6 @@ async def create_warm_pool(
11071085
environment_class_id: str,
11081086
project_id: str,
11091087
desired_size: int | Omit = omit,
1110-
max_size: Optional[int] | Omit = omit,
1111-
min_size: Optional[int] | Omit = omit,
11121088
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
11131089
# The extra values given here take precedence over values defined on the client or passed to this method.
11141090
extra_headers: Headers | None = None,
@@ -1148,14 +1124,7 @@ async def create_warm_pool(
11481124
project_id: project_id specifies the project this warm pool belongs to. The project must
11491125
have prebuilds enabled.
11501126
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.
1127+
desired_size: desired_size is the number of warm instances to maintain.
11591128
11601129
extra_headers: Send extra headers
11611130
@@ -1172,8 +1141,6 @@ async def create_warm_pool(
11721141
"environment_class_id": environment_class_id,
11731142
"project_id": project_id,
11741143
"desired_size": desired_size,
1175-
"max_size": max_size,
1176-
"min_size": min_size,
11771144
},
11781145
prebuild_create_warm_pool_params.PrebuildCreateWarmPoolParams,
11791146
),
@@ -1360,8 +1327,6 @@ async def update_warm_pool(
13601327
*,
13611328
warm_pool_id: str,
13621329
desired_size: Optional[int] | Omit = omit,
1363-
max_size: Optional[int] | Omit = omit,
1364-
min_size: Optional[int] | Omit = omit,
13651330
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
13661331
# The extra values given here take precedence over values defined on the client or passed to this method.
13671332
extra_headers: Headers | None = None,
@@ -1386,14 +1351,7 @@ async def update_warm_pool(
13861351
Args:
13871352
warm_pool_id: warm_pool_id specifies the warm pool to update
13881353
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.
1354+
desired_size: desired_size updates the number of warm instances to maintain.
13971355
13981356
extra_headers: Send extra headers
13991357
@@ -1409,8 +1367,6 @@ async def update_warm_pool(
14091367
{
14101368
"warm_pool_id": warm_pool_id,
14111369
"desired_size": desired_size,
1412-
"max_size": max_size,
1413-
"min_size": min_size,
14141370
},
14151371
prebuild_update_warm_pool_params.PrebuildUpdateWarmPoolParams,
14161372
),

src/gitpod/types/agent_list_prompts_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ class Filter(TypedDict, total=False):
3737

3838
is_template: Annotated[bool, PropertyInfo(alias="isTemplate")]
3939

40+
search: str
41+
"""
42+
search performs case-insensitive search across prompt name, description, and
43+
command.
44+
"""
45+
4046

4147
class Pagination(TypedDict, total=False):
4248
token: str

src/gitpod/types/prebuild_create_warm_pool_params.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from __future__ import annotations
44

5-
from typing import Optional
65
from typing_extensions import Required, Annotated, TypedDict
76

87
from .._utils import PropertyInfo
@@ -24,19 +23,4 @@ class PrebuildCreateWarmPoolParams(TypedDict, total=False):
2423
"""
2524

2625
desired_size: Annotated[int, PropertyInfo(alias="desiredSize")]
27-
"""
28-
desired_size is the number of warm instances to maintain. Deprecated: Use
29-
min_size and max_size instead for dynamic scaling.
30-
"""
31-
32-
max_size: Annotated[Optional[int], PropertyInfo(alias="maxSize")]
33-
"""
34-
max_size is the maximum number of warm instances to maintain. The pool will
35-
never scale above this value. Must be >= min_size and <= 20.
36-
"""
37-
38-
min_size: Annotated[Optional[int], PropertyInfo(alias="minSize")]
39-
"""
40-
min_size is the minimum number of warm instances to maintain. The pool will
41-
never scale below this value. Must be >= 1 and <= max_size.
42-
"""
26+
"""desired_size is the number of warm instances to maintain."""

src/gitpod/types/prebuild_update_warm_pool_params.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,4 @@ class PrebuildUpdateWarmPoolParams(TypedDict, total=False):
1515
"""warm_pool_id specifies the warm pool to update"""
1616

1717
desired_size: Annotated[Optional[int], PropertyInfo(alias="desiredSize")]
18-
"""
19-
desired_size updates the number of warm instances to maintain. Deprecated: Use
20-
min_size and max_size instead for dynamic scaling.
21-
"""
22-
23-
max_size: Annotated[Optional[int], PropertyInfo(alias="maxSize")]
24-
"""
25-
max_size updates the maximum number of warm instances to maintain. The pool will
26-
never scale above this value. Must be >= min_size and <= 20.
27-
"""
28-
29-
min_size: Annotated[Optional[int], PropertyInfo(alias="minSize")]
30-
"""
31-
min_size updates the minimum number of warm instances to maintain. The pool will
32-
never scale below this value. Must be >= 1 and <= max_size.
33-
"""
18+
"""desired_size updates the number of warm instances to maintain."""

src/gitpod/types/warm_pool_spec.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,7 @@ class WarmPoolSpec(BaseModel):
2020
"""
2121

2222
desired_size: Optional[int] = FieldInfo(alias="desiredSize", default=None)
23-
"""
24-
desired_size is the number of warm instances to maintain. Deprecated: Use
25-
min_size and max_size instead for dynamic scaling. Existing pools will be
26-
migrated to min_size=max_size=desired_size.
27-
"""
28-
29-
max_size: Optional[int] = FieldInfo(alias="maxSize", default=None)
30-
"""
31-
max_size is the maximum number of warm instances to maintain. The pool will
32-
never scale above this value. Must be >= min_size and <= 20.
33-
"""
34-
35-
min_size: Optional[int] = FieldInfo(alias="minSize", default=None)
36-
"""
37-
min_size is the minimum number of warm instances to maintain. The pool will
38-
never scale below this value. Must be >= 1 and <= max_size.
39-
"""
23+
"""desired_size is the number of warm instances to maintain."""
4024

4125
snapshot_id: Optional[str] = FieldInfo(alias="snapshotId", default=None)
4226
"""

src/gitpod/types/warm_pool_status.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,8 @@ class WarmPoolStatus(BaseModel):
2121
failure_message: Optional[str] = FieldInfo(alias="failureMessage", default=None)
2222
"""failure_message contains details about why the warm pool is degraded or failed"""
2323

24-
running_instances: Optional[int] = FieldInfo(alias="runningInstances", default=None)
25-
"""
26-
running_instances is the number of running warm instances in the pool, ready to
27-
be claimed for near-instant environment startup.
28-
"""
29-
3024
status_version: Optional[str] = FieldInfo(alias="statusVersion", default=None)
3125
"""
3226
status_version is incremented each time the status is updated. Used for
3327
optimistic concurrency control.
3428
"""
35-
36-
stopped_instances: Optional[int] = FieldInfo(alias="stoppedInstances", default=None)
37-
"""
38-
stopped_instances is the number of pre-provisioned but stopped instances in the
39-
pool. When a running instance is claimed, stopped instances are used to backfill
40-
the running pool faster than provisioning from scratch. Stopped instances only
41-
incur storage costs, allowing a larger total pool at lower cost than keeping all
42-
instances running.
43-
"""

tests/api_resources/test_agents.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ def test_method_list_prompts_with_all_params(self, client: Gitpod) -> None:
248248
"is_command": True,
249249
"is_skill": True,
250250
"is_template": True,
251+
"search": "search",
251252
},
252253
pagination={
253254
"token": "token",
@@ -800,6 +801,7 @@ async def test_method_list_prompts_with_all_params(self, async_client: AsyncGitp
800801
"is_command": True,
801802
"is_skill": True,
802803
"is_template": True,
804+
"search": "search",
803805
},
804806
pagination={
805807
"token": "token",

tests/api_resources/test_prebuilds.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,6 @@ def test_method_create_warm_pool_with_all_params(self, client: Gitpod) -> None:
279279
environment_class_id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
280280
project_id="b0e12f6c-4c67-429d-a4a6-d9838b5da047",
281281
desired_size=2,
282-
max_size=1,
283-
min_size=1,
284282
)
285283
assert_matches_type(PrebuildCreateWarmPoolResponse, prebuild, path=["response"])
286284

@@ -439,8 +437,6 @@ def test_method_update_warm_pool_with_all_params(self, client: Gitpod) -> None:
439437
prebuild = client.prebuilds.update_warm_pool(
440438
warm_pool_id="a1b2c3d4-5678-9abc-def0-1234567890ab",
441439
desired_size=5,
442-
max_size=1,
443-
min_size=1,
444440
)
445441
assert_matches_type(PrebuildUpdateWarmPoolResponse, prebuild, path=["response"])
446442

@@ -727,8 +723,6 @@ async def test_method_create_warm_pool_with_all_params(self, async_client: Async
727723
environment_class_id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
728724
project_id="b0e12f6c-4c67-429d-a4a6-d9838b5da047",
729725
desired_size=2,
730-
max_size=1,
731-
min_size=1,
732726
)
733727
assert_matches_type(PrebuildCreateWarmPoolResponse, prebuild, path=["response"])
734728

@@ -887,8 +881,6 @@ async def test_method_update_warm_pool_with_all_params(self, async_client: Async
887881
prebuild = await async_client.prebuilds.update_warm_pool(
888882
warm_pool_id="a1b2c3d4-5678-9abc-def0-1234567890ab",
889883
desired_size=5,
890-
max_size=1,
891-
min_size=1,
892884
)
893885
assert_matches_type(PrebuildUpdateWarmPoolResponse, prebuild, path=["response"])
894886

0 commit comments

Comments
 (0)