cloudflare
Version:
The official TypeScript library for the Cloudflare API
44 lines • 1.92 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AddressSpaces = exports.BaseAddressSpaces = void 0;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
const resource_1 = require("../../../core/resource.js");
const path_1 = require("../../../internal/utils/path.js");
var BaseAddressSpaces = /* @__PURE__ */ (() => {
class BaseAddressSpaces extends resource_1.APIResource {
/**
* Update the Magic WAN Address Space (Closed Beta).
*/
update(params, options) {
const { account_id, ...body } = params;
return this._client.put((0, path_1.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((0, path_1.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((0, path_1.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;
})();
exports.BaseAddressSpaces = BaseAddressSpaces;
class AddressSpaces extends BaseAddressSpaces {
}
exports.AddressSpaces = AddressSpaces;
//# sourceMappingURL=address-spaces.js.map