cloudflare
Version:
The official TypeScript library for the Cloudflare API
23 lines • 905 B
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../resource.mjs";
import { SinglePage } from "../../pagination.mjs";
export class Edge extends APIResource {
/**
* Creates a new Instant Logs job for a zone.
*/
create(params, options) {
const { zone_id, ...body } = params;
return this._client.post(`/zones/${zone_id}/logpush/edge`, { body, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Lists Instant Logs jobs for a zone.
*/
get(params, options) {
const { zone_id } = params;
return this._client.getAPIList(`/zones/${zone_id}/logpush/edge`, InstantLogpushJobsSinglePage, options);
}
}
export class InstantLogpushJobsSinglePage extends SinglePage {
}
Edge.InstantLogpushJobsSinglePage = InstantLogpushJobsSinglePage;
//# sourceMappingURL=edge.mjs.map