Skip to content

Commit 1160a67

Browse files
authored
Merge branch 'main' into dependabot/pip/scaleway-core/ruff-0.7.1
2 parents 2b2f155 + 6a0f5e4 commit 1160a67

File tree

34 files changed

+1766
-168
lines changed

34 files changed

+1766
-168
lines changed

scaleway-async/poetry.lock

Lines changed: 54 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scaleway-async/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ scaleway-core = "*"
2828

2929
[tool.poetry.group.dev.dependencies]
3030
scaleway-core = { path = "../scaleway-core", develop = true }
31-
ruff = ">=0.5.0,<0.6.9"
31+
ruff = ">=0.5.0,<0.7.2"
3232
mypy = "^1.5.1"
3333

3434
[build-system]

scaleway-async/scaleway_async/applesilicon/v1alpha1/marshalling.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@ def unmarshal_Server(data: Any) -> Server:
266266
if field is not None:
267267
args["sudo_password"] = field
268268

269+
field = data.get("vnc_port", None)
270+
if field is not None:
271+
args["vnc_port"] = field
272+
269273
field = data.get("status", None)
270274
if field is not None:
271275
args["status"] = field

scaleway-async/scaleway_async/applesilicon/v1alpha1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,11 @@ class Server:
225225
Admin password required to execute commands.
226226
"""
227227

228+
vnc_port: int
229+
"""
230+
VNC port to use for remote desktop connection.
231+
"""
232+
228233
status: ServerStatus
229234
"""
230235
Current status of the server.

scaleway-async/scaleway_async/container/v1beta1/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
from .types import TriggerInputType
2424
from .types import TriggerStatus
2525
from .content import TRIGGER_TRANSIENT_STATUSES
26+
from .types import ContainerHealthCheckSpecHTTPProbe
27+
from .types import ContainerHealthCheckSpecTCPProbe
28+
from .types import ContainerHealthCheckSpec
2629
from .types import ContainerScalingOption
2730
from .types import SecretHashedValue
2831
from .types import TriggerMnqNatsClientConfig
@@ -100,6 +103,9 @@
100103
"TriggerInputType",
101104
"TriggerStatus",
102105
"TRIGGER_TRANSIENT_STATUSES",
106+
"ContainerHealthCheckSpecHTTPProbe",
107+
"ContainerHealthCheckSpecTCPProbe",
108+
"ContainerHealthCheckSpec",
103109
"ContainerScalingOption",
104110
"SecretHashedValue",
105111
"TriggerMnqNatsClientConfig",

scaleway-async/scaleway_async/container/v1beta1/api.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
ListTokensRequestOrderBy,
3030
ListTriggersRequestOrderBy,
3131
Container,
32+
ContainerHealthCheckSpec,
3233
ContainerScalingOption,
3334
CreateContainerRequest,
3435
CreateCronRequest,
@@ -603,6 +604,7 @@ async def create_container(
603604
sandbox: Optional[ContainerSandbox] = None,
604605
local_storage_limit: Optional[int] = None,
605606
scaling_option: Optional[ContainerScalingOption] = None,
607+
health_check: Optional[ContainerHealthCheckSpec] = None,
606608
) -> Container:
607609
"""
608610
Create a new container.
@@ -630,6 +632,8 @@ async def create_container(
630632
:param local_storage_limit: Local storage limit of the container (in MB).
631633
:param scaling_option: Possible values:
632634
- concurrent_requests_threshold: Scale depending on the number of concurrent requests being processed per container instance.
635+
- cpu_usage_threshold: Scale depending on the CPU usage of a container instance.
636+
:param health_check: Health check configuration of the container.
633637
:return: :class:`Container <Container>`
634638
635639
Usage:
@@ -670,6 +674,7 @@ async def create_container(
670674
sandbox=sandbox,
671675
local_storage_limit=local_storage_limit,
672676
scaling_option=scaling_option,
677+
health_check=health_check,
673678
),
674679
self.client,
675680
),
@@ -701,6 +706,7 @@ async def update_container(
701706
sandbox: Optional[ContainerSandbox] = None,
702707
local_storage_limit: Optional[int] = None,
703708
scaling_option: Optional[ContainerScalingOption] = None,
709+
health_check: Optional[ContainerHealthCheckSpec] = None,
704710
) -> Container:
705711
"""
706712
Update an existing container.
@@ -728,6 +734,9 @@ async def update_container(
728734
:param local_storage_limit: Local storage limit of the container (in MB).
729735
:param scaling_option: Possible values:
730736
- concurrent_requests_threshold: Scale depending on the number of concurrent requests being processed per container instance.
737+
- cpu_usage_threshold: Scale depending on the CPU usage of a container instance.
738+
:param health_check: Health check configuration of the container.
739+
731740
:return: :class:`Container <Container>`
732741
733742
Usage:
@@ -768,6 +777,7 @@ async def update_container(
768777
sandbox=sandbox,
769778
local_storage_limit=local_storage_limit,
770779
scaling_option=scaling_option,
780+
health_check=health_check,
771781
),
772782
self.client,
773783
),

0 commit comments

Comments
 (0)