File tree Expand file tree Collapse file tree 6 files changed +0
-100
lines changed
scaleway-async/scaleway_async/k8s/v1 Expand file tree Collapse file tree 6 files changed +0
-100
lines changed Original file line number Diff line number Diff line change 6868from .types import ListPoolsResponse
6969from .types import ListVersionsRequest
7070from .types import ListVersionsResponse
71- from .types import MigrateClusterToRoutedIPsRequest
7271from .types import MigrateClusterToSBSCSIRequest
7372from .types import NodeMetadata
7473from .types import RebootNodeRequest
150149 "ListPoolsResponse" ,
151150 "ListVersionsRequest" ,
152151 "ListVersionsResponse" ,
153- "MigrateClusterToRoutedIPsRequest" ,
154152 "MigrateClusterToSBSCSIRequest" ,
155153 "NodeMetadata" ,
156154 "RebootNodeRequest" ,
Original file line number Diff line number Diff 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 * ,
Original file line number Diff line number Diff 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
17161703class MigrateClusterToSBSCSIRequest :
17171704 cluster_id : str
Original file line number Diff line number Diff line change 6868from .types import ListPoolsResponse
6969from .types import ListVersionsRequest
7070from .types import ListVersionsResponse
71- from .types import MigrateClusterToRoutedIPsRequest
7271from .types import MigrateClusterToSBSCSIRequest
7372from .types import NodeMetadata
7473from .types import RebootNodeRequest
150149 "ListPoolsResponse" ,
151150 "ListVersionsRequest" ,
152151 "ListVersionsResponse" ,
153- "MigrateClusterToRoutedIPsRequest" ,
154152 "MigrateClusterToSBSCSIRequest" ,
155153 "NodeMetadata" ,
156154 "RebootNodeRequest" ,
Original file line number Diff line number Diff 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 * ,
Original file line number Diff line number Diff 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
17161703class MigrateClusterToSBSCSIRequest :
17171704 cluster_id : str
You can’t perform that action at this time.
0 commit comments