cloudflare
Version:
The official TypeScript library for the Cloudflare API
31 lines • 1.07 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../core/resource.mjs";
import { path } from "../../../internal/utils/path.mjs";
export var BaseFull = /* @__PURE__ */ (() => {
class BaseFull extends 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(path `/accounts/${account_id}/mnm/config/full`, options)._thenUnwrap((obj) => obj.result);
}
}
BaseFull._key = Object.freeze([
'magicNetworkMonitoring',
'configs',
'full',
]);
return BaseFull;
})();
export class Full extends BaseFull {
}
//# sourceMappingURL=full.mjs.map