UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

31 lines 1.39 kB
"use strict"; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. Object.defineProperty(exports, "__esModule", { value: true }); exports.VerificationResource = void 0; const resource_1 = require("cloudflare/resource"); class VerificationResource extends resource_1.APIResource { /** * Edit SSL validation method for a certificate pack. A PATCH request will request * an immediate validation check on any certificate, and return the updated status. * If a validation method is provided, the validation will be immediately attempted * using that method. */ edit(certificatePackId, params, options) { const { zone_id, ...body } = params; return this._client.patch(`/zones/${zone_id}/ssl/verification/${certificatePackId}`, { body, ...options, })._thenUnwrap((obj) => obj.result); } /** * Get SSL Verification Info for a Zone. */ get(params, options) { const { zone_id, ...query } = params; return this._client.get(`/zones/${zone_id}/ssl/verification`, { query, ...options })._thenUnwrap((obj) => obj.result); } } exports.VerificationResource = VerificationResource; (function (VerificationResource) { })(VerificationResource = exports.VerificationResource || (exports.VerificationResource = {})); //# sourceMappingURL=verification.js.map