You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scaleway-async/scaleway_async/vpcgw/v1/api.py
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -470,6 +470,36 @@ async def upgrade_gateway(
470
470
self._throw_on_error(res)
471
471
returnunmarshal_Gateway(res.json())
472
472
473
+
asyncdefenable_ip_mobility(
474
+
self,
475
+
*,
476
+
gateway_id: str,
477
+
zone: Optional[Zone] =None,
478
+
) ->Gateway:
479
+
"""
480
+
Upgrade a Public Gateway to IP mobility.
481
+
Upgrade a Public Gateway to IP mobility (move from NAT IP to routed IP). This is idempotent: repeated calls after the first will return no error but have no effect.
482
+
:param zone: Zone to target. If none is passed will use default zone from the config.
483
+
:param gateway_id: ID of the gateway to upgrade to IP mobility.
484
+
:return: :class:`Gateway <Gateway>`
485
+
486
+
Usage:
487
+
::
488
+
489
+
result = await api.enable_ip_mobility(gateway_id="example")
Copy file name to clipboardExpand all lines: scaleway/scaleway/vpcgw/v1/api.py
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -470,6 +470,36 @@ def upgrade_gateway(
470
470
self._throw_on_error(res)
471
471
returnunmarshal_Gateway(res.json())
472
472
473
+
defenable_ip_mobility(
474
+
self,
475
+
*,
476
+
gateway_id: str,
477
+
zone: Optional[Zone] =None,
478
+
) ->Gateway:
479
+
"""
480
+
Upgrade a Public Gateway to IP mobility.
481
+
Upgrade a Public Gateway to IP mobility (move from NAT IP to routed IP). This is idempotent: repeated calls after the first will return no error but have no effect.
482
+
:param zone: Zone to target. If none is passed will use default zone from the config.
483
+
:param gateway_id: ID of the gateway to upgrade to IP mobility.
484
+
:return: :class:`Gateway <Gateway>`
485
+
486
+
Usage:
487
+
::
488
+
489
+
result = api.enable_ip_mobility(gateway_id="example")
0 commit comments