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
4 changes: 4 additions & 0 deletions scaleway-async/scaleway_async/instance/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,7 @@ async def server_action(
action: Optional[ServerAction] = None,
name: Optional[str] = None,
volumes: Optional[Dict[str, ServerActionRequestVolumeBackupTemplate]] = None,
disable_ipv6: Optional[bool] = None,
) -> ServerActionResponse:
"""
Perform action.
Expand All @@ -929,6 +930,8 @@ async def server_action(
This field should only be specified when performing a backup action.
:param volumes: For each volume UUID, the snapshot parameters of the volume.
This field should only be specified when performing a backup action.
:param disable_ipv6: Disable IPv6 on the Instance while performing migration to routed IPs.
This field should only be specified when performing a enable_routed_ip action.
:return: :class:`ServerActionResponse <ServerActionResponse>`

Usage:
Expand All @@ -952,6 +955,7 @@ async def server_action(
action=action,
name=name,
volumes=volumes,
disable_ipv6=disable_ipv6,
),
self.client,
),
Expand Down
3 changes: 3 additions & 0 deletions scaleway-async/scaleway_async/instance/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -3228,6 +3228,9 @@ def marshal_ServerActionRequest(
for key, value in request.volumes.items()
}

if request.disable_ipv6 is not None:
output["disable_ipv6"] = request.disable_ipv6

return output


Expand Down
6 changes: 6 additions & 0 deletions scaleway-async/scaleway_async/instance/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2983,6 +2983,12 @@ class ServerActionRequest:
This field should only be specified when performing a backup action.
"""

disable_ipv6: Optional[bool]
"""
Disable IPv6 on the Instance while performing migration to routed IPs.
This field should only be specified when performing a enable_routed_ip action.
"""


@dataclass
class ServerActionResponse:
Expand Down
4 changes: 4 additions & 0 deletions scaleway/scaleway/instance/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,7 @@ def server_action(
action: Optional[ServerAction] = None,
name: Optional[str] = None,
volumes: Optional[Dict[str, ServerActionRequestVolumeBackupTemplate]] = None,
disable_ipv6: Optional[bool] = None,
) -> ServerActionResponse:
"""
Perform action.
Expand All @@ -929,6 +930,8 @@ def server_action(
This field should only be specified when performing a backup action.
:param volumes: For each volume UUID, the snapshot parameters of the volume.
This field should only be specified when performing a backup action.
:param disable_ipv6: Disable IPv6 on the Instance while performing migration to routed IPs.
This field should only be specified when performing a enable_routed_ip action.
:return: :class:`ServerActionResponse <ServerActionResponse>`

Usage:
Expand All @@ -952,6 +955,7 @@ def server_action(
action=action,
name=name,
volumes=volumes,
disable_ipv6=disable_ipv6,
),
self.client,
),
Expand Down
3 changes: 3 additions & 0 deletions scaleway/scaleway/instance/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -3228,6 +3228,9 @@ def marshal_ServerActionRequest(
for key, value in request.volumes.items()
}

if request.disable_ipv6 is not None:
output["disable_ipv6"] = request.disable_ipv6

return output


Expand Down
6 changes: 6 additions & 0 deletions scaleway/scaleway/instance/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2983,6 +2983,12 @@ class ServerActionRequest:
This field should only be specified when performing a backup action.
"""

disable_ipv6: Optional[bool]
"""
Disable IPv6 on the Instance while performing migration to routed IPs.
This field should only be specified when performing a enable_routed_ip action.
"""


@dataclass
class ServerActionResponse:
Expand Down