"use strict";
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
Object.defineProperty(exports, "__esModule", { value: true });
exports.OrangeToOrangeResource = void 0;
const resource_1 = require("cloudflaredev/resource");
class OrangeToOrangeResource extends resource_1.APIResource {
    /**
     * Orange to Orange (O2O) allows zones on Cloudflare to CNAME to other zones also
     * on Cloudflare.
     */
    edit(params, options) {
        const { zone_id, ...body } = params;
        return this._client.patch(`/zones/${zone_id}/settings/orange_to_orange`, {
            body,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
    /**
     * Orange to Orange (O2O) allows zones on Cloudflare to CNAME to other zones also
     * on Cloudflare.
     */
    get(params, options) {
        const { zone_id } = params;
        return this._client.get(`/zones/${zone_id}/settings/orange_to_orange`, options)._thenUnwrap((obj) => obj.result);
    }
}
exports.OrangeToOrangeResource = OrangeToOrangeResource;
(function (OrangeToOrangeResource) {
})(OrangeToOrangeResource = exports.OrangeToOrangeResource || (exports.OrangeToOrangeResource = {}));
//# sourceMappingURL=orange-to-orange.js.map