// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflaredev/resource';
export class CatchAlls extends APIResource {
    /**
     * Enable or disable catch-all routing rule, or change action to forward to
     * specific destination address.
     */
    update(zoneIdentifier, body, options) {
        return this._client.put(`/zones/${zoneIdentifier}/email/routing/rules/catch_all`, {
            body,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
    /**
     * Get information on the default catch-all routing rule.
     */
    get(zoneIdentifier, options) {
        return this._client.get(`/zones/${zoneIdentifier}/email/routing/rules/catch_all`, options)._thenUnwrap((obj) => obj.result);
    }
}
(function (CatchAlls) {
})(CatchAlls || (CatchAlls = {}));
//# sourceMappingURL=catch-alls.mjs.map