public static DescribeDomainRecordsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeDomainRecordsResponse describeDomainRecordsResponse = new DescribeDomainRecordsResponse();

            describeDomainRecordsResponse.HttpResponse = context.HttpResponse;
            describeDomainRecordsResponse.RequestId = context.StringValue("DescribeDomainRecords.RequestId");
            describeDomainRecordsResponse.TotalCount = context.LongValue("DescribeDomainRecords.TotalCount");
            describeDomainRecordsResponse.PageNumber = context.LongValue("DescribeDomainRecords.PageNumber");
            describeDomainRecordsResponse.PageSize = context.LongValue("DescribeDomainRecords.PageSize");

            List<DescribeDomainRecordsResponse.Record> domainRecords = new List<DescribeDomainRecordsResponse.Record>();
            for (int i = 0; i < context.Length("DescribeDomainRecords.DomainRecords.Length"); i++) {
                DescribeDomainRecordsResponse.Record record = new DescribeDomainRecordsResponse.Record();
                record.DomainName = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].DomainName");
                record.RecordId = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].RecordId");
                record.RR = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].RR");
                record.Type = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].Type");
                record.Value = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].Value");
                record.TTL = context.LongValue("DescribeDomainRecords.DomainRecords["+ i +"].TTL");
                record.Priority = context.LongValue("DescribeDomainRecords.DomainRecords["+ i +"].Priority");
                record.Line = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].Line");
                record.Status = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].Status");
                record.Locked = context.BooleanValue("DescribeDomainRecords.DomainRecords["+ i +"].Locked");
                record.Weight = context.IntegerValue("DescribeDomainRecords.DomainRecords["+ i +"].Weight");

                domainRecords.Add(record);
            }
            describeDomainRecordsResponse.DomainRecords = domainRecords;

            return describeDomainRecordsResponse;
        }
        public static SearchMediaWorkflowResponse Unmarshall(UnmarshallerContext context)
        {
            SearchMediaWorkflowResponse searchMediaWorkflowResponse = new SearchMediaWorkflowResponse();

            searchMediaWorkflowResponse.HttpResponse = context.HttpResponse;
            searchMediaWorkflowResponse.RequestId = context.StringValue("SearchMediaWorkflow.RequestId");
            searchMediaWorkflowResponse.TotalCount = context.LongValue("SearchMediaWorkflow.TotalCount");
            searchMediaWorkflowResponse.PageNumber = context.LongValue("SearchMediaWorkflow.PageNumber");
            searchMediaWorkflowResponse.PageSize = context.LongValue("SearchMediaWorkflow.PageSize");

            List<SearchMediaWorkflowResponse.MediaWorkflow> mediaWorkflowList = new List<SearchMediaWorkflowResponse.MediaWorkflow>();
            for (int i = 0; i < context.Length("SearchMediaWorkflow.MediaWorkflowList.Length"); i++) {
                SearchMediaWorkflowResponse.MediaWorkflow mediaWorkflow = new SearchMediaWorkflowResponse.MediaWorkflow();
                mediaWorkflow.MediaWorkflowId = context.StringValue("SearchMediaWorkflow.MediaWorkflowList["+ i +"].MediaWorkflowId");
                mediaWorkflow.Name = context.StringValue("SearchMediaWorkflow.MediaWorkflowList["+ i +"].Name");
                mediaWorkflow.Topology = context.StringValue("SearchMediaWorkflow.MediaWorkflowList["+ i +"].Topology");
                mediaWorkflow.State = context.StringValue("SearchMediaWorkflow.MediaWorkflowList["+ i +"].State");
                mediaWorkflow.CreationTime = context.StringValue("SearchMediaWorkflow.MediaWorkflowList["+ i +"].CreationTime");

                mediaWorkflowList.Add(mediaWorkflow);
            }
            searchMediaWorkflowResponse.MediaWorkflowList = mediaWorkflowList;

            return searchMediaWorkflowResponse;
        }
        public static DescribeRefreshTasksResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeRefreshTasksResponse describeRefreshTasksResponse = new DescribeRefreshTasksResponse();

            describeRefreshTasksResponse.HttpResponse = context.HttpResponse;
            describeRefreshTasksResponse.RequestId = context.StringValue("DescribeRefreshTasks.RequestId");
            describeRefreshTasksResponse.PageNumber = context.LongValue("DescribeRefreshTasks.PageNumber");
            describeRefreshTasksResponse.PageSize = context.LongValue("DescribeRefreshTasks.PageSize");
            describeRefreshTasksResponse.TotalCount = context.LongValue("DescribeRefreshTasks.TotalCount");

            List<DescribeRefreshTasksResponse.CDNTask> tasks = new List<DescribeRefreshTasksResponse.CDNTask>();
            for (int i = 0; i < context.Length("DescribeRefreshTasks.Tasks.Length"); i++) {
                DescribeRefreshTasksResponse.CDNTask cDNTask = new DescribeRefreshTasksResponse.CDNTask();
                cDNTask.TaskId = context.StringValue("DescribeRefreshTasks.Tasks["+ i +"].TaskId");
                cDNTask.ObjectPath = context.StringValue("DescribeRefreshTasks.Tasks["+ i +"].ObjectPath");
                cDNTask.Process = context.StringValue("DescribeRefreshTasks.Tasks["+ i +"].Process");
                cDNTask.Status = context.StringValue("DescribeRefreshTasks.Tasks["+ i +"].Status");
                cDNTask.CreationTime = context.StringValue("DescribeRefreshTasks.Tasks["+ i +"].CreationTime");

                tasks.Add(cDNTask);
            }
            describeRefreshTasksResponse.Tasks = tasks;

            return describeRefreshTasksResponse;
        }
        public static DescribeCdnDomainLogsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeCdnDomainLogsResponse describeCdnDomainLogsResponse = new DescribeCdnDomainLogsResponse();

            describeCdnDomainLogsResponse.HttpResponse = context.HttpResponse;
            describeCdnDomainLogsResponse.RequestId = context.StringValue("DescribeCdnDomainLogs.RequestId");
            describeCdnDomainLogsResponse.PageNumber = context.LongValue("DescribeCdnDomainLogs.PageNumber");
            describeCdnDomainLogsResponse.PageSize = context.LongValue("DescribeCdnDomainLogs.PageSize");
            describeCdnDomainLogsResponse.TotalCount = context.LongValue("DescribeCdnDomainLogs.TotalCount");

            DescribeCdnDomainLogsResponse.DomainLogModel_ domainLogModel = new DescribeCdnDomainLogsResponse.DomainLogModel_();
            domainLogModel.DomainName = context.StringValue("DescribeCdnDomainLogs.DomainLogModel.DomainName");

            List<DescribeCdnDomainLogsResponse.DomainLogModel_.DomainLogDetail> domainLogDetails = new List<DescribeCdnDomainLogsResponse.DomainLogModel_.DomainLogDetail>();
            for (int i = 0; i < context.Length("DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails.Length"); i++) {
                DescribeCdnDomainLogsResponse.DomainLogModel_.DomainLogDetail domainLogDetail = new DescribeCdnDomainLogsResponse.DomainLogModel_.DomainLogDetail();
                domainLogDetail.LogName = context.StringValue("DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails["+ i +"].LogName");
                domainLogDetail.LogPath = context.StringValue("DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails["+ i +"].LogPath");
                domainLogDetail.LogSize = context.LongValue("DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails["+ i +"].LogSize");
                domainLogDetail.StartTime = context.StringValue("DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails["+ i +"].StartTime");
                domainLogDetail.EndTime = context.StringValue("DescribeCdnDomainLogs.DomainLogModel.DomainLogDetails["+ i +"].EndTime");

                domainLogDetails.Add(domainLogDetail);
            }
            domainLogModel.DomainLogDetails = domainLogDetails;
            describeCdnDomainLogsResponse.DomainLogModel = domainLogModel;

            return describeCdnDomainLogsResponse;
        }
        public static DescribeOptimizeAdviceOnBigTableResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeOptimizeAdviceOnBigTableResponse describeOptimizeAdviceOnBigTableResponse = new DescribeOptimizeAdviceOnBigTableResponse();

            describeOptimizeAdviceOnBigTableResponse.HttpResponse = context.HttpResponse;
            describeOptimizeAdviceOnBigTableResponse.RequestId = context.StringValue("DescribeOptimizeAdviceOnBigTable.RequestId");
            describeOptimizeAdviceOnBigTableResponse.TotalRecordsCount = context.IntegerValue("DescribeOptimizeAdviceOnBigTable.TotalRecordsCount");
            describeOptimizeAdviceOnBigTableResponse.PageNumber = context.IntegerValue("DescribeOptimizeAdviceOnBigTable.PageNumber");
            describeOptimizeAdviceOnBigTableResponse.PageRecordCount = context.IntegerValue("DescribeOptimizeAdviceOnBigTable.PageRecordCount");

            List<DescribeOptimizeAdviceOnBigTableResponse.AdviceOnBigTable> items = new List<DescribeOptimizeAdviceOnBigTableResponse.AdviceOnBigTable>();
            for (int i = 0; i < context.Length("DescribeOptimizeAdviceOnBigTable.Items.Length"); i++) {
                DescribeOptimizeAdviceOnBigTableResponse.AdviceOnBigTable adviceOnBigTable = new DescribeOptimizeAdviceOnBigTableResponse.AdviceOnBigTable();
                adviceOnBigTable.DBName = context.StringValue("DescribeOptimizeAdviceOnBigTable.Items["+ i +"].DBName");
                adviceOnBigTable.TableName = context.StringValue("DescribeOptimizeAdviceOnBigTable.Items["+ i +"].TableName");
                adviceOnBigTable.TableSize = context.LongValue("DescribeOptimizeAdviceOnBigTable.Items["+ i +"].TableSize");
                adviceOnBigTable.DataSize = context.LongValue("DescribeOptimizeAdviceOnBigTable.Items["+ i +"].DataSize");
                adviceOnBigTable.IndexSize = context.LongValue("DescribeOptimizeAdviceOnBigTable.Items["+ i +"].IndexSize");

                items.Add(adviceOnBigTable);
            }
            describeOptimizeAdviceOnBigTableResponse.Items = items;

            return describeOptimizeAdviceOnBigTableResponse;
        }
        public static ListDevicePermitsResponse Unmarshall(UnmarshallerContext context)
        {
            ListDevicePermitsResponse listDevicePermitsResponse = new ListDevicePermitsResponse();

            listDevicePermitsResponse.HttpResponse = context.HttpResponse;
            listDevicePermitsResponse.RequestId = context.StringValue("ListDevicePermits.RequestId");
            listDevicePermitsResponse.Success = context.BooleanValue("ListDevicePermits.Success");
            listDevicePermitsResponse.ErrorMessage = context.StringValue("ListDevicePermits.ErrorMessage");

            List<ListDevicePermitsResponse.DevicePermission> devicePermissions = new List<ListDevicePermitsResponse.DevicePermission>();
            for (int i = 0; i < context.Length("ListDevicePermits.DevicePermissions.Length"); i++) {
                ListDevicePermitsResponse.DevicePermission devicePermission = new ListDevicePermitsResponse.DevicePermission();
                devicePermission.Id = context.LongValue("ListDevicePermits.DevicePermissions["+ i +"].Id");
                devicePermission.AppKey = context.LongValue("ListDevicePermits.DevicePermissions["+ i +"].AppKey");
                devicePermission.DeviceId = context.StringValue("ListDevicePermits.DevicePermissions["+ i +"].DeviceId");
                devicePermission.GrantType = context.StringValue("ListDevicePermits.DevicePermissions["+ i +"].GrantType");
                devicePermission.TopicFullName = context.StringValue("ListDevicePermits.DevicePermissions["+ i +"].TopicFullName");
                devicePermission.TopicUserId = context.LongValue("ListDevicePermits.DevicePermissions["+ i +"].TopicUserId");

                devicePermissions.Add(devicePermission);
            }
            listDevicePermitsResponse.DevicePermissions = devicePermissions;

            return listDevicePermitsResponse;
        }
        public static SearchPipelineResponse Unmarshall(UnmarshallerContext context)
        {
            SearchPipelineResponse searchPipelineResponse = new SearchPipelineResponse();

            searchPipelineResponse.HttpResponse = context.HttpResponse;
            searchPipelineResponse.RequestId = context.StringValue("SearchPipeline.RequestId");
            searchPipelineResponse.TotalCount = context.LongValue("SearchPipeline.TotalCount");
            searchPipelineResponse.PageNumber = context.LongValue("SearchPipeline.PageNumber");
            searchPipelineResponse.PageSize = context.LongValue("SearchPipeline.PageSize");

            List<SearchPipelineResponse.Pipeline> pipelineList = new List<SearchPipelineResponse.Pipeline>();
            for (int i = 0; i < context.Length("SearchPipeline.PipelineList.Length"); i++) {
                SearchPipelineResponse.Pipeline pipeline = new SearchPipelineResponse.Pipeline();
                pipeline.Id = context.StringValue("SearchPipeline.PipelineList["+ i +"].Id");
                pipeline.Name = context.StringValue("SearchPipeline.PipelineList["+ i +"].Name");
                pipeline.State = context.StringValue("SearchPipeline.PipelineList["+ i +"].State");
                pipeline.Speed = context.StringValue("SearchPipeline.PipelineList["+ i +"].Speed");
                pipeline.Role = context.StringValue("SearchPipeline.PipelineList["+ i +"].Role");

                SearchPipelineResponse.Pipeline.NotifyConfig_ notifyConfig = new SearchPipelineResponse.Pipeline.NotifyConfig_();
                notifyConfig.Topic = context.StringValue("SearchPipeline.PipelineList["+ i +"].NotifyConfig.Topic");
                notifyConfig.QueueName = context.StringValue("SearchPipeline.PipelineList["+ i +"].NotifyConfig.QueueName");
                pipeline.NotifyConfig = notifyConfig;

                pipelineList.Add(pipeline);
            }
            searchPipelineResponse.PipelineList = pipelineList;

            return searchPipelineResponse;
        }
        public static DescribeDomainLogsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeDomainLogsResponse describeDomainLogsResponse = new DescribeDomainLogsResponse();

            describeDomainLogsResponse.HttpResponse = context.HttpResponse;
            describeDomainLogsResponse.RequestId = context.StringValue("DescribeDomainLogs.RequestId");
            describeDomainLogsResponse.TotalCount = context.LongValue("DescribeDomainLogs.TotalCount");
            describeDomainLogsResponse.PageNumber = context.LongValue("DescribeDomainLogs.PageNumber");
            describeDomainLogsResponse.PageSize = context.LongValue("DescribeDomainLogs.PageSize");

            List<DescribeDomainLogsResponse.DomainLog> domainLogs = new List<DescribeDomainLogsResponse.DomainLog>();
            for (int i = 0; i < context.Length("DescribeDomainLogs.DomainLogs.Length"); i++) {
                DescribeDomainLogsResponse.DomainLog domainLog = new DescribeDomainLogsResponse.DomainLog();
                domainLog.ActionTime = context.StringValue("DescribeDomainLogs.DomainLogs["+ i +"].ActionTime");
                domainLog.DomainName = context.StringValue("DescribeDomainLogs.DomainLogs["+ i +"].DomainName");
                domainLog.Action = context.StringValue("DescribeDomainLogs.DomainLogs["+ i +"].Action");
                domainLog.Message = context.StringValue("DescribeDomainLogs.DomainLogs["+ i +"].Message");
                domainLog.ClientIp = context.StringValue("DescribeDomainLogs.DomainLogs["+ i +"].ClientIp");

                domainLogs.Add(domainLog);
            }
            describeDomainLogsResponse.DomainLogs = domainLogs;

            return describeDomainLogsResponse;
        }
        public static SearchWaterMarkTemplateResponse Unmarshall(UnmarshallerContext context)
        {
            SearchWaterMarkTemplateResponse searchWaterMarkTemplateResponse = new SearchWaterMarkTemplateResponse();

            searchWaterMarkTemplateResponse.HttpResponse = context.HttpResponse;
            searchWaterMarkTemplateResponse.RequestId = context.StringValue("SearchWaterMarkTemplate.RequestId");
            searchWaterMarkTemplateResponse.TotalCount = context.LongValue("SearchWaterMarkTemplate.TotalCount");
            searchWaterMarkTemplateResponse.PageNumber = context.LongValue("SearchWaterMarkTemplate.PageNumber");
            searchWaterMarkTemplateResponse.PageSize = context.LongValue("SearchWaterMarkTemplate.PageSize");

            List<SearchWaterMarkTemplateResponse.WaterMarkTemplate> waterMarkTemplateList = new List<SearchWaterMarkTemplateResponse.WaterMarkTemplate>();
            for (int i = 0; i < context.Length("SearchWaterMarkTemplate.WaterMarkTemplateList.Length"); i++) {
                SearchWaterMarkTemplateResponse.WaterMarkTemplate waterMarkTemplate = new SearchWaterMarkTemplateResponse.WaterMarkTemplate();
                waterMarkTemplate.Id = context.StringValue("SearchWaterMarkTemplate.WaterMarkTemplateList["+ i +"].Id");
                waterMarkTemplate.Name = context.StringValue("SearchWaterMarkTemplate.WaterMarkTemplateList["+ i +"].Name");
                waterMarkTemplate.Width = context.StringValue("SearchWaterMarkTemplate.WaterMarkTemplateList["+ i +"].Width");
                waterMarkTemplate.Height = context.StringValue("SearchWaterMarkTemplate.WaterMarkTemplateList["+ i +"].Height");
                waterMarkTemplate.Dx = context.StringValue("SearchWaterMarkTemplate.WaterMarkTemplateList["+ i +"].Dx");
                waterMarkTemplate.Dy = context.StringValue("SearchWaterMarkTemplate.WaterMarkTemplateList["+ i +"].Dy");
                waterMarkTemplate.ReferPos = context.StringValue("SearchWaterMarkTemplate.WaterMarkTemplateList["+ i +"].ReferPos");
                waterMarkTemplate.Type = context.StringValue("SearchWaterMarkTemplate.WaterMarkTemplateList["+ i +"].Type");
                waterMarkTemplate.State = context.StringValue("SearchWaterMarkTemplate.WaterMarkTemplateList["+ i +"].State");

                waterMarkTemplateList.Add(waterMarkTemplate);
            }
            searchWaterMarkTemplateResponse.WaterMarkTemplateList = waterMarkTemplateList;

            return searchWaterMarkTemplateResponse;
        }
        public static DescribeTopDomainsByFlowResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeTopDomainsByFlowResponse describeTopDomainsByFlowResponse = new DescribeTopDomainsByFlowResponse();

            describeTopDomainsByFlowResponse.HttpResponse = context.HttpResponse;
            describeTopDomainsByFlowResponse.RequestId = context.StringValue("DescribeTopDomainsByFlow.RequestId");
            describeTopDomainsByFlowResponse.StartTime = context.StringValue("DescribeTopDomainsByFlow.StartTime");
            describeTopDomainsByFlowResponse.EndTime = context.StringValue("DescribeTopDomainsByFlow.EndTime");
            describeTopDomainsByFlowResponse.DomainCount = context.LongValue("DescribeTopDomainsByFlow.DomainCount");
            describeTopDomainsByFlowResponse.DomainOnlineCount = context.LongValue("DescribeTopDomainsByFlow.DomainOnlineCount");

            List<DescribeTopDomainsByFlowResponse.TopDomain> topDomains = new List<DescribeTopDomainsByFlowResponse.TopDomain>();
            for (int i = 0; i < context.Length("DescribeTopDomainsByFlow.TopDomains.Length"); i++) {
                DescribeTopDomainsByFlowResponse.TopDomain topDomain = new DescribeTopDomainsByFlowResponse.TopDomain();
                topDomain.DomainName = context.StringValue("DescribeTopDomainsByFlow.TopDomains["+ i +"].DomainName");
                topDomain.Rank = context.LongValue("DescribeTopDomainsByFlow.TopDomains["+ i +"].Rank");
                topDomain.TotalTraffic = context.StringValue("DescribeTopDomainsByFlow.TopDomains["+ i +"].TotalTraffic");
                topDomain.TrafficPercent = context.StringValue("DescribeTopDomainsByFlow.TopDomains["+ i +"].TrafficPercent");
                topDomain.MaxBps = context.LongValue("DescribeTopDomainsByFlow.TopDomains["+ i +"].MaxBps");
                topDomain.MaxBpsTime = context.StringValue("DescribeTopDomainsByFlow.TopDomains["+ i +"].MaxBpsTime");
                topDomain.TotalAccess = context.LongValue("DescribeTopDomainsByFlow.TopDomains["+ i +"].TotalAccess");

                topDomains.Add(topDomain);
            }
            describeTopDomainsByFlowResponse.TopDomains = topDomains;

            return describeTopDomainsByFlowResponse;
        }
        public static DescribeHistoryCharge95InfoResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeHistoryCharge95InfoResponse describeHistoryCharge95InfoResponse = new DescribeHistoryCharge95InfoResponse();

            describeHistoryCharge95InfoResponse.HttpResponse = context.HttpResponse;
            describeHistoryCharge95InfoResponse.RequestId = context.StringValue("DescribeHistoryCharge95Info.RequestId");
            describeHistoryCharge95InfoResponse.PageNumber = context.LongValue("DescribeHistoryCharge95Info.PageNumber");
            describeHistoryCharge95InfoResponse.PageSize = context.LongValue("DescribeHistoryCharge95Info.PageSize");
            describeHistoryCharge95InfoResponse.TotalCount = context.LongValue("DescribeHistoryCharge95Info.TotalCount");
            describeHistoryCharge95InfoResponse.TotalPages = context.LongValue("DescribeHistoryCharge95Info.TotalPages");
            describeHistoryCharge95InfoResponse.UserName = context.StringValue("DescribeHistoryCharge95Info.UserName");

            List<DescribeHistoryCharge95InfoResponse.HistoryCharge95Info> historyCharge95Infos = new List<DescribeHistoryCharge95InfoResponse.HistoryCharge95Info>();
            for (int i = 0; i < context.Length("DescribeHistoryCharge95Info.HistoryCharge95Infos.Length"); i++) {
                DescribeHistoryCharge95InfoResponse.HistoryCharge95Info historyCharge95Info = new DescribeHistoryCharge95InfoResponse.HistoryCharge95Info();
                historyCharge95Info.DomainName = context.StringValue("DescribeHistoryCharge95Info.HistoryCharge95Infos["+ i +"].DomainName");
                historyCharge95Info.BillTime = context.StringValue("DescribeHistoryCharge95Info.HistoryCharge95Infos["+ i +"].BillTime");
                historyCharge95Info.ChargeItem = context.StringValue("DescribeHistoryCharge95Info.HistoryCharge95Infos["+ i +"].ChargeItem");
                historyCharge95Info.Max95Bps = context.LongValue("DescribeHistoryCharge95Info.HistoryCharge95Infos["+ i +"].Max95Bps");
                historyCharge95Info.Max95BpsTime = context.StringValue("DescribeHistoryCharge95Info.HistoryCharge95Infos["+ i +"].Max95BpsTime");
                historyCharge95Info.EffectiveFactor = context.FloatValue("DescribeHistoryCharge95Info.HistoryCharge95Infos["+ i +"].EffectiveFactor");
                historyCharge95Info.StartTime = context.StringValue("DescribeHistoryCharge95Info.HistoryCharge95Infos["+ i +"].StartTime");
                historyCharge95Info.EndTime = context.StringValue("DescribeHistoryCharge95Info.HistoryCharge95Infos["+ i +"].EndTime");
                historyCharge95Info.Proportion = context.FloatValue("DescribeHistoryCharge95Info.HistoryCharge95Infos["+ i +"].Proportion");
                historyCharge95Info.DownloadUrl = context.StringValue("DescribeHistoryCharge95Info.HistoryCharge95Infos["+ i +"].DownloadUrl");

                historyCharge95Infos.Add(historyCharge95Info);
            }
            describeHistoryCharge95InfoResponse.HistoryCharge95Infos = historyCharge95Infos;

            return describeHistoryCharge95InfoResponse;
        }
        public static DescribeSQLLogRecordsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeSQLLogRecordsResponse describeSQLLogRecordsResponse = new DescribeSQLLogRecordsResponse();

            describeSQLLogRecordsResponse.HttpResponse = context.HttpResponse;
            describeSQLLogRecordsResponse.RequestId = context.StringValue("DescribeSQLLogRecords.RequestId");
            describeSQLLogRecordsResponse.TotalRecordCount = context.IntegerValue("DescribeSQLLogRecords.TotalRecordCount");
            describeSQLLogRecordsResponse.PageNumber = context.IntegerValue("DescribeSQLLogRecords.PageNumber");
            describeSQLLogRecordsResponse.PageRecordCount = context.IntegerValue("DescribeSQLLogRecords.PageRecordCount");

            List<DescribeSQLLogRecordsResponse.SQLRecord> items = new List<DescribeSQLLogRecordsResponse.SQLRecord>();
            for (int i = 0; i < context.Length("DescribeSQLLogRecords.Items.Length"); i++) {
                DescribeSQLLogRecordsResponse.SQLRecord sQLRecord = new DescribeSQLLogRecordsResponse.SQLRecord();
                sQLRecord.DBName = context.StringValue("DescribeSQLLogRecords.Items["+ i +"].DBName");
                sQLRecord.AccountName = context.StringValue("DescribeSQLLogRecords.Items["+ i +"].AccountName");
                sQLRecord.HostAddress = context.StringValue("DescribeSQLLogRecords.Items["+ i +"].HostAddress");
                sQLRecord.SQLText = context.StringValue("DescribeSQLLogRecords.Items["+ i +"].SQLText");
                sQLRecord.TotalExecutionTimes = context.LongValue("DescribeSQLLogRecords.Items["+ i +"].TotalExecutionTimes");
                sQLRecord.ReturnRowCounts = context.LongValue("DescribeSQLLogRecords.Items["+ i +"].ReturnRowCounts");
                sQLRecord.ExecuteTime = context.StringValue("DescribeSQLLogRecords.Items["+ i +"].ExecuteTime");

                items.Add(sQLRecord);
            }
            describeSQLLogRecordsResponse.Items = items;

            return describeSQLLogRecordsResponse;
        }
        public static DescribeUserDomainsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeUserDomainsResponse describeUserDomainsResponse = new DescribeUserDomainsResponse();

            describeUserDomainsResponse.HttpResponse = context.HttpResponse;
            describeUserDomainsResponse.RequestId = context.StringValue("DescribeUserDomains.RequestId");
            describeUserDomainsResponse.PageNumber = context.LongValue("DescribeUserDomains.PageNumber");
            describeUserDomainsResponse.PageSize = context.LongValue("DescribeUserDomains.PageSize");
            describeUserDomainsResponse.TotalCount = context.LongValue("DescribeUserDomains.TotalCount");

            List<DescribeUserDomainsResponse.PageData> domains = new List<DescribeUserDomainsResponse.PageData>();
            for (int i = 0; i < context.Length("DescribeUserDomains.Domains.Length"); i++) {
                DescribeUserDomainsResponse.PageData pageData = new DescribeUserDomainsResponse.PageData();
                pageData.DomainName = context.StringValue("DescribeUserDomains.Domains["+ i +"].DomainName");
                pageData.Cname = context.StringValue("DescribeUserDomains.Domains["+ i +"].Cname");
                pageData.CdnType = context.StringValue("DescribeUserDomains.Domains["+ i +"].CdnType");
                pageData.DomainStatus = context.StringValue("DescribeUserDomains.Domains["+ i +"].DomainStatus");
                pageData.GmtCreated = context.StringValue("DescribeUserDomains.Domains["+ i +"].GmtCreated");
                pageData.GmtModified = context.StringValue("DescribeUserDomains.Domains["+ i +"].GmtModified");
                pageData.Description = context.StringValue("DescribeUserDomains.Domains["+ i +"].Description");
                pageData.SourceType = context.StringValue("DescribeUserDomains.Domains["+ i +"].SourceType");
                pageData.SslProtocol = context.StringValue("DescribeUserDomains.Domains["+ i +"].SslProtocol");

                List<string> sources = new List<string>();
                for (int j = 0; j < context.Length("DescribeUserDomains.Domains["+ i +"].Sources.Length"); j++) {
                    sources.Add(context.StringValue("DescribeUserDomains.Domains["+ i +"].Sources["+ j +"]"));
                }
                pageData.Sources = sources;

                domains.Add(pageData);
            }
            describeUserDomainsResponse.Domains = domains;

            return describeUserDomainsResponse;
        }
        public static DescribePurchasedApiGroupsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribePurchasedApiGroupsResponse describePurchasedApiGroupsResponse = new DescribePurchasedApiGroupsResponse();

            describePurchasedApiGroupsResponse.HttpResponse = context.HttpResponse;
            describePurchasedApiGroupsResponse.RequestId = context.StringValue("DescribePurchasedApiGroups.RequestId");
            describePurchasedApiGroupsResponse.TotalCount = context.IntegerValue("DescribePurchasedApiGroups.TotalCount");
            describePurchasedApiGroupsResponse.PageSize = context.IntegerValue("DescribePurchasedApiGroups.PageSize");
            describePurchasedApiGroupsResponse.PageNumber = context.IntegerValue("DescribePurchasedApiGroups.PageNumber");

            List<DescribePurchasedApiGroupsResponse.PurchasedApiGroupAttribute> purchasedApiGroupAttributes = new List<DescribePurchasedApiGroupsResponse.PurchasedApiGroupAttribute>();
            for (int i = 0; i < context.Length("DescribePurchasedApiGroups.PurchasedApiGroupAttributes.Length"); i++) {
                DescribePurchasedApiGroupsResponse.PurchasedApiGroupAttribute purchasedApiGroupAttribute = new DescribePurchasedApiGroupsResponse.PurchasedApiGroupAttribute();
                purchasedApiGroupAttribute.GroupId = context.StringValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].GroupId");
                purchasedApiGroupAttribute.GroupName = context.StringValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].GroupName");
                purchasedApiGroupAttribute.Description = context.StringValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].Description");
                purchasedApiGroupAttribute.PurchasedTime = context.StringValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].PurchasedTime");
                purchasedApiGroupAttribute.ExpireTime = context.StringValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].ExpireTime");
                purchasedApiGroupAttribute.RegionId = context.StringValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].RegionId");
                purchasedApiGroupAttribute.BillingType = context.StringValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].BillingType");
                purchasedApiGroupAttribute.InvokeTimesMax = context.LongValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].InvokeTimesMax");
                purchasedApiGroupAttribute.InvokeTimesNow = context.LongValue("DescribePurchasedApiGroups.PurchasedApiGroupAttributes["+ i +"].InvokeTimesNow");

                purchasedApiGroupAttributes.Add(purchasedApiGroupAttribute);
            }
            describePurchasedApiGroupsResponse.PurchasedApiGroupAttributes = purchasedApiGroupAttributes;

            return describePurchasedApiGroupsResponse;
        }
        public static SearchMediaResponse Unmarshall(UnmarshallerContext context)
        {
            SearchMediaResponse searchMediaResponse = new SearchMediaResponse();

            searchMediaResponse.HttpResponse = context.HttpResponse;
            searchMediaResponse.RequestId = context.StringValue("SearchMedia.RequestId");
            searchMediaResponse.TotalNum = context.LongValue("SearchMedia.TotalNum");
            searchMediaResponse.PageNumber = context.LongValue("SearchMedia.PageNumber");
            searchMediaResponse.PageSize = context.LongValue("SearchMedia.PageSize");

            List<SearchMediaResponse.Media> mediaList = new List<SearchMediaResponse.Media>();
            for (int i = 0; i < context.Length("SearchMedia.MediaList.Length"); i++) {
                SearchMediaResponse.Media media = new SearchMediaResponse.Media();
                media.MediaId = context.StringValue("SearchMedia.MediaList["+ i +"].MediaId");
                media.Title = context.StringValue("SearchMedia.MediaList["+ i +"].Title");
                media.Description = context.StringValue("SearchMedia.MediaList["+ i +"].Description");
                media.CoverURL = context.StringValue("SearchMedia.MediaList["+ i +"].CoverURL");
                media.CateId = context.LongValue("SearchMedia.MediaList["+ i +"].CateId");
                media.Duration = context.StringValue("SearchMedia.MediaList["+ i +"].Duration");
                media.Format = context.StringValue("SearchMedia.MediaList["+ i +"].Format");
                media.Size = context.StringValue("SearchMedia.MediaList["+ i +"].Size");
                media.Bitrate = context.StringValue("SearchMedia.MediaList["+ i +"].Bitrate");
                media.Width = context.StringValue("SearchMedia.MediaList["+ i +"].Width");
                media.Height = context.StringValue("SearchMedia.MediaList["+ i +"].Height");
                media.Fps = context.StringValue("SearchMedia.MediaList["+ i +"].Fps");
                media.PublishState = context.StringValue("SearchMedia.MediaList["+ i +"].PublishState");
                media.CreationTime = context.StringValue("SearchMedia.MediaList["+ i +"].CreationTime");

                List<string> tags = new List<string>();
                for (int j = 0; j < context.Length("SearchMedia.MediaList["+ i +"].Tags.Length"); j++) {
                    tags.Add(context.StringValue("SearchMedia.MediaList["+ i +"].Tags["+ j +"]"));
                }
                media.Tags = tags;

                List<string> runIdList = new List<string>();
                for (int j = 0; j < context.Length("SearchMedia.MediaList["+ i +"].RunIdList.Length"); j++) {
                    runIdList.Add(context.StringValue("SearchMedia.MediaList["+ i +"].RunIdList["+ j +"]"));
                }
                media.RunIdList = runIdList;

                SearchMediaResponse.Media.File_ file = new SearchMediaResponse.Media.File_();
                file.URL = context.StringValue("SearchMedia.MediaList["+ i +"].File.URL");
                file.State = context.StringValue("SearchMedia.MediaList["+ i +"].File.State");
                media.File = file;

                mediaList.Add(media);
            }
            searchMediaResponse.MediaList = mediaList;

            return searchMediaResponse;
        }
        public static SearchMediaWorkflowExecutionResponse Unmarshall(UnmarshallerContext context)
        {
            SearchMediaWorkflowExecutionResponse searchMediaWorkflowExecutionResponse = new SearchMediaWorkflowExecutionResponse();

            searchMediaWorkflowExecutionResponse.HttpResponse = context.HttpResponse;
            searchMediaWorkflowExecutionResponse.RequestId = context.StringValue("SearchMediaWorkflowExecution.RequestId");
            searchMediaWorkflowExecutionResponse.TotalCount = context.LongValue("SearchMediaWorkflowExecution.TotalCount");
            searchMediaWorkflowExecutionResponse.PageNumber = context.LongValue("SearchMediaWorkflowExecution.PageNumber");
            searchMediaWorkflowExecutionResponse.PageSize = context.LongValue("SearchMediaWorkflowExecution.PageSize");

            List<SearchMediaWorkflowExecutionResponse.MediaWorkflowExecution> mediaWorkflowExecutionList = new List<SearchMediaWorkflowExecutionResponse.MediaWorkflowExecution>();
            for (int i = 0; i < context.Length("SearchMediaWorkflowExecution.MediaWorkflowExecutionList.Length"); i++) {
                SearchMediaWorkflowExecutionResponse.MediaWorkflowExecution mediaWorkflowExecution = new SearchMediaWorkflowExecutionResponse.MediaWorkflowExecution();
                mediaWorkflowExecution.RunId = context.StringValue("SearchMediaWorkflowExecution.MediaWorkflowExecutionList["+ i +"].RunId");
                mediaWorkflowExecution.Name = context.StringValue("SearchMediaWorkflowExecution.MediaWorkflowExecutionList["+ i +"].Name");
                mediaWorkflowExecution.State = context.StringValue("SearchMediaWorkflowExecution.MediaWorkflowExecutionList["+ i +"].State");
                mediaWorkflowExecution.MediaId = context.StringValue("SearchMediaWorkflowExecution.MediaWorkflowExecutionList["+ i +"].MediaId");
                mediaWorkflowExecution.CreationTime = context.StringValue("SearchMediaWorkflowExecution.MediaWorkflowExecutionList["+ i +"].CreationTime");

                SearchMediaWorkflowExecutionResponse.MediaWorkflowExecution.Input_ input = new SearchMediaWorkflowExecutionResponse.MediaWorkflowExecution.Input_();

                SearchMediaWorkflowExecutionResponse.MediaWorkflowExecution.Input_.InputFile_ inputFile = new SearchMediaWorkflowExecutionResponse.MediaWorkflowExecution.Input_.InputFile_();
                inputFile.Bucket = context.StringValue("SearchMediaWorkflowExecution.MediaWorkflowExecutionList["+ i +"].Input.InputFile.Bucket");
                inputFile.Location = context.StringValue("SearchMediaWorkflowExecution.MediaWorkflowExecutionList["+ i +"].Input.InputFile.Location");
                inputFile.Object = context.StringValue("SearchMediaWorkflowExecution.MediaWorkflowExecutionList["+ i +"].Input.InputFile.Object");
                input.InputFile = inputFile;
                mediaWorkflowExecution.Input = input;

                List<SearchMediaWorkflowExecutionResponse.MediaWorkflowExecution.Activity> activityList = new List<SearchMediaWorkflowExecutionResponse.MediaWorkflowExecution.Activity>();
                for (int j = 0; j < context.Length("SearchMediaWorkflowExecution.MediaWorkflowExecutionList["+ i +"].ActivityList.Length"); j++) {
                    SearchMediaWorkflowExecutionResponse.MediaWorkflowExecution.Activity activity = new SearchMediaWorkflowExecutionResponse.MediaWorkflowExecution.Activity();
                    activity.Name = context.StringValue("SearchMediaWorkflowExecution.MediaWorkflowExecutionList["+ i +"].ActivityList["+ j +"].Name");
                    activity.Type = context.StringValue("SearchMediaWorkflowExecution.MediaWorkflowExecutionList["+ i +"].ActivityList["+ j +"].Type");
                    activity.JobId = context.StringValue("SearchMediaWorkflowExecution.MediaWorkflowExecutionList["+ i +"].ActivityList["+ j +"].JobId");
                    activity.State = context.StringValue("SearchMediaWorkflowExecution.MediaWorkflowExecutionList["+ i +"].ActivityList["+ j +"].State");
                    activity.Code = context.StringValue("SearchMediaWorkflowExecution.MediaWorkflowExecutionList["+ i +"].ActivityList["+ j +"].Code");
                    activity.Message = context.StringValue("SearchMediaWorkflowExecution.MediaWorkflowExecutionList["+ i +"].ActivityList["+ j +"].Message");
                    activity.StartTime = context.StringValue("SearchMediaWorkflowExecution.MediaWorkflowExecutionList["+ i +"].ActivityList["+ j +"].StartTime");
                    activity.EndTime = context.StringValue("SearchMediaWorkflowExecution.MediaWorkflowExecutionList["+ i +"].ActivityList["+ j +"].EndTime");

                    activityList.Add(activity);
                }
                mediaWorkflowExecution.ActivityList = activityList;

                mediaWorkflowExecutionList.Add(mediaWorkflowExecution);
            }
            searchMediaWorkflowExecutionResponse.MediaWorkflowExecutionList = mediaWorkflowExecutionList;

            return searchMediaWorkflowExecutionResponse;
        }
        public static DescribeCdnMonitorDataResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeCdnMonitorDataResponse describeCdnMonitorDataResponse = new DescribeCdnMonitorDataResponse();

            describeCdnMonitorDataResponse.HttpResponse = context.HttpResponse;
            describeCdnMonitorDataResponse.RequestId = context.StringValue("DescribeCdnMonitorData.RequestId");
            describeCdnMonitorDataResponse.DomainName = context.StringValue("DescribeCdnMonitorData.DomainName");
            describeCdnMonitorDataResponse.MonitorInterval = context.LongValue("DescribeCdnMonitorData.MonitorInterval");
            describeCdnMonitorDataResponse.StartTime = context.StringValue("DescribeCdnMonitorData.StartTime");
            describeCdnMonitorDataResponse.EndTime = context.StringValue("DescribeCdnMonitorData.EndTime");

            List<DescribeCdnMonitorDataResponse.CDNMonitorData> monitorDatas = new List<DescribeCdnMonitorDataResponse.CDNMonitorData>();
            for (int i = 0; i < context.Length("DescribeCdnMonitorData.MonitorDatas.Length"); i++) {
                DescribeCdnMonitorDataResponse.CDNMonitorData cDNMonitorData = new DescribeCdnMonitorDataResponse.CDNMonitorData();
                cDNMonitorData.TimeStamp = context.StringValue("DescribeCdnMonitorData.MonitorDatas["+ i +"].TimeStamp");
                cDNMonitorData.QueryPerSecond = context.StringValue("DescribeCdnMonitorData.MonitorDatas["+ i +"].QueryPerSecond");
                cDNMonitorData.BytesPerSecond = context.StringValue("DescribeCdnMonitorData.MonitorDatas["+ i +"].BytesPerSecond");
                cDNMonitorData.BytesHitRate = context.StringValue("DescribeCdnMonitorData.MonitorDatas["+ i +"].BytesHitRate");
                cDNMonitorData.RequestHitRate = context.StringValue("DescribeCdnMonitorData.MonitorDatas["+ i +"].RequestHitRate");
                cDNMonitorData.AverageObjectSize = context.StringValue("DescribeCdnMonitorData.MonitorDatas["+ i +"].AverageObjectSize");

                monitorDatas.Add(cDNMonitorData);
            }
            describeCdnMonitorDataResponse.MonitorDatas = monitorDatas;

            return describeCdnMonitorDataResponse;
        }
        public static DescribeAppAttributesResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeAppAttributesResponse describeAppAttributesResponse = new DescribeAppAttributesResponse();

            describeAppAttributesResponse.HttpResponse = context.HttpResponse;
            describeAppAttributesResponse.RequestId = context.StringValue("DescribeAppAttributes.RequestId");
            describeAppAttributesResponse.TotalCount = context.IntegerValue("DescribeAppAttributes.TotalCount");
            describeAppAttributesResponse.PageSize = context.IntegerValue("DescribeAppAttributes.PageSize");
            describeAppAttributesResponse.PageNumber = context.IntegerValue("DescribeAppAttributes.PageNumber");

            List<DescribeAppAttributesResponse.AppAttribute> apps = new List<DescribeAppAttributesResponse.AppAttribute>();
            for (int i = 0; i < context.Length("DescribeAppAttributes.Apps.Length"); i++) {
                DescribeAppAttributesResponse.AppAttribute appAttribute = new DescribeAppAttributesResponse.AppAttribute();
                appAttribute.AppId = context.LongValue("DescribeAppAttributes.Apps["+ i +"].AppId");
                appAttribute.AppName = context.StringValue("DescribeAppAttributes.Apps["+ i +"].AppName");
                appAttribute.Description = context.StringValue("DescribeAppAttributes.Apps["+ i +"].Description");
                appAttribute.CreatedTime = context.StringValue("DescribeAppAttributes.Apps["+ i +"].CreatedTime");
                appAttribute.ModifiedTime = context.StringValue("DescribeAppAttributes.Apps["+ i +"].ModifiedTime");

                apps.Add(appAttribute);
            }
            describeAppAttributesResponse.Apps = apps;

            return describeAppAttributesResponse;
        }
        public static DescribeAuthorizedAppsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeAuthorizedAppsResponse describeAuthorizedAppsResponse = new DescribeAuthorizedAppsResponse();

            describeAuthorizedAppsResponse.HttpResponse = context.HttpResponse;
            describeAuthorizedAppsResponse.RequestId = context.StringValue("DescribeAuthorizedApps.RequestId");
            describeAuthorizedAppsResponse.TotalCount = context.IntegerValue("DescribeAuthorizedApps.TotalCount");
            describeAuthorizedAppsResponse.PageSize = context.IntegerValue("DescribeAuthorizedApps.PageSize");
            describeAuthorizedAppsResponse.PageNumber = context.IntegerValue("DescribeAuthorizedApps.PageNumber");

            List<DescribeAuthorizedAppsResponse.AuthorizedApp> authorizedApps = new List<DescribeAuthorizedAppsResponse.AuthorizedApp>();
            for (int i = 0; i < context.Length("DescribeAuthorizedApps.AuthorizedApps.Length"); i++) {
                DescribeAuthorizedAppsResponse.AuthorizedApp authorizedApp = new DescribeAuthorizedAppsResponse.AuthorizedApp();
                authorizedApp.StageName = context.StringValue("DescribeAuthorizedApps.AuthorizedApps["+ i +"].StageName");
                authorizedApp.AppId = context.LongValue("DescribeAuthorizedApps.AuthorizedApps["+ i +"].AppId");
                authorizedApp.AppName = context.StringValue("DescribeAuthorizedApps.AuthorizedApps["+ i +"].AppName");
                authorizedApp.Operator = context.StringValue("DescribeAuthorizedApps.AuthorizedApps["+ i +"].Operator");
                authorizedApp.AuthorizationSource = context.StringValue("DescribeAuthorizedApps.AuthorizedApps["+ i +"].AuthorizationSource");
                authorizedApp.Description = context.StringValue("DescribeAuthorizedApps.AuthorizedApps["+ i +"].Description");
                authorizedApp.AuthorizedTime = context.StringValue("DescribeAuthorizedApps.AuthorizedApps["+ i +"].AuthorizedTime");

                authorizedApps.Add(authorizedApp);
            }
            describeAuthorizedAppsResponse.AuthorizedApps = authorizedApps;

            return describeAuthorizedAppsResponse;
        }
        public static DescribeFilesForSQLServerResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeFilesForSQLServerResponse describeFilesForSQLServerResponse = new DescribeFilesForSQLServerResponse();

            describeFilesForSQLServerResponse.HttpResponse = context.HttpResponse;
            describeFilesForSQLServerResponse.RequestId = context.StringValue("DescribeFilesForSQLServer.RequestId");
            describeFilesForSQLServerResponse.DBInstanceId = context.StringValue("DescribeFilesForSQLServer.DBInstanceId");
            describeFilesForSQLServerResponse.TotalRecordCount = context.IntegerValue("DescribeFilesForSQLServer.TotalRecordCount");
            describeFilesForSQLServerResponse.PageNumber = context.IntegerValue("DescribeFilesForSQLServer.PageNumber");
            describeFilesForSQLServerResponse.PageRecordCount = context.IntegerValue("DescribeFilesForSQLServer.PageRecordCount");

            List<DescribeFilesForSQLServerResponse.SQLServerUploadFile> items = new List<DescribeFilesForSQLServerResponse.SQLServerUploadFile>();
            for (int i = 0; i < context.Length("DescribeFilesForSQLServer.Items.Length"); i++) {
                DescribeFilesForSQLServerResponse.SQLServerUploadFile sQLServerUploadFile = new DescribeFilesForSQLServerResponse.SQLServerUploadFile();
                sQLServerUploadFile.DBName = context.StringValue("DescribeFilesForSQLServer.Items["+ i +"].DBName");
                sQLServerUploadFile.FileName = context.StringValue("DescribeFilesForSQLServer.Items["+ i +"].FileName");
                sQLServerUploadFile.FileSize = context.LongValue("DescribeFilesForSQLServer.Items["+ i +"].FileSize");
                sQLServerUploadFile.InternetFtpServer = context.StringValue("DescribeFilesForSQLServer.Items["+ i +"].InternetFtpServer");
                sQLServerUploadFile.InternetPort = context.IntegerValue("DescribeFilesForSQLServer.Items["+ i +"].InternetPort");
                sQLServerUploadFile.IntranetFtpserver = context.StringValue("DescribeFilesForSQLServer.Items["+ i +"].IntranetFtpserver");
                sQLServerUploadFile.Intranetport = context.IntegerValue("DescribeFilesForSQLServer.Items["+ i +"].Intranetport");
                sQLServerUploadFile.UserName = context.StringValue("DescribeFilesForSQLServer.Items["+ i +"].UserName");
                sQLServerUploadFile.Password = context.StringValue("DescribeFilesForSQLServer.Items["+ i +"].Password");
                sQLServerUploadFile.FileStatus = context.EnumValue<DescribeFilesForSQLServerResponse.SQLServerUploadFile.FileStatusEnum>("DescribeFilesForSQLServer.Items["+ i +"].FileStatus");
                sQLServerUploadFile.Description = context.StringValue("DescribeFilesForSQLServer.Items["+ i +"].Description");
                sQLServerUploadFile.CreationTime = context.StringValue("DescribeFilesForSQLServer.Items["+ i +"].CreationTime");

                items.Add(sQLServerUploadFile);
            }
            describeFilesForSQLServerResponse.Items = items;

            return describeFilesForSQLServerResponse;
        }
        public static DescribeVirtualBorderRoutersForPhysicalConnectionResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeVirtualBorderRoutersForPhysicalConnectionResponse describeVirtualBorderRoutersForPhysicalConnectionResponse = new DescribeVirtualBorderRoutersForPhysicalConnectionResponse();

            describeVirtualBorderRoutersForPhysicalConnectionResponse.HttpResponse = context.HttpResponse;
            describeVirtualBorderRoutersForPhysicalConnectionResponse.RequestId = context.StringValue("DescribeVirtualBorderRoutersForPhysicalConnection.RequestId");
            describeVirtualBorderRoutersForPhysicalConnectionResponse.PageNumber = context.IntegerValue("DescribeVirtualBorderRoutersForPhysicalConnection.PageNumber");
            describeVirtualBorderRoutersForPhysicalConnectionResponse.PageSize = context.IntegerValue("DescribeVirtualBorderRoutersForPhysicalConnection.PageSize");
            describeVirtualBorderRoutersForPhysicalConnectionResponse.TotalCount = context.IntegerValue("DescribeVirtualBorderRoutersForPhysicalConnection.TotalCount");

            List<DescribeVirtualBorderRoutersForPhysicalConnectionResponse.VirtualBorderRouterForPhysicalConnectionType> virtualBorderRouterForPhysicalConnectionSet = new List<DescribeVirtualBorderRoutersForPhysicalConnectionResponse.VirtualBorderRouterForPhysicalConnectionType>();
            for (int i = 0; i < context.Length("DescribeVirtualBorderRoutersForPhysicalConnection.VirtualBorderRouterForPhysicalConnectionSet.Length"); i++) {
                DescribeVirtualBorderRoutersForPhysicalConnectionResponse.VirtualBorderRouterForPhysicalConnectionType virtualBorderRouterForPhysicalConnectionType = new DescribeVirtualBorderRoutersForPhysicalConnectionResponse.VirtualBorderRouterForPhysicalConnectionType();
                virtualBorderRouterForPhysicalConnectionType.VbrId = context.StringValue("DescribeVirtualBorderRoutersForPhysicalConnection.VirtualBorderRouterForPhysicalConnectionSet["+ i +"].VbrId");
                virtualBorderRouterForPhysicalConnectionType.VbrOwnerUid = context.LongValue("DescribeVirtualBorderRoutersForPhysicalConnection.VirtualBorderRouterForPhysicalConnectionSet["+ i +"].VbrOwnerUid");
                virtualBorderRouterForPhysicalConnectionType.CreationTime = context.StringValue("DescribeVirtualBorderRoutersForPhysicalConnection.VirtualBorderRouterForPhysicalConnectionSet["+ i +"].CreationTime");
                virtualBorderRouterForPhysicalConnectionType.ActivationTime = context.StringValue("DescribeVirtualBorderRoutersForPhysicalConnection.VirtualBorderRouterForPhysicalConnectionSet["+ i +"].ActivationTime");
                virtualBorderRouterForPhysicalConnectionType.TerminationTime = context.StringValue("DescribeVirtualBorderRoutersForPhysicalConnection.VirtualBorderRouterForPhysicalConnectionSet["+ i +"].TerminationTime");
                virtualBorderRouterForPhysicalConnectionType.RecoveryTime = context.StringValue("DescribeVirtualBorderRoutersForPhysicalConnection.VirtualBorderRouterForPhysicalConnectionSet["+ i +"].RecoveryTime");
                virtualBorderRouterForPhysicalConnectionType.VlanId = context.IntegerValue("DescribeVirtualBorderRoutersForPhysicalConnection.VirtualBorderRouterForPhysicalConnectionSet["+ i +"].VlanId");
                virtualBorderRouterForPhysicalConnectionType.CircuitCode = context.StringValue("DescribeVirtualBorderRoutersForPhysicalConnection.VirtualBorderRouterForPhysicalConnectionSet["+ i +"].CircuitCode");

                virtualBorderRouterForPhysicalConnectionSet.Add(virtualBorderRouterForPhysicalConnectionType);
            }
            describeVirtualBorderRoutersForPhysicalConnectionResponse.VirtualBorderRouterForPhysicalConnectionSet = virtualBorderRouterForPhysicalConnectionSet;

            return describeVirtualBorderRoutersForPhysicalConnectionResponse;
        }
        public static DescribeLoadBalancersResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeLoadBalancersResponse describeLoadBalancersResponse = new DescribeLoadBalancersResponse();

            describeLoadBalancersResponse.HttpResponse = context.HttpResponse;
            describeLoadBalancersResponse.RequestId = context.StringValue("DescribeLoadBalancers.RequestId");

            List<DescribeLoadBalancersResponse.LoadBalancer> loadBalancers = new List<DescribeLoadBalancersResponse.LoadBalancer>();
            for (int i = 0; i < context.Length("DescribeLoadBalancers.LoadBalancers.Length"); i++) {
                DescribeLoadBalancersResponse.LoadBalancer loadBalancer = new DescribeLoadBalancersResponse.LoadBalancer();
                loadBalancer.LoadBalancerId = context.StringValue("DescribeLoadBalancers.LoadBalancers["+ i +"].LoadBalancerId");
                loadBalancer.LoadBalancerName = context.StringValue("DescribeLoadBalancers.LoadBalancers["+ i +"].LoadBalancerName");
                loadBalancer.LoadBalancerStatus = context.StringValue("DescribeLoadBalancers.LoadBalancers["+ i +"].LoadBalancerStatus");
                loadBalancer.Address = context.StringValue("DescribeLoadBalancers.LoadBalancers["+ i +"].Address");
                loadBalancer.AddressType = context.StringValue("DescribeLoadBalancers.LoadBalancers["+ i +"].AddressType");
                loadBalancer.RegionId = context.StringValue("DescribeLoadBalancers.LoadBalancers["+ i +"].RegionId");
                loadBalancer.RegionIdAlias = context.StringValue("DescribeLoadBalancers.LoadBalancers["+ i +"].RegionIdAlias");
                loadBalancer.VSwitchId = context.StringValue("DescribeLoadBalancers.LoadBalancers["+ i +"].VSwitchId");
                loadBalancer.VpcId = context.StringValue("DescribeLoadBalancers.LoadBalancers["+ i +"].VpcId");
                loadBalancer.NetworkType = context.StringValue("DescribeLoadBalancers.LoadBalancers["+ i +"].NetworkType");
                loadBalancer.MasterZoneId = context.StringValue("DescribeLoadBalancers.LoadBalancers["+ i +"].MasterZoneId");
                loadBalancer.SlaveZoneId = context.StringValue("DescribeLoadBalancers.LoadBalancers["+ i +"].SlaveZoneId");
                loadBalancer.InternetChargeType = context.StringValue("DescribeLoadBalancers.LoadBalancers["+ i +"].InternetChargeType");
                loadBalancer.CreateTime = context.StringValue("DescribeLoadBalancers.LoadBalancers["+ i +"].CreateTime");
                loadBalancer.CreateTimeStamp = context.LongValue("DescribeLoadBalancers.LoadBalancers["+ i +"].CreateTimeStamp");

                loadBalancers.Add(loadBalancer);
            }
            describeLoadBalancersResponse.LoadBalancers = loadBalancers;

            return describeLoadBalancersResponse;
        }
        public static DescribeVSwitchesResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeVSwitchesResponse describeVSwitchesResponse = new DescribeVSwitchesResponse();

            describeVSwitchesResponse.HttpResponse = context.HttpResponse;
            describeVSwitchesResponse.RequestId = context.StringValue("DescribeVSwitches.RequestId");
            describeVSwitchesResponse.TotalCount = context.IntegerValue("DescribeVSwitches.TotalCount");
            describeVSwitchesResponse.PageNumber = context.IntegerValue("DescribeVSwitches.PageNumber");
            describeVSwitchesResponse.PageSize = context.IntegerValue("DescribeVSwitches.PageSize");

            List<DescribeVSwitchesResponse.VSwitch> vSwitches = new List<DescribeVSwitchesResponse.VSwitch>();
            for (int i = 0; i < context.Length("DescribeVSwitches.VSwitches.Length"); i++) {
                DescribeVSwitchesResponse.VSwitch vSwitch = new DescribeVSwitchesResponse.VSwitch();
                vSwitch.VSwitchId = context.StringValue("DescribeVSwitches.VSwitches["+ i +"].VSwitchId");
                vSwitch.VpcId = context.StringValue("DescribeVSwitches.VSwitches["+ i +"].VpcId");
                vSwitch.Status = context.StringValue("DescribeVSwitches.VSwitches["+ i +"].Status");
                vSwitch.CidrBlock = context.StringValue("DescribeVSwitches.VSwitches["+ i +"].CidrBlock");
                vSwitch.ZoneId = context.StringValue("DescribeVSwitches.VSwitches["+ i +"].ZoneId");
                vSwitch.AvailableIpAddressCount = context.LongValue("DescribeVSwitches.VSwitches["+ i +"].AvailableIpAddressCount");
                vSwitch.Description = context.StringValue("DescribeVSwitches.VSwitches["+ i +"].Description");
                vSwitch.VSwitchName = context.StringValue("DescribeVSwitches.VSwitches["+ i +"].VSwitchName");
                vSwitch.CreationTime = context.StringValue("DescribeVSwitches.VSwitches["+ i +"].CreationTime");
                vSwitch.IsDefault = context.StringValue("DescribeVSwitches.VSwitches["+ i +"].IsDefault");

                vSwitches.Add(vSwitch);
            }
            describeVSwitchesResponse.VSwitches = vSwitches;

            return describeVSwitchesResponse;
        }
        public static DescribeBackupsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeBackupsResponse describeBackupsResponse = new DescribeBackupsResponse();

            describeBackupsResponse.HttpResponse = context.HttpResponse;
            describeBackupsResponse.RequestId = context.StringValue("DescribeBackups.RequestId");
            describeBackupsResponse.TotalRecordCount = context.StringValue("DescribeBackups.TotalRecordCount");
            describeBackupsResponse.PageNumber = context.StringValue("DescribeBackups.PageNumber");
            describeBackupsResponse.PageRecordCount = context.StringValue("DescribeBackups.PageRecordCount");

            List<DescribeBackupsResponse.Backup> items = new List<DescribeBackupsResponse.Backup>();
            for (int i = 0; i < context.Length("DescribeBackups.Items.Length"); i++) {
                DescribeBackupsResponse.Backup backup = new DescribeBackupsResponse.Backup();
                backup.BackupId = context.StringValue("DescribeBackups.Items["+ i +"].BackupId");
                backup.DBInstanceId = context.StringValue("DescribeBackups.Items["+ i +"].DBInstanceId");
                backup.BackupStatus = context.EnumValue<DescribeBackupsResponse.Backup.BackupStatusEnum>("DescribeBackups.Items["+ i +"].BackupStatus");
                backup.BackupStartTime = context.StringValue("DescribeBackups.Items["+ i +"].BackupStartTime");
                backup.BackupEndTime = context.StringValue("DescribeBackups.Items["+ i +"].BackupEndTime");
                backup.BackupType = context.EnumValue<DescribeBackupsResponse.Backup.BackupTypeEnum>("DescribeBackups.Items["+ i +"].BackupType");
                backup.BackupMode = context.EnumValue<DescribeBackupsResponse.Backup.BackupModeEnum>("DescribeBackups.Items["+ i +"].BackupMode");
                backup.BackupMethod = context.EnumValue<DescribeBackupsResponse.Backup.BackupMethodEnum>("DescribeBackups.Items["+ i +"].BackupMethod");
                backup.BackupDownloadURL = context.StringValue("DescribeBackups.Items["+ i +"].BackupDownloadURL");
                backup.BackupLocation = context.StringValue("DescribeBackups.Items["+ i +"].BackupLocation");
                backup.BackupExtractionStatus = context.EnumValue<DescribeBackupsResponse.Backup.BackupExtractionStatusEnum>("DescribeBackups.Items["+ i +"].BackupExtractionStatus");
                backup.BackupScale = context.EnumValue<DescribeBackupsResponse.Backup.BackupScaleEnum>("DescribeBackups.Items["+ i +"].BackupScale");
                backup.BackupDBNames = context.StringValue("DescribeBackups.Items["+ i +"].BackupDBNames");
                backup.BackupSize = context.LongValue("DescribeBackups.Items["+ i +"].BackupSize");

                items.Add(backup);
            }
            describeBackupsResponse.Items = items;

            return describeBackupsResponse;
        }
        public static ValidateAppCertResponse Unmarshall(UnmarshallerContext context)
        {
            ValidateAppCertResponse validateAppCertResponse = new ValidateAppCertResponse();

            validateAppCertResponse.HttpResponse = context.HttpResponse;
            validateAppCertResponse.RequestId = context.StringValue("ValidateAppCert.RequestId");

            ValidateAppCertResponse.AppCertInfo_ appCertInfo = new ValidateAppCertResponse.AppCertInfo_();
            appCertInfo.AppName = context.StringValue("ValidateAppCert.AppCertInfo.AppName");
            appCertInfo.CertType = context.StringValue("ValidateAppCert.AppCertInfo.CertType");
            appCertInfo.DevCert = context.BooleanValue("ValidateAppCert.AppCertInfo.DevCert");
            appCertInfo.ExpirationDate = context.LongValue("ValidateAppCert.AppCertInfo.ExpirationDate");
            appCertInfo.GenerateDate = context.LongValue("ValidateAppCert.AppCertInfo.GenerateDate");
            validateAppCertResponse.AppCertInfo = appCertInfo;

            return validateAppCertResponse;
        }
        public static DescribeCurrentCharge95InfoResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeCurrentCharge95InfoResponse describeCurrentCharge95InfoResponse = new DescribeCurrentCharge95InfoResponse();

            describeCurrentCharge95InfoResponse.HttpResponse = context.HttpResponse;
            describeCurrentCharge95InfoResponse.RequestId = context.StringValue("DescribeCurrentCharge95Info.RequestId");

            DescribeCurrentCharge95InfoResponse.CurrentCharge95Info_ currentCharge95Info = new DescribeCurrentCharge95InfoResponse.CurrentCharge95Info_();
            currentCharge95Info.Max95Bps = context.LongValue("DescribeCurrentCharge95Info.CurrentCharge95Info.Max95Bps");
            currentCharge95Info.DomesticMax95Bps = context.LongValue("DescribeCurrentCharge95Info.CurrentCharge95Info.DomesticMax95Bps");
            currentCharge95Info.OverseasMax95Bps = context.LongValue("DescribeCurrentCharge95Info.CurrentCharge95Info.OverseasMax95Bps");
            currentCharge95Info.EffectiveFactor = context.FloatValue("DescribeCurrentCharge95Info.CurrentCharge95Info.EffectiveFactor");
            currentCharge95Info.Cost = context.FloatValue("DescribeCurrentCharge95Info.CurrentCharge95Info.Cost");
            currentCharge95Info.UserName = context.StringValue("DescribeCurrentCharge95Info.CurrentCharge95Info.UserName");
            describeCurrentCharge95InfoResponse.CurrentCharge95Info = currentCharge95Info;

            return describeCurrentCharge95InfoResponse;
        }
        public static CreateAppResponse Unmarshall(UnmarshallerContext context)
        {
            CreateAppResponse createAppResponse = new CreateAppResponse();

            createAppResponse.HttpResponse = context.HttpResponse;
            createAppResponse.RequestId = context.StringValue("CreateApp.RequestId");
            createAppResponse.AppKey = context.LongValue("CreateApp.AppKey");

            return createAppResponse;
        }
        public static DescribeSQLLogReportsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeSQLLogReportsResponse describeSQLLogReportsResponse = new DescribeSQLLogReportsResponse();

            describeSQLLogReportsResponse.HttpResponse = context.HttpResponse;
            describeSQLLogReportsResponse.RequestId = context.StringValue("DescribeSQLLogReports.RequestId");
            describeSQLLogReportsResponse.TotalRecordCount = context.IntegerValue("DescribeSQLLogReports.TotalRecordCount");
            describeSQLLogReportsResponse.PageNumber = context.IntegerValue("DescribeSQLLogReports.PageNumber");
            describeSQLLogReportsResponse.PageRecordCount = context.IntegerValue("DescribeSQLLogReports.PageRecordCount");

            List<DescribeSQLLogReportsResponse.Item> items = new List<DescribeSQLLogReportsResponse.Item>();
            for (int i = 0; i < context.Length("DescribeSQLLogReports.Items.Length"); i++) {
                DescribeSQLLogReportsResponse.Item item = new DescribeSQLLogReportsResponse.Item();
                item.ReportTime = context.StringValue("DescribeSQLLogReports.Items["+ i +"].ReportTime");

                List<DescribeSQLLogReportsResponse.Item.LatencyTopNItem> latencyTopNItems = new List<DescribeSQLLogReportsResponse.Item.LatencyTopNItem>();
                for (int j = 0; j < context.Length("DescribeSQLLogReports.Items["+ i +"].LatencyTopNItems.Length"); j++) {
                    DescribeSQLLogReportsResponse.Item.LatencyTopNItem latencyTopNItem = new DescribeSQLLogReportsResponse.Item.LatencyTopNItem();
                    latencyTopNItem.SQLText = context.StringValue("DescribeSQLLogReports.Items["+ i +"].LatencyTopNItems["+ j +"].SQLText");
                    latencyTopNItem.AvgLatency = context.LongValue("DescribeSQLLogReports.Items["+ i +"].LatencyTopNItems["+ j +"].AvgLatency");
                    latencyTopNItem.SQLExecuteTimes = context.LongValue("DescribeSQLLogReports.Items["+ i +"].LatencyTopNItems["+ j +"].SQLExecuteTimes");

                    latencyTopNItems.Add(latencyTopNItem);
                }
                item.LatencyTopNItems = latencyTopNItems;

                List<DescribeSQLLogReportsResponse.Item.QPSTopNItem> qPSTopNItems = new List<DescribeSQLLogReportsResponse.Item.QPSTopNItem>();
                for (int j = 0; j < context.Length("DescribeSQLLogReports.Items["+ i +"].QPSTopNItems.Length"); j++) {
                    DescribeSQLLogReportsResponse.Item.QPSTopNItem qPSTopNItem = new DescribeSQLLogReportsResponse.Item.QPSTopNItem();
                    qPSTopNItem.SQLText = context.StringValue("DescribeSQLLogReports.Items["+ i +"].QPSTopNItems["+ j +"].SQLText");
                    qPSTopNItem.SQLExecuteTimes = context.LongValue("DescribeSQLLogReports.Items["+ i +"].QPSTopNItems["+ j +"].SQLExecuteTimes");

                    qPSTopNItems.Add(qPSTopNItem);
                }
                item.QPSTopNItems = qPSTopNItems;

                items.Add(item);
            }
            describeSQLLogReportsResponse.Items = items;

            return describeSQLLogReportsResponse;
        }
        public static DescribeLiveStreamOnlineUserNumResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeLiveStreamOnlineUserNumResponse describeLiveStreamOnlineUserNumResponse = new DescribeLiveStreamOnlineUserNumResponse();

            describeLiveStreamOnlineUserNumResponse.HttpResponse = context.HttpResponse;
            describeLiveStreamOnlineUserNumResponse.RequestId = context.StringValue("DescribeLiveStreamOnlineUserNum.RequestId");
            describeLiveStreamOnlineUserNumResponse.TotalUserNumber = context.LongValue("DescribeLiveStreamOnlineUserNum.TotalUserNumber");

            List<DescribeLiveStreamOnlineUserNumResponse.LiveStreamOnlineUserNumInfo> onlineUserInfo = new List<DescribeLiveStreamOnlineUserNumResponse.LiveStreamOnlineUserNumInfo>();
            for (int i = 0; i < context.Length("DescribeLiveStreamOnlineUserNum.OnlineUserInfo.Length"); i++) {
                DescribeLiveStreamOnlineUserNumResponse.LiveStreamOnlineUserNumInfo liveStreamOnlineUserNumInfo = new DescribeLiveStreamOnlineUserNumResponse.LiveStreamOnlineUserNumInfo();
                liveStreamOnlineUserNumInfo.StreamUrl = context.StringValue("DescribeLiveStreamOnlineUserNum.OnlineUserInfo["+ i +"].StreamUrl");
                liveStreamOnlineUserNumInfo.UserNumber = context.LongValue("DescribeLiveStreamOnlineUserNum.OnlineUserInfo["+ i +"].UserNumber");

                onlineUserInfo.Add(liveStreamOnlineUserNumInfo);
            }
            describeLiveStreamOnlineUserNumResponse.OnlineUserInfo = onlineUserInfo;

            return describeLiveStreamOnlineUserNumResponse;
        }
        public static SetDNSSLBStatusResponse Unmarshall(UnmarshallerContext context)
        {
            SetDNSSLBStatusResponse setDNSSLBStatusResponse = new SetDNSSLBStatusResponse();

            setDNSSLBStatusResponse.HttpResponse = context.HttpResponse;
            setDNSSLBStatusResponse.RequestId = context.StringValue("SetDNSSLBStatus.RequestId");
            setDNSSLBStatusResponse.RecordCount = context.LongValue("SetDNSSLBStatus.RecordCount");
            setDNSSLBStatusResponse.Open = context.BooleanValue("SetDNSSLBStatus.Open");

            return setDNSSLBStatusResponse;
        }
        public static DescribeInstanceResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeInstanceResponse describeInstanceResponse = new DescribeInstanceResponse();

            describeInstanceResponse.HttpResponse = _ctx.HttpResponse;
            describeInstanceResponse.RequestId    = _ctx.StringValue("DescribeInstance.RequestId");

            DescribeInstanceResponse.DescribeInstance_Result result = new DescribeInstanceResponse.DescribeInstance_Result();
            result.InstanceId             = _ctx.StringValue("DescribeInstance.Result.instanceId");
            result.Domain                 = _ctx.StringValue("DescribeInstance.Result.domain");
            result.Description            = _ctx.StringValue("DescribeInstance.Result.description");
            result.NodeAmount             = _ctx.IntegerValue("DescribeInstance.Result.nodeAmount");
            result.PaymentType            = _ctx.StringValue("DescribeInstance.Result.paymentType");
            result.Status                 = _ctx.StringValue("DescribeInstance.Result.status");
            result.EsVersion              = _ctx.StringValue("DescribeInstance.Result.esVersion");
            result.CreatedAt              = _ctx.StringValue("DescribeInstance.Result.createdAt");
            result.UpdatedAt              = _ctx.StringValue("DescribeInstance.Result.updatedAt");
            result.KibanaDomain           = _ctx.StringValue("DescribeInstance.Result.kibanaDomain");
            result.EnablePublic           = _ctx.BooleanValue("DescribeInstance.Result.enablePublic");
            result.DedicateMaster         = _ctx.BooleanValue("DescribeInstance.Result.dedicateMaster");
            result.AdvancedDedicateMaster = _ctx.BooleanValue("DescribeInstance.Result.advancedDedicateMaster");
            result.PublicPort             = _ctx.IntegerValue("DescribeInstance.Result.publicPort");
            result.KibanaPort             = _ctx.IntegerValue("DescribeInstance.Result.kibanaPort");
            result.PublicDomain           = _ctx.StringValue("DescribeInstance.Result.publicDomain");
            result.VpcInstanceId          = _ctx.StringValue("DescribeInstance.Result.vpcInstanceId");
            result.Port                       = _ctx.IntegerValue("DescribeInstance.Result.port");
            result.EsConfig                   = _ctx.StringValue("DescribeInstance.Result.esConfig");
            result.ZoneCount                  = _ctx.IntegerValue("DescribeInstance.Result.zoneCount");
            result.HaveClientNode             = _ctx.BooleanValue("DescribeInstance.Result.haveClientNode");
            result.WarmNode                   = _ctx.BooleanValue("DescribeInstance.Result.warmNode");
            result.Protocol                   = _ctx.StringValue("DescribeInstance.Result.protocol");
            result.EnableKibanaPublicNetwork  = _ctx.BooleanValue("DescribeInstance.Result.enableKibanaPublicNetwork");
            result.HaveKibana                 = _ctx.BooleanValue("DescribeInstance.Result.haveKibana");
            result.ResourceGroupId            = _ctx.StringValue("DescribeInstance.Result.resourceGroupId");
            result.EnableKibanaPrivateNetwork = _ctx.BooleanValue("DescribeInstance.Result.enableKibanaPrivateNetwork");

            List <string> result_esIPWhitelist = new List <string>();

            for (int i = 0; i < _ctx.Length("DescribeInstance.Result.EsIPWhitelist.Length"); i++)
            {
                result_esIPWhitelist.Add(_ctx.StringValue("DescribeInstance.Result.EsIPWhitelist[" + i + "]"));
            }
            result.EsIPWhitelist = result_esIPWhitelist;

            List <string> result_esIPBlacklist = new List <string>();

            for (int i = 0; i < _ctx.Length("DescribeInstance.Result.EsIPBlacklist.Length"); i++)
            {
                result_esIPBlacklist.Add(_ctx.StringValue("DescribeInstance.Result.EsIPBlacklist[" + i + "]"));
            }
            result.EsIPBlacklist = result_esIPBlacklist;

            List <string> result_kibanaIPWhitelist = new List <string>();

            for (int i = 0; i < _ctx.Length("DescribeInstance.Result.KibanaIPWhitelist.Length"); i++)
            {
                result_kibanaIPWhitelist.Add(_ctx.StringValue("DescribeInstance.Result.KibanaIPWhitelist[" + i + "]"));
            }
            result.KibanaIPWhitelist = result_kibanaIPWhitelist;

            List <string> result_publicIpWhitelist = new List <string>();

            for (int i = 0; i < _ctx.Length("DescribeInstance.Result.PublicIpWhitelist.Length"); i++)
            {
                result_publicIpWhitelist.Add(_ctx.StringValue("DescribeInstance.Result.PublicIpWhitelist[" + i + "]"));
            }
            result.PublicIpWhitelist = result_publicIpWhitelist;

            List <string> result_privateNetworkIpWhiteList = new List <string>();

            for (int i = 0; i < _ctx.Length("DescribeInstance.Result.PrivateNetworkIpWhiteList.Length"); i++)
            {
                result_privateNetworkIpWhiteList.Add(_ctx.StringValue("DescribeInstance.Result.PrivateNetworkIpWhiteList[" + i + "]"));
            }
            result.PrivateNetworkIpWhiteList = result_privateNetworkIpWhiteList;

            List <string> result_kibanaPrivateIPWhitelist = new List <string>();

            for (int i = 0; i < _ctx.Length("DescribeInstance.Result.KibanaPrivateIPWhitelist.Length"); i++)
            {
                result_kibanaPrivateIPWhitelist.Add(_ctx.StringValue("DescribeInstance.Result.KibanaPrivateIPWhitelist[" + i + "]"));
            }
            result.KibanaPrivateIPWhitelist = result_kibanaPrivateIPWhitelist;

            List <Dictionary <string, string> > result_extendConfigs = new List <Dictionary <string, string> >();

            for (int i = 0; i < _ctx.Length("DescribeInstance.Result.ExtendConfigs.Length"); i++)
            {
                Dictionary <string, string> tmp = new Dictionary <string, string>()
                {
                };
                foreach (var _item in _ctx.ResponseDictionary)
                {
                    string prefix = "DescribeInstance.Result.ExtendConfigs[" + i + "].";
                    if (_item.Key.IndexOf(prefix) == 0)
                    {
                        tmp.Add(_item.Key.Substring(prefix.Length), _item.Value);
                    }
                }
                if (tmp.Count > 0)
                {
                    result_extendConfigs.Add(tmp);
                }
            }
            result.ExtendConfigs = result_extendConfigs;

            DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_NodeSpec nodeSpec = new DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_NodeSpec();
            nodeSpec.Spec           = _ctx.StringValue("DescribeInstance.Result.NodeSpec.spec");
            nodeSpec.Disk           = _ctx.IntegerValue("DescribeInstance.Result.NodeSpec.disk");
            nodeSpec.DiskType       = _ctx.StringValue("DescribeInstance.Result.NodeSpec.diskType");
            nodeSpec.DiskEncryption = _ctx.BooleanValue("DescribeInstance.Result.NodeSpec.diskEncryption");
            result.NodeSpec         = nodeSpec;

            DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_NetworkConfig networkConfig = new DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_NetworkConfig();
            networkConfig.Type      = _ctx.StringValue("DescribeInstance.Result.NetworkConfig.type");
            networkConfig.VpcId     = _ctx.StringValue("DescribeInstance.Result.NetworkConfig.vpcId");
            networkConfig.VswitchId = _ctx.StringValue("DescribeInstance.Result.NetworkConfig.vswitchId");
            networkConfig.VsArea    = _ctx.StringValue("DescribeInstance.Result.NetworkConfig.vsArea");
            result.NetworkConfig    = networkConfig;

            DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_KibanaConfiguration kibanaConfiguration = new DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_KibanaConfiguration();
            kibanaConfiguration.Spec   = _ctx.StringValue("DescribeInstance.Result.KibanaConfiguration.spec");
            kibanaConfiguration.Amount = _ctx.IntegerValue("DescribeInstance.Result.KibanaConfiguration.amount");
            result.KibanaConfiguration = kibanaConfiguration;

            DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_MasterConfiguration masterConfiguration = new DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_MasterConfiguration();
            masterConfiguration.Spec     = _ctx.StringValue("DescribeInstance.Result.MasterConfiguration.spec");
            masterConfiguration.Amount   = _ctx.IntegerValue("DescribeInstance.Result.MasterConfiguration.amount");
            masterConfiguration.DiskType = _ctx.StringValue("DescribeInstance.Result.MasterConfiguration.diskType");
            masterConfiguration.Disk     = _ctx.IntegerValue("DescribeInstance.Result.MasterConfiguration.disk");
            result.MasterConfiguration   = masterConfiguration;

            DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_ClientNodeConfiguration clientNodeConfiguration = new DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_ClientNodeConfiguration();
            clientNodeConfiguration.Spec     = _ctx.StringValue("DescribeInstance.Result.ClientNodeConfiguration.spec");
            clientNodeConfiguration.Amount   = _ctx.IntegerValue("DescribeInstance.Result.ClientNodeConfiguration.amount");
            clientNodeConfiguration.DiskType = _ctx.StringValue("DescribeInstance.Result.ClientNodeConfiguration.diskType");
            clientNodeConfiguration.Disk     = _ctx.IntegerValue("DescribeInstance.Result.ClientNodeConfiguration.disk");
            result.ClientNodeConfiguration   = clientNodeConfiguration;

            DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_WarmNodeConfiguration warmNodeConfiguration = new DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_WarmNodeConfiguration();
            warmNodeConfiguration.Spec           = _ctx.StringValue("DescribeInstance.Result.WarmNodeConfiguration.spec");
            warmNodeConfiguration.Amount         = _ctx.IntegerValue("DescribeInstance.Result.WarmNodeConfiguration.amount");
            warmNodeConfiguration.DiskType       = _ctx.StringValue("DescribeInstance.Result.WarmNodeConfiguration.diskType");
            warmNodeConfiguration.Disk           = _ctx.IntegerValue("DescribeInstance.Result.WarmNodeConfiguration.disk");
            warmNodeConfiguration.DiskEncryption = _ctx.BooleanValue("DescribeInstance.Result.WarmNodeConfiguration.diskEncryption");
            result.WarmNodeConfiguration         = warmNodeConfiguration;

            DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_AdvancedSetting advancedSetting = new DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_AdvancedSetting();
            advancedSetting.GcName = _ctx.StringValue("DescribeInstance.Result.AdvancedSetting.gcName");
            result.AdvancedSetting = advancedSetting;

            DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_ElasticDataNodeConfiguration elasticDataNodeConfiguration = new DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_ElasticDataNodeConfiguration();
            elasticDataNodeConfiguration.Spec           = _ctx.StringValue("DescribeInstance.Result.ElasticDataNodeConfiguration.spec");
            elasticDataNodeConfiguration.Amount         = _ctx.IntegerValue("DescribeInstance.Result.ElasticDataNodeConfiguration.amount");
            elasticDataNodeConfiguration.DiskType       = _ctx.StringValue("DescribeInstance.Result.ElasticDataNodeConfiguration.diskType");
            elasticDataNodeConfiguration.Disk           = _ctx.IntegerValue("DescribeInstance.Result.ElasticDataNodeConfiguration.disk");
            elasticDataNodeConfiguration.DiskEncryption = _ctx.BooleanValue("DescribeInstance.Result.ElasticDataNodeConfiguration.diskEncryption");
            result.ElasticDataNodeConfiguration         = elasticDataNodeConfiguration;

            List <DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_DictListItem> result_dictList = new List <DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_DictListItem>();

            for (int i = 0; i < _ctx.Length("DescribeInstance.Result.DictList.Length"); i++)
            {
                DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_DictListItem dictListItem = new DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_DictListItem();
                dictListItem.Name       = _ctx.StringValue("DescribeInstance.Result.DictList[" + i + "].name");
                dictListItem.FileSize   = _ctx.LongValue("DescribeInstance.Result.DictList[" + i + "].fileSize");
                dictListItem.Type       = _ctx.StringValue("DescribeInstance.Result.DictList[" + i + "].type");
                dictListItem.SourceType = _ctx.StringValue("DescribeInstance.Result.DictList[" + i + "].sourceType");

                result_dictList.Add(dictListItem);
            }
            result.DictList = result_dictList;

            List <DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_SynonymsDictsItem> result_synonymsDicts = new List <DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_SynonymsDictsItem>();

            for (int i = 0; i < _ctx.Length("DescribeInstance.Result.SynonymsDicts.Length"); i++)
            {
                DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_SynonymsDictsItem synonymsDictsItem = new DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_SynonymsDictsItem();
                synonymsDictsItem.Name       = _ctx.StringValue("DescribeInstance.Result.SynonymsDicts[" + i + "].name");
                synonymsDictsItem.FileSize   = _ctx.LongValue("DescribeInstance.Result.SynonymsDicts[" + i + "].fileSize");
                synonymsDictsItem.Type       = _ctx.StringValue("DescribeInstance.Result.SynonymsDicts[" + i + "].type");
                synonymsDictsItem.SourceType = _ctx.StringValue("DescribeInstance.Result.SynonymsDicts[" + i + "].sourceType");

                result_synonymsDicts.Add(synonymsDictsItem);
            }
            result.SynonymsDicts = result_synonymsDicts;

            List <DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_ZoneInfo> result_zoneInfos = new List <DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_ZoneInfo>();

            for (int i = 0; i < _ctx.Length("DescribeInstance.Result.ZoneInfos.Length"); i++)
            {
                DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_ZoneInfo zoneInfo = new DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_ZoneInfo();
                zoneInfo.ZoneId = _ctx.StringValue("DescribeInstance.Result.ZoneInfos[" + i + "].zoneId");
                zoneInfo.Status = _ctx.StringValue("DescribeInstance.Result.ZoneInfos[" + i + "].status");

                result_zoneInfos.Add(zoneInfo);
            }
            result.ZoneInfos = result_zoneInfos;

            List <DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_Dict> result_aliwsDicts = new List <DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_Dict>();

            for (int i = 0; i < _ctx.Length("DescribeInstance.Result.AliwsDicts.Length"); i++)
            {
                DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_Dict dict = new DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_Dict();
                dict.Name       = _ctx.StringValue("DescribeInstance.Result.AliwsDicts[" + i + "].name");
                dict.FileSize   = _ctx.LongValue("DescribeInstance.Result.AliwsDicts[" + i + "].fileSize");
                dict.Type       = _ctx.StringValue("DescribeInstance.Result.AliwsDicts[" + i + "].type");
                dict.SourceType = _ctx.StringValue("DescribeInstance.Result.AliwsDicts[" + i + "].sourceType");

                result_aliwsDicts.Add(dict);
            }
            result.AliwsDicts = result_aliwsDicts;

            List <DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_Tag> result_tags = new List <DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_Tag>();

            for (int i = 0; i < _ctx.Length("DescribeInstance.Result.Tags.Length"); i++)
            {
                DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_Tag tag = new DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_Tag();
                tag.TagKey   = _ctx.StringValue("DescribeInstance.Result.Tags[" + i + "].tagKey");
                tag.TagValue = _ctx.StringValue("DescribeInstance.Result.Tags[" + i + "].tagValue");

                result_tags.Add(tag);
            }
            result.Tags = result_tags;
            describeInstanceResponse.Result = result;

            return(describeInstanceResponse);
        }
Example #32
0
        public static ListJobGroupsWithScenarioResponse Unmarshall(UnmarshallerContext context)
        {
            ListJobGroupsWithScenarioResponse listJobGroupsWithScenarioResponse = new ListJobGroupsWithScenarioResponse();

            listJobGroupsWithScenarioResponse.HttpResponse   = context.HttpResponse;
            listJobGroupsWithScenarioResponse.RequestId      = context.StringValue("ListJobGroupsWithScenario.RequestId");
            listJobGroupsWithScenarioResponse.Success        = context.BooleanValue("ListJobGroupsWithScenario.Success");
            listJobGroupsWithScenarioResponse.Code           = context.StringValue("ListJobGroupsWithScenario.Code");
            listJobGroupsWithScenarioResponse.Message        = context.StringValue("ListJobGroupsWithScenario.Message");
            listJobGroupsWithScenarioResponse.HttpStatusCode = context.IntegerValue("ListJobGroupsWithScenario.HttpStatusCode");

            ListJobGroupsWithScenarioResponse.ListJobGroupsWithScenario_JobGroups jobGroups = new ListJobGroupsWithScenarioResponse.ListJobGroupsWithScenario_JobGroups();
            jobGroups.TotalCount = context.IntegerValue("ListJobGroupsWithScenario.JobGroups.TotalCount");
            jobGroups.PageNumber = context.IntegerValue("ListJobGroupsWithScenario.JobGroups.PageNumber");
            jobGroups.PageSize   = context.IntegerValue("ListJobGroupsWithScenario.JobGroups.PageSize");

            List <ListJobGroupsWithScenarioResponse.ListJobGroupsWithScenario_JobGroups.ListJobGroupsWithScenario_JobGroup> jobGroups_list = new List <ListJobGroupsWithScenarioResponse.ListJobGroupsWithScenario_JobGroups.ListJobGroupsWithScenario_JobGroup>();

            for (int i = 0; i < context.Length("ListJobGroupsWithScenario.JobGroups.List.Length"); i++)
            {
                ListJobGroupsWithScenarioResponse.ListJobGroupsWithScenario_JobGroups.ListJobGroupsWithScenario_JobGroup jobGroup = new ListJobGroupsWithScenarioResponse.ListJobGroupsWithScenario_JobGroups.ListJobGroupsWithScenario_JobGroup();
                jobGroup.JobGroupId          = context.StringValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].JobGroupId");
                jobGroup.JobGroupName        = context.StringValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].JobGroupName");
                jobGroup.ScenarioName        = context.StringValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].ScenarioName");
                jobGroup.JobGroupDescription = context.StringValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].JobGroupDescription");
                jobGroup.ScenarioId          = context.StringValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].ScenarioId");
                jobGroup.JobFilePath         = context.StringValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].JobFilePath");
                jobGroup.CreationTime        = context.LongValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].CreationTime");

                List <string> jobGroup_callingNumbers = new List <string>();
                for (int j = 0; j < context.Length("ListJobGroupsWithScenario.JobGroups.List[" + i + "].CallingNumbers.Length"); j++)
                {
                    jobGroup_callingNumbers.Add(context.StringValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].CallingNumbers[" + j + "]"));
                }
                jobGroup.CallingNumbers = jobGroup_callingNumbers;

                ListJobGroupsWithScenarioResponse.ListJobGroupsWithScenario_JobGroups.ListJobGroupsWithScenario_JobGroup.ListJobGroupsWithScenario_Strategy strategy = new ListJobGroupsWithScenarioResponse.ListJobGroupsWithScenario_JobGroups.ListJobGroupsWithScenario_JobGroup.ListJobGroupsWithScenario_Strategy();
                strategy.StrategyId         = context.StringValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Strategy.StrategyId");
                strategy.StrategyName       = context.StringValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Strategy.StrategyName");
                strategy.Description        = context.StringValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Strategy.Description");
                strategy.Type               = context.StringValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Strategy.Type");
                strategy.StartTime          = context.LongValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Strategy.StartTime");
                strategy.EndTime            = context.LongValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Strategy.EndTime");
                strategy.RepeatBy           = context.StringValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Strategy.RepeatBy");
                strategy.MaxAttemptsPerDay  = context.IntegerValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Strategy.MaxAttemptsPerDay");
                strategy.MinAttemptInterval = context.IntegerValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Strategy.MinAttemptInterval");
                strategy.Customized         = context.StringValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Strategy.Customized");
                strategy.RoutingStrategy    = context.StringValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Strategy.RoutingStrategy");
                strategy.FollowUpStrategy   = context.StringValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Strategy.FollowUpStrategy");
                strategy.IsTemplate         = context.BooleanValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Strategy.IsTemplate");

                List <string> strategy_repeatDays = new List <string>();
                for (int j = 0; j < context.Length("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Strategy.RepeatDays.Length"); j++)
                {
                    strategy_repeatDays.Add(context.StringValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Strategy.RepeatDays[" + j + "]"));
                }
                strategy.RepeatDays = strategy_repeatDays;

                List <ListJobGroupsWithScenarioResponse.ListJobGroupsWithScenario_JobGroups.ListJobGroupsWithScenario_JobGroup.ListJobGroupsWithScenario_Strategy.ListJobGroupsWithScenario_TimeFrame> strategy_workingTime = new List <ListJobGroupsWithScenarioResponse.ListJobGroupsWithScenario_JobGroups.ListJobGroupsWithScenario_JobGroup.ListJobGroupsWithScenario_Strategy.ListJobGroupsWithScenario_TimeFrame>();
                for (int j = 0; j < context.Length("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Strategy.WorkingTime.Length"); j++)
                {
                    ListJobGroupsWithScenarioResponse.ListJobGroupsWithScenario_JobGroups.ListJobGroupsWithScenario_JobGroup.ListJobGroupsWithScenario_Strategy.ListJobGroupsWithScenario_TimeFrame timeFrame = new ListJobGroupsWithScenarioResponse.ListJobGroupsWithScenario_JobGroups.ListJobGroupsWithScenario_JobGroup.ListJobGroupsWithScenario_Strategy.ListJobGroupsWithScenario_TimeFrame();
                    timeFrame.BeginTime = context.StringValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Strategy.WorkingTime[" + j + "].BeginTime");
                    timeFrame.EndTime   = context.StringValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Strategy.WorkingTime[" + j + "].EndTime");

                    strategy_workingTime.Add(timeFrame);
                }
                strategy.WorkingTime = strategy_workingTime;
                jobGroup.Strategy    = strategy;

                ListJobGroupsWithScenarioResponse.ListJobGroupsWithScenario_JobGroups.ListJobGroupsWithScenario_JobGroup.ListJobGroupsWithScenario_Progress progress = new ListJobGroupsWithScenarioResponse.ListJobGroupsWithScenario_JobGroups.ListJobGroupsWithScenario_JobGroup.ListJobGroupsWithScenario_Progress();
                progress.TotalJobs        = context.IntegerValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Progress.TotalJobs");
                progress.Status           = context.StringValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Progress.Status");
                progress.TotalNotAnswered = context.IntegerValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Progress.TotalNotAnswered");
                progress.TotalCompleted   = context.IntegerValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Progress.TotalCompleted");
                progress.StartTime        = context.LongValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Progress.StartTime");
                progress.Duration         = context.IntegerValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Progress.Duration");

                List <ListJobGroupsWithScenarioResponse.ListJobGroupsWithScenario_JobGroups.ListJobGroupsWithScenario_JobGroup.ListJobGroupsWithScenario_Progress.ListJobGroupsWithScenario_KeyValuePair> progress_categories = new List <ListJobGroupsWithScenarioResponse.ListJobGroupsWithScenario_JobGroups.ListJobGroupsWithScenario_JobGroup.ListJobGroupsWithScenario_Progress.ListJobGroupsWithScenario_KeyValuePair>();
                for (int j = 0; j < context.Length("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Progress.Categories.Length"); j++)
                {
                    ListJobGroupsWithScenarioResponse.ListJobGroupsWithScenario_JobGroups.ListJobGroupsWithScenario_JobGroup.ListJobGroupsWithScenario_Progress.ListJobGroupsWithScenario_KeyValuePair keyValuePair = new ListJobGroupsWithScenarioResponse.ListJobGroupsWithScenario_JobGroups.ListJobGroupsWithScenario_JobGroup.ListJobGroupsWithScenario_Progress.ListJobGroupsWithScenario_KeyValuePair();
                    keyValuePair.Key    = context.StringValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Progress.Categories[" + j + "].Key");
                    keyValuePair._Value = context.StringValue("ListJobGroupsWithScenario.JobGroups.List[" + i + "].Progress.Categories[" + j + "].Value");

                    progress_categories.Add(keyValuePair);
                }
                progress.Categories = progress_categories;
                jobGroup.Progress   = progress;

                jobGroups_list.Add(jobGroup);
            }
            jobGroups.List = jobGroups_list;
            listJobGroupsWithScenarioResponse.JobGroups = jobGroups;

            return(listJobGroupsWithScenarioResponse);
        }
        public static QueryInstanceBillResponse Unmarshall(UnmarshallerContext context)
        {
            QueryInstanceBillResponse queryInstanceBillResponse = new QueryInstanceBillResponse();

            queryInstanceBillResponse.HttpResponse = context.HttpResponse;
            queryInstanceBillResponse.RequestId    = context.StringValue("QueryInstanceBill.RequestId");
            queryInstanceBillResponse.Success      = context.BooleanValue("QueryInstanceBill.Success");
            queryInstanceBillResponse.Code         = context.StringValue("QueryInstanceBill.Code");
            queryInstanceBillResponse.Message      = context.StringValue("QueryInstanceBill.Message");

            QueryInstanceBillResponse.QueryInstanceBill_Data data = new QueryInstanceBillResponse.QueryInstanceBill_Data();
            data.BillingCycle = context.StringValue("QueryInstanceBill.Data.BillingCycle");
            data.AccountID    = context.StringValue("QueryInstanceBill.Data.AccountID");
            data.AccountName  = context.StringValue("QueryInstanceBill.Data.AccountName");
            data.TotalCount   = context.IntegerValue("QueryInstanceBill.Data.TotalCount");
            data.PageNum      = context.IntegerValue("QueryInstanceBill.Data.PageNum");
            data.PageSize     = context.IntegerValue("QueryInstanceBill.Data.PageSize");

            List <QueryInstanceBillResponse.QueryInstanceBill_Data.QueryInstanceBill_Item> data_items = new List <QueryInstanceBillResponse.QueryInstanceBill_Data.QueryInstanceBill_Item>();

            for (int i = 0; i < context.Length("QueryInstanceBill.Data.Items.Length"); i++)
            {
                QueryInstanceBillResponse.QueryInstanceBill_Data.QueryInstanceBill_Item item = new QueryInstanceBillResponse.QueryInstanceBill_Data.QueryInstanceBill_Item();
                item.InstanceID                = context.StringValue("QueryInstanceBill.Data.Items[" + i + "].InstanceID");
                item.BillingType               = context.StringValue("QueryInstanceBill.Data.Items[" + i + "].BillingType");
                item.CostUnit                  = context.StringValue("QueryInstanceBill.Data.Items[" + i + "].CostUnit");
                item.ProductCode               = context.StringValue("QueryInstanceBill.Data.Items[" + i + "].ProductCode");
                item.ProductType               = context.StringValue("QueryInstanceBill.Data.Items[" + i + "].ProductType");
                item.SubscriptionType          = context.StringValue("QueryInstanceBill.Data.Items[" + i + "].SubscriptionType");
                item.ProductName               = context.StringValue("QueryInstanceBill.Data.Items[" + i + "].ProductName");
                item.ProductDetail             = context.StringValue("QueryInstanceBill.Data.Items[" + i + "].ProductDetail");
                item.OwnerID                   = context.LongValue("QueryInstanceBill.Data.Items[" + i + "].OwnerID");
                item.BillingItem               = context.StringValue("QueryInstanceBill.Data.Items[" + i + "].BillingItem");
                item.ListPrice                 = context.FloatValue("QueryInstanceBill.Data.Items[" + i + "].ListPrice");
                item.ListPriceUnit             = context.StringValue("QueryInstanceBill.Data.Items[" + i + "].ListPriceUnit");
                item.Usage                     = context.FloatValue("QueryInstanceBill.Data.Items[" + i + "].Usage");
                item.UsageUnit                 = context.StringValue("QueryInstanceBill.Data.Items[" + i + "].UsageUnit");
                item.DeductedByResourcePackage = context.FloatValue("QueryInstanceBill.Data.Items[" + i + "].DeductedByResourcePackage");
                item.PretaxGrossAmount         = context.FloatValue("QueryInstanceBill.Data.Items[" + i + "].PretaxGrossAmount");
                item.InvoiceDiscount           = context.FloatValue("QueryInstanceBill.Data.Items[" + i + "].InvoiceDiscount");
                item.DeductedByCoupons         = context.FloatValue("QueryInstanceBill.Data.Items[" + i + "].DeductedByCoupons");
                item.PretaxAmount              = context.FloatValue("QueryInstanceBill.Data.Items[" + i + "].PretaxAmount");
                item.DeductedByCashCoupons     = context.FloatValue("QueryInstanceBill.Data.Items[" + i + "].DeductedByCashCoupons");
                item.DeductedByPrepaidCard     = context.FloatValue("QueryInstanceBill.Data.Items[" + i + "].DeductedByPrepaidCard");
                item.PaymentAmount             = context.FloatValue("QueryInstanceBill.Data.Items[" + i + "].PaymentAmount");
                item.OutstandingAmount         = context.FloatValue("QueryInstanceBill.Data.Items[" + i + "].OutstandingAmount");
                item.Currency                  = context.StringValue("QueryInstanceBill.Data.Items[" + i + "].Currency");
                item.NickName                  = context.StringValue("QueryInstanceBill.Data.Items[" + i + "].NickName");
                item.ResourceGroup             = context.StringValue("QueryInstanceBill.Data.Items[" + i + "].ResourceGroup");
                item.Tag            = context.StringValue("QueryInstanceBill.Data.Items[" + i + "].Tag");
                item.InstanceConfig = context.StringValue("QueryInstanceBill.Data.Items[" + i + "].InstanceConfig");
                item.InstanceSpec   = context.StringValue("QueryInstanceBill.Data.Items[" + i + "].InstanceSpec");
                item.InternetIP     = context.StringValue("QueryInstanceBill.Data.Items[" + i + "].InternetIP");
                item.IntranetIP     = context.StringValue("QueryInstanceBill.Data.Items[" + i + "].IntranetIP");
                item.Region         = context.StringValue("QueryInstanceBill.Data.Items[" + i + "].Region");
                item.Zone           = context.StringValue("QueryInstanceBill.Data.Items[" + i + "].Zone");

                data_items.Add(item);
            }
            data.Items = data_items;
            queryInstanceBillResponse.Data = data;

            return(queryInstanceBillResponse);
        }
Example #34
0
        public static GetApprovalDetailResponse Unmarshall(UnmarshallerContext context)
        {
            GetApprovalDetailResponse getApprovalDetailResponse = new GetApprovalDetailResponse();

            getApprovalDetailResponse.HttpResponse = context.HttpResponse;
            getApprovalDetailResponse.RequestId    = context.StringValue("GetApprovalDetail.RequestId");
            getApprovalDetailResponse.Success      = context.BooleanValue("GetApprovalDetail.Success");
            getApprovalDetailResponse.ErrorMessage = context.StringValue("GetApprovalDetail.ErrorMessage");
            getApprovalDetailResponse.ErrorCode    = context.StringValue("GetApprovalDetail.ErrorCode");

            GetApprovalDetailResponse.GetApprovalDetail_ApprovalDetail approvalDetail = new GetApprovalDetailResponse.GetApprovalDetail_ApprovalDetail();
            approvalDetail.AuditId         = context.LongValue("GetApprovalDetail.ApprovalDetail.AuditId");
            approvalDetail.OrderId         = context.LongValue("GetApprovalDetail.ApprovalDetail.OrderId");
            approvalDetail.OrderType       = context.StringValue("GetApprovalDetail.ApprovalDetail.OrderType");
            approvalDetail.Title           = context.StringValue("GetApprovalDetail.ApprovalDetail.Title");
            approvalDetail.WorkflowInsCode = context.StringValue("GetApprovalDetail.ApprovalDetail.WorkflowInsCode");
            approvalDetail.Description     = context.StringValue("GetApprovalDetail.ApprovalDetail.Description");

            List <string> approvalDetail_reasonList = new List <string>();

            for (int i = 0; i < context.Length("GetApprovalDetail.ApprovalDetail.ReasonList.Length"); i++)
            {
                approvalDetail_reasonList.Add(context.StringValue("GetApprovalDetail.ApprovalDetail.ReasonList[" + i + "]"));
            }
            approvalDetail.ReasonList = approvalDetail_reasonList;

            List <GetApprovalDetailResponse.GetApprovalDetail_ApprovalDetail.GetApprovalDetail_WorkflowNode> approvalDetail_workflowNodes = new List <GetApprovalDetailResponse.GetApprovalDetail_ApprovalDetail.GetApprovalDetail_WorkflowNode>();

            for (int i = 0; i < context.Length("GetApprovalDetail.ApprovalDetail.WorkflowNodes.Length"); i++)
            {
                GetApprovalDetailResponse.GetApprovalDetail_ApprovalDetail.GetApprovalDetail_WorkflowNode workflowNode = new GetApprovalDetailResponse.GetApprovalDetail_ApprovalDetail.GetApprovalDetail_WorkflowNode();
                workflowNode.NodeName        = context.StringValue("GetApprovalDetail.ApprovalDetail.WorkflowNodes[" + i + "].NodeName");
                workflowNode.OperateComment  = context.StringValue("GetApprovalDetail.ApprovalDetail.WorkflowNodes[" + i + "].OperateComment");
                workflowNode.OperateTime     = context.StringValue("GetApprovalDetail.ApprovalDetail.WorkflowNodes[" + i + "].OperateTime");
                workflowNode.OperatorId      = context.LongValue("GetApprovalDetail.ApprovalDetail.WorkflowNodes[" + i + "].OperatorId");
                workflowNode.WorkflowInsCode = context.StringValue("GetApprovalDetail.ApprovalDetail.WorkflowNodes[" + i + "].WorkflowInsCode");

                List <string> workflowNode_auditUserIdList = new List <string>();
                for (int j = 0; j < context.Length("GetApprovalDetail.ApprovalDetail.WorkflowNodes[" + i + "].AuditUserIdList.Length"); j++)
                {
                    workflowNode_auditUserIdList.Add(context.StringValue("GetApprovalDetail.ApprovalDetail.WorkflowNodes[" + i + "].AuditUserIdList[" + j + "]"));
                }
                workflowNode.AuditUserIdList = workflowNode_auditUserIdList;

                approvalDetail_workflowNodes.Add(workflowNode);
            }
            approvalDetail.WorkflowNodes = approvalDetail_workflowNodes;

            List <GetApprovalDetailResponse.GetApprovalDetail_ApprovalDetail.GetApprovalDetail_CurrentHandler> approvalDetail_currentHandlers = new List <GetApprovalDetailResponse.GetApprovalDetail_ApprovalDetail.GetApprovalDetail_CurrentHandler>();

            for (int i = 0; i < context.Length("GetApprovalDetail.ApprovalDetail.CurrentHandlers.Length"); i++)
            {
                GetApprovalDetailResponse.GetApprovalDetail_ApprovalDetail.GetApprovalDetail_CurrentHandler currentHandler = new GetApprovalDetailResponse.GetApprovalDetail_ApprovalDetail.GetApprovalDetail_CurrentHandler();
                currentHandler.Id       = context.LongValue("GetApprovalDetail.ApprovalDetail.CurrentHandlers[" + i + "].Id");
                currentHandler.NickName = context.StringValue("GetApprovalDetail.ApprovalDetail.CurrentHandlers[" + i + "].NickName");

                approvalDetail_currentHandlers.Add(currentHandler);
            }
            approvalDetail.CurrentHandlers           = approvalDetail_currentHandlers;
            getApprovalDetailResponse.ApprovalDetail = approvalDetail;

            return(getApprovalDetailResponse);
        }
        public static DescribeNetworkInterfacesResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeNetworkInterfacesResponse describeNetworkInterfacesResponse = new DescribeNetworkInterfacesResponse();

            describeNetworkInterfacesResponse.HttpResponse = context.HttpResponse;
            describeNetworkInterfacesResponse.RequestId    = context.StringValue("DescribeNetworkInterfaces.RequestId");
            describeNetworkInterfacesResponse.TotalCount   = context.IntegerValue("DescribeNetworkInterfaces.TotalCount");
            describeNetworkInterfacesResponse.PageNumber   = context.IntegerValue("DescribeNetworkInterfaces.PageNumber");
            describeNetworkInterfacesResponse.PageSize     = context.IntegerValue("DescribeNetworkInterfaces.PageSize");
            describeNetworkInterfacesResponse.NextToken    = context.StringValue("DescribeNetworkInterfaces.NextToken");

            List <DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet> describeNetworkInterfacesResponse_networkInterfaceSets = new List <DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet>();

            for (int i = 0; i < context.Length("DescribeNetworkInterfaces.NetworkInterfaceSets.Length"); i++)
            {
                DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet networkInterfaceSet = new DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet();
                networkInterfaceSet.NetworkInterfaceId = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].NetworkInterfaceId");
                networkInterfaceSet.Status             = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].Status");
                networkInterfaceSet.Type                 = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].Type");
                networkInterfaceSet.VpcId                = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].VpcId");
                networkInterfaceSet.VSwitchId            = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].VSwitchId");
                networkInterfaceSet.ZoneId               = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].ZoneId");
                networkInterfaceSet.PrivateIpAddress     = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].PrivateIpAddress");
                networkInterfaceSet.MacAddress           = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].MacAddress");
                networkInterfaceSet.NetworkInterfaceName = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].NetworkInterfaceName");
                networkInterfaceSet.Description          = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].Description");
                networkInterfaceSet.InstanceId           = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].InstanceId");
                networkInterfaceSet.CreationTime         = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].CreationTime");
                networkInterfaceSet.ResourceGroupId      = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].ResourceGroupId");
                networkInterfaceSet.ServiceID            = context.LongValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].ServiceID");
                networkInterfaceSet.ServiceManaged       = context.BooleanValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].ServiceManaged");
                networkInterfaceSet.QueueNumber          = context.IntegerValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].QueueNumber");

                List <string> networkInterfaceSet_securityGroupIds = new List <string>();
                for (int j = 0; j < context.Length("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].SecurityGroupIds.Length"); j++)
                {
                    networkInterfaceSet_securityGroupIds.Add(context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].SecurityGroupIds[" + j + "]"));
                }
                networkInterfaceSet.SecurityGroupIds = networkInterfaceSet_securityGroupIds;

                DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_AssociatedPublicIp associatedPublicIp = new DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_AssociatedPublicIp();
                associatedPublicIp.PublicIpAddress     = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].AssociatedPublicIp.PublicIpAddress");
                associatedPublicIp.AllocationId        = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].AssociatedPublicIp.AllocationId");
                networkInterfaceSet.AssociatedPublicIp = associatedPublicIp;

                List <DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_PrivateIpSet> networkInterfaceSet_privateIpSets = new List <DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_PrivateIpSet>();
                for (int j = 0; j < context.Length("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].PrivateIpSets.Length"); j++)
                {
                    DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_PrivateIpSet privateIpSet = new DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_PrivateIpSet();
                    privateIpSet.PrivateIpAddress = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].PrivateIpSets[" + j + "].PrivateIpAddress");
                    privateIpSet.Primary          = context.BooleanValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].PrivateIpSets[" + j + "].Primary");

                    DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_PrivateIpSet.DescribeNetworkInterfaces_AssociatedPublicIp1 associatedPublicIp1 = new DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_PrivateIpSet.DescribeNetworkInterfaces_AssociatedPublicIp1();
                    associatedPublicIp1.PublicIpAddress = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].PrivateIpSets[" + j + "].AssociatedPublicIp.PublicIpAddress");
                    associatedPublicIp1.AllocationId    = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].PrivateIpSets[" + j + "].AssociatedPublicIp.AllocationId");
                    privateIpSet.AssociatedPublicIp1    = associatedPublicIp1;

                    networkInterfaceSet_privateIpSets.Add(privateIpSet);
                }
                networkInterfaceSet.PrivateIpSets = networkInterfaceSet_privateIpSets;

                List <DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_Ipv6Set> networkInterfaceSet_ipv6Sets = new List <DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_Ipv6Set>();
                for (int j = 0; j < context.Length("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].Ipv6Sets.Length"); j++)
                {
                    DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_Ipv6Set ipv6Set = new DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_Ipv6Set();
                    ipv6Set.Ipv6Address = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].Ipv6Sets[" + j + "].Ipv6Address");

                    networkInterfaceSet_ipv6Sets.Add(ipv6Set);
                }
                networkInterfaceSet.Ipv6Sets = networkInterfaceSet_ipv6Sets;

                List <DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_Tag> networkInterfaceSet_tags = new List <DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_Tag>();
                for (int j = 0; j < context.Length("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].Tags.Length"); j++)
                {
                    DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_Tag tag = new DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_Tag();
                    tag.TagKey   = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].Tags[" + j + "].TagKey");
                    tag.TagValue = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].Tags[" + j + "].TagValue");

                    networkInterfaceSet_tags.Add(tag);
                }
                networkInterfaceSet.Tags = networkInterfaceSet_tags;

                describeNetworkInterfacesResponse_networkInterfaceSets.Add(networkInterfaceSet);
            }
            describeNetworkInterfacesResponse.NetworkInterfaceSets = describeNetworkInterfacesResponse_networkInterfaceSets;

            return(describeNetworkInterfacesResponse);
        }
        public static CreateBatchJobsResponse Unmarshall(UnmarshallerContext context)
        {
            CreateBatchJobsResponse createBatchJobsResponse = new CreateBatchJobsResponse();

            createBatchJobsResponse.HttpResponse   = context.HttpResponse;
            createBatchJobsResponse.RequestId      = context.StringValue("CreateBatchJobs.RequestId");
            createBatchJobsResponse.Success        = context.BooleanValue("CreateBatchJobs.Success");
            createBatchJobsResponse.Code           = context.StringValue("CreateBatchJobs.Code");
            createBatchJobsResponse.Message        = context.StringValue("CreateBatchJobs.Message");
            createBatchJobsResponse.HttpStatusCode = context.IntegerValue("CreateBatchJobs.HttpStatusCode");

            CreateBatchJobsResponse.CreateBatchJobs_JobGroup jobGroup = new CreateBatchJobsResponse.CreateBatchJobs_JobGroup();
            jobGroup.JobGroupId          = context.StringValue("CreateBatchJobs.JobGroup.JobGroupId");
            jobGroup.JobGroupName        = context.StringValue("CreateBatchJobs.JobGroup.JobGroupName");
            jobGroup.JobGroupDescription = context.StringValue("CreateBatchJobs.JobGroup.JobGroupDescription");
            jobGroup.ScenarioId          = context.StringValue("CreateBatchJobs.JobGroup.ScenarioId");
            jobGroup.JobFilePath         = context.StringValue("CreateBatchJobs.JobGroup.JobFilePath");
            jobGroup.CreationTime        = context.LongValue("CreateBatchJobs.JobGroup.CreationTime");

            List <string> jobGroup_callingNumbers = new List <string>();

            for (int i = 0; i < context.Length("CreateBatchJobs.JobGroup.CallingNumbers.Length"); i++)
            {
                jobGroup_callingNumbers.Add(context.StringValue("CreateBatchJobs.JobGroup.CallingNumbers[" + i + "]"));
            }
            jobGroup.CallingNumbers = jobGroup_callingNumbers;

            CreateBatchJobsResponse.CreateBatchJobs_JobGroup.CreateBatchJobs_Strategy strategy = new CreateBatchJobsResponse.CreateBatchJobs_JobGroup.CreateBatchJobs_Strategy();
            strategy.StrategyId          = context.StringValue("CreateBatchJobs.JobGroup.Strategy.StrategyId");
            strategy.StrategyName        = context.StringValue("CreateBatchJobs.JobGroup.Strategy.StrategyName");
            strategy.StrategyDescription = context.StringValue("CreateBatchJobs.JobGroup.Strategy.StrategyDescription");
            strategy.Type               = context.StringValue("CreateBatchJobs.JobGroup.Strategy.Type");
            strategy.StartTime          = context.LongValue("CreateBatchJobs.JobGroup.Strategy.StartTime");
            strategy.EndTime            = context.LongValue("CreateBatchJobs.JobGroup.Strategy.EndTime");
            strategy.RepeatBy           = context.StringValue("CreateBatchJobs.JobGroup.Strategy.RepeatBy");
            strategy.MaxAttemptsPerDay  = context.IntegerValue("CreateBatchJobs.JobGroup.Strategy.MaxAttemptsPerDay");
            strategy.MinAttemptInterval = context.IntegerValue("CreateBatchJobs.JobGroup.Strategy.MinAttemptInterval");
            strategy.Customized         = context.StringValue("CreateBatchJobs.JobGroup.Strategy.Customized");
            strategy.RoutingStrategy    = context.StringValue("CreateBatchJobs.JobGroup.Strategy.RoutingStrategy");
            strategy.FollowUpStrategy   = context.StringValue("CreateBatchJobs.JobGroup.Strategy.FollowUpStrategy");
            strategy.IsTemplate         = context.BooleanValue("CreateBatchJobs.JobGroup.Strategy.IsTemplate");

            List <string> strategy_repeatDays = new List <string>();

            for (int i = 0; i < context.Length("CreateBatchJobs.JobGroup.Strategy.RepeatDays.Length"); i++)
            {
                strategy_repeatDays.Add(context.StringValue("CreateBatchJobs.JobGroup.Strategy.RepeatDays[" + i + "]"));
            }
            strategy.RepeatDays = strategy_repeatDays;

            List <CreateBatchJobsResponse.CreateBatchJobs_JobGroup.CreateBatchJobs_Strategy.CreateBatchJobs_TimeFrame> strategy_workingTime = new List <CreateBatchJobsResponse.CreateBatchJobs_JobGroup.CreateBatchJobs_Strategy.CreateBatchJobs_TimeFrame>();

            for (int i = 0; i < context.Length("CreateBatchJobs.JobGroup.Strategy.WorkingTime.Length"); i++)
            {
                CreateBatchJobsResponse.CreateBatchJobs_JobGroup.CreateBatchJobs_Strategy.CreateBatchJobs_TimeFrame timeFrame = new CreateBatchJobsResponse.CreateBatchJobs_JobGroup.CreateBatchJobs_Strategy.CreateBatchJobs_TimeFrame();
                timeFrame.BeginTime = context.StringValue("CreateBatchJobs.JobGroup.Strategy.WorkingTime[" + i + "].BeginTime");
                timeFrame.EndTime   = context.StringValue("CreateBatchJobs.JobGroup.Strategy.WorkingTime[" + i + "].EndTime");

                strategy_workingTime.Add(timeFrame);
            }
            strategy.WorkingTime             = strategy_workingTime;
            jobGroup.Strategy                = strategy;
            createBatchJobsResponse.JobGroup = jobGroup;

            return(createBatchJobsResponse);
        }
Example #37
0
        public static QueryJobListResponse Unmarshall(UnmarshallerContext context)
        {
            QueryJobListResponse queryJobListResponse = new QueryJobListResponse()
            {
                HttpResponse = context.HttpResponse,
                RequestId    = context.StringValue("QueryJobList.RequestId")
            };
            List <string> nonExistJobIds = new List <string>();

            for (int i = 0; i < context.Length("QueryJobList.NonExistJobIds.Length"); i++)
            {
                nonExistJobIds.Add(context.StringValue($"QueryJobList.NonExistJobIds[{i}]"));
            }
            queryJobListResponse.NonExistJobIds = nonExistJobIds;

            List <QueryJobListResponse.Job> jobList = new List <QueryJobListResponse.Job>();

            for (int i = 0; i < context.Length("QueryJobList.JobList.Length"); i++)
            {
                QueryJobListResponse.Job job = new QueryJobListResponse.Job()
                {
                    JobId        = context.StringValue($"QueryJobList.JobList[{i}].JobId"),
                    State        = context.StringValue($"QueryJobList.JobList[{i}].State"),
                    Code         = context.StringValue($"QueryJobList.JobList[{i}].Code"),
                    Message      = context.StringValue($"QueryJobList.JobList[{i}].Message"),
                    Percent      = context.LongValue($"QueryJobList.JobList[{i}].Percent"),
                    PipelineId   = context.StringValue($"QueryJobList.JobList[{i}].PipelineId"),
                    CreationTime = context.StringValue($"QueryJobList.JobList[{i}].CreationTime")
                };
                QueryJobListResponse.Job.Input_ input = new QueryJobListResponse.Job.Input_()
                {
                    Bucket   = context.StringValue($"QueryJobList.JobList[{i}].Input.Bucket"),
                    Location = context.StringValue($"QueryJobList.JobList[{i}].Input.Location"),
                    Object   = context.StringValue($"QueryJobList.JobList[{i}].Input.Object")
                };
                job.Input = input;

                QueryJobListResponse.Job.Output_ output = new QueryJobListResponse.Job.Output_()
                {
                    TemplateId     = context.StringValue($"QueryJobList.JobList[{i}].Output.TemplateId"),
                    UserData       = context.StringValue($"QueryJobList.JobList[{i}].Output.UserData"),
                    Rotate         = context.StringValue($"QueryJobList.JobList[{i}].Output.Rotate"),
                    VideoStreamMap = context.StringValue($"QueryJobList.JobList[{i}].Output.VideoStreamMap"),
                    AudioStreamMap = context.StringValue($"QueryJobList.JobList[{i}].Output.AudioStreamMap"),
                    DeWatermark    = context.StringValue($"QueryJobList.JobList[{i}].Output.DeWatermark"),
                    Priority       = context.StringValue($"QueryJobList.JobList[{i}].Output.Priority")
                };
                QueryJobListResponse.Job.Output_.OutputFile_ outputFile = new QueryJobListResponse.Job.Output_.OutputFile_()
                {
                    Bucket   = context.StringValue($"QueryJobList.JobList[{i}].Output.OutputFile.Bucket"),
                    Location = context.StringValue($"QueryJobList.JobList[{i}].Output.OutputFile.Location"),
                    Object   = context.StringValue($"QueryJobList.JobList[{i}].Output.OutputFile.Object")
                };
                output.OutputFile = outputFile;

                QueryJobListResponse.Job.Output_.Properties_ properties = new QueryJobListResponse.Job.Output_.Properties_()
                {
                    Width      = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Width"),
                    Height     = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Height"),
                    Bitrate    = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Bitrate"),
                    Duration   = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Duration"),
                    Fps        = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Fps"),
                    FileSize   = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.FileSize"),
                    FileFormat = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.FileFormat")
                };
                QueryJobListResponse.Job.Output_.Properties_.Streams_ streams = new QueryJobListResponse.Job.Output_.Properties_.Streams_();

                List <QueryJobListResponse.Job.Output_.Properties_.Streams_.VideoStream> videoStreamList = new List <QueryJobListResponse.Job.Output_.Properties_.Streams_.VideoStream>();
                for (int j = 0; j < context.Length($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList.Length"); j++)
                {
                    QueryJobListResponse.Job.Output_.Properties_.Streams_.VideoStream videoStream = new QueryJobListResponse.Job.Output_.Properties_.Streams_.VideoStream()
                    {
                        Index          = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].Index"),
                        CodecName      = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].CodecName"),
                        CodecLongName  = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].CodecLongName"),
                        Profile        = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].Profile"),
                        CodecTimeBase  = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].CodecTimeBase"),
                        CodecTagString = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].CodecTagString"),
                        CodecTag       = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].CodecTag"),
                        Width          = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].Width"),
                        Height         = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].Height"),
                        HasBFrames     = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].HasBFrames"),
                        Sar            = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].Sar"),
                        Dar            = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].Dar"),
                        PixFmt         = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].PixFmt"),
                        Level          = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].Level"),
                        Fps            = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].Fps"),
                        AvgFps         = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].AvgFPS"),
                        Timebase       = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].Timebase"),
                        StartTime      = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].StartTime"),
                        Duration       = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].Duration"),
                        Bitrate        = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].Bitrate"),
                        NumFrames      = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].NumFrames"),
                        Lang           = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].Lang")
                    };
                    QueryJobListResponse.Job.Output_.Properties_.Streams_.VideoStream.NetworkCost_ networkCost = new QueryJobListResponse.Job.Output_.Properties_.Streams_.VideoStream.NetworkCost_()
                    {
                        PreloadTime   = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].NetworkCost.PreloadTime"),
                        CostBandwidth = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].NetworkCost.CostBandwidth"),
                        AvgBitrate    = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.VideoStreamList[{j}].NetworkCost.AvgBitrate")
                    };
                    videoStream.NetworkCost = networkCost;

                    videoStreamList.Add(videoStream);
                }
                streams.VideoStreamList = videoStreamList;

                List <QueryJobListResponse.Job.Output_.Properties_.Streams_.AudioStream> audioStreamList = new List <QueryJobListResponse.Job.Output_.Properties_.Streams_.AudioStream>();
                for (int j = 0; j < context.Length($"QueryJobList.JobList[{i}].Output.Properties.Streams.AudioStreamList.Length"); j++)
                {
                    QueryJobListResponse.Job.Output_.Properties_.Streams_.AudioStream audioStream = new QueryJobListResponse.Job.Output_.Properties_.Streams_.AudioStream()
                    {
                        Index          = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.AudioStreamList[{j}].Index"),
                        CodecName      = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.AudioStreamList[{j}].CodecName"),
                        CodecTimeBase  = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.AudioStreamList[{j}].CodecTimeBase"),
                        CodecLongName  = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.AudioStreamList[{j}].CodecLongName"),
                        CodecTagString = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.AudioStreamList[{j}].CodecTagString"),
                        CodecTag       = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.AudioStreamList[{j}].CodecTag"),
                        SampleFmt      = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.AudioStreamList[{j}].SampleFmt"),
                        Samplerate     = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.AudioStreamList[{j}].Samplerate"),
                        Channels       = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.AudioStreamList[{j}].Channels"),
                        ChannelLayout  = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.AudioStreamList[{j}].ChannelLayout"),
                        Timebase       = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.AudioStreamList[{j}].Timebase"),
                        StartTime      = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.AudioStreamList[{j}].StartTime"),
                        Duration       = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.AudioStreamList[{j}].Duration"),
                        Bitrate        = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.AudioStreamList[{j}].Bitrate"),
                        NumFrames      = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.AudioStreamList[{j}].NumFrames"),
                        Lang           = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.AudioStreamList[{j}].Lang")
                    };
                    audioStreamList.Add(audioStream);
                }
                streams.AudioStreamList = audioStreamList;

                List <QueryJobListResponse.Job.Output_.Properties_.Streams_.SubtitleStream> subtitleStreamList = new List <QueryJobListResponse.Job.Output_.Properties_.Streams_.SubtitleStream>();
                for (int j = 0; j < context.Length($"QueryJobList.JobList[{i}].Output.Properties.Streams.SubtitleStreamList.Length"); j++)
                {
                    QueryJobListResponse.Job.Output_.Properties_.Streams_.SubtitleStream subtitleStream = new QueryJobListResponse.Job.Output_.Properties_.Streams_.SubtitleStream()
                    {
                        Index = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.SubtitleStreamList[{j}].Index"),
                        Lang  = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Streams.SubtitleStreamList[{j}].Lang")
                    };
                    subtitleStreamList.Add(subtitleStream);
                }
                streams.SubtitleStreamList = subtitleStreamList;
                properties.Streams         = streams;

                QueryJobListResponse.Job.Output_.Properties_.Format_ format = new QueryJobListResponse.Job.Output_.Properties_.Format_()
                {
                    NumStreams     = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Format.NumStreams"),
                    NumPrograms    = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Format.NumPrograms"),
                    FormatName     = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Format.FormatName"),
                    FormatLongName = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Format.FormatLongName"),
                    StartTime      = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Format.StartTime"),
                    Duration       = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Format.Duration"),
                    Size           = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Format.Size"),
                    Bitrate        = context.StringValue($"QueryJobList.JobList[{i}].Output.Properties.Format.Bitrate")
                };
                properties.Format = format;
                output.Properties = properties;

                QueryJobListResponse.Job.Output_.Clip_ clip = new QueryJobListResponse.Job.Output_.Clip_();

                QueryJobListResponse.Job.Output_.Clip_.TimeSpan_ timeSpan = new QueryJobListResponse.Job.Output_.Clip_.TimeSpan_()
                {
                    Seek     = context.StringValue($"QueryJobList.JobList[{i}].Output.Clip.TimeSpan.Seek"),
                    Duration = context.StringValue($"QueryJobList.JobList[{i}].Output.Clip.TimeSpan.Duration")
                };
                clip.TimeSpan = timeSpan;
                output.Clip   = clip;

                QueryJobListResponse.Job.Output_.SuperReso_ superReso = new QueryJobListResponse.Job.Output_.SuperReso_()
                {
                    IsHalfSample = context.StringValue($"QueryJobList.JobList[{i}].Output.SuperReso.IsHalfSample")
                };
                output.SuperReso = superReso;

                QueryJobListResponse.Job.Output_.SubtitleConfig_ subtitleConfig = new QueryJobListResponse.Job.Output_.SubtitleConfig_();

                List <QueryJobListResponse.Job.Output_.SubtitleConfig_.Subtitle> subtitleList = new List <QueryJobListResponse.Job.Output_.SubtitleConfig_.Subtitle>();
                for (int j = 0; j < context.Length($"QueryJobList.JobList[{i}].Output.SubtitleConfig.SubtitleList.Length"); j++)
                {
                    QueryJobListResponse.Job.Output_.SubtitleConfig_.Subtitle subtitle = new QueryJobListResponse.Job.Output_.SubtitleConfig_.Subtitle()
                    {
                        Map = context.StringValue($"QueryJobList.JobList[{i}].Output.SubtitleConfig.SubtitleList[{j}].Map")
                    };
                    subtitleList.Add(subtitle);
                }
                subtitleConfig.SubtitleList = subtitleList;

                List <QueryJobListResponse.Job.Output_.SubtitleConfig_.ExtSubtitle> extSubtitleList = new List <QueryJobListResponse.Job.Output_.SubtitleConfig_.ExtSubtitle>();
                for (int j = 0; j < context.Length($"QueryJobList.JobList[{i}].Output.SubtitleConfig.ExtSubtitleList.Length"); j++)
                {
                    QueryJobListResponse.Job.Output_.SubtitleConfig_.ExtSubtitle extSubtitle = new QueryJobListResponse.Job.Output_.SubtitleConfig_.ExtSubtitle();

                    QueryJobListResponse.Job.Output_.SubtitleConfig_.ExtSubtitle.Input_ extSubtitleInput = new QueryJobListResponse.Job.Output_.SubtitleConfig_.ExtSubtitle.Input_()
                    {
                        Bucket   = context.StringValue($"QueryJobList.JobList[{i}].Output.SubtitleConfig.ExtSubtitleList[{j}].Input.Bucket"),
                        Location = context.StringValue($"QueryJobList.JobList[{i}].Output.SubtitleConfig.ExtSubtitleList[{j}].Input.Location"),
                        Object   = context.StringValue($"QueryJobList.JobList[{i}].Output.SubtitleConfig.ExtSubtitleList[{j}].Input.Object")
                    };
                    extSubtitle.Input = extSubtitleInput;

                    extSubtitleList.Add(extSubtitle);
                }
                subtitleConfig.ExtSubtitleList = extSubtitleList;
                output.SubtitleConfig          = subtitleConfig;

                QueryJobListResponse.Job.Output_.TransConfig_ transConfig = new QueryJobListResponse.Job.Output_.TransConfig_()
                {
                    TransMode           = context.StringValue($"QueryJobList.JobList[{i}].Output.TransConfig.TransMode"),
                    IsCheckReso         = context.StringValue($"QueryJobList.JobList[{i}].Output.TransConfig.IsCheckReso"),
                    IsCheckResoFail     = context.StringValue($"QueryJobList.JobList[{i}].Output.TransConfig.IsCheckResoFail"),
                    IsCheckVideoBitrate = context.StringValue($"QueryJobList.JobList[{i}].Output.TransConfig.IsCheckVideoBitrate"),
                    IsCheckAudioBitrate = context.StringValue($"QueryJobList.JobList[{i}].Output.TransConfig.IsCheckAudioBitrate"),
                    AdjDarMethod        = context.StringValue($"QueryJobList.JobList[{i}].Output.TransConfig.AdjDarMethod")
                };
                output.TransConfig = transConfig;

                QueryJobListResponse.Job.Output_.MuxConfig_ muxConfig = new QueryJobListResponse.Job.Output_.MuxConfig_();

                QueryJobListResponse.Job.Output_.MuxConfig_.Segment_ segment = new QueryJobListResponse.Job.Output_.MuxConfig_.Segment_()
                {
                    Duration = context.StringValue($"QueryJobList.JobList[{i}].Output.MuxConfig.Segment.Duration")
                };
                muxConfig.Segment = segment;

                QueryJobListResponse.Job.Output_.MuxConfig_.Gif_ gif = new QueryJobListResponse.Job.Output_.MuxConfig_.Gif_()
                {
                    Loop            = context.StringValue($"QueryJobList.JobList[{i}].Output.MuxConfig.Gif.Loop"),
                    FinalDelay      = context.StringValue($"QueryJobList.JobList[{i}].Output.MuxConfig.Gif.FinalDelay"),
                    IsCustomPalette = context.StringValue($"QueryJobList.JobList[{i}].Output.MuxConfig.Gif.IsCustomPalette"),
                    DitherMode      = context.StringValue($"QueryJobList.JobList[{i}].Output.MuxConfig.Gif.DitherMode")
                };
                muxConfig.Gif    = gif;
                output.MuxConfig = muxConfig;

                QueryJobListResponse.Job.Output_.Audio_ audio = new QueryJobListResponse.Job.Output_.Audio_()
                {
                    Codec      = context.StringValue($"QueryJobList.JobList[{i}].Output.Audio.Codec"),
                    Profile    = context.StringValue($"QueryJobList.JobList[{i}].Output.Audio.Profile"),
                    Samplerate = context.StringValue($"QueryJobList.JobList[{i}].Output.Audio.Samplerate"),
                    Bitrate    = context.StringValue($"QueryJobList.JobList[{i}].Output.Audio.Bitrate"),
                    Channels   = context.StringValue($"QueryJobList.JobList[{i}].Output.Audio.Channels"),
                    Qscale     = context.StringValue($"QueryJobList.JobList[{i}].Output.Audio.Qscale")
                };
                output.Audio = audio;

                QueryJobListResponse.Job.Output_.Video_ video = new QueryJobListResponse.Job.Output_.Video_()
                {
                    Codec    = context.StringValue($"QueryJobList.JobList[{i}].Output.Video.Codec"),
                    Profile  = context.StringValue($"QueryJobList.JobList[{i}].Output.Video.Profile"),
                    Bitrate  = context.StringValue($"QueryJobList.JobList[{i}].Output.Video.Bitrate"),
                    Crf      = context.StringValue($"QueryJobList.JobList[{i}].Output.Video.Crf"),
                    Width    = context.StringValue($"QueryJobList.JobList[{i}].Output.Video.Width"),
                    Height   = context.StringValue($"QueryJobList.JobList[{i}].Output.Video.Height"),
                    Fps      = context.StringValue($"QueryJobList.JobList[{i}].Output.Video.Fps"),
                    Gop      = context.StringValue($"QueryJobList.JobList[{i}].Output.Video.Gop"),
                    Preset   = context.StringValue($"QueryJobList.JobList[{i}].Output.Video.Preset"),
                    ScanMode = context.StringValue($"QueryJobList.JobList[{i}].Output.Video.ScanMode"),
                    Bufsize  = context.StringValue($"QueryJobList.JobList[{i}].Output.Video.Bufsize"),
                    Maxrate  = context.StringValue($"QueryJobList.JobList[{i}].Output.Video.Maxrate"),
                    PixFmt   = context.StringValue($"QueryJobList.JobList[{i}].Output.Video.PixFmt"),
                    Degrain  = context.StringValue($"QueryJobList.JobList[{i}].Output.Video.Degrain"),
                    Qscale   = context.StringValue($"QueryJobList.JobList[{i}].Output.Video.Qscale"),
                    Crop     = context.StringValue($"QueryJobList.JobList[{i}].Output.Video.Crop"),
                    Pad      = context.StringValue($"QueryJobList.JobList[{i}].Output.Video.Pad"),
                    MaxFps   = context.StringValue($"QueryJobList.JobList[{i}].Output.Video.MaxFps")
                };
                QueryJobListResponse.Job.Output_.Video_.BitrateBnd_ bitrateBnd = new QueryJobListResponse.Job.Output_.Video_.BitrateBnd_()
                {
                    Max = context.StringValue($"QueryJobList.JobList[{i}].Output.Video.BitrateBnd.Max"),
                    Min = context.StringValue($"QueryJobList.JobList[{i}].Output.Video.BitrateBnd.Min")
                };
                video.BitrateBnd = bitrateBnd;
                output.Video     = video;

                QueryJobListResponse.Job.Output_.Container_ container = new QueryJobListResponse.Job.Output_.Container_()
                {
                    Format = context.StringValue($"QueryJobList.JobList[{i}].Output.Container.Format")
                };
                output.Container = container;

                List <QueryJobListResponse.Job.Output_.WaterMark> waterMarkList = new List <QueryJobListResponse.Job.Output_.WaterMark>();
                for (int j = 0; j < context.Length($"QueryJobList.JobList[{i}].Output.WaterMarkList.Length"); j++)
                {
                    QueryJobListResponse.Job.Output_.WaterMark waterMark = new QueryJobListResponse.Job.Output_.WaterMark()
                    {
                        WaterMarkTemplateId = context.StringValue($"QueryJobList.JobList[{i}].Output.WaterMarkList[{j}].WaterMarkTemplateId"),
                        Width    = context.StringValue($"QueryJobList.JobList[{i}].Output.WaterMarkList[{j}].Width"),
                        Height   = context.StringValue($"QueryJobList.JobList[{i}].Output.WaterMarkList[{j}].Height"),
                        Dx       = context.StringValue($"QueryJobList.JobList[{i}].Output.WaterMarkList[{j}].Dx"),
                        Dy       = context.StringValue($"QueryJobList.JobList[{i}].Output.WaterMarkList[{j}].Dy"),
                        ReferPos = context.StringValue($"QueryJobList.JobList[{i}].Output.WaterMarkList[{j}].ReferPos"),
                        Type     = context.StringValue($"QueryJobList.JobList[{i}].Output.WaterMarkList[{j}].Type")
                    };
                    QueryJobListResponse.Job.Output_.WaterMark.InputFile_ inputFile = new QueryJobListResponse.Job.Output_.WaterMark.InputFile_()
                    {
                        Bucket   = context.StringValue($"QueryJobList.JobList[{i}].Output.WaterMarkList[{j}].InputFile.Bucket"),
                        Location = context.StringValue($"QueryJobList.JobList[{i}].Output.WaterMarkList[{j}].InputFile.Location"),
                        Object   = context.StringValue($"QueryJobList.JobList[{i}].Output.WaterMarkList[{j}].InputFile.Object")
                    };
                    waterMark.InputFile = inputFile;

                    waterMarkList.Add(waterMark);
                }
                output.WaterMarkList = waterMarkList;

                List <QueryJobListResponse.Job.Output_.Merge> mergeList = new List <QueryJobListResponse.Job.Output_.Merge>();
                for (int j = 0; j < context.Length($"QueryJobList.JobList[{i}].Output.MergeList.Length"); j++)
                {
                    QueryJobListResponse.Job.Output_.Merge merge = new QueryJobListResponse.Job.Output_.Merge()
                    {
                        MergeURL = context.StringValue($"QueryJobList.JobList[{i}].Output.MergeList[{j}].MergeURL"),
                        Start    = context.StringValue($"QueryJobList.JobList[{i}].Output.MergeList[{j}].Start"),
                        Duration = context.StringValue($"QueryJobList.JobList[{i}].Output.MergeList[{j}].Duration")
                    };
                    mergeList.Add(merge);
                }
                output.MergeList = mergeList;
                job.Output       = output;

                QueryJobListResponse.Job.MnsMessageResult_ mNsMessageResult = new QueryJobListResponse.Job.MnsMessageResult_()
                {
                    MessageId    = context.StringValue($"QueryJobList.JobList[{i}].MNSMessageResult.MessageId"),
                    ErrorMessage = context.StringValue($"QueryJobList.JobList[{i}].MNSMessageResult.ErrorMessage"),
                    ErrorCode    = context.StringValue($"QueryJobList.JobList[{i}].MNSMessageResult.ErrorCode")
                };
                job.MnsMessageResult = mNsMessageResult;

                jobList.Add(job);
            }
            queryJobListResponse.JobList = jobList;

            return(queryJobListResponse);
        }
        public static GetTraceResponse Unmarshall(UnmarshallerContext _ctx)
        {
            GetTraceResponse getTraceResponse = new GetTraceResponse();

            getTraceResponse.HttpResponse = _ctx.HttpResponse;
            getTraceResponse.RequestId    = _ctx.StringValue("GetTrace.RequestId");

            List <GetTraceResponse.GetTrace_Span> getTraceResponse_spans = new List <GetTraceResponse.GetTrace_Span>();

            for (int i = 0; i < _ctx.Length("GetTrace.Spans.Length"); i++)
            {
                GetTraceResponse.GetTrace_Span span = new GetTraceResponse.GetTrace_Span();
                span.TraceID       = _ctx.StringValue("GetTrace.Spans[" + i + "].TraceID");
                span.OperationName = _ctx.StringValue("GetTrace.Spans[" + i + "].OperationName");
                span.Duration      = _ctx.LongValue("GetTrace.Spans[" + i + "].Duration");
                span.ServiceName   = _ctx.StringValue("GetTrace.Spans[" + i + "].ServiceName");
                span.ServiceIp     = _ctx.StringValue("GetTrace.Spans[" + i + "].ServiceIp");
                span.Timestamp     = _ctx.LongValue("GetTrace.Spans[" + i + "].Timestamp");
                span.RpcId         = _ctx.StringValue("GetTrace.Spans[" + i + "].RpcId");
                span.ResultCode    = _ctx.StringValue("GetTrace.Spans[" + i + "].ResultCode");
                span.HaveStack     = _ctx.BooleanValue("GetTrace.Spans[" + i + "].HaveStack");
                span.SpanId        = _ctx.StringValue("GetTrace.Spans[" + i + "].SpanId");
                span.ParentSpanId  = _ctx.StringValue("GetTrace.Spans[" + i + "].ParentSpanId");

                List <GetTraceResponse.GetTrace_Span.GetTrace_TagEntry> span_tagEntryList = new List <GetTraceResponse.GetTrace_Span.GetTrace_TagEntry>();
                for (int j = 0; j < _ctx.Length("GetTrace.Spans[" + i + "].TagEntryList.Length"); j++)
                {
                    GetTraceResponse.GetTrace_Span.GetTrace_TagEntry tagEntry = new GetTraceResponse.GetTrace_Span.GetTrace_TagEntry();
                    tagEntry.Key    = _ctx.StringValue("GetTrace.Spans[" + i + "].TagEntryList[" + j + "].Key");
                    tagEntry._Value = _ctx.StringValue("GetTrace.Spans[" + i + "].TagEntryList[" + j + "].Value");

                    span_tagEntryList.Add(tagEntry);
                }
                span.TagEntryList = span_tagEntryList;

                List <GetTraceResponse.GetTrace_Span.GetTrace_LogEvent> span_logEventList = new List <GetTraceResponse.GetTrace_Span.GetTrace_LogEvent>();
                for (int j = 0; j < _ctx.Length("GetTrace.Spans[" + i + "].LogEventList.Length"); j++)
                {
                    GetTraceResponse.GetTrace_Span.GetTrace_LogEvent logEvent = new GetTraceResponse.GetTrace_Span.GetTrace_LogEvent();
                    logEvent.Timestamp = _ctx.LongValue("GetTrace.Spans[" + i + "].LogEventList[" + j + "].Timestamp");

                    List <GetTraceResponse.GetTrace_Span.GetTrace_LogEvent.GetTrace_TagEntry2> logEvent_tagEntryList1 = new List <GetTraceResponse.GetTrace_Span.GetTrace_LogEvent.GetTrace_TagEntry2>();
                    for (int k = 0; k < _ctx.Length("GetTrace.Spans[" + i + "].LogEventList[" + j + "].TagEntryList.Length"); k++)
                    {
                        GetTraceResponse.GetTrace_Span.GetTrace_LogEvent.GetTrace_TagEntry2 tagEntry2 = new GetTraceResponse.GetTrace_Span.GetTrace_LogEvent.GetTrace_TagEntry2();
                        tagEntry2.Key    = _ctx.StringValue("GetTrace.Spans[" + i + "].LogEventList[" + j + "].TagEntryList[" + k + "].Key");
                        tagEntry2._Value = _ctx.StringValue("GetTrace.Spans[" + i + "].LogEventList[" + j + "].TagEntryList[" + k + "].Value");

                        logEvent_tagEntryList1.Add(tagEntry2);
                    }
                    logEvent.TagEntryList1 = logEvent_tagEntryList1;

                    span_logEventList.Add(logEvent);
                }
                span.LogEventList = span_logEventList;

                getTraceResponse_spans.Add(span);
            }
            getTraceResponse.Spans = getTraceResponse_spans;

            return(getTraceResponse);
        }
Example #39
0
        public static DescribeLoadBalancerAttributeResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeLoadBalancerAttributeResponse describeLoadBalancerAttributeResponse = new DescribeLoadBalancerAttributeResponse();

            describeLoadBalancerAttributeResponse.HttpResponse       = context.HttpResponse;
            describeLoadBalancerAttributeResponse.RequestId          = context.StringValue("DescribeLoadBalancerAttribute.RequestId");
            describeLoadBalancerAttributeResponse.LoadBalancerId     = context.StringValue("DescribeLoadBalancerAttribute.LoadBalancerId");
            describeLoadBalancerAttributeResponse.ResourceGroupId    = context.StringValue("DescribeLoadBalancerAttribute.ResourceGroupId");
            describeLoadBalancerAttributeResponse.LoadBalancerName   = context.StringValue("DescribeLoadBalancerAttribute.LoadBalancerName");
            describeLoadBalancerAttributeResponse.LoadBalancerStatus = context.StringValue("DescribeLoadBalancerAttribute.LoadBalancerStatus");
            describeLoadBalancerAttributeResponse.RegionId           = context.StringValue("DescribeLoadBalancerAttribute.RegionId");
            describeLoadBalancerAttributeResponse.RegionIdAlias      = context.StringValue("DescribeLoadBalancerAttribute.RegionIdAlias");
            describeLoadBalancerAttributeResponse.Address            = context.StringValue("DescribeLoadBalancerAttribute.Address");
            describeLoadBalancerAttributeResponse.AddressType        = context.StringValue("DescribeLoadBalancerAttribute.AddressType");
            describeLoadBalancerAttributeResponse.VpcId              = context.StringValue("DescribeLoadBalancerAttribute.VpcId");
            describeLoadBalancerAttributeResponse.VSwitchId          = context.StringValue("DescribeLoadBalancerAttribute.VSwitchId");
            describeLoadBalancerAttributeResponse.NetworkType        = context.StringValue("DescribeLoadBalancerAttribute.NetworkType");
            describeLoadBalancerAttributeResponse.InternetChargeType = context.StringValue("DescribeLoadBalancerAttribute.InternetChargeType");
            describeLoadBalancerAttributeResponse.AutoReleaseTime    = context.LongValue("DescribeLoadBalancerAttribute.AutoReleaseTime");
            describeLoadBalancerAttributeResponse.Bandwidth          = context.IntegerValue("DescribeLoadBalancerAttribute.Bandwidth");
            describeLoadBalancerAttributeResponse.LoadBalancerSpec   = context.StringValue("DescribeLoadBalancerAttribute.LoadBalancerSpec");
            describeLoadBalancerAttributeResponse.CreateTime         = context.StringValue("DescribeLoadBalancerAttribute.CreateTime");
            describeLoadBalancerAttributeResponse.CreateTimeStamp    = context.LongValue("DescribeLoadBalancerAttribute.CreateTimeStamp");
            describeLoadBalancerAttributeResponse.EndTime            = context.StringValue("DescribeLoadBalancerAttribute.EndTime");
            describeLoadBalancerAttributeResponse.EndTimeStamp       = context.LongValue("DescribeLoadBalancerAttribute.EndTimeStamp");
            describeLoadBalancerAttributeResponse.PayType            = context.StringValue("DescribeLoadBalancerAttribute.PayType");
            describeLoadBalancerAttributeResponse.MasterZoneId       = context.StringValue("DescribeLoadBalancerAttribute.MasterZoneId");
            describeLoadBalancerAttributeResponse.SlaveZoneId        = context.StringValue("DescribeLoadBalancerAttribute.SlaveZoneId");

            List <string> describeLoadBalancerAttributeResponse_listenerPorts = new List <string>();

            for (int i = 0; i < context.Length("DescribeLoadBalancerAttribute.ListenerPorts.Length"); i++)
            {
                describeLoadBalancerAttributeResponse_listenerPorts.Add(context.StringValue("DescribeLoadBalancerAttribute.ListenerPorts[" + i + "]"));
            }
            describeLoadBalancerAttributeResponse.ListenerPorts = describeLoadBalancerAttributeResponse_listenerPorts;

            List <DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocal> describeLoadBalancerAttributeResponse_listenerPortsAndProtocal = new List <DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocal>();

            for (int i = 0; i < context.Length("DescribeLoadBalancerAttribute.ListenerPortsAndProtocal.Length"); i++)
            {
                DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocal listenerPortAndProtocal = new DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocal();
                listenerPortAndProtocal.ListenerPort     = context.IntegerValue("DescribeLoadBalancerAttribute.ListenerPortsAndProtocal[" + i + "].ListenerPort");
                listenerPortAndProtocal.ListenerProtocal = context.StringValue("DescribeLoadBalancerAttribute.ListenerPortsAndProtocal[" + i + "].ListenerProtocal");

                describeLoadBalancerAttributeResponse_listenerPortsAndProtocal.Add(listenerPortAndProtocal);
            }
            describeLoadBalancerAttributeResponse.ListenerPortsAndProtocal = describeLoadBalancerAttributeResponse_listenerPortsAndProtocal;

            List <DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocol> describeLoadBalancerAttributeResponse_listenerPortsAndProtocol = new List <DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocol>();

            for (int i = 0; i < context.Length("DescribeLoadBalancerAttribute.ListenerPortsAndProtocol.Length"); i++)
            {
                DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocol listenerPortAndProtocol = new DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocol();
                listenerPortAndProtocol.ListenerPort     = context.IntegerValue("DescribeLoadBalancerAttribute.ListenerPortsAndProtocol[" + i + "].ListenerPort");
                listenerPortAndProtocol.ListenerProtocol = context.StringValue("DescribeLoadBalancerAttribute.ListenerPortsAndProtocol[" + i + "].ListenerProtocol");
                listenerPortAndProtocol.ListenerForward  = context.StringValue("DescribeLoadBalancerAttribute.ListenerPortsAndProtocol[" + i + "].ListenerForward");
                listenerPortAndProtocol.ForwardPort      = context.IntegerValue("DescribeLoadBalancerAttribute.ListenerPortsAndProtocol[" + i + "].ForwardPort");

                describeLoadBalancerAttributeResponse_listenerPortsAndProtocol.Add(listenerPortAndProtocol);
            }
            describeLoadBalancerAttributeResponse.ListenerPortsAndProtocol = describeLoadBalancerAttributeResponse_listenerPortsAndProtocol;

            List <DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_BackendServer> describeLoadBalancerAttributeResponse_backendServers = new List <DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_BackendServer>();

            for (int i = 0; i < context.Length("DescribeLoadBalancerAttribute.BackendServers.Length"); i++)
            {
                DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_BackendServer backendServer = new DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_BackendServer();
                backendServer.ServerId = context.StringValue("DescribeLoadBalancerAttribute.BackendServers[" + i + "].ServerId");
                backendServer.Weight   = context.IntegerValue("DescribeLoadBalancerAttribute.BackendServers[" + i + "].Weight");
                backendServer.Type     = context.StringValue("DescribeLoadBalancerAttribute.BackendServers[" + i + "].Type");
                backendServer.ServerIp = context.StringValue("DescribeLoadBalancerAttribute.BackendServers[" + i + "].ServerIp");
                backendServer.VpcId    = context.StringValue("DescribeLoadBalancerAttribute.BackendServers[" + i + "].VpcId");

                describeLoadBalancerAttributeResponse_backendServers.Add(backendServer);
            }
            describeLoadBalancerAttributeResponse.BackendServers = describeLoadBalancerAttributeResponse_backendServers;

            return(describeLoadBalancerAttributeResponse);
        }
Example #40
0
        public static DescribeOssIncrementCheckSettingResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeOssIncrementCheckSettingResponse describeOssIncrementCheckSettingResponse = new DescribeOssIncrementCheckSettingResponse();

            describeOssIncrementCheckSettingResponse.HttpResponse       = _ctx.HttpResponse;
            describeOssIncrementCheckSettingResponse.RequestId          = _ctx.StringValue("DescribeOssIncrementCheckSetting.RequestId");
            describeOssIncrementCheckSettingResponse.ImageEnableLimit   = _ctx.BooleanValue("DescribeOssIncrementCheckSetting.ImageEnableLimit");
            describeOssIncrementCheckSettingResponse.ImageScanLimit     = _ctx.LongValue("DescribeOssIncrementCheckSetting.ImageScanLimit");
            describeOssIncrementCheckSettingResponse.VideoFrameInterval = _ctx.IntegerValue("DescribeOssIncrementCheckSetting.VideoFrameInterval");
            describeOssIncrementCheckSettingResponse.VideoMaxFrames     = _ctx.IntegerValue("DescribeOssIncrementCheckSetting.VideoMaxFrames");
            describeOssIncrementCheckSettingResponse.VideoMaxSize       = _ctx.IntegerValue("DescribeOssIncrementCheckSetting.VideoMaxSize");
            describeOssIncrementCheckSettingResponse.AutoFreezeType     = _ctx.StringValue("DescribeOssIncrementCheckSetting.AutoFreezeType");
            describeOssIncrementCheckSettingResponse.CallbackId         = _ctx.StringValue("DescribeOssIncrementCheckSetting.CallbackId");
            describeOssIncrementCheckSettingResponse.CallbackName       = _ctx.StringValue("DescribeOssIncrementCheckSetting.CallbackName");

            List <string> describeOssIncrementCheckSettingResponse_imageSceneList = new List <string>();

            for (int i = 0; i < _ctx.Length("DescribeOssIncrementCheckSetting.ImageSceneList.Length"); i++)
            {
                describeOssIncrementCheckSettingResponse_imageSceneList.Add(_ctx.StringValue("DescribeOssIncrementCheckSetting.ImageSceneList[" + i + "]"));
            }
            describeOssIncrementCheckSettingResponse.ImageSceneList = describeOssIncrementCheckSettingResponse_imageSceneList;

            List <string> describeOssIncrementCheckSettingResponse_videoSceneList = new List <string>();

            for (int i = 0; i < _ctx.Length("DescribeOssIncrementCheckSetting.VideoSceneList.Length"); i++)
            {
                describeOssIncrementCheckSettingResponse_videoSceneList.Add(_ctx.StringValue("DescribeOssIncrementCheckSetting.VideoSceneList[" + i + "]"));
            }
            describeOssIncrementCheckSettingResponse.VideoSceneList = describeOssIncrementCheckSettingResponse_videoSceneList;

            List <string> describeOssIncrementCheckSettingResponse_videoAutoFreezeSceneList = new List <string>();

            for (int i = 0; i < _ctx.Length("DescribeOssIncrementCheckSetting.VideoAutoFreezeSceneList.Length"); i++)
            {
                describeOssIncrementCheckSettingResponse_videoAutoFreezeSceneList.Add(_ctx.StringValue("DescribeOssIncrementCheckSetting.VideoAutoFreezeSceneList[" + i + "]"));
            }
            describeOssIncrementCheckSettingResponse.VideoAutoFreezeSceneList = describeOssIncrementCheckSettingResponse_videoAutoFreezeSceneList;

            DescribeOssIncrementCheckSettingResponse.DescribeOssIncrementCheckSetting_ImageAutoFreeze imageAutoFreeze = new DescribeOssIncrementCheckSettingResponse.DescribeOssIncrementCheckSetting_ImageAutoFreeze();
            imageAutoFreeze.Enabled   = _ctx.BooleanValue("DescribeOssIncrementCheckSetting.ImageAutoFreeze.Enabled");
            imageAutoFreeze.P**n      = _ctx.StringValue("DescribeOssIncrementCheckSetting.ImageAutoFreeze.P**n");
            imageAutoFreeze.Terrorism = _ctx.StringValue("DescribeOssIncrementCheckSetting.ImageAutoFreeze.Terrorism");
            imageAutoFreeze.Ad        = _ctx.StringValue("DescribeOssIncrementCheckSetting.ImageAutoFreeze.Ad");
            imageAutoFreeze.Live      = _ctx.StringValue("DescribeOssIncrementCheckSetting.ImageAutoFreeze.Live");
            describeOssIncrementCheckSettingResponse.ImageAutoFreeze = imageAutoFreeze;

            List <DescribeOssIncrementCheckSettingResponse.DescribeOssIncrementCheckSetting_BucketConfig> describeOssIncrementCheckSettingResponse_bucketConfigList = new List <DescribeOssIncrementCheckSettingResponse.DescribeOssIncrementCheckSetting_BucketConfig>();

            for (int i = 0; i < _ctx.Length("DescribeOssIncrementCheckSetting.BucketConfigList.Length"); i++)
            {
                DescribeOssIncrementCheckSettingResponse.DescribeOssIncrementCheckSetting_BucketConfig bucketConfig = new DescribeOssIncrementCheckSettingResponse.DescribeOssIncrementCheckSetting_BucketConfig();
                bucketConfig.Selected = _ctx.BooleanValue("DescribeOssIncrementCheckSetting.BucketConfigList[" + i + "].Selected");
                bucketConfig.Bucket   = _ctx.StringValue("DescribeOssIncrementCheckSetting.BucketConfigList[" + i + "].Bucket");

                List <string> bucketConfig_prefixes = new List <string>();
                for (int j = 0; j < _ctx.Length("DescribeOssIncrementCheckSetting.BucketConfigList[" + i + "].Prefixes.Length"); j++)
                {
                    bucketConfig_prefixes.Add(_ctx.StringValue("DescribeOssIncrementCheckSetting.BucketConfigList[" + i + "].Prefixes[" + j + "]"));
                }
                bucketConfig.Prefixes = bucketConfig_prefixes;

                describeOssIncrementCheckSettingResponse_bucketConfigList.Add(bucketConfig);
            }
            describeOssIncrementCheckSettingResponse.BucketConfigList = describeOssIncrementCheckSettingResponse_bucketConfigList;

            return(describeOssIncrementCheckSettingResponse);
        }
Example #41
0
        public static ListPhoneTagsResponse Unmarshall(UnmarshallerContext context)
        {
            ListPhoneTagsResponse listPhoneTagsResponse = new ListPhoneTagsResponse();

            listPhoneTagsResponse.HttpResponse   = context.HttpResponse;
            listPhoneTagsResponse.RequestId      = context.StringValue("ListPhoneTags.RequestId");
            listPhoneTagsResponse.Success        = context.BooleanValue("ListPhoneTags.Success");
            listPhoneTagsResponse.Code           = context.StringValue("ListPhoneTags.Code");
            listPhoneTagsResponse.Message        = context.StringValue("ListPhoneTags.Message");
            listPhoneTagsResponse.HttpStatusCode = context.IntegerValue("ListPhoneTags.HttpStatusCode");

            ListPhoneTagsResponse.ListPhoneTags_PhoneNumbers phoneNumbers = new ListPhoneTagsResponse.ListPhoneTags_PhoneNumbers();
            phoneNumbers.TotalCount = context.IntegerValue("ListPhoneTags.PhoneNumbers.TotalCount");
            phoneNumbers.PageNumber = context.IntegerValue("ListPhoneTags.PhoneNumbers.PageNumber");
            phoneNumbers.PageSize   = context.IntegerValue("ListPhoneTags.PhoneNumbers.PageSize");

            List <ListPhoneTagsResponse.ListPhoneTags_PhoneNumbers.ListPhoneTags_PhoneNumber> phoneNumbers_list = new List <ListPhoneTagsResponse.ListPhoneTags_PhoneNumbers.ListPhoneTags_PhoneNumber>();

            for (int i = 0; i < context.Length("ListPhoneTags.PhoneNumbers.List.Length"); i++)
            {
                ListPhoneTagsResponse.ListPhoneTags_PhoneNumbers.ListPhoneTags_PhoneNumber phoneNumber = new ListPhoneTagsResponse.ListPhoneTags_PhoneNumbers.ListPhoneTags_PhoneNumber();
                phoneNumber.PhoneNumberId          = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].PhoneNumberId");
                phoneNumber.InstanceId             = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].InstanceId");
                phoneNumber.Number                 = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].Number");
                phoneNumber.PhoneNumberDescription = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].PhoneNumberDescription");
                phoneNumber.TestOnly               = context.BooleanValue("ListPhoneTags.PhoneNumbers.List[" + i + "].TestOnly");
                phoneNumber.RemainingTime          = context.IntegerValue("ListPhoneTags.PhoneNumbers.List[" + i + "].RemainingTime");
                phoneNumber.AllowOutbound          = context.BooleanValue("ListPhoneTags.PhoneNumbers.List[" + i + "].AllowOutbound");
                phoneNumber.Usage    = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].Usage");
                phoneNumber.Trunks   = context.IntegerValue("ListPhoneTags.PhoneNumbers.List[" + i + "].Trunks");
                phoneNumber.Province = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].Province");
                phoneNumber.City     = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].City");
                phoneNumber.Assignee = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].Assignee");
                phoneNumber.NumberCommodityStatus = context.IntegerValue("ListPhoneTags.PhoneNumbers.List[" + i + "].NumberCommodityStatus");
                phoneNumber.Type            = context.IntegerValue("ListPhoneTags.PhoneNumbers.List[" + i + "].Type");
                phoneNumber.Concurrency     = context.IntegerValue("ListPhoneTags.PhoneNumbers.List[" + i + "].Concurrency");
                phoneNumber.ServiceTag      = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].ServiceTag");
                phoneNumber.SipTelX         = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].SipTelX");
                phoneNumber.NumberGroupId   = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].NumberGroupId");
                phoneNumber.NumberGroupName = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].NumberGroupName");
                phoneNumber.Provider        = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].Provider");
                phoneNumber.CreateTime      = context.LongValue("ListPhoneTags.PhoneNumbers.List[" + i + "].CreateTime");

                ListPhoneTagsResponse.ListPhoneTags_PhoneNumbers.ListPhoneTags_PhoneNumber.ListPhoneTags_ContactFlow contactFlow = new ListPhoneTagsResponse.ListPhoneTags_PhoneNumbers.ListPhoneTags_PhoneNumber.ListPhoneTags_ContactFlow();
                contactFlow.ContactFlowId          = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].ContactFlow.ContactFlowId");
                contactFlow.InstanceId             = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].ContactFlow.InstanceId");
                contactFlow.ContactFlowName        = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].ContactFlow.ContactFlowName");
                contactFlow.ContactFlowDescription = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].ContactFlow.ContactFlowDescription");
                contactFlow.Type        = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].ContactFlow.Type");
                phoneNumber.ContactFlow = contactFlow;

                ListPhoneTagsResponse.ListPhoneTags_PhoneNumbers.ListPhoneTags_PhoneNumber.ListPhoneTags_PrivacyNumber privacyNumber = new ListPhoneTagsResponse.ListPhoneTags_PhoneNumbers.ListPhoneTags_PhoneNumber.ListPhoneTags_PrivacyNumber();
                privacyNumber.PoolId         = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].PrivacyNumber.PoolId");
                privacyNumber.Type           = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].PrivacyNumber.Type");
                privacyNumber.TelX           = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].PrivacyNumber.TelX");
                privacyNumber.PoolName       = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].PrivacyNumber.PoolName");
                privacyNumber.PhoneNumber    = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].PrivacyNumber.PhoneNumber");
                privacyNumber.Extra          = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].PrivacyNumber.Extra");
                privacyNumber.BizId          = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].PrivacyNumber.BizId");
                privacyNumber.SubId          = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].PrivacyNumber.SubId");
                privacyNumber.RegionNameCity = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].PrivacyNumber.RegionNameCity");
                phoneNumber.PrivacyNumber    = privacyNumber;

                List <ListPhoneTagsResponse.ListPhoneTags_PhoneNumbers.ListPhoneTags_PhoneNumber.ListPhoneTags_SkillGroup> phoneNumber_skillGroups = new List <ListPhoneTagsResponse.ListPhoneTags_PhoneNumbers.ListPhoneTags_PhoneNumber.ListPhoneTags_SkillGroup>();
                for (int j = 0; j < context.Length("ListPhoneTags.PhoneNumbers.List[" + i + "].SkillGroups.Length"); j++)
                {
                    ListPhoneTagsResponse.ListPhoneTags_PhoneNumbers.ListPhoneTags_PhoneNumber.ListPhoneTags_SkillGroup skillGroup = new ListPhoneTagsResponse.ListPhoneTags_PhoneNumbers.ListPhoneTags_PhoneNumber.ListPhoneTags_SkillGroup();
                    skillGroup.SkillGroupId   = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].SkillGroups[" + j + "].SkillGroupId");
                    skillGroup.SkillGroupName = context.StringValue("ListPhoneTags.PhoneNumbers.List[" + i + "].SkillGroups[" + j + "].SkillGroupName");

                    phoneNumber_skillGroups.Add(skillGroup);
                }
                phoneNumber.SkillGroups = phoneNumber_skillGroups;

                phoneNumbers_list.Add(phoneNumber);
            }
            phoneNumbers.List = phoneNumbers_list;
            listPhoneTagsResponse.PhoneNumbers = phoneNumbers;

            return(listPhoneTagsResponse);
        }
        public static ListIntervalInstanceReportResponse Unmarshall(UnmarshallerContext _ctx)
        {
            ListIntervalInstanceReportResponse listIntervalInstanceReportResponse = new ListIntervalInstanceReportResponse();

            listIntervalInstanceReportResponse.HttpResponse   = _ctx.HttpResponse;
            listIntervalInstanceReportResponse.Code           = _ctx.StringValue("ListIntervalInstanceReport.Code");
            listIntervalInstanceReportResponse.HttpStatusCode = _ctx.IntegerValue("ListIntervalInstanceReport.HttpStatusCode");
            listIntervalInstanceReportResponse.Message        = _ctx.StringValue("ListIntervalInstanceReport.Message");
            listIntervalInstanceReportResponse.RequestId      = _ctx.StringValue("ListIntervalInstanceReport.RequestId");

            List <ListIntervalInstanceReportResponse.ListIntervalInstanceReport_DataItem> listIntervalInstanceReportResponse_data = new List <ListIntervalInstanceReportResponse.ListIntervalInstanceReport_DataItem>();

            for (int i = 0; i < _ctx.Length("ListIntervalInstanceReport.Data.Length"); i++)
            {
                ListIntervalInstanceReportResponse.ListIntervalInstanceReport_DataItem dataItem = new ListIntervalInstanceReportResponse.ListIntervalInstanceReport_DataItem();
                dataItem.StatsTime = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].StatsTime");

                ListIntervalInstanceReportResponse.ListIntervalInstanceReport_DataItem.ListIntervalInstanceReport_Inbound inbound = new ListIntervalInstanceReportResponse.ListIntervalInstanceReport_DataItem.ListIntervalInstanceReport_Inbound();
                inbound.AbandonedRate               = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.AbandonedRate");
                inbound.AverageAbandonTime          = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.AverageAbandonTime");
                inbound.AverageAbandonedInIVRTime   = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.AverageAbandonedInIVRTime");
                inbound.AverageAbandonedInQueueTime = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.AverageAbandonedInQueueTime");
                inbound.AverageAbandonedInRingTime  = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.AverageAbandonedInRingTime");
                inbound.AverageHoldTime             = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.AverageHoldTime");
                inbound.AverageRingTime             = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.AverageRingTime");
                inbound.AverageTalkTime             = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.AverageTalkTime");
                inbound.AverageWaitTime             = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.AverageWaitTime");
                inbound.AverageWorkTime             = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.AverageWorkTime");
                inbound.CallsAbandoned              = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.CallsAbandoned");
                inbound.CallsAbandonedInIVR         = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.CallsAbandonedInIVR");
                inbound.CallsAbandonedInQueue       = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.CallsAbandonedInQueue");
                inbound.CallsAbandonedInRinging     = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.CallsAbandonedInRinging");
                inbound.CallsConsulted              = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.CallsConsulted");
                inbound.CallsHandled                 = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.CallsHandled");
                inbound.CallsHold                    = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.CallsHold");
                inbound.CallsOffered                 = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.CallsOffered");
                inbound.CallsQueued                  = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.CallsQueued");
                inbound.CallsRinged                  = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.CallsRinged");
                inbound.CallsTransferred             = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.CallsTransferred");
                inbound.HandleRate                   = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.HandleRate");
                inbound.MaxAbandonTime               = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.MaxAbandonTime");
                inbound.MaxAbandonedInIVRTime        = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.MaxAbandonedInIVRTime");
                inbound.MaxAbandonedInQueueTime      = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.MaxAbandonedInQueueTime");
                inbound.MaxAbandonedInRingTime       = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.MaxAbandonedInRingTime");
                inbound.MaxHoldTime                  = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.MaxHoldTime");
                inbound.MaxRingTime                  = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.MaxRingTime");
                inbound.MaxTalkTime                  = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.MaxTalkTime");
                inbound.MaxWaitTime                  = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.MaxWaitTime");
                inbound.MaxWorkTime                  = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.MaxWorkTime");
                inbound.SatisfactionIndex            = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.SatisfactionIndex");
                inbound.SatisfactionSurveysOffered   = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.SatisfactionSurveysOffered");
                inbound.SatisfactionSurveysResponded = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.SatisfactionSurveysResponded");
                inbound.ServiceLevel20               = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.ServiceLevel20");
                inbound.TotalAbandonTime             = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.TotalAbandonTime");
                inbound.TotalAbandonedInIVRTime      = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.TotalAbandonedInIVRTime");
                inbound.TotalAbandonedInQueueTime    = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.TotalAbandonedInQueueTime");
                inbound.TotalAbandonedInRingTime     = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.TotalAbandonedInRingTime");
                inbound.TotalHoldTime                = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.TotalHoldTime");
                inbound.TotalRingTime                = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.TotalRingTime");
                inbound.TotalTalkTime                = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.TotalTalkTime");
                inbound.TotalWaitTime                = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.TotalWaitTime");
                inbound.TotalWorkTime                = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Inbound.TotalWorkTime");
                dataItem.Inbound = inbound;

                ListIntervalInstanceReportResponse.ListIntervalInstanceReport_DataItem.ListIntervalInstanceReport_Outbound outbound = new ListIntervalInstanceReportResponse.ListIntervalInstanceReport_DataItem.ListIntervalInstanceReport_Outbound();
                outbound.AnswerRate                   = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Outbound.AnswerRate");
                outbound.AverageDialingTime           = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Outbound.AverageDialingTime");
                outbound.AverageTalkTime              = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Outbound.AverageTalkTime");
                outbound.AverageWorkTime              = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Outbound.AverageWorkTime");
                outbound.CallsAnswered                = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Outbound.CallsAnswered");
                outbound.CallsDialed                  = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Outbound.CallsDialed");
                outbound.CallsDialedSuccess           = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Outbound.CallsDialedSuccess");
                outbound.MaxDialingTime               = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Outbound.MaxDialingTime");
                outbound.MaxTalkTime                  = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Outbound.MaxTalkTime");
                outbound.MaxWorkTime                  = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Outbound.MaxWorkTime");
                outbound.SatisfactionIndex            = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Outbound.SatisfactionIndex");
                outbound.SatisfactionSurveysOffered   = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Outbound.SatisfactionSurveysOffered");
                outbound.SatisfactionSurveysResponded = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Outbound.SatisfactionSurveysResponded");
                outbound.TotalDialingTime             = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Outbound.TotalDialingTime");
                outbound.TotalHoldTime                = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Outbound.TotalHoldTime");
                outbound.TotalTalkTime                = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Outbound.TotalTalkTime");
                outbound.TotalWorkTime                = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Outbound.TotalWorkTime");
                dataItem.Outbound = outbound;

                ListIntervalInstanceReportResponse.ListIntervalInstanceReport_DataItem.ListIntervalInstanceReport_Overall overall = new ListIntervalInstanceReportResponse.ListIntervalInstanceReport_DataItem.ListIntervalInstanceReport_Overall();
                overall.AverageBreakTime             = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Overall.AverageBreakTime");
                overall.AverageHoldTime              = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Overall.AverageHoldTime");
                overall.AverageReadyTime             = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Overall.AverageReadyTime");
                overall.AverageTalkTime              = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Overall.AverageTalkTime");
                overall.AverageWorkTime              = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Overall.AverageWorkTime");
                overall.MaxBreakTime                 = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Overall.MaxBreakTime");
                overall.MaxHoldTime                  = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Overall.MaxHoldTime");
                overall.MaxReadyTime                 = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Overall.MaxReadyTime");
                overall.MaxTalkTime                  = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Overall.MaxTalkTime");
                overall.MaxWorkTime                  = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Overall.MaxWorkTime");
                overall.OccupancyRate                = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Overall.OccupancyRate");
                overall.SatisfactionIndex            = _ctx.FloatValue("ListIntervalInstanceReport.Data[" + i + "].Overall.SatisfactionIndex");
                overall.SatisfactionSurveysOffered   = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Overall.SatisfactionSurveysOffered");
                overall.SatisfactionSurveysResponded = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Overall.SatisfactionSurveysResponded");
                overall.TotalBreakTime               = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Overall.TotalBreakTime");
                overall.TotalCalls        = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Overall.TotalCalls");
                overall.TotalHoldTime     = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Overall.TotalHoldTime");
                overall.TotalLoggedInTime = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Overall.TotalLoggedInTime");
                overall.TotalReadyTime    = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Overall.TotalReadyTime");
                overall.TotalTalkTime     = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Overall.TotalTalkTime");
                overall.TotalWorkTime     = _ctx.LongValue("ListIntervalInstanceReport.Data[" + i + "].Overall.TotalWorkTime");
                dataItem.Overall          = overall;

                listIntervalInstanceReportResponse_data.Add(dataItem);
            }
            listIntervalInstanceReportResponse.Data = listIntervalInstanceReportResponse_data;

            return(listIntervalInstanceReportResponse);
        }
        public static OnsConsumerStatusResponse Unmarshall(UnmarshallerContext _ctx)
        {
            OnsConsumerStatusResponse onsConsumerStatusResponse = new OnsConsumerStatusResponse();

            onsConsumerStatusResponse.HttpResponse = _ctx.HttpResponse;
            onsConsumerStatusResponse.RequestId    = _ctx.StringValue("OnsConsumerStatus.RequestId");
            onsConsumerStatusResponse.HelpUrl      = _ctx.StringValue("OnsConsumerStatus.HelpUrl");

            OnsConsumerStatusResponse.OnsConsumerStatus_Data data = new OnsConsumerStatusResponse.OnsConsumerStatus_Data();
            data.Online           = _ctx.BooleanValue("OnsConsumerStatus.Data.Online");
            data.TotalDiff        = _ctx.LongValue("OnsConsumerStatus.Data.TotalDiff");
            data.ConsumeTps       = _ctx.FloatValue("OnsConsumerStatus.Data.ConsumeTps");
            data.LastTimestamp    = _ctx.LongValue("OnsConsumerStatus.Data.LastTimestamp");
            data.DelayTime        = _ctx.LongValue("OnsConsumerStatus.Data.DelayTime");
            data.ConsumeModel     = _ctx.StringValue("OnsConsumerStatus.Data.ConsumeModel");
            data.SubscriptionSame = _ctx.BooleanValue("OnsConsumerStatus.Data.SubscriptionSame");
            data.RebalanceOK      = _ctx.BooleanValue("OnsConsumerStatus.Data.RebalanceOK");
            data.InstanceId       = _ctx.StringValue("OnsConsumerStatus.Data.InstanceId");

            List <OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_ConnectionDo> data_connectionSet = new List <OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_ConnectionDo>();

            for (int i = 0; i < _ctx.Length("OnsConsumerStatus.Data.ConnectionSet.Length"); i++)
            {
                OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_ConnectionDo connectionDo = new OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_ConnectionDo();
                connectionDo.ClientId   = _ctx.StringValue("OnsConsumerStatus.Data.ConnectionSet[" + i + "].ClientId");
                connectionDo.ClientAddr = _ctx.StringValue("OnsConsumerStatus.Data.ConnectionSet[" + i + "].ClientAddr");
                connectionDo.Language   = _ctx.StringValue("OnsConsumerStatus.Data.ConnectionSet[" + i + "].Language");
                connectionDo.Version    = _ctx.StringValue("OnsConsumerStatus.Data.ConnectionSet[" + i + "].Version");
                connectionDo.RemoteIP   = _ctx.StringValue("OnsConsumerStatus.Data.ConnectionSet[" + i + "].RemoteIP");

                data_connectionSet.Add(connectionDo);
            }
            data.ConnectionSet = data_connectionSet;

            List <OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_DetailInTopicDo> data_detailInTopicList = new List <OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_DetailInTopicDo>();

            for (int i = 0; i < _ctx.Length("OnsConsumerStatus.Data.DetailInTopicList.Length"); i++)
            {
                OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_DetailInTopicDo detailInTopicDo = new OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_DetailInTopicDo();
                detailInTopicDo.Topic         = _ctx.StringValue("OnsConsumerStatus.Data.DetailInTopicList[" + i + "].Topic");
                detailInTopicDo.TotalDiff     = _ctx.LongValue("OnsConsumerStatus.Data.DetailInTopicList[" + i + "].TotalDiff");
                detailInTopicDo.LastTimestamp = _ctx.LongValue("OnsConsumerStatus.Data.DetailInTopicList[" + i + "].LastTimestamp");
                detailInTopicDo.DelayTime     = _ctx.LongValue("OnsConsumerStatus.Data.DetailInTopicList[" + i + "].DelayTime");

                data_detailInTopicList.Add(detailInTopicDo);
            }
            data.DetailInTopicList = data_detailInTopicList;

            List <OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_ConsumerConnectionInfoDo> data_consumerConnectionInfoList = new List <OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_ConsumerConnectionInfoDo>();

            for (int i = 0; i < _ctx.Length("OnsConsumerStatus.Data.ConsumerConnectionInfoList.Length"); i++)
            {
                OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_ConsumerConnectionInfoDo consumerConnectionInfoDo = new OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_ConsumerConnectionInfoDo();
                consumerConnectionInfoDo.ClientId       = _ctx.StringValue("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].ClientId");
                consumerConnectionInfoDo.Connection     = _ctx.StringValue("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].Connection");
                consumerConnectionInfoDo.Language       = _ctx.StringValue("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].Language");
                consumerConnectionInfoDo.Version        = _ctx.StringValue("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].Version");
                consumerConnectionInfoDo.ConsumeModel   = _ctx.StringValue("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].ConsumeModel");
                consumerConnectionInfoDo.ConsumeType    = _ctx.StringValue("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].ConsumeType");
                consumerConnectionInfoDo.ThreadCount    = _ctx.IntegerValue("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].ThreadCount");
                consumerConnectionInfoDo.StartTimeStamp = _ctx.LongValue("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].StartTimeStamp");
                consumerConnectionInfoDo.LastTimeStamp  = _ctx.LongValue("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].LastTimeStamp");

                List <OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_ConsumerConnectionInfoDo.OnsConsumerStatus_SubscriptionData> consumerConnectionInfoDo_subscriptionSet = new List <OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_ConsumerConnectionInfoDo.OnsConsumerStatus_SubscriptionData>();
                for (int j = 0; j < _ctx.Length("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].SubscriptionSet.Length"); j++)
                {
                    OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_ConsumerConnectionInfoDo.OnsConsumerStatus_SubscriptionData subscriptionData = new OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_ConsumerConnectionInfoDo.OnsConsumerStatus_SubscriptionData();
                    subscriptionData.Topic      = _ctx.StringValue("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].SubscriptionSet[" + j + "].Topic");
                    subscriptionData.SubString  = _ctx.StringValue("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].SubscriptionSet[" + j + "].SubString");
                    subscriptionData.SubVersion = _ctx.LongValue("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].SubscriptionSet[" + j + "].SubVersion");

                    List <string> subscriptionData_tagsSet = new List <string>();
                    for (int k = 0; k < _ctx.Length("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].SubscriptionSet[" + j + "].TagsSet.Length"); k++)
                    {
                        subscriptionData_tagsSet.Add(_ctx.StringValue("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].SubscriptionSet[" + j + "].TagsSet[" + k + "]"));
                    }
                    subscriptionData.TagsSet = subscriptionData_tagsSet;

                    consumerConnectionInfoDo_subscriptionSet.Add(subscriptionData);
                }
                consumerConnectionInfoDo.SubscriptionSet = consumerConnectionInfoDo_subscriptionSet;

                List <OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_ConsumerConnectionInfoDo.OnsConsumerStatus_ConsumerRunningDataDo> consumerConnectionInfoDo_runningDataList = new List <OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_ConsumerConnectionInfoDo.OnsConsumerStatus_ConsumerRunningDataDo>();
                for (int j = 0; j < _ctx.Length("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].RunningDataList.Length"); j++)
                {
                    OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_ConsumerConnectionInfoDo.OnsConsumerStatus_ConsumerRunningDataDo consumerRunningDataDo = new OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_ConsumerConnectionInfoDo.OnsConsumerStatus_ConsumerRunningDataDo();
                    consumerRunningDataDo.GroupId            = _ctx.StringValue("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].RunningDataList[" + j + "].GroupId");
                    consumerRunningDataDo.Topic              = _ctx.StringValue("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].RunningDataList[" + j + "].Topic");
                    consumerRunningDataDo.Rt                 = _ctx.FloatValue("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].RunningDataList[" + j + "].Rt");
                    consumerRunningDataDo.OkTps              = _ctx.FloatValue("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].RunningDataList[" + j + "].OkTps");
                    consumerRunningDataDo.FailedTps          = _ctx.FloatValue("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].RunningDataList[" + j + "].FailedTps");
                    consumerRunningDataDo.FailedCountPerHour = _ctx.LongValue("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].RunningDataList[" + j + "].FailedCountPerHour");

                    consumerConnectionInfoDo_runningDataList.Add(consumerRunningDataDo);
                }
                consumerConnectionInfoDo.RunningDataList = consumerConnectionInfoDo_runningDataList;

                List <OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_ConsumerConnectionInfoDo.OnsConsumerStatus_ThreadTrackDo> consumerConnectionInfoDo_jstack = new List <OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_ConsumerConnectionInfoDo.OnsConsumerStatus_ThreadTrackDo>();
                for (int j = 0; j < _ctx.Length("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].Jstack.Length"); j++)
                {
                    OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_ConsumerConnectionInfoDo.OnsConsumerStatus_ThreadTrackDo threadTrackDo = new OnsConsumerStatusResponse.OnsConsumerStatus_Data.OnsConsumerStatus_ConsumerConnectionInfoDo.OnsConsumerStatus_ThreadTrackDo();
                    threadTrackDo.Thread = _ctx.StringValue("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].Jstack[" + j + "].Thread");

                    List <string> threadTrackDo_trackList = new List <string>();
                    for (int k = 0; k < _ctx.Length("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].Jstack[" + j + "].TrackList.Length"); k++)
                    {
                        threadTrackDo_trackList.Add(_ctx.StringValue("OnsConsumerStatus.Data.ConsumerConnectionInfoList[" + i + "].Jstack[" + j + "].TrackList[" + k + "]"));
                    }
                    threadTrackDo.TrackList = threadTrackDo_trackList;

                    consumerConnectionInfoDo_jstack.Add(threadTrackDo);
                }
                consumerConnectionInfoDo.Jstack = consumerConnectionInfoDo_jstack;

                data_consumerConnectionInfoList.Add(consumerConnectionInfoDo);
            }
            data.ConsumerConnectionInfoList = data_consumerConnectionInfoList;
            onsConsumerStatusResponse.Data  = data;

            return(onsConsumerStatusResponse);
        }
        public static DescribeDataTotalCountResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeDataTotalCountResponse describeDataTotalCountResponse = new DescribeDataTotalCountResponse();

            describeDataTotalCountResponse.HttpResponse = context.HttpResponse;
            describeDataTotalCountResponse.RequestId    = context.StringValue("DescribeDataTotalCount.RequestId");

            DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount dataCount = new DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount();

            DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Instance instance = new DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Instance();
            instance.TotalCount         = context.LongValue("DescribeDataTotalCount.DataCount.Instance.TotalCount");
            instance.Count              = context.LongValue("DescribeDataTotalCount.DataCount.Instance.Count");
            instance.SensitiveCount     = context.LongValue("DescribeDataTotalCount.DataCount.Instance.SensitiveCount");
            instance.LastCount          = context.LongValue("DescribeDataTotalCount.DataCount.Instance.LastCount");
            instance.LastSensitiveCount = context.LongValue("DescribeDataTotalCount.DataCount.Instance.LastSensitiveCount");

            List <DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Instance.DescribeDataTotalCount_RiskCount> instance_riskCountList = new List <DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Instance.DescribeDataTotalCount_RiskCount>();

            for (int i = 0; i < context.Length("DescribeDataTotalCount.DataCount.Instance.RiskCountList.Length"); i++)
            {
                DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Instance.DescribeDataTotalCount_RiskCount riskCount = new DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Instance.DescribeDataTotalCount_RiskCount();
                riskCount.Id    = context.LongValue("DescribeDataTotalCount.DataCount.Instance.RiskCountList[" + i + "].Id");
                riskCount.Name  = context.StringValue("DescribeDataTotalCount.DataCount.Instance.RiskCountList[" + i + "].Name");
                riskCount.Count = context.LongValue("DescribeDataTotalCount.DataCount.Instance.RiskCountList[" + i + "].Count");

                instance_riskCountList.Add(riskCount);
            }
            instance.RiskCountList = instance_riskCountList;
            dataCount.Instance     = instance;

            DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Table table = new DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Table();
            table.TotalCount         = context.LongValue("DescribeDataTotalCount.DataCount.Table.TotalCount");
            table.Count              = context.LongValue("DescribeDataTotalCount.DataCount.Table.Count");
            table.SensitiveCount     = context.LongValue("DescribeDataTotalCount.DataCount.Table.SensitiveCount");
            table.LastCount          = context.LongValue("DescribeDataTotalCount.DataCount.Table.LastCount");
            table.LastSensitiveCount = context.LongValue("DescribeDataTotalCount.DataCount.Table.LastSensitiveCount");

            List <DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Table.DescribeDataTotalCount_RiskCount2> table_riskCountList1 = new List <DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Table.DescribeDataTotalCount_RiskCount2>();

            for (int i = 0; i < context.Length("DescribeDataTotalCount.DataCount.Table.RiskCountList.Length"); i++)
            {
                DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Table.DescribeDataTotalCount_RiskCount2 riskCount2 = new DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Table.DescribeDataTotalCount_RiskCount2();
                riskCount2.Id    = context.LongValue("DescribeDataTotalCount.DataCount.Table.RiskCountList[" + i + "].Id");
                riskCount2.Name  = context.StringValue("DescribeDataTotalCount.DataCount.Table.RiskCountList[" + i + "].Name");
                riskCount2.Count = context.LongValue("DescribeDataTotalCount.DataCount.Table.RiskCountList[" + i + "].Count");

                table_riskCountList1.Add(riskCount2);
            }
            table.RiskCountList1 = table_riskCountList1;
            dataCount.Table      = table;

            DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Package package = new DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Package();
            package.TotalCount         = context.LongValue("DescribeDataTotalCount.DataCount.Package.TotalCount");
            package.Count              = context.LongValue("DescribeDataTotalCount.DataCount.Package.Count");
            package.SensitiveCount     = context.LongValue("DescribeDataTotalCount.DataCount.Package.SensitiveCount");
            package.LastCount          = context.LongValue("DescribeDataTotalCount.DataCount.Package.LastCount");
            package.LastSensitiveCount = context.LongValue("DescribeDataTotalCount.DataCount.Package.LastSensitiveCount");

            List <DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Package.DescribeDataTotalCount_RiskCount4> package_riskCountList3 = new List <DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Package.DescribeDataTotalCount_RiskCount4>();

            for (int i = 0; i < context.Length("DescribeDataTotalCount.DataCount.Package.RiskCountList.Length"); i++)
            {
                DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Package.DescribeDataTotalCount_RiskCount4 riskCount4 = new DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Package.DescribeDataTotalCount_RiskCount4();
                riskCount4.Id    = context.LongValue("DescribeDataTotalCount.DataCount.Package.RiskCountList[" + i + "].Id");
                riskCount4.Name  = context.StringValue("DescribeDataTotalCount.DataCount.Package.RiskCountList[" + i + "].Name");
                riskCount4.Count = context.LongValue("DescribeDataTotalCount.DataCount.Package.RiskCountList[" + i + "].Count");

                package_riskCountList3.Add(riskCount4);
            }
            package.RiskCountList3 = package_riskCountList3;
            dataCount.Package      = package;

            DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Column column = new DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Column();
            column.TotalCount         = context.LongValue("DescribeDataTotalCount.DataCount.Column.TotalCount");
            column.Count              = context.LongValue("DescribeDataTotalCount.DataCount.Column.Count");
            column.SensitiveCount     = context.LongValue("DescribeDataTotalCount.DataCount.Column.SensitiveCount");
            column.LastCount          = context.LongValue("DescribeDataTotalCount.DataCount.Column.LastCount");
            column.LastSensitiveCount = context.LongValue("DescribeDataTotalCount.DataCount.Column.LastSensitiveCount");

            List <DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Column.DescribeDataTotalCount_RiskCount6> column_riskCountList5 = new List <DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Column.DescribeDataTotalCount_RiskCount6>();

            for (int i = 0; i < context.Length("DescribeDataTotalCount.DataCount.Column.RiskCountList.Length"); i++)
            {
                DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Column.DescribeDataTotalCount_RiskCount6 riskCount6 = new DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Column.DescribeDataTotalCount_RiskCount6();
                riskCount6.Id    = context.LongValue("DescribeDataTotalCount.DataCount.Column.RiskCountList[" + i + "].Id");
                riskCount6.Name  = context.StringValue("DescribeDataTotalCount.DataCount.Column.RiskCountList[" + i + "].Name");
                riskCount6.Count = context.LongValue("DescribeDataTotalCount.DataCount.Column.RiskCountList[" + i + "].Count");

                column_riskCountList5.Add(riskCount6);
            }
            column.RiskCountList5 = column_riskCountList5;
            dataCount.Column      = column;

            DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Oss oss = new DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Oss();
            oss.TotalCount         = context.LongValue("DescribeDataTotalCount.DataCount.Oss.TotalCount");
            oss.Count              = context.LongValue("DescribeDataTotalCount.DataCount.Oss.Count");
            oss.SensitiveCount     = context.LongValue("DescribeDataTotalCount.DataCount.Oss.SensitiveCount");
            oss.LastCount          = context.LongValue("DescribeDataTotalCount.DataCount.Oss.LastCount");
            oss.LastSensitiveCount = context.LongValue("DescribeDataTotalCount.DataCount.Oss.LastSensitiveCount");

            List <DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Oss.DescribeDataTotalCount_RiskCount8> oss_riskCountList7 = new List <DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Oss.DescribeDataTotalCount_RiskCount8>();

            for (int i = 0; i < context.Length("DescribeDataTotalCount.DataCount.Oss.RiskCountList.Length"); i++)
            {
                DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Oss.DescribeDataTotalCount_RiskCount8 riskCount8 = new DescribeDataTotalCountResponse.DescribeDataTotalCount_DataCount.DescribeDataTotalCount_Oss.DescribeDataTotalCount_RiskCount8();
                riskCount8.Id    = context.LongValue("DescribeDataTotalCount.DataCount.Oss.RiskCountList[" + i + "].Id");
                riskCount8.Name  = context.StringValue("DescribeDataTotalCount.DataCount.Oss.RiskCountList[" + i + "].Name");
                riskCount8.Count = context.LongValue("DescribeDataTotalCount.DataCount.Oss.RiskCountList[" + i + "].Count");

                oss_riskCountList7.Add(riskCount8);
            }
            oss.RiskCountList7 = oss_riskCountList7;
            dataCount.Oss      = oss;
            describeDataTotalCountResponse.DataCount = dataCount;

            return(describeDataTotalCountResponse);
        }
        public static DescribeDBInstanceAttributeResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeDBInstanceAttributeResponse describeDBInstanceAttributeResponse = new DescribeDBInstanceAttributeResponse();

            describeDBInstanceAttributeResponse.HttpResponse = context.HttpResponse;
            describeDBInstanceAttributeResponse.RequestId    = context.StringValue("DescribeDBInstanceAttribute.RequestId");

            List <DescribeDBInstanceAttributeResponse.DescribeDBInstanceAttribute_DBInstanceAttribute> describeDBInstanceAttributeResponse_items = new List <DescribeDBInstanceAttributeResponse.DescribeDBInstanceAttribute_DBInstanceAttribute>();

            for (int i = 0; i < context.Length("DescribeDBInstanceAttribute.Items.Length"); i++)
            {
                DescribeDBInstanceAttributeResponse.DescribeDBInstanceAttribute_DBInstanceAttribute dBInstanceAttribute = new DescribeDBInstanceAttributeResponse.DescribeDBInstanceAttribute_DBInstanceAttribute();
                dBInstanceAttribute.IPType                            = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].IPType");
                dBInstanceAttribute.DBInstanceDiskUsed                = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].DBInstanceDiskUsed");
                dBInstanceAttribute.GuardDBInstanceName               = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].GuardDBInstanceName");
                dBInstanceAttribute.CanTempUpgrade                    = context.BooleanValue("DescribeDBInstanceAttribute.Items[" + i + "].CanTempUpgrade");
                dBInstanceAttribute.TempUpgradeTimeStart              = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].TempUpgradeTimeStart");
                dBInstanceAttribute.TempUpgradeTimeEnd                = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].TempUpgradeTimeEnd");
                dBInstanceAttribute.TempUpgradeRecoveryTime           = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].TempUpgradeRecoveryTime");
                dBInstanceAttribute.TempUpgradeRecoveryClass          = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].TempUpgradeRecoveryClass");
                dBInstanceAttribute.TempUpgradeRecoveryCpu            = context.IntegerValue("DescribeDBInstanceAttribute.Items[" + i + "].TempUpgradeRecoveryCpu");
                dBInstanceAttribute.TempUpgradeRecoveryMemory         = context.IntegerValue("DescribeDBInstanceAttribute.Items[" + i + "].TempUpgradeRecoveryMemory");
                dBInstanceAttribute.TempUpgradeRecoveryMaxIOPS        = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].TempUpgradeRecoveryMaxIOPS");
                dBInstanceAttribute.TempUpgradeRecoveryMaxConnections = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].TempUpgradeRecoveryMaxConnections");
                dBInstanceAttribute.InsId               = context.IntegerValue("DescribeDBInstanceAttribute.Items[" + i + "].InsId");
                dBInstanceAttribute.DBInstanceId        = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].DBInstanceId");
                dBInstanceAttribute.PayType             = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].PayType");
                dBInstanceAttribute.DBInstanceClassType = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].DBInstanceClassType");
                dBInstanceAttribute.DBInstanceType      = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].DBInstanceType");
                dBInstanceAttribute.RegionId            = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].RegionId");
                dBInstanceAttribute.ConnectionString    = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].ConnectionString");
                dBInstanceAttribute.Port                           = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].Port");
                dBInstanceAttribute.Engine                         = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].Engine");
                dBInstanceAttribute.EngineVersion                  = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].EngineVersion");
                dBInstanceAttribute.DBInstanceClass                = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].DBInstanceClass");
                dBInstanceAttribute.DBInstanceMemory               = context.LongValue("DescribeDBInstanceAttribute.Items[" + i + "].DBInstanceMemory");
                dBInstanceAttribute.DBInstanceStorage              = context.IntegerValue("DescribeDBInstanceAttribute.Items[" + i + "].DBInstanceStorage");
                dBInstanceAttribute.VpcCloudInstanceId             = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].VpcCloudInstanceId");
                dBInstanceAttribute.DBInstanceNetType              = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].DBInstanceNetType");
                dBInstanceAttribute.DBInstanceStatus               = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].DBInstanceStatus");
                dBInstanceAttribute.DBInstanceDescription          = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].DBInstanceDescription");
                dBInstanceAttribute.LockMode                       = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].LockMode");
                dBInstanceAttribute.LockReason                     = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].LockReason");
                dBInstanceAttribute.ReadDelayTime                  = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].ReadDelayTime");
                dBInstanceAttribute.DBMaxQuantity                  = context.IntegerValue("DescribeDBInstanceAttribute.Items[" + i + "].DBMaxQuantity");
                dBInstanceAttribute.AccountMaxQuantity             = context.IntegerValue("DescribeDBInstanceAttribute.Items[" + i + "].AccountMaxQuantity");
                dBInstanceAttribute.CreationTime                   = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].CreationTime");
                dBInstanceAttribute.ExpireTime                     = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].ExpireTime");
                dBInstanceAttribute.MaintainTime                   = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].MaintainTime");
                dBInstanceAttribute.AvailabilityValue              = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].AvailabilityValue");
                dBInstanceAttribute.MaxIOPS                        = context.IntegerValue("DescribeDBInstanceAttribute.Items[" + i + "].MaxIOPS");
                dBInstanceAttribute.MaxConnections                 = context.IntegerValue("DescribeDBInstanceAttribute.Items[" + i + "].MaxConnections");
                dBInstanceAttribute.MasterInstanceId               = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].MasterInstanceId");
                dBInstanceAttribute.DBInstanceCPU                  = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].DBInstanceCPU");
                dBInstanceAttribute.IncrementSourceDBInstanceId    = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].IncrementSourceDBInstanceId");
                dBInstanceAttribute.GuardDBInstanceId              = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].GuardDBInstanceId");
                dBInstanceAttribute.ReplicateId                    = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].ReplicateId");
                dBInstanceAttribute.TempDBInstanceId               = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].TempDBInstanceId");
                dBInstanceAttribute.SecurityIPList                 = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].SecurityIPList");
                dBInstanceAttribute.ZoneId                         = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].ZoneId");
                dBInstanceAttribute.InstanceNetworkType            = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].InstanceNetworkType");
                dBInstanceAttribute.DBInstanceStorageType          = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].DBInstanceStorageType");
                dBInstanceAttribute.AdvancedFeatures               = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].AdvancedFeatures");
                dBInstanceAttribute.Category                       = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].Category");
                dBInstanceAttribute.AccountType                    = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].AccountType");
                dBInstanceAttribute.SupportUpgradeAccountType      = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].SupportUpgradeAccountType");
                dBInstanceAttribute.SupportCreateSuperAccount      = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].SupportCreateSuperAccount");
                dBInstanceAttribute.VpcId                          = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].VpcId");
                dBInstanceAttribute.VSwitchId                      = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].VSwitchId");
                dBInstanceAttribute.ConnectionMode                 = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].ConnectionMode");
                dBInstanceAttribute.CurrentKernelVersion           = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].CurrentKernelVersion");
                dBInstanceAttribute.LatestKernelVersion            = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].LatestKernelVersion");
                dBInstanceAttribute.ResourceGroupId                = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].ResourceGroupId");
                dBInstanceAttribute.ReadonlyInstanceSQLDelayedTime = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].ReadonlyInstanceSQLDelayedTime");
                dBInstanceAttribute.SecurityIPMode                 = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].SecurityIPMode");

                List <DescribeDBInstanceAttributeResponse.DescribeDBInstanceAttribute_DBInstanceAttribute.DescribeDBInstanceAttribute_ReadOnlyDBInstanceId> dBInstanceAttribute_readOnlyDBInstanceIds = new List <DescribeDBInstanceAttributeResponse.DescribeDBInstanceAttribute_DBInstanceAttribute.DescribeDBInstanceAttribute_ReadOnlyDBInstanceId>();
                for (int j = 0; j < context.Length("DescribeDBInstanceAttribute.Items[" + i + "].ReadOnlyDBInstanceIds.Length"); j++)
                {
                    DescribeDBInstanceAttributeResponse.DescribeDBInstanceAttribute_DBInstanceAttribute.DescribeDBInstanceAttribute_ReadOnlyDBInstanceId readOnlyDBInstanceId = new DescribeDBInstanceAttributeResponse.DescribeDBInstanceAttribute_DBInstanceAttribute.DescribeDBInstanceAttribute_ReadOnlyDBInstanceId();
                    readOnlyDBInstanceId.DBInstanceId = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].ReadOnlyDBInstanceIds[" + j + "].DBInstanceId");

                    dBInstanceAttribute_readOnlyDBInstanceIds.Add(readOnlyDBInstanceId);
                }
                dBInstanceAttribute.ReadOnlyDBInstanceIds = dBInstanceAttribute_readOnlyDBInstanceIds;

                describeDBInstanceAttributeResponse_items.Add(dBInstanceAttribute);
            }
            describeDBInstanceAttributeResponse.Items = describeDBInstanceAttributeResponse_items;

            return(describeDBInstanceAttributeResponse);
        }
Example #46
0
        public static DescribeVpcAttributeResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeVpcAttributeResponse describeVpcAttributeResponse = new DescribeVpcAttributeResponse();

            describeVpcAttributeResponse.HttpResponse       = context.HttpResponse;
            describeVpcAttributeResponse.RequestId          = context.StringValue("DescribeVpcAttribute.RequestId");
            describeVpcAttributeResponse.VpcId              = context.StringValue("DescribeVpcAttribute.VpcId");
            describeVpcAttributeResponse.RegionId           = context.StringValue("DescribeVpcAttribute.RegionId");
            describeVpcAttributeResponse.Status             = context.StringValue("DescribeVpcAttribute.Status");
            describeVpcAttributeResponse.VpcName            = context.StringValue("DescribeVpcAttribute.VpcName");
            describeVpcAttributeResponse.CreationTime       = context.StringValue("DescribeVpcAttribute.CreationTime");
            describeVpcAttributeResponse.CidrBlock          = context.StringValue("DescribeVpcAttribute.CidrBlock");
            describeVpcAttributeResponse.Ipv6CidrBlock      = context.StringValue("DescribeVpcAttribute.Ipv6CidrBlock");
            describeVpcAttributeResponse.VRouterId          = context.StringValue("DescribeVpcAttribute.VRouterId");
            describeVpcAttributeResponse.Description        = context.StringValue("DescribeVpcAttribute.Description");
            describeVpcAttributeResponse.IsDefault          = context.BooleanValue("DescribeVpcAttribute.IsDefault");
            describeVpcAttributeResponse.ClassicLinkEnabled = context.BooleanValue("DescribeVpcAttribute.ClassicLinkEnabled");
            describeVpcAttributeResponse.ResourceGroupId    = context.StringValue("DescribeVpcAttribute.ResourceGroupId");

            List <string> describeVpcAttributeResponse_vSwitchIds = new List <string>();

            for (int i = 0; i < context.Length("DescribeVpcAttribute.VSwitchIds.Length"); i++)
            {
                describeVpcAttributeResponse_vSwitchIds.Add(context.StringValue("DescribeVpcAttribute.VSwitchIds[" + i + "]"));
            }
            describeVpcAttributeResponse.VSwitchIds = describeVpcAttributeResponse_vSwitchIds;

            List <string> describeVpcAttributeResponse_userCidrs = new List <string>();

            for (int i = 0; i < context.Length("DescribeVpcAttribute.UserCidrs.Length"); i++)
            {
                describeVpcAttributeResponse_userCidrs.Add(context.StringValue("DescribeVpcAttribute.UserCidrs[" + i + "]"));
            }
            describeVpcAttributeResponse.UserCidrs = describeVpcAttributeResponse_userCidrs;

            List <DescribeVpcAttributeResponse.DescribeVpcAttribute_AssociatedCen> describeVpcAttributeResponse_associatedCens = new List <DescribeVpcAttributeResponse.DescribeVpcAttribute_AssociatedCen>();

            for (int i = 0; i < context.Length("DescribeVpcAttribute.AssociatedCens.Length"); i++)
            {
                DescribeVpcAttributeResponse.DescribeVpcAttribute_AssociatedCen associatedCen = new DescribeVpcAttributeResponse.DescribeVpcAttribute_AssociatedCen();
                associatedCen.CenId      = context.StringValue("DescribeVpcAttribute.AssociatedCens[" + i + "].CenId");
                associatedCen.CenOwnerId = context.LongValue("DescribeVpcAttribute.AssociatedCens[" + i + "].CenOwnerId");
                associatedCen.CenStatus  = context.StringValue("DescribeVpcAttribute.AssociatedCens[" + i + "].CenStatus");

                describeVpcAttributeResponse_associatedCens.Add(associatedCen);
            }
            describeVpcAttributeResponse.AssociatedCens = describeVpcAttributeResponse_associatedCens;

            List <DescribeVpcAttributeResponse.DescribeVpcAttribute_CloudResourceSetType> describeVpcAttributeResponse_cloudResources = new List <DescribeVpcAttributeResponse.DescribeVpcAttribute_CloudResourceSetType>();

            for (int i = 0; i < context.Length("DescribeVpcAttribute.CloudResources.Length"); i++)
            {
                DescribeVpcAttributeResponse.DescribeVpcAttribute_CloudResourceSetType cloudResourceSetType = new DescribeVpcAttributeResponse.DescribeVpcAttribute_CloudResourceSetType();
                cloudResourceSetType.ResourceType  = context.StringValue("DescribeVpcAttribute.CloudResources[" + i + "].ResourceType");
                cloudResourceSetType.ResourceCount = context.IntegerValue("DescribeVpcAttribute.CloudResources[" + i + "].ResourceCount");

                describeVpcAttributeResponse_cloudResources.Add(cloudResourceSetType);
            }
            describeVpcAttributeResponse.CloudResources = describeVpcAttributeResponse_cloudResources;

            return(describeVpcAttributeResponse);
        }
        public static QueryAnalysisJobListResponse Unmarshall(UnmarshallerContext context)
        {
            QueryAnalysisJobListResponse queryAnalysisJobListResponse = new QueryAnalysisJobListResponse();

            queryAnalysisJobListResponse.HttpResponse = context.HttpResponse;
            queryAnalysisJobListResponse.RequestId    = context.StringValue("QueryAnalysisJobList.RequestId");

            List <string> nonExistAnalysisJobIds = new List <string>();

            for (int i = 0; i < context.Length("QueryAnalysisJobList.NonExistAnalysisJobIds.Length"); i++)
            {
                nonExistAnalysisJobIds.Add(context.StringValue("QueryAnalysisJobList.NonExistAnalysisJobIds[" + i + "]"));
            }
            queryAnalysisJobListResponse.NonExistAnalysisJobIds = nonExistAnalysisJobIds;

            List <QueryAnalysisJobListResponse.AnalysisJob> analysisJobList = new List <QueryAnalysisJobListResponse.AnalysisJob>();

            for (int i = 0; i < context.Length("QueryAnalysisJobList.AnalysisJobList.Length"); i++)
            {
                QueryAnalysisJobListResponse.AnalysisJob analysisJob = new QueryAnalysisJobListResponse.AnalysisJob();
                analysisJob.Id           = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].Id");
                analysisJob.UserData     = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].UserData");
                analysisJob.State        = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].State");
                analysisJob.Code         = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].Code");
                analysisJob.Message      = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].Message");
                analysisJob.Percent      = context.LongValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].Percent");
                analysisJob.CreationTime = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].CreationTime");
                analysisJob.PipelineId   = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].PipelineId");
                analysisJob.Priority     = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].Priority");

                QueryAnalysisJobListResponse.AnalysisJob.InputFile_ inputFile = new QueryAnalysisJobListResponse.AnalysisJob.InputFile_();
                inputFile.Bucket      = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].InputFile.Bucket");
                inputFile.Location    = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].InputFile.Location");
                inputFile.Object      = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].InputFile.Object");
                analysisJob.InputFile = inputFile;

                QueryAnalysisJobListResponse.AnalysisJob.AnalysisConfig_ analysisConfig = new QueryAnalysisJobListResponse.AnalysisJob.AnalysisConfig_();

                QueryAnalysisJobListResponse.AnalysisJob.AnalysisConfig_.QualityControl_ qualityControl = new QueryAnalysisJobListResponse.AnalysisJob.AnalysisConfig_.QualityControl_();
                qualityControl.RateQuality     = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].AnalysisConfig.QualityControl.RateQuality");
                qualityControl.MethodStreaming = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].AnalysisConfig.QualityControl.MethodStreaming");
                analysisConfig.QualityControl  = qualityControl;

                QueryAnalysisJobListResponse.AnalysisJob.AnalysisConfig_.PropertiesControl_ propertiesControl = new QueryAnalysisJobListResponse.AnalysisJob.AnalysisConfig_.PropertiesControl_();
                propertiesControl.Deinterlace = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].AnalysisConfig.PropertiesControl.Deinterlace");

                QueryAnalysisJobListResponse.AnalysisJob.AnalysisConfig_.PropertiesControl_.Crop_ crop = new QueryAnalysisJobListResponse.AnalysisJob.AnalysisConfig_.PropertiesControl_.Crop_();
                crop.Mode                        = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].AnalysisConfig.PropertiesControl.Crop.Mode");
                crop.Width                       = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].AnalysisConfig.PropertiesControl.Crop.Width");
                crop.Height                      = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].AnalysisConfig.PropertiesControl.Crop.Height");
                crop.Top                         = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].AnalysisConfig.PropertiesControl.Crop.Top");
                crop.Left                        = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].AnalysisConfig.PropertiesControl.Crop.Left");
                propertiesControl.Crop           = crop;
                analysisConfig.PropertiesControl = propertiesControl;
                analysisJob.AnalysisConfig       = analysisConfig;

                QueryAnalysisJobListResponse.AnalysisJob.MNSMessageResult_ mNSMessageResult = new QueryAnalysisJobListResponse.AnalysisJob.MNSMessageResult_();
                mNSMessageResult.MessageId    = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].MNSMessageResult.MessageId");
                mNSMessageResult.ErrorMessage = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].MNSMessageResult.ErrorMessage");
                mNSMessageResult.ErrorCode    = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].MNSMessageResult.ErrorCode");
                analysisJob.MNSMessageResult  = mNSMessageResult;

                List <QueryAnalysisJobListResponse.AnalysisJob.Template> templateList = new List <QueryAnalysisJobListResponse.AnalysisJob.Template>();
                for (int j = 0; j < context.Length("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList.Length"); j++)
                {
                    QueryAnalysisJobListResponse.AnalysisJob.Template template = new QueryAnalysisJobListResponse.AnalysisJob.Template();
                    template.Id    = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Id");
                    template.Name  = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Name");
                    template.State = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].State");

                    QueryAnalysisJobListResponse.AnalysisJob.Template.Container_ container = new QueryAnalysisJobListResponse.AnalysisJob.Template.Container_();
                    container.Format   = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Container.Format");
                    template.Container = container;

                    QueryAnalysisJobListResponse.AnalysisJob.Template.Video_ video = new QueryAnalysisJobListResponse.AnalysisJob.Template.Video_();
                    video.Codec    = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Video.Codec");
                    video.Profile  = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Video.Profile");
                    video.Bitrate  = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Video.Bitrate");
                    video.Crf      = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Video.Crf");
                    video.Width    = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Video.Width");
                    video.Height   = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Video.Height");
                    video.Fps      = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Video.Fps");
                    video.Gop      = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Video.Gop");
                    video.Preset   = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Video.Preset");
                    video.ScanMode = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Video.ScanMode");
                    video.Bufsize  = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Video.Bufsize");
                    video.Maxrate  = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Video.Maxrate");
                    video.PixFmt   = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Video.PixFmt");
                    video.Degrain  = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Video.Degrain");
                    video.Qscale   = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Video.Qscale");

                    QueryAnalysisJobListResponse.AnalysisJob.Template.Video_.BitrateBnd_ bitrateBnd = new QueryAnalysisJobListResponse.AnalysisJob.Template.Video_.BitrateBnd_();
                    bitrateBnd.Max   = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Video.BitrateBnd.Max");
                    bitrateBnd.Min   = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Video.BitrateBnd.Min");
                    video.BitrateBnd = bitrateBnd;
                    template.Video   = video;

                    QueryAnalysisJobListResponse.AnalysisJob.Template.Audio_ audio = new QueryAnalysisJobListResponse.AnalysisJob.Template.Audio_();
                    audio.Codec      = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Audio.Codec");
                    audio.Profile    = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Audio.Profile");
                    audio.Samplerate = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Audio.Samplerate");
                    audio.Bitrate    = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Audio.Bitrate");
                    audio.Channels   = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Audio.Channels");
                    audio.Qscale     = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].Audio.Qscale");
                    template.Audio   = audio;

                    QueryAnalysisJobListResponse.AnalysisJob.Template.TransConfig_ transConfig = new QueryAnalysisJobListResponse.AnalysisJob.Template.TransConfig_();
                    transConfig.TransMode = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].TransConfig.TransMode");
                    template.TransConfig  = transConfig;

                    QueryAnalysisJobListResponse.AnalysisJob.Template.MuxConfig_ muxConfig = new QueryAnalysisJobListResponse.AnalysisJob.Template.MuxConfig_();

                    QueryAnalysisJobListResponse.AnalysisJob.Template.MuxConfig_.Segment_ segment = new QueryAnalysisJobListResponse.AnalysisJob.Template.MuxConfig_.Segment_();
                    segment.Duration  = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].MuxConfig.Segment.Duration");
                    muxConfig.Segment = segment;

                    QueryAnalysisJobListResponse.AnalysisJob.Template.MuxConfig_.Gif_ gif = new QueryAnalysisJobListResponse.AnalysisJob.Template.MuxConfig_.Gif_();
                    gif.Loop           = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].MuxConfig.Gif.Loop");
                    gif.FinalDelay     = context.StringValue("QueryAnalysisJobList.AnalysisJobList[" + i + "].TemplateList[" + j + "].MuxConfig.Gif.FinalDelay");
                    muxConfig.Gif      = gif;
                    template.MuxConfig = muxConfig;

                    templateList.Add(template);
                }
                analysisJob.TemplateList = templateList;

                analysisJobList.Add(analysisJob);
            }
            queryAnalysisJobListResponse.AnalysisJobList = analysisJobList;

            return(queryAnalysisJobListResponse);
        }
        public static ScreenChestCTResponse Unmarshall(UnmarshallerContext _ctx)
        {
            ScreenChestCTResponse screenChestCTResponse = new ScreenChestCTResponse();

            screenChestCTResponse.HttpResponse = _ctx.HttpResponse;
            screenChestCTResponse.RequestId    = _ctx.StringValue("ScreenChestCT.RequestId");
            screenChestCTResponse.Code         = _ctx.StringValue("ScreenChestCT.Code");
            screenChestCTResponse.Message      = _ctx.StringValue("ScreenChestCT.Message");

            ScreenChestCTResponse.ScreenChestCT_Data data = new ScreenChestCTResponse.ScreenChestCT_Data();
            data.ErrorMessage = _ctx.StringValue("ScreenChestCT.Data.ErrorMessage");

            ScreenChestCTResponse.ScreenChestCT_Data.ScreenChestCT_LungNodule lungNodule = new ScreenChestCTResponse.ScreenChestCT_Data.ScreenChestCT_LungNodule();

            List <ScreenChestCTResponse.ScreenChestCT_Data.ScreenChestCT_LungNodule.ScreenChestCT_Serie> lungNodule_series = new List <ScreenChestCTResponse.ScreenChestCT_Data.ScreenChestCT_LungNodule.ScreenChestCT_Serie>();

            for (int i = 0; i < _ctx.Length("ScreenChestCT.Data.LungNodule.Series.Length"); i++)
            {
                ScreenChestCTResponse.ScreenChestCT_Data.ScreenChestCT_LungNodule.ScreenChestCT_Serie serie = new ScreenChestCTResponse.ScreenChestCT_Data.ScreenChestCT_LungNodule.ScreenChestCT_Serie();
                serie.SeriesInstanceUid = _ctx.StringValue("ScreenChestCT.Data.LungNodule.Series[" + i + "].SeriesInstanceUid");
                serie.Report            = _ctx.StringValue("ScreenChestCT.Data.LungNodule.Series[" + i + "].Report");

                List <string> serie_origin = new List <string>();
                for (int j = 0; j < _ctx.Length("ScreenChestCT.Data.LungNodule.Series[" + i + "].Origin.Length"); j++)
                {
                    serie_origin.Add(_ctx.StringValue("ScreenChestCT.Data.LungNodule.Series[" + i + "].Origin[" + j + "]"));
                }
                serie.Origin = serie_origin;

                List <string> serie_spacing = new List <string>();
                for (int j = 0; j < _ctx.Length("ScreenChestCT.Data.LungNodule.Series[" + i + "].Spacing.Length"); j++)
                {
                    serie_spacing.Add(_ctx.StringValue("ScreenChestCT.Data.LungNodule.Series[" + i + "].Spacing[" + j + "]"));
                }
                serie.Spacing = serie_spacing;

                List <ScreenChestCTResponse.ScreenChestCT_Data.ScreenChestCT_LungNodule.ScreenChestCT_Serie.ScreenChestCT_Element> serie_elements = new List <ScreenChestCTResponse.ScreenChestCT_Data.ScreenChestCT_LungNodule.ScreenChestCT_Serie.ScreenChestCT_Element>();
                for (int j = 0; j < _ctx.Length("ScreenChestCT.Data.LungNodule.Series[" + i + "].Elements.Length"); j++)
                {
                    ScreenChestCTResponse.ScreenChestCT_Data.ScreenChestCT_LungNodule.ScreenChestCT_Serie.ScreenChestCT_Element element = new ScreenChestCTResponse.ScreenChestCT_Data.ScreenChestCT_LungNodule.ScreenChestCT_Serie.ScreenChestCT_Element();
                    element.Lobe           = _ctx.StringValue("ScreenChestCT.Data.LungNodule.Series[" + i + "].Elements[" + j + "].Lobe");
                    element.MeanValue      = _ctx.FloatValue("ScreenChestCT.Data.LungNodule.Series[" + i + "].Elements[" + j + "].MeanValue");
                    element.Lung           = _ctx.StringValue("ScreenChestCT.Data.LungNodule.Series[" + i + "].Elements[" + j + "].Lung");
                    element.Confidence     = _ctx.FloatValue("ScreenChestCT.Data.LungNodule.Series[" + i + "].Elements[" + j + "].Confidence");
                    element.SOPInstanceUID = _ctx.StringValue("ScreenChestCT.Data.LungNodule.Series[" + i + "].Elements[" + j + "].SOPInstanceUID");
                    element.Category       = _ctx.StringValue("ScreenChestCT.Data.LungNodule.Series[" + i + "].Elements[" + j + "].Category");
                    element.Volume         = _ctx.FloatValue("ScreenChestCT.Data.LungNodule.Series[" + i + "].Elements[" + j + "].Volume");
                    element.Diameter       = _ctx.FloatValue("ScreenChestCT.Data.LungNodule.Series[" + i + "].Elements[" + j + "].Diameter");
                    element.X      = _ctx.FloatValue("ScreenChestCT.Data.LungNodule.Series[" + i + "].Elements[" + j + "].X");
                    element.Y      = _ctx.FloatValue("ScreenChestCT.Data.LungNodule.Series[" + i + "].Elements[" + j + "].Y");
                    element.Z      = _ctx.FloatValue("ScreenChestCT.Data.LungNodule.Series[" + i + "].Elements[" + j + "].Z");
                    element.ImageX = _ctx.FloatValue("ScreenChestCT.Data.LungNodule.Series[" + i + "].Elements[" + j + "].ImageX");
                    element.ImageY = _ctx.FloatValue("ScreenChestCT.Data.LungNodule.Series[" + i + "].Elements[" + j + "].ImageY");
                    element.ImageZ = _ctx.FloatValue("ScreenChestCT.Data.LungNodule.Series[" + i + "].Elements[" + j + "].ImageZ");

                    serie_elements.Add(element);
                }
                serie.Elements = serie_elements;

                lungNodule_series.Add(serie);
            }
            lungNodule.Series = lungNodule_series;
            data.LungNodule   = lungNodule;

            ScreenChestCTResponse.ScreenChestCT_Data.ScreenChestCT_CACS cACS = new ScreenChestCTResponse.ScreenChestCT_Data.ScreenChestCT_CACS();
            cACS.ResultUrl = _ctx.StringValue("ScreenChestCT.Data.CACS.ResultUrl");
            cACS.Score     = _ctx.StringValue("ScreenChestCT.Data.CACS.Score");
            data.CACS      = cACS;

            ScreenChestCTResponse.ScreenChestCT_Data.ScreenChestCT_Covid covid = new ScreenChestCTResponse.ScreenChestCT_Data.ScreenChestCT_Covid();
            covid.NormalProbability = _ctx.StringValue("ScreenChestCT.Data.Covid.NormalProbability");
            covid.NewProbability    = _ctx.StringValue("ScreenChestCT.Data.Covid.NewProbability");
            covid.LesionRatio       = _ctx.StringValue("ScreenChestCT.Data.Covid.LesionRatio");
            covid.OtherProbability  = _ctx.StringValue("ScreenChestCT.Data.Covid.OtherProbability");
            covid.Mask = _ctx.StringValue("ScreenChestCT.Data.Covid.Mask");
            data.Covid = covid;

            ScreenChestCTResponse.ScreenChestCT_Data.ScreenChestCT_DetectRibFracture detectRibFracture = new ScreenChestCTResponse.ScreenChestCT_Data.ScreenChestCT_DetectRibFracture();
            detectRibFracture.ResultURL = _ctx.StringValue("ScreenChestCT.Data.DetectRibFracture.ResultURL");

            List <string> detectRibFracture_spacing1 = new List <string>();

            for (int i = 0; i < _ctx.Length("ScreenChestCT.Data.DetectRibFracture.Spacing.Length"); i++)
            {
                detectRibFracture_spacing1.Add(_ctx.StringValue("ScreenChestCT.Data.DetectRibFracture.Spacing[" + i + "]"));
            }
            detectRibFracture.Spacing1 = detectRibFracture_spacing1;

            List <string> detectRibFracture_origin2 = new List <string>();

            for (int i = 0; i < _ctx.Length("ScreenChestCT.Data.DetectRibFracture.Origin.Length"); i++)
            {
                detectRibFracture_origin2.Add(_ctx.StringValue("ScreenChestCT.Data.DetectRibFracture.Origin[" + i + "]"));
            }
            detectRibFracture.Origin2 = detectRibFracture_origin2;

            List <ScreenChestCTResponse.ScreenChestCT_Data.ScreenChestCT_DetectRibFracture.ScreenChestCT_DetectionsItem> detectRibFracture_detections = new List <ScreenChestCTResponse.ScreenChestCT_Data.ScreenChestCT_DetectRibFracture.ScreenChestCT_DetectionsItem>();

            for (int i = 0; i < _ctx.Length("ScreenChestCT.Data.DetectRibFracture.Detections.Length"); i++)
            {
                ScreenChestCTResponse.ScreenChestCT_Data.ScreenChestCT_DetectRibFracture.ScreenChestCT_DetectionsItem detectionsItem = new ScreenChestCTResponse.ScreenChestCT_Data.ScreenChestCT_DetectRibFracture.ScreenChestCT_DetectionsItem();
                detectionsItem.FractureId         = _ctx.LongValue("ScreenChestCT.Data.DetectRibFracture.Detections[" + i + "].FractureId");
                detectionsItem.FractureConfidence = _ctx.FloatValue("ScreenChestCT.Data.DetectRibFracture.Detections[" + i + "].FractureConfidence");
                detectionsItem.FractureCategory   = _ctx.LongValue("ScreenChestCT.Data.DetectRibFracture.Detections[" + i + "].FractureCategory");
                detectionsItem.FractureLocation   = _ctx.StringValue("ScreenChestCT.Data.DetectRibFracture.Detections[" + i + "].FractureLocation");
                detectionsItem.FractureSegment    = _ctx.LongValue("ScreenChestCT.Data.DetectRibFracture.Detections[" + i + "].FractureSegment");

                List <string> detectionsItem_coordinates = new List <string>();
                for (int j = 0; j < _ctx.Length("ScreenChestCT.Data.DetectRibFracture.Detections[" + i + "].Coordinates.Length"); j++)
                {
                    detectionsItem_coordinates.Add(_ctx.StringValue("ScreenChestCT.Data.DetectRibFracture.Detections[" + i + "].Coordinates[" + j + "]"));
                }
                detectionsItem.Coordinates = detectionsItem_coordinates;

                List <string> detectionsItem_coordinateImage = new List <string>();
                for (int j = 0; j < _ctx.Length("ScreenChestCT.Data.DetectRibFracture.Detections[" + i + "].CoordinateImage.Length"); j++)
                {
                    detectionsItem_coordinateImage.Add(_ctx.StringValue("ScreenChestCT.Data.DetectRibFracture.Detections[" + i + "].CoordinateImage[" + j + "]"));
                }
                detectionsItem.CoordinateImage = detectionsItem_coordinateImage;

                detectRibFracture_detections.Add(detectionsItem);
            }
            detectRibFracture.Detections = detectRibFracture_detections;
            data.DetectRibFracture       = detectRibFracture;
            screenChestCTResponse.Data   = data;

            return(screenChestCTResponse);
        }
        public static DescribeClusterTemplateResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeClusterTemplateResponse describeClusterTemplateResponse = new DescribeClusterTemplateResponse();

            describeClusterTemplateResponse.HttpResponse = context.HttpResponse;
            describeClusterTemplateResponse.RequestId    = context.StringValue("DescribeClusterTemplate.RequestId");

            DescribeClusterTemplateResponse.DescribeClusterTemplate_TemplateInfo templateInfo = new DescribeClusterTemplateResponse.DescribeClusterTemplate_TemplateInfo();
            templateInfo.Id                     = context.StringValue("DescribeClusterTemplate.TemplateInfo.Id");
            templateInfo.TemplateName           = context.StringValue("DescribeClusterTemplate.TemplateInfo.TemplateName");
            templateInfo.EmrVer                 = context.StringValue("DescribeClusterTemplate.TemplateInfo.EmrVer");
            templateInfo.LogEnable              = context.BooleanValue("DescribeClusterTemplate.TemplateInfo.LogEnable");
            templateInfo.LogPath                = context.StringValue("DescribeClusterTemplate.TemplateInfo.LogPath");
            templateInfo.UserId                 = context.StringValue("DescribeClusterTemplate.TemplateInfo.UserId");
            templateInfo.UserDefinedEmrEcsRole  = context.StringValue("DescribeClusterTemplate.TemplateInfo.UserDefinedEmrEcsRole");
            templateInfo.MasterNodeTotal        = context.IntegerValue("DescribeClusterTemplate.TemplateInfo.MasterNodeTotal");
            templateInfo.VpcId                  = context.StringValue("DescribeClusterTemplate.TemplateInfo.VpcId");
            templateInfo.VSwitchId              = context.StringValue("DescribeClusterTemplate.TemplateInfo.VSwitchId");
            templateInfo.NetType                = context.StringValue("DescribeClusterTemplate.TemplateInfo.NetType");
            templateInfo.IoOptimized            = context.BooleanValue("DescribeClusterTemplate.TemplateInfo.IoOptimized");
            templateInfo.InstanceGeneration     = context.StringValue("DescribeClusterTemplate.TemplateInfo.InstanceGeneration");
            templateInfo.HighAvailabilityEnable = context.BooleanValue("DescribeClusterTemplate.TemplateInfo.HighAvailabilityEnable");
            templateInfo.EasEnable              = context.BooleanValue("DescribeClusterTemplate.TemplateInfo.EasEnable");
            templateInfo.GmtCreate              = context.LongValue("DescribeClusterTemplate.TemplateInfo.GmtCreate");
            templateInfo.GmtModified            = context.LongValue("DescribeClusterTemplate.TemplateInfo.GmtModified");
            templateInfo.ZoneId                 = context.StringValue("DescribeClusterTemplate.TemplateInfo.ZoneId");
            templateInfo.ClusterType            = context.StringValue("DescribeClusterTemplate.TemplateInfo.ClusterType");
            templateInfo.SecurityGroupId        = context.StringValue("DescribeClusterTemplate.TemplateInfo.SecurityGroupId");
            templateInfo.SecurityGroupName      = context.StringValue("DescribeClusterTemplate.TemplateInfo.SecurityGroupName");
            templateInfo.Configurations         = context.StringValue("DescribeClusterTemplate.TemplateInfo.Configurations");
            templateInfo.AllowNotebook          = context.BooleanValue("DescribeClusterTemplate.TemplateInfo.AllowNotebook");
            templateInfo.CreateSource           = context.StringValue("DescribeClusterTemplate.TemplateInfo.CreateSource");
            templateInfo.UseLocalMetaDb         = context.BooleanValue("DescribeClusterTemplate.TemplateInfo.UseLocalMetaDb");
            templateInfo.SshEnable              = context.BooleanValue("DescribeClusterTemplate.TemplateInfo.SshEnable");
            templateInfo.IsOpenPublicIp         = context.BooleanValue("DescribeClusterTemplate.TemplateInfo.IsOpenPublicIp");
            templateInfo.DepositType            = context.StringValue("DescribeClusterTemplate.TemplateInfo.DepositType");
            templateInfo.MachineType            = context.StringValue("DescribeClusterTemplate.TemplateInfo.MachineType");
            templateInfo.UseCustomHiveMetaDb    = context.BooleanValue("DescribeClusterTemplate.TemplateInfo.UseCustomHiveMetaDb");
            templateInfo.InitCustomHiveMetaDb   = context.BooleanValue("DescribeClusterTemplate.TemplateInfo.InitCustomHiveMetaDb");

            List <string> templateInfo_softwareInfoList = new List <string>();

            for (int i = 0; i < context.Length("DescribeClusterTemplate.TemplateInfo.SoftwareInfoList.Length"); i++)
            {
                templateInfo_softwareInfoList.Add(context.StringValue("DescribeClusterTemplate.TemplateInfo.SoftwareInfoList[" + i + "]"));
            }
            templateInfo.SoftwareInfoList = templateInfo_softwareInfoList;

            List <DescribeClusterTemplateResponse.DescribeClusterTemplate_TemplateInfo.DescribeClusterTemplate_BootstrapAction> templateInfo_bootstrapActionList = new List <DescribeClusterTemplateResponse.DescribeClusterTemplate_TemplateInfo.DescribeClusterTemplate_BootstrapAction>();

            for (int i = 0; i < context.Length("DescribeClusterTemplate.TemplateInfo.BootstrapActionList.Length"); i++)
            {
                DescribeClusterTemplateResponse.DescribeClusterTemplate_TemplateInfo.DescribeClusterTemplate_BootstrapAction bootstrapAction = new DescribeClusterTemplateResponse.DescribeClusterTemplate_TemplateInfo.DescribeClusterTemplate_BootstrapAction();
                bootstrapAction.Name = context.StringValue("DescribeClusterTemplate.TemplateInfo.BootstrapActionList[" + i + "].Name");
                bootstrapAction.Path = context.StringValue("DescribeClusterTemplate.TemplateInfo.BootstrapActionList[" + i + "].Path");
                bootstrapAction.Arg  = context.StringValue("DescribeClusterTemplate.TemplateInfo.BootstrapActionList[" + i + "].Arg");

                templateInfo_bootstrapActionList.Add(bootstrapAction);
            }
            templateInfo.BootstrapActionList = templateInfo_bootstrapActionList;

            List <DescribeClusterTemplateResponse.DescribeClusterTemplate_TemplateInfo.DescribeClusterTemplate_HostGroup> templateInfo_hostGroupList = new List <DescribeClusterTemplateResponse.DescribeClusterTemplate_TemplateInfo.DescribeClusterTemplate_HostGroup>();

            for (int i = 0; i < context.Length("DescribeClusterTemplate.TemplateInfo.HostGroupList.Length"); i++)
            {
                DescribeClusterTemplateResponse.DescribeClusterTemplate_TemplateInfo.DescribeClusterTemplate_HostGroup hostGroup = new DescribeClusterTemplateResponse.DescribeClusterTemplate_TemplateInfo.DescribeClusterTemplate_HostGroup();
                hostGroup.HostGroupId        = context.StringValue("DescribeClusterTemplate.TemplateInfo.HostGroupList[" + i + "].HostGroupId");
                hostGroup.HostGroupName      = context.StringValue("DescribeClusterTemplate.TemplateInfo.HostGroupList[" + i + "].HostGroupName");
                hostGroup.HostGroupType      = context.StringValue("DescribeClusterTemplate.TemplateInfo.HostGroupList[" + i + "].HostGroupType");
                hostGroup.ChargeType         = context.StringValue("DescribeClusterTemplate.TemplateInfo.HostGroupList[" + i + "].ChargeType");
                hostGroup.Period             = context.StringValue("DescribeClusterTemplate.TemplateInfo.HostGroupList[" + i + "].Period");
                hostGroup.NodeCount          = context.IntegerValue("DescribeClusterTemplate.TemplateInfo.HostGroupList[" + i + "].NodeCount");
                hostGroup.InstanceType       = context.StringValue("DescribeClusterTemplate.TemplateInfo.HostGroupList[" + i + "].InstanceType");
                hostGroup.DiskType           = context.StringValue("DescribeClusterTemplate.TemplateInfo.HostGroupList[" + i + "].DiskType");
                hostGroup.DiskCapacity       = context.IntegerValue("DescribeClusterTemplate.TemplateInfo.HostGroupList[" + i + "].DiskCapacity");
                hostGroup.DiskCount          = context.IntegerValue("DescribeClusterTemplate.TemplateInfo.HostGroupList[" + i + "].DiskCount");
                hostGroup.SysDiskType        = context.StringValue("DescribeClusterTemplate.TemplateInfo.HostGroupList[" + i + "].SysDiskType");
                hostGroup.SysDiskCapacity    = context.IntegerValue("DescribeClusterTemplate.TemplateInfo.HostGroupList[" + i + "].SysDiskCapacity");
                hostGroup.MultiInstanceTypes = context.StringValue("DescribeClusterTemplate.TemplateInfo.HostGroupList[" + i + "].MultiInstanceTypes");

                templateInfo_hostGroupList.Add(hostGroup);
            }
            templateInfo.HostGroupList = templateInfo_hostGroupList;

            List <DescribeClusterTemplateResponse.DescribeClusterTemplate_TemplateInfo.DescribeClusterTemplate_Config> templateInfo_configList = new List <DescribeClusterTemplateResponse.DescribeClusterTemplate_TemplateInfo.DescribeClusterTemplate_Config>();

            for (int i = 0; i < context.Length("DescribeClusterTemplate.TemplateInfo.ConfigList.Length"); i++)
            {
                DescribeClusterTemplateResponse.DescribeClusterTemplate_TemplateInfo.DescribeClusterTemplate_Config config = new DescribeClusterTemplateResponse.DescribeClusterTemplate_TemplateInfo.DescribeClusterTemplate_Config();
                config.ServiceName = context.StringValue("DescribeClusterTemplate.TemplateInfo.ConfigList[" + i + "].ServiceName");
                config.FileName    = context.StringValue("DescribeClusterTemplate.TemplateInfo.ConfigList[" + i + "].FileName");
                config.ConfigKey   = context.StringValue("DescribeClusterTemplate.TemplateInfo.ConfigList[" + i + "].ConfigKey");
                config.ConfigValue = context.StringValue("DescribeClusterTemplate.TemplateInfo.ConfigList[" + i + "].ConfigValue");
                config.Encrypt     = context.StringValue("DescribeClusterTemplate.TemplateInfo.ConfigList[" + i + "].Encrypt");
                config.Replace     = context.StringValue("DescribeClusterTemplate.TemplateInfo.ConfigList[" + i + "].Replace");

                templateInfo_configList.Add(config);
            }
            templateInfo.ConfigList = templateInfo_configList;
            describeClusterTemplateResponse.TemplateInfo = templateInfo;

            return(describeClusterTemplateResponse);
        }
Example #50
0
        public static GetJobResponse Unmarshall(UnmarshallerContext _ctx)
        {
            GetJobResponse getJobResponse = new GetJobResponse();

            getJobResponse.HttpResponse   = _ctx.HttpResponse;
            getJobResponse.RequestId      = _ctx.StringValue("GetJob.RequestId");
            getJobResponse.Success        = _ctx.BooleanValue("GetJob.Success");
            getJobResponse.Code           = _ctx.StringValue("GetJob.Code");
            getJobResponse.Message        = _ctx.StringValue("GetJob.Message");
            getJobResponse.HttpStatusCode = _ctx.IntegerValue("GetJob.HttpStatusCode");

            GetJobResponse.GetJob_Job job = new GetJobResponse.GetJob_Job();
            job.JobId          = _ctx.StringValue("GetJob.Job.JobId");
            job.GroupId        = _ctx.StringValue("GetJob.Job.GroupId");
            job.ScenarioId     = _ctx.StringValue("GetJob.Job.ScenarioId");
            job.StrategyId     = _ctx.StringValue("GetJob.Job.StrategyId");
            job.Priority       = _ctx.IntegerValue("GetJob.Job.Priority");
            job.SystemPriority = _ctx.IntegerValue("GetJob.Job.SystemPriority");
            job.Status         = _ctx.StringValue("GetJob.Job.Status");
            job.ReferenceId    = _ctx.StringValue("GetJob.Job.ReferenceId");
            job.FailureReason  = _ctx.StringValue("GetJob.Job.FailureReason");

            List <string> job_callingNumbers = new List <string>();

            for (int i = 0; i < _ctx.Length("GetJob.Job.CallingNumbers.Length"); i++)
            {
                job_callingNumbers.Add(_ctx.StringValue("GetJob.Job.CallingNumbers[" + i + "]"));
            }
            job.CallingNumbers = job_callingNumbers;

            List <GetJobResponse.GetJob_Job.GetJob_Contact> job_contacts = new List <GetJobResponse.GetJob_Job.GetJob_Contact>();

            for (int i = 0; i < _ctx.Length("GetJob.Job.Contacts.Length"); i++)
            {
                GetJobResponse.GetJob_Job.GetJob_Contact contact = new GetJobResponse.GetJob_Job.GetJob_Contact();
                contact.ContactId   = _ctx.StringValue("GetJob.Job.Contacts[" + i + "].ContactId");
                contact.ContactName = _ctx.StringValue("GetJob.Job.Contacts[" + i + "].ContactName");
                contact.Honorific   = _ctx.StringValue("GetJob.Job.Contacts[" + i + "].Honorific");
                contact.Role        = _ctx.StringValue("GetJob.Job.Contacts[" + i + "].Role");
                contact.PhoneNumber = _ctx.StringValue("GetJob.Job.Contacts[" + i + "].PhoneNumber");
                contact.State       = _ctx.StringValue("GetJob.Job.Contacts[" + i + "].State");
                contact.ReferenceId = _ctx.StringValue("GetJob.Job.Contacts[" + i + "].ReferenceId");

                job_contacts.Add(contact);
            }
            job.Contacts = job_contacts;

            List <GetJobResponse.GetJob_Job.GetJob_KeyValuePair> job_extras = new List <GetJobResponse.GetJob_Job.GetJob_KeyValuePair>();

            for (int i = 0; i < _ctx.Length("GetJob.Job.Extras.Length"); i++)
            {
                GetJobResponse.GetJob_Job.GetJob_KeyValuePair keyValuePair = new GetJobResponse.GetJob_Job.GetJob_KeyValuePair();
                keyValuePair.Key    = _ctx.StringValue("GetJob.Job.Extras[" + i + "].Key");
                keyValuePair._Value = _ctx.StringValue("GetJob.Job.Extras[" + i + "].Value");

                job_extras.Add(keyValuePair);
            }
            job.Extras = job_extras;

            List <GetJobResponse.GetJob_Job.GetJob_Task> job_tasks = new List <GetJobResponse.GetJob_Job.GetJob_Task>();

            for (int i = 0; i < _ctx.Length("GetJob.Job.Tasks.Length"); i++)
            {
                GetJobResponse.GetJob_Job.GetJob_Task task = new GetJobResponse.GetJob_Job.GetJob_Task();
                task.TaskId        = _ctx.StringValue("GetJob.Job.Tasks[" + i + "].TaskId");
                task.JobId         = _ctx.StringValue("GetJob.Job.Tasks[" + i + "].JobId");
                task.ScenarioId    = _ctx.StringValue("GetJob.Job.Tasks[" + i + "].ScenarioId");
                task.ChatbotId     = _ctx.StringValue("GetJob.Job.Tasks[" + i + "].ChatbotId");
                task.PlanedTime    = _ctx.LongValue("GetJob.Job.Tasks[" + i + "].PlanedTime");
                task.ActualTime    = _ctx.LongValue("GetJob.Job.Tasks[" + i + "].ActualTime");
                task.CallingNumber = _ctx.StringValue("GetJob.Job.Tasks[" + i + "].CallingNumber");
                task.CalledNumber  = _ctx.StringValue("GetJob.Job.Tasks[" + i + "].CalledNumber");
                task.CallId        = _ctx.StringValue("GetJob.Job.Tasks[" + i + "].CallId");
                task.Status        = _ctx.StringValue("GetJob.Job.Tasks[" + i + "].Status");
                task.Brief         = _ctx.StringValue("GetJob.Job.Tasks[" + i + "].Brief");
                task.Duration      = _ctx.IntegerValue("GetJob.Job.Tasks[" + i + "].Duration");

                GetJobResponse.GetJob_Job.GetJob_Task.GetJob_Contact2 contact2 = new GetJobResponse.GetJob_Job.GetJob_Task.GetJob_Contact2();
                contact2.ContactId   = _ctx.StringValue("GetJob.Job.Tasks[" + i + "].Contact.ContactId");
                contact2.ContactName = _ctx.StringValue("GetJob.Job.Tasks[" + i + "].Contact.ContactName");
                contact2.Honorific   = _ctx.StringValue("GetJob.Job.Tasks[" + i + "].Contact.Honorific");
                contact2.Role        = _ctx.StringValue("GetJob.Job.Tasks[" + i + "].Contact.Role");
                contact2.PhoneNumber = _ctx.StringValue("GetJob.Job.Tasks[" + i + "].Contact.PhoneNumber");
                contact2.State       = _ctx.StringValue("GetJob.Job.Tasks[" + i + "].Contact.State");
                contact2.ReferenceId = _ctx.StringValue("GetJob.Job.Tasks[" + i + "].Contact.ReferenceId");
                task.Contact2        = contact2;

                List <GetJobResponse.GetJob_Job.GetJob_Task.GetJob_ConversationDetail> task_conversation = new List <GetJobResponse.GetJob_Job.GetJob_Task.GetJob_ConversationDetail>();
                for (int j = 0; j < _ctx.Length("GetJob.Job.Tasks[" + i + "].Conversation.Length"); j++)
                {
                    GetJobResponse.GetJob_Job.GetJob_Task.GetJob_ConversationDetail conversationDetail = new GetJobResponse.GetJob_Job.GetJob_Task.GetJob_ConversationDetail();
                    conversationDetail.Timestamp = _ctx.LongValue("GetJob.Job.Tasks[" + i + "].Conversation[" + j + "].Timestamp");
                    conversationDetail.Speaker   = _ctx.StringValue("GetJob.Job.Tasks[" + i + "].Conversation[" + j + "].Speaker");
                    conversationDetail.Script    = _ctx.StringValue("GetJob.Job.Tasks[" + i + "].Conversation[" + j + "].Script");

                    List <GetJobResponse.GetJob_Job.GetJob_Task.GetJob_ConversationDetail.GetJob_SummaryItem> conversationDetail_summary1 = new List <GetJobResponse.GetJob_Job.GetJob_Task.GetJob_ConversationDetail.GetJob_SummaryItem>();
                    for (int k = 0; k < _ctx.Length("GetJob.Job.Tasks[" + i + "].Conversation[" + j + "].Summary.Length"); k++)
                    {
                        GetJobResponse.GetJob_Job.GetJob_Task.GetJob_ConversationDetail.GetJob_SummaryItem summaryItem = new GetJobResponse.GetJob_Job.GetJob_Task.GetJob_ConversationDetail.GetJob_SummaryItem();
                        summaryItem.Category    = _ctx.StringValue("GetJob.Job.Tasks[" + i + "].Conversation[" + j + "].Summary[" + k + "].Category");
                        summaryItem.SummaryName = _ctx.StringValue("GetJob.Job.Tasks[" + i + "].Conversation[" + j + "].Summary[" + k + "].SummaryName");
                        summaryItem.Content     = _ctx.StringValue("GetJob.Job.Tasks[" + i + "].Conversation[" + j + "].Summary[" + k + "].Content");

                        conversationDetail_summary1.Add(summaryItem);
                    }
                    conversationDetail.Summary1 = conversationDetail_summary1;

                    task_conversation.Add(conversationDetail);
                }
                task.Conversation = task_conversation;

                job_tasks.Add(task);
            }
            job.Tasks = job_tasks;

            List <GetJobResponse.GetJob_Job.GetJob_SummaryItem3> job_summary = new List <GetJobResponse.GetJob_Job.GetJob_SummaryItem3>();

            for (int i = 0; i < _ctx.Length("GetJob.Job.Summary.Length"); i++)
            {
                GetJobResponse.GetJob_Job.GetJob_SummaryItem3 summaryItem3 = new GetJobResponse.GetJob_Job.GetJob_SummaryItem3();
                summaryItem3.Category    = _ctx.StringValue("GetJob.Job.Summary[" + i + "].Category");
                summaryItem3.SummaryName = _ctx.StringValue("GetJob.Job.Summary[" + i + "].SummaryName");
                summaryItem3.Content     = _ctx.StringValue("GetJob.Job.Summary[" + i + "].Content");

                job_summary.Add(summaryItem3);
            }
            job.Summary        = job_summary;
            getJobResponse.Job = job;

            return(getJobResponse);
        }
        public static DescribeInstanceResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeInstanceResponse describeInstanceResponse = new DescribeInstanceResponse();

            describeInstanceResponse.HttpResponse = context.HttpResponse;
            describeInstanceResponse.RequestId    = context.StringValue("DescribeInstance.RequestId");

            DescribeInstanceResponse.DescribeInstance_Result result = new DescribeInstanceResponse.DescribeInstance_Result();
            result.InstanceId             = context.StringValue("DescribeInstance.Result.InstanceId");
            result.Domain                 = context.StringValue("DescribeInstance.Result.Domain");
            result.Description            = context.StringValue("DescribeInstance.Result.Description");
            result.NodeAmount             = context.IntegerValue("DescribeInstance.Result.NodeAmount");
            result.PaymentType            = context.StringValue("DescribeInstance.Result.PaymentType");
            result.Status                 = context.StringValue("DescribeInstance.Result.Status");
            result.EsVersion              = context.StringValue("DescribeInstance.Result.EsVersion");
            result.CreatedAt              = context.StringValue("DescribeInstance.Result.CreatedAt");
            result.UpdatedAt              = context.StringValue("DescribeInstance.Result.UpdatedAt");
            result.KibanaDomain           = context.StringValue("DescribeInstance.Result.KibanaDomain");
            result.EnablePublic           = context.BooleanValue("DescribeInstance.Result.EnablePublic");
            result.DedicateMaster         = context.BooleanValue("DescribeInstance.Result.DedicateMaster");
            result.AdvancedDedicateMaster = context.BooleanValue("DescribeInstance.Result.AdvancedDedicateMaster");
            result.PublicPort             = context.IntegerValue("DescribeInstance.Result.PublicPort");
            result.KibanaPort             = context.IntegerValue("DescribeInstance.Result.KibanaPort");
            result.PublicDomain           = context.StringValue("DescribeInstance.Result.PublicDomain");
            result.VpcInstanceId          = context.StringValue("DescribeInstance.Result.VpcInstanceId");
            result.Port                      = context.IntegerValue("DescribeInstance.Result.Port");
            result.EsConfig                  = context.StringValue("DescribeInstance.Result.EsConfig");
            result.ZoneCount                 = context.IntegerValue("DescribeInstance.Result.ZoneCount");
            result.HaveClientNode            = context.BooleanValue("DescribeInstance.Result.HaveClientNode");
            result.WarmNode                  = context.BooleanValue("DescribeInstance.Result.WarmNode");
            result.Protocol                  = context.StringValue("DescribeInstance.Result.Protocol");
            result.EnableKibanaPublicNetwork = context.BooleanValue("DescribeInstance.Result.EnableKibanaPublicNetwork");
            result.HaveKibana                = context.BooleanValue("DescribeInstance.Result.HaveKibana");

            List <string> result_esIPWhitelist = new List <string>();

            for (int i = 0; i < context.Length("DescribeInstance.Result.EsIPWhitelist.Length"); i++)
            {
                result_esIPWhitelist.Add(context.StringValue("DescribeInstance.Result.EsIPWhitelist[" + i + "]"));
            }
            result.EsIPWhitelist = result_esIPWhitelist;

            List <string> result_esIPBlacklist = new List <string>();

            for (int i = 0; i < context.Length("DescribeInstance.Result.EsIPBlacklist.Length"); i++)
            {
                result_esIPBlacklist.Add(context.StringValue("DescribeInstance.Result.EsIPBlacklist[" + i + "]"));
            }
            result.EsIPBlacklist = result_esIPBlacklist;

            List <string> result_kibanaIPWhitelist = new List <string>();

            for (int i = 0; i < context.Length("DescribeInstance.Result.KibanaIPWhitelist.Length"); i++)
            {
                result_kibanaIPWhitelist.Add(context.StringValue("DescribeInstance.Result.KibanaIPWhitelist[" + i + "]"));
            }
            result.KibanaIPWhitelist = result_kibanaIPWhitelist;

            List <string> result_publicIpWhitelist = new List <string>();

            for (int i = 0; i < context.Length("DescribeInstance.Result.PublicIpWhitelist.Length"); i++)
            {
                result_publicIpWhitelist.Add(context.StringValue("DescribeInstance.Result.PublicIpWhitelist[" + i + "]"));
            }
            result.PublicIpWhitelist = result_publicIpWhitelist;

            List <string> result_privateNetworkIpWhiteList = new List <string>();

            for (int i = 0; i < context.Length("DescribeInstance.Result.PrivateNetworkIpWhiteList.Length"); i++)
            {
                result_privateNetworkIpWhiteList.Add(context.StringValue("DescribeInstance.Result.PrivateNetworkIpWhiteList[" + i + "]"));
            }
            result.PrivateNetworkIpWhiteList = result_privateNetworkIpWhiteList;

            DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_NodeSpec nodeSpec = new DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_NodeSpec();
            nodeSpec.Spec     = context.StringValue("DescribeInstance.Result.NodeSpec.Spec");
            nodeSpec.Disk     = context.IntegerValue("DescribeInstance.Result.NodeSpec.Disk");
            nodeSpec.DiskType = context.StringValue("DescribeInstance.Result.NodeSpec.DiskType");
            result.NodeSpec   = nodeSpec;

            DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_NetworkConfig networkConfig = new DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_NetworkConfig();
            networkConfig.Type      = context.StringValue("DescribeInstance.Result.NetworkConfig.Type");
            networkConfig.VpcId     = context.StringValue("DescribeInstance.Result.NetworkConfig.VpcId");
            networkConfig.VswitchId = context.StringValue("DescribeInstance.Result.NetworkConfig.VswitchId");
            networkConfig.VsArea    = context.StringValue("DescribeInstance.Result.NetworkConfig.VsArea");
            result.NetworkConfig    = networkConfig;

            DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_KibanaConfiguration kibanaConfiguration = new DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_KibanaConfiguration();
            kibanaConfiguration.Spec     = context.StringValue("DescribeInstance.Result.KibanaConfiguration.Spec");
            kibanaConfiguration.Amount   = context.IntegerValue("DescribeInstance.Result.KibanaConfiguration.Amount");
            kibanaConfiguration.DiskType = context.StringValue("DescribeInstance.Result.KibanaConfiguration.DiskType");
            kibanaConfiguration.Disk     = context.IntegerValue("DescribeInstance.Result.KibanaConfiguration.Disk");
            result.KibanaConfiguration   = kibanaConfiguration;

            DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_MasterConfiguration masterConfiguration = new DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_MasterConfiguration();
            masterConfiguration.Spec     = context.StringValue("DescribeInstance.Result.MasterConfiguration.Spec");
            masterConfiguration.Amount   = context.IntegerValue("DescribeInstance.Result.MasterConfiguration.Amount");
            masterConfiguration.DiskType = context.StringValue("DescribeInstance.Result.MasterConfiguration.DiskType");
            masterConfiguration.Disk     = context.IntegerValue("DescribeInstance.Result.MasterConfiguration.Disk");
            result.MasterConfiguration   = masterConfiguration;

            DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_ClientNodeConfiguration clientNodeConfiguration = new DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_ClientNodeConfiguration();
            clientNodeConfiguration.Spec     = context.StringValue("DescribeInstance.Result.ClientNodeConfiguration.Spec");
            clientNodeConfiguration.Amount   = context.IntegerValue("DescribeInstance.Result.ClientNodeConfiguration.Amount");
            clientNodeConfiguration.DiskType = context.StringValue("DescribeInstance.Result.ClientNodeConfiguration.DiskType");
            clientNodeConfiguration.Disk     = context.IntegerValue("DescribeInstance.Result.ClientNodeConfiguration.Disk");
            result.ClientNodeConfiguration   = clientNodeConfiguration;

            DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_WarmNodeConfiguration warmNodeConfiguration = new DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_WarmNodeConfiguration();
            warmNodeConfiguration.Spec     = context.StringValue("DescribeInstance.Result.WarmNodeConfiguration.Spec");
            warmNodeConfiguration.Amount   = context.IntegerValue("DescribeInstance.Result.WarmNodeConfiguration.Amount");
            warmNodeConfiguration.DiskType = context.StringValue("DescribeInstance.Result.WarmNodeConfiguration.DiskType");
            warmNodeConfiguration.Disk     = context.IntegerValue("DescribeInstance.Result.WarmNodeConfiguration.Disk");
            result.WarmNodeConfiguration   = warmNodeConfiguration;

            List <DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_DictListItem> result_dictList = new List <DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_DictListItem>();

            for (int i = 0; i < context.Length("DescribeInstance.Result.DictList.Length"); i++)
            {
                DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_DictListItem dictListItem = new DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_DictListItem();
                dictListItem.Name       = context.StringValue("DescribeInstance.Result.DictList[" + i + "].Name");
                dictListItem.FileSize   = context.LongValue("DescribeInstance.Result.DictList[" + i + "].FileSize");
                dictListItem.Type       = context.StringValue("DescribeInstance.Result.DictList[" + i + "].Type");
                dictListItem.SourceType = context.StringValue("DescribeInstance.Result.DictList[" + i + "].SourceType");

                result_dictList.Add(dictListItem);
            }
            result.DictList = result_dictList;

            List <DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_SynonymsDictsItem> result_synonymsDicts = new List <DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_SynonymsDictsItem>();

            for (int i = 0; i < context.Length("DescribeInstance.Result.SynonymsDicts.Length"); i++)
            {
                DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_SynonymsDictsItem synonymsDictsItem = new DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_SynonymsDictsItem();
                synonymsDictsItem.Name       = context.StringValue("DescribeInstance.Result.SynonymsDicts[" + i + "].Name");
                synonymsDictsItem.FileSize   = context.LongValue("DescribeInstance.Result.SynonymsDicts[" + i + "].FileSize");
                synonymsDictsItem.Type       = context.StringValue("DescribeInstance.Result.SynonymsDicts[" + i + "].Type");
                synonymsDictsItem.SourceType = context.StringValue("DescribeInstance.Result.SynonymsDicts[" + i + "].SourceType");

                result_synonymsDicts.Add(synonymsDictsItem);
            }
            result.SynonymsDicts = result_synonymsDicts;

            List <DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_ZoneInfo> result_zoneInfos = new List <DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_ZoneInfo>();

            for (int i = 0; i < context.Length("DescribeInstance.Result.ZoneInfos.Length"); i++)
            {
                DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_ZoneInfo zoneInfo = new DescribeInstanceResponse.DescribeInstance_Result.DescribeInstance_ZoneInfo();
                zoneInfo.ZoneId = context.StringValue("DescribeInstance.Result.ZoneInfos[" + i + "].ZoneId");
                zoneInfo.Status = context.StringValue("DescribeInstance.Result.ZoneInfos[" + i + "].Status");

                result_zoneInfos.Add(zoneInfo);
            }
            result.ZoneInfos = result_zoneInfos;
            describeInstanceResponse.Result = result;

            return(describeInstanceResponse);
        }
        public static GetFileResponse Unmarshall(UnmarshallerContext context)
        {
            GetFileResponse getFileResponse = new GetFileResponse();

            getFileResponse.HttpResponse   = context.HttpResponse;
            getFileResponse.RequestId      = context.StringValue("GetFile.RequestId");
            getFileResponse.Success        = context.BooleanValue("GetFile.Success");
            getFileResponse.ErrorCode      = context.StringValue("GetFile.ErrorCode");
            getFileResponse.ErrorMessage   = context.StringValue("GetFile.ErrorMessage");
            getFileResponse.HttpStatusCode = context.IntegerValue("GetFile.HttpStatusCode");

            GetFileResponse.GetFile_Data data = new GetFileResponse.GetFile_Data();

            GetFileResponse.GetFile_Data.GetFile_File file = new GetFileResponse.GetFile_Data.GetFile_File();
            file.ConnectionName  = context.StringValue("GetFile.Data.File.ConnectionName");
            file.ParentId        = context.LongValue("GetFile.Data.File.ParentId");
            file.IsMaxCompute    = context.BooleanValue("GetFile.Data.File.IsMaxCompute");
            file.CreateTime      = context.LongValue("GetFile.Data.File.CreateTime");
            file.CreateUser      = context.StringValue("GetFile.Data.File.CreateUser");
            file.BizId           = context.LongValue("GetFile.Data.File.BizId");
            file.FileFolderId    = context.StringValue("GetFile.Data.File.FileFolderId");
            file.FileName        = context.StringValue("GetFile.Data.File.FileName");
            file.FileType        = context.IntegerValue("GetFile.Data.File.FileType");
            file.UseType         = context.StringValue("GetFile.Data.File.UseType");
            file.FileDescription = context.StringValue("GetFile.Data.File.FileDescription");
            file.Content         = context.StringValue("GetFile.Data.File.Content");
            file.NodeId          = context.LongValue("GetFile.Data.File.NodeId");
            file.CurrentVersion  = context.IntegerValue("GetFile.Data.File.CurrentVersion");
            file.Owner           = context.StringValue("GetFile.Data.File.Owner");
            file.LastEditUser    = context.StringValue("GetFile.Data.File.LastEditUser");
            file.LastEditTime    = context.LongValue("GetFile.Data.File.LastEditTime");
            file.CommitStatus    = context.IntegerValue("GetFile.Data.File.CommitStatus");
            data.File            = file;

            GetFileResponse.GetFile_Data.GetFile_NodeConfiguration nodeConfiguration = new GetFileResponse.GetFile_Data.GetFile_NodeConfiguration();
            nodeConfiguration.AutoRerunTimes          = context.IntegerValue("GetFile.Data.NodeConfiguration.AutoRerunTimes");
            nodeConfiguration.AutoRerunIntervalMillis = context.IntegerValue("GetFile.Data.NodeConfiguration.AutoRerunIntervalMillis");
            nodeConfiguration.RerunMode           = context.StringValue("GetFile.Data.NodeConfiguration.RerunMode");
            nodeConfiguration.Stop                = context.BooleanValue("GetFile.Data.NodeConfiguration.Stop");
            nodeConfiguration.ParaValue           = context.StringValue("GetFile.Data.NodeConfiguration.ParaValue");
            nodeConfiguration.StartEffectDate     = context.LongValue("GetFile.Data.NodeConfiguration.StartEffectDate");
            nodeConfiguration.EndEffectDate       = context.LongValue("GetFile.Data.NodeConfiguration.EndEffectDate");
            nodeConfiguration.CronExpress         = context.StringValue("GetFile.Data.NodeConfiguration.CronExpress");
            nodeConfiguration.CycleType           = context.StringValue("GetFile.Data.NodeConfiguration.CycleType");
            nodeConfiguration.DependentType       = context.StringValue("GetFile.Data.NodeConfiguration.DependentType");
            nodeConfiguration.DependentNodeIdList = context.StringValue("GetFile.Data.NodeConfiguration.DependentNodeIdList");

            List <GetFileResponse.GetFile_Data.GetFile_NodeConfiguration.GetFile_NodeInputOutput> nodeConfiguration_inputList = new List <GetFileResponse.GetFile_Data.GetFile_NodeConfiguration.GetFile_NodeInputOutput>();

            for (int i = 0; i < context.Length("GetFile.Data.NodeConfiguration.InputList.Length"); i++)
            {
                GetFileResponse.GetFile_Data.GetFile_NodeConfiguration.GetFile_NodeInputOutput nodeInputOutput = new GetFileResponse.GetFile_Data.GetFile_NodeConfiguration.GetFile_NodeInputOutput();
                nodeInputOutput.Input = context.StringValue("GetFile.Data.NodeConfiguration.InputList[" + i + "].Input");

                nodeConfiguration_inputList.Add(nodeInputOutput);
            }
            nodeConfiguration.InputList = nodeConfiguration_inputList;

            List <GetFileResponse.GetFile_Data.GetFile_NodeConfiguration.GetFile_NodeInputOutput1> nodeConfiguration_outputList = new List <GetFileResponse.GetFile_Data.GetFile_NodeConfiguration.GetFile_NodeInputOutput1>();

            for (int i = 0; i < context.Length("GetFile.Data.NodeConfiguration.OutputList.Length"); i++)
            {
                GetFileResponse.GetFile_Data.GetFile_NodeConfiguration.GetFile_NodeInputOutput1 nodeInputOutput1 = new GetFileResponse.GetFile_Data.GetFile_NodeConfiguration.GetFile_NodeInputOutput1();
                nodeInputOutput1.Output       = context.StringValue("GetFile.Data.NodeConfiguration.OutputList[" + i + "].Output");
                nodeInputOutput1.RefTableName = context.StringValue("GetFile.Data.NodeConfiguration.OutputList[" + i + "].RefTableName");

                nodeConfiguration_outputList.Add(nodeInputOutput1);
            }
            nodeConfiguration.OutputList = nodeConfiguration_outputList;
            data.NodeConfiguration       = nodeConfiguration;
            getFileResponse.Data         = data;

            return(getFileResponse);
        }
        public static ListDataServicePublishedApisResponse Unmarshall(UnmarshallerContext context)
        {
            ListDataServicePublishedApisResponse listDataServicePublishedApisResponse = new ListDataServicePublishedApisResponse();

            listDataServicePublishedApisResponse.HttpResponse   = context.HttpResponse;
            listDataServicePublishedApisResponse.ErrorCode      = context.StringValue("ListDataServicePublishedApis.ErrorCode");
            listDataServicePublishedApisResponse.ErrorMessage   = context.StringValue("ListDataServicePublishedApis.ErrorMessage");
            listDataServicePublishedApisResponse.HttpStatusCode = context.IntegerValue("ListDataServicePublishedApis.HttpStatusCode");
            listDataServicePublishedApisResponse.RequestId      = context.StringValue("ListDataServicePublishedApis.RequestId");
            listDataServicePublishedApisResponse.Success        = context.BooleanValue("ListDataServicePublishedApis.Success");

            ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data data = new ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data();
            data.PageNumber = context.IntegerValue("ListDataServicePublishedApis.Data.PageNumber");
            data.PageSize   = context.IntegerValue("ListDataServicePublishedApis.Data.PageSize");
            data.TotalCount = context.IntegerValue("ListDataServicePublishedApis.Data.TotalCount");

            List <ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api> data_apis = new List <ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api>();

            for (int i = 0; i < context.Length("ListDataServicePublishedApis.Data.Apis.Length"); i++)
            {
                ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api api = new ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api();
                api.ApiId               = context.LongValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ApiId");
                api.ApiMode             = context.IntegerValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ApiMode");
                api.ApiName             = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ApiName");
                api.ApiPath             = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ApiPath");
                api.CreatedTime         = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].CreatedTime");
                api.CreatorId           = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].CreatorId");
                api.Description         = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].Description");
                api.GroupId             = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].GroupId");
                api.ModifiedTime        = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ModifiedTime");
                api.OperatorId          = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].OperatorId");
                api.ProjectId           = context.LongValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ProjectId");
                api.RequestMethod       = context.IntegerValue("ListDataServicePublishedApis.Data.Apis[" + i + "].RequestMethod");
                api.ResponseContentType = context.IntegerValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ResponseContentType");
                api.Status              = context.IntegerValue("ListDataServicePublishedApis.Data.Apis[" + i + "].Status");
                api.TenantId            = context.LongValue("ListDataServicePublishedApis.Data.Apis[" + i + "].TenantId");
                api.Timeout             = context.IntegerValue("ListDataServicePublishedApis.Data.Apis[" + i + "].Timeout");
                api.VisibleRange        = context.IntegerValue("ListDataServicePublishedApis.Data.Apis[" + i + "].VisibleRange");

                List <string> api_protocols = new List <string>();
                for (int j = 0; j < context.Length("ListDataServicePublishedApis.Data.Apis[" + i + "].Protocols.Length"); j++)
                {
                    api_protocols.Add(context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].Protocols[" + j + "]"));
                }
                api.Protocols = api_protocols;

                ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_RegistrationDetails registrationDetails = new ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_RegistrationDetails();
                registrationDetails.FailedResultSample            = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].RegistrationDetails.FailedResultSample");
                registrationDetails.ServiceContentType            = context.IntegerValue("ListDataServicePublishedApis.Data.Apis[" + i + "].RegistrationDetails.ServiceContentType");
                registrationDetails.ServiceHost                   = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].RegistrationDetails.ServiceHost");
                registrationDetails.ServicePath                   = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].RegistrationDetails.ServicePath");
                registrationDetails.ServiceRequestBodyDescription = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].RegistrationDetails.ServiceRequestBodyDescription");
                registrationDetails.SuccessfulResultSample        = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].RegistrationDetails.SuccessfulResultSample");

                List <ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_RegistrationDetails.ListDataServicePublishedApis_RegistrationErrorCode> registrationDetails_registrationErrorCodes = new List <ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_RegistrationDetails.ListDataServicePublishedApis_RegistrationErrorCode>();
                for (int j = 0; j < context.Length("ListDataServicePublishedApis.Data.Apis[" + i + "].RegistrationDetails.RegistrationErrorCodes.Length"); j++)
                {
                    ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_RegistrationDetails.ListDataServicePublishedApis_RegistrationErrorCode registrationErrorCode = new ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_RegistrationDetails.ListDataServicePublishedApis_RegistrationErrorCode();
                    registrationErrorCode.ErrorCode     = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].RegistrationDetails.RegistrationErrorCodes[" + j + "].ErrorCode");
                    registrationErrorCode.ErrorMessage  = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].RegistrationDetails.RegistrationErrorCodes[" + j + "].ErrorMessage");
                    registrationErrorCode.ErrorSolution = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].RegistrationDetails.RegistrationErrorCodes[" + j + "].ErrorSolution");

                    registrationDetails_registrationErrorCodes.Add(registrationErrorCode);
                }
                registrationDetails.RegistrationErrorCodes = registrationDetails_registrationErrorCodes;

                List <ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_RegistrationDetails.ListDataServicePublishedApis_RegistrationRequestParameter> registrationDetails_registrationRequestParameters = new List <ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_RegistrationDetails.ListDataServicePublishedApis_RegistrationRequestParameter>();
                for (int j = 0; j < context.Length("ListDataServicePublishedApis.Data.Apis[" + i + "].RegistrationDetails.RegistrationRequestParameters.Length"); j++)
                {
                    ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_RegistrationDetails.ListDataServicePublishedApis_RegistrationRequestParameter registrationRequestParameter = new ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_RegistrationDetails.ListDataServicePublishedApis_RegistrationRequestParameter();
                    registrationRequestParameter.DefaultValue         = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].RegistrationDetails.RegistrationRequestParameters[" + j + "].DefaultValue");
                    registrationRequestParameter.ExampleValue         = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].RegistrationDetails.RegistrationRequestParameters[" + j + "].ExampleValue");
                    registrationRequestParameter.IsRequiredParameter  = context.BooleanValue("ListDataServicePublishedApis.Data.Apis[" + i + "].RegistrationDetails.RegistrationRequestParameters[" + j + "].IsRequiredParameter");
                    registrationRequestParameter.ParameterDataType    = context.IntegerValue("ListDataServicePublishedApis.Data.Apis[" + i + "].RegistrationDetails.RegistrationRequestParameters[" + j + "].ParameterDataType");
                    registrationRequestParameter.ParameterDescription = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].RegistrationDetails.RegistrationRequestParameters[" + j + "].ParameterDescription");
                    registrationRequestParameter.ParameterName        = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].RegistrationDetails.RegistrationRequestParameters[" + j + "].ParameterName");
                    registrationRequestParameter.ParameterOperator    = context.IntegerValue("ListDataServicePublishedApis.Data.Apis[" + i + "].RegistrationDetails.RegistrationRequestParameters[" + j + "].ParameterOperator");
                    registrationRequestParameter.ParameterPosition    = context.IntegerValue("ListDataServicePublishedApis.Data.Apis[" + i + "].RegistrationDetails.RegistrationRequestParameters[" + j + "].ParameterPosition");

                    registrationDetails_registrationRequestParameters.Add(registrationRequestParameter);
                }
                registrationDetails.RegistrationRequestParameters = registrationDetails_registrationRequestParameters;
                api.RegistrationDetails = registrationDetails;

                ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_ScriptDetails scriptDetails = new ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_ScriptDetails();
                scriptDetails.FailedResultSample     = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.FailedResultSample");
                scriptDetails.IsPagedResponse        = context.BooleanValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.IsPagedResponse");
                scriptDetails.Script                 = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.Script");
                scriptDetails.SuccessfulResultSample = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.SuccessfulResultSample");

                ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_ScriptDetails.ListDataServicePublishedApis_ScriptConnection scriptConnection = new ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_ScriptDetails.ListDataServicePublishedApis_ScriptConnection();
                scriptConnection.ConnectionId  = context.LongValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.ScriptConnection.ConnectionId");
                scriptConnection.TableName     = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.ScriptConnection.TableName");
                scriptDetails.ScriptConnection = scriptConnection;

                List <ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_ScriptDetails.ListDataServicePublishedApis_ScriptErrorCode> scriptDetails_scriptErrorCodes = new List <ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_ScriptDetails.ListDataServicePublishedApis_ScriptErrorCode>();
                for (int j = 0; j < context.Length("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.ScriptErrorCodes.Length"); j++)
                {
                    ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_ScriptDetails.ListDataServicePublishedApis_ScriptErrorCode scriptErrorCode = new ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_ScriptDetails.ListDataServicePublishedApis_ScriptErrorCode();
                    scriptErrorCode.ErrorCode     = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.ScriptErrorCodes[" + j + "].ErrorCode");
                    scriptErrorCode.ErrorMessage  = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.ScriptErrorCodes[" + j + "].ErrorMessage");
                    scriptErrorCode.ErrorSolution = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.ScriptErrorCodes[" + j + "].ErrorSolution");

                    scriptDetails_scriptErrorCodes.Add(scriptErrorCode);
                }
                scriptDetails.ScriptErrorCodes = scriptDetails_scriptErrorCodes;

                List <ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_ScriptDetails.ListDataServicePublishedApis_ScriptRequestParameter> scriptDetails_scriptRequestParameters = new List <ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_ScriptDetails.ListDataServicePublishedApis_ScriptRequestParameter>();
                for (int j = 0; j < context.Length("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.ScriptRequestParameters.Length"); j++)
                {
                    ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_ScriptDetails.ListDataServicePublishedApis_ScriptRequestParameter scriptRequestParameter = new ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_ScriptDetails.ListDataServicePublishedApis_ScriptRequestParameter();
                    scriptRequestParameter.DefaultValue         = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.ScriptRequestParameters[" + j + "].DefaultValue");
                    scriptRequestParameter.ExampleValue         = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.ScriptRequestParameters[" + j + "].ExampleValue");
                    scriptRequestParameter.IsRequiredParameter  = context.BooleanValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.ScriptRequestParameters[" + j + "].IsRequiredParameter");
                    scriptRequestParameter.ParameterDataType    = context.IntegerValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.ScriptRequestParameters[" + j + "].ParameterDataType");
                    scriptRequestParameter.ParameterDescription = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.ScriptRequestParameters[" + j + "].ParameterDescription");
                    scriptRequestParameter.ParameterName        = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.ScriptRequestParameters[" + j + "].ParameterName");
                    scriptRequestParameter.ParameterOperator    = context.IntegerValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.ScriptRequestParameters[" + j + "].ParameterOperator");
                    scriptRequestParameter.ParameterPosition    = context.IntegerValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.ScriptRequestParameters[" + j + "].ParameterPosition");

                    scriptDetails_scriptRequestParameters.Add(scriptRequestParameter);
                }
                scriptDetails.ScriptRequestParameters = scriptDetails_scriptRequestParameters;

                List <ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_ScriptDetails.ListDataServicePublishedApis_ScriptResponseParameter> scriptDetails_scriptResponseParameters = new List <ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_ScriptDetails.ListDataServicePublishedApis_ScriptResponseParameter>();
                for (int j = 0; j < context.Length("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.ScriptResponseParameters.Length"); j++)
                {
                    ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_ScriptDetails.ListDataServicePublishedApis_ScriptResponseParameter scriptResponseParameter = new ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_ScriptDetails.ListDataServicePublishedApis_ScriptResponseParameter();
                    scriptResponseParameter.ExampleValue         = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.ScriptResponseParameters[" + j + "].ExampleValue");
                    scriptResponseParameter.ParameterDataType    = context.IntegerValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.ScriptResponseParameters[" + j + "].ParameterDataType");
                    scriptResponseParameter.ParameterDescription = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.ScriptResponseParameters[" + j + "].ParameterDescription");
                    scriptResponseParameter.ParameterName        = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].ScriptDetails.ScriptResponseParameters[" + j + "].ParameterName");

                    scriptDetails_scriptResponseParameters.Add(scriptResponseParameter);
                }
                scriptDetails.ScriptResponseParameters = scriptDetails_scriptResponseParameters;
                api.ScriptDetails = scriptDetails;

                ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_WizardDetails wizardDetails = new ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_WizardDetails();
                wizardDetails.FailedResultSample     = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.FailedResultSample");
                wizardDetails.IsPagedResponse        = context.BooleanValue("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.IsPagedResponse");
                wizardDetails.SuccessfulResultSample = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.SuccessfulResultSample");

                ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_WizardDetails.ListDataServicePublishedApis_WizardConnection wizardConnection = new ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_WizardDetails.ListDataServicePublishedApis_WizardConnection();
                wizardConnection.ConnectionId  = context.LongValue("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.WizardConnection.ConnectionId");
                wizardConnection.TableName     = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.WizardConnection.TableName");
                wizardDetails.WizardConnection = wizardConnection;

                List <ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_WizardDetails.ListDataServicePublishedApis_WizardErrorCode> wizardDetails_wizardErrorCodes = new List <ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_WizardDetails.ListDataServicePublishedApis_WizardErrorCode>();
                for (int j = 0; j < context.Length("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.WizardErrorCodes.Length"); j++)
                {
                    ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_WizardDetails.ListDataServicePublishedApis_WizardErrorCode wizardErrorCode = new ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_WizardDetails.ListDataServicePublishedApis_WizardErrorCode();
                    wizardErrorCode.ErrorCode     = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.WizardErrorCodes[" + j + "].ErrorCode");
                    wizardErrorCode.ErrorMessage  = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.WizardErrorCodes[" + j + "].ErrorMessage");
                    wizardErrorCode.ErrorSolution = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.WizardErrorCodes[" + j + "].ErrorSolution");

                    wizardDetails_wizardErrorCodes.Add(wizardErrorCode);
                }
                wizardDetails.WizardErrorCodes = wizardDetails_wizardErrorCodes;

                List <ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_WizardDetails.ListDataServicePublishedApis_WizardRequestParameter> wizardDetails_wizardRequestParameters = new List <ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_WizardDetails.ListDataServicePublishedApis_WizardRequestParameter>();
                for (int j = 0; j < context.Length("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.WizardRequestParameters.Length"); j++)
                {
                    ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_WizardDetails.ListDataServicePublishedApis_WizardRequestParameter wizardRequestParameter = new ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_WizardDetails.ListDataServicePublishedApis_WizardRequestParameter();
                    wizardRequestParameter.DefaultValue         = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.WizardRequestParameters[" + j + "].DefaultValue");
                    wizardRequestParameter.ExampleValue         = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.WizardRequestParameters[" + j + "].ExampleValue");
                    wizardRequestParameter.IsRequiredParameter  = context.BooleanValue("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.WizardRequestParameters[" + j + "].IsRequiredParameter");
                    wizardRequestParameter.ParameterDataType    = context.IntegerValue("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.WizardRequestParameters[" + j + "].ParameterDataType");
                    wizardRequestParameter.ParameterDescription = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.WizardRequestParameters[" + j + "].ParameterDescription");
                    wizardRequestParameter.ParameterName        = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.WizardRequestParameters[" + j + "].ParameterName");
                    wizardRequestParameter.ParameterOperator    = context.IntegerValue("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.WizardRequestParameters[" + j + "].ParameterOperator");
                    wizardRequestParameter.ParameterPosition    = context.IntegerValue("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.WizardRequestParameters[" + j + "].ParameterPosition");

                    wizardDetails_wizardRequestParameters.Add(wizardRequestParameter);
                }
                wizardDetails.WizardRequestParameters = wizardDetails_wizardRequestParameters;

                List <ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_WizardDetails.ListDataServicePublishedApis_WizardResponseParameter> wizardDetails_wizardResponseParameters = new List <ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_WizardDetails.ListDataServicePublishedApis_WizardResponseParameter>();
                for (int j = 0; j < context.Length("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.WizardResponseParameters.Length"); j++)
                {
                    ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_WizardDetails.ListDataServicePublishedApis_WizardResponseParameter wizardResponseParameter = new ListDataServicePublishedApisResponse.ListDataServicePublishedApis_Data.ListDataServicePublishedApis_Api.ListDataServicePublishedApis_WizardDetails.ListDataServicePublishedApis_WizardResponseParameter();
                    wizardResponseParameter.ExampleValue         = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.WizardResponseParameters[" + j + "].ExampleValue");
                    wizardResponseParameter.ParameterDataType    = context.IntegerValue("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.WizardResponseParameters[" + j + "].ParameterDataType");
                    wizardResponseParameter.ParameterDescription = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.WizardResponseParameters[" + j + "].ParameterDescription");
                    wizardResponseParameter.ParameterName        = context.StringValue("ListDataServicePublishedApis.Data.Apis[" + i + "].WizardDetails.WizardResponseParameters[" + j + "].ParameterName");

                    wizardDetails_wizardResponseParameters.Add(wizardResponseParameter);
                }
                wizardDetails.WizardResponseParameters = wizardDetails_wizardResponseParameters;
                api.WizardDetails = wizardDetails;

                data_apis.Add(api);
            }
            data.Apis = data_apis;
            listDataServicePublishedApisResponse.Data = data;

            return(listDataServicePublishedApisResponse);
        }
Example #54
0
        public static DescribeClusterMemberInfoResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeClusterMemberInfoResponse describeClusterMemberInfoResponse = new DescribeClusterMemberInfoResponse();

            describeClusterMemberInfoResponse.HttpResponse = _ctx.HttpResponse;
            describeClusterMemberInfoResponse.RequestId    = _ctx.StringValue("DescribeClusterMemberInfo.RequestId");
            describeClusterMemberInfoResponse.PageNumber   = _ctx.IntegerValue("DescribeClusterMemberInfo.PageNumber");
            describeClusterMemberInfoResponse.PageSize     = _ctx.IntegerValue("DescribeClusterMemberInfo.PageSize");
            describeClusterMemberInfoResponse.TotalCount   = _ctx.IntegerValue("DescribeClusterMemberInfo.TotalCount");

            List <DescribeClusterMemberInfoResponse.DescribeClusterMemberInfo_Children> describeClusterMemberInfoResponse_clusterChildren = new List <DescribeClusterMemberInfoResponse.DescribeClusterMemberInfo_Children>();

            for (int i = 0; i < _ctx.Length("DescribeClusterMemberInfo.ClusterChildren.Length"); i++)
            {
                DescribeClusterMemberInfoResponse.DescribeClusterMemberInfo_Children children = new DescribeClusterMemberInfoResponse.DescribeClusterMemberInfo_Children();
                children.Id                  = _ctx.LongValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].Id");
                children.Name                = _ctx.StringValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].Name");
                children.BizType             = _ctx.StringValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].BizType");
                children.ReplicaSize         = _ctx.IntegerValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].ReplicaSize");
                children.Modifier            = _ctx.IntegerValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].Modifier");
                children.ServiceVersion      = _ctx.StringValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].ServiceVersion");
                children.DiskSizeMB          = _ctx.IntegerValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].DiskSizeMB");
                children.Nickname            = _ctx.StringValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].Nickname");
                children.PrimaryInsName      = _ctx.StringValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].PrimaryInsName");
                children.ClassCode           = _ctx.StringValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].ClassCode");
                children.Creator             = _ctx.IntegerValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].Creator");
                children.ResourceGroupName   = _ctx.StringValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].ResourceGroupName");
                children.Health              = _ctx.StringValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].Health");
                children.BinlogRetentionDays = _ctx.IntegerValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].BinlogRetentionDays");
                children.UserId              = _ctx.StringValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].UserId");
                children.LockReason          = _ctx.StringValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].LockReason");
                children.Service             = _ctx.StringValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].Service");
                children.Capacity            = _ctx.LongValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].Capacity");
                children.BandWidth           = _ctx.LongValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].BandWidth");
                children.Connections         = _ctx.LongValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].Connections");
                children.CurrentBandWidth    = _ctx.LongValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].CurrentBandWidth");

                List <DescribeClusterMemberInfoResponse.DescribeClusterMemberInfo_Children.DescribeClusterMemberInfo_Item> children_items = new List <DescribeClusterMemberInfoResponse.DescribeClusterMemberInfo_Children.DescribeClusterMemberInfo_Item>();
                for (int j = 0; j < _ctx.Length("DescribeClusterMemberInfo.ClusterChildren[" + i + "].Items.Length"); j++)
                {
                    DescribeClusterMemberInfoResponse.DescribeClusterMemberInfo_Children.DescribeClusterMemberInfo_Item item = new DescribeClusterMemberInfoResponse.DescribeClusterMemberInfo_Children.DescribeClusterMemberInfo_Item();
                    item.Id       = _ctx.IntegerValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].Items[" + j + "].Id");
                    item.HostName = _ctx.StringValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].Items[" + j + "].HostName");
                    item.Role     = _ctx.StringValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].Items[" + j + "].Role");
                    item.Status   = _ctx.StringValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].Items[" + j + "].Status");
                    item.ZoneId   = _ctx.StringValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].Items[" + j + "].ZoneId");
                    item.Ip       = _ctx.StringValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].Items[" + j + "].Ip");

                    List <string> item_ports = new List <string>();
                    for (int k = 0; k < _ctx.Length("DescribeClusterMemberInfo.ClusterChildren[" + i + "].Items[" + j + "].Ports.Length"); k++)
                    {
                        item_ports.Add(_ctx.StringValue("DescribeClusterMemberInfo.ClusterChildren[" + i + "].Items[" + j + "].Ports[" + k + "]"));
                    }
                    item.Ports = item_ports;

                    children_items.Add(item);
                }
                children.Items = children_items;

                describeClusterMemberInfoResponse_clusterChildren.Add(children);
            }
            describeClusterMemberInfoResponse.ClusterChildren = describeClusterMemberInfoResponse_clusterChildren;

            return(describeClusterMemberInfoResponse);
        }
Example #55
0
        public static SearchMediaResponse Unmarshall(UnmarshallerContext context)
        {
            SearchMediaResponse searchMediaResponse = new SearchMediaResponse();

            searchMediaResponse.HttpResponse = context.HttpResponse;
            searchMediaResponse.RequestId    = context.StringValue("SearchMedia.RequestId");
            searchMediaResponse.ScrollToken  = context.StringValue("SearchMedia.ScrollToken");
            searchMediaResponse.Total        = context.LongValue("SearchMedia.Total");

            List <SearchMediaResponse.SearchMedia_Media> searchMediaResponse_mediaList = new List <SearchMediaResponse.SearchMedia_Media>();

            for (int i = 0; i < context.Length("SearchMedia.MediaList.Length"); i++)
            {
                SearchMediaResponse.SearchMedia_Media media = new SearchMediaResponse.SearchMedia_Media();
                media.MediaType    = context.StringValue("SearchMedia.MediaList[" + i + "].MediaType");
                media.CreationTime = context.StringValue("SearchMedia.MediaList[" + i + "].CreationTime");
                media.MediaId      = context.StringValue("SearchMedia.MediaList[" + i + "].MediaId");

                SearchMediaResponse.SearchMedia_Media.SearchMedia_Video video = new SearchMediaResponse.SearchMedia_Media.SearchMedia_Video();
                video.VideoId           = context.StringValue("SearchMedia.MediaList[" + i + "].Video.VideoId");
                video.MediaSource       = context.StringValue("SearchMedia.MediaList[" + i + "].Video.MediaSource");
                video.MediaType         = context.StringValue("SearchMedia.MediaList[" + i + "].Video.MediaType");
                video.Title             = context.StringValue("SearchMedia.MediaList[" + i + "].Video.Title");
                video.Tags              = context.StringValue("SearchMedia.MediaList[" + i + "].Video.Tags");
                video.Status            = context.StringValue("SearchMedia.MediaList[" + i + "].Video.Status");
                video.Size              = context.LongValue("SearchMedia.MediaList[" + i + "].Video.Size");
                video.Duration          = context.FloatValue("SearchMedia.MediaList[" + i + "].Video.Duration");
                video.Description       = context.StringValue("SearchMedia.MediaList[" + i + "].Video.Description");
                video.ModificationTime  = context.StringValue("SearchMedia.MediaList[" + i + "].Video.ModificationTime");
                video.CreationTime      = context.StringValue("SearchMedia.MediaList[" + i + "].Video.CreationTime");
                video.CoverURL          = context.StringValue("SearchMedia.MediaList[" + i + "].Video.CoverURL");
                video.CateId            = context.LongValue("SearchMedia.MediaList[" + i + "].Video.CateId");
                video.CateName          = context.StringValue("SearchMedia.MediaList[" + i + "].Video.CateName");
                video.DownloadSwitch    = context.StringValue("SearchMedia.MediaList[" + i + "].Video.DownloadSwitch");
                video.PreprocessStatus  = context.StringValue("SearchMedia.MediaList[" + i + "].Video.PreprocessStatus");
                video.StorageLocation   = context.StringValue("SearchMedia.MediaList[" + i + "].Video.StorageLocation");
                video.RegionId          = context.StringValue("SearchMedia.MediaList[" + i + "].Video.RegionId");
                video.TranscodeMode     = context.StringValue("SearchMedia.MediaList[" + i + "].Video.TranscodeMode");
                video.AuditStatus       = context.StringValue("SearchMedia.MediaList[" + i + "].Video.AuditStatus");
                video.AuditAIStatus     = context.StringValue("SearchMedia.MediaList[" + i + "].Video.AuditAIStatus");
                video.AuditManualStatus = context.StringValue("SearchMedia.MediaList[" + i + "].Video.AuditManualStatus");
                video.AuditAIResult     = context.StringValue("SearchMedia.MediaList[" + i + "].Video.AuditAIResult");
                video.AuditTemplateId   = context.StringValue("SearchMedia.MediaList[" + i + "].Video.AuditTemplateId");
                video.CustomMediaInfo   = context.StringValue("SearchMedia.MediaList[" + i + "].Video.CustomMediaInfo");

                List <string> video_snapshots = new List <string>();
                for (int j = 0; j < context.Length("SearchMedia.MediaList[" + i + "].Video.Snapshots.Length"); j++)
                {
                    video_snapshots.Add(context.StringValue("SearchMedia.MediaList[" + i + "].Video.Snapshots[" + j + "]"));
                }
                video.Snapshots = video_snapshots;

                List <string> video_spriteSnapshots = new List <string>();
                for (int j = 0; j < context.Length("SearchMedia.MediaList[" + i + "].Video.SpriteSnapshots.Length"); j++)
                {
                    video_spriteSnapshots.Add(context.StringValue("SearchMedia.MediaList[" + i + "].Video.SpriteSnapshots[" + j + "]"));
                }
                video.SpriteSnapshots = video_spriteSnapshots;

                List <SearchMediaResponse.SearchMedia_Media.SearchMedia_Video.SearchMedia_PlayInfo> video_playInfoList = new List <SearchMediaResponse.SearchMedia_Media.SearchMedia_Video.SearchMedia_PlayInfo>();
                for (int j = 0; j < context.Length("SearchMedia.MediaList[" + i + "].Video.PlayInfoList.Length"); j++)
                {
                    SearchMediaResponse.SearchMedia_Media.SearchMedia_Video.SearchMedia_PlayInfo playInfo = new SearchMediaResponse.SearchMedia_Media.SearchMedia_Video.SearchMedia_PlayInfo();
                    playInfo.Width      = context.LongValue("SearchMedia.MediaList[" + i + "].Video.PlayInfoList[" + j + "].Width");
                    playInfo.Height     = context.LongValue("SearchMedia.MediaList[" + i + "].Video.PlayInfoList[" + j + "].Height");
                    playInfo.Size       = context.LongValue("SearchMedia.MediaList[" + i + "].Video.PlayInfoList[" + j + "].Size");
                    playInfo.PlayURL    = context.StringValue("SearchMedia.MediaList[" + i + "].Video.PlayInfoList[" + j + "].PlayURL");
                    playInfo.Bitrate    = context.StringValue("SearchMedia.MediaList[" + i + "].Video.PlayInfoList[" + j + "].Bitrate");
                    playInfo.Definition = context.StringValue("SearchMedia.MediaList[" + i + "].Video.PlayInfoList[" + j + "].Definition");
                    playInfo.Duration   = context.StringValue("SearchMedia.MediaList[" + i + "].Video.PlayInfoList[" + j + "].Duration");
                    playInfo.Format     = context.StringValue("SearchMedia.MediaList[" + i + "].Video.PlayInfoList[" + j + "].Format");
                    playInfo.Fps        = context.StringValue("SearchMedia.MediaList[" + i + "].Video.PlayInfoList[" + j + "].Fps");
                    playInfo.Encrypt    = context.LongValue("SearchMedia.MediaList[" + i + "].Video.PlayInfoList[" + j + "].Encrypt");
                    playInfo.Plaintext  = context.StringValue("SearchMedia.MediaList[" + i + "].Video.PlayInfoList[" + j + "].Plaintext");
                    playInfo.Complexity = context.StringValue("SearchMedia.MediaList[" + i + "].Video.PlayInfoList[" + j + "].Complexity");
                    playInfo.StreamType = context.StringValue("SearchMedia.MediaList[" + i + "].Video.PlayInfoList[" + j + "].StreamType");
                    playInfo.Rand       = context.StringValue("SearchMedia.MediaList[" + i + "].Video.PlayInfoList[" + j + "].Rand");
                    playInfo.JobId      = context.StringValue("SearchMedia.MediaList[" + i + "].Video.PlayInfoList[" + j + "].JobId");

                    video_playInfoList.Add(playInfo);
                }
                video.PlayInfoList = video_playInfoList;
                media.Video        = video;

                SearchMediaResponse.SearchMedia_Media.SearchMedia_Audio audio = new SearchMediaResponse.SearchMedia_Media.SearchMedia_Audio();
                audio.AudioId           = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.AudioId");
                audio.MediaSource       = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.MediaSource");
                audio.Title             = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.Title");
                audio.Tags              = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.Tags");
                audio.Status            = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.Status");
                audio.Size              = context.LongValue("SearchMedia.MediaList[" + i + "].Audio.Size");
                audio.Duration          = context.FloatValue("SearchMedia.MediaList[" + i + "].Audio.Duration");
                audio.Description       = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.Description");
                audio.ModificationTime  = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.ModificationTime");
                audio.CreationTime      = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.CreationTime");
                audio.CoverURL          = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.CoverURL");
                audio.CateId            = context.LongValue("SearchMedia.MediaList[" + i + "].Audio.CateId");
                audio.CateName          = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.CateName");
                audio.DownloadSwitch    = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.DownloadSwitch");
                audio.PreprocessStatus  = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.PreprocessStatus");
                audio.StorageLocation   = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.StorageLocation");
                audio.RegionId          = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.RegionId");
                audio.TranscodeMode     = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.TranscodeMode");
                audio.AuditStatus       = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.AuditStatus");
                audio.AuditAIStatus     = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.AuditAIStatus");
                audio.AuditManualStatus = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.AuditManualStatus");
                audio.AuditAIResult     = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.AuditAIResult");
                audio.AuditTemplateId   = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.AuditTemplateId");
                audio.CustomMediaInfo   = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.CustomMediaInfo");

                List <string> audio_snapshots1 = new List <string>();
                for (int j = 0; j < context.Length("SearchMedia.MediaList[" + i + "].Audio.Snapshots.Length"); j++)
                {
                    audio_snapshots1.Add(context.StringValue("SearchMedia.MediaList[" + i + "].Audio.Snapshots[" + j + "]"));
                }
                audio.Snapshots1 = audio_snapshots1;

                List <string> audio_spriteSnapshots2 = new List <string>();
                for (int j = 0; j < context.Length("SearchMedia.MediaList[" + i + "].Audio.SpriteSnapshots.Length"); j++)
                {
                    audio_spriteSnapshots2.Add(context.StringValue("SearchMedia.MediaList[" + i + "].Audio.SpriteSnapshots[" + j + "]"));
                }
                audio.SpriteSnapshots2 = audio_spriteSnapshots2;

                List <SearchMediaResponse.SearchMedia_Media.SearchMedia_Audio.SearchMedia_PlayInfo4> audio_playInfoList3 = new List <SearchMediaResponse.SearchMedia_Media.SearchMedia_Audio.SearchMedia_PlayInfo4>();
                for (int j = 0; j < context.Length("SearchMedia.MediaList[" + i + "].Audio.PlayInfoList.Length"); j++)
                {
                    SearchMediaResponse.SearchMedia_Media.SearchMedia_Audio.SearchMedia_PlayInfo4 playInfo4 = new SearchMediaResponse.SearchMedia_Media.SearchMedia_Audio.SearchMedia_PlayInfo4();
                    playInfo4.Width      = context.LongValue("SearchMedia.MediaList[" + i + "].Audio.PlayInfoList[" + j + "].Width");
                    playInfo4.Height     = context.LongValue("SearchMedia.MediaList[" + i + "].Audio.PlayInfoList[" + j + "].Height");
                    playInfo4.Size       = context.LongValue("SearchMedia.MediaList[" + i + "].Audio.PlayInfoList[" + j + "].Size");
                    playInfo4.PlayURL    = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.PlayInfoList[" + j + "].PlayURL");
                    playInfo4.Bitrate    = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.PlayInfoList[" + j + "].Bitrate");
                    playInfo4.Definition = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.PlayInfoList[" + j + "].Definition");
                    playInfo4.Duration   = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.PlayInfoList[" + j + "].Duration");
                    playInfo4.Format     = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.PlayInfoList[" + j + "].Format");
                    playInfo4.Fps        = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.PlayInfoList[" + j + "].Fps");
                    playInfo4.Encrypt    = context.LongValue("SearchMedia.MediaList[" + i + "].Audio.PlayInfoList[" + j + "].Encrypt");
                    playInfo4.Plaintext  = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.PlayInfoList[" + j + "].Plaintext");
                    playInfo4.Complexity = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.PlayInfoList[" + j + "].Complexity");
                    playInfo4.StreamType = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.PlayInfoList[" + j + "].StreamType");
                    playInfo4.Rand       = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.PlayInfoList[" + j + "].Rand");
                    playInfo4.JobId      = context.StringValue("SearchMedia.MediaList[" + i + "].Audio.PlayInfoList[" + j + "].JobId");

                    audio_playInfoList3.Add(playInfo4);
                }
                audio.PlayInfoList3 = audio_playInfoList3;
                media.Audio         = audio;

                SearchMediaResponse.SearchMedia_Media.SearchMedia_Image image = new SearchMediaResponse.SearchMedia_Media.SearchMedia_Image();
                image.Title            = context.StringValue("SearchMedia.MediaList[" + i + "].Image.Title");
                image.ImageId          = context.StringValue("SearchMedia.MediaList[" + i + "].Image.ImageId");
                image.CateId           = context.LongValue("SearchMedia.MediaList[" + i + "].Image.CateId");
                image.CateName         = context.StringValue("SearchMedia.MediaList[" + i + "].Image.CateName");
                image.Ext              = context.StringValue("SearchMedia.MediaList[" + i + "].Image.Ext");
                image.CreationTime     = context.StringValue("SearchMedia.MediaList[" + i + "].Image.CreationTime");
                image.ModificationTime = context.StringValue("SearchMedia.MediaList[" + i + "].Image.ModificationTime");
                image.Tags             = context.StringValue("SearchMedia.MediaList[" + i + "].Image.Tags");
                image.Type             = context.StringValue("SearchMedia.MediaList[" + i + "].Image.Type");
                image.URL              = context.StringValue("SearchMedia.MediaList[" + i + "].Image.URL");
                image.Status           = context.StringValue("SearchMedia.MediaList[" + i + "].Image.Status");
                image.Description      = context.StringValue("SearchMedia.MediaList[" + i + "].Image.Description");
                image.StorageLocation  = context.StringValue("SearchMedia.MediaList[" + i + "].Image.StorageLocation");
                image.RegionId         = context.StringValue("SearchMedia.MediaList[" + i + "].Image.RegionId");
                media.Image            = image;

                searchMediaResponse_mediaList.Add(media);
            }
            searchMediaResponse.MediaList = searchMediaResponse_mediaList;

            return(searchMediaResponse);
        }
        public static DescribeApiResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeApiResponse describeApiResponse = new DescribeApiResponse()
            {
                HttpResponse     = context.HttpResponse,
                RequestId        = context.StringValue("DescribeApi.RequestId"),
                RegionId         = context.StringValue("DescribeApi.RegionId"),
                ApiId            = context.StringValue("DescribeApi.ApiId"),
                ApiName          = context.StringValue("DescribeApi.ApiName"),
                GroupId          = context.StringValue("DescribeApi.GroupId"),
                GroupName        = context.StringValue("DescribeApi.GroupName"),
                Visibility       = context.StringValue("DescribeApi.Visibility"),
                AuthType         = context.StringValue("DescribeApi.AuthType"),
                ResultType       = context.StringValue("DescribeApi.ResultType"),
                ResultSample     = context.StringValue("DescribeApi.ResultSample"),
                FailResultSample = context.StringValue("DescribeApi.FailResultSample"),
                CreatedTime      = context.StringValue("DescribeApi.CreatedTime"),
                ModifiedTime     = context.StringValue("DescribeApi.ModifiedTime"),
                Description      = context.StringValue("DescribeApi.Description"),
                Mock             = context.StringValue("DescribeApi.Mock"),
                MockResult       = context.StringValue("DescribeApi.MockResult")
            };

            DescribeApiResponse.RequestConfig_ requestConfig = new DescribeApiResponse.RequestConfig_()
            {
                RequestProtocol     = context.StringValue("DescribeApi.RequestConfig.RequestProtocol"),
                RequestHttpMethod   = context.StringValue("DescribeApi.RequestConfig.RequestHttpMethod"),
                RequestPath         = context.StringValue("DescribeApi.RequestConfig.RequestPath"),
                BodyFormat          = context.StringValue("DescribeApi.RequestConfig.BodyFormat"),
                PostBodyDescription = context.StringValue("DescribeApi.RequestConfig.PostBodyDescription")
            };
            describeApiResponse.RequestConfig = requestConfig;

            DescribeApiResponse.ServiceConfig_ serviceConfig = new DescribeApiResponse.ServiceConfig_()
            {
                ServiceProtocol   = context.StringValue("DescribeApi.ServiceConfig.ServiceProtocol"),
                ServiceAddress    = context.StringValue("DescribeApi.ServiceConfig.ServiceAddress"),
                ServiceHttpMethod = context.StringValue("DescribeApi.ServiceConfig.ServiceHttpMethod"),
                ServicePath       = context.StringValue("DescribeApi.ServiceConfig.ServicePath"),
                ServiceTimeout    = context.IntegerValue("DescribeApi.ServiceConfig.ServiceTimeout")
            };
            describeApiResponse.ServiceConfig = serviceConfig;

            List <DescribeApiResponse.ErrorCodeSample> errorCodeSamples = new List <DescribeApiResponse.ErrorCodeSample>();

            for (int i = 0; i < context.Length("DescribeApi.ErrorCodeSamples.Length"); i++)
            {
                DescribeApiResponse.ErrorCodeSample errorCodeSample = new DescribeApiResponse.ErrorCodeSample()
                {
                    Code        = context.StringValue($"DescribeApi.ErrorCodeSamples[{i}].Code"),
                    Message     = context.StringValue($"DescribeApi.ErrorCodeSamples[{i}].Message"),
                    Description = context.StringValue($"DescribeApi.ErrorCodeSamples[{i}].Description")
                };
                errorCodeSamples.Add(errorCodeSample);
            }
            describeApiResponse.ErrorCodeSamples = errorCodeSamples;

            List <DescribeApiResponse.SystemParameter> systemParameters = new List <DescribeApiResponse.SystemParameter>();

            for (int i = 0; i < context.Length("DescribeApi.SystemParameters.Length"); i++)
            {
                DescribeApiResponse.SystemParameter systemParameter = new DescribeApiResponse.SystemParameter()
                {
                    ParameterName        = context.StringValue($"DescribeApi.SystemParameters[{i}].ParameterName"),
                    ServiceParameterName = context.StringValue($"DescribeApi.SystemParameters[{i}].ServiceParameterName"),
                    Location             = context.StringValue($"DescribeApi.SystemParameters[{i}].Location"),
                    DemoValue            = context.StringValue($"DescribeApi.SystemParameters[{i}].DemoValue"),
                    Description          = context.StringValue($"DescribeApi.SystemParameters[{i}].Description")
                };
                systemParameters.Add(systemParameter);
            }
            describeApiResponse.SystemParameters = systemParameters;

            List <DescribeApiResponse.ConstantParameter> constantParameters = new List <DescribeApiResponse.ConstantParameter>();

            for (int i = 0; i < context.Length("DescribeApi.ConstantParameters.Length"); i++)
            {
                DescribeApiResponse.ConstantParameter constantParameter = new DescribeApiResponse.ConstantParameter()
                {
                    ServiceParameterName = context.StringValue($"DescribeApi.ConstantParameters[{i}].ServiceParameterName"),
                    ConstantValue        = context.StringValue($"DescribeApi.ConstantParameters[{i}].ConstantValue"),
                    Location             = context.StringValue($"DescribeApi.ConstantParameters[{i}].Location"),
                    Description          = context.StringValue($"DescribeApi.ConstantParameters[{i}].Description")
                };
                constantParameters.Add(constantParameter);
            }
            describeApiResponse.ConstantParameters = constantParameters;

            List <DescribeApiResponse.RequestParameter> requestParameters = new List <DescribeApiResponse.RequestParameter>();

            for (int i = 0; i < context.Length("DescribeApi.RequestParameters.Length"); i++)
            {
                DescribeApiResponse.RequestParameter requestParameter = new DescribeApiResponse.RequestParameter()
                {
                    ApiParameterName  = context.StringValue($"DescribeApi.RequestParameters[{i}].ApiParameterName"),
                    Location          = context.StringValue($"DescribeApi.RequestParameters[{i}].Location"),
                    ParameterType     = context.StringValue($"DescribeApi.RequestParameters[{i}].ParameterType"),
                    Required          = context.StringValue($"DescribeApi.RequestParameters[{i}].Required"),
                    DefaultValue      = context.StringValue($"DescribeApi.RequestParameters[{i}].DefaultValue"),
                    DemoValue         = context.StringValue($"DescribeApi.RequestParameters[{i}].DemoValue"),
                    MaxValue          = context.LongValue($"DescribeApi.RequestParameters[{i}].MaxValue"),
                    MinValue          = context.LongValue($"DescribeApi.RequestParameters[{i}].MinValue"),
                    MaxLength         = context.LongValue($"DescribeApi.RequestParameters[{i}].MaxLength"),
                    MinLength         = context.LongValue($"DescribeApi.RequestParameters[{i}].MinLength"),
                    RegularExpression = context.StringValue($"DescribeApi.RequestParameters[{i}].RegularExpression"),
                    JsonScheme        = context.StringValue($"DescribeApi.RequestParameters[{i}].JsonScheme"),
                    EnumValue         = context.StringValue($"DescribeApi.RequestParameters[{i}].EnumValue"),
                    DocShow           = context.StringValue($"DescribeApi.RequestParameters[{i}].DocShow"),
                    DocOrder          = context.IntegerValue($"DescribeApi.RequestParameters[{i}].DocOrder"),
                    Description       = context.StringValue($"DescribeApi.RequestParameters[{i}].Description")
                };
                requestParameters.Add(requestParameter);
            }
            describeApiResponse.RequestParameters = requestParameters;

            List <DescribeApiResponse.ServiceParameter> serviceParameters = new List <DescribeApiResponse.ServiceParameter>();

            for (int i = 0; i < context.Length("DescribeApi.ServiceParameters.Length"); i++)
            {
                DescribeApiResponse.ServiceParameter serviceParameter = new DescribeApiResponse.ServiceParameter()
                {
                    ServiceParameterName = context.StringValue($"DescribeApi.ServiceParameters[{i}].ServiceParameterName"),
                    Location             = context.StringValue($"DescribeApi.ServiceParameters[{i}].Location"),
                    ParameterType        = context.StringValue($"DescribeApi.ServiceParameters[{i}].ParameterType")
                };
                serviceParameters.Add(serviceParameter);
            }
            describeApiResponse.ServiceParameters = serviceParameters;

            List <DescribeApiResponse.ServiceParameterMap> serviceParametersMap = new List <DescribeApiResponse.ServiceParameterMap>();

            for (int i = 0; i < context.Length("DescribeApi.ServiceParametersMap.Length"); i++)
            {
                DescribeApiResponse.ServiceParameterMap serviceParameterMap = new DescribeApiResponse.ServiceParameterMap()
                {
                    ServiceParameterName = context.StringValue($"DescribeApi.ServiceParametersMap[{i}].ServiceParameterName"),
                    RequestParameterName = context.StringValue($"DescribeApi.ServiceParametersMap[{i}].RequestParameterName")
                };
                serviceParametersMap.Add(serviceParameterMap);
            }
            describeApiResponse.ServiceParametersMap = serviceParametersMap;

            List <DescribeApiResponse.DeployedInfo> deployedInfos = new List <DescribeApiResponse.DeployedInfo>();

            for (int i = 0; i < context.Length("DescribeApi.DeployedInfos.Length"); i++)
            {
                DescribeApiResponse.DeployedInfo deployedInfo = new DescribeApiResponse.DeployedInfo()
                {
                    StageName        = context.StringValue($"DescribeApi.DeployedInfos[{i}].StageName"),
                    EffectiveVersion = context.StringValue($"DescribeApi.DeployedInfos[{i}].EffectiveVersion"),
                    DeployedStatus   = context.StringValue($"DescribeApi.DeployedInfos[{i}].DeployedStatus")
                };
                deployedInfos.Add(deployedInfo);
            }
            describeApiResponse.DeployedInfos = deployedInfos;

            return(describeApiResponse);
        }
        public static DescribeRestoreOrderResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeRestoreOrderResponse describeRestoreOrderResponse = new DescribeRestoreOrderResponse();

            describeRestoreOrderResponse.HttpResponse = _ctx.HttpResponse;
            describeRestoreOrderResponse.RequestId    = _ctx.StringValue("DescribeRestoreOrder.RequestId");
            describeRestoreOrderResponse.Success      = _ctx.BooleanValue("DescribeRestoreOrder.Success");

            DescribeRestoreOrderResponse.DescribeRestoreOrder_RestoreOrderDO restoreOrderDO = new DescribeRestoreOrderResponse.DescribeRestoreOrder_RestoreOrderDO();

            List <DescribeRestoreOrderResponse.DescribeRestoreOrder_RestoreOrderDO.DescribeRestoreOrder_DrdsOrderDOListItem> restoreOrderDO_drdsOrderDOList = new List <DescribeRestoreOrderResponse.DescribeRestoreOrder_RestoreOrderDO.DescribeRestoreOrder_DrdsOrderDOListItem>();

            for (int i = 0; i < _ctx.Length("DescribeRestoreOrder.RestoreOrderDO.DrdsOrderDOList.Length"); i++)
            {
                DescribeRestoreOrderResponse.DescribeRestoreOrder_RestoreOrderDO.DescribeRestoreOrder_DrdsOrderDOListItem drdsOrderDOListItem = new DescribeRestoreOrderResponse.DescribeRestoreOrder_RestoreOrderDO.DescribeRestoreOrder_DrdsOrderDOListItem();
                drdsOrderDOListItem.RegionId  = _ctx.StringValue("DescribeRestoreOrder.RestoreOrderDO.DrdsOrderDOList[" + i + "].RegionId");
                drdsOrderDOListItem.AzoneId   = _ctx.StringValue("DescribeRestoreOrder.RestoreOrderDO.DrdsOrderDOList[" + i + "].AzoneId");
                drdsOrderDOListItem.Network   = _ctx.StringValue("DescribeRestoreOrder.RestoreOrderDO.DrdsOrderDOList[" + i + "].Network");
                drdsOrderDOListItem.VpcId     = _ctx.StringValue("DescribeRestoreOrder.RestoreOrderDO.DrdsOrderDOList[" + i + "].VpcId");
                drdsOrderDOListItem.VSwtichId = _ctx.StringValue("DescribeRestoreOrder.RestoreOrderDO.DrdsOrderDOList[" + i + "].VSwtichId");
                drdsOrderDOListItem.InstSpec  = _ctx.StringValue("DescribeRestoreOrder.RestoreOrderDO.DrdsOrderDOList[" + i + "].InstSpec");

                restoreOrderDO_drdsOrderDOList.Add(drdsOrderDOListItem);
            }
            restoreOrderDO.DrdsOrderDOList = restoreOrderDO_drdsOrderDOList;

            List <DescribeRestoreOrderResponse.DescribeRestoreOrder_RestoreOrderDO.DescribeRestoreOrder_RdsOrderDOListItem> restoreOrderDO_rdsOrderDOList = new List <DescribeRestoreOrderResponse.DescribeRestoreOrder_RestoreOrderDO.DescribeRestoreOrder_RdsOrderDOListItem>();

            for (int i = 0; i < _ctx.Length("DescribeRestoreOrder.RestoreOrderDO.RdsOrderDOList.Length"); i++)
            {
                DescribeRestoreOrderResponse.DescribeRestoreOrder_RestoreOrderDO.DescribeRestoreOrder_RdsOrderDOListItem rdsOrderDOListItem = new DescribeRestoreOrderResponse.DescribeRestoreOrder_RestoreOrderDO.DescribeRestoreOrder_RdsOrderDOListItem();
                rdsOrderDOListItem.RegionId          = _ctx.StringValue("DescribeRestoreOrder.RestoreOrderDO.RdsOrderDOList[" + i + "].RegionId");
                rdsOrderDOListItem.AzoneId           = _ctx.StringValue("DescribeRestoreOrder.RestoreOrderDO.RdsOrderDOList[" + i + "].AzoneId");
                rdsOrderDOListItem.Engine            = _ctx.StringValue("DescribeRestoreOrder.RestoreOrderDO.RdsOrderDOList[" + i + "].Engine");
                rdsOrderDOListItem.Version           = _ctx.StringValue("DescribeRestoreOrder.RestoreOrderDO.RdsOrderDOList[" + i + "].Version");
                rdsOrderDOListItem.InstanceClass     = _ctx.StringValue("DescribeRestoreOrder.RestoreOrderDO.RdsOrderDOList[" + i + "].InstanceClass");
                rdsOrderDOListItem.DbInstanceStorage = _ctx.StringValue("DescribeRestoreOrder.RestoreOrderDO.RdsOrderDOList[" + i + "].DbInstanceStorage");
                rdsOrderDOListItem.Network           = _ctx.StringValue("DescribeRestoreOrder.RestoreOrderDO.RdsOrderDOList[" + i + "].Network");
                rdsOrderDOListItem.Num = _ctx.LongValue("DescribeRestoreOrder.RestoreOrderDO.RdsOrderDOList[" + i + "].Num");

                restoreOrderDO_rdsOrderDOList.Add(rdsOrderDOListItem);
            }
            restoreOrderDO.RdsOrderDOList = restoreOrderDO_rdsOrderDOList;

            List <DescribeRestoreOrderResponse.DescribeRestoreOrder_RestoreOrderDO.DescribeRestoreOrder_PolarOrderDOListItem> restoreOrderDO_polarOrderDOList = new List <DescribeRestoreOrderResponse.DescribeRestoreOrder_RestoreOrderDO.DescribeRestoreOrder_PolarOrderDOListItem>();

            for (int i = 0; i < _ctx.Length("DescribeRestoreOrder.RestoreOrderDO.PolarOrderDOList.Length"); i++)
            {
                DescribeRestoreOrderResponse.DescribeRestoreOrder_RestoreOrderDO.DescribeRestoreOrder_PolarOrderDOListItem polarOrderDOListItem = new DescribeRestoreOrderResponse.DescribeRestoreOrder_RestoreOrderDO.DescribeRestoreOrder_PolarOrderDOListItem();
                polarOrderDOListItem.RegionId          = _ctx.StringValue("DescribeRestoreOrder.RestoreOrderDO.PolarOrderDOList[" + i + "].RegionId");
                polarOrderDOListItem.AzoneId           = _ctx.StringValue("DescribeRestoreOrder.RestoreOrderDO.PolarOrderDOList[" + i + "].AzoneId");
                polarOrderDOListItem.Engine            = _ctx.StringValue("DescribeRestoreOrder.RestoreOrderDO.PolarOrderDOList[" + i + "].Engine");
                polarOrderDOListItem.Version           = _ctx.StringValue("DescribeRestoreOrder.RestoreOrderDO.PolarOrderDOList[" + i + "].Version");
                polarOrderDOListItem.InstanceClass     = _ctx.StringValue("DescribeRestoreOrder.RestoreOrderDO.PolarOrderDOList[" + i + "].InstanceClass");
                polarOrderDOListItem.DbInstanceStorage = _ctx.StringValue("DescribeRestoreOrder.RestoreOrderDO.PolarOrderDOList[" + i + "].DbInstanceStorage");
                polarOrderDOListItem.Network           = _ctx.StringValue("DescribeRestoreOrder.RestoreOrderDO.PolarOrderDOList[" + i + "].Network");
                polarOrderDOListItem.Num = _ctx.LongValue("DescribeRestoreOrder.RestoreOrderDO.PolarOrderDOList[" + i + "].Num");

                restoreOrderDO_polarOrderDOList.Add(polarOrderDOListItem);
            }
            restoreOrderDO.PolarOrderDOList             = restoreOrderDO_polarOrderDOList;
            describeRestoreOrderResponse.RestoreOrderDO = restoreOrderDO;

            return(describeRestoreOrderResponse);
        }
        public static GetOrderResponse Unmarshall(UnmarshallerContext context)
        {
            GetOrderResponse getOrderResponse = new GetOrderResponse();

            getOrderResponse.HttpResponse = context.HttpResponse;
            getOrderResponse.Code         = context.IntegerValue("GetOrder.Code");
            getOrderResponse.Message      = context.StringValue("GetOrder.Message");
            getOrderResponse.RequestId    = context.StringValue("GetOrder.RequestId");

            GetOrderResponse.GetOrder_Data data = new GetOrderResponse.GetOrder_Data();

            GetOrderResponse.GetOrder_Data.GetOrder_Order order = new GetOrderResponse.GetOrder_Data.GetOrder_Order();
            order.Alias             = context.StringValue("GetOrder.Data.Order.Alias");
            order.CredentialGroupId = context.LongValue("GetOrder.Data.Order.CredentialGroupId");
            order.CsbId             = context.LongValue("GetOrder.Data.Order.CsbId");
            order.DauthGroupName    = context.StringValue("GetOrder.Data.Order.DauthGroupName");
            order.GmtCreate         = context.LongValue("GetOrder.Data.Order.GmtCreate");
            order.GmtModified       = context.LongValue("GetOrder.Data.Order.GmtModified");
            order.GroupName         = context.StringValue("GetOrder.Data.Order.GroupName");
            order.Id                  = context.LongValue("GetOrder.Data.Order.Id");
            order.ProjectName         = context.StringValue("GetOrder.Data.Order.ProjectName");
            order.ServiceId           = context.LongValue("GetOrder.Data.Order.ServiceId");
            order.ServiceName         = context.StringValue("GetOrder.Data.Order.ServiceName");
            order.ServiceStatus       = context.IntegerValue("GetOrder.Data.Order.ServiceStatus");
            order.ServiceVersion      = context.StringValue("GetOrder.Data.Order.ServiceVersion");
            order.StatisticName       = context.StringValue("GetOrder.Data.Order.StatisticName");
            order.Status              = context.IntegerValue("GetOrder.Data.Order.Status");
            order.StrictWhiteListJson = context.StringValue("GetOrder.Data.Order.StrictWhiteListJson");
            order.UserId              = context.StringValue("GetOrder.Data.Order.UserId");

            List <string> order_strictWhiteList = new List <string>();

            for (int i = 0; i < context.Length("GetOrder.Data.Order.StrictWhiteList.Length"); i++)
            {
                order_strictWhiteList.Add(context.StringValue("GetOrder.Data.Order.StrictWhiteList[" + i + "]"));
            }
            order.StrictWhiteList = order_strictWhiteList;

            GetOrderResponse.GetOrder_Data.GetOrder_Order.GetOrder_Service service = new GetOrderResponse.GetOrder_Data.GetOrder_Order.GetOrder_Service();
            service.AccessParamsJSON = context.StringValue("GetOrder.Data.Order.Service.AccessParamsJSON");
            service.Active           = context.BooleanValue("GetOrder.Data.Order.Service.Active");
            service.Alias            = context.StringValue("GetOrder.Data.Order.Service.Alias");
            service.AllVisiable      = context.BooleanValue("GetOrder.Data.Order.Service.AllVisiable");
            service.ConsumeTypesJSON = context.StringValue("GetOrder.Data.Order.Service.ConsumeTypesJSON");
            service.CreateTime       = context.LongValue("GetOrder.Data.Order.Service.CreateTime");
            service.CsbId            = context.LongValue("GetOrder.Data.Order.Service.CsbId");
            service.ErrDefJSON       = context.StringValue("GetOrder.Data.Order.Service.ErrDefJSON");
            service.Id                  = context.LongValue("GetOrder.Data.Order.Service.Id");
            service.InterfaceName       = context.StringValue("GetOrder.Data.Order.Service.InterfaceName");
            service.OldVersion          = context.StringValue("GetOrder.Data.Order.Service.OldVersion");
            service.OttFlag             = context.BooleanValue("GetOrder.Data.Order.Service.OttFlag");
            service.OwnerId             = context.StringValue("GetOrder.Data.Order.Service.OwnerId");
            service.PrincipalName       = context.StringValue("GetOrder.Data.Order.Service.PrincipalName");
            service.ProjectId           = context.StringValue("GetOrder.Data.Order.Service.ProjectId");
            service.ProjectName         = context.StringValue("GetOrder.Data.Order.Service.ProjectName");
            service.ProvideType         = context.StringValue("GetOrder.Data.Order.Service.ProvideType");
            service.SSL                 = context.BooleanValue("GetOrder.Data.Order.Service.SSL");
            service.Scope               = context.StringValue("GetOrder.Data.Order.Service.Scope");
            service.ServiceName         = context.StringValue("GetOrder.Data.Order.Service.ServiceName");
            service.ServiceProviderType = context.StringValue("GetOrder.Data.Order.Service.ServiceProviderType");
            service.ServiceVersion      = context.StringValue("GetOrder.Data.Order.Service.ServiceVersion");
            service.SkipAuth            = context.BooleanValue("GetOrder.Data.Order.Service.SkipAuth");
            service.StatisticName       = context.StringValue("GetOrder.Data.Order.Service.StatisticName");
            service.Status              = context.IntegerValue("GetOrder.Data.Order.Service.Status");
            service.UserId              = context.LongValue("GetOrder.Data.Order.Service.UserId");
            service.ValidConsumeTypes   = context.BooleanValue("GetOrder.Data.Order.Service.ValidConsumeTypes");
            service.ValidProvideType    = context.BooleanValue("GetOrder.Data.Order.Service.ValidProvideType");
            order.Service               = service;

            GetOrderResponse.GetOrder_Data.GetOrder_Order.GetOrder_SlaInfo slaInfo = new GetOrderResponse.GetOrder_Data.GetOrder_Order.GetOrder_SlaInfo();
            slaInfo.Qph   = context.StringValue("GetOrder.Data.Order.SlaInfo.Qph");
            slaInfo.Qps   = context.StringValue("GetOrder.Data.Order.SlaInfo.Qps");
            order.SlaInfo = slaInfo;

            GetOrderResponse.GetOrder_Data.GetOrder_Order.GetOrder_Total total = new GetOrderResponse.GetOrder_Data.GetOrder_Order.GetOrder_Total();
            total.ErrorNum = context.IntegerValue("GetOrder.Data.Order.Total.ErrorNum");
            total.Total    = context.IntegerValue("GetOrder.Data.Order.Total.Total");
            order.Total    = total;

            List <GetOrderResponse.GetOrder_Data.GetOrder_Order.GetOrder_ErrorTypeCatagory> order_errorTypeCatagoryList = new List <GetOrderResponse.GetOrder_Data.GetOrder_Order.GetOrder_ErrorTypeCatagory>();

            for (int i = 0; i < context.Length("GetOrder.Data.Order.ErrorTypeCatagoryList.Length"); i++)
            {
                GetOrderResponse.GetOrder_Data.GetOrder_Order.GetOrder_ErrorTypeCatagory errorTypeCatagory = new GetOrderResponse.GetOrder_Data.GetOrder_Order.GetOrder_ErrorTypeCatagory();
                errorTypeCatagory.Total    = context.IntegerValue("GetOrder.Data.Order.ErrorTypeCatagoryList[" + i + "].Total");
                errorTypeCatagory.ErrorNum = context.IntegerValue("GetOrder.Data.Order.ErrorTypeCatagoryList[" + i + "].ErrorNum");
                errorTypeCatagory.Name     = context.StringValue("GetOrder.Data.Order.ErrorTypeCatagoryList[" + i + "].Name");

                order_errorTypeCatagoryList.Add(errorTypeCatagory);
            }
            order.ErrorTypeCatagoryList = order_errorTypeCatagoryList;
            data.Order            = order;
            getOrderResponse.Data = data;

            return(getOrderResponse);
        }
Example #59
0
        public static DescribeDomainResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeDomainResponse describeDomainResponse = new DescribeDomainResponse();

            describeDomainResponse.HttpResponse = _ctx.HttpResponse;
            describeDomainResponse.RequestId    = _ctx.StringValue("DescribeDomain.RequestId");

            DescribeDomainResponse.DescribeDomain_Domain domain = new DescribeDomainResponse.DescribeDomain_Domain();
            domain.IpFollowStatus  = _ctx.IntegerValue("DescribeDomain.Domain.IpFollowStatus");
            domain.HttpToUserIp    = _ctx.IntegerValue("DescribeDomain.Domain.HttpToUserIp");
            domain.HttpsRedirect   = _ctx.IntegerValue("DescribeDomain.Domain.HttpsRedirect");
            domain.LoadBalancing   = _ctx.IntegerValue("DescribeDomain.Domain.LoadBalancing");
            domain.Cname           = _ctx.StringValue("DescribeDomain.Domain.Cname");
            domain.IsAccessProduct = _ctx.IntegerValue("DescribeDomain.Domain.IsAccessProduct");
            domain.Version         = _ctx.LongValue("DescribeDomain.Domain.Version");
            domain.ClusterType     = _ctx.IntegerValue("DescribeDomain.Domain.ClusterType");
            domain.ConnectionTime  = _ctx.IntegerValue("DescribeDomain.Domain.ConnectionTime");
            domain.ReadTime        = _ctx.IntegerValue("DescribeDomain.Domain.ReadTime");
            domain.WriteTime       = _ctx.IntegerValue("DescribeDomain.Domain.WriteTime");
            domain.ResourceGroupId = _ctx.StringValue("DescribeDomain.Domain.ResourceGroupId");
            domain.AccessType      = _ctx.StringValue("DescribeDomain.Domain.AccessType");

            List <string> domain_sourceIps = new List <string>();

            for (int i = 0; i < _ctx.Length("DescribeDomain.Domain.SourceIps.Length"); i++)
            {
                domain_sourceIps.Add(_ctx.StringValue("DescribeDomain.Domain.SourceIps[" + i + "]"));
            }
            domain.SourceIps = domain_sourceIps;

            List <string> domain_http2Port = new List <string>();

            for (int i = 0; i < _ctx.Length("DescribeDomain.Domain.Http2Port.Length"); i++)
            {
                domain_http2Port.Add(_ctx.StringValue("DescribeDomain.Domain.Http2Port[" + i + "]"));
            }
            domain.Http2Port = domain_http2Port;

            List <string> domain_httpPort = new List <string>();

            for (int i = 0; i < _ctx.Length("DescribeDomain.Domain.HttpPort.Length"); i++)
            {
                domain_httpPort.Add(_ctx.StringValue("DescribeDomain.Domain.HttpPort[" + i + "]"));
            }
            domain.HttpPort = domain_httpPort;

            List <string> domain_httpsPort = new List <string>();

            for (int i = 0; i < _ctx.Length("DescribeDomain.Domain.HttpsPort.Length"); i++)
            {
                domain_httpsPort.Add(_ctx.StringValue("DescribeDomain.Domain.HttpsPort[" + i + "]"));
            }
            domain.HttpsPort = domain_httpsPort;

            List <DescribeDomainResponse.DescribeDomain_Domain.DescribeDomain_LogHeader> domain_logHeaders = new List <DescribeDomainResponse.DescribeDomain_Domain.DescribeDomain_LogHeader>();

            for (int i = 0; i < _ctx.Length("DescribeDomain.Domain.LogHeaders.Length"); i++)
            {
                DescribeDomainResponse.DescribeDomain_Domain.DescribeDomain_LogHeader logHeader = new DescribeDomainResponse.DescribeDomain_Domain.DescribeDomain_LogHeader();
                logHeader.V = _ctx.StringValue("DescribeDomain.Domain.LogHeaders[" + i + "].v");
                logHeader.K = _ctx.StringValue("DescribeDomain.Domain.LogHeaders[" + i + "].k");

                domain_logHeaders.Add(logHeader);
            }
            domain.LogHeaders = domain_logHeaders;

            List <DescribeDomainResponse.DescribeDomain_Domain.DescribeDomain_CloudNativeInstancesItem> domain_cloudNativeInstances = new List <DescribeDomainResponse.DescribeDomain_Domain.DescribeDomain_CloudNativeInstancesItem>();

            for (int i = 0; i < _ctx.Length("DescribeDomain.Domain.CloudNativeInstances.Length"); i++)
            {
                DescribeDomainResponse.DescribeDomain_Domain.DescribeDomain_CloudNativeInstancesItem cloudNativeInstancesItem = new DescribeDomainResponse.DescribeDomain_Domain.DescribeDomain_CloudNativeInstancesItem();
                cloudNativeInstancesItem.CloudNativeProductName = _ctx.StringValue("DescribeDomain.Domain.CloudNativeInstances[" + i + "].CloudNativeProductName");
                cloudNativeInstancesItem.InstanceId             = _ctx.StringValue("DescribeDomain.Domain.CloudNativeInstances[" + i + "].InstanceId");
                cloudNativeInstancesItem.IPAddressList          = _ctx.StringValue("DescribeDomain.Domain.CloudNativeInstances[" + i + "].IPAddressList");

                List <DescribeDomainResponse.DescribeDomain_Domain.DescribeDomain_CloudNativeInstancesItem.DescribeDomain_ProtocolPortConfigsItem> cloudNativeInstancesItem_protocolPortConfigs = new List <DescribeDomainResponse.DescribeDomain_Domain.DescribeDomain_CloudNativeInstancesItem.DescribeDomain_ProtocolPortConfigsItem>();
                for (int j = 0; j < _ctx.Length("DescribeDomain.Domain.CloudNativeInstances[" + i + "].ProtocolPortConfigs.Length"); j++)
                {
                    DescribeDomainResponse.DescribeDomain_Domain.DescribeDomain_CloudNativeInstancesItem.DescribeDomain_ProtocolPortConfigsItem protocolPortConfigsItem = new DescribeDomainResponse.DescribeDomain_Domain.DescribeDomain_CloudNativeInstancesItem.DescribeDomain_ProtocolPortConfigsItem();
                    protocolPortConfigsItem.Protocol = _ctx.StringValue("DescribeDomain.Domain.CloudNativeInstances[" + i + "].ProtocolPortConfigs[" + j + "].Protocol");
                    protocolPortConfigsItem.Ports    = _ctx.StringValue("DescribeDomain.Domain.CloudNativeInstances[" + i + "].ProtocolPortConfigs[" + j + "].Ports");

                    cloudNativeInstancesItem_protocolPortConfigs.Add(protocolPortConfigsItem);
                }
                cloudNativeInstancesItem.ProtocolPortConfigs = cloudNativeInstancesItem_protocolPortConfigs;

                domain_cloudNativeInstances.Add(cloudNativeInstancesItem);
            }
            domain.CloudNativeInstances   = domain_cloudNativeInstances;
            describeDomainResponse.Domain = domain;

            return(describeDomainResponse);
        }
Example #60
0
        public static QueryItemDetailInnerResponse Unmarshall(UnmarshallerContext context)
        {
            QueryItemDetailInnerResponse queryItemDetailInnerResponse = new QueryItemDetailInnerResponse();

            queryItemDetailInnerResponse.HttpResponse = context.HttpResponse;
            queryItemDetailInnerResponse.RequestId    = context.StringValue("QueryItemDetailInner.RequestId");
            queryItemDetailInnerResponse.Code         = context.StringValue("QueryItemDetailInner.Code");
            queryItemDetailInnerResponse.Message      = context.StringValue("QueryItemDetailInner.Message");

            QueryItemDetailInnerResponse.QueryItemDetailInner_Item item = new QueryItemDetailInnerResponse.QueryItemDetailInner_Item();
            item.ItemId             = context.LongValue("QueryItemDetailInner.Item.ItemId");
            item.ItemTitle          = context.StringValue("QueryItemDetailInner.Item.ItemTitle");
            item.MainPicUrl         = context.StringValue("QueryItemDetailInner.Item.MainPicUrl");
            item.DescPath           = context.StringValue("QueryItemDetailInner.Item.DescPath");
            item.MinPrice           = context.LongValue("QueryItemDetailInner.Item.MinPrice");
            item.MinPoints          = context.LongValue("QueryItemDetailInner.Item.MinPoints");
            item.ReservePrice       = context.LongValue("QueryItemDetailInner.Item.ReservePrice");
            item.Quantity           = context.IntegerValue("QueryItemDetailInner.Item.Quantity");
            item.IsSellerPayPostfee = context.BooleanValue("QueryItemDetailInner.Item.IsSellerPayPostfee");
            item.IsCanSell          = context.BooleanValue("QueryItemDetailInner.Item.IsCanSell");
            item.TotalSoldQuantity  = context.IntegerValue("QueryItemDetailInner.Item.TotalSoldQuantity");
            item.Properties         = context.StringValue("QueryItemDetailInner.Item.Properties");
            item.CanSell            = context.BooleanValue("QueryItemDetailInner.Item.CanSell");
            item.SellerPayPostfee   = context.BooleanValue("QueryItemDetailInner.Item.SellerPayPostfee");
            item.CategoryId         = context.LongValue("QueryItemDetailInner.Item.CategoryId");
            item.SellerId           = context.LongValue("QueryItemDetailInner.Item.SellerId");
            item.TbShopName         = context.StringValue("QueryItemDetailInner.Item.TbShopName");
            item.LmItemCategory     = context.StringValue("QueryItemDetailInner.Item.LmItemCategory");
            item.CenterInventory    = context.BooleanValue("QueryItemDetailInner.Item.CenterInventory");
            item.Province           = context.StringValue("QueryItemDetailInner.Item.Province");
            item.City       = context.StringValue("QueryItemDetailInner.Item.City");
            item.DescOption = context.StringValue("QueryItemDetailInner.Item.DescOption");
            item.SellerNick = context.StringValue("QueryItemDetailInner.Item.SellerNick");
            item.LmShopId   = context.LongValue("QueryItemDetailInner.Item.LmShopId");

            List <Dictionary <string, string> > item_iforestProps = new List <Dictionary <string, string> >();

            for (int i = 0; i < context.Length("QueryItemDetailInner.Item.IforestProps.Length"); i++)
            {
                Dictionary <string, string> tmp = new Dictionary <string, string>()
                {
                };
                foreach (var _item in context.ResponseDictionary)
                {
                    string prefix = "QueryItemDetailInner.Item.IforestProps[" + i + "].";
                    if (_item.Key.IndexOf(prefix) == 0)
                    {
                        tmp.Add(_item.Key.Substring(prefix.Length), _item.Value);
                    }
                }
                if (tmp.Count > 0)
                {
                    item_iforestProps.Add(tmp);
                }
            }
            item.IforestProps = item_iforestProps;

            List <string> item_itemImages = new List <string>();

            for (int i = 0; i < context.Length("QueryItemDetailInner.Item.ItemImages.Length"); i++)
            {
                item_itemImages.Add(context.StringValue("QueryItemDetailInner.Item.ItemImages[" + i + "]"));
            }
            item.ItemImages = item_itemImages;

            List <string> item_categoryIds = new List <string>();

            for (int i = 0; i < context.Length("QueryItemDetailInner.Item.CategoryIds.Length"); i++)
            {
                item_categoryIds.Add(context.StringValue("QueryItemDetailInner.Item.CategoryIds[" + i + "]"));
            }
            item.CategoryIds = item_categoryIds;

            List <QueryItemDetailInnerResponse.QueryItemDetailInner_Item.QueryItemDetailInner_Sku> item_skus = new List <QueryItemDetailInnerResponse.QueryItemDetailInner_Item.QueryItemDetailInner_Sku>();

            for (int i = 0; i < context.Length("QueryItemDetailInner.Item.Skus.Length"); i++)
            {
                QueryItemDetailInnerResponse.QueryItemDetailInner_Item.QueryItemDetailInner_Sku sku = new QueryItemDetailInnerResponse.QueryItemDetailInner_Item.QueryItemDetailInner_Sku();
                sku.ExtJson      = context.StringValue("QueryItemDetailInner.Item.Skus[" + i + "].ExtJson");
                sku.ItemId       = context.LongValue("QueryItemDetailInner.Item.Skus[" + i + "].ItemId");
                sku.SkuId        = context.LongValue("QueryItemDetailInner.Item.Skus[" + i + "].SkuId");
                sku.SkuPvs       = context.StringValue("QueryItemDetailInner.Item.Skus[" + i + "].SkuPvs");
                sku.SkuPicUrl    = context.StringValue("QueryItemDetailInner.Item.Skus[" + i + "].SkuPicUrl");
                sku.SkuTitle     = context.StringValue("QueryItemDetailInner.Item.Skus[" + i + "].SkuTitle");
                sku.Quantity     = context.IntegerValue("QueryItemDetailInner.Item.Skus[" + i + "].Quantity");
                sku.PriceCent    = context.LongValue("QueryItemDetailInner.Item.Skus[" + i + "].PriceCent");
                sku.Points       = context.LongValue("QueryItemDetailInner.Item.Skus[" + i + "].Points");
                sku.PointsAmount = context.LongValue("QueryItemDetailInner.Item.Skus[" + i + "].PointsAmount");
                sku.PointPrice   = context.LongValue("QueryItemDetailInner.Item.Skus[" + i + "].PointPrice");
                sku.ReservePrice = context.LongValue("QueryItemDetailInner.Item.Skus[" + i + "].ReservePrice");
                sku.Status       = context.IntegerValue("QueryItemDetailInner.Item.Skus[" + i + "].Status");
                sku.LmItemId     = context.StringValue("QueryItemDetailInner.Item.Skus[" + i + "].LmItemId");
                sku.SkuDesc      = context.StringValue("QueryItemDetailInner.Item.Skus[" + i + "].SkuDesc");

                item_skus.Add(sku);
            }
            item.Skus = item_skus;

            List <QueryItemDetailInnerResponse.QueryItemDetailInner_Item.QueryItemDetailInner_SkuProperty> item_skuPropertys = new List <QueryItemDetailInnerResponse.QueryItemDetailInner_Item.QueryItemDetailInner_SkuProperty>();

            for (int i = 0; i < context.Length("QueryItemDetailInner.Item.SkuPropertys.Length"); i++)
            {
                QueryItemDetailInnerResponse.QueryItemDetailInner_Item.QueryItemDetailInner_SkuProperty skuProperty = new QueryItemDetailInnerResponse.QueryItemDetailInner_Item.QueryItemDetailInner_SkuProperty();
                skuProperty.Id   = context.LongValue("QueryItemDetailInner.Item.SkuPropertys[" + i + "].Id");
                skuProperty.Text = context.StringValue("QueryItemDetailInner.Item.SkuPropertys[" + i + "].Text");

                List <QueryItemDetailInnerResponse.QueryItemDetailInner_Item.QueryItemDetailInner_SkuProperty.QueryItemDetailInner__Value> skuProperty_values = new List <QueryItemDetailInnerResponse.QueryItemDetailInner_Item.QueryItemDetailInner_SkuProperty.QueryItemDetailInner__Value>();
                for (int j = 0; j < context.Length("QueryItemDetailInner.Item.SkuPropertys[" + i + "].Values.Length"); j++)
                {
                    QueryItemDetailInnerResponse.QueryItemDetailInner_Item.QueryItemDetailInner_SkuProperty.QueryItemDetailInner__Value _value = new QueryItemDetailInnerResponse.QueryItemDetailInner_Item.QueryItemDetailInner_SkuProperty.QueryItemDetailInner__Value();
                    _value.Id   = context.LongValue("QueryItemDetailInner.Item.SkuPropertys[" + i + "].Values[" + j + "].Id");
                    _value.Text = context.StringValue("QueryItemDetailInner.Item.SkuPropertys[" + i + "].Values[" + j + "].Text");

                    skuProperty_values.Add(_value);
                }
                skuProperty.Values = skuProperty_values;

                item_skuPropertys.Add(skuProperty);
            }
            item.SkuPropertys = item_skuPropertys;
            queryItemDetailInnerResponse.Item = item;

            return(queryItemDetailInnerResponse);
        }