UNPKG

node-ovh-ts

Version:

OVH API wrapper library for TypeScript

2 lines 5.03 kB
var i=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var m=(a,e)=>{for(var t in e)i(a,t,{get:e[t],enumerable:!0})},u=(a,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of c(e))!o.call(a,n)&&n!==t&&i(a,n,{get:()=>e[n],enumerable:!(s=r(e,n))||s.enumerable});return a};var h=a=>u(i({},"__esModule",{value:!0}),a);var g={};m(g,{CdnDedicatedHandler:()=>d});module.exports=h(g);var d=class{constructor(e){this.listDedicated=()=>this.ovh.request("GET","/cdn/dedicated");this.listDedicatedPops=()=>this.ovh.request("GET","/cdn/dedicated/pops");this.getDedicatedPopsByName=e=>this.ovh.request("GET",`/cdn/dedicated/pops/${e}`);this.getDedicatedByServiceName=e=>this.ovh.request("GET",`/cdn/dedicated/${e}`);this.launchDedicatedChangeContactByServiceName=(e,t)=>this.ovh.request("POST",`/cdn/dedicated/${e}/changeContact`,t);this.getDedicatedDomainsByServiceName=e=>this.ovh.request("GET",`/cdn/dedicated/${e}/domains`);this.addDedicatedDomainsByServiceName=(e,t)=>this.ovh.request("POST",`/cdn/dedicated/${e}/domains`,t);this.deleteDedicatedDomainsByServiceNameAndDomain=(e,t)=>this.ovh.request("DELETE",`/cdn/dedicated/${t}/domains/${e}`);this.getDedicatedDomainsByServiceNameAndDomain=(e,t)=>this.ovh.request("GET",`/cdn/dedicated/${t}/domains/${e}`);this.updateDedicatedDomainsByServiceNameAndDomain=(e,t,s)=>this.ovh.request("PUT",`/cdn/dedicated/${t}/domains/${e}`,s);this.getDedicatedDomainsBackendsByServiceNameAndDomain=(e,t)=>this.ovh.request("GET",`/cdn/dedicated/${t}/domains/${e}/backends`);this.addDedicatedDomainsBackendsByServiceNameAndDomain=(e,t,s)=>this.ovh.request("POST",`/cdn/dedicated/${t}/domains/${e}/backends`,s);this.deleteDedicatedDomainsBackendsByServiceNameAndDomainAndIp=(e,t,s)=>this.ovh.request("DELETE",`/cdn/dedicated/${s}/domains/${e}/backends/${t}`);this.getDedicatedDomainsBackendsByServiceNameAndDomainAndIp=(e,t,s)=>this.ovh.request("GET",`/cdn/dedicated/${s}/domains/${e}/backends/${t}`);this.getDedicatedDomainsCacheRulesByServiceNameAndDomain=(e,t)=>this.ovh.request("GET",`/cdn/dedicated/${t}/domains/${e}/cacheRules`);this.addDedicatedDomainsCacheRulesByServiceNameAndDomain=(e,t,s)=>this.ovh.request("POST",`/cdn/dedicated/${t}/domains/${e}/cacheRules`,s);this.deleteDedicatedDomainsCacheRulesByServiceNameAndDomainAndCacheRuleId=(e,t,s)=>this.ovh.request("DELETE",`/cdn/dedicated/${s}/domains/${t}/cacheRules/${e}`);this.getDedicatedDomainsCacheRulesByServiceNameAndDomainAndCacheRuleId=(e,t,s)=>this.ovh.request("GET",`/cdn/dedicated/${s}/domains/${t}/cacheRules/${e}`);this.updateDedicatedDomainsCacheRulesByServiceNameAndDomainAndCacheRuleId=(e,t,s,n)=>this.ovh.request("PUT",`/cdn/dedicated/${s}/domains/${t}/cacheRules/${e}`,n);this.postDedicatedDomainsCacheRulesFlushByServiceNameAndDomainAndCacheRuleId=(e,t,s)=>this.ovh.request("POST",`/cdn/dedicated/${s}/domains/${t}/cacheRules/${e}/flush`);this.getDedicatedDomainsCacheRulesTasksByServiceNameAndDomainAndCacheRuleId=(e,t,s)=>this.ovh.request("GET",`/cdn/dedicated/${s}/domains/${t}/cacheRules/${e}/tasks`);this.getDedicatedDomainsCacheRulesTasksByServiceNameAndDomainAndCacheRuleIdAndTaskId=(e,t,s,n)=>this.ovh.request("GET",`/cdn/dedicated/${s}/domains/${t}/cacheRules/${e}/tasks/${n}`);this.postDedicatedDomainsFlushByServiceNameAndDomain=(e,t)=>this.ovh.request("POST",`/cdn/dedicated/${t}/domains/${e}/flush`);this.postDedicatedDomainsLogsByServiceNameAndDomain=(e,t)=>this.ovh.request("POST",`/cdn/dedicated/${t}/domains/${e}/logs`);this.getDedicatedDomainsStatisticsByServiceNameAndDomain=(e,t)=>this.ovh.request("GET",`/cdn/dedicated/${t}/domains/${e}/statistics`);this.getDedicatedDomainsTasksByServiceNameAndDomain=(e,t)=>this.ovh.request("GET",`/cdn/dedicated/${t}/domains/${e}/tasks`);this.getDedicatedDomainsTasksByServiceNameAndDomainAndTaskId=(e,t,s)=>this.ovh.request("GET",`/cdn/dedicated/${t}/domains/${e}/tasks/${s}`);this.postDedicatedLogsByServiceName=e=>this.ovh.request("POST",`/cdn/dedicated/${e}/logs`);this.getDedicatedQuotaByServiceName=e=>this.ovh.request("GET",`/cdn/dedicated/${e}/quota`);this.getDedicatedServiceInfosByServiceName=e=>this.ovh.request("GET",`/cdn/dedicated/${e}/serviceInfos`);this.updateDedicatedServiceInfosByServiceName=(e,t)=>this.ovh.request("PUT",`/cdn/dedicated/${e}/serviceInfos`,t);this.deleteDedicatedSslByServiceName=e=>this.ovh.request("DELETE",`/cdn/dedicated/${e}/ssl`);this.getDedicatedSslByServiceName=e=>this.ovh.request("GET",`/cdn/dedicated/${e}/ssl`);this.addDedicatedSslByServiceName=(e,t)=>this.ovh.request("POST",`/cdn/dedicated/${e}/ssl`,t);this.getDedicatedSslTasksByServiceName=e=>this.ovh.request("GET",`/cdn/dedicated/${e}/ssl/tasks`);this.getDedicatedSslTasksByServiceNameAndTaskId=(e,t)=>this.ovh.request("GET",`/cdn/dedicated/${e}/ssl/tasks/${t}`);this.updateDedicatedSslByServiceName=(e,t)=>this.ovh.request("POST",`/cdn/dedicated/${e}/ssl/update`,t);this.ovh=e}};0&&(module.exports={CdnDedicatedHandler}); //# sourceMappingURL=CdnDedicated.js.map