UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

34 lines 1.31 kB
import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import * as IPsAPI from 'cloudflare/resources/addressing/address-maps/ips'; export declare class IPs extends APIResource { /** * Add an IP from a prefix owned by the account to a particular address map. */ update(addressMapId: string, ipAddress: string, params: IPUpdateParams, options?: Core.RequestOptions): Core.APIPromise<IPUpdateResponse | null>; /** * Remove an IP from a particular address map. */ delete(addressMapId: string, ipAddress: string, params: IPDeleteParams, options?: Core.RequestOptions): Core.APIPromise<IPDeleteResponse | null>; } export type IPUpdateResponse = unknown | Array<unknown> | string; export type IPDeleteResponse = unknown | Array<unknown> | string; export interface IPUpdateParams { /** * Identifier */ account_id: string; } export interface IPDeleteParams { /** * Identifier */ account_id: string; } export declare namespace IPs { export import IPUpdateResponse = IPsAPI.IPUpdateResponse; export import IPDeleteResponse = IPsAPI.IPDeleteResponse; export import IPUpdateParams = IPsAPI.IPUpdateParams; export import IPDeleteParams = IPsAPI.IPDeleteParams; } //# sourceMappingURL=ips.d.ts.map