node-ovh-ts
Version:
OVH API wrapper library for TypeScript
2 lines • 3.03 kB
JavaScript
var s=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var m=(r,e)=>{for(var t in e)s(r,t,{get:e[t],enumerable:!0})},N=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of d(e))!c.call(r,a)&&a!==t&&s(r,a,{get:()=>e[a],enumerable:!(i=o(e,a))||i.enumerable});return r};var u=r=>N(s({},"__esModule",{value:!0}),r);var P={};m(P,{DedicatedNasHandler:()=>n});module.exports=u(P);var n=class{constructor(e){this.listNas=()=>this.ovh.request("GET","/dedicated/nas");this.getNasByServiceName=e=>this.ovh.request("GET",`/dedicated/nas/${e}`);this.updateNasByServiceName=(e,t)=>this.ovh.request("PUT",`/dedicated/nas/${e}`,t);this.getNasPartitionByServiceName=e=>this.ovh.request("GET",`/dedicated/nas/${e}/partition`);this.createNasPartitionByServiceName=(e,t)=>this.ovh.request("POST",`/dedicated/nas/${e}/partition`,t);this.deleteNasPartitionByServiceNameAndPartitionName=(e,t)=>this.ovh.request("DELETE",`/dedicated/nas/${t}/partition/${e}`);this.getNasPartitionByServiceNameAndPartitionName=(e,t)=>this.ovh.request("GET",`/dedicated/nas/${t}/partition/${e}`);this.updateNasPartitionByServiceNameAndPartitionName=(e,t,i)=>this.ovh.request("PUT",`/dedicated/nas/${t}/partition/${e}`,i);this.getNasPartitionAccessByServiceNameAndPartitionName=(e,t)=>this.ovh.request("GET",`/dedicated/nas/${t}/partition/${e}/access`);this.addNasPartitionAccessByServiceNameAndPartitionName=(e,t,i)=>this.ovh.request("POST",`/dedicated/nas/${t}/partition/${e}/access`,i);this.deleteNasPartitionAccessByServiceNameAndPartitionNameAndIp=(e,t,i)=>this.ovh.request("DELETE",`/dedicated/nas/${i}/partition/${t}/access/${e}`);this.getNasPartitionAccessByServiceNameAndPartitionNameAndIp=(e,t,i)=>this.ovh.request("GET",`/dedicated/nas/${i}/partition/${t}/access/${e}`);this.getNasPartitionAuthorizableIpsByServiceNameAndPartitionName=(e,t)=>this.ovh.request("GET",`/dedicated/nas/${t}/partition/${e}/authorizableIps`);this.getNasPartitionQuotaByServiceNameAndPartitionName=(e,t)=>this.ovh.request("GET",`/dedicated/nas/${t}/partition/${e}/quota`);this.postNasPartitionQuotaByServiceNameAndPartitionName=(e,t,i)=>this.ovh.request("POST",`/dedicated/nas/${t}/partition/${e}/quota`,i);this.deleteNasPartitionQuotaByServiceNameAndPartitionNameAndUid=(e,t,i)=>this.ovh.request("DELETE",`/dedicated/nas/${t}/partition/${e}/quota/${i}`);this.getNasPartitionQuotaByServiceNameAndPartitionNameAndUid=(e,t,i)=>this.ovh.request("GET",`/dedicated/nas/${t}/partition/${e}/quota/${i}`);this.getNasServiceInfosByServiceName=e=>this.ovh.request("GET",`/dedicated/nas/${e}/serviceInfos`);this.updateNasServiceInfosByServiceName=(e,t)=>this.ovh.request("PUT",`/dedicated/nas/${e}/serviceInfos`,t);this.getNasTaskByServiceName=e=>this.ovh.request("GET",`/dedicated/nas/${e}/task`);this.getNasTaskByServiceNameAndTaskId=(e,t)=>this.ovh.request("GET",`/dedicated/nas/${e}/task/${t}`);this.ovh=e}};0&&(module.exports={DedicatedNasHandler});
//# sourceMappingURL=DedicatedNas.js.map