UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

29 lines • 944 B
// 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 BaseOS = /* @__PURE__ */ (() => { class BaseOS extends 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(path `/radar/http/top/ases/os/${os}`, { query, ...options })._thenUnwrap((obj) => obj.result); } } BaseOS._key = Object.freeze([ 'radar', 'http', 'ases', 'os', ]); return BaseOS; })(); export class OS extends BaseOS { } //# sourceMappingURL=os.mjs.map