File tree Expand file tree Collapse file tree 6 files changed +0
-102
lines changed
scaleway-async/scaleway_async/k8s/v1 Expand file tree Collapse file tree 6 files changed +0
-102
lines changed Original file line number Diff line number Diff line change 7575from .types import ListPoolsResponse
7676from .types import ListVersionsRequest
7777from .types import ListVersionsResponse
78- from .types import MigrateClusterToSBSCSIRequest
7978from .types import NodeMetadata
8079from .types import RebootNodeRequest
8180from .types import ReplaceNodeRequest
165164 "ListPoolsResponse" ,
166165 "ListVersionsRequest" ,
167166 "ListVersionsResponse" ,
168- "MigrateClusterToSBSCSIRequest" ,
169167 "NodeMetadata" ,
170168 "RebootNodeRequest" ,
171169 "ReplaceNodeRequest" ,
Original file line number Diff line number Diff line change @@ -726,42 +726,6 @@ async def reset_cluster_admin_token(
726726
727727 self ._throw_on_error (res )
728728
729- async def migrate_cluster_to_sbscsi (
730- self ,
731- * ,
732- cluster_id : str ,
733- region : Optional [ScwRegion ] = None ,
734- ) -> Cluster :
735- """
736- Migrate a cluster to SBS CSI.
737- Enable the latest CSI compatible with Scaleway Block Storage (SBS) and migrate all existing PersistentVolumes/VolumeSnapshotContents to SBS.
738- Make sure to have the necessary Quota before running this command.
739- :param cluster_id: Cluster ID for which the latest CSI compatible with Scaleway Block Storage will be enabled.
740- :param region: Region to target. If none is passed will use default region from the config.
741- :return: :class:`Cluster <Cluster>`
742-
743- Usage:
744- ::
745-
746- result = await api.migrate_cluster_to_sbscsi(
747- cluster_id="example",
748- )
749- """
750-
751- param_region = validate_path_param (
752- "region" , region or self .client .default_region
753- )
754- param_cluster_id = validate_path_param ("cluster_id" , cluster_id )
755-
756- res = self ._request (
757- "POST" ,
758- f"/k8s/v1/regions/{ param_region } /clusters/{ param_cluster_id } /migrate-to-sbs-csi" ,
759- body = {},
760- )
761-
762- self ._throw_on_error (res )
763- return unmarshal_Cluster (res .json ())
764-
765729 async def list_cluster_acl_rules (
766730 self ,
767731 * ,
Original file line number Diff line number Diff line change @@ -1824,19 +1824,6 @@ class ListVersionsResponse:
18241824 """
18251825
18261826
1827- @dataclass
1828- class MigrateClusterToSBSCSIRequest :
1829- cluster_id : str
1830- """
1831- Cluster ID for which the latest CSI compatible with Scaleway Block Storage will be enabled.
1832- """
1833-
1834- region : Optional [ScwRegion ]
1835- """
1836- Region to target. If none is passed will use default region from the config.
1837- """
1838-
1839-
18401827@dataclass
18411828class NodeMetadata :
18421829 id : str
Original file line number Diff line number Diff line change 7575from .types import ListPoolsResponse
7676from .types import ListVersionsRequest
7777from .types import ListVersionsResponse
78- from .types import MigrateClusterToSBSCSIRequest
7978from .types import NodeMetadata
8079from .types import RebootNodeRequest
8180from .types import ReplaceNodeRequest
165164 "ListPoolsResponse" ,
166165 "ListVersionsRequest" ,
167166 "ListVersionsResponse" ,
168- "MigrateClusterToSBSCSIRequest" ,
169167 "NodeMetadata" ,
170168 "RebootNodeRequest" ,
171169 "ReplaceNodeRequest" ,
Original file line number Diff line number Diff line change @@ -726,42 +726,6 @@ def reset_cluster_admin_token(
726726
727727 self ._throw_on_error (res )
728728
729- def migrate_cluster_to_sbscsi (
730- self ,
731- * ,
732- cluster_id : str ,
733- region : Optional [ScwRegion ] = None ,
734- ) -> Cluster :
735- """
736- Migrate a cluster to SBS CSI.
737- Enable the latest CSI compatible with Scaleway Block Storage (SBS) and migrate all existing PersistentVolumes/VolumeSnapshotContents to SBS.
738- Make sure to have the necessary Quota before running this command.
739- :param cluster_id: Cluster ID for which the latest CSI compatible with Scaleway Block Storage will be enabled.
740- :param region: Region to target. If none is passed will use default region from the config.
741- :return: :class:`Cluster <Cluster>`
742-
743- Usage:
744- ::
745-
746- result = api.migrate_cluster_to_sbscsi(
747- cluster_id="example",
748- )
749- """
750-
751- param_region = validate_path_param (
752- "region" , region or self .client .default_region
753- )
754- param_cluster_id = validate_path_param ("cluster_id" , cluster_id )
755-
756- res = self ._request (
757- "POST" ,
758- f"/k8s/v1/regions/{ param_region } /clusters/{ param_cluster_id } /migrate-to-sbs-csi" ,
759- body = {},
760- )
761-
762- self ._throw_on_error (res )
763- return unmarshal_Cluster (res .json ())
764-
765729 def list_cluster_acl_rules (
766730 self ,
767731 * ,
Original file line number Diff line number Diff line change @@ -1824,19 +1824,6 @@ class ListVersionsResponse:
18241824 """
18251825
18261826
1827- @dataclass
1828- class MigrateClusterToSBSCSIRequest :
1829- cluster_id : str
1830- """
1831- Cluster ID for which the latest CSI compatible with Scaleway Block Storage will be enabled.
1832- """
1833-
1834- region : Optional [ScwRegion ]
1835- """
1836- Region to target. If none is passed will use default region from the config.
1837- """
1838-
1839-
18401827@dataclass
18411828class NodeMetadata :
18421829 id : str
You can’t perform that action at this time.
0 commit comments