UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

28 lines • 1.16 kB
// 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 BaseByDataset = /* @__PURE__ */ (() => { class BaseByDataset extends APIResource { /** * Lists all target industries for a specific dataset * * @example * ```ts * const byDatasets = * await client.cloudforceOne.threatEvents.targetIndustries.byDataset.list( * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', * { account_id: 'account_id' }, * ); * ``` */ list(datasetID, params, options) { const { account_id } = params; return this._client.get(path `/accounts/${account_id}/cloudforce-one/events/dataset/${datasetID}/targetIndustries`, options); } } BaseByDataset._key = Object.freeze(['cloudforceOne', 'threatEvents', 'targetIndustries', 'byDataset']); return BaseByDataset; })(); export class ByDataset extends BaseByDataset { } //# sourceMappingURL=by-dataset.mjs.map