node-ovh-ts
Version:
OVH API wrapper library for TypeScript
2 lines • 12.7 kB
JavaScript
var t=class{constructor(e){this.list=()=>this.ovh.request("GET","/ipLoadbalancing");this.listAvailableZones=()=>this.ovh.request("GET","/ipLoadbalancing/availableZones");this.getByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}`);this.updateByServiceName=(e,r)=>this.ovh.request("PUT",`/ipLoadbalancing/${e}`,r);this.getAvailableFarmProbesByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/availableFarmProbes`);this.getAvailableFarmTypeByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/availableFarmType`);this.getAvailableFrontendTypeByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/availableFrontendType`);this.getAvailableRouteActionsByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/availableRouteActions`);this.getAvailableRouteRulesByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/availableRouteRules`);this.launchChangeContactByServiceName=(e,r)=>this.ovh.request("POST",`/ipLoadbalancing/${e}/changeContact`,r);this.confirmTerminationByServiceName=(e,r)=>this.ovh.request("POST",`/ipLoadbalancing/${e}/confirmTermination`,r);this.listDefinedFarmsByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/definedFarms`);this.listDefinedFrontendsByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/definedFrontends`);this.listDefinedRoutesByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/definedRoutes`);this.listFailoverByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/failover`);this.postFreeCertificateByServiceName=(e,r)=>this.ovh.request("POST",`/ipLoadbalancing/${e}/freeCertificate`,r);this.getHttpFarmByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/http/farm`);this.addHttpFarmByServiceName=(e,r)=>this.ovh.request("POST",`/ipLoadbalancing/${e}/http/farm`,r);this.deleteHttpFarmByServiceNameAndFarmId=(e,r)=>this.ovh.request("DELETE",`/ipLoadbalancing/${r}/http/farm/${e}`);this.getHttpFarmByServiceNameAndFarmId=(e,r)=>this.ovh.request("GET",`/ipLoadbalancing/${r}/http/farm/${e}`);this.updateHttpFarmByServiceNameAndFarmId=(e,r,n)=>this.ovh.request("PUT",`/ipLoadbalancing/${r}/http/farm/${e}`,n);this.getHttpFarmServerByServiceNameAndFarmId=(e,r)=>this.ovh.request("GET",`/ipLoadbalancing/${r}/http/farm/${e}/server`);this.addHttpFarmServerByServiceNameAndFarmId=(e,r,n)=>this.ovh.request("POST",`/ipLoadbalancing/${r}/http/farm/${e}/server`,n);this.deleteHttpFarmServerByServiceNameAndFarmIdAndServerId=(e,r,n)=>this.ovh.request("DELETE",`/ipLoadbalancing/${n}/http/farm/${e}/server/${r}`);this.getHttpFarmServerByServiceNameAndFarmIdAndServerId=(e,r,n)=>this.ovh.request("GET",`/ipLoadbalancing/${n}/http/farm/${e}/server/${r}`);this.updateHttpFarmServerByServiceNameAndFarmIdAndServerId=(e,r,n,a)=>this.ovh.request("PUT",`/ipLoadbalancing/${n}/http/farm/${e}/server/${r}`,a);this.getHttpFrontendByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/http/frontend`);this.addHttpFrontendByServiceName=(e,r)=>this.ovh.request("POST",`/ipLoadbalancing/${e}/http/frontend`,r);this.deleteHttpFrontendByServiceNameAndFrontendId=(e,r)=>this.ovh.request("DELETE",`/ipLoadbalancing/${r}/http/frontend/${e}`);this.getHttpFrontendByServiceNameAndFrontendId=(e,r)=>this.ovh.request("GET",`/ipLoadbalancing/${r}/http/frontend/${e}`);this.updateHttpFrontendByServiceNameAndFrontendId=(e,r,n)=>this.ovh.request("PUT",`/ipLoadbalancing/${r}/http/frontend/${e}`,n);this.getHttpRouteByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/http/route`);this.addHttpRouteByServiceName=(e,r)=>this.ovh.request("POST",`/ipLoadbalancing/${e}/http/route`,r);this.deleteHttpRouteByServiceNameAndRouteId=(e,r)=>this.ovh.request("DELETE",`/ipLoadbalancing/${r}/http/route/${e}`);this.getHttpRouteByServiceNameAndRouteId=(e,r)=>this.ovh.request("GET",`/ipLoadbalancing/${r}/http/route/${e}`);this.updateHttpRouteByServiceNameAndRouteId=(e,r,n)=>this.ovh.request("PUT",`/ipLoadbalancing/${r}/http/route/${e}`,n);this.getHttpRouteRuleByServiceNameAndRouteId=(e,r)=>this.ovh.request("GET",`/ipLoadbalancing/${r}/http/route/${e}/rule`);this.addHttpRouteRuleByServiceNameAndRouteId=(e,r,n)=>this.ovh.request("POST",`/ipLoadbalancing/${r}/http/route/${e}/rule`,n);this.deleteHttpRouteRuleByServiceNameAndRouteIdAndRuleId=(e,r,n)=>this.ovh.request("DELETE",`/ipLoadbalancing/${n}/http/route/${e}/rule/${r}`);this.getHttpRouteRuleByServiceNameAndRouteIdAndRuleId=(e,r,n)=>this.ovh.request("GET",`/ipLoadbalancing/${n}/http/route/${e}/rule/${r}`);this.updateHttpRouteRuleByServiceNameAndRouteIdAndRuleId=(e,r,n,a)=>this.ovh.request("PUT",`/ipLoadbalancing/${n}/http/route/${e}/rule/${r}`,a);this.getInstancesStateByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/instancesState`);this.getNatIpByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/natIp`);this.listPendingChangesByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/pendingChanges`);this.getQuotaByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/quota`);this.getQuotaByServiceNameAndZone=(e,r)=>this.ovh.request("GET",`/ipLoadbalancing/${e}/quota/${r}`);this.updateQuotaByServiceNameAndZone=(e,r,n)=>this.ovh.request("PUT",`/ipLoadbalancing/${e}/quota/${r}`,n);this.getQuotaHistoryByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/quotaHistory`);this.getQuotaHistoryByServiceNameAndId=(e,r)=>this.ovh.request("GET",`/ipLoadbalancing/${r}/quotaHistory/${e}`);this.postRefreshByServiceName=(e,r)=>this.ovh.request("POST",`/ipLoadbalancing/${e}/refresh`,r);this.getServiceInfosByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/serviceInfos`);this.updateServiceInfosByServiceName=(e,r)=>this.ovh.request("PUT",`/ipLoadbalancing/${e}/serviceInfos`,r);this.getSslByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/ssl`);this.addSslByServiceName=(e,r)=>this.ovh.request("POST",`/ipLoadbalancing/${e}/ssl`,r);this.deleteSslByServiceNameAndId=(e,r)=>this.ovh.request("DELETE",`/ipLoadbalancing/${r}/ssl/${e}`);this.getSslByServiceNameAndId=(e,r)=>this.ovh.request("GET",`/ipLoadbalancing/${r}/ssl/${e}`);this.updateSslByServiceNameAndId=(e,r,n)=>this.ovh.request("PUT",`/ipLoadbalancing/${r}/ssl/${e}`,n);this.getStatusByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/status`);this.getTaskByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/task`);this.getTaskByServiceNameAndId=(e,r)=>this.ovh.request("GET",`/ipLoadbalancing/${r}/task/${e}`);this.getTcpFarmByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/tcp/farm`);this.addTcpFarmByServiceName=(e,r)=>this.ovh.request("POST",`/ipLoadbalancing/${e}/tcp/farm`,r);this.deleteTcpFarmByServiceNameAndFarmId=(e,r)=>this.ovh.request("DELETE",`/ipLoadbalancing/${r}/tcp/farm/${e}`);this.getTcpFarmByServiceNameAndFarmId=(e,r)=>this.ovh.request("GET",`/ipLoadbalancing/${r}/tcp/farm/${e}`);this.updateTcpFarmByServiceNameAndFarmId=(e,r,n)=>this.ovh.request("PUT",`/ipLoadbalancing/${r}/tcp/farm/${e}`,n);this.getTcpFarmServerByServiceNameAndFarmId=(e,r)=>this.ovh.request("GET",`/ipLoadbalancing/${r}/tcp/farm/${e}/server`);this.addTcpFarmServerByServiceNameAndFarmId=(e,r,n)=>this.ovh.request("POST",`/ipLoadbalancing/${r}/tcp/farm/${e}/server`,n);this.deleteTcpFarmServerByServiceNameAndFarmIdAndServerId=(e,r,n)=>this.ovh.request("DELETE",`/ipLoadbalancing/${n}/tcp/farm/${e}/server/${r}`);this.getTcpFarmServerByServiceNameAndFarmIdAndServerId=(e,r,n)=>this.ovh.request("GET",`/ipLoadbalancing/${n}/tcp/farm/${e}/server/${r}`);this.updateTcpFarmServerByServiceNameAndFarmIdAndServerId=(e,r,n,a)=>this.ovh.request("PUT",`/ipLoadbalancing/${n}/tcp/farm/${e}/server/${r}`,a);this.getTcpFrontendByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/tcp/frontend`);this.addTcpFrontendByServiceName=(e,r)=>this.ovh.request("POST",`/ipLoadbalancing/${e}/tcp/frontend`,r);this.deleteTcpFrontendByServiceNameAndFrontendId=(e,r)=>this.ovh.request("DELETE",`/ipLoadbalancing/${r}/tcp/frontend/${e}`);this.getTcpFrontendByServiceNameAndFrontendId=(e,r)=>this.ovh.request("GET",`/ipLoadbalancing/${r}/tcp/frontend/${e}`);this.updateTcpFrontendByServiceNameAndFrontendId=(e,r,n)=>this.ovh.request("PUT",`/ipLoadbalancing/${r}/tcp/frontend/${e}`,n);this.getTcpRouteByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/tcp/route`);this.addTcpRouteByServiceName=(e,r)=>this.ovh.request("POST",`/ipLoadbalancing/${e}/tcp/route`,r);this.deleteTcpRouteByServiceNameAndRouteId=(e,r)=>this.ovh.request("DELETE",`/ipLoadbalancing/${r}/tcp/route/${e}`);this.getTcpRouteByServiceNameAndRouteId=(e,r)=>this.ovh.request("GET",`/ipLoadbalancing/${r}/tcp/route/${e}`);this.updateTcpRouteByServiceNameAndRouteId=(e,r,n)=>this.ovh.request("PUT",`/ipLoadbalancing/${r}/tcp/route/${e}`,n);this.getTcpRouteRuleByServiceNameAndRouteId=(e,r)=>this.ovh.request("GET",`/ipLoadbalancing/${r}/tcp/route/${e}/rule`);this.addTcpRouteRuleByServiceNameAndRouteId=(e,r,n)=>this.ovh.request("POST",`/ipLoadbalancing/${r}/tcp/route/${e}/rule`,n);this.deleteTcpRouteRuleByServiceNameAndRouteIdAndRuleId=(e,r,n)=>this.ovh.request("DELETE",`/ipLoadbalancing/${n}/tcp/route/${e}/rule/${r}`);this.getTcpRouteRuleByServiceNameAndRouteIdAndRuleId=(e,r,n)=>this.ovh.request("GET",`/ipLoadbalancing/${n}/tcp/route/${e}/rule/${r}`);this.updateTcpRouteRuleByServiceNameAndRouteIdAndRuleId=(e,r,n,a)=>this.ovh.request("PUT",`/ipLoadbalancing/${n}/tcp/route/${e}/rule/${r}`,a);this.postTerminateByServiceName=e=>this.ovh.request("POST",`/ipLoadbalancing/${e}/terminate`);this.getUdpFarmByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/udp/farm`);this.addUdpFarmByServiceName=(e,r)=>this.ovh.request("POST",`/ipLoadbalancing/${e}/udp/farm`,r);this.deleteUdpFarmByServiceNameAndFarmId=(e,r)=>this.ovh.request("DELETE",`/ipLoadbalancing/${r}/udp/farm/${e}`);this.getUdpFarmByServiceNameAndFarmId=(e,r)=>this.ovh.request("GET",`/ipLoadbalancing/${r}/udp/farm/${e}`);this.updateUdpFarmByServiceNameAndFarmId=(e,r,n)=>this.ovh.request("PUT",`/ipLoadbalancing/${r}/udp/farm/${e}`,n);this.getUdpFarmServerByServiceNameAndFarmId=(e,r)=>this.ovh.request("GET",`/ipLoadbalancing/${r}/udp/farm/${e}/server`);this.addUdpFarmServerByServiceNameAndFarmId=(e,r,n)=>this.ovh.request("POST",`/ipLoadbalancing/${r}/udp/farm/${e}/server`,n);this.deleteUdpFarmServerByServiceNameAndFarmIdAndServerId=(e,r,n)=>this.ovh.request("DELETE",`/ipLoadbalancing/${n}/udp/farm/${e}/server/${r}`);this.getUdpFarmServerByServiceNameAndFarmIdAndServerId=(e,r,n)=>this.ovh.request("GET",`/ipLoadbalancing/${n}/udp/farm/${e}/server/${r}`);this.updateUdpFarmServerByServiceNameAndFarmIdAndServerId=(e,r,n,a)=>this.ovh.request("PUT",`/ipLoadbalancing/${n}/udp/farm/${e}/server/${r}`,a);this.getUdpFrontendByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/udp/frontend`);this.addUdpFrontendByServiceName=(e,r)=>this.ovh.request("POST",`/ipLoadbalancing/${e}/udp/frontend`,r);this.deleteUdpFrontendByServiceNameAndFrontendId=(e,r)=>this.ovh.request("DELETE",`/ipLoadbalancing/${r}/udp/frontend/${e}`);this.getUdpFrontendByServiceNameAndFrontendId=(e,r)=>this.ovh.request("GET",`/ipLoadbalancing/${r}/udp/frontend/${e}`);this.updateUdpFrontendByServiceNameAndFrontendId=(e,r,n)=>this.ovh.request("PUT",`/ipLoadbalancing/${r}/udp/frontend/${e}`,n);this.getVrackNetworkByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/vrack/network`);this.addVrackNetworkByServiceName=(e,r)=>this.ovh.request("POST",`/ipLoadbalancing/${e}/vrack/network`,r);this.deleteVrackNetworkByServiceNameAndVrackNetworkId=(e,r)=>this.ovh.request("DELETE",`/ipLoadbalancing/${e}/vrack/network/${r}`);this.getVrackNetworkByServiceNameAndVrackNetworkId=(e,r)=>this.ovh.request("GET",`/ipLoadbalancing/${e}/vrack/network/${r}`);this.updateVrackNetworkByServiceNameAndVrackNetworkId=(e,r,n)=>this.ovh.request("PUT",`/ipLoadbalancing/${e}/vrack/network/${r}`,n);this.updateVrackNetworkFarmIdByServiceNameAndVrackNetworkId=(e,r,n)=>this.ovh.request("POST",`/ipLoadbalancing/${e}/vrack/network/${r}/updateFarmId`,n);this.getVrackNetworkCreationRulesByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/vrack/networkCreationRules`);this.getVrackStatusByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/vrack/status`);this.getZoneByServiceName=e=>this.ovh.request("GET",`/ipLoadbalancing/${e}/zone`);this.getZoneByServiceNameAndName=(e,r)=>this.ovh.request("GET",`/ipLoadbalancing/${r}/zone/${e}`);this.postZoneCancelTerminationByServiceNameAndName=(e,r)=>this.ovh.request("POST",`/ipLoadbalancing/${r}/zone/${e}/cancelTermination`);this.postZoneTerminateByServiceNameAndName=(e,r)=>this.ovh.request("POST",`/ipLoadbalancing/${r}/zone/${e}/terminate`);this.ovh=e}};export{t as a};
//# sourceMappingURL=chunk-ECXHSPGM.mjs.map