cloudflare
Version:
The official TypeScript library for the Cloudflare API
39 lines • 1.46 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Raw = exports.BaseRaw = void 0;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
const resource_1 = require("../../../../core/resource.js");
const headers_1 = require("../../../../internal/headers.js");
const path_1 = require("../../../../internal/utils/path.js");
var BaseRaw = /* @__PURE__ */ (() => {
class BaseRaw extends resource_1.APIResource {
/**
* Retrieves the feed document fetched by the most recent poll.
*
* @example
* ```ts
* const raw =
* await client.cloudforceOne.threatSignals.feeds.raw.get(
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
* { account_id: 'account_id' },
* );
* ```
*/
get(feedID, params, options) {
const { account_id, ...query } = params;
return this._client.get((0, path_1.path) `/accounts/${account_id}/cloudforce-one/v2/threat-signals/feeds/${feedID}/raw`, { query, ...options, headers: (0, headers_1.buildHeaders)([{ Accept: 'application/xml' }, options?.headers]) });
}
}
BaseRaw._key = Object.freeze([
'cloudforceOne',
'threatSignals',
'feeds',
'raw',
]);
return BaseRaw;
})();
exports.BaseRaw = BaseRaw;
class Raw extends BaseRaw {
}
exports.Raw = Raw;
//# sourceMappingURL=raw.js.map