Class IACValidationService
- java.lang.Object
-
- io.jenkins.plugins.google.analyze.code.security.accessor.IACValidationService
-
public class IACValidationService extends Object
IACValidationService provides functionality for interfacing with SCC IAC Validation API, validating and processing response.
-
-
Constructor Summary
Constructors Constructor Description IACValidationService(HttpClient httpClient, OAuthClient oAuthClient)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IACValidationServicegetInstance()Returns an instance ofIACValidationServicevoidvalidateCredentials(String orgID, Secret credential)Validate SCC Credentials Corresponding to the OrgId.List<Violation>validateIAC(@NonNull ValidateIACParams validateIACParams)Invokes SCC IAC Validation Service, processes response and polls on the operation URL to get the validation report.
-
-
-
Constructor Detail
-
IACValidationService
public IACValidationService(HttpClient httpClient, OAuthClient oAuthClient)
-
-
Method Detail
-
getInstance
public static IACValidationService getInstance()
Returns an instance ofIACValidationService
-
validateIAC
public List<Violation> validateIAC(@NonNull @NonNull ValidateIACParams validateIACParams)
Invokes SCC IAC Validation Service, processes response and polls on the operation URL to get the validation report.- Returns:
- violations detected in the IAC file.
-
validateCredentials
public void validateCredentials(String orgID, Secret credential) throws IOException
Validate SCC Credentials Corresponding to the OrgId.- Parameters:
orgID- GCP organizationIdcredential- SCC credential corresponding to the orgID.- Throws:
IOException- scenarios where exception occurs during network I/O or request serialization.
-
-