cloudflare
Version:
The official TypeScript library for the Cloudflare API
19 lines • 792 B
JavaScript
;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
Object.defineProperty(exports, "__esModule", { value: true });
exports.CloudflareSource = void 0;
const resource_1 = require("../../../../resource.js");
class CloudflareSource extends resource_1.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);
}
}
exports.CloudflareSource = CloudflareSource;
//# sourceMappingURL=cloudflare-source.js.map