// File generated from our OpenAPI spec by Stainless.
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