Skip to content

Commit 29d8e3e

Browse files
authored
feat(s2s_vpn): return connection_ids with list of gws (#1464)
1 parent d9b5076 commit 29d8e3e

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,12 @@ def unmarshal_CustomerGateway(data: Any) -> CustomerGateway:
317317
else:
318318
args["asn"] = 0
319319

320+
field = data.get("connection_ids", None)
321+
if field is not None:
322+
args["connection_ids"] = field
323+
else:
324+
args["connection_ids"] = []
325+
320326
field = data.get("region", None)
321327
if field is not None:
322328
args["region"] = field
@@ -547,6 +553,12 @@ def unmarshal_VpnGateway(data: Any) -> VpnGateway:
547553
else:
548554
args["asn"] = 0
549555

556+
field = data.get("connection_ids", None)
557+
if field is not None:
558+
args["connection_ids"] = field
559+
else:
560+
args["connection_ids"] = []
561+
550562
field = data.get("zone", None)
551563
if field is not None:
552564
args["zone"] = field

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,11 @@ class CustomerGateway:
361361
AS Number of the customer gateway.
362362
"""
363363

364+
connection_ids: list[str]
365+
"""
366+
List of connection ids of the customer gateway.
367+
"""
368+
364369
region: ScwRegion
365370
"""
366371
Region of the customer gateway.
@@ -514,6 +519,11 @@ class VpnGateway:
514519
Autonomous System Number (ASN) of the VPN gateway, used by Border Gateway Protocol (BGP) to exchange routing information with the customer gateway.
515520
"""
516521

522+
connection_ids: list[str]
523+
"""
524+
List of connection ids of the VPN gateway.
525+
"""
526+
517527
zone: ScwZone
518528
"""
519529
Zone where the VPN gateway resource is currently provisioned.

scaleway/scaleway/s2s_vpn/v1alpha1/marshalling.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,12 @@ def unmarshal_CustomerGateway(data: Any) -> CustomerGateway:
317317
else:
318318
args["asn"] = 0
319319

320+
field = data.get("connection_ids", None)
321+
if field is not None:
322+
args["connection_ids"] = field
323+
else:
324+
args["connection_ids"] = []
325+
320326
field = data.get("region", None)
321327
if field is not None:
322328
args["region"] = field
@@ -547,6 +553,12 @@ def unmarshal_VpnGateway(data: Any) -> VpnGateway:
547553
else:
548554
args["asn"] = 0
549555

556+
field = data.get("connection_ids", None)
557+
if field is not None:
558+
args["connection_ids"] = field
559+
else:
560+
args["connection_ids"] = []
561+
550562
field = data.get("zone", None)
551563
if field is not None:
552564
args["zone"] = field

scaleway/scaleway/s2s_vpn/v1alpha1/types.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,11 @@ class CustomerGateway:
361361
AS Number of the customer gateway.
362362
"""
363363

364+
connection_ids: list[str]
365+
"""
366+
List of connection ids of the customer gateway.
367+
"""
368+
364369
region: ScwRegion
365370
"""
366371
Region of the customer gateway.
@@ -514,6 +519,11 @@ class VpnGateway:
514519
Autonomous System Number (ASN) of the VPN gateway, used by Border Gateway Protocol (BGP) to exchange routing information with the customer gateway.
515520
"""
516521

522+
connection_ids: list[str]
523+
"""
524+
List of connection ids of the VPN gateway.
525+
"""
526+
517527
zone: ScwZone
518528
"""
519529
Zone where the VPN gateway resource is currently provisioned.

0 commit comments

Comments
 (0)