Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c571b7a

Browse files
authored
docs(vpc_gw): document MigrateToV2 (scaleway#894)
1 parent b22de82 commit c571b7a

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

scaleway-async/scaleway_async/vpcgw/v1/api.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -2088,7 +2088,9 @@ async def migrate_to_v2(
20882088
zone: Optional[ScwZone] = None,
20892089
) -> None:
20902090
"""
2091-
:param gateway_id:
2091+
Put a Public Gateway in IPAM mode.
2092+
Put a Public Gateway in IPAM mode, so that it can be used with the Public Gateways API v2. This call is idempotent.
2093+
:param gateway_id: ID of the gateway to put into IPAM mode.
20922094
:param zone: Zone to target. If none is passed will use default zone from the config.
20932095
20942096
Usage:

scaleway-async/scaleway_async/vpcgw/v1/types.py

+3
Original file line numberDiff line numberDiff line change
@@ -1443,6 +1443,9 @@ class ListPATRulesResponse:
14431443
@dataclass
14441444
class MigrateToV2Request:
14451445
gateway_id: str
1446+
"""
1447+
ID of the gateway to put into IPAM mode.
1448+
"""
14461449

14471450
zone: Optional[ScwZone]
14481451
"""

scaleway/scaleway/vpcgw/v1/api.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -2086,7 +2086,9 @@ def migrate_to_v2(
20862086
zone: Optional[ScwZone] = None,
20872087
) -> None:
20882088
"""
2089-
:param gateway_id:
2089+
Put a Public Gateway in IPAM mode.
2090+
Put a Public Gateway in IPAM mode, so that it can be used with the Public Gateways API v2. This call is idempotent.
2091+
:param gateway_id: ID of the gateway to put into IPAM mode.
20902092
:param zone: Zone to target. If none is passed will use default zone from the config.
20912093
20922094
Usage:

scaleway/scaleway/vpcgw/v1/types.py

+3
Original file line numberDiff line numberDiff line change
@@ -1443,6 +1443,9 @@ class ListPATRulesResponse:
14431443
@dataclass
14441444
class MigrateToV2Request:
14451445
gateway_id: str
1446+
"""
1447+
ID of the gateway to put into IPAM mode.
1448+
"""
14461449

14471450
zone: Optional[ScwZone]
14481451
"""

0 commit comments

Comments
 (0)