cloudflare
Version:
The official TypeScript library for the Cloudflare API
15 lines • 633 B
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../../resource.mjs";
export class CloudflareSource extends APIResource {
/**
* Updates the Cloudflare Source subnet of the given address family
*/
update(addressFamily, params, options) {
const { account_id, ...body } = params;
return this._client.patch(`/accounts/${account_id}/zerotrust/subnets/cloudflare_source/${addressFamily}`, {
body,
...options,
})._thenUnwrap((obj) => obj.result);
}
}
//# sourceMappingURL=cloudflare-source.mjs.map