import { BaseApi } from "../base-api"; import type { ComputePoolResponse, CreateComputePoolRequest, ListComputePoolsParams, ListComputePoolsResponse, UpdateComputePoolRequest } from "./types"; /** * A class for accessing the Compute Pools API. * * @extends BaseApi */ export declare class ComputePoolsApi extends BaseApi { private computePoolsResourcePath; /** * The company-level default lives under `/company`, not under the data * plane, because the backend groups it with the company's other settings * (`CompanyComputePoolRoutes`). It is a compute-pool setting to a caller, * which is why the two methods that use it live on this class. */ private companyDefaultResourcePath; /** * List compute pools for a data plane. * * Note: the public API documents a `status` query parameter, but the * backend currently returns active compute pools regardless of that value. * * @see {@link https://docs.narrative.io/api-reference/compute-pools/list-compute-pools} */ listComputePools(dataPlaneId: string, params?: ListComputePoolsParams): Promise; /** * Create a compute pool for a data plane. * * @see {@link https://docs.narrative.io/api-reference/compute-pools/create-a-compute-pool} */ createComputePool(dataPlaneId: string, request: CreateComputePoolRequest): Promise; /** * Get a compute pool by ID. * * @see {@link https://docs.narrative.io/api-reference/compute-pools/get-a-compute-pool-by-id} */ getComputePool(dataPlaneId: string, computePoolId: string): Promise; /** * Update a compute pool. * * @see {@link https://docs.narrative.io/api-reference/compute-pools/update-a-compute-pool} */ updateComputePool(dataPlaneId: string, computePoolId: string, request: UpdateComputePoolRequest): Promise; /** * Archive a compute pool. * * @see {@link https://docs.narrative.io/api-reference/compute-pools/archive-a-compute-pool} */ archiveComputePool(dataPlaneId: string, computePoolId: string): Promise; /** * Set the calling company's own default compute pool on one data plane. * * Level 3 of the pool resolution chain: what the company's jobs run on when * neither the job (level 1) nor the dataset (level 2) pins a pool, taking * precedence over the plane owner's default (level 4, * {@link DataPlaneApi.setDefaultComputePool}). Unlike that one, this works on * any plane the company can reach, not only planes it owns. * * `companyId` must be the authenticated company — the route answers 404 for * any other. The pool must be active, live on `dataPlaneId`, and be one the * company may use (owned, or shared with it through `use` collaborators), * which is exactly the set `listComputePools` returns. * * Replaces any existing default for that plane; other planes' entries are * untouched. Answers 204 and returns nothing — the new value shows up as * `default_source` on the next {@link ComputePoolsApi.listComputePools}. */ setCompanyDefaultComputePool(companyId: number, dataPlaneId: string, computePoolId: string): Promise; /** * Clear the calling company's own default compute pool on one data plane, * letting its jobs fall through to the plane owner's default. * * Idempotent: clearing when nothing is set is a no-op and still answers 204. */ clearCompanyDefaultComputePool(companyId: number, dataPlaneId: string): Promise; }