Skip to content

Commit 22a7994

Browse files
chore(internal): regenerate SDK with no functional changes
1 parent db63d58 commit 22a7994

10 files changed

Lines changed: 48 additions & 15 deletions

.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-5843fddc36a9619ea8a4c4491d6ddb3b8a18a3b9d995391bc7b9265350e6e08f.yml
3-
openapi_spec_hash: c8e7ad218f0999c9b9579724805a9f97
4-
config_hash: 719d606666b99e520b83306733eee5d5
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-a4e4d9807871b7c4f572b0ad7eaac8954d12451f30bb5788277015c7064c3440.yml
3+
openapi_spec_hash: cff2a4560986a873ccfbbd118814e4e9
4+
config_hash: 7a2cbe5967b1eef12830d2a23fc32c83

src/gitpod/resources/prebuilds.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,8 @@ def create_warm_pool(
466466
never scale above this value. Must be >= min_size and <= 20.
467467
468468
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.
469+
never scale below this value. Must be >= 0 and <= max_size. Set to 0 to allow
470+
full scale-down.
470471
471472
extra_headers: Send extra headers
472473
@@ -704,7 +705,8 @@ def update_warm_pool(
704705
never scale above this value. Must be >= min_size and <= 20.
705706
706707
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.
708+
never scale below this value. Must be >= 0 and <= max_size. Set to 0 to allow
709+
full scale-down.
708710
709711
extra_headers: Send extra headers
710712
@@ -1155,7 +1157,8 @@ async def create_warm_pool(
11551157
never scale above this value. Must be >= min_size and <= 20.
11561158
11571159
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.
1160+
never scale below this value. Must be >= 0 and <= max_size. Set to 0 to allow
1161+
full scale-down.
11591162
11601163
extra_headers: Send extra headers
11611164
@@ -1393,7 +1396,8 @@ async def update_warm_pool(
13931396
never scale above this value. Must be >= min_size and <= 20.
13941397
13951398
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.
1399+
never scale below this value. Must be >= 0 and <= max_size. Set to 0 to allow
1400+
full scale-down.
13971401
13981402
extra_headers: Send extra headers
13991403

src/gitpod/types/metrics_configuration.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
from typing import Optional
44

5+
from pydantic import Field as FieldInfo
6+
57
from .._models import BaseModel
68

79
__all__ = ["MetricsConfiguration"]
@@ -11,6 +13,12 @@ class MetricsConfiguration(BaseModel):
1113
enabled: Optional[bool] = None
1214
"""enabled indicates whether the runner should collect metrics"""
1315

16+
managed_metrics_enabled: Optional[bool] = FieldInfo(alias="managedMetricsEnabled", default=None)
17+
"""
18+
When true, the runner pushes metrics to the management plane via
19+
ReportRunnerMetrics instead of directly to the remote_write endpoint.
20+
"""
21+
1422
password: Optional[str] = None
1523
"""password is the password to use for the metrics collector"""
1624

src/gitpod/types/metrics_configuration_param.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
from __future__ import annotations
44

5-
from typing_extensions import TypedDict
5+
from typing_extensions import Annotated, TypedDict
6+
7+
from .._utils import PropertyInfo
68

79
__all__ = ["MetricsConfigurationParam"]
810

@@ -11,6 +13,12 @@ class MetricsConfigurationParam(TypedDict, total=False):
1113
enabled: bool
1214
"""enabled indicates whether the runner should collect metrics"""
1315

16+
managed_metrics_enabled: Annotated[bool, PropertyInfo(alias="managedMetricsEnabled")]
17+
"""
18+
When true, the runner pushes metrics to the management plane via
19+
ReportRunnerMetrics instead of directly to the remote_write endpoint.
20+
"""
21+
1422
password: str
1523
"""password is the password to use for the metrics collector"""
1624

src/gitpod/types/prebuild_create_warm_pool_params.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@ class PrebuildCreateWarmPoolParams(TypedDict, total=False):
3838
min_size: Annotated[Optional[int], PropertyInfo(alias="minSize")]
3939
"""
4040
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.
41+
never scale below this value. Must be >= 0 and <= max_size. Set to 0 to allow
42+
full scale-down.
4243
"""

src/gitpod/types/prebuild_update_warm_pool_params.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@ class PrebuildUpdateWarmPoolParams(TypedDict, total=False):
2929
min_size: Annotated[Optional[int], PropertyInfo(alias="minSize")]
3030
"""
3131
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.
32+
never scale below this value. Must be >= 0 and <= max_size. Set to 0 to allow
33+
full scale-down.
3334
"""

src/gitpod/types/runner_update_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ class SpecConfigurationMetrics(TypedDict, total=False):
3333
enabled: Optional[bool]
3434
"""enabled indicates whether the runner should collect metrics"""
3535

36+
managed_metrics_enabled: Annotated[Optional[bool], PropertyInfo(alias="managedMetricsEnabled")]
37+
"""
38+
When true, the runner pushes metrics to the management plane via
39+
ReportRunnerMetrics instead of directly to the remote_write endpoint.
40+
"""
41+
3642
password: Optional[str]
3743
"""password is the password to use for the metrics collector"""
3844

src/gitpod/types/warm_pool_spec.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ class WarmPoolSpec(BaseModel):
3535
min_size: Optional[int] = FieldInfo(alias="minSize", default=None)
3636
"""
3737
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.
38+
never scale below this value. Must be >= 0 and <= max_size. Set to 0 to allow
39+
full scale-down.
3940
"""
4041

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

tests/api_resources/test_prebuilds.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def test_method_create_warm_pool_with_all_params(self, client: Gitpod) -> None:
280280
project_id="b0e12f6c-4c67-429d-a4a6-d9838b5da047",
281281
desired_size=2,
282282
max_size=1,
283-
min_size=1,
283+
min_size=20,
284284
)
285285
assert_matches_type(PrebuildCreateWarmPoolResponse, prebuild, path=["response"])
286286

@@ -440,7 +440,7 @@ def test_method_update_warm_pool_with_all_params(self, client: Gitpod) -> None:
440440
warm_pool_id="a1b2c3d4-5678-9abc-def0-1234567890ab",
441441
desired_size=5,
442442
max_size=1,
443-
min_size=1,
443+
min_size=20,
444444
)
445445
assert_matches_type(PrebuildUpdateWarmPoolResponse, prebuild, path=["response"])
446446

@@ -728,7 +728,7 @@ async def test_method_create_warm_pool_with_all_params(self, async_client: Async
728728
project_id="b0e12f6c-4c67-429d-a4a6-d9838b5da047",
729729
desired_size=2,
730730
max_size=1,
731-
min_size=1,
731+
min_size=20,
732732
)
733733
assert_matches_type(PrebuildCreateWarmPoolResponse, prebuild, path=["response"])
734734

@@ -888,7 +888,7 @@ async def test_method_update_warm_pool_with_all_params(self, async_client: Async
888888
warm_pool_id="a1b2c3d4-5678-9abc-def0-1234567890ab",
889889
desired_size=5,
890890
max_size=1,
891-
min_size=1,
891+
min_size=20,
892892
)
893893
assert_matches_type(PrebuildUpdateWarmPoolResponse, prebuild, path=["response"])
894894

tests/api_resources/test_runners.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def test_method_create_with_all_params(self, client: Gitpod) -> None:
5050
"log_level": "LOG_LEVEL_UNSPECIFIED",
5151
"metrics": {
5252
"enabled": True,
53+
"managed_metrics_enabled": True,
5354
"password": "password",
5455
"url": "url",
5556
"username": "username",
@@ -144,6 +145,7 @@ def test_method_update_with_all_params(self, client: Gitpod) -> None:
144145
"log_level": "LOG_LEVEL_UNSPECIFIED",
145146
"metrics": {
146147
"enabled": True,
148+
"managed_metrics_enabled": True,
147149
"password": "password",
148150
"url": "url",
149151
"username": "username",
@@ -557,6 +559,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncGitpod) ->
557559
"log_level": "LOG_LEVEL_UNSPECIFIED",
558560
"metrics": {
559561
"enabled": True,
562+
"managed_metrics_enabled": True,
560563
"password": "password",
561564
"url": "url",
562565
"username": "username",
@@ -651,6 +654,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncGitpod) ->
651654
"log_level": "LOG_LEVEL_UNSPECIFIED",
652655
"metrics": {
653656
"enabled": True,
657+
"managed_metrics_enabled": True,
654658
"password": "password",
655659
"url": "url",
656660
"username": "username",

0 commit comments

Comments
 (0)