This is an example of how to create an orchestrator class library using the Build Tools.
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: Samples / ClassLibrary.ts
import{Logger}from"com.vmware.pscoe.library.ts.logging/Logger";
import{ConfigElementAccessor}from"com.vmware.pscoe.library.ts.util/ConfigElementAccessor";
import{ResourceElementAccessor}from"com.vmware.pscoe.library.ts.util/ResourceElementAccessor";
exportclassSampleClassName{
public strPublicValue:string;
private strPrivateValue:string;
constructor(strPrivateValue:string){
if (!strPrivateValue){
thrownewError('strPrivateValue');
}
this.strPrivateValue=strPrivateValue;
this.setPublicValue();
}
publicgetPrivateValue():string{
returnthis.strPrivateValue;
}
publicsetPrivateValue(strPrivateValue:string):void{
this.strPrivateValue=strPrivateValue;
this.setPublicValue();
}
privatesetPublicValue():void{
this.strPublicValue=this.strPrivateValue;
}
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
