/// <summary> /// List the Vulnerability Assessment scan records /// </summary> public List <VulnerabilityAssessmentScanRecordModel> ListVulnerabilityAssessmentScanRecords(string resourceGroup, string serverName, string databaseName, ApplyToType applyToType) { return((applyToType == ApplyToType.Database) ? VulnerabilityAssessmentCommunicator.ListDatabaseVulnerabilityAssessmentScanRecords(resourceGroup, serverName, databaseName) .Select(scanRecord => ConvertVulnerabilityAssessmentScanRecord(resourceGroup, scanRecord)).ToList() : VulnerabilityAssessmentCommunicator.ListManagedDatabaseVulnerabilityAssessmentScanRecords(resourceGroup, serverName, databaseName) .Select(scanRecord => ConvertVulnerabilityAssessmentScanRecord(resourceGroup, scanRecord)).ToList()); }
/// <summary> /// List the Vulnerability Assessment scan records /// </summary> public List <DatabaseVulnerabilityAssessmentScanRecordModel> ListDatabaseVulnerabilityAssessmentScanRecords(string resourceGroup, string serverName, string databaseName) { return(VulnerabilityAssessmentCommunicator.ListDatabaseVulnerabilityAssessmentScanRecords(resourceGroup, serverName, databaseName) .Select(scanRecord => ConvertDatabaseVulnerabilityAssessmentScanRecord(resourceGroup, serverName, databaseName, scanRecord)).ToList()); }