cloudflare
Version:
The official TypeScript library for the Cloudflare API
32 lines • 1.22 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../resource.mjs";
export class AddressSpaces extends APIResource {
/**
* Update the Magic WAN Address Space (Closed Beta).
*/
update(params, options) {
const { account_id, ...body } = params;
return this._client.put(`/accounts/${account_id}/magic/cloud/onramps/magic_wan_address_space`, {
body,
...options,
})._thenUnwrap((obj) => obj.result);
}
/**
* Read the Magic WAN Address Space (Closed Beta).
*/
list(params, options) {
const { account_id } = params;
return this._client.get(`/accounts/${account_id}/magic/cloud/onramps/magic_wan_address_space`, options)._thenUnwrap((obj) => obj.result);
}
/**
* Update the Magic WAN Address Space (Closed Beta).
*/
edit(params, options) {
const { account_id, ...body } = params;
return this._client.patch(`/accounts/${account_id}/magic/cloud/onramps/magic_wan_address_space`, {
body,
...options,
})._thenUnwrap((obj) => obj.result);
}
}
//# sourceMappingURL=address-spaces.mjs.map