"use strict";
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
Object.defineProperty(exports, "__esModule", { value: true });
exports.Flag = void 0;
const resource_1 = require("cloudflaredev/resource");
class Flag extends resource_1.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);
    }
}
exports.Flag = Flag;
(function (Flag) {
})(Flag = exports.Flag || (exports.Flag = {}));
//# sourceMappingURL=flag.js.map