cloudflare
Version:
The official TypeScript library for the Cloudflare API
27 lines • 1.06 kB
JavaScript
// 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 BaseCatalog = /* @__PURE__ */ (() => {
class BaseCatalog extends APIResource {
/**
* Lists all target industries from industry map catalog
*
* @example
* ```ts
* const catalogs =
* await client.cloudforceOne.threatEvents.targetIndustries.catalog.list(
* { account_id: 'account_id' },
* );
* ```
*/
list(params, options) {
const { account_id } = params;
return this._client.get(path `/accounts/${account_id}/cloudforce-one/events/targetIndustries/catalog`, options);
}
}
BaseCatalog._key = Object.freeze(['cloudforceOne', 'threatEvents', 'targetIndustries', 'catalog']);
return BaseCatalog;
})();
export class Catalog extends BaseCatalog {
}
//# sourceMappingURL=catalog.mjs.map