UNPKG

dots-wrapper

Version:

Digital Ocean v2 api wrapper - javascript - typescript - nodejs

13 lines (12 loc) 692 B
import { IResponse, IContext } from '../../types'; import { IAction } from '../../action'; export interface IDoActionByDropletTagApiResponse { actions: IAction[]; } export type ActionType = "power_cycle" | "power_on" | "power_off" | "shutdown" | "enable_ipv6" | "enable_backups" | "disable_backups" | "snapshot"; export interface IDoActionByDropletTagApiRequest { tag_name: string; type: ActionType | string; } export type DoActionByDropletTagResponse = IResponse<IDoActionByDropletTagApiResponse>; export declare const doActionByDropletTag: ({ httpClient, }: IContext) => ({ tag_name, type, }: IDoActionByDropletTagApiRequest) => Promise<Readonly<DoActionByDropletTagResponse>>;