Skip to content

Commit 85afb0d

Browse files
authored
fix(vpc_gw): return Empty on EnableIPMobility (#442)
1 parent 9858623 commit 85afb0d

File tree

2 files changed

+4
-6
lines changed
  • scaleway-async/scaleway_async/vpcgw/v1
  • scaleway/scaleway/vpcgw/v1

2 files changed

+4
-6
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,13 +475,12 @@ async def enable_ip_mobility(
475475
*,
476476
gateway_id: str,
477477
zone: Optional[Zone] = None,
478-
) -> Gateway:
478+
) -> Optional[None]:
479479
"""
480480
Upgrade a Public Gateway to IP mobility.
481481
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.
482482
:param zone: Zone to target. If none is passed will use default zone from the config.
483483
:param gateway_id: ID of the gateway to upgrade to IP mobility.
484-
:return: :class:`Gateway <Gateway>`
485484
486485
Usage:
487486
::
@@ -498,7 +497,7 @@ async def enable_ip_mobility(
498497
)
499498

500499
self._throw_on_error(res)
501-
return unmarshal_Gateway(res.json())
500+
return None
502501

503502
async def list_gateway_networks(
504503
self,

scaleway/scaleway/vpcgw/v1/api.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,13 +475,12 @@ def enable_ip_mobility(
475475
*,
476476
gateway_id: str,
477477
zone: Optional[Zone] = None,
478-
) -> Gateway:
478+
) -> Optional[None]:
479479
"""
480480
Upgrade a Public Gateway to IP mobility.
481481
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.
482482
:param zone: Zone to target. If none is passed will use default zone from the config.
483483
:param gateway_id: ID of the gateway to upgrade to IP mobility.
484-
:return: :class:`Gateway <Gateway>`
485484
486485
Usage:
487486
::
@@ -498,7 +497,7 @@ def enable_ip_mobility(
498497
)
499498

500499
self._throw_on_error(res)
501-
return unmarshal_Gateway(res.json())
500+
return None
502501

503502
def list_gateway_networks(
504503
self,

0 commit comments

Comments
 (0)