import * as http from './http.js';
/** POST /vps/instances/{id}/transfer — Offer this server to another account. */
export const offerInstance = (client, id, body) => http.post(client, '/vps/instances/{id}/transfer', { params: { id }, body });
/** DELETE /vps/instances/{id}/transfer — Withdraw the pending server transfer offer. */
export const withdrawInstanceOffer = (client, id) => http.del(client, '/vps/instances/{id}/transfer', { params: { id } });
/** POST /vps/volumes/{id}/transfer — Offer this volume to another account. */
export const offerVolume = (client, id, body) => http.post(client, '/vps/volumes/{id}/transfer', { params: { id }, body });
/** DELETE /vps/volumes/{id}/transfer — Withdraw the pending volume transfer offer. */
export const withdrawVolumeOffer = (client, id) => http.del(client, '/vps/volumes/{id}/transfer', { params: { id } });
/** POST /vps/images/{id}/transfer — Offer this image to another account. */
export const offerImage = (client, id, body) => http.post(client, '/vps/images/{id}/transfer', { params: { id }, body });
/** DELETE /vps/images/{id}/transfer — Withdraw the pending image transfer offer. */
export const withdrawImageOffer = (client, id) => http.del(client, '/vps/images/{id}/transfer', { params: { id } });
/** GET /vps/transfers — Pending handover offers, both directions. */
export const list = (client) => http.get(client, '/vps/transfers');
/** POST /vps/transfers/{id}/accept — Take over the offered resource. */
export const accept = (client, id, body) => http.post(client, '/vps/transfers/{id}/accept', { params: { id }, body });
/** POST /vps/transfers/{id}/decline — Decline an incoming transfer offer. */
export const decline = (client, id) => http.post(client, '/vps/transfers/{id}/decline', { params: { id } });