cloudflare
Version:
The official TypeScript library for the Cloudflare API
36 lines • 1.14 kB
JavaScript
;
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 locations, by HTTP requests, of the requested operating
* system.
*
* @example
* ```ts
* const os = await client.radar.http.locations.os.get(
* 'WINDOWS',
* );
* ```
*/
get(os, query = {}, options) {
return this._client.get((0, path_1.path) `/radar/http/top/locations/os/${os}`, { query, ...options })._thenUnwrap((obj) => obj.result);
}
}
BaseOS._key = Object.freeze([
'radar',
'http',
'locations',
'os',
]);
return BaseOS;
})();
exports.BaseOS = BaseOS;
class OS extends BaseOS {
}
exports.OS = OS;
//# sourceMappingURL=os.js.map