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
2 changes: 0 additions & 2 deletions scaleway-async/scaleway_async/k8s/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
from .types import ListPoolsResponse
from .types import ListVersionsRequest
from .types import ListVersionsResponse
from .types import MigrateClusterToRoutedIPsRequest
from .types import MigrateClusterToSBSCSIRequest
from .types import NodeMetadata
from .types import RebootNodeRequest
Expand Down Expand Up @@ -150,7 +149,6 @@
"ListPoolsResponse",
"ListVersionsRequest",
"ListVersionsResponse",
"MigrateClusterToRoutedIPsRequest",
"MigrateClusterToSBSCSIRequest",
"NodeMetadata",
"RebootNodeRequest",
Expand Down
35 changes: 0 additions & 35 deletions scaleway-async/scaleway_async/k8s/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,41 +714,6 @@ async def reset_cluster_admin_token(

self._throw_on_error(res)

async def migrate_cluster_to_routed_i_ps(
self,
*,
cluster_id: str,
region: Optional[Region] = None,
) -> Cluster:
"""
Migrate a cluster to Routed IPs.
Migrate the nodes of an existing cluster to Routed IPs and enable Routed IPs for all future nodes.
:param cluster_id: Cluster ID for which the routed ip will be enabled for the nodes.
:param region: Region to target. If none is passed will use default region from the config.
:return: :class:`Cluster <Cluster>`

Usage:
::

result = await api.migrate_cluster_to_routed_i_ps(
cluster_id="example",
)
"""

param_region = validate_path_param(
"region", region or self.client.default_region
)
param_cluster_id = validate_path_param("cluster_id", cluster_id)

res = self._request(
"POST",
f"/k8s/v1/regions/{param_region}/clusters/{param_cluster_id}/migrate-to-routed-ips",
body={},
)

self._throw_on_error(res)
return unmarshal_Cluster(res.json())

async def migrate_cluster_to_sbscsi(
self,
*,
Expand Down
13 changes: 0 additions & 13 deletions scaleway-async/scaleway_async/k8s/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1699,19 +1699,6 @@ class ListVersionsResponse:
"""


@dataclass
class MigrateClusterToRoutedIPsRequest:
cluster_id: str
"""
Cluster ID for which the routed ip will be enabled for the nodes.
"""

region: Optional[Region]
"""
Region to target. If none is passed will use default region from the config.
"""


@dataclass
class MigrateClusterToSBSCSIRequest:
cluster_id: str
Expand Down
2 changes: 0 additions & 2 deletions scaleway/scaleway/k8s/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
from .types import ListPoolsResponse
from .types import ListVersionsRequest
from .types import ListVersionsResponse
from .types import MigrateClusterToRoutedIPsRequest
from .types import MigrateClusterToSBSCSIRequest
from .types import NodeMetadata
from .types import RebootNodeRequest
Expand Down Expand Up @@ -150,7 +149,6 @@
"ListPoolsResponse",
"ListVersionsRequest",
"ListVersionsResponse",
"MigrateClusterToRoutedIPsRequest",
"MigrateClusterToSBSCSIRequest",
"NodeMetadata",
"RebootNodeRequest",
Expand Down
35 changes: 0 additions & 35 deletions scaleway/scaleway/k8s/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,41 +714,6 @@ def reset_cluster_admin_token(

self._throw_on_error(res)

def migrate_cluster_to_routed_i_ps(
self,
*,
cluster_id: str,
region: Optional[Region] = None,
) -> Cluster:
"""
Migrate a cluster to Routed IPs.
Migrate the nodes of an existing cluster to Routed IPs and enable Routed IPs for all future nodes.
:param cluster_id: Cluster ID for which the routed ip will be enabled for the nodes.
:param region: Region to target. If none is passed will use default region from the config.
:return: :class:`Cluster <Cluster>`

Usage:
::

result = api.migrate_cluster_to_routed_i_ps(
cluster_id="example",
)
"""

param_region = validate_path_param(
"region", region or self.client.default_region
)
param_cluster_id = validate_path_param("cluster_id", cluster_id)

res = self._request(
"POST",
f"/k8s/v1/regions/{param_region}/clusters/{param_cluster_id}/migrate-to-routed-ips",
body={},
)

self._throw_on_error(res)
return unmarshal_Cluster(res.json())

def migrate_cluster_to_sbscsi(
self,
*,
Expand Down
13 changes: 0 additions & 13 deletions scaleway/scaleway/k8s/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1699,19 +1699,6 @@ class ListVersionsResponse:
"""


@dataclass
class MigrateClusterToRoutedIPsRequest:
cluster_id: str
"""
Cluster ID for which the routed ip will be enabled for the nodes.
"""

region: Optional[Region]
"""
Region to target. If none is passed will use default region from the config.
"""


@dataclass
class MigrateClusterToSBSCSIRequest:
cluster_id: str
Expand Down