UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

26 lines 997 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from 'cloudflare/resource'; export class OrangeToOrange extends 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); } } (function (OrangeToOrange) { })(OrangeToOrange || (OrangeToOrange = {})); //# sourceMappingURL=orange-to-orange.mjs.map