cloudflare
Version:
The official TypeScript library for the Cloudflare API
19 lines • 776 B
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflare/resource';
import * as SinkholesAPI from 'cloudflare/resources/intel/sinkholes';
import { SinglePage } from 'cloudflare/pagination';
export class Sinkholes extends APIResource {
/**
* List sinkholes owned by this account
*/
list(params, options) {
const { account_id } = params;
return this._client.getAPIList(`/accounts/${account_id}/intel/sinkholes`, SinkholesSinglePage, options);
}
}
export class SinkholesSinglePage extends SinglePage {
}
(function (Sinkholes) {
Sinkholes.SinkholesSinglePage = SinkholesAPI.SinkholesSinglePage;
})(Sinkholes || (Sinkholes = {}));
//# sourceMappingURL=sinkholes.mjs.map