To use this function add it to the class library file named vCenterVAPIService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: vCenterVAPIService.ts
Public Function: ContentLibraryItemDeployLogMessages
public ContentLibraryItemDeployLogMessages(objVMwareVCenterOvfOvf: com_vmware_vcenter_ovf_ovf__info | com_vmware_vcenter_ovf_ovf__warning | com_vmware_vcenter_ovf_ovf__error): void {
this.objLogger.info(`Name: ${objVMwareVCenterOvfOvf.name}.`);
this.objLogger.info(`Value: ${objVMwareVCenterOvfOvf.value}.`);
this.objLogger.info(`Category: ${objVMwareVCenterOvfOvf.category.toString()}.`);
let objVMwareVAPIStdErrorsError: com_vmware_vapi_std_errors_error = objVMwareVCenterOvfOvf.error;
this.objLogger.info(`Error Data: ${objVMwareVAPIStdErrorsError.data}.`);
this.objLogger.info(`Error: ${objVMwareVAPIStdErrorsError.error_type.toString()}.`);
let arrVMwareVAPIStdLocalizableMessage: com_vmware_vapi_std_localizable__message[] = objVMwareVAPIStdErrorsError.messages;
arrVMwareVAPIStdLocalizableMessage.forEach((objVMwareVAPIStdLocalizableMessage: com_vmware_vapi_std_localizable__message): void => {
this.objLogger.info(`Error ID: ${objVMwareVAPIStdLocalizableMessage.id}.`);
this.objLogger.info(`Error Default Message: ${objVMwareVAPIStdLocalizableMessage.default_message}.`);
this.objLogger.info(`Error Localized: ${objVMwareVAPIStdLocalizableMessage.localized}.`);
this.objLogger.info(`Error Arguments: ${JSON.stringify(objVMwareVAPIStdLocalizableMessage.args)}.`);
this.objLogger.info(`Error Parameters: ${JSON.stringify(objVMwareVAPIStdLocalizableMessage.params)}.`);
});
}TypeScriptDiscover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
