public static DescribeVulListResponse Unmarshall(UnmarshallerContext context) { DescribeVulListResponse describeVulListResponse = new DescribeVulListResponse(); describeVulListResponse.HttpResponse = context.HttpResponse; describeVulListResponse.RequestId = context.StringValue("DescribeVulList.RequestId"); describeVulListResponse.PageSize = context.IntegerValue("DescribeVulList.PageSize"); describeVulListResponse.CurrentPage = context.IntegerValue("DescribeVulList.CurrentPage"); describeVulListResponse.TotalCount = context.IntegerValue("DescribeVulList.TotalCount"); List <DescribeVulListResponse.DescribeVulList_VulRecord> describeVulListResponse_vulRecords = new List <DescribeVulListResponse.DescribeVulList_VulRecord>(); for (int i = 0; i < context.Length("DescribeVulList.VulRecords.Length"); i++) { DescribeVulListResponse.DescribeVulList_VulRecord vulRecord = new DescribeVulListResponse.DescribeVulList_VulRecord(); vulRecord.PrimaryId = context.LongValue("DescribeVulList.VulRecords[" + i + "].PrimaryId"); vulRecord.Uuid = context.StringValue("DescribeVulList.VulRecords[" + i + "].Uuid"); vulRecord.Name = context.StringValue("DescribeVulList.VulRecords[" + i + "].Name"); vulRecord.Tag = context.StringValue("DescribeVulList.VulRecords[" + i + "].Tag"); vulRecord.Type = context.StringValue("DescribeVulList.VulRecords[" + i + "].Type"); vulRecord.AliasName = context.StringValue("DescribeVulList.VulRecords[" + i + "].AliasName"); vulRecord.FirstTs = context.LongValue("DescribeVulList.VulRecords[" + i + "].FirstTs"); vulRecord.LastTs = context.LongValue("DescribeVulList.VulRecords[" + i + "].LastTs"); vulRecord.RepairTs = context.LongValue("DescribeVulList.VulRecords[" + i + "].RepairTs"); vulRecord.Status = context.IntegerValue("DescribeVulList.VulRecords[" + i + "].Status"); vulRecord.Related = context.StringValue("DescribeVulList.VulRecords[" + i + "].Related"); vulRecord.RecordId = context.LongValue("DescribeVulList.VulRecords[" + i + "].RecordId"); vulRecord.ResultCode = context.StringValue("DescribeVulList.VulRecords[" + i + "].ResultCode"); vulRecord.ResultMessage = context.StringValue("DescribeVulList.VulRecords[" + i + "].ResultMessage"); vulRecord.ModifyTs = context.LongValue("DescribeVulList.VulRecords[" + i + "].ModifyTs"); vulRecord.Necessity = context.StringValue("DescribeVulList.VulRecords[" + i + "].Necessity"); vulRecord.GroupId = context.IntegerValue("DescribeVulList.VulRecords[" + i + "].GroupId"); vulRecord.InstanceId = context.StringValue("DescribeVulList.VulRecords[" + i + "].InstanceId"); vulRecord.InstanceName = context.StringValue("DescribeVulList.VulRecords[" + i + "].InstanceName"); vulRecord.RegionId = context.StringValue("DescribeVulList.VulRecords[" + i + "].RegionId"); vulRecord.Online = context.BooleanValue("DescribeVulList.VulRecords[" + i + "].Online"); vulRecord.Level = context.StringValue("DescribeVulList.VulRecords[" + i + "].Level"); vulRecord.InternetIp = context.StringValue("DescribeVulList.VulRecords[" + i + "].InternetIp"); vulRecord.IntranetIp = context.StringValue("DescribeVulList.VulRecords[" + i + "].IntranetIp"); vulRecord.Ip = context.StringValue("DescribeVulList.VulRecords[" + i + "].Ip"); vulRecord.OsVersion = context.StringValue("DescribeVulList.VulRecords[" + i + "].OsVersion"); vulRecord.NeedReboot = context.StringValue("DescribeVulList.VulRecords[" + i + "].NeedReboot"); vulRecord.Progress = context.IntegerValue("DescribeVulList.VulRecords[" + i + "].Progress"); vulRecord.CanFix = context.StringValue("DescribeVulList.VulRecords[" + i + "].CanFix"); DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ExtendContentJson extendContentJson = new DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ExtendContentJson(); extendContentJson.Os = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Os"); extendContentJson.OsRelease = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.OsRelease"); extendContentJson.Status = context.IntegerValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Status"); extendContentJson.LastTs = context.LongValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.LastTs"); extendContentJson.AliasName = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.AliasName"); extendContentJson.Tag = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Tag"); extendContentJson.PrimaryId = context.LongValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.PrimaryId"); extendContentJson.AbsolutePath = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.AbsolutePath"); extendContentJson.Target = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Target"); extendContentJson.EmgProof = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.EmgProof"); extendContentJson.Reason = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Reason"); extendContentJson.Title = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Title"); extendContentJson.Description = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Description"); extendContentJson.Ip = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Ip"); extendContentJson.Owasp = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Owasp"); extendContentJson.Cwe = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Cwe"); extendContentJson.Wasc = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Wasc"); extendContentJson.VulType = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.VulType"); extendContentJson.Effect = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Effect"); extendContentJson.Solution = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Solution"); extendContentJson.Reference = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Reference"); extendContentJson.Proof = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Proof"); List <string> extendContentJson_cveList = new List <string>(); for (int j = 0; j < context.Length("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.CveList.Length"); j++) { extendContentJson_cveList.Add(context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.CveList[" + j + "]")); } extendContentJson.CveList = extendContentJson_cveList; DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ExtendContentJson.DescribeVulList_Necessity necessity = new DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ExtendContentJson.DescribeVulList_Necessity(); necessity.Cvss_factor = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Necessity.Cvss_factor"); necessity.Gmt_create = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Necessity.Gmt_create"); necessity.Status = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Necessity.Status"); necessity.Enviroment_factor = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Necessity.Enviroment_factor"); necessity.Assets_factor = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Necessity.Assets_factor"); necessity.Is_calc = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Necessity.Is_calc"); necessity.Total_score = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Necessity.Total_score"); necessity.Time_factor = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Necessity.Time_factor"); extendContentJson.Necessity = necessity; List <DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ExtendContentJson.DescribeVulList_RpmEntity> extendContentJson_rpmEntityList = new List <DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ExtendContentJson.DescribeVulList_RpmEntity>(); for (int j = 0; j < context.Length("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.RpmEntityList.Length"); j++) { DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ExtendContentJson.DescribeVulList_RpmEntity rpmEntity = new DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ExtendContentJson.DescribeVulList_RpmEntity(); rpmEntity.FullVersion = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.RpmEntityList[" + j + "].FullVersion"); rpmEntity.MatchDetail = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.RpmEntityList[" + j + "].MatchDetail"); rpmEntity.Name = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.RpmEntityList[" + j + "].Name"); rpmEntity.Path = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.RpmEntityList[" + j + "].Path"); rpmEntity.UpdateCmd = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.RpmEntityList[" + j + "].UpdateCmd"); rpmEntity.Version = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.RpmEntityList[" + j + "].Version"); extendContentJson_rpmEntityList.Add(rpmEntity); } extendContentJson.RpmEntityList = extendContentJson_rpmEntityList; vulRecord.ExtendContentJson = extendContentJson; DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ProcessInfo processInfo = new DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ProcessInfo(); processInfo.GmtLastTs = context.LongValue("DescribeVulList.VulRecords[" + i + "].ProcessInfo.GmtLastTs"); processInfo.TotalCount = context.IntegerValue("DescribeVulList.VulRecords[" + i + "].ProcessInfo.TotalCount"); List <DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ProcessInfo.DescribeVulList_Process> processInfo_processList = new List <DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ProcessInfo.DescribeVulList_Process>(); for (int j = 0; j < context.Length("DescribeVulList.VulRecords[" + i + "].ProcessInfo.ProcessList.Length"); j++) { DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ProcessInfo.DescribeVulList_Process process = new DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ProcessInfo.DescribeVulList_Process(); process.Rpm = context.StringValue("DescribeVulList.VulRecords[" + i + "].ProcessInfo.ProcessList[" + j + "].Rpm"); process.Pname = context.StringValue("DescribeVulList.VulRecords[" + i + "].ProcessInfo.ProcessList[" + j + "].Pname"); process.Pid = context.StringValue("DescribeVulList.VulRecords[" + i + "].ProcessInfo.ProcessList[" + j + "].Pid"); List <DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ProcessInfo.DescribeVulList_Process.DescribeVulList_SubProcess> process_subProcessList = new List <DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ProcessInfo.DescribeVulList_Process.DescribeVulList_SubProcess>(); for (int k = 0; k < context.Length("DescribeVulList.VulRecords[" + i + "].ProcessInfo.ProcessList[" + j + "].SubProcessList.Length"); k++) { DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ProcessInfo.DescribeVulList_Process.DescribeVulList_SubProcess subProcess = new DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ProcessInfo.DescribeVulList_Process.DescribeVulList_SubProcess(); subProcess.Rpm = context.StringValue("DescribeVulList.VulRecords[" + i + "].ProcessInfo.ProcessList[" + j + "].SubProcessList[" + k + "].Rpm"); subProcess.Pname = context.StringValue("DescribeVulList.VulRecords[" + i + "].ProcessInfo.ProcessList[" + j + "].SubProcessList[" + k + "].Pname"); subProcess.Pid = context.StringValue("DescribeVulList.VulRecords[" + i + "].ProcessInfo.ProcessList[" + j + "].SubProcessList[" + k + "].Pid"); process_subProcessList.Add(subProcess); } process.SubProcessList = process_subProcessList; processInfo_processList.Add(process); } processInfo.ProcessList = processInfo_processList; vulRecord.ProcessInfo = processInfo; describeVulListResponse_vulRecords.Add(vulRecord); } describeVulListResponse.VulRecords = describeVulListResponse_vulRecords; return(describeVulListResponse); }
public static DescribeVulListResponse Unmarshall(UnmarshallerContext context) { DescribeVulListResponse describeVulListResponse = new DescribeVulListResponse(); describeVulListResponse.HttpResponse = context.HttpResponse; describeVulListResponse.RequestId = context.StringValue("DescribeVulList.RequestId"); describeVulListResponse.PageSize = context.IntegerValue("DescribeVulList.PageSize"); describeVulListResponse.CurrentPage = context.IntegerValue("DescribeVulList.CurrentPage"); describeVulListResponse.TotalCount = context.IntegerValue("DescribeVulList.TotalCount"); List <DescribeVulListResponse.DescribeVulList_VulRecord> describeVulListResponse_vulRecords = new List <DescribeVulListResponse.DescribeVulList_VulRecord>(); for (int i = 0; i < context.Length("DescribeVulList.VulRecords.Length"); i++) { DescribeVulListResponse.DescribeVulList_VulRecord vulRecord = new DescribeVulListResponse.DescribeVulList_VulRecord(); vulRecord.PrimaryId = context.LongValue("DescribeVulList.VulRecords[" + i + "].PrimaryId"); vulRecord.Uuid = context.StringValue("DescribeVulList.VulRecords[" + i + "].Uuid"); vulRecord.Name = context.StringValue("DescribeVulList.VulRecords[" + i + "].Name"); vulRecord.Tag = context.StringValue("DescribeVulList.VulRecords[" + i + "].Tag"); vulRecord.Type = context.StringValue("DescribeVulList.VulRecords[" + i + "].Type"); vulRecord.AliasName = context.StringValue("DescribeVulList.VulRecords[" + i + "].AliasName"); vulRecord.FirstTs = context.LongValue("DescribeVulList.VulRecords[" + i + "].FirstTs"); vulRecord.LastTs = context.LongValue("DescribeVulList.VulRecords[" + i + "].LastTs"); vulRecord.RepairTs = context.LongValue("DescribeVulList.VulRecords[" + i + "].RepairTs"); vulRecord.Status = context.IntegerValue("DescribeVulList.VulRecords[" + i + "].Status"); vulRecord.Related = context.StringValue("DescribeVulList.VulRecords[" + i + "].Related"); vulRecord.ResultCode = context.StringValue("DescribeVulList.VulRecords[" + i + "].ResultCode"); vulRecord.ResultMessage = context.StringValue("DescribeVulList.VulRecords[" + i + "].ResultMessage"); vulRecord.ModifyTs = context.LongValue("DescribeVulList.VulRecords[" + i + "].ModifyTs"); vulRecord.Necessity = context.StringValue("DescribeVulList.VulRecords[" + i + "].Necessity"); vulRecord.GroupId = context.IntegerValue("DescribeVulList.VulRecords[" + i + "].GroupId"); vulRecord.InstanceId = context.StringValue("DescribeVulList.VulRecords[" + i + "].InstanceId"); vulRecord.InstanceName = context.StringValue("DescribeVulList.VulRecords[" + i + "].InstanceName"); vulRecord.InternetIp = context.StringValue("DescribeVulList.VulRecords[" + i + "].InternetIp"); vulRecord.IntranetIp = context.StringValue("DescribeVulList.VulRecords[" + i + "].IntranetIp"); vulRecord.Ip = context.StringValue("DescribeVulList.VulRecords[" + i + "].Ip"); vulRecord.OsVersion = context.StringValue("DescribeVulList.VulRecords[" + i + "].OsVersion"); vulRecord.NeedReboot = context.StringValue("DescribeVulList.VulRecords[" + i + "].NeedReboot"); DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ExtendContentJson extendContentJson = new DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ExtendContentJson(); extendContentJson.Os = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Os"); extendContentJson.OsRelease = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.OsRelease"); extendContentJson.Status = context.IntegerValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Status"); extendContentJson.LastTs = context.LongValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.LastTs"); extendContentJson.AliasName = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.AliasName"); extendContentJson.Tag = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Tag"); extendContentJson.PrimaryId = context.LongValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.PrimaryId"); extendContentJson.AbsolutePath = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.AbsolutePath"); List <string> extendContentJson_cveList = new List <string>(); for (int j = 0; j < context.Length("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.CveList.Length"); j++) { extendContentJson_cveList.Add(context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.CveList[" + j + "]")); } extendContentJson.CveList = extendContentJson_cveList; DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ExtendContentJson.DescribeVulList_Necessity necessity = new DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ExtendContentJson.DescribeVulList_Necessity(); necessity.Cvss_factor = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Necessity.Cvss_factor"); necessity.Gmt_create = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Necessity.Gmt_create"); necessity.Status = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Necessity.Status"); necessity.Enviroment_factor = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Necessity.Enviroment_factor"); necessity.Assets_factor = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Necessity.Assets_factor"); necessity.Is_calc = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Necessity.Is_calc"); necessity.Total_score = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Necessity.Total_score"); necessity.Time_factor = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.Necessity.Time_factor"); extendContentJson.Necessity = necessity; List <DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ExtendContentJson.DescribeVulList_RpmEntity> extendContentJson_rpmEntityList = new List <DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ExtendContentJson.DescribeVulList_RpmEntity>(); for (int j = 0; j < context.Length("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.RpmEntityList.Length"); j++) { DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ExtendContentJson.DescribeVulList_RpmEntity rpmEntity = new DescribeVulListResponse.DescribeVulList_VulRecord.DescribeVulList_ExtendContentJson.DescribeVulList_RpmEntity(); rpmEntity.FullVersion = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.RpmEntityList[" + j + "].FullVersion"); rpmEntity.MatchDetail = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.RpmEntityList[" + j + "].MatchDetail"); rpmEntity.Name = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.RpmEntityList[" + j + "].Name"); rpmEntity.Path = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.RpmEntityList[" + j + "].Path"); rpmEntity.UpdateCmd = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.RpmEntityList[" + j + "].UpdateCmd"); rpmEntity.Version = context.StringValue("DescribeVulList.VulRecords[" + i + "].ExtendContentJson.RpmEntityList[" + j + "].Version"); extendContentJson_rpmEntityList.Add(rpmEntity); } extendContentJson.RpmEntityList = extendContentJson_rpmEntityList; vulRecord.ExtendContentJson = extendContentJson; describeVulListResponse_vulRecords.Add(vulRecord); } describeVulListResponse.VulRecords = describeVulListResponse_vulRecords; return(describeVulListResponse); }