cloudflare
Version:
The official TypeScript library for the Cloudflare API
46 lines • 1.58 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Locations = exports.BaseLocations = void 0;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
const resource_1 = require("../../../../../core/resource.js");
var BaseLocations = /* @__PURE__ */ (() => {
class BaseLocations extends resource_1.APIResource {
/**
* Retrieves the origin locations of layer 3 attacks.
*
* @example
* ```ts
* const response =
* await client.radar.attacks.layer3.top.locations.origin();
* ```
*/
origin(query = {}, options) {
return this._client.get('/radar/attacks/layer3/top/locations/origin', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the target locations of layer 3 attacks.
*
* @example
* ```ts
* const response =
* await client.radar.attacks.layer3.top.locations.target();
* ```
*/
target(query = {}, options) {
return this._client.get('/radar/attacks/layer3/top/locations/target', { query, ...options })._thenUnwrap((obj) => obj.result);
}
}
BaseLocations._key = Object.freeze([
'radar',
'attacks',
'layer3',
'top',
'locations',
]);
return BaseLocations;
})();
exports.BaseLocations = BaseLocations;
class Locations extends BaseLocations {
}
exports.Locations = Locations;
//# sourceMappingURL=locations.js.map