cloudflare
Version:
The official TypeScript library for the Cloudflare API
37 lines • 1.29 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../../core/resource.mjs";
import { SinglePage } from "../../../../core/pagination.mjs";
import { path } from "../../../../internal/utils/path.mjs";
export var BaseLogs = /* @__PURE__ */ (() => {
class BaseLogs extends APIResource {
/**
* Gets log entries for an R2 Super Slurper migration job, showing migration status
* changes, errors, etc.
*
* @example
* ```ts
* // Automatically fetches more pages as needed.
* for await (const logListResponse of client.r2.superSlurper.jobs.logs.list(
* 'job_id',
* { account_id: 'account_id' },
* )) {
* // ...
* }
* ```
*/
list(jobID, params, options) {
const { account_id, ...query } = params;
return this._client.getAPIList(path `/accounts/${account_id}/slurper/jobs/${jobID}/logs`, (SinglePage), { query, ...options });
}
}
BaseLogs._key = Object.freeze([
'r2',
'superSlurper',
'jobs',
'logs',
]);
return BaseLogs;
})();
export class Logs extends BaseLogs {
}
//# sourceMappingURL=logs.mjs.map