UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

33 lines 1.25 kB
"use strict"; // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. Object.defineProperty(exports, "__esModule", { value: true }); exports.SchemaValidation = void 0; const resource_1 = require("../../../resource.js"); class SchemaValidation extends resource_1.APIResource { /** * Updates zone level schema validation settings on the zone */ update(params, options) { const { zone_id, ...body } = params; return this._client.put(`/zones/${zone_id}/api_gateway/settings/schema_validation`, { body, ...options }); } /** * Updates zone level schema validation settings on the zone */ edit(params, options) { const { zone_id, ...body } = params; return this._client.patch(`/zones/${zone_id}/api_gateway/settings/schema_validation`, { body, ...options, }); } /** * Retrieves zone level schema validation settings currently set on the zone */ get(params, options) { const { zone_id } = params; return this._client.get(`/zones/${zone_id}/api_gateway/settings/schema_validation`, options); } } exports.SchemaValidation = SchemaValidation; //# sourceMappingURL=schema-validation.js.map