diff --git a/packages/clients/src/api/k8s/v1/api.gen.ts b/packages/clients/src/api/k8s/v1/api.gen.ts index 6398839fd..89baa6281 100644 --- a/packages/clients/src/api/k8s/v1/api.gen.ts +++ b/packages/clients/src/api/k8s/v1/api.gen.ts @@ -16,7 +16,6 @@ import { import { marshalCreateClusterRequest, marshalCreatePoolRequest, - marshalMigrateToPrivateNetworkClusterRequest, marshalSetClusterTypeRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, @@ -64,7 +63,6 @@ import type { ListVersionsRequest, ListVersionsResponse, MigrateClusterToRoutedIPsRequest, - MigrateToPrivateNetworkClusterRequest, Node, Pool, RebootNodeRequest, @@ -328,32 +326,6 @@ export class API extends ParentAPI { path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/reset-admin-token`, }) - /** - * Migrate an existing cluster to a Private Network cluster. Migrate a cluster - * that was created before the release of Private Network clusters to a new - * one with a Private Network. - * - * @param request - The request {@link MigrateToPrivateNetworkClusterRequest} - * @returns A Promise of Cluster - */ - migrateToPrivateNetworkCluster = ( - request: Readonly, - ) => - this.client.fetch( - { - body: JSON.stringify( - marshalMigrateToPrivateNetworkClusterRequest( - request, - this.client.settings, - ), - ), - headers: jsonContentHeaders, - method: 'POST', - path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/migrate-to-private-network`, - }, - unmarshalCluster, - ) - /** * Migrate a cluster to Routed IPs. Migrate the nodes of an existing cluster * to Routed IPs and enable Routed IPs for all future nodes. diff --git a/packages/clients/src/api/k8s/v1/index.gen.ts b/packages/clients/src/api/k8s/v1/index.gen.ts index 07a8ba454..aea48b8be 100644 --- a/packages/clients/src/api/k8s/v1/index.gen.ts +++ b/packages/clients/src/api/k8s/v1/index.gen.ts @@ -53,7 +53,6 @@ export type { MaintenanceWindow, MaintenanceWindowDayOfTheWeek, MigrateClusterToRoutedIPsRequest, - MigrateToPrivateNetworkClusterRequest, Node, NodeStatus, Pool, diff --git a/packages/clients/src/api/k8s/v1/marshalling.gen.ts b/packages/clients/src/api/k8s/v1/marshalling.gen.ts index 1e974c7ea..7e3c940c3 100644 --- a/packages/clients/src/api/k8s/v1/marshalling.gen.ts +++ b/packages/clients/src/api/k8s/v1/marshalling.gen.ts @@ -32,7 +32,6 @@ import type { ListPoolsResponse, ListVersionsResponse, MaintenanceWindow, - MigrateToPrivateNetworkClusterRequest, Node, Pool, PoolUpgradePolicy, @@ -595,13 +594,6 @@ export const marshalCreatePoolRequest = ( zone: request.zone ?? defaults.defaultZone, }) -export const marshalMigrateToPrivateNetworkClusterRequest = ( - request: MigrateToPrivateNetworkClusterRequest, - defaults: DefaultValues, -): Record => ({ - private_network_id: request.privateNetworkId, -}) - export const marshalSetClusterTypeRequest = ( request: SetClusterTypeRequest, defaults: DefaultValues, diff --git a/packages/clients/src/api/k8s/v1/types.gen.ts b/packages/clients/src/api/k8s/v1/types.gen.ts index 109d40ab0..2a1105519 100644 --- a/packages/clients/src/api/k8s/v1/types.gen.ts +++ b/packages/clients/src/api/k8s/v1/types.gen.ts @@ -1111,18 +1111,6 @@ export type MigrateClusterToRoutedIPsRequest = { clusterId: string } -export type MigrateToPrivateNetworkClusterRequest = { - /** - * Region to target. If none is passed will use default region from the - * config. - */ - region?: Region - /** ID of the cluster to migrate. */ - clusterId: string - /** ID of the Private Network to link to the cluster. */ - privateNetworkId: string -} - export type RebootNodeRequest = { /** * Region to target. If none is passed will use default region from the