cloudflare
Version:
The official TypeScript library for the Cloudflare API
22 lines • 788 B
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflare/resource';
export class Flag extends APIResource {
/**
* Updates log retention flag for Logpull API.
*/
create(zoneIdentifier, body, options) {
return this._client.post(`/zones/${zoneIdentifier}/logs/control/retention/flag`, {
body,
...options,
})._thenUnwrap((obj) => obj.result);
}
/**
* Gets log retention flag for Logpull API.
*/
get(zoneIdentifier, options) {
return this._client.get(`/zones/${zoneIdentifier}/logs/control/retention/flag`, options)._thenUnwrap((obj) => obj.result);
}
}
(function (Flag) {
})(Flag || (Flag = {}));
//# sourceMappingURL=flag.mjs.map