UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

27 lines 1.18 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from 'cloudflare/resource'; export class VerificationResource extends 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); } } (function (VerificationResource) { })(VerificationResource || (VerificationResource = {})); //# sourceMappingURL=verification.mjs.map