"use strict";
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
Object.defineProperty(exports, "__esModule", { value: true });
exports.Locations = void 0;
const resource_1 = require("cloudflaredev/resource");
const core_1 = require("cloudflaredev/core");
class Locations extends resource_1.APIResource {
    origin(query = {}, options) {
        if ((0, core_1.isRequestOptions)(query)) {
            return this.origin({}, query);
        }
        return this._client.get('/radar/attacks/layer7/top/locations/origin', {
            query,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
    target(query = {}, options) {
        if ((0, core_1.isRequestOptions)(query)) {
            return this.target({}, query);
        }
        return this._client.get('/radar/attacks/layer7/top/locations/target', {
            query,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
}
exports.Locations = Locations;
(function (Locations) {
})(Locations = exports.Locations || (exports.Locations = {}));
//# sourceMappingURL=locations.js.map