node-ovh-ts
Version:
OVH API wrapper library for TypeScript
2 lines • 4.95 kB
JavaScript
var i=class{constructor(e){this.listNasha=()=>this.ovh.request("GET","/dedicated/nasha");this.getNashaByServiceName=e=>this.ovh.request("GET",`/dedicated/nasha/${e}`);this.updateNashaByServiceName=(e,t)=>this.ovh.request("PUT",`/dedicated/nasha/${e}`,t);this.launchNashaChangeContactByServiceName=(e,t)=>this.ovh.request("POST",`/dedicated/nasha/${e}/changeContact`,t);this.confirmNashaTerminationByServiceName=(e,t)=>this.ovh.request("POST",`/dedicated/nasha/${e}/confirmTermination`,t);this.getNashaPartitionByServiceName=e=>this.ovh.request("GET",`/dedicated/nasha/${e}/partition`);this.createNashaPartitionByServiceName=(e,t)=>this.ovh.request("POST",`/dedicated/nasha/${e}/partition`,t);this.deleteNashaPartitionByServiceNameAndPartitionName=(e,t)=>this.ovh.request("DELETE",`/dedicated/nasha/${t}/partition/${e}`);this.getNashaPartitionByServiceNameAndPartitionName=(e,t)=>this.ovh.request("GET",`/dedicated/nasha/${t}/partition/${e}`);this.updateNashaPartitionByServiceNameAndPartitionName=(e,t,a)=>this.ovh.request("PUT",`/dedicated/nasha/${t}/partition/${e}`,a);this.getNashaPartitionAccessByServiceNameAndPartitionName=(e,t)=>this.ovh.request("GET",`/dedicated/nasha/${t}/partition/${e}/access`);this.addNashaPartitionAccessByServiceNameAndPartitionName=(e,t,a)=>this.ovh.request("POST",`/dedicated/nasha/${t}/partition/${e}/access`,a);this.deleteNashaPartitionAccessByServiceNameAndPartitionNameAndIp=(e,t,a)=>this.ovh.request("DELETE",`/dedicated/nasha/${a}/partition/${t}/access/${e}`);this.getNashaPartitionAccessByServiceNameAndPartitionNameAndIp=(e,t,a)=>this.ovh.request("GET",`/dedicated/nasha/${a}/partition/${t}/access/${e}`);this.getNashaPartitionAuthorizableBlocksByServiceNameAndPartitionName=(e,t)=>this.ovh.request("GET",`/dedicated/nasha/${t}/partition/${e}/authorizableBlocks`);this.getNashaPartitionAuthorizableIpsByServiceNameAndPartitionName=(e,t)=>this.ovh.request("GET",`/dedicated/nasha/${t}/partition/${e}/authorizableIps`);this.getNashaPartitionCustomSnapshotByServiceNameAndPartitionName=(e,t)=>this.ovh.request("GET",`/dedicated/nasha/${t}/partition/${e}/customSnapshot`);this.createNashaPartitionCustomSnapshotByServiceNameAndPartitionName=(e,t,a)=>this.ovh.request("POST",`/dedicated/nasha/${t}/partition/${e}/customSnapshot`,a);this.deleteNashaPartitionCustomSnapshotByServiceNameAndPartitionNameAndName=(e,t,a)=>this.ovh.request("DELETE",`/dedicated/nasha/${a}/partition/${t}/customSnapshot/${e}`);this.getNashaPartitionCustomSnapshotByServiceNameAndPartitionNameAndName=(e,t,a)=>this.ovh.request("GET",`/dedicated/nasha/${a}/partition/${t}/customSnapshot/${e}`);this.getNashaPartitionOptionsByServiceNameAndPartitionName=(e,t)=>this.ovh.request("GET",`/dedicated/nasha/${t}/partition/${e}/options`);this.postNashaPartitionOptionsByServiceNameAndPartitionName=(e,t,a)=>this.ovh.request("POST",`/dedicated/nasha/${t}/partition/${e}/options`,a);this.getNashaPartitionQuotaByServiceNameAndPartitionName=(e,t)=>this.ovh.request("GET",`/dedicated/nasha/${t}/partition/${e}/quota`);this.postNashaPartitionQuotaByServiceNameAndPartitionName=(e,t,a)=>this.ovh.request("POST",`/dedicated/nasha/${t}/partition/${e}/quota`,a);this.deleteNashaPartitionQuotaByServiceNameAndPartitionNameAndUid=(e,t,a)=>this.ovh.request("DELETE",`/dedicated/nasha/${t}/partition/${e}/quota/${a}`);this.getNashaPartitionQuotaByServiceNameAndPartitionNameAndUid=(e,t,a)=>this.ovh.request("GET",`/dedicated/nasha/${t}/partition/${e}/quota/${a}`);this.getNashaPartitionSnapshotByServiceNameAndPartitionName=(e,t)=>this.ovh.request("GET",`/dedicated/nasha/${t}/partition/${e}/snapshot`);this.postNashaPartitionSnapshotByServiceNameAndPartitionName=(e,t,a)=>this.ovh.request("POST",`/dedicated/nasha/${t}/partition/${e}/snapshot`,a);this.deleteNashaPartitionSnapshotByServiceNameAndPartitionNameAndSnapshotType=(e,t,a)=>this.ovh.request("DELETE",`/dedicated/nasha/${t}/partition/${e}/snapshot/${a}`);this.getNashaPartitionSnapshotByServiceNameAndPartitionNameAndSnapshotType=(e,t,a)=>this.ovh.request("GET",`/dedicated/nasha/${t}/partition/${e}/snapshot/${a}`);this.getNashaPartitionUseByServiceNameAndPartitionName=(e,t)=>this.ovh.request("GET",`/dedicated/nasha/${t}/partition/${e}/use`);this.getNashaServiceInfosByServiceName=e=>this.ovh.request("GET",`/dedicated/nasha/${e}/serviceInfos`);this.updateNashaServiceInfosByServiceName=(e,t)=>this.ovh.request("PUT",`/dedicated/nasha/${e}/serviceInfos`,t);this.getNashaTaskByServiceName=e=>this.ovh.request("GET",`/dedicated/nasha/${e}/task`);this.getNashaTaskByServiceNameAndTaskId=(e,t)=>this.ovh.request("GET",`/dedicated/nasha/${e}/task/${t}`);this.postNashaTerminateByServiceName=e=>this.ovh.request("POST",`/dedicated/nasha/${e}/terminate`);this.getNashaUseByServiceName=e=>this.ovh.request("GET",`/dedicated/nasha/${e}/use`);this.deleteNashaVrackByServiceName=e=>this.ovh.request("DELETE",`/dedicated/nasha/${e}/vrack`);this.ovh=e}};export{i as a};
//# sourceMappingURL=chunk-3J2JJO5J.mjs.map