UNPKG

node-ovh-ts

Version:

OVH API wrapper library for TypeScript

2 lines 1.57 kB
var e=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}};export{e as a}; //# sourceMappingURL=chunk-SZ53OTBB.mjs.map