dots-wrapper
Version:
Digital Ocean v2 api wrapper - javascript - typescript - nodejs
14 lines • 641 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.destroyDropletAndAssociatedResources = void 0;
const destroyDropletAndAssociatedResources = ({ httpClient, }) => ({ droplet_id, snapshots, volume_snapshots, volumes, }) => {
const url = `/droplets/${droplet_id}/destroy_with_associated_resources/selective`;
const body = {
snapshots,
volume_snapshots,
volumes,
};
return httpClient.delete(url, { data: body });
};
exports.destroyDropletAndAssociatedResources = destroyDropletAndAssociatedResources;
//# sourceMappingURL=destroy-droplet-and-associated-resources.js.map