UNPKG

node-ovh-ts

Version:

OVH API wrapper library for TypeScript

2 lines 1.49 kB
var n=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var v=(i,e)=>{for(var t in e)n(i,t,{get:e[t],enumerable:!0})},c=(i,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of u(e))!m.call(i,r)&&r!==t&&n(i,r,{get:()=>e[r],enumerable:!(o=a(e,r))||o.enumerable});return i};var h=i=>c(n({},"__esModule",{value:!0}),i);var g={};v(g,{NutanixHandler:()=>s});module.exports=h(g);var s=class{constructor(e){this.get=()=>this.ovh.request("GET","/nutanix");this.getAvailabilities=()=>this.ovh.request("GET","/nutanix/availabilities");this.getAvailableVersions=()=>this.ovh.request("GET","/nutanix/availableVersions");this.getRequirements=()=>this.ovh.request("GET","/nutanix/requirements");this.getByServiceName=e=>this.ovh.request("GET",`/nutanix/${e}`);this.updateByServiceName=(e,t)=>this.ovh.request("PUT",`/nutanix/${e}`,t);this.launchChangeContactByServiceName=(e,t)=>this.ovh.request("POST",`/nutanix/${e}/changeContact`,t);this.confirmTerminationByServiceName=(e,t)=>this.ovh.request("POST",`/nutanix/${e}/confirmTermination`,t);this.getServiceInfosByServiceName=e=>this.ovh.request("GET",`/nutanix/${e}/serviceInfos`);this.updateServiceInfosByServiceName=(e,t)=>this.ovh.request("PUT",`/nutanix/${e}/serviceInfos`,t);this.postTerminateByServiceName=e=>this.ovh.request("POST",`/nutanix/${e}/terminate`);this.ovh=e}};0&&(module.exports={NutanixHandler}); //# sourceMappingURL=Nutanix.js.map