UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

29 lines 1.28 kB
"use strict"; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. Object.defineProperty(exports, "__esModule", { value: true }); exports.CustomNameservers = void 0; const resource_1 = require("cloudflare/resource"); class CustomNameservers extends resource_1.APIResource { /** * Set metadata for account-level custom nameservers on a zone. * * If you would like new zones in the account to use account custom nameservers by * default, use PUT /accounts/:identifier to set the account setting * use_account_custom_ns_by_default to true. */ update(params, options) { const { zone_id, ...body } = params; return this._client.put(`/zones/${zone_id}/custom_ns`, { body, ...options })._thenUnwrap((obj) => obj.result); } /** * Get metadata for account-level custom nameservers on a zone. */ get(params, options) { const { zone_id } = params; return this._client.get(`/zones/${zone_id}/custom_ns`, options)._thenUnwrap((obj) => obj.result); } } exports.CustomNameservers = CustomNameservers; (function (CustomNameservers) { })(CustomNameservers = exports.CustomNameservers || (exports.CustomNameservers = {})); //# sourceMappingURL=custom-nameservers.js.map