To use this function add it to the class library file named PluginAVIService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: PluginAVIService.ts
Description: Orchestrator Function to Build an AVI SSL Certificate Description.
Private Function: AviSSLCertificateDescriptionBuild
private AviSSLCertificateDescriptionBuild(strCommonName: string, strEMailAddress: string, strOrganization: string, strOrganizationUnit: string, strLocality: string, strState: string, strCountry: string, strDistinguishedName: string): AviSSLCertificateDescription {
let objAviSSLCertificateDescription: AviSSLCertificateDescription = new AviSSLCertificateDescription();
objAviSSLCertificateDescription.setCommonName(strCommonName);
if (strEMailAddress) {
objAviSSLCertificateDescription.setEmailAddress(strEMailAddress);
}
if (strOrganization) {
objAviSSLCertificateDescription.setOrganization(strOrganization);
}
if (strOrganizationUnit) {
objAviSSLCertificateDescription.setOrganizationUnit(strOrganizationUnit);
}
if (strLocality) {
objAviSSLCertificateDescription.setLocality(strLocality);
}
if (strState) {
objAviSSLCertificateDescription.setState(strState);
}
if (strCountry) {
objAviSSLCertificateDescription.setCountry(strCountry);
}
if (strDistinguishedName) {
objAviSSLCertificateDescription.setDistinguishedName(strDistinguishedName);
}
return objAviSSLCertificateDescription;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
