node-ovh-ts
Version:
OVH API wrapper library for TypeScript
2 lines • 6.18 kB
JavaScript
var t=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var u=(o,e)=>{for(var r in e)t(o,r,{get:e[r],enumerable:!0})},d=(o,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of a(e))!c.call(o,s)&&s!==r&&t(o,s,{get:()=>e[s],enumerable:!(i=m(e,s))||i.enumerable});return o};var h=o=>d(t({},"__esModule",{value:!0}),o);var w={};u(w,{HorizonViewHandler:()=>n});module.exports=h(w);var n=class{constructor(e){this.list=()=>this.ovh.request("GET","/horizonView");this.getByServiceName=e=>this.ovh.request("GET",`/horizonView/${e}`);this.getAccessPointByServiceName=e=>this.ovh.request("GET",`/horizonView/${e}/accessPoint`);this.addAccessPointByServiceName=(e,r)=>this.ovh.request("POST",`/horizonView/${e}/accessPoint`,r);this.deleteAccessPointByServiceNameAndAccessPointId=(e,r)=>this.ovh.request("DELETE",`/horizonView/${r}/accessPoint/${e}`);this.getAccessPointByServiceNameAndAccessPointId=(e,r)=>this.ovh.request("GET",`/horizonView/${r}/accessPoint/${e}`);this.postAccessPointChangeSessionTimeoutByServiceNameAndAccessPointId=(e,r,i)=>this.ovh.request("POST",`/horizonView/${r}/accessPoint/${e}/changeSessionTimeout`,i);this.getAccessPointCustomerNetworkByServiceNameAndAccessPointId=(e,r)=>this.ovh.request("GET",`/horizonView/${r}/accessPoint/${e}/customerNetwork`);this.addAccessPointCustomerNetworkByServiceNameAndAccessPointId=(e,r,i)=>this.ovh.request("POST",`/horizonView/${r}/accessPoint/${e}/customerNetwork`,i);this.deleteAccessPointCustomerNetworkByServiceNameAndAccessPointIdAndCustomerNetworkId=(e,r,i)=>this.ovh.request("DELETE",`/horizonView/${i}/accessPoint/${e}/customerNetwork/${r}`);this.getAccessPointCustomerNetworkByServiceNameAndAccessPointIdAndCustomerNetworkId=(e,r,i)=>this.ovh.request("GET",`/horizonView/${i}/accessPoint/${e}/customerNetwork/${r}`);this.disableAccessPointTwoFAByServiceNameAndAccessPointId=(e,r)=>this.ovh.request("POST",`/horizonView/${r}/accessPoint/${e}/disableTwoFA`);this.disableAccessPointWindowsUsernameOptionByServiceNameAndAccessPointId=(e,r,i)=>this.ovh.request("POST",`/horizonView/${r}/accessPoint/${e}/disableWindowsUsernameOption`,i);this.enableAccessPointTwoFAByServiceNameAndAccessPointId=(e,r,i)=>this.ovh.request("POST",`/horizonView/${r}/accessPoint/${e}/enableTwoFA`,i);this.enableAccessPointWindowsUsernameOptionByServiceNameAndAccessPointId=(e,r,i)=>this.ovh.request("POST",`/horizonView/${r}/accessPoint/${e}/enableWindowsUsernameOption`,i);this.confirmTerminationByServiceName=(e,r)=>this.ovh.request("POST",`/horizonView/${e}/confirmTermination`,r);this.getCustomerNetworkByServiceName=e=>this.ovh.request("GET",`/horizonView/${e}/customerNetwork`);this.addCustomerNetworkByServiceName=(e,r)=>this.ovh.request("POST",`/horizonView/${e}/customerNetwork`,r);this.deleteCustomerNetworkByServiceNameAndCustomerNetworkId=(e,r)=>this.ovh.request("DELETE",`/horizonView/${r}/customerNetwork/${e}`);this.getCustomerNetworkByServiceNameAndCustomerNetworkId=(e,r)=>this.ovh.request("GET",`/horizonView/${r}/customerNetwork/${e}`);this.getDedicatedHorizonByServiceName=e=>this.ovh.request("GET",`/horizonView/${e}/dedicatedHorizon`);this.getDedicatedHorizonCustomerUserByServiceName=e=>this.ovh.request("GET",`/horizonView/${e}/dedicatedHorizon/customerUser`);this.createDedicatedHorizonCustomerUserByServiceName=(e,r)=>this.ovh.request("POST",`/horizonView/${e}/dedicatedHorizon/customerUser`,r);this.deleteDedicatedHorizonCustomerUserByServiceNameAndUsername=(e,r)=>this.ovh.request("DELETE",`/horizonView/${e}/dedicatedHorizon/customerUser/${r}`);this.getDedicatedHorizonCustomerUserByServiceNameAndUsername=(e,r)=>this.ovh.request("GET",`/horizonView/${e}/dedicatedHorizon/customerUser/${r}`);this.updateDedicatedHorizonCustomerUserPasswordByServiceNameAndUsername=(e,r,i)=>this.ovh.request("POST",`/horizonView/${e}/dedicatedHorizon/customerUser/${r}/changePassword`,i);this.disableDedicatedHorizonStorageAcceleratorByServiceName=e=>this.ovh.request("POST",`/horizonView/${e}/dedicatedHorizon/disableStorageAccelerator`);this.enableDedicatedHorizonStorageAcceleratorByServiceName=e=>this.ovh.request("POST",`/horizonView/${e}/dedicatedHorizon/enableStorageAccelerator`);this.getDedicatedHorizonTaskByServiceName=e=>this.ovh.request("GET",`/horizonView/${e}/dedicatedHorizon/task`);this.getDedicatedHorizonTaskByServiceNameAndTaskId=(e,r)=>this.ovh.request("GET",`/horizonView/${e}/dedicatedHorizon/task/${r}`);this.getDedicatedHorizonUserByServiceName=e=>this.ovh.request("GET",`/horizonView/${e}/dedicatedHorizon/user`);this.updateDedicatedHorizonUserPasswordByServiceName=(e,r)=>this.ovh.request("POST",`/horizonView/${e}/dedicatedHorizon/user/changePassword`,r);this.updateDedicatedHorizonUserPropertiesByServiceName=(e,r)=>this.ovh.request("POST",`/horizonView/${e}/dedicatedHorizon/user/changeProperties`,r);this.listDomainTrustByServiceName=e=>this.ovh.request("GET",`/horizonView/${e}/domainTrust`);this.postDomainTrustByServiceName=(e,r)=>this.ovh.request("POST",`/horizonView/${e}/domainTrust`,r);this.getDomainTrustByServiceNameAndDomainTrustId=(e,r)=>this.ovh.request("GET",`/horizonView/${r}/domainTrust/${e}`);this.addDomainTrustChildDomainByServiceNameAndDomainTrustId=(e,r,i)=>this.ovh.request("POST",`/horizonView/${r}/domainTrust/${e}/addChildDomain`,i);this.addDomainTrustDomainControllerByServiceNameAndDomainTrustId=(e,r,i)=>this.ovh.request("POST",`/horizonView/${r}/domainTrust/${e}/addDomainController`,i);this.addDomainTrustDomainUserOnComposerByServiceNameAndDomainTrustId=(e,r,i)=>this.ovh.request("POST",`/horizonView/${r}/domainTrust/${e}/addDomainUserOnComposer`,i);this.updateDomainTrustCreateTrustByServiceNameAndDomainTrustId=(e,r,i)=>this.ovh.request("POST",`/horizonView/${r}/domainTrust/${e}/createTrust`,i);this.getServiceInfosByServiceName=e=>this.ovh.request("GET",`/horizonView/${e}/serviceInfos`);this.updateServiceInfosByServiceName=(e,r)=>this.ovh.request("PUT",`/horizonView/${e}/serviceInfos`,r);this.postTerminateByServiceName=e=>this.ovh.request("POST",`/horizonView/${e}/terminate`);this.ovh=e}};0&&(module.exports={HorizonViewHandler});
//# sourceMappingURL=HorizonView.js.map