From 856377e24ad62e5492568de08167979b71628db7 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 22 Oct 2024 14:09:11 +0000 Subject: [PATCH] feat: update generated APIs --- .../scaleway_async/k8s/v1/__init__.py | 2 -- scaleway-async/scaleway_async/k8s/v1/api.py | 35 ------------------- scaleway-async/scaleway_async/k8s/v1/types.py | 13 ------- scaleway/scaleway/k8s/v1/__init__.py | 2 -- scaleway/scaleway/k8s/v1/api.py | 35 ------------------- scaleway/scaleway/k8s/v1/types.py | 13 ------- 6 files changed, 100 deletions(-) diff --git a/scaleway-async/scaleway_async/k8s/v1/__init__.py b/scaleway-async/scaleway_async/k8s/v1/__init__.py index 150a8f1dc..f27274871 100644 --- a/scaleway-async/scaleway_async/k8s/v1/__init__.py +++ b/scaleway-async/scaleway_async/k8s/v1/__init__.py @@ -68,7 +68,6 @@ from .types import ListPoolsResponse from .types import ListVersionsRequest from .types import ListVersionsResponse -from .types import MigrateClusterToRoutedIPsRequest from .types import MigrateClusterToSBSCSIRequest from .types import NodeMetadata from .types import RebootNodeRequest @@ -150,7 +149,6 @@ "ListPoolsResponse", "ListVersionsRequest", "ListVersionsResponse", - "MigrateClusterToRoutedIPsRequest", "MigrateClusterToSBSCSIRequest", "NodeMetadata", "RebootNodeRequest", diff --git a/scaleway-async/scaleway_async/k8s/v1/api.py b/scaleway-async/scaleway_async/k8s/v1/api.py index d34bf6896..9ab8ae39b 100644 --- a/scaleway-async/scaleway_async/k8s/v1/api.py +++ b/scaleway-async/scaleway_async/k8s/v1/api.py @@ -714,41 +714,6 @@ async def reset_cluster_admin_token( self._throw_on_error(res) - async def migrate_cluster_to_routed_i_ps( - self, - *, - cluster_id: str, - region: Optional[Region] = None, - ) -> Cluster: - """ - Migrate a cluster to Routed IPs. - Migrate the nodes of an existing cluster to Routed IPs and enable Routed IPs for all future nodes. - :param cluster_id: Cluster ID for which the routed ip will be enabled for the nodes. - :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_routed_i_ps( - 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-routed-ips", - body={}, - ) - - self._throw_on_error(res) - return unmarshal_Cluster(res.json()) - async def migrate_cluster_to_sbscsi( self, *, diff --git a/scaleway-async/scaleway_async/k8s/v1/types.py b/scaleway-async/scaleway_async/k8s/v1/types.py index a64650a96..6d1944b53 100644 --- a/scaleway-async/scaleway_async/k8s/v1/types.py +++ b/scaleway-async/scaleway_async/k8s/v1/types.py @@ -1699,19 +1699,6 @@ class ListVersionsResponse: """ -@dataclass -class MigrateClusterToRoutedIPsRequest: - cluster_id: str - """ - Cluster ID for which the routed ip will be enabled for the nodes. - """ - - region: Optional[Region] - """ - Region to target. If none is passed will use default region from the config. - """ - - @dataclass class MigrateClusterToSBSCSIRequest: cluster_id: str diff --git a/scaleway/scaleway/k8s/v1/__init__.py b/scaleway/scaleway/k8s/v1/__init__.py index 150a8f1dc..f27274871 100644 --- a/scaleway/scaleway/k8s/v1/__init__.py +++ b/scaleway/scaleway/k8s/v1/__init__.py @@ -68,7 +68,6 @@ from .types import ListPoolsResponse from .types import ListVersionsRequest from .types import ListVersionsResponse -from .types import MigrateClusterToRoutedIPsRequest from .types import MigrateClusterToSBSCSIRequest from .types import NodeMetadata from .types import RebootNodeRequest @@ -150,7 +149,6 @@ "ListPoolsResponse", "ListVersionsRequest", "ListVersionsResponse", - "MigrateClusterToRoutedIPsRequest", "MigrateClusterToSBSCSIRequest", "NodeMetadata", "RebootNodeRequest", diff --git a/scaleway/scaleway/k8s/v1/api.py b/scaleway/scaleway/k8s/v1/api.py index 7e49f30b0..7ed4433ed 100644 --- a/scaleway/scaleway/k8s/v1/api.py +++ b/scaleway/scaleway/k8s/v1/api.py @@ -714,41 +714,6 @@ def reset_cluster_admin_token( self._throw_on_error(res) - def migrate_cluster_to_routed_i_ps( - self, - *, - cluster_id: str, - region: Optional[Region] = None, - ) -> Cluster: - """ - Migrate a cluster to Routed IPs. - Migrate the nodes of an existing cluster to Routed IPs and enable Routed IPs for all future nodes. - :param cluster_id: Cluster ID for which the routed ip will be enabled for the nodes. - :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_routed_i_ps( - 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-routed-ips", - body={}, - ) - - self._throw_on_error(res) - return unmarshal_Cluster(res.json()) - def migrate_cluster_to_sbscsi( self, *, diff --git a/scaleway/scaleway/k8s/v1/types.py b/scaleway/scaleway/k8s/v1/types.py index a64650a96..6d1944b53 100644 --- a/scaleway/scaleway/k8s/v1/types.py +++ b/scaleway/scaleway/k8s/v1/types.py @@ -1699,19 +1699,6 @@ class ListVersionsResponse: """ -@dataclass -class MigrateClusterToRoutedIPsRequest: - cluster_id: str - """ - Cluster ID for which the routed ip will be enabled for the nodes. - """ - - region: Optional[Region] - """ - Region to target. If none is passed will use default region from the config. - """ - - @dataclass class MigrateClusterToSBSCSIRequest: cluster_id: str