"use strict";
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
Object.defineProperty(exports, "__esModule", { value: true });
exports.ForceAXFRResource = void 0;
const resource_1 = require("cloudflaredev/resource");
class ForceAXFRResource extends resource_1.APIResource {
    /**
     * Sends AXFR zone transfer request to primary nameserver(s).
     */
    create(params, options) {
        const { zone_id, body } = params;
        return this._client.post(`/zones/${zone_id}/secondary_dns/force_axfr`, {
            body: body,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
}
exports.ForceAXFRResource = ForceAXFRResource;
(function (ForceAXFRResource) {
})(ForceAXFRResource = exports.ForceAXFRResource || (exports.ForceAXFRResource = {}));
//# sourceMappingURL=force-axfr.js.map