UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

38 lines • 1.87 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RemediationTypes = exports.BaseRemediationTypes = void 0; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. const resource_1 = require("../../../../../core/resource.js"); const pagination_1 = require("../../../../../core/pagination.js"); const path_1 = require("../../../../../internal/utils/path.js"); var BaseRemediationTypes = /* @__PURE__ */ (() => { class BaseRemediationTypes extends resource_1.APIResource { /** * List all remediation types for a given finding type. This endpoint supports both * cursor and offset pagination. Note that `cursor` and `page` are mutually * exclusive. * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const remediationTypeListResponse of client.zeroTrust.casb.posture.findingTypes.remediationTypes.list( * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', * { account_id: '46148281d8a93d002ef242d8b0d5f9f6' }, * )) { * // ... * } * ``` */ list(findingTypeID, params, options) { const { account_id, ...query } = params; return this._client.getAPIList((0, path_1.path) `/accounts/${account_id}/data-security/posture/finding_types/${findingTypeID}/remediation_types`, (pagination_1.V4PagePaginationArray), { query, ...options }); } } BaseRemediationTypes._key = Object.freeze(['zeroTrust', 'casb', 'posture', 'findingTypes', 'remediationTypes']); return BaseRemediationTypes; })(); exports.BaseRemediationTypes = BaseRemediationTypes; class RemediationTypes extends BaseRemediationTypes { } exports.RemediationTypes = RemediationTypes; //# sourceMappingURL=remediation-types.js.map