Skip to content

Commit 3efbc9f

Browse files
authored
Merge branch 'main' into instance-doc
2 parents ea38221 + 855c526 commit 3efbc9f

File tree

11 files changed

+840
-708
lines changed

11 files changed

+840
-708
lines changed

scaleway-async/poetry.lock

Lines changed: 31 additions & 32 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ classifiers = [
2525
[tool.poetry.dependencies]
2626
python = ">=3.10"
2727
scaleway-core = "*"
28-
pytest-cov = ">=6.3,<8.0"
2928

3029
[tool.poetry.group.dev.dependencies]
3130
scaleway-core = { path = "../scaleway-core", develop = true }
3231
ruff = ">=0.5.0,<0.13.3"
3332
mypy = "^1.5.1"
3433
ty = "^0.0.1a15"
35-
pyrefly = ">=0.24.2,<0.32.0"
3634
pytest = "^8.4.1"
35+
pyrefly = "^0.36.1"
36+
pytest-cov = "^6.3.0"
3737

3838
[build-system]
3939
requires = ["poetry-core"]

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ def unmarshal_BgpSession(data: Any) -> BgpSession:
6666
else:
6767
args["private_ip"] = None
6868

69+
field = data.get("peer_private_ip", None)
70+
if field is not None:
71+
args["peer_private_ip"] = field
72+
else:
73+
args["peer_private_ip"] = None
74+
6975
return BgpSession(**args)
7076

7177

@@ -783,6 +789,12 @@ def marshal_CreateConnectionRequestBgpConfig(
783789
if request.routing_policy_id is not None:
784790
output["routing_policy_id"] = request.routing_policy_id
785791

792+
if request.private_ip is not None:
793+
output["private_ip"] = request.private_ip
794+
795+
if request.peer_private_ip is not None:
796+
output["peer_private_ip"] = request.peer_private_ip
797+
786798
return output
787799

788800

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ def __str__(self) -> str:
167167
class BgpSession:
168168
routing_policy_id: str
169169
private_ip: str
170+
peer_private_ip: str
170171

171172

172173
@dataclass
@@ -190,6 +191,8 @@ class VpnGatewayPublicConfig:
190191
@dataclass
191192
class CreateConnectionRequestBgpConfig:
192193
routing_policy_id: str
194+
private_ip: Optional[str] = None
195+
peer_private_ip: Optional[str] = None
193196

194197

195198
@dataclass

0 commit comments

Comments
 (0)