2025-11-13 13:13:34 -07:00

29 lines
1.0 KiB
JavaScript

// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../resource.mjs";
export class ManagedTransforms extends APIResource {
/**
* Fetches a list of all Managed Transforms.
*/
list(params, options) {
const { zone_id } = params;
return this._client.get(`/zones/${zone_id}/managed_headers`, options)._thenUnwrap((obj) => obj.result);
}
/**
* Disables all Managed Transforms.
*/
delete(params, options) {
const { zone_id } = params;
return this._client.delete(`/zones/${zone_id}/managed_headers`, {
...options,
headers: { Accept: '*/*', ...options?.headers },
});
}
/**
* Updates the status of one or more Managed Transforms.
*/
edit(params, options) {
const { zone_id, ...body } = params;
return this._client.patch(`/zones/${zone_id}/managed_headers`, { body, ...options })._thenUnwrap((obj) => obj.result);
}
}
//# sourceMappingURL=managed-transforms.mjs.map