UNPKG

@linode/api-v4

Version:
63 lines 2.27 kB
import type { Filter, ResourcePage as Page, Params } from '../types'; import type { CreateNodePoolData, CreateNodePoolDataBeta, KubeNodePoolResponse, KubeNodePoolResponseBeta, UpdateNodePoolData, UpdateNodePoolDataBeta } from './types'; /** * getNodePools * * Gets a list of all node pools associated with the specified cluster */ export declare const getNodePools: (clusterID: number, params?: Params, filters?: Filter) => Promise<Page<KubeNodePoolResponse>>; /** * getNodePool * * Returns a single node pool */ export declare const getNodePool: (clusterID: number, nodePoolID: number) => Promise<KubeNodePoolResponse>; /** * getNodePoolBeta * * Returns a single node pool with additional beta fields */ export declare const getNodePoolBeta: (clusterID: number, nodePoolID: number) => Promise<KubeNodePoolResponseBeta>; /** * createNodePool * * Adds a node pool to the specified cluster. */ export declare const createNodePool: (clusterID: number, data: CreateNodePoolData) => Promise<KubeNodePoolResponse>; /** * createNodePool * * Adds a node pool to the specified cluster with beta fields. */ export declare const createNodePoolBeta: (clusterID: number, data: CreateNodePoolDataBeta) => Promise<KubeNodePoolResponseBeta>; /** * updateNodePool * * Change the type or count of a node pool */ export declare const updateNodePool: (clusterID: number, nodePoolID: number, data: Partial<UpdateNodePoolData>) => Promise<KubeNodePoolResponse>; /** * updateNodePoolBeta * * Change the type, count, upgrade_strategy, or k8_version of a node pool */ export declare const updateNodePoolBeta: (clusterID: number, nodePoolID: number, data: Partial<UpdateNodePoolDataBeta>) => Promise<KubeNodePoolResponseBeta>; /** * deleteNodePool * * Delete a single node pool from the specified Cluster. */ export declare const deleteNodePool: (clusterID: number, nodePoolID: number) => Promise<{}>; /** * recycleAllNodes * * Recycles all nodes from the specified Node Pool. */ export declare const recycleAllNodes: (clusterID: number, nodePoolID: number) => Promise<{}>; /** * recycleNode * * Recycles a single node by id. */ export declare const recycleNode: (clusterID: number, nodeID: string) => Promise<{}>; //# sourceMappingURL=nodePools.d.ts.map