UNPKG

node-ovh-ts

Version:

OVH API wrapper library for TypeScript

2 lines 2.04 kB
var r=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var d=(a,e)=>{for(var t in e)r(a,t,{get:e[t],enumerable:!0})},p=(a,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of s(e))!o.call(a,n)&&n!==t&&r(a,n,{get:()=>e[n],enumerable:!(i=l(e,n))||i.enumerable});return a};var T=a=>p(r({},"__esModule",{value:!0}),a);var h={};d(h,{DedicatedInstallationTemplateHandler:()=>m});module.exports=T(h);var m=class{constructor(e){this.getInstallationTemplate=()=>this.ovh.request("GET","/dedicated/installationTemplate");this.getInstallationTemplateTemplateInfos=()=>this.ovh.request("GET","/dedicated/installationTemplate/templateInfos");this.getInstallationTemplateByTemplateName=e=>this.ovh.request("GET",`/dedicated/installationTemplate/${e}`);this.getInstallationTemplatePartitionSchemeByTemplateName=e=>this.ovh.request("GET",`/dedicated/installationTemplate/${e}/partitionScheme`);this.getInstallationTemplatePartitionSchemeByTemplateNameAndSchemeName=(e,t)=>this.ovh.request("GET",`/dedicated/installationTemplate/${t}/partitionScheme/${e}`);this.getInstallationTemplatePartitionSchemeHardwareRaidByTemplateNameAndSchemeName=(e,t)=>this.ovh.request("GET",`/dedicated/installationTemplate/${t}/partitionScheme/${e}/hardwareRaid`);this.getInstallationTemplatePartitionSchemeHardwareRaidByTemplateNameAndSchemeNameAndName=(e,t,i)=>this.ovh.request("GET",`/dedicated/installationTemplate/${i}/partitionScheme/${t}/hardwareRaid/${e}`);this.getInstallationTemplatePartitionSchemePartitionByTemplateNameAndSchemeName=(e,t)=>this.ovh.request("GET",`/dedicated/installationTemplate/${t}/partitionScheme/${e}/partition`);this.getInstallationTemplatePartitionSchemePartitionByTemplateNameAndSchemeNameAndMountpoint=(e,t,i)=>this.ovh.request("GET",`/dedicated/installationTemplate/${i}/partitionScheme/${t}/partition/${e}`);this.ovh=e}};0&&(module.exports={DedicatedInstallationTemplateHandler}); //# sourceMappingURL=DedicatedInstallationTemplate.js.map