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
831 changes: 447 additions & 384 deletions docs/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Scaleway <opensource@scaleway.com>"]
license = "BSD"

[tool.poetry.dependencies]
python = "^3.8"
python = ">=3.10,<4.0"
sphinx-rtd-theme = "^3.1.0"
Sphinx = "^7"
scaleway-core = { path = "../scaleway-core", develop = true }
Expand Down
830 changes: 448 additions & 382 deletions scaleway-async/poetry.lock

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions scaleway-async/scaleway_async/vpc/v2/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 <Route>`

Usage:
Expand Down Expand Up @@ -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,
),
Expand Down Expand Up @@ -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.
Expand All @@ -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 <Route>`

Usage:
Expand Down Expand Up @@ -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,
),
Expand Down
24 changes: 18 additions & 6 deletions scaleway-async/scaleway_async/vpc/v2/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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


Expand Down Expand Up @@ -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


Expand Down
15 changes: 15 additions & 0 deletions scaleway-async/scaleway_async/vpc/v2/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
Loading
Loading