public DatabaseVulnerabilityAssessmentScanExportModel(VulnerabilityAssessmentScanExportModel model, string serverName, string databaseName) { ResourceGroupName = model.ResourceGroupName; ExportedReportLocation = model.ExportedReportLocation; ScanId = model.ScanId; ServerName = serverName; DatabaseName = databaseName; }
public ManagedDatabaseVulnerabilityAssessmentScanExportModel(VulnerabilityAssessmentScanExportModel model, string instanceName, string databaseName) { ResourceGroupName = model.ResourceGroupName; ExportedReportLocation = model.ExportedReportLocation; ScanId = model.ScanId; InstanceName = instanceName; DatabaseName = databaseName; }
/// <summary> /// Transforms the given model object to be an object that is written out /// </summary> /// <param name="model">The about to be written model object</param> /// <returns>The prepared object to be written out</returns> protected override object TransformModelToOutputObject(VulnerabilityAssessmentScanExportModel model) { return(new ManagedDatabaseVulnerabilityAssessmentScanExportModel(model, GetServerName(), GetDatabaseName())); }