UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

34 lines • 1.11 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OS = exports.BaseOS = 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 BaseOS = /* @__PURE__ */ (() => { class BaseOS extends resource_1.APIResource { /** * Retrieves the top autonomous systems, by HTTP requests, of the requested * operating system. * * @example * ```ts * const os = await client.radar.http.ases.os.get('WINDOWS'); * ``` */ get(os, query = {}, options) { return this._client.get((0, path_1.path) `/radar/http/top/ases/os/${os}`, { query, ...options })._thenUnwrap((obj) => obj.result); } } BaseOS._key = Object.freeze([ 'radar', 'http', 'ases', 'os', ]); return BaseOS; })(); exports.BaseOS = BaseOS; class OS extends BaseOS { } exports.OS = OS; //# sourceMappingURL=os.js.map