File tree 6 files changed +0
-102
lines changed
scaleway-async/scaleway_async/k8s/v1
6 files changed +0
-102
lines changed Original file line number Diff line number Diff line change 75
75
from .types import ListPoolsResponse
76
76
from .types import ListVersionsRequest
77
77
from .types import ListVersionsResponse
78
- from .types import MigrateClusterToSBSCSIRequest
79
78
from .types import NodeMetadata
80
79
from .types import RebootNodeRequest
81
80
from .types import ReplaceNodeRequest
165
164
"ListPoolsResponse" ,
166
165
"ListVersionsRequest" ,
167
166
"ListVersionsResponse" ,
168
- "MigrateClusterToSBSCSIRequest" ,
169
167
"NodeMetadata" ,
170
168
"RebootNodeRequest" ,
171
169
"ReplaceNodeRequest" ,
Original file line number Diff line number Diff line change @@ -726,42 +726,6 @@ async def reset_cluster_admin_token(
726
726
727
727
self ._throw_on_error (res )
728
728
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
-
765
729
async def list_cluster_acl_rules (
766
730
self ,
767
731
* ,
Original file line number Diff line number Diff line change @@ -1824,19 +1824,6 @@ class ListVersionsResponse:
1824
1824
"""
1825
1825
1826
1826
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
-
1840
1827
@dataclass
1841
1828
class NodeMetadata :
1842
1829
id : str
Original file line number Diff line number Diff line change 75
75
from .types import ListPoolsResponse
76
76
from .types import ListVersionsRequest
77
77
from .types import ListVersionsResponse
78
- from .types import MigrateClusterToSBSCSIRequest
79
78
from .types import NodeMetadata
80
79
from .types import RebootNodeRequest
81
80
from .types import ReplaceNodeRequest
165
164
"ListPoolsResponse" ,
166
165
"ListVersionsRequest" ,
167
166
"ListVersionsResponse" ,
168
- "MigrateClusterToSBSCSIRequest" ,
169
167
"NodeMetadata" ,
170
168
"RebootNodeRequest" ,
171
169
"ReplaceNodeRequest" ,
Original file line number Diff line number Diff line change @@ -726,42 +726,6 @@ def reset_cluster_admin_token(
726
726
727
727
self ._throw_on_error (res )
728
728
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
-
765
729
def list_cluster_acl_rules (
766
730
self ,
767
731
* ,
Original file line number Diff line number Diff line change @@ -1824,19 +1824,6 @@ class ListVersionsResponse:
1824
1824
"""
1825
1825
1826
1826
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
-
1840
1827
@dataclass
1841
1828
class NodeMetadata :
1842
1829
id : str
You can’t perform that action at this time.
0 commit comments