To use this function add it to the class library file named PluginVCService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: PluginVCService.ts
Description: Create an VcOptionValue Object.
Protected Function: VcOptionValueCreate
protected VcOptionValueCreate(strKey: string, anyValue: any): VcOptionValue {
let objVcOptionValue: VcOptionValue = new VcOptionValue();
objVcOptionValue.key = strKey;
if (typeof anyValue === "number") {
objVcOptionValue.value_IntValue = parseInt(anyValue.toString());
} else {
objVcOptionValue.value_AnyValue = anyValue;
}
return objVcOptionValue;
}TypeScriptDiscover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
