"use strict";
// File generated from our OpenAPI spec by Stainless.
Object.defineProperty(exports, "__esModule", { value: true });
exports.FallbackOrigin = void 0;
const resource_1 = require("cloudflare/resource");
class FallbackOrigin extends resource_1.APIResource {
    /**
     * Update Fallback Origin for Custom Hostnames
     */
    update(params, options) {
        const { zone_id, ...body } = params;
        return this._client.put(`/zones/${zone_id}/custom_hostnames/fallback_origin`, {
            body,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
    /**
     * Delete Fallback Origin for Custom Hostnames
     */
    delete(params, options) {
        const { zone_id } = params;
        return this._client.delete(`/zones/${zone_id}/custom_hostnames/fallback_origin`, options)._thenUnwrap((obj) => obj.result);
    }
    /**
     * Get Fallback Origin for Custom Hostnames
     */
    get(params, options) {
        const { zone_id } = params;
        return this._client.get(`/zones/${zone_id}/custom_hostnames/fallback_origin`, options)._thenUnwrap((obj) => obj.result);
    }
}
exports.FallbackOrigin = FallbackOrigin;
(function (FallbackOrigin) {
})(FallbackOrigin = exports.FallbackOrigin || (exports.FallbackOrigin = {}));
//# sourceMappingURL=fallback-origin.js.map