dots-wrapper
Version:
Digital Ocean v2 api wrapper - javascript - typescript - nodejs
11 lines • 443 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.resizeVolume = void 0;
const resizeVolume = ({ httpClient, }) => ({ region, size_gigabytes, volume_id, }) => {
const url = `/volumes/${volume_id}/actions`;
const type = 'resize';
const body = { region, size_gigabytes, type };
return httpClient.post(url, body);
};
exports.resizeVolume = resizeVolume;
//# sourceMappingURL=resize-volume.js.map