dots-wrapper
Version:
Digital Ocean v2 api wrapper - javascript - typescript - nodejs
15 lines (14 loc) • 539 B
TypeScript
import { IResponse, IContext } from '../../types';
import { IVpc } from '../';
export interface ICreateVpcApiResponse {
vpc: IVpc;
}
export interface ICreateVpcApiRequest {
description?: string;
ip_range?: string;
is_default?: boolean;
name: string;
region: string;
}
export type CreateVpcResponse = IResponse<ICreateVpcApiResponse>;
export declare const createVpc: ({ httpClient, }: IContext) => ({ description, ip_range, is_default, name, region, }: ICreateVpcApiRequest) => Promise<Readonly<CreateVpcResponse>>;