cloudflare
Version:
The official TypeScript library for the Cloudflare API
39 lines • 1.66 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../core/resource.mjs";
import { path } from "../../../internal/utils/path.mjs";
export var BaseAddressSpaces = /* @__PURE__ */ (() => {
class BaseAddressSpaces extends APIResource {
/**
* Update the Magic WAN Address Space (Closed Beta).
*/
update(params, options) {
const { account_id, ...body } = params;
return this._client.put(path `/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(path `/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(path `/accounts/${account_id}/magic/cloud/onramps/magic_wan_address_space`, {
body,
...options,
})._thenUnwrap((obj) => obj.result);
}
}
BaseAddressSpaces._key = Object.freeze(['magicCloudNetworking', 'onRamps', 'addressSpaces']);
return BaseAddressSpaces;
})();
export class AddressSpaces extends BaseAddressSpaces {
}
//# sourceMappingURL=address-spaces.mjs.map