diff --git a/scaleway-async/scaleway_async/k8s/v1/__init__.py b/scaleway-async/scaleway_async/k8s/v1/__init__.py index 6a088ca7f..87cbf1497 100644 --- a/scaleway-async/scaleway_async/k8s/v1/__init__.py +++ b/scaleway-async/scaleway_async/k8s/v1/__init__.py @@ -75,7 +75,6 @@ from .types import ListPoolsResponse from .types import ListVersionsRequest from .types import ListVersionsResponse -from .types import MigrateClusterToSBSCSIRequest from .types import NodeMetadata from .types import RebootNodeRequest from .types import ReplaceNodeRequest @@ -165,7 +164,6 @@ "ListPoolsResponse", "ListVersionsRequest", "ListVersionsResponse", - "MigrateClusterToSBSCSIRequest", "NodeMetadata", "RebootNodeRequest", "ReplaceNodeRequest", diff --git a/scaleway-async/scaleway_async/k8s/v1/api.py b/scaleway-async/scaleway_async/k8s/v1/api.py index 8658b3a17..5f5dc81d5 100644 --- a/scaleway-async/scaleway_async/k8s/v1/api.py +++ b/scaleway-async/scaleway_async/k8s/v1/api.py @@ -726,42 +726,6 @@ async def reset_cluster_admin_token( self._throw_on_error(res) - async def migrate_cluster_to_sbscsi( - self, - *, - cluster_id: str, - region: Optional[ScwRegion] = None, - ) -> Cluster: - """ - Migrate a cluster to SBS CSI. - Enable the latest CSI compatible with Scaleway Block Storage (SBS) and migrate all existing PersistentVolumes/VolumeSnapshotContents to SBS. - Make sure to have the necessary Quota before running this command. - :param cluster_id: Cluster ID for which the latest CSI compatible with Scaleway Block Storage will be enabled. - :param region: Region to target. If none is passed will use default region from the config. - :return: :class:`Cluster ` - - Usage: - :: - - result = await api.migrate_cluster_to_sbscsi( - 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-sbs-csi", - body={}, - ) - - self._throw_on_error(res) - return unmarshal_Cluster(res.json()) - async def list_cluster_acl_rules( self, *, diff --git a/scaleway-async/scaleway_async/k8s/v1/types.py b/scaleway-async/scaleway_async/k8s/v1/types.py index f979885ac..f401955f6 100644 --- a/scaleway-async/scaleway_async/k8s/v1/types.py +++ b/scaleway-async/scaleway_async/k8s/v1/types.py @@ -1824,19 +1824,6 @@ class ListVersionsResponse: """ -@dataclass -class MigrateClusterToSBSCSIRequest: - cluster_id: str - """ - Cluster ID for which the latest CSI compatible with Scaleway Block Storage will be enabled. - """ - - region: Optional[ScwRegion] - """ - Region to target. If none is passed will use default region from the config. - """ - - @dataclass class NodeMetadata: id: str diff --git a/scaleway/scaleway/k8s/v1/__init__.py b/scaleway/scaleway/k8s/v1/__init__.py index 6a088ca7f..87cbf1497 100644 --- a/scaleway/scaleway/k8s/v1/__init__.py +++ b/scaleway/scaleway/k8s/v1/__init__.py @@ -75,7 +75,6 @@ from .types import ListPoolsResponse from .types import ListVersionsRequest from .types import ListVersionsResponse -from .types import MigrateClusterToSBSCSIRequest from .types import NodeMetadata from .types import RebootNodeRequest from .types import ReplaceNodeRequest @@ -165,7 +164,6 @@ "ListPoolsResponse", "ListVersionsRequest", "ListVersionsResponse", - "MigrateClusterToSBSCSIRequest", "NodeMetadata", "RebootNodeRequest", "ReplaceNodeRequest", diff --git a/scaleway/scaleway/k8s/v1/api.py b/scaleway/scaleway/k8s/v1/api.py index 9d2ae8038..0af157e2b 100644 --- a/scaleway/scaleway/k8s/v1/api.py +++ b/scaleway/scaleway/k8s/v1/api.py @@ -726,42 +726,6 @@ def reset_cluster_admin_token( self._throw_on_error(res) - def migrate_cluster_to_sbscsi( - self, - *, - cluster_id: str, - region: Optional[ScwRegion] = None, - ) -> Cluster: - """ - Migrate a cluster to SBS CSI. - Enable the latest CSI compatible with Scaleway Block Storage (SBS) and migrate all existing PersistentVolumes/VolumeSnapshotContents to SBS. - Make sure to have the necessary Quota before running this command. - :param cluster_id: Cluster ID for which the latest CSI compatible with Scaleway Block Storage will be enabled. - :param region: Region to target. If none is passed will use default region from the config. - :return: :class:`Cluster ` - - Usage: - :: - - result = api.migrate_cluster_to_sbscsi( - 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-sbs-csi", - body={}, - ) - - self._throw_on_error(res) - return unmarshal_Cluster(res.json()) - def list_cluster_acl_rules( self, *, diff --git a/scaleway/scaleway/k8s/v1/types.py b/scaleway/scaleway/k8s/v1/types.py index f979885ac..f401955f6 100644 --- a/scaleway/scaleway/k8s/v1/types.py +++ b/scaleway/scaleway/k8s/v1/types.py @@ -1824,19 +1824,6 @@ class ListVersionsResponse: """ -@dataclass -class MigrateClusterToSBSCSIRequest: - cluster_id: str - """ - Cluster ID for which the latest CSI compatible with Scaleway Block Storage will be enabled. - """ - - region: Optional[ScwRegion] - """ - Region to target. If none is passed will use default region from the config. - """ - - @dataclass class NodeMetadata: id: str