From f54e9df6a348bf7bd6f0f5d4b3bfacae9dd77c9c Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Sun, 8 Feb 2026 12:11:14 +0000 Subject: [PATCH] feat: update generated APIs --- scaleway-async/scaleway_async/vpc/v2/api.py | 6 +++++ .../scaleway_async/vpc/v2/marshalling.py | 24 ++++++++++++++----- scaleway-async/scaleway_async/vpc/v2/types.py | 15 ++++++++++++ scaleway/scaleway/vpc/v2/api.py | 6 +++++ scaleway/scaleway/vpc/v2/marshalling.py | 24 ++++++++++++++----- scaleway/scaleway/vpc/v2/types.py | 15 ++++++++++++ 6 files changed, 78 insertions(+), 12 deletions(-) diff --git a/scaleway-async/scaleway_async/vpc/v2/api.py b/scaleway-async/scaleway_async/vpc/v2/api.py index f5e36cdc9..7b683ce6c 100644 --- a/scaleway-async/scaleway_async/vpc/v2/api.py +++ b/scaleway-async/scaleway_async/vpc/v2/api.py @@ -955,6 +955,7 @@ async def create_route( tags: Optional[list[str]] = None, nexthop_resource_id: Optional[str] = None, nexthop_private_network_id: Optional[str] = None, + nexthop_vpc_connector_id: Optional[str] = None, ) -> Route: """ Create a Route. @@ -966,6 +967,7 @@ async def create_route( :param tags: Tags of the Route. :param nexthop_resource_id: ID of the nexthop resource. :param nexthop_private_network_id: ID of the nexthop private network. + :param nexthop_vpc_connector_id: ID of the nexthop VPC Connector. :return: :class:`Route ` Usage: @@ -994,6 +996,7 @@ async def create_route( tags=tags, nexthop_resource_id=nexthop_resource_id, nexthop_private_network_id=nexthop_private_network_id, + nexthop_vpc_connector_id=nexthop_vpc_connector_id, ), self.client, ), @@ -1046,6 +1049,7 @@ async def update_route( destination: Optional[str] = None, nexthop_resource_id: Optional[str] = None, nexthop_private_network_id: Optional[str] = None, + nexthop_vpc_connector_id: Optional[str] = None, ) -> Route: """ Update Route. @@ -1057,6 +1061,7 @@ async def update_route( :param destination: Destination of the Route. :param nexthop_resource_id: ID of the nexthop resource. :param nexthop_private_network_id: ID of the nexthop private network. + :param nexthop_vpc_connector_id: ID of the nexthop VPC connector. :return: :class:`Route ` Usage: @@ -1084,6 +1089,7 @@ async def update_route( destination=destination, nexthop_resource_id=nexthop_resource_id, nexthop_private_network_id=nexthop_private_network_id, + nexthop_vpc_connector_id=nexthop_vpc_connector_id, ), self.client, ), diff --git a/scaleway-async/scaleway_async/vpc/v2/marshalling.py b/scaleway-async/scaleway_async/vpc/v2/marshalling.py index 9d80f5ab0..5e5659d2a 100644 --- a/scaleway-async/scaleway_async/vpc/v2/marshalling.py +++ b/scaleway-async/scaleway_async/vpc/v2/marshalling.py @@ -213,6 +213,12 @@ def unmarshal_Route(data: Any) -> Route: else: args["destination"] = None + field = data.get("nexthop_resource_id", None) + if field is not None: + args["nexthop_resource_id"] = field + else: + args["nexthop_resource_id"] = None + field = data.get("is_read_only", None) if field is not None: args["is_read_only"] = field @@ -225,18 +231,18 @@ def unmarshal_Route(data: Any) -> Route: else: args["region"] = None - field = data.get("nexthop_resource_id", None) - if field is not None: - args["nexthop_resource_id"] = field - else: - args["nexthop_resource_id"] = None - field = data.get("nexthop_private_network_id", None) if field is not None: args["nexthop_private_network_id"] = field else: args["nexthop_private_network_id"] = None + field = data.get("nexthop_vpc_connector_id", None) + if field is not None: + args["nexthop_vpc_connector_id"] = field + else: + args["nexthop_vpc_connector_id"] = None + field = data.get("created_at", None) if field is not None: args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field @@ -767,6 +773,9 @@ def marshal_CreateRouteRequest( if request.nexthop_private_network_id is not None: output["nexthop_private_network_id"] = request.nexthop_private_network_id + if request.nexthop_vpc_connector_id is not None: + output["nexthop_vpc_connector_id"] = request.nexthop_vpc_connector_id + return output @@ -921,6 +930,9 @@ def marshal_UpdateRouteRequest( if request.nexthop_private_network_id is not None: output["nexthop_private_network_id"] = request.nexthop_private_network_id + if request.nexthop_vpc_connector_id is not None: + output["nexthop_vpc_connector_id"] = request.nexthop_vpc_connector_id + return output diff --git a/scaleway-async/scaleway_async/vpc/v2/types.py b/scaleway-async/scaleway_async/vpc/v2/types.py index 038274983..03d01809e 100644 --- a/scaleway-async/scaleway_async/vpc/v2/types.py +++ b/scaleway-async/scaleway_async/vpc/v2/types.py @@ -241,6 +241,11 @@ class Route: ID of the nexthop private network. """ + nexthop_vpc_connector_id: Optional[str] = None + """ + ID of the nexthop VPC connector. + """ + created_at: Optional[datetime] = None """ Date the Route was created. @@ -536,6 +541,11 @@ class CreateRouteRequest: ID of the nexthop private network. """ + nexthop_vpc_connector_id: Optional[str] = None + """ + ID of the nexthop VPC Connector. + """ + @dataclass class CreateVPCConnectorRequest: @@ -1126,6 +1136,11 @@ class UpdateRouteRequest: ID of the nexthop private network. """ + nexthop_vpc_connector_id: Optional[str] = None + """ + ID of the nexthop VPC connector. + """ + @dataclass class UpdateVPCConnectorRequest: diff --git a/scaleway/scaleway/vpc/v2/api.py b/scaleway/scaleway/vpc/v2/api.py index a573053f4..7057cc27f 100644 --- a/scaleway/scaleway/vpc/v2/api.py +++ b/scaleway/scaleway/vpc/v2/api.py @@ -955,6 +955,7 @@ def create_route( tags: Optional[list[str]] = None, nexthop_resource_id: Optional[str] = None, nexthop_private_network_id: Optional[str] = None, + nexthop_vpc_connector_id: Optional[str] = None, ) -> Route: """ Create a Route. @@ -966,6 +967,7 @@ def create_route( :param tags: Tags of the Route. :param nexthop_resource_id: ID of the nexthop resource. :param nexthop_private_network_id: ID of the nexthop private network. + :param nexthop_vpc_connector_id: ID of the nexthop VPC Connector. :return: :class:`Route ` Usage: @@ -994,6 +996,7 @@ def create_route( tags=tags, nexthop_resource_id=nexthop_resource_id, nexthop_private_network_id=nexthop_private_network_id, + nexthop_vpc_connector_id=nexthop_vpc_connector_id, ), self.client, ), @@ -1046,6 +1049,7 @@ def update_route( destination: Optional[str] = None, nexthop_resource_id: Optional[str] = None, nexthop_private_network_id: Optional[str] = None, + nexthop_vpc_connector_id: Optional[str] = None, ) -> Route: """ Update Route. @@ -1057,6 +1061,7 @@ def update_route( :param destination: Destination of the Route. :param nexthop_resource_id: ID of the nexthop resource. :param nexthop_private_network_id: ID of the nexthop private network. + :param nexthop_vpc_connector_id: ID of the nexthop VPC connector. :return: :class:`Route ` Usage: @@ -1084,6 +1089,7 @@ def update_route( destination=destination, nexthop_resource_id=nexthop_resource_id, nexthop_private_network_id=nexthop_private_network_id, + nexthop_vpc_connector_id=nexthop_vpc_connector_id, ), self.client, ), diff --git a/scaleway/scaleway/vpc/v2/marshalling.py b/scaleway/scaleway/vpc/v2/marshalling.py index 9d80f5ab0..5e5659d2a 100644 --- a/scaleway/scaleway/vpc/v2/marshalling.py +++ b/scaleway/scaleway/vpc/v2/marshalling.py @@ -213,6 +213,12 @@ def unmarshal_Route(data: Any) -> Route: else: args["destination"] = None + field = data.get("nexthop_resource_id", None) + if field is not None: + args["nexthop_resource_id"] = field + else: + args["nexthop_resource_id"] = None + field = data.get("is_read_only", None) if field is not None: args["is_read_only"] = field @@ -225,18 +231,18 @@ def unmarshal_Route(data: Any) -> Route: else: args["region"] = None - field = data.get("nexthop_resource_id", None) - if field is not None: - args["nexthop_resource_id"] = field - else: - args["nexthop_resource_id"] = None - field = data.get("nexthop_private_network_id", None) if field is not None: args["nexthop_private_network_id"] = field else: args["nexthop_private_network_id"] = None + field = data.get("nexthop_vpc_connector_id", None) + if field is not None: + args["nexthop_vpc_connector_id"] = field + else: + args["nexthop_vpc_connector_id"] = None + field = data.get("created_at", None) if field is not None: args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field @@ -767,6 +773,9 @@ def marshal_CreateRouteRequest( if request.nexthop_private_network_id is not None: output["nexthop_private_network_id"] = request.nexthop_private_network_id + if request.nexthop_vpc_connector_id is not None: + output["nexthop_vpc_connector_id"] = request.nexthop_vpc_connector_id + return output @@ -921,6 +930,9 @@ def marshal_UpdateRouteRequest( if request.nexthop_private_network_id is not None: output["nexthop_private_network_id"] = request.nexthop_private_network_id + if request.nexthop_vpc_connector_id is not None: + output["nexthop_vpc_connector_id"] = request.nexthop_vpc_connector_id + return output diff --git a/scaleway/scaleway/vpc/v2/types.py b/scaleway/scaleway/vpc/v2/types.py index 038274983..03d01809e 100644 --- a/scaleway/scaleway/vpc/v2/types.py +++ b/scaleway/scaleway/vpc/v2/types.py @@ -241,6 +241,11 @@ class Route: ID of the nexthop private network. """ + nexthop_vpc_connector_id: Optional[str] = None + """ + ID of the nexthop VPC connector. + """ + created_at: Optional[datetime] = None """ Date the Route was created. @@ -536,6 +541,11 @@ class CreateRouteRequest: ID of the nexthop private network. """ + nexthop_vpc_connector_id: Optional[str] = None + """ + ID of the nexthop VPC Connector. + """ + @dataclass class CreateVPCConnectorRequest: @@ -1126,6 +1136,11 @@ class UpdateRouteRequest: ID of the nexthop private network. """ + nexthop_vpc_connector_id: Optional[str] = None + """ + ID of the nexthop VPC connector. + """ + @dataclass class UpdateVPCConnectorRequest: