@prefecthq/prefect-ui-library
Version:
This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.
15 lines (14 loc) • 744 B
TypeScript
import { PaginatedWorkPoolWorkers, WorkPoolWorker, WorkPoolWorkersPagination } from '../models';
import { WorkPoolWorkersFilter } from '../models/Filters';
import { WorkspaceApi } from '../services';
export type WorkerDeleteArg = {
workPoolName: string;
workerName: string;
};
export declare class WorkspaceWorkPoolWorkersApi extends WorkspaceApi {
protected routePrefix: string;
getWorkers(workPoolName: string, filter?: WorkPoolWorkersFilter): Promise<WorkPoolWorker[]>;
getWorkersPaginated(workPoolName: string, filter?: WorkPoolWorkersPagination): Promise<PaginatedWorkPoolWorkers>;
getWorker(workPoolName: string, workerId: string): Promise<WorkPoolWorker>;
deleteWorker(arg: WorkerDeleteArg): Promise<void>;
}