/// <summary> /// Convert a the Vulnerability Assessment scan /// </summary> public VulnerabilityAssessmentScanExportModel ConvertVulnerabilityAssessmentScan(string resourceGroup, string serverName, string databaseName, string scanId, ApplyToType applyToType) { var vulnerabilityAssessmentExportResponse = (applyToType == ApplyToType.Database) ? VulnerabilityAssessmentCommunicator.ConvertDatabaseVulnerabilityAssessmentScan(resourceGroup, serverName, databaseName, scanId) : VulnerabilityAssessmentCommunicator.ConvertManagedDatabaseVulnerabilityAssessmentScan(resourceGroup, serverName, databaseName, scanId); return(new VulnerabilityAssessmentScanExportModel() { ResourceGroupName = resourceGroup, ExportedReportLocation = vulnerabilityAssessmentExportResponse.ExportedReportLocation, ScanId = scanId }); }
/// <summary> /// Convert a the Vulnerability Assessment scan /// </summary> public DatabaseVulnerabilityAssessmentScanExportModel ConvertDatabaseVulnerabilityAssessmentScan(string resourceGroup, string serverName, string databaseName, string scanId) { var vulnerabilityAssessmentExportResponse = VulnerabilityAssessmentCommunicator.ConvertDatabaseVulnerabilityAssessmentScan(resourceGroup, serverName, databaseName, scanId); return(new DatabaseVulnerabilityAssessmentScanExportModel() { ResourceGroupName = resourceGroup, ServerName = serverName, DatabaseName = databaseName, ExportedReportLocation = vulnerabilityAssessmentExportResponse.ExportedReportLocation, ScanId = scanId }); }