UNPKG

@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_.

26 lines (25 loc) 1.55 kB
import { Deployment } from '../models/Deployment'; import { DeploymentCreate } from '../models/DeploymentCreate'; import { DeploymentFlowRunCreate } from '../models/DeploymentFlowRunCreate'; import { DeploymentUpdateV2 } from '../models/DeploymentUpdate'; import { DeploymentsFilter, DeploymentsPaginationFilter } from '../models/Filters'; import { FlowRun } from '../models/FlowRun'; import { Paginated } from '../models/pagination'; import { WorkspaceApi } from '../services/WorkspaceApi'; export declare class WorkspaceDeploymentsApi extends WorkspaceApi { protected routePrefix: string; private readonly batcher; getDeployment(deploymentId: string): Promise<Deployment>; protected getSingleDeployment(deploymentId: string): Promise<Deployment>; getDeployments(filter?: DeploymentsFilter): Promise<Deployment[]>; getDeploymentsPaginated(filter?: DeploymentsPaginationFilter): Promise<Paginated<Deployment>>; getDeploymentsCount(filter?: DeploymentsFilter): Promise<number>; createDeployment(deployment: DeploymentCreate): Promise<Deployment>; createDeploymentFlowRun(deploymentId: string, request: DeploymentFlowRunCreate): Promise<FlowRun>; updateDeploymentV2(deploymentId: string, request: DeploymentUpdateV2): Promise<void>; pauseDeployment(id: string): Promise<void>; resumeDeployment(id: string): Promise<void>; deleteDeployment(deploymentId: string): Promise<void>; disableDeployment(deploymentId: string): Promise<void>; enableDeployment(deploymentId: string): Promise<void>; }