UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

39 lines • 1.37 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../../core/resource.mjs"; import { V4PagePagination } from "../../../../core/pagination.mjs"; import { path } from "../../../../internal/utils/path.mjs"; export var BaseISPs = /* @__PURE__ */ (() => { class BaseISPs extends APIResource { /** * List ISP information observed for a specific device during traceroute tests. * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const isps of client.zeroTrust.dex.devices.isps.list( * 'f174e90a-fafe-4643-bbbc-4a0ed4fc8415', * { * account_id: '01a7362d577a6c3019a474fd6f485823', * per_page: 10, * }, * )) { * // ... * } * ``` */ list(deviceID, params, options) { const { account_id, ...query } = params; return this._client.getAPIList(path `/accounts/${account_id}/dex/devices/${deviceID}/isps`, (V4PagePagination), { query, ...options }); } } BaseISPs._key = Object.freeze([ 'zeroTrust', 'dex', 'devices', 'isps', ]); return BaseISPs; })(); export class ISPs extends BaseISPs { } //# sourceMappingURL=isps.mjs.map