UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

36 lines • 1.25 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Full = exports.BaseFull = void 0; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. const resource_1 = require("../../../core/resource.js"); const path_1 = require("../../../internal/utils/path.js"); var BaseFull = /* @__PURE__ */ (() => { class BaseFull extends resource_1.APIResource { /** * Lists default sampling, router IPs, warp devices, and rules for account. * * @example * ```ts * const configuration = * await client.magicNetworkMonitoring.configs.full.get({ * account_id: '6f91088a406011ed95aed352566e8d4c', * }); * ``` */ get(params, options) { const { account_id } = params; return this._client.get((0, path_1.path) `/accounts/${account_id}/mnm/config/full`, options)._thenUnwrap((obj) => obj.result); } } BaseFull._key = Object.freeze([ 'magicNetworkMonitoring', 'configs', 'full', ]); return BaseFull; })(); exports.BaseFull = BaseFull; class Full extends BaseFull { } exports.Full = Full; //# sourceMappingURL=full.js.map