UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

38 lines 1.42 kB
import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import * as SmartRoutingAPI from 'cloudflare/resources/argo/smart-routing'; export declare class SmartRouting extends APIResource { /** * Updates enablement of Argo Smart Routing. */ edit(params: SmartRoutingEditParams, options?: Core.RequestOptions): Core.APIPromise<SmartRoutingEditResponse>; /** * Get Argo Smart Routing setting */ get(params: SmartRoutingGetParams, options?: Core.RequestOptions): Core.APIPromise<SmartRoutingGetResponse>; } export type SmartRoutingEditResponse = unknown | string | null; export type SmartRoutingGetResponse = unknown | string | null; export interface SmartRoutingEditParams { /** * Path param: Identifier */ zone_id: string; /** * Body param: Enables Argo Smart Routing. */ value: 'on' | 'off'; } export interface SmartRoutingGetParams { /** * Identifier */ zone_id: string; } export declare namespace SmartRouting { export import SmartRoutingEditResponse = SmartRoutingAPI.SmartRoutingEditResponse; export import SmartRoutingGetResponse = SmartRoutingAPI.SmartRoutingGetResponse; export import SmartRoutingEditParams = SmartRoutingAPI.SmartRoutingEditParams; export import SmartRoutingGetParams = SmartRoutingAPI.SmartRoutingGetParams; } //# sourceMappingURL=smart-routing.d.ts.map