node-ovh-ts
Version:
OVH API wrapper library for TypeScript
2 lines • 2.85 kB
JavaScript
var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var u=(r,s)=>{for(var e in s)a(r,e,{get:s[e],enumerable:!0})},S=(r,s,e,i)=>{if(s&&typeof s=="object"||typeof s=="function")for(let t of c(s))!p.call(r,t)&&t!==e&&a(r,t,{get:()=>s[t],enumerable:!(i=o(s,t))||i.enumerable});return r};var m=r=>S(a({},"__esModule",{value:!0}),r);var d={};u(d,{SaasCsp2Handler:()=>n});module.exports=m(d);var n=class{constructor(s){this.listCsp2=()=>this.ovh.request("GET","/saas/csp2");this.getCsp2ByServiceName=s=>this.ovh.request("GET",`/saas/csp2/${s}`);this.updateCsp2ByServiceName=(s,e)=>this.ovh.request("PUT",`/saas/csp2/${s}`,e);this.getCsp2BillingPeriodPeaksByServiceName=s=>this.ovh.request("GET",`/saas/csp2/${s}/billingPeriodPeaks`);this.updateCsp2AdministratorPasswordByServiceName=(s,e)=>this.ovh.request("POST",`/saas/csp2/${s}/changeAdministratorPassword`,e);this.postCsp2ConfigureDomainByServiceName=(s,e)=>this.ovh.request("POST",`/saas/csp2/${s}/configureDomain`,e);this.getCsp2OrderableLicensesByServiceName=s=>this.ovh.request("GET",`/saas/csp2/${s}/orderableLicenses`);this.getCsp2OrderableLicensesByServiceNameAndId=(s,e)=>this.ovh.request("GET",`/saas/csp2/${s}/orderableLicenses/${e}`);this.getCsp2ServiceInfosByServiceName=s=>this.ovh.request("GET",`/saas/csp2/${s}/serviceInfos`);this.updateCsp2ServiceInfosByServiceName=(s,e)=>this.ovh.request("PUT",`/saas/csp2/${s}/serviceInfos`,e);this.getCsp2SubscriptionByServiceName=s=>this.ovh.request("GET",`/saas/csp2/${s}/subscription`);this.addCsp2SubscriptionByServiceName=(s,e)=>this.ovh.request("POST",`/saas/csp2/${s}/subscription`,e);this.deleteCsp2SubscriptionByServiceNameAndId=(s,e)=>this.ovh.request("DELETE",`/saas/csp2/${s}/subscription/${e}`);this.getCsp2SubscriptionByServiceNameAndId=(s,e)=>this.ovh.request("GET",`/saas/csp2/${s}/subscription/${e}`);this.addCsp2SubscriptiononsSubscriptionIdsByServiceNameAndId=(s,e)=>this.ovh.request("GET",`/saas/csp2/${s}/subscription/${e}/addonsSubscriptionIds`);this.getCsp2SubscriptionAvailableAddonLicensesByServiceNameAndId=(s,e)=>this.ovh.request("GET",`/saas/csp2/${s}/subscription/${e}/availableAddonLicenses`);this.updateCsp2SubscriptionQuantityByServiceNameAndId=(s,e,i)=>this.ovh.request("POST",`/saas/csp2/${s}/subscription/${e}/changeQuantity`,i);this.createCsp2SubscriptionOrderAddonByServiceNameAndId=(s,e,i)=>this.ovh.request("POST",`/saas/csp2/${s}/subscription/${e}/orderAddon`,i);this.getCsp2TaskByServiceName=s=>this.ovh.request("GET",`/saas/csp2/${s}/task`);this.getCsp2TaskByServiceNameAndId=(s,e)=>this.ovh.request("GET",`/saas/csp2/${s}/task/${e}`);this.getCsp2UsageStatisticsByServiceName=s=>this.ovh.request("GET",`/saas/csp2/${s}/usageStatistics`);this.ovh=s}};0&&(module.exports={SaasCsp2Handler});
//# sourceMappingURL=SaasCsp2.js.map