"use strict";
// File generated from our OpenAPI spec by Stainless.
Object.defineProperty(exports, "__esModule", { value: true });
exports.Prioritize = void 0;
const resource_1 = require("cloudflare/resource");
class Prioritize extends resource_1.APIResource {
    /**
     * If a zone has multiple SSL certificates, you can set the order in which they
     * should be used during a request. The higher priority will break ties across
     * overlapping 'legacy_custom' certificates.
     */
    update(params, options) {
        const { zone_id, ...body } = params;
        return this._client.put(`/zones/${zone_id}/custom_certificates/prioritize`, {
            body,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
}
exports.Prioritize = Prioritize;
(function (Prioritize) {
})(Prioritize = exports.Prioritize || (exports.Prioritize = {}));
//# sourceMappingURL=prioritize.js.map