dots-wrapper
Version:
Digital Ocean v2 api wrapper - javascript - typescript - nodejs
22 lines (21 loc) • 1.02 kB
TypeScript
import { IResponse, IContext } from '../../types';
import { ILoadBalancer, IForwardingRule, IHealthCheck, IStickSessions } from '..';
export interface ICustomLoadBalancerPayload {
algorithm?: string;
droplet_ids?: number[];
enable_proxy_protocol?: boolean;
forwarding_rules: IForwardingRule[];
health_check?: IHealthCheck;
load_balancer_id: string;
name: string;
redirect_http_to_https?: boolean;
region: string;
sticky_sessions?: IStickSessions;
tag?: string;
vpc_uuid?: string;
}
export interface IUpdateLoadBalancerApiResponse {
load_balancer: ILoadBalancer;
}
export type UpdateLoadBalancerResponse = IResponse<IUpdateLoadBalancerApiResponse>;
export declare const updateLoadBalancer: ({ httpClient, }: IContext) => ({ algorithm, droplet_ids, enable_proxy_protocol, forwarding_rules, health_check, load_balancer_id, name, redirect_http_to_https, region, sticky_sessions, tag, vpc_uuid, }: ICustomLoadBalancerPayload) => Promise<Readonly<UpdateLoadBalancerResponse>>;