Skip to content

Commit a8474dc

Browse files
authored
chore(k8s): remove migrate-to-routed-ips (#709)
1 parent 5099e83 commit a8474dc

File tree

6 files changed

+0
-100
lines changed

6 files changed

+0
-100
lines changed

scaleway-async/scaleway_async/k8s/v1/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
from .types import ListPoolsResponse
6969
from .types import ListVersionsRequest
7070
from .types import ListVersionsResponse
71-
from .types import MigrateClusterToRoutedIPsRequest
7271
from .types import MigrateClusterToSBSCSIRequest
7372
from .types import NodeMetadata
7473
from .types import RebootNodeRequest
@@ -150,7 +149,6 @@
150149
"ListPoolsResponse",
151150
"ListVersionsRequest",
152151
"ListVersionsResponse",
153-
"MigrateClusterToRoutedIPsRequest",
154152
"MigrateClusterToSBSCSIRequest",
155153
"NodeMetadata",
156154
"RebootNodeRequest",

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

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -714,41 +714,6 @@ async def reset_cluster_admin_token(
714714

715715
self._throw_on_error(res)
716716

717-
async def migrate_cluster_to_routed_i_ps(
718-
self,
719-
*,
720-
cluster_id: str,
721-
region: Optional[Region] = None,
722-
) -> Cluster:
723-
"""
724-
Migrate a cluster to Routed IPs.
725-
Migrate the nodes of an existing cluster to Routed IPs and enable Routed IPs for all future nodes.
726-
:param cluster_id: Cluster ID for which the routed ip will be enabled for the nodes.
727-
:param region: Region to target. If none is passed will use default region from the config.
728-
:return: :class:`Cluster <Cluster>`
729-
730-
Usage:
731-
::
732-
733-
result = await api.migrate_cluster_to_routed_i_ps(
734-
cluster_id="example",
735-
)
736-
"""
737-
738-
param_region = validate_path_param(
739-
"region", region or self.client.default_region
740-
)
741-
param_cluster_id = validate_path_param("cluster_id", cluster_id)
742-
743-
res = self._request(
744-
"POST",
745-
f"/k8s/v1/regions/{param_region}/clusters/{param_cluster_id}/migrate-to-routed-ips",
746-
body={},
747-
)
748-
749-
self._throw_on_error(res)
750-
return unmarshal_Cluster(res.json())
751-
752717
async def migrate_cluster_to_sbscsi(
753718
self,
754719
*,

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,19 +1699,6 @@ class ListVersionsResponse:
16991699
"""
17001700

17011701

1702-
@dataclass
1703-
class MigrateClusterToRoutedIPsRequest:
1704-
cluster_id: str
1705-
"""
1706-
Cluster ID for which the routed ip will be enabled for the nodes.
1707-
"""
1708-
1709-
region: Optional[Region]
1710-
"""
1711-
Region to target. If none is passed will use default region from the config.
1712-
"""
1713-
1714-
17151702
@dataclass
17161703
class MigrateClusterToSBSCSIRequest:
17171704
cluster_id: str

scaleway/scaleway/k8s/v1/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
from .types import ListPoolsResponse
6969
from .types import ListVersionsRequest
7070
from .types import ListVersionsResponse
71-
from .types import MigrateClusterToRoutedIPsRequest
7271
from .types import MigrateClusterToSBSCSIRequest
7372
from .types import NodeMetadata
7473
from .types import RebootNodeRequest
@@ -150,7 +149,6 @@
150149
"ListPoolsResponse",
151150
"ListVersionsRequest",
152151
"ListVersionsResponse",
153-
"MigrateClusterToRoutedIPsRequest",
154152
"MigrateClusterToSBSCSIRequest",
155153
"NodeMetadata",
156154
"RebootNodeRequest",

scaleway/scaleway/k8s/v1/api.py

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -714,41 +714,6 @@ def reset_cluster_admin_token(
714714

715715
self._throw_on_error(res)
716716

717-
def migrate_cluster_to_routed_i_ps(
718-
self,
719-
*,
720-
cluster_id: str,
721-
region: Optional[Region] = None,
722-
) -> Cluster:
723-
"""
724-
Migrate a cluster to Routed IPs.
725-
Migrate the nodes of an existing cluster to Routed IPs and enable Routed IPs for all future nodes.
726-
:param cluster_id: Cluster ID for which the routed ip will be enabled for the nodes.
727-
:param region: Region to target. If none is passed will use default region from the config.
728-
:return: :class:`Cluster <Cluster>`
729-
730-
Usage:
731-
::
732-
733-
result = api.migrate_cluster_to_routed_i_ps(
734-
cluster_id="example",
735-
)
736-
"""
737-
738-
param_region = validate_path_param(
739-
"region", region or self.client.default_region
740-
)
741-
param_cluster_id = validate_path_param("cluster_id", cluster_id)
742-
743-
res = self._request(
744-
"POST",
745-
f"/k8s/v1/regions/{param_region}/clusters/{param_cluster_id}/migrate-to-routed-ips",
746-
body={},
747-
)
748-
749-
self._throw_on_error(res)
750-
return unmarshal_Cluster(res.json())
751-
752717
def migrate_cluster_to_sbscsi(
753718
self,
754719
*,

scaleway/scaleway/k8s/v1/types.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,19 +1699,6 @@ class ListVersionsResponse:
16991699
"""
17001700

17011701

1702-
@dataclass
1703-
class MigrateClusterToRoutedIPsRequest:
1704-
cluster_id: str
1705-
"""
1706-
Cluster ID for which the routed ip will be enabled for the nodes.
1707-
"""
1708-
1709-
region: Optional[Region]
1710-
"""
1711-
Region to target. If none is passed will use default region from the config.
1712-
"""
1713-
1714-
17151702
@dataclass
17161703
class MigrateClusterToSBSCSIRequest:
17171704
cluster_id: str

0 commit comments

Comments
 (0)