UNPKG

node-ovh-ts

Version:

OVH API wrapper library for TypeScript

2 lines 2.06 kB
var i=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var c=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},u=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of m(t))!l.call(e,s)&&s!==r&&i(e,s,{get:()=>t[s],enumerable:!(a=n(t,s))||a.enumerable});return e};var y=e=>u(i({},"__esModule",{value:!0}),e);var f={};c(f,{AnalyticsHandler:()=>o});module.exports=y(f);var o=class{constructor(t){this.getCapabilitiesPlatforms=()=>this.ovh.request("GET","/analytics/capabilities/platforms");this.listPlatforms=()=>this.ovh.request("GET","/analytics/platforms");this.getPlatformsByServiceName=t=>this.ovh.request("GET",`/analytics/platforms/${t}`);this.getPlatformsActivityByServiceName=t=>this.ovh.request("GET",`/analytics/platforms/${t}/activity`);this.launchPlatformsChangeContactByServiceName=(t,r)=>this.ovh.request("POST",`/analytics/platforms/${t}/changeContact`,r);this.confirmPlatformsTerminationByServiceName=(t,r)=>this.ovh.request("POST",`/analytics/platforms/${t}/confirmTermination`,r);this.postPlatformsDeployByServiceName=(t,r)=>this.ovh.request("POST",`/analytics/platforms/${t}/deploy`,r);this.postPlatformsDestroyByServiceName=(t,r)=>this.ovh.request("POST",`/analytics/platforms/${t}/destroy`,r);this.listPlatformsNodesByServiceName=t=>this.ovh.request("GET",`/analytics/platforms/${t}/nodes`);this.getPlatformsNodesByServiceNameAndNodeId=(t,r)=>this.ovh.request("GET",`/analytics/platforms/${r}/nodes/${t}`);this.getPlatformsServiceInfosByServiceName=t=>this.ovh.request("GET",`/analytics/platforms/${t}/serviceInfos`);this.updatePlatformsServiceInfosByServiceName=(t,r)=>this.ovh.request("PUT",`/analytics/platforms/${t}/serviceInfos`,r);this.getPlatformsStatusByServiceName=t=>this.ovh.request("GET",`/analytics/platforms/${t}/status`);this.postPlatformsTerminateByServiceName=t=>this.ovh.request("POST",`/analytics/platforms/${t}/terminate`);this.ovh=t}};0&&(module.exports={AnalyticsHandler}); //# sourceMappingURL=Analytics.js.map