"use strict";
// File generated from our OpenAPI spec by Stainless.
Object.defineProperty(exports, "__esModule", { value: true });
exports.Previews = void 0;
const resource_1 = require("cloudflare/resource");
class Previews extends resource_1.APIResource {
    /**
     * Create a new preview health check.
     */
    create(zoneIdentifier, body, options) {
        return this._client.post(`/zones/${zoneIdentifier}/healthchecks/preview`, {
            body,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
    /**
     * Delete a health check.
     */
    delete(zoneIdentifier, identifier, options) {
        return this._client.delete(`/zones/${zoneIdentifier}/healthchecks/preview/${identifier}`, options)._thenUnwrap((obj) => obj.result);
    }
    /**
     * Fetch a single configured health check preview.
     */
    get(zoneIdentifier, identifier, options) {
        return this._client.get(`/zones/${zoneIdentifier}/healthchecks/preview/${identifier}`, options)._thenUnwrap((obj) => obj.result);
    }
}
exports.Previews = Previews;
(function (Previews) {
})(Previews = exports.Previews || (exports.Previews = {}));
//# sourceMappingURL=previews.js.map