UNPKG

dots-wrapper

Version:

Digital Ocean v2 api wrapper - javascript - typescript - nodejs

13 lines (12 loc) 578 B
import { IResponse, IContext } from '../../types'; import { IAction } from '../../action'; export interface IAttachVolumeToDropletApiResponse { action: IAction; } export interface IAttachVolumeToDropletApiRequest { droplet_id: number; region?: string; volume_id: string; } export type AttachVolumeToDropletResponse = IResponse<IAttachVolumeToDropletApiResponse>; export declare const attachVolumeToDroplet: ({ httpClient, }: IContext) => ({ droplet_id, region, volume_id, }: IAttachVolumeToDropletApiRequest) => Promise<Readonly<AttachVolumeToDropletResponse>>;