|
44 | 44 | ListNodesResponse, |
45 | 45 | ListPoolsResponse, |
46 | 46 | ListVersionsResponse, |
47 | | - MigrateToPrivateNetworkClusterRequest, |
48 | 47 | Node, |
49 | 48 | Pool, |
50 | 49 | SetClusterTypeRequest, |
|
78 | 77 | unmarshal_ListVersionsResponse, |
79 | 78 | marshal_CreateClusterRequest, |
80 | 79 | marshal_CreatePoolRequest, |
81 | | - marshal_MigrateToPrivateNetworkClusterRequest, |
82 | 80 | marshal_SetClusterTypeRequest, |
83 | 81 | marshal_UpdateClusterRequest, |
84 | 82 | marshal_UpdatePoolRequest, |
@@ -712,51 +710,6 @@ async def reset_cluster_admin_token( |
712 | 710 |
|
713 | 711 | self._throw_on_error(res) |
714 | 712 |
|
715 | | - async def migrate_to_private_network_cluster( |
716 | | - self, |
717 | | - *, |
718 | | - cluster_id: str, |
719 | | - private_network_id: str, |
720 | | - region: Optional[Region] = None, |
721 | | - ) -> Cluster: |
722 | | - """ |
723 | | - Migrate an existing cluster to a Private Network cluster. |
724 | | - Migrate a cluster that was created before the release of Private Network clusters to a new one with a Private Network. |
725 | | - :param cluster_id: ID of the cluster to migrate. |
726 | | - :param private_network_id: ID of the Private Network to link to the cluster. |
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_to_private_network_cluster( |
734 | | - cluster_id="example", |
735 | | - private_network_id="example", |
736 | | - ) |
737 | | - """ |
738 | | - |
739 | | - param_region = validate_path_param( |
740 | | - "region", region or self.client.default_region |
741 | | - ) |
742 | | - param_cluster_id = validate_path_param("cluster_id", cluster_id) |
743 | | - |
744 | | - res = self._request( |
745 | | - "POST", |
746 | | - f"/k8s/v1/regions/{param_region}/clusters/{param_cluster_id}/migrate-to-private-network", |
747 | | - body=marshal_MigrateToPrivateNetworkClusterRequest( |
748 | | - MigrateToPrivateNetworkClusterRequest( |
749 | | - cluster_id=cluster_id, |
750 | | - private_network_id=private_network_id, |
751 | | - region=region, |
752 | | - ), |
753 | | - self.client, |
754 | | - ), |
755 | | - ) |
756 | | - |
757 | | - self._throw_on_error(res) |
758 | | - return unmarshal_Cluster(res.json()) |
759 | | - |
760 | 713 | async def migrate_cluster_to_routed_i_ps( |
761 | 714 | self, |
762 | 715 | *, |
|
0 commit comments