Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,12 @@ def unmarshal_GatewayType(data: Any) -> GatewayType:
else:
args["allowed_connections"] = None

field = data.get("zones", None)
if field is not None:
args["zones"] = field
else:
args["zones"] = None

field = data.get("region", None)
if field is not None:
args["region"] = field
Expand Down
1 change: 1 addition & 0 deletions scaleway-async/scaleway_async/s2s_vpn/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ class GatewayType:
name: str
bandwidth: int
allowed_connections: int
zones: list[str]
region: ScwRegion
"""
Region to target. If none is passed will use default region from the config.
Expand Down
6 changes: 6 additions & 0 deletions scaleway/scaleway/s2s_vpn/v1alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,12 @@ def unmarshal_GatewayType(data: Any) -> GatewayType:
else:
args["allowed_connections"] = None

field = data.get("zones", None)
if field is not None:
args["zones"] = field
else:
args["zones"] = None

field = data.get("region", None)
if field is not None:
args["region"] = field
Expand Down
1 change: 1 addition & 0 deletions scaleway/scaleway/s2s_vpn/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ class GatewayType:
name: str
bandwidth: int
allowed_connections: int
zones: list[str]
region: ScwRegion
"""
Region to target. If none is passed will use default region from the config.
Expand Down