UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

26 lines 1.03 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../resource.mjs"; export class Keys extends APIResource { /** * Updates the Access key rotation settings for an account. */ update(params, options) { const { account_id, ...body } = params; return this._client.put(`/accounts/${account_id}/access/keys`, { body, ...options })._thenUnwrap((obj) => obj.result); } /** * Gets the Access key rotation settings for an account. */ get(params, options) { const { account_id } = params; return this._client.get(`/accounts/${account_id}/access/keys`, options)._thenUnwrap((obj) => obj.result); } /** * Perfoms a key rotation for an account. */ rotate(params, options) { const { account_id } = params; return this._client.post(`/accounts/${account_id}/access/keys/rotate`, options)._thenUnwrap((obj) => obj.result); } } //# sourceMappingURL=keys.mjs.map