public static QueryPageByApplyIdResponse Unmarshall(UnmarshallerContext context)
        {
            QueryPageByApplyIdResponse queryPageByApplyIdResponse = new QueryPageByApplyIdResponse();

            queryPageByApplyIdResponse.HttpResponse = context.HttpResponse;
            queryPageByApplyIdResponse.RequestId = context.StringValue("QueryPageByApplyId.RequestId");
            queryPageByApplyIdResponse.Success = context.BooleanValue("QueryPageByApplyId.Success");
            queryPageByApplyIdResponse.ErrorMessage = context.StringValue("QueryPageByApplyId.ErrorMessage");
            queryPageByApplyIdResponse.PageSize = context.IntegerValue("QueryPageByApplyId.PageSize");
            queryPageByApplyIdResponse.Page = context.IntegerValue("QueryPageByApplyId.Page");
            queryPageByApplyIdResponse.PageCount = context.IntegerValue("QueryPageByApplyId.PageCount");
            queryPageByApplyIdResponse.Total = context.IntegerValue("QueryPageByApplyId.Total");

            List<QueryPageByApplyIdResponse.ApplyDeviceInfo> applyDeviceList = new List<QueryPageByApplyIdResponse.ApplyDeviceInfo>();
            for (int i = 0; i < context.Length("QueryPageByApplyId.ApplyDeviceList.Length"); i++) {
                QueryPageByApplyIdResponse.ApplyDeviceInfo applyDeviceInfo = new QueryPageByApplyIdResponse.ApplyDeviceInfo();
                applyDeviceInfo.DeviceId = context.StringValue("QueryPageByApplyId.ApplyDeviceList["+ i +"].DeviceId");
                applyDeviceInfo.DeviceName = context.StringValue("QueryPageByApplyId.ApplyDeviceList["+ i +"].DeviceName");
                applyDeviceInfo.DeviceSecret = context.StringValue("QueryPageByApplyId.ApplyDeviceList["+ i +"].DeviceSecret");

                applyDeviceList.Add(applyDeviceInfo);
            }
            queryPageByApplyIdResponse.ApplyDeviceList = applyDeviceList;

            return queryPageByApplyIdResponse;
        }
        public static DescribeLoadBalancerTCPListenerAttributeResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeLoadBalancerTCPListenerAttributeResponse describeLoadBalancerTCPListenerAttributeResponse = new DescribeLoadBalancerTCPListenerAttributeResponse();

            describeLoadBalancerTCPListenerAttributeResponse.HttpResponse = context.HttpResponse;
            describeLoadBalancerTCPListenerAttributeResponse.RequestId = context.StringValue("DescribeLoadBalancerTCPListenerAttribute.RequestId");
            describeLoadBalancerTCPListenerAttributeResponse.ListenerPort = context.IntegerValue("DescribeLoadBalancerTCPListenerAttribute.ListenerPort");
            describeLoadBalancerTCPListenerAttributeResponse.BackendServerPort = context.IntegerValue("DescribeLoadBalancerTCPListenerAttribute.BackendServerPort");
            describeLoadBalancerTCPListenerAttributeResponse.Status = context.StringValue("DescribeLoadBalancerTCPListenerAttribute.Status");
            describeLoadBalancerTCPListenerAttributeResponse.Bandwidth = context.IntegerValue("DescribeLoadBalancerTCPListenerAttribute.Bandwidth");
            describeLoadBalancerTCPListenerAttributeResponse.Scheduler = context.StringValue("DescribeLoadBalancerTCPListenerAttribute.Scheduler");
            describeLoadBalancerTCPListenerAttributeResponse.SynProxy = context.StringValue("DescribeLoadBalancerTCPListenerAttribute.SynProxy");
            describeLoadBalancerTCPListenerAttributeResponse.PersistenceTimeout = context.IntegerValue("DescribeLoadBalancerTCPListenerAttribute.PersistenceTimeout");
            describeLoadBalancerTCPListenerAttributeResponse.HealthCheck = context.StringValue("DescribeLoadBalancerTCPListenerAttribute.HealthCheck");
            describeLoadBalancerTCPListenerAttributeResponse.HealthyThreshold = context.IntegerValue("DescribeLoadBalancerTCPListenerAttribute.HealthyThreshold");
            describeLoadBalancerTCPListenerAttributeResponse.UnhealthyThreshold = context.IntegerValue("DescribeLoadBalancerTCPListenerAttribute.UnhealthyThreshold");
            describeLoadBalancerTCPListenerAttributeResponse.HealthCheckConnectTimeout = context.IntegerValue("DescribeLoadBalancerTCPListenerAttribute.HealthCheckConnectTimeout");
            describeLoadBalancerTCPListenerAttributeResponse.HealthCheckConnectPort = context.IntegerValue("DescribeLoadBalancerTCPListenerAttribute.HealthCheckConnectPort");
            describeLoadBalancerTCPListenerAttributeResponse.HealthCheckInterval = context.IntegerValue("DescribeLoadBalancerTCPListenerAttribute.HealthCheckInterval");
            describeLoadBalancerTCPListenerAttributeResponse.HealthCheckHttpCode = context.StringValue("DescribeLoadBalancerTCPListenerAttribute.HealthCheckHttpCode");
            describeLoadBalancerTCPListenerAttributeResponse.HealthCheckDomain = context.StringValue("DescribeLoadBalancerTCPListenerAttribute.HealthCheckDomain");
            describeLoadBalancerTCPListenerAttributeResponse.HealthCheckURI = context.StringValue("DescribeLoadBalancerTCPListenerAttribute.HealthCheckURI");
            describeLoadBalancerTCPListenerAttributeResponse.HealthCheckType = context.StringValue("DescribeLoadBalancerTCPListenerAttribute.HealthCheckType");
            describeLoadBalancerTCPListenerAttributeResponse.MaxConnection = context.IntegerValue("DescribeLoadBalancerTCPListenerAttribute.MaxConnection");
            describeLoadBalancerTCPListenerAttributeResponse.VServerGroupId = context.StringValue("DescribeLoadBalancerTCPListenerAttribute.VServerGroupId");

            return describeLoadBalancerTCPListenerAttributeResponse;
        }
        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 DescribeRealtimeDiagnosesResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeRealtimeDiagnosesResponse describeRealtimeDiagnosesResponse = new DescribeRealtimeDiagnosesResponse();

            describeRealtimeDiagnosesResponse.HttpResponse = context.HttpResponse;
            describeRealtimeDiagnosesResponse.RequestId = context.StringValue("DescribeRealtimeDiagnoses.RequestId");
            describeRealtimeDiagnosesResponse.Engine = context.StringValue("DescribeRealtimeDiagnoses.Engine");
            describeRealtimeDiagnosesResponse.TotalRecordCount = context.IntegerValue("DescribeRealtimeDiagnoses.TotalRecordCount");
            describeRealtimeDiagnosesResponse.PageNumber = context.IntegerValue("DescribeRealtimeDiagnoses.PageNumber");
            describeRealtimeDiagnosesResponse.PageRecordCount = context.IntegerValue("DescribeRealtimeDiagnoses.PageRecordCount");

            List<DescribeRealtimeDiagnosesResponse.RealtimeDiagnoseTasks> tasks = new List<DescribeRealtimeDiagnosesResponse.RealtimeDiagnoseTasks>();
            for (int i = 0; i < context.Length("DescribeRealtimeDiagnoses.Tasks.Length"); i++) {
                DescribeRealtimeDiagnosesResponse.RealtimeDiagnoseTasks realtimeDiagnoseTasks = new DescribeRealtimeDiagnosesResponse.RealtimeDiagnoseTasks();
                realtimeDiagnoseTasks.CreateTime = context.StringValue("DescribeRealtimeDiagnoses.Tasks["+ i +"].CreateTime");
                realtimeDiagnoseTasks.TaskId = context.StringValue("DescribeRealtimeDiagnoses.Tasks["+ i +"].TaskId");
                realtimeDiagnoseTasks.HealthScore = context.StringValue("DescribeRealtimeDiagnoses.Tasks["+ i +"].HealthScore");
                realtimeDiagnoseTasks.Status = context.EnumValue<DescribeRealtimeDiagnosesResponse.RealtimeDiagnoseTasks.StatusEnum>("DescribeRealtimeDiagnoses.Tasks["+ i +"].Status");

                tasks.Add(realtimeDiagnoseTasks);
            }
            describeRealtimeDiagnosesResponse.Tasks = tasks;

            return describeRealtimeDiagnosesResponse;
        }
        public static QuerySmsDetailByPageResponse Unmarshall(UnmarshallerContext context)
        {
            QuerySmsDetailByPageResponse querySmsDetailByPageResponse = new QuerySmsDetailByPageResponse();

            querySmsDetailByPageResponse.HttpResponse = context.HttpResponse;
            querySmsDetailByPageResponse.RequestId = context.StringValue("QuerySmsDetailByPage.RequestId");
            querySmsDetailByPageResponse.PageNumber = context.IntegerValue("QuerySmsDetailByPage.PageNumber");
            querySmsDetailByPageResponse.PageSize = context.IntegerValue("QuerySmsDetailByPage.PageSize");
            querySmsDetailByPageResponse.TotalCount = context.IntegerValue("QuerySmsDetailByPage.TotalCount");

            List<QuerySmsDetailByPageResponse.stat> data = new List<QuerySmsDetailByPageResponse.stat>();
            for (int i = 0; i < context.Length("QuerySmsDetailByPage.data.Length"); i++) {
                QuerySmsDetailByPageResponse.stat stat = new QuerySmsDetailByPageResponse.stat();
                stat.ReceiverNum = context.StringValue("QuerySmsDetailByPage.data["+ i +"].ReceiverNum");
                stat.SmsCode = context.StringValue("QuerySmsDetailByPage.data["+ i +"].SmsCode");
                stat.SmsContent = context.StringValue("QuerySmsDetailByPage.data["+ i +"].SmsContent");
                stat.SmsStatus = context.IntegerValue("QuerySmsDetailByPage.data["+ i +"].SmsStatus");
                stat.ResultCode = context.StringValue("QuerySmsDetailByPage.data["+ i +"].ResultCode");

                data.Add(stat);
            }
            querySmsDetailByPageResponse.Data = data;

            return querySmsDetailByPageResponse;
        }
        public static DescribeLoadBalancerHTTPSListenerAttributeResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeLoadBalancerHTTPSListenerAttributeResponse describeLoadBalancerHTTPSListenerAttributeResponse = new DescribeLoadBalancerHTTPSListenerAttributeResponse();

            describeLoadBalancerHTTPSListenerAttributeResponse.HttpResponse = context.HttpResponse;
            describeLoadBalancerHTTPSListenerAttributeResponse.RequestId = context.StringValue("DescribeLoadBalancerHTTPSListenerAttribute.RequestId");
            describeLoadBalancerHTTPSListenerAttributeResponse.ListenerPort = context.IntegerValue("DescribeLoadBalancerHTTPSListenerAttribute.ListenerPort");
            describeLoadBalancerHTTPSListenerAttributeResponse.BackendServerPort = context.IntegerValue("DescribeLoadBalancerHTTPSListenerAttribute.BackendServerPort");
            describeLoadBalancerHTTPSListenerAttributeResponse.Bandwidth = context.IntegerValue("DescribeLoadBalancerHTTPSListenerAttribute.Bandwidth");
            describeLoadBalancerHTTPSListenerAttributeResponse.Status = context.StringValue("DescribeLoadBalancerHTTPSListenerAttribute.Status");
            describeLoadBalancerHTTPSListenerAttributeResponse.SecurityStatus = context.StringValue("DescribeLoadBalancerHTTPSListenerAttribute.SecurityStatus");
            describeLoadBalancerHTTPSListenerAttributeResponse.XForwardedFor = context.StringValue("DescribeLoadBalancerHTTPSListenerAttribute.XForwardedFor");
            describeLoadBalancerHTTPSListenerAttributeResponse.Scheduler = context.StringValue("DescribeLoadBalancerHTTPSListenerAttribute.Scheduler");
            describeLoadBalancerHTTPSListenerAttributeResponse.StickySession = context.StringValue("DescribeLoadBalancerHTTPSListenerAttribute.StickySession");
            describeLoadBalancerHTTPSListenerAttributeResponse.StickySessionType = context.StringValue("DescribeLoadBalancerHTTPSListenerAttribute.StickySessionType");
            describeLoadBalancerHTTPSListenerAttributeResponse.CookieTimeout = context.IntegerValue("DescribeLoadBalancerHTTPSListenerAttribute.CookieTimeout");
            describeLoadBalancerHTTPSListenerAttributeResponse.Cookie = context.StringValue("DescribeLoadBalancerHTTPSListenerAttribute.Cookie");
            describeLoadBalancerHTTPSListenerAttributeResponse.HealthCheck = context.StringValue("DescribeLoadBalancerHTTPSListenerAttribute.HealthCheck");
            describeLoadBalancerHTTPSListenerAttributeResponse.HealthCheckDomain = context.StringValue("DescribeLoadBalancerHTTPSListenerAttribute.HealthCheckDomain");
            describeLoadBalancerHTTPSListenerAttributeResponse.HealthCheckURI = context.StringValue("DescribeLoadBalancerHTTPSListenerAttribute.HealthCheckURI");
            describeLoadBalancerHTTPSListenerAttributeResponse.HealthyThreshold = context.IntegerValue("DescribeLoadBalancerHTTPSListenerAttribute.HealthyThreshold");
            describeLoadBalancerHTTPSListenerAttributeResponse.UnhealthyThreshold = context.IntegerValue("DescribeLoadBalancerHTTPSListenerAttribute.UnhealthyThreshold");
            describeLoadBalancerHTTPSListenerAttributeResponse.HealthCheckTimeout = context.IntegerValue("DescribeLoadBalancerHTTPSListenerAttribute.HealthCheckTimeout");
            describeLoadBalancerHTTPSListenerAttributeResponse.HealthCheckInterval = context.IntegerValue("DescribeLoadBalancerHTTPSListenerAttribute.HealthCheckInterval");
            describeLoadBalancerHTTPSListenerAttributeResponse.HealthCheckConnectPort = context.IntegerValue("DescribeLoadBalancerHTTPSListenerAttribute.HealthCheckConnectPort");
            describeLoadBalancerHTTPSListenerAttributeResponse.HealthCheckHttpCode = context.StringValue("DescribeLoadBalancerHTTPSListenerAttribute.HealthCheckHttpCode");
            describeLoadBalancerHTTPSListenerAttributeResponse.ServerCertificateId = context.StringValue("DescribeLoadBalancerHTTPSListenerAttribute.ServerCertificateId");
            describeLoadBalancerHTTPSListenerAttributeResponse.CACertificateId = context.StringValue("DescribeLoadBalancerHTTPSListenerAttribute.CACertificateId");
            describeLoadBalancerHTTPSListenerAttributeResponse.MaxConnection = context.IntegerValue("DescribeLoadBalancerHTTPSListenerAttribute.MaxConnection");
            describeLoadBalancerHTTPSListenerAttributeResponse.VServerGroupId = context.StringValue("DescribeLoadBalancerHTTPSListenerAttribute.VServerGroupId");

            return describeLoadBalancerHTTPSListenerAttributeResponse;
        }
        public static DescribeDeployedApisResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeDeployedApisResponse describeDeployedApisResponse = new DescribeDeployedApisResponse();

            describeDeployedApisResponse.HttpResponse = context.HttpResponse;
            describeDeployedApisResponse.RequestId = context.StringValue("DescribeDeployedApis.RequestId");
            describeDeployedApisResponse.TotalCount = context.IntegerValue("DescribeDeployedApis.TotalCount");
            describeDeployedApisResponse.PageSize = context.IntegerValue("DescribeDeployedApis.PageSize");
            describeDeployedApisResponse.PageNumber = context.IntegerValue("DescribeDeployedApis.PageNumber");

            List<DescribeDeployedApisResponse.DeployedApiItem> deployedApis = new List<DescribeDeployedApisResponse.DeployedApiItem>();
            for (int i = 0; i < context.Length("DescribeDeployedApis.DeployedApis.Length"); i++) {
                DescribeDeployedApisResponse.DeployedApiItem deployedApiItem = new DescribeDeployedApisResponse.DeployedApiItem();
                deployedApiItem.RegionId = context.StringValue("DescribeDeployedApis.DeployedApis["+ i +"].RegionId");
                deployedApiItem.ApiId = context.StringValue("DescribeDeployedApis.DeployedApis["+ i +"].ApiId");
                deployedApiItem.ApiName = context.StringValue("DescribeDeployedApis.DeployedApis["+ i +"].ApiName");
                deployedApiItem.GroupId = context.StringValue("DescribeDeployedApis.DeployedApis["+ i +"].GroupId");
                deployedApiItem.GroupName = context.StringValue("DescribeDeployedApis.DeployedApis["+ i +"].GroupName");
                deployedApiItem.StageName = context.StringValue("DescribeDeployedApis.DeployedApis["+ i +"].StageName");
                deployedApiItem.Visibility = context.StringValue("DescribeDeployedApis.DeployedApis["+ i +"].Visibility");
                deployedApiItem.Description = context.StringValue("DescribeDeployedApis.DeployedApis["+ i +"].Description");
                deployedApiItem.DeployedTime = context.StringValue("DescribeDeployedApis.DeployedApis["+ i +"].DeployedTime");

                deployedApis.Add(deployedApiItem);
            }
            describeDeployedApisResponse.DeployedApis = deployedApis;

            return describeDeployedApisResponse;
        }
        public static DescribeOptimizeAdviceOnStorageResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeOptimizeAdviceOnStorageResponse describeOptimizeAdviceOnStorageResponse = new DescribeOptimizeAdviceOnStorageResponse();

            describeOptimizeAdviceOnStorageResponse.HttpResponse = context.HttpResponse;
            describeOptimizeAdviceOnStorageResponse.RequestId = context.StringValue("DescribeOptimizeAdviceOnStorage.RequestId");
            describeOptimizeAdviceOnStorageResponse.DBInstanceId = context.StringValue("DescribeOptimizeAdviceOnStorage.DBInstanceId");
            describeOptimizeAdviceOnStorageResponse.TotalRecordsCount = context.IntegerValue("DescribeOptimizeAdviceOnStorage.TotalRecordsCount");
            describeOptimizeAdviceOnStorageResponse.PageNumber = context.IntegerValue("DescribeOptimizeAdviceOnStorage.PageNumber");
            describeOptimizeAdviceOnStorageResponse.PageRecordCount = context.IntegerValue("DescribeOptimizeAdviceOnStorage.PageRecordCount");

            List<DescribeOptimizeAdviceOnStorageResponse.AdviceOnStorage> items = new List<DescribeOptimizeAdviceOnStorageResponse.AdviceOnStorage>();
            for (int i = 0; i < context.Length("DescribeOptimizeAdviceOnStorage.Items.Length"); i++) {
                DescribeOptimizeAdviceOnStorageResponse.AdviceOnStorage adviceOnStorage = new DescribeOptimizeAdviceOnStorageResponse.AdviceOnStorage();
                adviceOnStorage.DBName = context.StringValue("DescribeOptimizeAdviceOnStorage.Items["+ i +"].DBName");
                adviceOnStorage.TableName = context.StringValue("DescribeOptimizeAdviceOnStorage.Items["+ i +"].TableName");
                adviceOnStorage.CurrentEngine = context.StringValue("DescribeOptimizeAdviceOnStorage.Items["+ i +"].CurrentEngine");
                adviceOnStorage.AdviseEngine = context.StringValue("DescribeOptimizeAdviceOnStorage.Items["+ i +"].AdviseEngine");

                items.Add(adviceOnStorage);
            }
            describeOptimizeAdviceOnStorageResponse.Items = items;

            return describeOptimizeAdviceOnStorageResponse;
        }
        public static DescribeApiTrafficControlsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeApiTrafficControlsResponse describeApiTrafficControlsResponse = new DescribeApiTrafficControlsResponse();

            describeApiTrafficControlsResponse.HttpResponse = context.HttpResponse;
            describeApiTrafficControlsResponse.RequestId = context.StringValue("DescribeApiTrafficControls.RequestId");
            describeApiTrafficControlsResponse.TotalCount = context.IntegerValue("DescribeApiTrafficControls.TotalCount");
            describeApiTrafficControlsResponse.PageSize = context.IntegerValue("DescribeApiTrafficControls.PageSize");
            describeApiTrafficControlsResponse.PageNumber = context.IntegerValue("DescribeApiTrafficControls.PageNumber");

            List<DescribeApiTrafficControlsResponse.ApiTrafficControlItem> apiTrafficControls = new List<DescribeApiTrafficControlsResponse.ApiTrafficControlItem>();
            for (int i = 0; i < context.Length("DescribeApiTrafficControls.ApiTrafficControls.Length"); i++) {
                DescribeApiTrafficControlsResponse.ApiTrafficControlItem apiTrafficControlItem = new DescribeApiTrafficControlsResponse.ApiTrafficControlItem();
                apiTrafficControlItem.ApiId = context.StringValue("DescribeApiTrafficControls.ApiTrafficControls["+ i +"].ApiId");
                apiTrafficControlItem.ApiName = context.StringValue("DescribeApiTrafficControls.ApiTrafficControls["+ i +"].ApiName");
                apiTrafficControlItem.TrafficControlId = context.StringValue("DescribeApiTrafficControls.ApiTrafficControls["+ i +"].TrafficControlId");
                apiTrafficControlItem.TrafficControlName = context.StringValue("DescribeApiTrafficControls.ApiTrafficControls["+ i +"].TrafficControlName");
                apiTrafficControlItem.BoundTime = context.StringValue("DescribeApiTrafficControls.ApiTrafficControls["+ i +"].BoundTime");

                apiTrafficControls.Add(apiTrafficControlItem);
            }
            describeApiTrafficControlsResponse.ApiTrafficControls = apiTrafficControls;

            return describeApiTrafficControlsResponse;
        }
        public static DescribeApisBySignatureResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeApisBySignatureResponse describeApisBySignatureResponse = new DescribeApisBySignatureResponse();

            describeApisBySignatureResponse.HttpResponse = context.HttpResponse;
            describeApisBySignatureResponse.RequestId = context.StringValue("DescribeApisBySignature.RequestId");
            describeApisBySignatureResponse.TotalCount = context.IntegerValue("DescribeApisBySignature.TotalCount");
            describeApisBySignatureResponse.PageSize = context.IntegerValue("DescribeApisBySignature.PageSize");
            describeApisBySignatureResponse.PageNumber = context.IntegerValue("DescribeApisBySignature.PageNumber");

            List<DescribeApisBySignatureResponse.ApiInfo> apiInfos = new List<DescribeApisBySignatureResponse.ApiInfo>();
            for (int i = 0; i < context.Length("DescribeApisBySignature.ApiInfos.Length"); i++) {
                DescribeApisBySignatureResponse.ApiInfo apiInfo = new DescribeApisBySignatureResponse.ApiInfo();
                apiInfo.RegionId = context.StringValue("DescribeApisBySignature.ApiInfos["+ i +"].RegionId");
                apiInfo.GroupId = context.StringValue("DescribeApisBySignature.ApiInfos["+ i +"].GroupId");
                apiInfo.GroupName = context.StringValue("DescribeApisBySignature.ApiInfos["+ i +"].GroupName");
                apiInfo.StageName = context.StringValue("DescribeApisBySignature.ApiInfos["+ i +"].StageName");
                apiInfo.ApiId = context.StringValue("DescribeApisBySignature.ApiInfos["+ i +"].ApiId");
                apiInfo.ApiName = context.StringValue("DescribeApisBySignature.ApiInfos["+ i +"].ApiName");
                apiInfo.Description = context.StringValue("DescribeApisBySignature.ApiInfos["+ i +"].Description");
                apiInfo.Visibility = context.StringValue("DescribeApisBySignature.ApiInfos["+ i +"].Visibility");
                apiInfo.BoundTime = context.StringValue("DescribeApisBySignature.ApiInfos["+ i +"].BoundTime");

                apiInfos.Add(apiInfo);
            }
            describeApisBySignatureResponse.ApiInfos = apiInfos;

            return describeApisBySignatureResponse;
        }
        public static DescribeDomainWafAttackInfoResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeDomainWafAttackInfoResponse describeDomainWafAttackInfoResponse = new DescribeDomainWafAttackInfoResponse();

            describeDomainWafAttackInfoResponse.HttpResponse = context.HttpResponse;
            describeDomainWafAttackInfoResponse.RequestId = context.StringValue("DescribeDomainWafAttackInfo.RequestId");
            describeDomainWafAttackInfoResponse.DomainName = context.StringValue("DescribeDomainWafAttackInfo.DomainName");
            describeDomainWafAttackInfoResponse.StartTime = context.StringValue("DescribeDomainWafAttackInfo.StartTime");
            describeDomainWafAttackInfoResponse.EndTime = context.StringValue("DescribeDomainWafAttackInfo.EndTime");
            describeDomainWafAttackInfoResponse.PageNumber = context.IntegerValue("DescribeDomainWafAttackInfo.PageNumber");
            describeDomainWafAttackInfoResponse.PageSize = context.IntegerValue("DescribeDomainWafAttackInfo.PageSize");

            List<DescribeDomainWafAttackInfoResponse.AttackDatas> attackDataList = new List<DescribeDomainWafAttackInfoResponse.AttackDatas>();
            for (int i = 0; i < context.Length("DescribeDomainWafAttackInfo.AttackDataList.Length"); i++) {
                DescribeDomainWafAttackInfoResponse.AttackDatas attackDatas = new DescribeDomainWafAttackInfoResponse.AttackDatas();
                attackDatas.Ip = context.StringValue("DescribeDomainWafAttackInfo.AttackDataList["+ i +"].Ip");
                attackDatas.Time = context.StringValue("DescribeDomainWafAttackInfo.AttackDataList["+ i +"].Time");
                attackDatas.Url = context.StringValue("DescribeDomainWafAttackInfo.AttackDataList["+ i +"].Url");
                attackDatas.Type = context.StringValue("DescribeDomainWafAttackInfo.AttackDataList["+ i +"].Type");
                attackDatas.Result = context.StringValue("DescribeDomainWafAttackInfo.AttackDataList["+ i +"].Result");

                attackDataList.Add(attackDatas);
            }
            describeDomainWafAttackInfoResponse.AttackDataList = attackDataList;

            return describeDomainWafAttackInfoResponse;
        }
        public static DescribeApisResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeApisResponse describeApisResponse = new DescribeApisResponse();

            describeApisResponse.HttpResponse = context.HttpResponse;
            describeApisResponse.RequestId = context.StringValue("DescribeApis.RequestId");
            describeApisResponse.TotalCount = context.IntegerValue("DescribeApis.TotalCount");
            describeApisResponse.PageSize = context.IntegerValue("DescribeApis.PageSize");
            describeApisResponse.PageNumber = context.IntegerValue("DescribeApis.PageNumber");

            List<DescribeApisResponse.ApiSummary> apiSummarys = new List<DescribeApisResponse.ApiSummary>();
            for (int i = 0; i < context.Length("DescribeApis.ApiSummarys.Length"); i++) {
                DescribeApisResponse.ApiSummary apiSummary = new DescribeApisResponse.ApiSummary();
                apiSummary.RegionId = context.StringValue("DescribeApis.ApiSummarys["+ i +"].RegionId");
                apiSummary.GroupId = context.StringValue("DescribeApis.ApiSummarys["+ i +"].GroupId");
                apiSummary.GroupName = context.StringValue("DescribeApis.ApiSummarys["+ i +"].GroupName");
                apiSummary.ApiId = context.StringValue("DescribeApis.ApiSummarys["+ i +"].ApiId");
                apiSummary.ApiName = context.StringValue("DescribeApis.ApiSummarys["+ i +"].ApiName");
                apiSummary.Visibility = context.StringValue("DescribeApis.ApiSummarys["+ i +"].Visibility");
                apiSummary.Description = context.StringValue("DescribeApis.ApiSummarys["+ i +"].Description");
                apiSummary.CreatedTime = context.StringValue("DescribeApis.ApiSummarys["+ i +"].CreatedTime");
                apiSummary.ModifiedTime = context.StringValue("DescribeApis.ApiSummarys["+ i +"].ModifiedTime");

                apiSummarys.Add(apiSummary);
            }
            describeApisResponse.ApiSummarys = apiSummarys;

            return describeApisResponse;
        }
        public static DescribeModifyParameterLogResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeModifyParameterLogResponse describeModifyParameterLogResponse = new DescribeModifyParameterLogResponse();

            describeModifyParameterLogResponse.HttpResponse = context.HttpResponse;
            describeModifyParameterLogResponse.RequestId = context.StringValue("DescribeModifyParameterLog.RequestId");
            describeModifyParameterLogResponse.Engine = context.StringValue("DescribeModifyParameterLog.Engine");
            describeModifyParameterLogResponse.DBInstanceId = context.StringValue("DescribeModifyParameterLog.DBInstanceId");
            describeModifyParameterLogResponse.EngineVersion = context.StringValue("DescribeModifyParameterLog.EngineVersion");
            describeModifyParameterLogResponse.TotalRecordCount = context.IntegerValue("DescribeModifyParameterLog.TotalRecordCount");
            describeModifyParameterLogResponse.PageNumber = context.IntegerValue("DescribeModifyParameterLog.PageNumber");
            describeModifyParameterLogResponse.PageRecordCount = context.IntegerValue("DescribeModifyParameterLog.PageRecordCount");

            List<DescribeModifyParameterLogResponse.ParameterChangeLog> items = new List<DescribeModifyParameterLogResponse.ParameterChangeLog>();
            for (int i = 0; i < context.Length("DescribeModifyParameterLog.Items.Length"); i++) {
                DescribeModifyParameterLogResponse.ParameterChangeLog parameterChangeLog = new DescribeModifyParameterLogResponse.ParameterChangeLog();
                parameterChangeLog.ModifyTime = context.StringValue("DescribeModifyParameterLog.Items["+ i +"].ModifyTime");
                parameterChangeLog.OldParameterValue = context.StringValue("DescribeModifyParameterLog.Items["+ i +"].OldParameterValue");
                parameterChangeLog.NewParameterValue = context.StringValue("DescribeModifyParameterLog.Items["+ i +"].NewParameterValue");
                parameterChangeLog.ParameterName = context.StringValue("DescribeModifyParameterLog.Items["+ i +"].ParameterName");
                parameterChangeLog.Status = context.EnumValue<DescribeModifyParameterLogResponse.ParameterChangeLog.StatusEnum>("DescribeModifyParameterLog.Items["+ i +"].Status");

                items.Add(parameterChangeLog);
            }
            describeModifyParameterLogResponse.Items = items;

            return describeModifyParameterLogResponse;
        }
        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 DescribeSQLLogFilesResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeSQLLogFilesResponse describeSQLLogFilesResponse = new DescribeSQLLogFilesResponse();

            describeSQLLogFilesResponse.HttpResponse = context.HttpResponse;
            describeSQLLogFilesResponse.RequestId = context.StringValue("DescribeSQLLogFiles.RequestId");
            describeSQLLogFilesResponse.TotalRecordCount = context.IntegerValue("DescribeSQLLogFiles.TotalRecordCount");
            describeSQLLogFilesResponse.PageNumber = context.IntegerValue("DescribeSQLLogFiles.PageNumber");
            describeSQLLogFilesResponse.PageRecordCount = context.IntegerValue("DescribeSQLLogFiles.PageRecordCount");

            List<DescribeSQLLogFilesResponse.LogFile> items = new List<DescribeSQLLogFilesResponse.LogFile>();
            for (int i = 0; i < context.Length("DescribeSQLLogFiles.Items.Length"); i++) {
                DescribeSQLLogFilesResponse.LogFile logFile = new DescribeSQLLogFilesResponse.LogFile();
                logFile.FileID = context.StringValue("DescribeSQLLogFiles.Items["+ i +"].FileID");
                logFile.LogStatus = context.EnumValue<DescribeSQLLogFilesResponse.LogFile.LogStatusEnum>("DescribeSQLLogFiles.Items["+ i +"].LogStatus");
                logFile.LogDownloadURL = context.StringValue("DescribeSQLLogFiles.Items["+ i +"].LogDownloadURL");
                logFile.LogSize = context.StringValue("DescribeSQLLogFiles.Items["+ i +"].LogSize");
                logFile.LogStartTime = context.StringValue("DescribeSQLLogFiles.Items["+ i +"].LogStartTime");
                logFile.LogEndTime = context.StringValue("DescribeSQLLogFiles.Items["+ i +"].LogEndTime");

                items.Add(logFile);
            }
            describeSQLLogFilesResponse.Items = items;

            return describeSQLLogFilesResponse;
        }
        public static DescibeImportsFromDatabaseResponse Unmarshall(UnmarshallerContext context)
        {
            DescibeImportsFromDatabaseResponse descibeImportsFromDatabaseResponse = new DescibeImportsFromDatabaseResponse();

            descibeImportsFromDatabaseResponse.HttpResponse = context.HttpResponse;
            descibeImportsFromDatabaseResponse.RequestId = context.StringValue("DescibeImportsFromDatabase.RequestId");
            descibeImportsFromDatabaseResponse.TotalRecordCount = context.IntegerValue("DescibeImportsFromDatabase.TotalRecordCount");
            descibeImportsFromDatabaseResponse.PageNumber = context.IntegerValue("DescibeImportsFromDatabase.PageNumber");
            descibeImportsFromDatabaseResponse.PageRecordCount = context.IntegerValue("DescibeImportsFromDatabase.PageRecordCount");

            List<DescibeImportsFromDatabaseResponse.ImportResultFromDB> items = new List<DescibeImportsFromDatabaseResponse.ImportResultFromDB>();
            for (int i = 0; i < context.Length("DescibeImportsFromDatabase.Items.Length"); i++) {
                DescibeImportsFromDatabaseResponse.ImportResultFromDB importResultFromDB = new DescibeImportsFromDatabaseResponse.ImportResultFromDB();
                importResultFromDB.ImportId = context.IntegerValue("DescibeImportsFromDatabase.Items["+ i +"].ImportId");
                importResultFromDB.ImportDataType = context.EnumValue<DescibeImportsFromDatabaseResponse.ImportResultFromDB.ImportDataTypeEnum>("DescibeImportsFromDatabase.Items["+ i +"].ImportDataType");
                importResultFromDB.ImportDataStatus = context.EnumValue<DescibeImportsFromDatabaseResponse.ImportResultFromDB.ImportDataStatusEnum>("DescibeImportsFromDatabase.Items["+ i +"].ImportDataStatus");
                importResultFromDB.ImportDataStatusDescription = context.StringValue("DescibeImportsFromDatabase.Items["+ i +"].ImportDataStatusDescription");
                importResultFromDB.IncrementalImportingTime = context.StringValue("DescibeImportsFromDatabase.Items["+ i +"].IncrementalImportingTime");

                items.Add(importResultFromDB);
            }
            descibeImportsFromDatabaseResponse.Items = items;

            return descibeImportsFromDatabaseResponse;
        }
        public static DescribeApiGroupsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeApiGroupsResponse describeApiGroupsResponse = new DescribeApiGroupsResponse();

            describeApiGroupsResponse.HttpResponse = context.HttpResponse;
            describeApiGroupsResponse.RequestId = context.StringValue("DescribeApiGroups.RequestId");
            describeApiGroupsResponse.TotalCount = context.IntegerValue("DescribeApiGroups.TotalCount");
            describeApiGroupsResponse.PageSize = context.IntegerValue("DescribeApiGroups.PageSize");
            describeApiGroupsResponse.PageNumber = context.IntegerValue("DescribeApiGroups.PageNumber");

            List<DescribeApiGroupsResponse.ApiGroupAttribute> apiGroupAttributes = new List<DescribeApiGroupsResponse.ApiGroupAttribute>();
            for (int i = 0; i < context.Length("DescribeApiGroups.ApiGroupAttributes.Length"); i++) {
                DescribeApiGroupsResponse.ApiGroupAttribute apiGroupAttribute = new DescribeApiGroupsResponse.ApiGroupAttribute();
                apiGroupAttribute.GroupId = context.StringValue("DescribeApiGroups.ApiGroupAttributes["+ i +"].GroupId");
                apiGroupAttribute.GroupName = context.StringValue("DescribeApiGroups.ApiGroupAttributes["+ i +"].GroupName");
                apiGroupAttribute.SubDomain = context.StringValue("DescribeApiGroups.ApiGroupAttributes["+ i +"].SubDomain");
                apiGroupAttribute.Description = context.StringValue("DescribeApiGroups.ApiGroupAttributes["+ i +"].Description");
                apiGroupAttribute.CreatedTime = context.StringValue("DescribeApiGroups.ApiGroupAttributes["+ i +"].CreatedTime");
                apiGroupAttribute.ModifiedTime = context.StringValue("DescribeApiGroups.ApiGroupAttributes["+ i +"].ModifiedTime");
                apiGroupAttribute.RegionId = context.StringValue("DescribeApiGroups.ApiGroupAttributes["+ i +"].RegionId");
                apiGroupAttribute.TrafficLimit = context.IntegerValue("DescribeApiGroups.ApiGroupAttributes["+ i +"].TrafficLimit");
                apiGroupAttribute.BillingStatus = context.EnumValue<DescribeApiGroupsResponse.ApiGroupAttribute.BillingStatusEnum>("DescribeApiGroups.ApiGroupAttributes["+ i +"].BillingStatus");
                apiGroupAttribute.IllegalStatus = context.EnumValue<DescribeApiGroupsResponse.ApiGroupAttribute.IllegalStatusEnum>("DescribeApiGroups.ApiGroupAttributes["+ i +"].IllegalStatus");

                apiGroupAttributes.Add(apiGroupAttribute);
            }
            describeApiGroupsResponse.ApiGroupAttributes = apiGroupAttributes;

            return describeApiGroupsResponse;
        }
        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 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 DescribeAuthorizedApisResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeAuthorizedApisResponse describeAuthorizedApisResponse = new DescribeAuthorizedApisResponse();

            describeAuthorizedApisResponse.HttpResponse = context.HttpResponse;
            describeAuthorizedApisResponse.RequestId = context.StringValue("DescribeAuthorizedApis.RequestId");
            describeAuthorizedApisResponse.TotalCount = context.IntegerValue("DescribeAuthorizedApis.TotalCount");
            describeAuthorizedApisResponse.PageSize = context.IntegerValue("DescribeAuthorizedApis.PageSize");
            describeAuthorizedApisResponse.PageNumber = context.IntegerValue("DescribeAuthorizedApis.PageNumber");

            List<DescribeAuthorizedApisResponse.AuthorizedApi> authorizedApis = new List<DescribeAuthorizedApisResponse.AuthorizedApi>();
            for (int i = 0; i < context.Length("DescribeAuthorizedApis.AuthorizedApis.Length"); i++) {
                DescribeAuthorizedApisResponse.AuthorizedApi authorizedApi = new DescribeAuthorizedApisResponse.AuthorizedApi();
                authorizedApi.RegionId = context.StringValue("DescribeAuthorizedApis.AuthorizedApis["+ i +"].RegionId");
                authorizedApi.GroupId = context.StringValue("DescribeAuthorizedApis.AuthorizedApis["+ i +"].GroupId");
                authorizedApi.GroupName = context.StringValue("DescribeAuthorizedApis.AuthorizedApis["+ i +"].GroupName");
                authorizedApi.StageName = context.StringValue("DescribeAuthorizedApis.AuthorizedApis["+ i +"].StageName");
                authorizedApi.Operator = context.StringValue("DescribeAuthorizedApis.AuthorizedApis["+ i +"].Operator");
                authorizedApi.ApiId = context.StringValue("DescribeAuthorizedApis.AuthorizedApis["+ i +"].ApiId");
                authorizedApi.ApiName = context.StringValue("DescribeAuthorizedApis.AuthorizedApis["+ i +"].ApiName");
                authorizedApi.AuthorizationSource = context.StringValue("DescribeAuthorizedApis.AuthorizedApis["+ i +"].AuthorizationSource");
                authorizedApi.Description = context.StringValue("DescribeAuthorizedApis.AuthorizedApis["+ i +"].Description");
                authorizedApi.AuthorizedTime = context.StringValue("DescribeAuthorizedApis.AuthorizedApis["+ i +"].AuthorizedTime");

                authorizedApis.Add(authorizedApi);
            }
            describeAuthorizedApisResponse.AuthorizedApis = authorizedApis;

            return describeAuthorizedApisResponse;
        }
        public static DescribeAccessPointsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeAccessPointsResponse describeAccessPointsResponse = new DescribeAccessPointsResponse();

            describeAccessPointsResponse.HttpResponse = context.HttpResponse;
            describeAccessPointsResponse.RequestId = context.StringValue("DescribeAccessPoints.RequestId");
            describeAccessPointsResponse.PageNumber = context.IntegerValue("DescribeAccessPoints.PageNumber");
            describeAccessPointsResponse.PageSize = context.IntegerValue("DescribeAccessPoints.PageSize");
            describeAccessPointsResponse.TotalCount = context.IntegerValue("DescribeAccessPoints.TotalCount");

            List<DescribeAccessPointsResponse.AccessPointType> accessPointSet = new List<DescribeAccessPointsResponse.AccessPointType>();
            for (int i = 0; i < context.Length("DescribeAccessPoints.AccessPointSet.Length"); i++) {
                DescribeAccessPointsResponse.AccessPointType accessPointType = new DescribeAccessPointsResponse.AccessPointType();
                accessPointType.AccessPointId = context.StringValue("DescribeAccessPoints.AccessPointSet["+ i +"].AccessPointId");
                accessPointType.Status = context.StringValue("DescribeAccessPoints.AccessPointSet["+ i +"].Status");
                accessPointType.Type = context.StringValue("DescribeAccessPoints.AccessPointSet["+ i +"].Type");
                accessPointType.AttachedRegionNo = context.StringValue("DescribeAccessPoints.AccessPointSet["+ i +"].AttachedRegionNo");
                accessPointType.Location = context.StringValue("DescribeAccessPoints.AccessPointSet["+ i +"].Location");
                accessPointType.HostOperator = context.StringValue("DescribeAccessPoints.AccessPointSet["+ i +"].HostOperator");
                accessPointType.Name = context.StringValue("DescribeAccessPoints.AccessPointSet["+ i +"].Name");
                accessPointType.Description = context.StringValue("DescribeAccessPoints.AccessPointSet["+ i +"].Description");

                accessPointSet.Add(accessPointType);
            }
            describeAccessPointsResponse.AccessPointSet = accessPointSet;

            return describeAccessPointsResponse;
        }
        public static DescribeDBInstancesByPerformanceResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeDBInstancesByPerformanceResponse describeDBInstancesByPerformanceResponse = new DescribeDBInstancesByPerformanceResponse();

            describeDBInstancesByPerformanceResponse.HttpResponse = context.HttpResponse;
            describeDBInstancesByPerformanceResponse.RequestId = context.StringValue("DescribeDBInstancesByPerformance.RequestId");
            describeDBInstancesByPerformanceResponse.PageNumber = context.IntegerValue("DescribeDBInstancesByPerformance.PageNumber");
            describeDBInstancesByPerformanceResponse.TotalRecordCount = context.IntegerValue("DescribeDBInstancesByPerformance.TotalRecordCount");
            describeDBInstancesByPerformanceResponse.PageRecordCount = context.IntegerValue("DescribeDBInstancesByPerformance.PageRecordCount");

            List<DescribeDBInstancesByPerformanceResponse.DBInstancePerformance> items = new List<DescribeDBInstancesByPerformanceResponse.DBInstancePerformance>();
            for (int i = 0; i < context.Length("DescribeDBInstancesByPerformance.Items.Length"); i++) {
                DescribeDBInstancesByPerformanceResponse.DBInstancePerformance dBInstancePerformance = new DescribeDBInstancesByPerformanceResponse.DBInstancePerformance();
                dBInstancePerformance.CPUUsage = context.StringValue("DescribeDBInstancesByPerformance.Items["+ i +"].CPUUsage");
                dBInstancePerformance.IOPSUsage = context.StringValue("DescribeDBInstancesByPerformance.Items["+ i +"].IOPSUsage");
                dBInstancePerformance.DiskUsage = context.StringValue("DescribeDBInstancesByPerformance.Items["+ i +"].DiskUsage");
                dBInstancePerformance.SessionUsage = context.StringValue("DescribeDBInstancesByPerformance.Items["+ i +"].SessionUsage");
                dBInstancePerformance.DBInstanceId = context.StringValue("DescribeDBInstancesByPerformance.Items["+ i +"].DBInstanceId");
                dBInstancePerformance.DBInstanceDescription = context.StringValue("DescribeDBInstancesByPerformance.Items["+ i +"].DBInstanceDescription");

                items.Add(dBInstancePerformance);
            }
            describeDBInstancesByPerformanceResponse.Items = items;

            return describeDBInstancesByPerformanceResponse;
        }
        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 DescribeImageSharePermissionResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeImageSharePermissionResponse describeImageSharePermissionResponse = new DescribeImageSharePermissionResponse();

            describeImageSharePermissionResponse.HttpResponse = context.HttpResponse;
            describeImageSharePermissionResponse.RequestId = context.StringValue("DescribeImageSharePermission.RequestId");
            describeImageSharePermissionResponse.RegionId = context.StringValue("DescribeImageSharePermission.RegionId");
            describeImageSharePermissionResponse.TotalCount = context.IntegerValue("DescribeImageSharePermission.TotalCount");
            describeImageSharePermissionResponse.PageNumber = context.IntegerValue("DescribeImageSharePermission.PageNumber");
            describeImageSharePermissionResponse.PageSize = context.IntegerValue("DescribeImageSharePermission.PageSize");
            describeImageSharePermissionResponse.ImageId = context.StringValue("DescribeImageSharePermission.ImageId");

            List<DescribeImageSharePermissionResponse.ShareGroup> shareGroups = new List<DescribeImageSharePermissionResponse.ShareGroup>();
            for (int i = 0; i < context.Length("DescribeImageSharePermission.ShareGroups.Length"); i++) {
                DescribeImageSharePermissionResponse.ShareGroup shareGroup = new DescribeImageSharePermissionResponse.ShareGroup();
                shareGroup.Group = context.StringValue("DescribeImageSharePermission.ShareGroups["+ i +"].Group");

                shareGroups.Add(shareGroup);
            }
            describeImageSharePermissionResponse.ShareGroups = shareGroups;

            List<DescribeImageSharePermissionResponse.Account> accounts = new List<DescribeImageSharePermissionResponse.Account>();
            for (int i = 0; i < context.Length("DescribeImageSharePermission.Accounts.Length"); i++) {
                DescribeImageSharePermissionResponse.Account account = new DescribeImageSharePermissionResponse.Account();
                account.AliyunId = context.StringValue("DescribeImageSharePermission.Accounts["+ i +"].AliyunId");

                accounts.Add(account);
            }
            describeImageSharePermissionResponse.Accounts = accounts;

            return describeImageSharePermissionResponse;
        }
        public static DescribeHistoryApisResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeHistoryApisResponse describeHistoryApisResponse = new DescribeHistoryApisResponse();

            describeHistoryApisResponse.HttpResponse = context.HttpResponse;
            describeHistoryApisResponse.RequestId = context.StringValue("DescribeHistoryApis.RequestId");
            describeHistoryApisResponse.TotalCount = context.IntegerValue("DescribeHistoryApis.TotalCount");
            describeHistoryApisResponse.PageSize = context.IntegerValue("DescribeHistoryApis.PageSize");
            describeHistoryApisResponse.PageNumber = context.IntegerValue("DescribeHistoryApis.PageNumber");

            List<DescribeHistoryApisResponse.ApiHisItem> apiHisItems = new List<DescribeHistoryApisResponse.ApiHisItem>();
            for (int i = 0; i < context.Length("DescribeHistoryApis.ApiHisItems.Length"); i++) {
                DescribeHistoryApisResponse.ApiHisItem apiHisItem = new DescribeHistoryApisResponse.ApiHisItem();
                apiHisItem.RegionId = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].RegionId");
                apiHisItem.ApiId = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].ApiId");
                apiHisItem.ApiName = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].ApiName");
                apiHisItem.GroupId = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].GroupId");
                apiHisItem.GroupName = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].GroupName");
                apiHisItem.StageName = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].StageName");
                apiHisItem.HistoryVersion = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].HistoryVersion");
                apiHisItem.Status = context.EnumValue<DescribeHistoryApisResponse.ApiHisItem.StatusEnum>("DescribeHistoryApis.ApiHisItems["+ i +"].Status");
                apiHisItem.Description = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].Description");
                apiHisItem.DeployedTime = context.StringValue("DescribeHistoryApis.ApiHisItems["+ i +"].DeployedTime");

                apiHisItems.Add(apiHisItem);
            }
            describeHistoryApisResponse.ApiHisItems = apiHisItems;

            return describeHistoryApisResponse;
        }
        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 DescribeTasksResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeTasksResponse describeTasksResponse = new DescribeTasksResponse();

            describeTasksResponse.HttpResponse = context.HttpResponse;
            describeTasksResponse.RequestId = context.StringValue("DescribeTasks.RequestId");
            describeTasksResponse.RegionId = context.StringValue("DescribeTasks.RegionId");
            describeTasksResponse.TotalCount = context.IntegerValue("DescribeTasks.TotalCount");
            describeTasksResponse.PageNumber = context.IntegerValue("DescribeTasks.PageNumber");
            describeTasksResponse.PageSize = context.IntegerValue("DescribeTasks.PageSize");

            List<DescribeTasksResponse.Task> taskSet = new List<DescribeTasksResponse.Task>();
            for (int i = 0; i < context.Length("DescribeTasks.TaskSet.Length"); i++) {
                DescribeTasksResponse.Task task = new DescribeTasksResponse.Task();
                task.TaskId = context.StringValue("DescribeTasks.TaskSet["+ i +"].TaskId");
                task.TaskAction = context.StringValue("DescribeTasks.TaskSet["+ i +"].TaskAction");
                task.TaskStatus = context.StringValue("DescribeTasks.TaskSet["+ i +"].TaskStatus");
                task.SupportCancel = context.StringValue("DescribeTasks.TaskSet["+ i +"].SupportCancel");
                task.CreationTime = context.StringValue("DescribeTasks.TaskSet["+ i +"].CreationTime");
                task.FinishedTime = context.StringValue("DescribeTasks.TaskSet["+ i +"].FinishedTime");

                taskSet.Add(task);
            }
            describeTasksResponse.TaskSet = taskSet;

            return describeTasksResponse;
        }
        public static DescribeVRoutersResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeVRoutersResponse describeVRoutersResponse = new DescribeVRoutersResponse();

            describeVRoutersResponse.HttpResponse = context.HttpResponse;
            describeVRoutersResponse.RequestId = context.StringValue("DescribeVRouters.RequestId");
            describeVRoutersResponse.TotalCount = context.IntegerValue("DescribeVRouters.TotalCount");
            describeVRoutersResponse.PageNumber = context.IntegerValue("DescribeVRouters.PageNumber");
            describeVRoutersResponse.PageSize = context.IntegerValue("DescribeVRouters.PageSize");

            List<DescribeVRoutersResponse.VRouter> vRouters = new List<DescribeVRoutersResponse.VRouter>();
            for (int i = 0; i < context.Length("DescribeVRouters.VRouters.Length"); i++) {
                DescribeVRoutersResponse.VRouter vRouter = new DescribeVRoutersResponse.VRouter();
                vRouter.RegionId = context.StringValue("DescribeVRouters.VRouters["+ i +"].RegionId");
                vRouter.VpcId = context.StringValue("DescribeVRouters.VRouters["+ i +"].VpcId");
                vRouter.VRouterName = context.StringValue("DescribeVRouters.VRouters["+ i +"].VRouterName");
                vRouter.Description = context.StringValue("DescribeVRouters.VRouters["+ i +"].Description");
                vRouter.VRouterId = context.StringValue("DescribeVRouters.VRouters["+ i +"].VRouterId");
                vRouter.CreationTime = context.StringValue("DescribeVRouters.VRouters["+ i +"].CreationTime");

                List<string> routeTableIds = new List<string>();
                for (int j = 0; j < context.Length("DescribeVRouters.VRouters["+ i +"].RouteTableIds.Length"); j++) {
                    routeTableIds.Add(context.StringValue("DescribeVRouters.VRouters["+ i +"].RouteTableIds["+ j +"]"));
                }
                vRouter.RouteTableIds = routeTableIds;

                vRouters.Add(vRouter);
            }
            describeVRoutersResponse.VRouters = vRouters;

            return describeVRoutersResponse;
        }
        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 DescribeSQLInjectionInfosResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeSQLInjectionInfosResponse describeSQLInjectionInfosResponse = new DescribeSQLInjectionInfosResponse();

            describeSQLInjectionInfosResponse.HttpResponse = context.HttpResponse;
            describeSQLInjectionInfosResponse.RequestId = context.StringValue("DescribeSQLInjectionInfos.RequestId");
            describeSQLInjectionInfosResponse.Engine = context.StringValue("DescribeSQLInjectionInfos.Engine");
            describeSQLInjectionInfosResponse.TotalRecordCount = context.IntegerValue("DescribeSQLInjectionInfos.TotalRecordCount");
            describeSQLInjectionInfosResponse.PageNumber = context.IntegerValue("DescribeSQLInjectionInfos.PageNumber");
            describeSQLInjectionInfosResponse.PageRecordCount = context.IntegerValue("DescribeSQLInjectionInfos.PageRecordCount");

            List<DescribeSQLInjectionInfosResponse.SQLInjectionInfo> items = new List<DescribeSQLInjectionInfosResponse.SQLInjectionInfo>();
            for (int i = 0; i < context.Length("DescribeSQLInjectionInfos.Items.Length"); i++) {
                DescribeSQLInjectionInfosResponse.SQLInjectionInfo sQLInjectionInfo = new DescribeSQLInjectionInfosResponse.SQLInjectionInfo();
                sQLInjectionInfo.DBName = context.StringValue("DescribeSQLInjectionInfos.Items["+ i +"].DBName");
                sQLInjectionInfo.SQLText = context.StringValue("DescribeSQLInjectionInfos.Items["+ i +"].SQLText");
                sQLInjectionInfo.LatencyTime = context.StringValue("DescribeSQLInjectionInfos.Items["+ i +"].LatencyTime");
                sQLInjectionInfo.HostAddress = context.StringValue("DescribeSQLInjectionInfos.Items["+ i +"].HostAddress");
                sQLInjectionInfo.ExecuteTime = context.StringValue("DescribeSQLInjectionInfos.Items["+ i +"].ExecuteTime");
                sQLInjectionInfo.AccountName = context.StringValue("DescribeSQLInjectionInfos.Items["+ i +"].AccountName");
                sQLInjectionInfo.EffectRowCount = context.StringValue("DescribeSQLInjectionInfos.Items["+ i +"].EffectRowCount");

                items.Add(sQLInjectionInfo);
            }
            describeSQLInjectionInfosResponse.Items = items;

            return describeSQLInjectionInfosResponse;
        }
Exemplo n.º 31
0
        public static QueryTaskInfoHistoryResponse Unmarshall(UnmarshallerContext _ctx)
        {
            QueryTaskInfoHistoryResponse queryTaskInfoHistoryResponse = new QueryTaskInfoHistoryResponse();

            queryTaskInfoHistoryResponse.HttpResponse = _ctx.HttpResponse;
            queryTaskInfoHistoryResponse.RequestId    = _ctx.StringValue("QueryTaskInfoHistory.RequestId");
            queryTaskInfoHistoryResponse.PageSize     = _ctx.IntegerValue("QueryTaskInfoHistory.PageSize");

            QueryTaskInfoHistoryResponse.QueryTaskInfoHistory_CurrentPageCursor currentPageCursor = new QueryTaskInfoHistoryResponse.QueryTaskInfoHistory_CurrentPageCursor();
            currentPageCursor.TaskType                     = _ctx.StringValue("QueryTaskInfoHistory.CurrentPageCursor.TaskType");
            currentPageCursor.TaskNum                      = _ctx.IntegerValue("QueryTaskInfoHistory.CurrentPageCursor.TaskNum");
            currentPageCursor.TaskStatus                   = _ctx.StringValue("QueryTaskInfoHistory.CurrentPageCursor.TaskStatus");
            currentPageCursor.CreateTime                   = _ctx.StringValue("QueryTaskInfoHistory.CurrentPageCursor.CreateTime");
            currentPageCursor.Clientip                     = _ctx.StringValue("QueryTaskInfoHistory.CurrentPageCursor.Clientip");
            currentPageCursor.TaskNo                       = _ctx.StringValue("QueryTaskInfoHistory.CurrentPageCursor.TaskNo");
            currentPageCursor.CreateTimeLong               = _ctx.LongValue("QueryTaskInfoHistory.CurrentPageCursor.CreateTimeLong");
            currentPageCursor.TaskStatusCode               = _ctx.IntegerValue("QueryTaskInfoHistory.CurrentPageCursor.TaskStatusCode");
            currentPageCursor.TaskTypeDescription          = _ctx.StringValue("QueryTaskInfoHistory.CurrentPageCursor.TaskTypeDescription");
            queryTaskInfoHistoryResponse.CurrentPageCursor = currentPageCursor;

            QueryTaskInfoHistoryResponse.QueryTaskInfoHistory_NextPageCursor nextPageCursor = new QueryTaskInfoHistoryResponse.QueryTaskInfoHistory_NextPageCursor();
            nextPageCursor.TaskType                     = _ctx.StringValue("QueryTaskInfoHistory.NextPageCursor.TaskType");
            nextPageCursor.TaskNum                      = _ctx.IntegerValue("QueryTaskInfoHistory.NextPageCursor.TaskNum");
            nextPageCursor.TaskStatus                   = _ctx.StringValue("QueryTaskInfoHistory.NextPageCursor.TaskStatus");
            nextPageCursor.CreateTime                   = _ctx.StringValue("QueryTaskInfoHistory.NextPageCursor.CreateTime");
            nextPageCursor.Clientip                     = _ctx.StringValue("QueryTaskInfoHistory.NextPageCursor.Clientip");
            nextPageCursor.TaskNo                       = _ctx.StringValue("QueryTaskInfoHistory.NextPageCursor.TaskNo");
            nextPageCursor.CreateTimeLong               = _ctx.LongValue("QueryTaskInfoHistory.NextPageCursor.CreateTimeLong");
            nextPageCursor.TaskStatusCode               = _ctx.IntegerValue("QueryTaskInfoHistory.NextPageCursor.TaskStatusCode");
            nextPageCursor.TaskTypeDescription          = _ctx.StringValue("QueryTaskInfoHistory.NextPageCursor.TaskTypeDescription");
            queryTaskInfoHistoryResponse.NextPageCursor = nextPageCursor;

            QueryTaskInfoHistoryResponse.QueryTaskInfoHistory_PrePageCursor prePageCursor = new QueryTaskInfoHistoryResponse.QueryTaskInfoHistory_PrePageCursor();
            prePageCursor.TaskType                     = _ctx.StringValue("QueryTaskInfoHistory.PrePageCursor.TaskType");
            prePageCursor.TaskNum                      = _ctx.IntegerValue("QueryTaskInfoHistory.PrePageCursor.TaskNum");
            prePageCursor.TaskStatus                   = _ctx.StringValue("QueryTaskInfoHistory.PrePageCursor.TaskStatus");
            prePageCursor.CreateTime                   = _ctx.StringValue("QueryTaskInfoHistory.PrePageCursor.CreateTime");
            prePageCursor.Clientip                     = _ctx.StringValue("QueryTaskInfoHistory.PrePageCursor.Clientip");
            prePageCursor.TaskNo                       = _ctx.StringValue("QueryTaskInfoHistory.PrePageCursor.TaskNo");
            prePageCursor.CreateTimeLong               = _ctx.LongValue("QueryTaskInfoHistory.PrePageCursor.CreateTimeLong");
            prePageCursor.TaskStatusCode               = _ctx.IntegerValue("QueryTaskInfoHistory.PrePageCursor.TaskStatusCode");
            prePageCursor.TaskTypeDescription          = _ctx.StringValue("QueryTaskInfoHistory.PrePageCursor.TaskTypeDescription");
            queryTaskInfoHistoryResponse.PrePageCursor = prePageCursor;

            List <QueryTaskInfoHistoryResponse.QueryTaskInfoHistory_TaskInfoHistory> queryTaskInfoHistoryResponse_objects = new List <QueryTaskInfoHistoryResponse.QueryTaskInfoHistory_TaskInfoHistory>();

            for (int i = 0; i < _ctx.Length("QueryTaskInfoHistory.Objects.Length"); i++)
            {
                QueryTaskInfoHistoryResponse.QueryTaskInfoHistory_TaskInfoHistory taskInfoHistory = new QueryTaskInfoHistoryResponse.QueryTaskInfoHistory_TaskInfoHistory();
                taskInfoHistory.TaskType            = _ctx.StringValue("QueryTaskInfoHistory.Objects[" + i + "].TaskType");
                taskInfoHistory.TaskNum             = _ctx.IntegerValue("QueryTaskInfoHistory.Objects[" + i + "].TaskNum");
                taskInfoHistory.TaskStatus          = _ctx.StringValue("QueryTaskInfoHistory.Objects[" + i + "].TaskStatus");
                taskInfoHistory.CreateTime          = _ctx.StringValue("QueryTaskInfoHistory.Objects[" + i + "].CreateTime");
                taskInfoHistory.Clientip            = _ctx.StringValue("QueryTaskInfoHistory.Objects[" + i + "].Clientip");
                taskInfoHistory.TaskNo              = _ctx.StringValue("QueryTaskInfoHistory.Objects[" + i + "].TaskNo");
                taskInfoHistory.CreateTimeLong      = _ctx.LongValue("QueryTaskInfoHistory.Objects[" + i + "].CreateTimeLong");
                taskInfoHistory.TaskStatusCode      = _ctx.IntegerValue("QueryTaskInfoHistory.Objects[" + i + "].TaskStatusCode");
                taskInfoHistory.TaskTypeDescription = _ctx.StringValue("QueryTaskInfoHistory.Objects[" + i + "].TaskTypeDescription");

                queryTaskInfoHistoryResponse_objects.Add(taskInfoHistory);
            }
            queryTaskInfoHistoryResponse.Objects = queryTaskInfoHistoryResponse_objects;

            return(queryTaskInfoHistoryResponse);
        }
        public static GetMergeRequestDetailResponse Unmarshall(UnmarshallerContext _ctx)
        {
            GetMergeRequestDetailResponse getMergeRequestDetailResponse = new GetMergeRequestDetailResponse();

            getMergeRequestDetailResponse.HttpResponse = _ctx.HttpResponse;
            getMergeRequestDetailResponse.ErrorCode    = _ctx.StringValue("GetMergeRequestDetail.ErrorCode");
            getMergeRequestDetailResponse.ErrorMessage = _ctx.StringValue("GetMergeRequestDetail.ErrorMessage");
            getMergeRequestDetailResponse.RequestId    = _ctx.StringValue("GetMergeRequestDetail.RequestId");
            getMergeRequestDetailResponse.Success      = _ctx.BooleanValue("GetMergeRequestDetail.Success");

            GetMergeRequestDetailResponse.GetMergeRequestDetail_Result result = new GetMergeRequestDetailResponse.GetMergeRequestDetail_Result();
            result.AcceptedRevision  = _ctx.StringValue("GetMergeRequestDetail.Result.AcceptedRevision");
            result.AheadCommitCount  = _ctx.IntegerValue("GetMergeRequestDetail.Result.AheadCommitCount");
            result.BehindCommitCount = _ctx.IntegerValue("GetMergeRequestDetail.Result.BehindCommitCount");
            result.CreatedAt         = _ctx.StringValue("GetMergeRequestDetail.Result.CreatedAt");
            result.Description       = _ctx.StringValue("GetMergeRequestDetail.Result.Description");
            result.Id                = _ctx.LongValue("GetMergeRequestDetail.Result.Id");
            result.MergeError        = _ctx.StringValue("GetMergeRequestDetail.Result.MergeError");
            result.MergeStatus       = _ctx.StringValue("GetMergeRequestDetail.Result.MergeStatus");
            result.MergeType         = _ctx.StringValue("GetMergeRequestDetail.Result.MergeType");
            result.MergedRevision    = _ctx.StringValue("GetMergeRequestDetail.Result.MergedRevision");
            result.NameWithNamespace = _ctx.StringValue("GetMergeRequestDetail.Result.NameWithNamespace");
            result.ProjectId         = _ctx.LongValue("GetMergeRequestDetail.Result.ProjectId");
            result.SourceBranch      = _ctx.StringValue("GetMergeRequestDetail.Result.SourceBranch");
            result.State             = _ctx.StringValue("GetMergeRequestDetail.Result.State");
            result.TargetBranch      = _ctx.StringValue("GetMergeRequestDetail.Result.TargetBranch");
            result.Title             = _ctx.StringValue("GetMergeRequestDetail.Result.Title");
            result.UpdatedAt         = _ctx.StringValue("GetMergeRequestDetail.Result.UpdatedAt");
            result.WebUrl            = _ctx.StringValue("GetMergeRequestDetail.Result.WebUrl");
            result.IsSupportMerge    = _ctx.BooleanValue("GetMergeRequestDetail.Result.IsSupportMerge");

            GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_ApproveCheckResult approveCheckResult = new GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_ApproveCheckResult();
            approveCheckResult.TotalCheckResult = _ctx.StringValue("GetMergeRequestDetail.Result.ApproveCheckResult.TotalCheckResult");

            List <GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_ApproveCheckResult.GetMergeRequestDetail_SatisfiedCheckResultsItem> approveCheckResult_satisfiedCheckResults = new List <GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_ApproveCheckResult.GetMergeRequestDetail_SatisfiedCheckResultsItem>();

            for (int i = 0; i < _ctx.Length("GetMergeRequestDetail.Result.ApproveCheckResult.SatisfiedCheckResults.Length"); i++)
            {
                GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_ApproveCheckResult.GetMergeRequestDetail_SatisfiedCheckResultsItem satisfiedCheckResultsItem = new GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_ApproveCheckResult.GetMergeRequestDetail_SatisfiedCheckResultsItem();
                satisfiedCheckResultsItem.CheckName   = _ctx.StringValue("GetMergeRequestDetail.Result.ApproveCheckResult.SatisfiedCheckResults[" + i + "].CheckName");
                satisfiedCheckResultsItem.CheckStatus = _ctx.StringValue("GetMergeRequestDetail.Result.ApproveCheckResult.SatisfiedCheckResults[" + i + "].CheckStatus");
                satisfiedCheckResultsItem.CheckType   = _ctx.StringValue("GetMergeRequestDetail.Result.ApproveCheckResult.SatisfiedCheckResults[" + i + "].CheckType");

                List <string> satisfiedCheckResultsItem_satisfiedItems = new List <string>();
                for (int j = 0; j < _ctx.Length("GetMergeRequestDetail.Result.ApproveCheckResult.SatisfiedCheckResults[" + i + "].SatisfiedItems.Length"); j++)
                {
                    satisfiedCheckResultsItem_satisfiedItems.Add(_ctx.StringValue("GetMergeRequestDetail.Result.ApproveCheckResult.SatisfiedCheckResults[" + i + "].SatisfiedItems[" + j + "]"));
                }
                satisfiedCheckResultsItem.SatisfiedItems = satisfiedCheckResultsItem_satisfiedItems;

                List <string> satisfiedCheckResultsItem_unsatisfiedItems = new List <string>();
                for (int j = 0; j < _ctx.Length("GetMergeRequestDetail.Result.ApproveCheckResult.SatisfiedCheckResults[" + i + "].UnsatisfiedItems.Length"); j++)
                {
                    satisfiedCheckResultsItem_unsatisfiedItems.Add(_ctx.StringValue("GetMergeRequestDetail.Result.ApproveCheckResult.SatisfiedCheckResults[" + i + "].UnsatisfiedItems[" + j + "]"));
                }
                satisfiedCheckResultsItem.UnsatisfiedItems = satisfiedCheckResultsItem_unsatisfiedItems;

                List <GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_ApproveCheckResult.GetMergeRequestDetail_SatisfiedCheckResultsItem.GetMergeRequestDetail_ExtraUsersItem> satisfiedCheckResultsItem_extraUsers = new List <GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_ApproveCheckResult.GetMergeRequestDetail_SatisfiedCheckResultsItem.GetMergeRequestDetail_ExtraUsersItem>();
                for (int j = 0; j < _ctx.Length("GetMergeRequestDetail.Result.ApproveCheckResult.SatisfiedCheckResults[" + i + "].ExtraUsers.Length"); j++)
                {
                    GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_ApproveCheckResult.GetMergeRequestDetail_SatisfiedCheckResultsItem.GetMergeRequestDetail_ExtraUsersItem extraUsersItem = new GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_ApproveCheckResult.GetMergeRequestDetail_SatisfiedCheckResultsItem.GetMergeRequestDetail_ExtraUsersItem();
                    extraUsersItem.AvatarUrl    = _ctx.StringValue("GetMergeRequestDetail.Result.ApproveCheckResult.SatisfiedCheckResults[" + i + "].ExtraUsers[" + j + "].AvatarUrl");
                    extraUsersItem.ExternUserId = _ctx.StringValue("GetMergeRequestDetail.Result.ApproveCheckResult.SatisfiedCheckResults[" + i + "].ExtraUsers[" + j + "].ExternUserId");
                    extraUsersItem.Id           = _ctx.LongValue("GetMergeRequestDetail.Result.ApproveCheckResult.SatisfiedCheckResults[" + i + "].ExtraUsers[" + j + "].Id");
                    extraUsersItem.Name         = _ctx.StringValue("GetMergeRequestDetail.Result.ApproveCheckResult.SatisfiedCheckResults[" + i + "].ExtraUsers[" + j + "].Name");

                    satisfiedCheckResultsItem_extraUsers.Add(extraUsersItem);
                }
                satisfiedCheckResultsItem.ExtraUsers = satisfiedCheckResultsItem_extraUsers;

                approveCheckResult_satisfiedCheckResults.Add(satisfiedCheckResultsItem);
            }
            approveCheckResult.SatisfiedCheckResults = approveCheckResult_satisfiedCheckResults;

            List <GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_ApproveCheckResult.GetMergeRequestDetail_UnsatisfiedCheckResultsItem> approveCheckResult_unsatisfiedCheckResults = new List <GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_ApproveCheckResult.GetMergeRequestDetail_UnsatisfiedCheckResultsItem>();

            for (int i = 0; i < _ctx.Length("GetMergeRequestDetail.Result.ApproveCheckResult.UnsatisfiedCheckResults.Length"); i++)
            {
                GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_ApproveCheckResult.GetMergeRequestDetail_UnsatisfiedCheckResultsItem unsatisfiedCheckResultsItem = new GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_ApproveCheckResult.GetMergeRequestDetail_UnsatisfiedCheckResultsItem();
                unsatisfiedCheckResultsItem.CheckName   = _ctx.StringValue("GetMergeRequestDetail.Result.ApproveCheckResult.UnsatisfiedCheckResults[" + i + "].CheckName");
                unsatisfiedCheckResultsItem.CheckStatus = _ctx.StringValue("GetMergeRequestDetail.Result.ApproveCheckResult.UnsatisfiedCheckResults[" + i + "].CheckStatus");
                unsatisfiedCheckResultsItem.CheckType   = _ctx.StringValue("GetMergeRequestDetail.Result.ApproveCheckResult.UnsatisfiedCheckResults[" + i + "].CheckType");

                List <string> unsatisfiedCheckResultsItem_satisfiedItems1 = new List <string>();
                for (int j = 0; j < _ctx.Length("GetMergeRequestDetail.Result.ApproveCheckResult.UnsatisfiedCheckResults[" + i + "].SatisfiedItems.Length"); j++)
                {
                    unsatisfiedCheckResultsItem_satisfiedItems1.Add(_ctx.StringValue("GetMergeRequestDetail.Result.ApproveCheckResult.UnsatisfiedCheckResults[" + i + "].SatisfiedItems[" + j + "]"));
                }
                unsatisfiedCheckResultsItem.SatisfiedItems1 = unsatisfiedCheckResultsItem_satisfiedItems1;

                List <string> unsatisfiedCheckResultsItem_unsatisfiedItems2 = new List <string>();
                for (int j = 0; j < _ctx.Length("GetMergeRequestDetail.Result.ApproveCheckResult.UnsatisfiedCheckResults[" + i + "].UnsatisfiedItems.Length"); j++)
                {
                    unsatisfiedCheckResultsItem_unsatisfiedItems2.Add(_ctx.StringValue("GetMergeRequestDetail.Result.ApproveCheckResult.UnsatisfiedCheckResults[" + i + "].UnsatisfiedItems[" + j + "]"));
                }
                unsatisfiedCheckResultsItem.UnsatisfiedItems2 = unsatisfiedCheckResultsItem_unsatisfiedItems2;

                List <GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_ApproveCheckResult.GetMergeRequestDetail_UnsatisfiedCheckResultsItem.GetMergeRequestDetail_ExtraUsersItem4> unsatisfiedCheckResultsItem_extraUsers3 = new List <GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_ApproveCheckResult.GetMergeRequestDetail_UnsatisfiedCheckResultsItem.GetMergeRequestDetail_ExtraUsersItem4>();
                for (int j = 0; j < _ctx.Length("GetMergeRequestDetail.Result.ApproveCheckResult.UnsatisfiedCheckResults[" + i + "].ExtraUsers.Length"); j++)
                {
                    GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_ApproveCheckResult.GetMergeRequestDetail_UnsatisfiedCheckResultsItem.GetMergeRequestDetail_ExtraUsersItem4 extraUsersItem4 = new GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_ApproveCheckResult.GetMergeRequestDetail_UnsatisfiedCheckResultsItem.GetMergeRequestDetail_ExtraUsersItem4();
                    extraUsersItem4.AvatarUrl    = _ctx.StringValue("GetMergeRequestDetail.Result.ApproveCheckResult.UnsatisfiedCheckResults[" + i + "].ExtraUsers[" + j + "].AvatarUrl");
                    extraUsersItem4.ExternUserId = _ctx.StringValue("GetMergeRequestDetail.Result.ApproveCheckResult.UnsatisfiedCheckResults[" + i + "].ExtraUsers[" + j + "].ExternUserId");
                    extraUsersItem4.Id           = _ctx.LongValue("GetMergeRequestDetail.Result.ApproveCheckResult.UnsatisfiedCheckResults[" + i + "].ExtraUsers[" + j + "].Id");
                    extraUsersItem4.Name         = _ctx.StringValue("GetMergeRequestDetail.Result.ApproveCheckResult.UnsatisfiedCheckResults[" + i + "].ExtraUsers[" + j + "].Name");

                    unsatisfiedCheckResultsItem_extraUsers3.Add(extraUsersItem4);
                }
                unsatisfiedCheckResultsItem.ExtraUsers3 = unsatisfiedCheckResultsItem_extraUsers3;

                approveCheckResult_unsatisfiedCheckResults.Add(unsatisfiedCheckResultsItem);
            }
            approveCheckResult.UnsatisfiedCheckResults = approveCheckResult_unsatisfiedCheckResults;
            result.ApproveCheckResult = approveCheckResult;

            GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_Author author = new GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_Author();
            author.AvatarUrl    = _ctx.StringValue("GetMergeRequestDetail.Result.Author.AvatarUrl");
            author.ExternUserId = _ctx.StringValue("GetMergeRequestDetail.Result.Author.ExternUserId");
            author.Id           = _ctx.LongValue("GetMergeRequestDetail.Result.Author.Id");
            author.Name         = _ctx.StringValue("GetMergeRequestDetail.Result.Author.Name");
            result.Author       = author;

            List <GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_AssigneeListItem> result_assigneeList = new List <GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_AssigneeListItem>();

            for (int i = 0; i < _ctx.Length("GetMergeRequestDetail.Result.AssigneeList.Length"); i++)
            {
                GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_AssigneeListItem assigneeListItem = new GetMergeRequestDetailResponse.GetMergeRequestDetail_Result.GetMergeRequestDetail_AssigneeListItem();
                assigneeListItem.AvatarUrl    = _ctx.StringValue("GetMergeRequestDetail.Result.AssigneeList[" + i + "].AvatarUrl");
                assigneeListItem.ExternUserId = _ctx.StringValue("GetMergeRequestDetail.Result.AssigneeList[" + i + "].ExternUserId");
                assigneeListItem.Id           = _ctx.StringValue("GetMergeRequestDetail.Result.AssigneeList[" + i + "].Id");
                assigneeListItem.Name         = _ctx.StringValue("GetMergeRequestDetail.Result.AssigneeList[" + i + "].Name");
                assigneeListItem.Status       = _ctx.StringValue("GetMergeRequestDetail.Result.AssigneeList[" + i + "].Status");
                assigneeListItem.Email        = _ctx.StringValue("GetMergeRequestDetail.Result.AssigneeList[" + i + "].Email");

                result_assigneeList.Add(assigneeListItem);
            }
            result.AssigneeList = result_assigneeList;
            getMergeRequestDetailResponse.Result = result;

            return(getMergeRequestDetailResponse);
        }
        public static DescribeInstancesResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeInstancesResponse describeInstancesResponse = new DescribeInstancesResponse();

            describeInstancesResponse.HttpResponse = context.HttpResponse;
            describeInstancesResponse.RequestId    = context.StringValue("DescribeInstances.RequestId");
            describeInstancesResponse.TotalCount   = context.IntegerValue("DescribeInstances.TotalCount");
            describeInstancesResponse.PageNumber   = context.IntegerValue("DescribeInstances.PageNumber");
            describeInstancesResponse.PageSize     = context.IntegerValue("DescribeInstances.PageSize");

            List <DescribeInstancesResponse.DescribeInstances_Instance> describeInstancesResponse_instances = new List <DescribeInstancesResponse.DescribeInstances_Instance>();

            for (int i = 0; i < context.Length("DescribeInstances.Instances.Length"); i++)
            {
                DescribeInstancesResponse.DescribeInstances_Instance instance = new DescribeInstancesResponse.DescribeInstances_Instance();
                instance.InstanceId              = context.StringValue("DescribeInstances.Instances[" + i + "].InstanceId");
                instance.InstanceName            = context.StringValue("DescribeInstances.Instances[" + i + "].InstanceName");
                instance.Description             = context.StringValue("DescribeInstances.Instances[" + i + "].Description");
                instance.ImageId                 = context.StringValue("DescribeInstances.Instances[" + i + "].ImageId");
                instance.OSName                  = context.StringValue("DescribeInstances.Instances[" + i + "].OSName");
                instance.OSType                  = context.StringValue("DescribeInstances.Instances[" + i + "].OSType");
                instance.RegionId                = context.StringValue("DescribeInstances.Instances[" + i + "].RegionId");
                instance.ZoneId                  = context.StringValue("DescribeInstances.Instances[" + i + "].ZoneId");
                instance.ClusterId               = context.StringValue("DescribeInstances.Instances[" + i + "].ClusterId");
                instance.InstanceType            = context.StringValue("DescribeInstances.Instances[" + i + "].InstanceType");
                instance.Cpu                     = context.IntegerValue("DescribeInstances.Instances[" + i + "].Cpu");
                instance.Memory                  = context.IntegerValue("DescribeInstances.Instances[" + i + "].Memory");
                instance.HostName                = context.StringValue("DescribeInstances.Instances[" + i + "].HostName");
                instance.Status                  = context.StringValue("DescribeInstances.Instances[" + i + "].Status");
                instance.SerialNumber            = context.StringValue("DescribeInstances.Instances[" + i + "].SerialNumber");
                instance.InternetChargeType      = context.StringValue("DescribeInstances.Instances[" + i + "].InternetChargeType");
                instance.InternetMaxBandwidthIn  = context.IntegerValue("DescribeInstances.Instances[" + i + "].InternetMaxBandwidthIn");
                instance.InternetMaxBandwidthOut = context.IntegerValue("DescribeInstances.Instances[" + i + "].InternetMaxBandwidthOut");
                instance.VlanId                  = context.StringValue("DescribeInstances.Instances[" + i + "].VlanId");
                instance.CreationTime            = context.StringValue("DescribeInstances.Instances[" + i + "].CreationTime");
                instance.StartTime               = context.StringValue("DescribeInstances.Instances[" + i + "].StartTime");
                instance.InstanceNetworkType     = context.StringValue("DescribeInstances.Instances[" + i + "].InstanceNetworkType");
                instance.InstanceChargeType      = context.StringValue("DescribeInstances.Instances[" + i + "].InstanceChargeType");
                instance.SaleCycle               = context.StringValue("DescribeInstances.Instances[" + i + "].SaleCycle");
                instance.ExpiredTime             = context.StringValue("DescribeInstances.Instances[" + i + "].ExpiredTime");
                instance.AutoReleaseTime         = context.StringValue("DescribeInstances.Instances[" + i + "].AutoReleaseTime");
                instance.IoOptimized             = context.BooleanValue("DescribeInstances.Instances[" + i + "].IoOptimized");
                instance.DeviceAvailable         = context.BooleanValue("DescribeInstances.Instances[" + i + "].DeviceAvailable");
                instance.InstanceTypeFamily      = context.StringValue("DescribeInstances.Instances[" + i + "].InstanceTypeFamily");
                instance.LocalStorageCapacity    = context.LongValue("DescribeInstances.Instances[" + i + "].LocalStorageCapacity");
                instance.LocalStorageAmount      = context.IntegerValue("DescribeInstances.Instances[" + i + "].LocalStorageAmount");
                instance.GPUAmount               = context.IntegerValue("DescribeInstances.Instances[" + i + "].GPUAmount");
                instance.GPUSpec                 = context.StringValue("DescribeInstances.Instances[" + i + "].GPUSpec");
                instance.SpotStrategy            = context.StringValue("DescribeInstances.Instances[" + i + "].SpotStrategy");
                instance.SpotPriceLimit          = context.FloatValue("DescribeInstances.Instances[" + i + "].SpotPriceLimit");
                instance.ResourceGroupId         = context.StringValue("DescribeInstances.Instances[" + i + "].ResourceGroupId");
                instance.KeyPairName             = context.StringValue("DescribeInstances.Instances[" + i + "].KeyPairName");
                instance.Recyclable              = context.BooleanValue("DescribeInstances.Instances[" + i + "].Recyclable");
                instance.HpcClusterId            = context.StringValue("DescribeInstances.Instances[" + i + "].HpcClusterId");
                instance.StoppedMode             = context.StringValue("DescribeInstances.Instances[" + i + "].StoppedMode");

                List <string> instance_securityGroupIds = new List <string>();
                for (int j = 0; j < context.Length("DescribeInstances.Instances[" + i + "].SecurityGroupIds.Length"); j++)
                {
                    instance_securityGroupIds.Add(context.StringValue("DescribeInstances.Instances[" + i + "].SecurityGroupIds[" + j + "]"));
                }
                instance.SecurityGroupIds = instance_securityGroupIds;

                List <string> instance_publicIpAddress = new List <string>();
                for (int j = 0; j < context.Length("DescribeInstances.Instances[" + i + "].PublicIpAddress.Length"); j++)
                {
                    instance_publicIpAddress.Add(context.StringValue("DescribeInstances.Instances[" + i + "].PublicIpAddress[" + j + "]"));
                }
                instance.PublicIpAddress = instance_publicIpAddress;

                List <string> instance_innerIpAddress = new List <string>();
                for (int j = 0; j < context.Length("DescribeInstances.Instances[" + i + "].InnerIpAddress.Length"); j++)
                {
                    instance_innerIpAddress.Add(context.StringValue("DescribeInstances.Instances[" + i + "].InnerIpAddress[" + j + "]"));
                }
                instance.InnerIpAddress = instance_innerIpAddress;

                List <string> instance_rdmaIpAddress = new List <string>();
                for (int j = 0; j < context.Length("DescribeInstances.Instances[" + i + "].RdmaIpAddress.Length"); j++)
                {
                    instance_rdmaIpAddress.Add(context.StringValue("DescribeInstances.Instances[" + i + "].RdmaIpAddress[" + j + "]"));
                }
                instance.RdmaIpAddress = instance_rdmaIpAddress;

                DescribeInstancesResponse.DescribeInstances_Instance.DescribeInstances_VpcAttributes vpcAttributes = new DescribeInstancesResponse.DescribeInstances_Instance.DescribeInstances_VpcAttributes();
                vpcAttributes.VpcId        = context.StringValue("DescribeInstances.Instances[" + i + "].VpcAttributes.VpcId");
                vpcAttributes.VSwitchId    = context.StringValue("DescribeInstances.Instances[" + i + "].VpcAttributes.VSwitchId");
                vpcAttributes.NatIpAddress = context.StringValue("DescribeInstances.Instances[" + i + "].VpcAttributes.NatIpAddress");

                List <string> vpcAttributes_privateIpAddress = new List <string>();
                for (int j = 0; j < context.Length("DescribeInstances.Instances[" + i + "].VpcAttributes.PrivateIpAddress.Length"); j++)
                {
                    vpcAttributes_privateIpAddress.Add(context.StringValue("DescribeInstances.Instances[" + i + "].VpcAttributes.PrivateIpAddress[" + j + "]"));
                }
                vpcAttributes.PrivateIpAddress = vpcAttributes_privateIpAddress;
                instance.VpcAttributes         = vpcAttributes;

                DescribeInstancesResponse.DescribeInstances_Instance.DescribeInstances_EipAddress eipAddress = new DescribeInstancesResponse.DescribeInstances_Instance.DescribeInstances_EipAddress();
                eipAddress.AllocationId         = context.StringValue("DescribeInstances.Instances[" + i + "].EipAddress.AllocationId");
                eipAddress.IpAddress            = context.StringValue("DescribeInstances.Instances[" + i + "].EipAddress.IpAddress");
                eipAddress.Bandwidth            = context.IntegerValue("DescribeInstances.Instances[" + i + "].EipAddress.Bandwidth");
                eipAddress.InternetChargeType   = context.StringValue("DescribeInstances.Instances[" + i + "].EipAddress.InternetChargeType");
                eipAddress.IsSupportUnassociate = context.BooleanValue("DescribeInstances.Instances[" + i + "].EipAddress.IsSupportUnassociate");
                instance.EipAddress             = eipAddress;

                List <DescribeInstancesResponse.DescribeInstances_Instance.DescribeInstances_NetworkInterface> instance_networkInterfaces = new List <DescribeInstancesResponse.DescribeInstances_Instance.DescribeInstances_NetworkInterface>();
                for (int j = 0; j < context.Length("DescribeInstances.Instances[" + i + "].NetworkInterfaces.Length"); j++)
                {
                    DescribeInstancesResponse.DescribeInstances_Instance.DescribeInstances_NetworkInterface networkInterface = new DescribeInstancesResponse.DescribeInstances_Instance.DescribeInstances_NetworkInterface();
                    networkInterface.NetworkInterfaceId = context.StringValue("DescribeInstances.Instances[" + i + "].NetworkInterfaces[" + j + "].NetworkInterfaceId");
                    networkInterface.MacAddress         = context.StringValue("DescribeInstances.Instances[" + i + "].NetworkInterfaces[" + j + "].MacAddress");
                    networkInterface.PrimaryIpAddress   = context.StringValue("DescribeInstances.Instances[" + i + "].NetworkInterfaces[" + j + "].PrimaryIpAddress");

                    instance_networkInterfaces.Add(networkInterface);
                }
                instance.NetworkInterfaces = instance_networkInterfaces;

                List <DescribeInstancesResponse.DescribeInstances_Instance.DescribeInstances_LockReason> instance_operationLocks = new List <DescribeInstancesResponse.DescribeInstances_Instance.DescribeInstances_LockReason>();
                for (int j = 0; j < context.Length("DescribeInstances.Instances[" + i + "].OperationLocks.Length"); j++)
                {
                    DescribeInstancesResponse.DescribeInstances_Instance.DescribeInstances_LockReason lockReason = new DescribeInstancesResponse.DescribeInstances_Instance.DescribeInstances_LockReason();
                    lockReason.LockReason = context.StringValue("DescribeInstances.Instances[" + i + "].OperationLocks[" + j + "].LockReason");
                    lockReason.LockMsg    = context.StringValue("DescribeInstances.Instances[" + i + "].OperationLocks[" + j + "].LockMsg");

                    instance_operationLocks.Add(lockReason);
                }
                instance.OperationLocks = instance_operationLocks;

                List <DescribeInstancesResponse.DescribeInstances_Instance.DescribeInstances_Tag> instance_tags = new List <DescribeInstancesResponse.DescribeInstances_Instance.DescribeInstances_Tag>();
                for (int j = 0; j < context.Length("DescribeInstances.Instances[" + i + "].Tags.Length"); j++)
                {
                    DescribeInstancesResponse.DescribeInstances_Instance.DescribeInstances_Tag tag = new DescribeInstancesResponse.DescribeInstances_Instance.DescribeInstances_Tag();
                    tag.TagKey   = context.StringValue("DescribeInstances.Instances[" + i + "].Tags[" + j + "].TagKey");
                    tag.TagValue = context.StringValue("DescribeInstances.Instances[" + i + "].Tags[" + j + "].TagValue");

                    instance_tags.Add(tag);
                }
                instance.Tags = instance_tags;

                describeInstancesResponse_instances.Add(instance);
            }
            describeInstancesResponse.Instances = describeInstancesResponse_instances;

            return(describeInstancesResponse);
        }
Exemplo n.º 34
0
        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");
                dBInstanceAttribute.TimeZone                       = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].TimeZone");
                dBInstanceAttribute.Collation                      = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].Collation");
                dBInstanceAttribute.DispenseMode                   = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].DispenseMode");
                dBInstanceAttribute.MasterZone                     = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].MasterZone");
                dBInstanceAttribute.AutoUpgradeMinorVersion        = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].AutoUpgradeMinorVersion");
                dBInstanceAttribute.ProxyType                      = context.IntegerValue("DescribeDBInstanceAttribute.Items[" + i + "].ProxyType");
                dBInstanceAttribute.ConsoleVersion                 = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].ConsoleVersion");
                dBInstanceAttribute.MultipleTempUpgrade            = context.BooleanValue("DescribeDBInstanceAttribute.Items[" + i + "].MultipleTempUpgrade");
                dBInstanceAttribute.OriginConfiguration            = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].OriginConfiguration");
                dBInstanceAttribute.DedicatedHostGroupId           = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].DedicatedHostGroupId");

                DescribeDBInstanceAttributeResponse.DescribeDBInstanceAttribute_DBInstanceAttribute.DescribeDBInstanceAttribute_Extra extra = new DescribeDBInstanceAttributeResponse.DescribeDBInstanceAttribute_DBInstanceAttribute.DescribeDBInstanceAttribute_Extra();
                extra.ReplicaGroupID            = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].Extra.ReplicaGroupID");
                extra.ReplicaGroupStatus        = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].Extra.ReplicaGroupStatus");
                extra.ActiveReplicaDBInstanceID = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].Extra.ActiveReplicaDBInstanceID");

                List <string> extra_dBInstanceId = new List <string>();
                for (int j = 0; j < context.Length("DescribeDBInstanceAttribute.Items[" + i + "].Extra.DBInstanceId.Length"); j++)
                {
                    extra_dBInstanceId.Add(context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].Extra.DBInstanceId[" + j + "]"));
                }
                extra.DBInstanceId        = extra_dBInstanceId;
                dBInstanceAttribute.Extra = extra;

                List <DescribeDBInstanceAttributeResponse.DescribeDBInstanceAttribute_DBInstanceAttribute.DescribeDBInstanceAttribute_SlaveZone> dBInstanceAttribute_slaveZones = new List <DescribeDBInstanceAttributeResponse.DescribeDBInstanceAttribute_DBInstanceAttribute.DescribeDBInstanceAttribute_SlaveZone>();
                for (int j = 0; j < context.Length("DescribeDBInstanceAttribute.Items[" + i + "].SlaveZones.Length"); j++)
                {
                    DescribeDBInstanceAttributeResponse.DescribeDBInstanceAttribute_DBInstanceAttribute.DescribeDBInstanceAttribute_SlaveZone slaveZone = new DescribeDBInstanceAttributeResponse.DescribeDBInstanceAttribute_DBInstanceAttribute.DescribeDBInstanceAttribute_SlaveZone();
                    slaveZone.ZoneId = context.StringValue("DescribeDBInstanceAttribute.Items[" + i + "].SlaveZones[" + j + "].ZoneId");

                    dBInstanceAttribute_slaveZones.Add(slaveZone);
                }
                dBInstanceAttribute.SlaveZones = dBInstanceAttribute_slaveZones;

                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);
        }
        public static GetAIMediaAuditJobResponse Unmarshall(UnmarshallerContext context)
        {
            GetAIMediaAuditJobResponse getAIMediaAuditJobResponse = new GetAIMediaAuditJobResponse();

            getAIMediaAuditJobResponse.HttpResponse = context.HttpResponse;
            getAIMediaAuditJobResponse.RequestId    = context.StringValue("GetAIMediaAuditJob.RequestId");

            GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob mediaAuditJob = new GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob();
            mediaAuditJob.JobId        = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.JobId");
            mediaAuditJob.MediaId      = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.MediaId");
            mediaAuditJob.Type         = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Type");
            mediaAuditJob.Status       = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Status");
            mediaAuditJob.Code         = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Code");
            mediaAuditJob.Message      = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Message");
            mediaAuditJob.CreationTime = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.CreationTime");
            mediaAuditJob.CompleteTime = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.CompleteTime");

            GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data data = new GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data();
            data.Suggestion      = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.Suggestion");
            data.AbnormalModules = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.AbnormalModules");
            data.Label           = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.Label");

            GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_VideoResult videoResult = new GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_VideoResult();
            videoResult.Suggestion = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.Suggestion");
            videoResult.Label      = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.Label");

            GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_VideoResult.GetAIMediaAuditJob_TerrorismResult terrorismResult = new GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_VideoResult.GetAIMediaAuditJob_TerrorismResult();
            terrorismResult.Suggestion   = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.TerrorismResult.Suggestion");
            terrorismResult.Label        = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.TerrorismResult.Label");
            terrorismResult.MaxScore     = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.TerrorismResult.MaxScore");
            terrorismResult.AverageScore = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.TerrorismResult.AverageScore");

            List <GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_VideoResult.GetAIMediaAuditJob_TerrorismResult.GetAIMediaAuditJob_CounterListItem> terrorismResult_counterList = new List <GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_VideoResult.GetAIMediaAuditJob_TerrorismResult.GetAIMediaAuditJob_CounterListItem>();

            for (int i = 0; i < context.Length("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.TerrorismResult.CounterList.Length"); i++)
            {
                GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_VideoResult.GetAIMediaAuditJob_TerrorismResult.GetAIMediaAuditJob_CounterListItem counterListItem = new GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_VideoResult.GetAIMediaAuditJob_TerrorismResult.GetAIMediaAuditJob_CounterListItem();
                counterListItem.Label = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.TerrorismResult.CounterList[" + i + "].Label");
                counterListItem.Count = context.IntegerValue("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.TerrorismResult.CounterList[" + i + "].Count");

                terrorismResult_counterList.Add(counterListItem);
            }
            terrorismResult.CounterList = terrorismResult_counterList;

            List <GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_VideoResult.GetAIMediaAuditJob_TerrorismResult.GetAIMediaAuditJob_TopListItem> terrorismResult_topList = new List <GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_VideoResult.GetAIMediaAuditJob_TerrorismResult.GetAIMediaAuditJob_TopListItem>();

            for (int i = 0; i < context.Length("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.TerrorismResult.TopList.Length"); i++)
            {
                GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_VideoResult.GetAIMediaAuditJob_TerrorismResult.GetAIMediaAuditJob_TopListItem topListItem = new GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_VideoResult.GetAIMediaAuditJob_TerrorismResult.GetAIMediaAuditJob_TopListItem();
                topListItem.Label     = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.TerrorismResult.TopList[" + i + "].Label");
                topListItem.Score     = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.TerrorismResult.TopList[" + i + "].Score");
                topListItem.Timestamp = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.TerrorismResult.TopList[" + i + "].Timestamp");
                topListItem.Url       = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.TerrorismResult.TopList[" + i + "].Url");

                terrorismResult_topList.Add(topListItem);
            }
            terrorismResult.TopList     = terrorismResult_topList;
            videoResult.TerrorismResult = terrorismResult;

            GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_VideoResult.GetAIMediaAuditJob_PornResult pornResult = new GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_VideoResult.GetAIMediaAuditJob_PornResult();
            pornResult.Suggestion   = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.PornResult.Suggestion");
            pornResult.Label        = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.PornResult.Label");
            pornResult.MaxScore     = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.PornResult.MaxScore");
            pornResult.AverageScore = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.PornResult.AverageScore");

            List <GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_VideoResult.GetAIMediaAuditJob_PornResult.GetAIMediaAuditJob_CounterListItem3> pornResult_counterList1 = new List <GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_VideoResult.GetAIMediaAuditJob_PornResult.GetAIMediaAuditJob_CounterListItem3>();

            for (int i = 0; i < context.Length("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.PornResult.CounterList.Length"); i++)
            {
                GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_VideoResult.GetAIMediaAuditJob_PornResult.GetAIMediaAuditJob_CounterListItem3 counterListItem3 = new GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_VideoResult.GetAIMediaAuditJob_PornResult.GetAIMediaAuditJob_CounterListItem3();
                counterListItem3.Label = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.PornResult.CounterList[" + i + "].Label");
                counterListItem3.Count = context.IntegerValue("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.PornResult.CounterList[" + i + "].Count");

                pornResult_counterList1.Add(counterListItem3);
            }
            pornResult.CounterList1 = pornResult_counterList1;

            List <GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_VideoResult.GetAIMediaAuditJob_PornResult.GetAIMediaAuditJob_TopListItem4> pornResult_topList2 = new List <GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_VideoResult.GetAIMediaAuditJob_PornResult.GetAIMediaAuditJob_TopListItem4>();

            for (int i = 0; i < context.Length("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.PornResult.TopList.Length"); i++)
            {
                GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_VideoResult.GetAIMediaAuditJob_PornResult.GetAIMediaAuditJob_TopListItem4 topListItem4 = new GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_VideoResult.GetAIMediaAuditJob_PornResult.GetAIMediaAuditJob_TopListItem4();
                topListItem4.Label     = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.PornResult.TopList[" + i + "].Label");
                topListItem4.Score     = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.PornResult.TopList[" + i + "].Score");
                topListItem4.Timestamp = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.PornResult.TopList[" + i + "].Timestamp");
                topListItem4.Url       = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.VideoResult.PornResult.TopList[" + i + "].Url");

                pornResult_topList2.Add(topListItem4);
            }
            pornResult.TopList2    = pornResult_topList2;
            videoResult.PornResult = pornResult;
            data.VideoResult       = videoResult;

            List <GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_ImageResultItem> data_imageResult = new List <GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_ImageResultItem>();

            for (int i = 0; i < context.Length("GetAIMediaAuditJob.MediaAuditJob.Data.ImageResult.Length"); i++)
            {
                GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_ImageResultItem imageResultItem = new GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_ImageResultItem();
                imageResultItem.Suggestion = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.ImageResult[" + i + "].Suggestion");
                imageResultItem.Label      = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.ImageResult[" + i + "].Label");
                imageResultItem.Type       = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.ImageResult[" + i + "].Type");
                imageResultItem.Url        = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.ImageResult[" + i + "].Url");

                List <GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_ImageResultItem.GetAIMediaAuditJob_ResultItem> imageResultItem_result = new List <GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_ImageResultItem.GetAIMediaAuditJob_ResultItem>();
                for (int j = 0; j < context.Length("GetAIMediaAuditJob.MediaAuditJob.Data.ImageResult[" + i + "].Result.Length"); j++)
                {
                    GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_ImageResultItem.GetAIMediaAuditJob_ResultItem resultItem = new GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_ImageResultItem.GetAIMediaAuditJob_ResultItem();
                    resultItem.Suggestion = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.ImageResult[" + i + "].Result[" + j + "].Suggestion");
                    resultItem.Label      = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.ImageResult[" + i + "].Result[" + j + "].Label");
                    resultItem.Score      = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.ImageResult[" + i + "].Result[" + j + "].Score");
                    resultItem.Scene      = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.ImageResult[" + i + "].Result[" + j + "].Scene");

                    imageResultItem_result.Add(resultItem);
                }
                imageResultItem.Result = imageResultItem_result;

                data_imageResult.Add(imageResultItem);
            }
            data.ImageResult = data_imageResult;

            List <GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_TextResultItem> data_textResult = new List <GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_TextResultItem>();

            for (int i = 0; i < context.Length("GetAIMediaAuditJob.MediaAuditJob.Data.TextResult.Length"); i++)
            {
                GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_TextResultItem textResultItem = new GetAIMediaAuditJobResponse.GetAIMediaAuditJob_MediaAuditJob.GetAIMediaAuditJob_Data.GetAIMediaAuditJob_TextResultItem();
                textResultItem.Suggestion = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.TextResult[" + i + "].Suggestion");
                textResultItem.Label      = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.TextResult[" + i + "].Label");
                textResultItem.Score      = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.TextResult[" + i + "].Score");
                textResultItem.Scene      = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.TextResult[" + i + "].Scene");
                textResultItem.Type       = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.TextResult[" + i + "].Type");
                textResultItem.Content    = context.StringValue("GetAIMediaAuditJob.MediaAuditJob.Data.TextResult[" + i + "].Content");

                data_textResult.Add(textResultItem);
            }
            data.TextResult    = data_textResult;
            mediaAuditJob.Data = data;
            getAIMediaAuditJobResponse.MediaAuditJob = mediaAuditJob;

            return(getAIMediaAuditJobResponse);
        }
Exemplo n.º 36
0
        public static ListClustersResponse Unmarshall(UnmarshallerContext context)
        {
            ListClustersResponse listClustersResponse = new ListClustersResponse();

            listClustersResponse.HttpResponse = context.HttpResponse;
            listClustersResponse.RequestId    = context.StringValue("ListClusters.RequestId");
            listClustersResponse.TotalCount   = context.IntegerValue("ListClusters.TotalCount");
            listClustersResponse.PageNumber   = context.IntegerValue("ListClusters.PageNumber");
            listClustersResponse.PageSize     = context.IntegerValue("ListClusters.PageSize");

            List <ListClustersResponse.ListClusters_ClusterInfoSimple> listClustersResponse_clusters = new List <ListClustersResponse.ListClusters_ClusterInfoSimple>();

            for (int i = 0; i < context.Length("ListClusters.Clusters.Length"); i++)
            {
                ListClustersResponse.ListClusters_ClusterInfoSimple clusterInfoSimple = new ListClustersResponse.ListClusters_ClusterInfoSimple();
                clusterInfoSimple.Id              = context.StringValue("ListClusters.Clusters[" + i + "].Id");
                clusterInfoSimple.RegionId        = context.StringValue("ListClusters.Clusters[" + i + "].RegionId");
                clusterInfoSimple.ZoneId          = context.StringValue("ListClusters.Clusters[" + i + "].ZoneId");
                clusterInfoSimple.VSwitchId       = context.StringValue("ListClusters.Clusters[" + i + "].VSwitchId");
                clusterInfoSimple.VpcId           = context.StringValue("ListClusters.Clusters[" + i + "].VpcId");
                clusterInfoSimple.Name            = context.StringValue("ListClusters.Clusters[" + i + "].Name");
                clusterInfoSimple.Description     = context.StringValue("ListClusters.Clusters[" + i + "].Description");
                clusterInfoSimple.Status          = context.StringValue("ListClusters.Clusters[" + i + "].Status");
                clusterInfoSimple.OsTag           = context.StringValue("ListClusters.Clusters[" + i + "].OsTag");
                clusterInfoSimple.AccountType     = context.StringValue("ListClusters.Clusters[" + i + "].AccountType");
                clusterInfoSimple.SchedulerType   = context.StringValue("ListClusters.Clusters[" + i + "].SchedulerType");
                clusterInfoSimple.DeployMode      = context.StringValue("ListClusters.Clusters[" + i + "].DeployMode");
                clusterInfoSimple.Count           = context.IntegerValue("ListClusters.Clusters[" + i + "].Count");
                clusterInfoSimple.InstanceType    = context.StringValue("ListClusters.Clusters[" + i + "].InstanceType");
                clusterInfoSimple.LoginNodes      = context.StringValue("ListClusters.Clusters[" + i + "].LoginNodes");
                clusterInfoSimple.CreateTime      = context.StringValue("ListClusters.Clusters[" + i + "].CreateTime");
                clusterInfoSimple.ImageOwnerAlias = context.StringValue("ListClusters.Clusters[" + i + "].ImageOwnerAlias");
                clusterInfoSimple.ImageId         = context.StringValue("ListClusters.Clusters[" + i + "].ImageId");
                clusterInfoSimple.Location        = context.StringValue("ListClusters.Clusters[" + i + "].Location");
                clusterInfoSimple.EhpcVersion     = context.StringValue("ListClusters.Clusters[" + i + "].EhpcVersion");
                clusterInfoSimple.NodePrefix      = context.StringValue("ListClusters.Clusters[" + i + "].NodePrefix");
                clusterInfoSimple.NodeSuffix      = context.StringValue("ListClusters.Clusters[" + i + "].NodeSuffix");

                ListClustersResponse.ListClusters_ClusterInfoSimple.ListClusters_Managers managers = new ListClustersResponse.ListClusters_ClusterInfoSimple.ListClusters_Managers();
                managers.Total             = context.IntegerValue("ListClusters.Clusters[" + i + "].Managers.Total");
                managers.NormalCount       = context.IntegerValue("ListClusters.Clusters[" + i + "].Managers.NormalCount");
                managers.OperatingCount    = context.IntegerValue("ListClusters.Clusters[" + i + "].Managers.OperatingCount");
                managers.StoppedCount      = context.IntegerValue("ListClusters.Clusters[" + i + "].Managers.StoppedCount");
                managers.ExceptionCount    = context.IntegerValue("ListClusters.Clusters[" + i + "].Managers.ExceptionCount");
                clusterInfoSimple.Managers = managers;

                ListClustersResponse.ListClusters_ClusterInfoSimple.ListClusters_Computes computes = new ListClustersResponse.ListClusters_ClusterInfoSimple.ListClusters_Computes();
                computes.Total             = context.IntegerValue("ListClusters.Clusters[" + i + "].Computes.Total");
                computes.NormalCount       = context.IntegerValue("ListClusters.Clusters[" + i + "].Computes.NormalCount");
                computes.OperatingCount    = context.IntegerValue("ListClusters.Clusters[" + i + "].Computes.OperatingCount");
                computes.StoppedCount      = context.IntegerValue("ListClusters.Clusters[" + i + "].Computes.StoppedCount");
                computes.ExceptionCount    = context.IntegerValue("ListClusters.Clusters[" + i + "].Computes.ExceptionCount");
                clusterInfoSimple.Computes = computes;

                ListClustersResponse.ListClusters_ClusterInfoSimple.ListClusters_TotalResources totalResources = new ListClustersResponse.ListClusters_ClusterInfoSimple.ListClusters_TotalResources();
                totalResources.Cpu               = context.IntegerValue("ListClusters.Clusters[" + i + "].TotalResources.Cpu");
                totalResources.Memory            = context.IntegerValue("ListClusters.Clusters[" + i + "].TotalResources.Memory");
                totalResources.Gpu               = context.IntegerValue("ListClusters.Clusters[" + i + "].TotalResources.Gpu");
                clusterInfoSimple.TotalResources = totalResources;

                ListClustersResponse.ListClusters_ClusterInfoSimple.ListClusters_UsedResources usedResources = new ListClustersResponse.ListClusters_ClusterInfoSimple.ListClusters_UsedResources();
                usedResources.Cpu               = context.IntegerValue("ListClusters.Clusters[" + i + "].UsedResources.Cpu");
                usedResources.Memory            = context.IntegerValue("ListClusters.Clusters[" + i + "].UsedResources.Memory");
                usedResources.Gpu               = context.IntegerValue("ListClusters.Clusters[" + i + "].UsedResources.Gpu");
                clusterInfoSimple.UsedResources = usedResources;

                listClustersResponse_clusters.Add(clusterInfoSimple);
            }
            listClustersResponse.Clusters = listClustersResponse_clusters;

            return(listClustersResponse);
        }
Exemplo n.º 37
0
        public static GetTaskDetailBaseResponse Unmarshall(UnmarshallerContext _ctx)
        {
            GetTaskDetailBaseResponse getTaskDetailBaseResponse = new GetTaskDetailBaseResponse();

            getTaskDetailBaseResponse.HttpResponse = _ctx.HttpResponse;
            getTaskDetailBaseResponse.Successful   = _ctx.BooleanValue("GetTaskDetailBase.Successful");
            getTaskDetailBaseResponse.ErrorCode    = _ctx.StringValue("GetTaskDetailBase.ErrorCode");
            getTaskDetailBaseResponse.ErrorMsg     = _ctx.StringValue("GetTaskDetailBase.ErrorMsg");
            getTaskDetailBaseResponse.RequestId    = _ctx.StringValue("GetTaskDetailBase.RequestId");

            GetTaskDetailBaseResponse.GetTaskDetailBase__Object _object = new GetTaskDetailBaseResponse.GetTaskDetailBase__Object();
            _object.Parent           = _ctx.StringValue("GetTaskDetailBase.Object.Parent");
            _object.DueDate          = _ctx.StringValue("GetTaskDetailBase.Object.DueDate");
            _object.Sprint           = _ctx.StringValue("GetTaskDetailBase.Object.Sprint");
            _object.Rating           = _ctx.IntegerValue("GetTaskDetailBase.Object.Rating");
            _object.SourceId         = _ctx.StringValue("GetTaskDetailBase.Object.SourceId");
            _object.Source           = _ctx.StringValue("GetTaskDetailBase.Object.Source");
            _object.StageId          = _ctx.StringValue("GetTaskDetailBase.Object.StageId");
            _object.ObjectType       = _ctx.StringValue("GetTaskDetailBase.Object.ObjectType");
            _object.TaskflowstatusId = _ctx.StringValue("GetTaskDetailBase.Object.TaskflowstatusId");
            _object.LikesCount       = _ctx.IntegerValue("GetTaskDetailBase.Object.LikesCount");
            _object.Accomplished     = _ctx.StringValue("GetTaskDetailBase.Object.Accomplished");
            _object.ObjectlinksCount = _ctx.IntegerValue("GetTaskDetailBase.Object.ObjectlinksCount");
            _object.CreatorId        = _ctx.StringValue("GetTaskDetailBase.Object.CreatorId");
            _object.Visible          = _ctx.StringValue("GetTaskDetailBase.Object.Visible");
            _object.StoryPoint       = _ctx.StringValue("GetTaskDetailBase.Object.StoryPoint");
            _object.Created          = _ctx.StringValue("GetTaskDetailBase.Object.Created");
            _object.Priority         = _ctx.IntegerValue("GetTaskDetailBase.Object.Priority");
            _object.Recurrence       = _ctx.StringValue("GetTaskDetailBase.Object.Recurrence");
            _object.UntilDate        = _ctx.StringValue("GetTaskDetailBase.Object.UntilDate");
            _object.Id                    = _ctx.StringValue("GetTaskDetailBase.Object.Id");
            _object.Updated               = _ctx.StringValue("GetTaskDetailBase.Object.Updated");
            _object.StartDate             = _ctx.StringValue("GetTaskDetailBase.Object.StartDate");
            _object.UniqueId              = _ctx.IntegerValue("GetTaskDetailBase.Object.UniqueId");
            _object.IsFavorite            = _ctx.BooleanValue("GetTaskDetailBase.Object.IsFavorite");
            _object.Note                  = _ctx.StringValue("GetTaskDetailBase.Object.Note");
            _object.IsArchived            = _ctx.BooleanValue("GetTaskDetailBase.Object.IsArchived");
            _object.Content               = _ctx.StringValue("GetTaskDetailBase.Object.Content");
            _object.SourceDate            = _ctx.StringValue("GetTaskDetailBase.Object.SourceDate");
            _object.AttachmentsCount      = _ctx.IntegerValue("GetTaskDetailBase.Object.AttachmentsCount");
            _object.ScenariofieldconfigId = _ctx.StringValue("GetTaskDetailBase.Object.ScenariofieldconfigId");
            _object.IsTopInProject        = _ctx.BooleanValue("GetTaskDetailBase.Object.IsTopInProject");
            _object.ExecutorId            = _ctx.StringValue("GetTaskDetailBase.Object.ExecutorId");
            _object.OrganizationId        = _ctx.StringValue("GetTaskDetailBase.Object.OrganizationId");
            _object.IsDone                = _ctx.BooleanValue("GetTaskDetailBase.Object.IsDone");
            _object.TaskId                = _ctx.StringValue("GetTaskDetailBase.Object.TaskId");
            _object.CommentsCount         = _ctx.IntegerValue("GetTaskDetailBase.Object.CommentsCount");
            _object.Organization          = _ctx.StringValue("GetTaskDetailBase.Object.Organization");
            _object.Progress              = _ctx.IntegerValue("GetTaskDetailBase.Object.Progress");
            _object.SprintId              = _ctx.StringValue("GetTaskDetailBase.Object.SprintId");
            _object.ProjectId             = _ctx.StringValue("GetTaskDetailBase.Object.ProjectId");
            _object.ShareStatus           = _ctx.IntegerValue("GetTaskDetailBase.Object.ShareStatus");

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

            for (int i = 0; i < _ctx.Length("GetTaskDetailBase.Object.Divisions.Length"); i++)
            {
                _object_divisions.Add(_ctx.StringValue("GetTaskDetailBase.Object.Divisions[" + i + "]"));
            }
            _object.Divisions = _object_divisions;

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

            for (int i = 0; i < _ctx.Length("GetTaskDetailBase.Object.Ancestors.Length"); i++)
            {
                _object_ancestors.Add(_ctx.StringValue("GetTaskDetailBase.Object.Ancestors[" + i + "]"));
            }
            _object.Ancestors = _object_ancestors;

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

            for (int i = 0; i < _ctx.Length("GetTaskDetailBase.Object.Labels.Length"); i++)
            {
                _object_labels.Add(_ctx.StringValue("GetTaskDetailBase.Object.Labels[" + i + "]"));
            }
            _object.Labels = _object_labels;

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

            for (int i = 0; i < _ctx.Length("GetTaskDetailBase.Object.TagIds.Length"); i++)
            {
                _object_tagIds.Add(_ctx.StringValue("GetTaskDetailBase.Object.TagIds[" + i + "]"));
            }
            _object.TagIds = _object_tagIds;

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

            for (int i = 0; i < _ctx.Length("GetTaskDetailBase.Object.AncestorIds.Length"); i++)
            {
                _object_ancestorIds.Add(_ctx.StringValue("GetTaskDetailBase.Object.AncestorIds[" + i + "]"));
            }
            _object.AncestorIds = _object_ancestorIds;

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

            for (int i = 0; i < _ctx.Length("GetTaskDetailBase.Object.InvolveMembers.Length"); i++)
            {
                _object_involveMembers.Add(_ctx.StringValue("GetTaskDetailBase.Object.InvolveMembers[" + i + "]"));
            }
            _object.InvolveMembers = _object_involveMembers;

            GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Scenariofieldconfig scenariofieldconfig = new GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Scenariofieldconfig();
            scenariofieldconfig.Name = _ctx.StringValue("GetTaskDetailBase.Object.Scenariofieldconfig.Name");
            scenariofieldconfig.Icon = _ctx.StringValue("GetTaskDetailBase.Object.Scenariofieldconfig.Icon");
            scenariofieldconfig.ProTemplateConfigType = _ctx.StringValue("GetTaskDetailBase.Object.Scenariofieldconfig.ProTemplateConfigType");
            scenariofieldconfig.Id      = _ctx.StringValue("GetTaskDetailBase.Object.Scenariofieldconfig.Id");
            _object.Scenariofieldconfig = scenariofieldconfig;

            GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Executor executor = new GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Executor();
            executor.AvatarUrl = _ctx.StringValue("GetTaskDetailBase.Object.Executor.AvatarUrl");
            executor.Name      = _ctx.StringValue("GetTaskDetailBase.Object.Executor.Name");
            executor.Id        = _ctx.StringValue("GetTaskDetailBase.Object.Executor.Id");
            _object.Executor   = executor;

            GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Tasklist tasklist = new GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Tasklist();
            tasklist.Id      = _ctx.StringValue("GetTaskDetailBase.Object.Tasklist.Id");
            tasklist.Title   = _ctx.StringValue("GetTaskDetailBase.Object.Tasklist.Title");
            _object.Tasklist = tasklist;

            GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Taskflowstatus taskflowstatus = new GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Taskflowstatus();
            taskflowstatus.Kind       = _ctx.StringValue("GetTaskDetailBase.Object.Taskflowstatus.Kind");
            taskflowstatus.TaskflowId = _ctx.StringValue("GetTaskDetailBase.Object.Taskflowstatus.TaskflowId");
            taskflowstatus.Name       = _ctx.StringValue("GetTaskDetailBase.Object.Taskflowstatus.Name");
            taskflowstatus.Id         = _ctx.StringValue("GetTaskDetailBase.Object.Taskflowstatus.Id");
            _object.Taskflowstatus    = taskflowstatus;

            GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Creator creator = new GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Creator();
            creator.Name    = _ctx.StringValue("GetTaskDetailBase.Object.Creator.Name");
            creator.Id      = _ctx.StringValue("GetTaskDetailBase.Object.Creator.Id");
            _object.Creator = creator;

            GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Reminder reminder = new GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Reminder();
            reminder.Date      = _ctx.StringValue("GetTaskDetailBase.Object.Reminder.Date");
            reminder.Method    = _ctx.StringValue("GetTaskDetailBase.Object.Reminder.Method");
            reminder.CreatorId = _ctx.StringValue("GetTaskDetailBase.Object.Reminder.CreatorId");
            reminder.Type      = _ctx.StringValue("GetTaskDetailBase.Object.Reminder.Type");

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

            for (int i = 0; i < _ctx.Length("GetTaskDetailBase.Object.Reminder.MemberRoles.Length"); i++)
            {
                reminder_memberRoles.Add(_ctx.StringValue("GetTaskDetailBase.Object.Reminder.MemberRoles[" + i + "]"));
            }
            reminder.MemberRoles = reminder_memberRoles;

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

            for (int i = 0; i < _ctx.Length("GetTaskDetailBase.Object.Reminder.Members.Length"); i++)
            {
                reminder_members.Add(_ctx.StringValue("GetTaskDetailBase.Object.Reminder.Members[" + i + "]"));
            }
            reminder.Members = reminder_members;

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

            for (int i = 0; i < _ctx.Length("GetTaskDetailBase.Object.Reminder.Rules.Length"); i++)
            {
                reminder_rules.Add(_ctx.StringValue("GetTaskDetailBase.Object.Reminder.Rules[" + i + "]"));
            }
            reminder.Rules   = reminder_rules;
            _object.Reminder = reminder;

            GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_SubtaskCount subtaskCount = new GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_SubtaskCount();
            subtaskCount.Total   = _ctx.IntegerValue("GetTaskDetailBase.Object.SubtaskCount.Total");
            subtaskCount.Done    = _ctx.IntegerValue("GetTaskDetailBase.Object.SubtaskCount.Done");
            _object.SubtaskCount = subtaskCount;

            GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_WorkTime workTime = new GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_WorkTime();
            workTime.UsedTime  = _ctx.IntegerValue("GetTaskDetailBase.Object.WorkTime.UsedTime");
            workTime.Unit      = _ctx.StringValue("GetTaskDetailBase.Object.WorkTime.Unit");
            workTime.TotalTime = _ctx.IntegerValue("GetTaskDetailBase.Object.WorkTime.TotalTime");
            _object.WorkTime   = workTime;

            GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Badges badges = new GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Badges();
            badges.LikesCount       = _ctx.IntegerValue("GetTaskDetailBase.Object.Badges.LikesCount");
            badges.AttachmentsCount = _ctx.IntegerValue("GetTaskDetailBase.Object.Badges.AttachmentsCount");
            badges.CommentsCount    = _ctx.IntegerValue("GetTaskDetailBase.Object.Badges.CommentsCount");
            badges.ObjectlinksCount = _ctx.IntegerValue("GetTaskDetailBase.Object.Badges.ObjectlinksCount");
            _object.Badges          = badges;

            GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Stage stage = new GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Stage();
            stage.Name    = _ctx.StringValue("GetTaskDetailBase.Object.Stage.Name");
            stage.Id      = _ctx.StringValue("GetTaskDetailBase.Object.Stage.Id");
            _object.Stage = stage;

            List <GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Customfield> _object_customfields = new List <GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Customfield>();

            for (int i = 0; i < _ctx.Length("GetTaskDetailBase.Object.Customfields.Length"); i++)
            {
                GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Customfield customfield = new GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Customfield();
                customfield.CustomfieldId = _ctx.StringValue("GetTaskDetailBase.Object.Customfields[" + i + "].CustomfieldId");
                customfield.Type          = _ctx.StringValue("GetTaskDetailBase.Object.Customfields[" + i + "].Type");

                List <string> customfield_values = new List <string>();
                for (int j = 0; j < _ctx.Length("GetTaskDetailBase.Object.Customfields[" + i + "].Values.Length"); j++)
                {
                    customfield_values.Add(_ctx.StringValue("GetTaskDetailBase.Object.Customfields[" + i + "].Values[" + j + "]"));
                }
                customfield.Values = customfield_values;

                List <GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Customfield.GetTaskDetailBase_ValueInfo> customfield_value = new List <GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Customfield.GetTaskDetailBase_ValueInfo>();
                for (int j = 0; j < _ctx.Length("GetTaskDetailBase.Object.Customfields[" + i + "].Value.Length"); j++)
                {
                    GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Customfield.GetTaskDetailBase_ValueInfo valueInfo = new GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Customfield.GetTaskDetailBase_ValueInfo();
                    valueInfo.Id    = _ctx.StringValue("GetTaskDetailBase.Object.Customfields[" + i + "].Value[" + j + "].Id");
                    valueInfo.Title = _ctx.StringValue("GetTaskDetailBase.Object.Customfields[" + i + "].Value[" + j + "].Title");

                    customfield_value.Add(valueInfo);
                }
                customfield._Value = customfield_value;

                _object_customfields.Add(customfield);
            }
            _object.Customfields = _object_customfields;

            List <GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Subtask> _object_subtasks = new List <GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Subtask>();

            for (int i = 0; i < _ctx.Length("GetTaskDetailBase.Object.Subtasks.Length"); i++)
            {
                GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Subtask subtask = new GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Subtask();
                subtask.Id      = _ctx.StringValue("GetTaskDetailBase.Object.Subtasks[" + i + "].Id");
                subtask.Content = _ctx.StringValue("GetTaskDetailBase.Object.Subtasks[" + i + "].Content");

                _object_subtasks.Add(subtask);
            }
            _object.Subtasks = _object_subtasks;

            List <GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Involver> _object_involvers = new List <GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Involver>();

            for (int i = 0; i < _ctx.Length("GetTaskDetailBase.Object.Involvers.Length"); i++)
            {
                GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Involver involver = new GetTaskDetailBaseResponse.GetTaskDetailBase__Object.GetTaskDetailBase_Involver();
                involver.Name = _ctx.StringValue("GetTaskDetailBase.Object.Involvers[" + i + "].Name");
                involver.Id   = _ctx.StringValue("GetTaskDetailBase.Object.Involvers[" + i + "].Id");

                _object_involvers.Add(involver);
            }
            _object.Involvers = _object_involvers;
            getTaskDetailBaseResponse._Object = _object;

            return(getTaskDetailBaseResponse);
        }
Exemplo n.º 38
0
        public static DescribeDeployedApiResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeDeployedApiResponse describeDeployedApiResponse = new DescribeDeployedApiResponse();

            describeDeployedApiResponse.HttpResponse         = context.HttpResponse;
            describeDeployedApiResponse.RequestId            = context.StringValue("DescribeDeployedApi.RequestId");
            describeDeployedApiResponse.RegionId             = context.StringValue("DescribeDeployedApi.RegionId");
            describeDeployedApiResponse.GroupId              = context.StringValue("DescribeDeployedApi.GroupId");
            describeDeployedApiResponse.GroupName            = context.StringValue("DescribeDeployedApi.GroupName");
            describeDeployedApiResponse.StageName            = context.StringValue("DescribeDeployedApi.StageName");
            describeDeployedApiResponse.ApiId                = context.StringValue("DescribeDeployedApi.ApiId");
            describeDeployedApiResponse.ApiName              = context.StringValue("DescribeDeployedApi.ApiName");
            describeDeployedApiResponse.Description          = context.StringValue("DescribeDeployedApi.Description");
            describeDeployedApiResponse.Visibility           = context.StringValue("DescribeDeployedApi.Visibility");
            describeDeployedApiResponse.AuthType             = context.StringValue("DescribeDeployedApi.AuthType");
            describeDeployedApiResponse.ResultType           = context.StringValue("DescribeDeployedApi.ResultType");
            describeDeployedApiResponse.ResultSample         = context.StringValue("DescribeDeployedApi.ResultSample");
            describeDeployedApiResponse.FailResultSample     = context.StringValue("DescribeDeployedApi.FailResultSample");
            describeDeployedApiResponse.DeployedTime         = context.StringValue("DescribeDeployedApi.DeployedTime");
            describeDeployedApiResponse.AllowSignatureMethod = context.StringValue("DescribeDeployedApi.AllowSignatureMethod");
            describeDeployedApiResponse.ResultBodyModel      = context.StringValue("DescribeDeployedApi.ResultBodyModel");
            describeDeployedApiResponse.ForceNonceCheck      = context.BooleanValue("DescribeDeployedApi.ForceNonceCheck");
            describeDeployedApiResponse.DisableInternet      = context.BooleanValue("DescribeDeployedApi.DisableInternet");

            DescribeDeployedApiResponse.DescribeDeployedApi_RequestConfig requestConfig = new DescribeDeployedApiResponse.DescribeDeployedApi_RequestConfig();
            requestConfig.RequestProtocol             = context.StringValue("DescribeDeployedApi.RequestConfig.RequestProtocol");
            requestConfig.RequestHttpMethod           = context.StringValue("DescribeDeployedApi.RequestConfig.RequestHttpMethod");
            requestConfig.RequestPath                 = context.StringValue("DescribeDeployedApi.RequestConfig.RequestPath");
            requestConfig.BodyFormat                  = context.StringValue("DescribeDeployedApi.RequestConfig.BodyFormat");
            requestConfig.PostBodyDescription         = context.StringValue("DescribeDeployedApi.RequestConfig.PostBodyDescription");
            requestConfig.RequestMode                 = context.StringValue("DescribeDeployedApi.RequestConfig.RequestMode");
            requestConfig.BodyModel                   = context.StringValue("DescribeDeployedApi.RequestConfig.BodyModel");
            describeDeployedApiResponse.RequestConfig = requestConfig;

            DescribeDeployedApiResponse.DescribeDeployedApi_ServiceConfig serviceConfig = new DescribeDeployedApiResponse.DescribeDeployedApi_ServiceConfig();
            serviceConfig.ServiceProtocol   = context.StringValue("DescribeDeployedApi.ServiceConfig.ServiceProtocol");
            serviceConfig.ServiceAddress    = context.StringValue("DescribeDeployedApi.ServiceConfig.ServiceAddress");
            serviceConfig.ServiceHttpMethod = context.StringValue("DescribeDeployedApi.ServiceConfig.ServiceHttpMethod");
            serviceConfig.ServicePath       = context.StringValue("DescribeDeployedApi.ServiceConfig.ServicePath");
            serviceConfig.ServiceTimeout    = context.IntegerValue("DescribeDeployedApi.ServiceConfig.ServiceTimeout");
            serviceConfig.Mock             = context.StringValue("DescribeDeployedApi.ServiceConfig.Mock");
            serviceConfig.MockResult       = context.StringValue("DescribeDeployedApi.ServiceConfig.MockResult");
            serviceConfig.ServiceVpcEnable = context.StringValue("DescribeDeployedApi.ServiceConfig.ServiceVpcEnable");
            serviceConfig.MockStatusCode   = context.IntegerValue("DescribeDeployedApi.ServiceConfig.MockStatusCode");
            serviceConfig.VpcId            = context.StringValue("DescribeDeployedApi.ServiceConfig.VpcId");

            DescribeDeployedApiResponse.DescribeDeployedApi_ServiceConfig.DescribeDeployedApi_VpcConfig vpcConfig = new DescribeDeployedApiResponse.DescribeDeployedApi_ServiceConfig.DescribeDeployedApi_VpcConfig();
            vpcConfig.Name          = context.StringValue("DescribeDeployedApi.ServiceConfig.VpcConfig.Name");
            vpcConfig.VpcId         = context.StringValue("DescribeDeployedApi.ServiceConfig.VpcConfig.VpcId");
            vpcConfig.InstanceId    = context.StringValue("DescribeDeployedApi.ServiceConfig.VpcConfig.InstanceId");
            vpcConfig.Port          = context.IntegerValue("DescribeDeployedApi.ServiceConfig.VpcConfig.Port");
            serviceConfig.VpcConfig = vpcConfig;

            DescribeDeployedApiResponse.DescribeDeployedApi_ServiceConfig.DescribeDeployedApi_FunctionComputeConfig functionComputeConfig = new DescribeDeployedApiResponse.DescribeDeployedApi_ServiceConfig.DescribeDeployedApi_FunctionComputeConfig();
            functionComputeConfig.RegionId      = context.StringValue("DescribeDeployedApi.ServiceConfig.FunctionComputeConfig.RegionId");
            functionComputeConfig.ServiceName   = context.StringValue("DescribeDeployedApi.ServiceConfig.FunctionComputeConfig.ServiceName");
            functionComputeConfig.FunctionName  = context.StringValue("DescribeDeployedApi.ServiceConfig.FunctionComputeConfig.FunctionName");
            functionComputeConfig.RoleArn       = context.StringValue("DescribeDeployedApi.ServiceConfig.FunctionComputeConfig.RoleArn");
            serviceConfig.FunctionComputeConfig = functionComputeConfig;

            List <DescribeDeployedApiResponse.DescribeDeployedApi_ServiceConfig.DescribeDeployedApi_MockHeader> serviceConfig_mockHeaders = new List <DescribeDeployedApiResponse.DescribeDeployedApi_ServiceConfig.DescribeDeployedApi_MockHeader>();

            for (int i = 0; i < context.Length("DescribeDeployedApi.ServiceConfig.MockHeaders.Length"); i++)
            {
                DescribeDeployedApiResponse.DescribeDeployedApi_ServiceConfig.DescribeDeployedApi_MockHeader mockHeader = new DescribeDeployedApiResponse.DescribeDeployedApi_ServiceConfig.DescribeDeployedApi_MockHeader();
                mockHeader.HeaderName  = context.StringValue("DescribeDeployedApi.ServiceConfig.MockHeaders[" + i + "].HeaderName");
                mockHeader.HeaderValue = context.StringValue("DescribeDeployedApi.ServiceConfig.MockHeaders[" + i + "].HeaderValue");

                serviceConfig_mockHeaders.Add(mockHeader);
            }
            serviceConfig.MockHeaders = serviceConfig_mockHeaders;
            describeDeployedApiResponse.ServiceConfig = serviceConfig;

            DescribeDeployedApiResponse.DescribeDeployedApi_OpenIdConnectConfig openIdConnectConfig = new DescribeDeployedApiResponse.DescribeDeployedApi_OpenIdConnectConfig();
            openIdConnectConfig.OpenIdApiType               = context.StringValue("DescribeDeployedApi.OpenIdConnectConfig.OpenIdApiType");
            openIdConnectConfig.IdTokenParamName            = context.StringValue("DescribeDeployedApi.OpenIdConnectConfig.IdTokenParamName");
            openIdConnectConfig.PublicKeyId                 = context.StringValue("DescribeDeployedApi.OpenIdConnectConfig.PublicKeyId");
            openIdConnectConfig.PublicKey                   = context.StringValue("DescribeDeployedApi.OpenIdConnectConfig.PublicKey");
            describeDeployedApiResponse.OpenIdConnectConfig = openIdConnectConfig;

            List <DescribeDeployedApiResponse.DescribeDeployedApi_ErrorCodeSample> describeDeployedApiResponse_errorCodeSamples = new List <DescribeDeployedApiResponse.DescribeDeployedApi_ErrorCodeSample>();

            for (int i = 0; i < context.Length("DescribeDeployedApi.ErrorCodeSamples.Length"); i++)
            {
                DescribeDeployedApiResponse.DescribeDeployedApi_ErrorCodeSample errorCodeSample = new DescribeDeployedApiResponse.DescribeDeployedApi_ErrorCodeSample();
                errorCodeSample.Code        = context.StringValue("DescribeDeployedApi.ErrorCodeSamples[" + i + "].Code");
                errorCodeSample.Message     = context.StringValue("DescribeDeployedApi.ErrorCodeSamples[" + i + "].Message");
                errorCodeSample.Description = context.StringValue("DescribeDeployedApi.ErrorCodeSamples[" + i + "].Description");

                describeDeployedApiResponse_errorCodeSamples.Add(errorCodeSample);
            }
            describeDeployedApiResponse.ErrorCodeSamples = describeDeployedApiResponse_errorCodeSamples;

            List <DescribeDeployedApiResponse.DescribeDeployedApi_ResultDescription> describeDeployedApiResponse_resultDescriptions = new List <DescribeDeployedApiResponse.DescribeDeployedApi_ResultDescription>();

            for (int i = 0; i < context.Length("DescribeDeployedApi.ResultDescriptions.Length"); i++)
            {
                DescribeDeployedApiResponse.DescribeDeployedApi_ResultDescription resultDescription = new DescribeDeployedApiResponse.DescribeDeployedApi_ResultDescription();
                resultDescription.Id          = context.StringValue("DescribeDeployedApi.ResultDescriptions[" + i + "].Id");
                resultDescription.Pid         = context.StringValue("DescribeDeployedApi.ResultDescriptions[" + i + "].Pid");
                resultDescription.HasChild    = context.BooleanValue("DescribeDeployedApi.ResultDescriptions[" + i + "].HasChild");
                resultDescription.Key         = context.StringValue("DescribeDeployedApi.ResultDescriptions[" + i + "].Key");
                resultDescription.Name        = context.StringValue("DescribeDeployedApi.ResultDescriptions[" + i + "].Name");
                resultDescription.Mandatory   = context.BooleanValue("DescribeDeployedApi.ResultDescriptions[" + i + "].Mandatory");
                resultDescription.Type        = context.StringValue("DescribeDeployedApi.ResultDescriptions[" + i + "].Type");
                resultDescription.Description = context.StringValue("DescribeDeployedApi.ResultDescriptions[" + i + "].Description");

                describeDeployedApiResponse_resultDescriptions.Add(resultDescription);
            }
            describeDeployedApiResponse.ResultDescriptions = describeDeployedApiResponse_resultDescriptions;

            List <DescribeDeployedApiResponse.DescribeDeployedApi_SystemParameter> describeDeployedApiResponse_systemParameters = new List <DescribeDeployedApiResponse.DescribeDeployedApi_SystemParameter>();

            for (int i = 0; i < context.Length("DescribeDeployedApi.SystemParameters.Length"); i++)
            {
                DescribeDeployedApiResponse.DescribeDeployedApi_SystemParameter systemParameter = new DescribeDeployedApiResponse.DescribeDeployedApi_SystemParameter();
                systemParameter.ParameterName        = context.StringValue("DescribeDeployedApi.SystemParameters[" + i + "].ParameterName");
                systemParameter.ServiceParameterName = context.StringValue("DescribeDeployedApi.SystemParameters[" + i + "].ServiceParameterName");
                systemParameter.Location             = context.StringValue("DescribeDeployedApi.SystemParameters[" + i + "].Location");
                systemParameter.DemoValue            = context.StringValue("DescribeDeployedApi.SystemParameters[" + i + "].DemoValue");
                systemParameter.Description          = context.StringValue("DescribeDeployedApi.SystemParameters[" + i + "].Description");

                describeDeployedApiResponse_systemParameters.Add(systemParameter);
            }
            describeDeployedApiResponse.SystemParameters = describeDeployedApiResponse_systemParameters;

            List <DescribeDeployedApiResponse.DescribeDeployedApi_CustomSystemParameter> describeDeployedApiResponse_customSystemParameters = new List <DescribeDeployedApiResponse.DescribeDeployedApi_CustomSystemParameter>();

            for (int i = 0; i < context.Length("DescribeDeployedApi.CustomSystemParameters.Length"); i++)
            {
                DescribeDeployedApiResponse.DescribeDeployedApi_CustomSystemParameter customSystemParameter = new DescribeDeployedApiResponse.DescribeDeployedApi_CustomSystemParameter();
                customSystemParameter.ParameterName        = context.StringValue("DescribeDeployedApi.CustomSystemParameters[" + i + "].ParameterName");
                customSystemParameter.ServiceParameterName = context.StringValue("DescribeDeployedApi.CustomSystemParameters[" + i + "].ServiceParameterName");
                customSystemParameter.Location             = context.StringValue("DescribeDeployedApi.CustomSystemParameters[" + i + "].Location");
                customSystemParameter.DemoValue            = context.StringValue("DescribeDeployedApi.CustomSystemParameters[" + i + "].DemoValue");
                customSystemParameter.Description          = context.StringValue("DescribeDeployedApi.CustomSystemParameters[" + i + "].Description");

                describeDeployedApiResponse_customSystemParameters.Add(customSystemParameter);
            }
            describeDeployedApiResponse.CustomSystemParameters = describeDeployedApiResponse_customSystemParameters;

            List <DescribeDeployedApiResponse.DescribeDeployedApi_ConstantParameter> describeDeployedApiResponse_constantParameters = new List <DescribeDeployedApiResponse.DescribeDeployedApi_ConstantParameter>();

            for (int i = 0; i < context.Length("DescribeDeployedApi.ConstantParameters.Length"); i++)
            {
                DescribeDeployedApiResponse.DescribeDeployedApi_ConstantParameter constantParameter = new DescribeDeployedApiResponse.DescribeDeployedApi_ConstantParameter();
                constantParameter.ServiceParameterName = context.StringValue("DescribeDeployedApi.ConstantParameters[" + i + "].ServiceParameterName");
                constantParameter.ConstantValue        = context.StringValue("DescribeDeployedApi.ConstantParameters[" + i + "].ConstantValue");
                constantParameter.Location             = context.StringValue("DescribeDeployedApi.ConstantParameters[" + i + "].Location");
                constantParameter.Description          = context.StringValue("DescribeDeployedApi.ConstantParameters[" + i + "].Description");

                describeDeployedApiResponse_constantParameters.Add(constantParameter);
            }
            describeDeployedApiResponse.ConstantParameters = describeDeployedApiResponse_constantParameters;

            List <DescribeDeployedApiResponse.DescribeDeployedApi_RequestParameter> describeDeployedApiResponse_requestParameters = new List <DescribeDeployedApiResponse.DescribeDeployedApi_RequestParameter>();

            for (int i = 0; i < context.Length("DescribeDeployedApi.RequestParameters.Length"); i++)
            {
                DescribeDeployedApiResponse.DescribeDeployedApi_RequestParameter requestParameter = new DescribeDeployedApiResponse.DescribeDeployedApi_RequestParameter();
                requestParameter.ApiParameterName  = context.StringValue("DescribeDeployedApi.RequestParameters[" + i + "].ApiParameterName");
                requestParameter.Location          = context.StringValue("DescribeDeployedApi.RequestParameters[" + i + "].Location");
                requestParameter.ParameterType     = context.StringValue("DescribeDeployedApi.RequestParameters[" + i + "].ParameterType");
                requestParameter.Required          = context.StringValue("DescribeDeployedApi.RequestParameters[" + i + "].Required");
                requestParameter.DefaultValue      = context.StringValue("DescribeDeployedApi.RequestParameters[" + i + "].DefaultValue");
                requestParameter.DemoValue         = context.StringValue("DescribeDeployedApi.RequestParameters[" + i + "].DemoValue");
                requestParameter.MaxValue          = context.LongValue("DescribeDeployedApi.RequestParameters[" + i + "].MaxValue");
                requestParameter.MinValue          = context.LongValue("DescribeDeployedApi.RequestParameters[" + i + "].MinValue");
                requestParameter.MaxLength         = context.LongValue("DescribeDeployedApi.RequestParameters[" + i + "].MaxLength");
                requestParameter.MinLength         = context.LongValue("DescribeDeployedApi.RequestParameters[" + i + "].MinLength");
                requestParameter.RegularExpression = context.StringValue("DescribeDeployedApi.RequestParameters[" + i + "].RegularExpression");
                requestParameter.JsonScheme        = context.StringValue("DescribeDeployedApi.RequestParameters[" + i + "].JsonScheme");
                requestParameter.EnumValue         = context.StringValue("DescribeDeployedApi.RequestParameters[" + i + "].EnumValue");
                requestParameter.DocShow           = context.StringValue("DescribeDeployedApi.RequestParameters[" + i + "].DocShow");
                requestParameter.DocOrder          = context.IntegerValue("DescribeDeployedApi.RequestParameters[" + i + "].DocOrder");
                requestParameter.Description       = context.StringValue("DescribeDeployedApi.RequestParameters[" + i + "].Description");
                requestParameter.ArrayItemsType    = context.StringValue("DescribeDeployedApi.RequestParameters[" + i + "].ArrayItemsType");

                describeDeployedApiResponse_requestParameters.Add(requestParameter);
            }
            describeDeployedApiResponse.RequestParameters = describeDeployedApiResponse_requestParameters;

            List <DescribeDeployedApiResponse.DescribeDeployedApi_ServiceParameter> describeDeployedApiResponse_serviceParameters = new List <DescribeDeployedApiResponse.DescribeDeployedApi_ServiceParameter>();

            for (int i = 0; i < context.Length("DescribeDeployedApi.ServiceParameters.Length"); i++)
            {
                DescribeDeployedApiResponse.DescribeDeployedApi_ServiceParameter serviceParameter = new DescribeDeployedApiResponse.DescribeDeployedApi_ServiceParameter();
                serviceParameter.ServiceParameterName = context.StringValue("DescribeDeployedApi.ServiceParameters[" + i + "].ServiceParameterName");
                serviceParameter.Location             = context.StringValue("DescribeDeployedApi.ServiceParameters[" + i + "].Location");
                serviceParameter.ParameterType        = context.StringValue("DescribeDeployedApi.ServiceParameters[" + i + "].ParameterType");

                describeDeployedApiResponse_serviceParameters.Add(serviceParameter);
            }
            describeDeployedApiResponse.ServiceParameters = describeDeployedApiResponse_serviceParameters;

            List <DescribeDeployedApiResponse.DescribeDeployedApi_ServiceParameterMap> describeDeployedApiResponse_serviceParametersMap = new List <DescribeDeployedApiResponse.DescribeDeployedApi_ServiceParameterMap>();

            for (int i = 0; i < context.Length("DescribeDeployedApi.ServiceParametersMap.Length"); i++)
            {
                DescribeDeployedApiResponse.DescribeDeployedApi_ServiceParameterMap serviceParameterMap = new DescribeDeployedApiResponse.DescribeDeployedApi_ServiceParameterMap();
                serviceParameterMap.ServiceParameterName = context.StringValue("DescribeDeployedApi.ServiceParametersMap[" + i + "].ServiceParameterName");
                serviceParameterMap.RequestParameterName = context.StringValue("DescribeDeployedApi.ServiceParametersMap[" + i + "].RequestParameterName");

                describeDeployedApiResponse_serviceParametersMap.Add(serviceParameterMap);
            }
            describeDeployedApiResponse.ServiceParametersMap = describeDeployedApiResponse_serviceParametersMap;

            return(describeDeployedApiResponse);
        }
        public static DescribeScalingGroupsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeScalingGroupsResponse describeScalingGroupsResponse = new DescribeScalingGroupsResponse();

            describeScalingGroupsResponse.HttpResponse = context.HttpResponse;
            describeScalingGroupsResponse.TotalCount   = context.IntegerValue("DescribeScalingGroups.TotalCount");
            describeScalingGroupsResponse.PageNumber   = context.IntegerValue("DescribeScalingGroups.PageNumber");
            describeScalingGroupsResponse.PageSize     = context.IntegerValue("DescribeScalingGroups.PageSize");
            describeScalingGroupsResponse.RequestId    = context.StringValue("DescribeScalingGroups.RequestId");

            List <DescribeScalingGroupsResponse.DescribeScalingGroups_ScalingGroup> describeScalingGroupsResponse_scalingGroups = new List <DescribeScalingGroupsResponse.DescribeScalingGroups_ScalingGroup>();

            for (int i = 0; i < context.Length("DescribeScalingGroups.ScalingGroups.Length"); i++)
            {
                DescribeScalingGroupsResponse.DescribeScalingGroups_ScalingGroup scalingGroup = new DescribeScalingGroupsResponse.DescribeScalingGroups_ScalingGroup();
                scalingGroup.DefaultCooldown              = context.IntegerValue("DescribeScalingGroups.ScalingGroups[" + i + "].DefaultCooldown");
                scalingGroup.MaxSize                      = context.IntegerValue("DescribeScalingGroups.ScalingGroups[" + i + "].MaxSize");
                scalingGroup.PendingCapacity              = context.IntegerValue("DescribeScalingGroups.ScalingGroups[" + i + "].PendingCapacity");
                scalingGroup.RemovingCapacity             = context.IntegerValue("DescribeScalingGroups.ScalingGroups[" + i + "].RemovingCapacity");
                scalingGroup.ScalingGroupName             = context.StringValue("DescribeScalingGroups.ScalingGroups[" + i + "].ScalingGroupName");
                scalingGroup.ActiveCapacity               = context.IntegerValue("DescribeScalingGroups.ScalingGroups[" + i + "].ActiveCapacity");
                scalingGroup.StandbyCapacity              = context.IntegerValue("DescribeScalingGroups.ScalingGroups[" + i + "].StandbyCapacity");
                scalingGroup.ActiveScalingConfigurationId = context.StringValue("DescribeScalingGroups.ScalingGroups[" + i + "].ActiveScalingConfigurationId");
                scalingGroup.ScalingGroupId               = context.StringValue("DescribeScalingGroups.ScalingGroups[" + i + "].ScalingGroupId");
                scalingGroup.RegionId                     = context.StringValue("DescribeScalingGroups.ScalingGroups[" + i + "].RegionId");
                scalingGroup.TotalCapacity                = context.IntegerValue("DescribeScalingGroups.ScalingGroups[" + i + "].TotalCapacity");
                scalingGroup.MinSize                      = context.IntegerValue("DescribeScalingGroups.ScalingGroups[" + i + "].MinSize");
                scalingGroup.LifecycleState               = context.StringValue("DescribeScalingGroups.ScalingGroups[" + i + "].LifecycleState");
                scalingGroup.CreationTime                 = context.StringValue("DescribeScalingGroups.ScalingGroups[" + i + "].CreationTime");
                scalingGroup.ModificationTime             = context.StringValue("DescribeScalingGroups.ScalingGroups[" + i + "].ModificationTime");
                scalingGroup.VpcId     = context.StringValue("DescribeScalingGroups.ScalingGroups[" + i + "].VpcId");
                scalingGroup.VSwitchId = context.StringValue("DescribeScalingGroups.ScalingGroups[" + i + "].VSwitchId");

                List <string> scalingGroup_vSwitchIds = new List <string>();
                for (int j = 0; j < context.Length("DescribeScalingGroups.ScalingGroups[" + i + "].VSwitchIds.Length"); j++)
                {
                    scalingGroup_vSwitchIds.Add(context.StringValue("DescribeScalingGroups.ScalingGroups[" + i + "].VSwitchIds[" + j + "]"));
                }
                scalingGroup.VSwitchIds = scalingGroup_vSwitchIds;

                List <string> scalingGroup_removalPolicies = new List <string>();
                for (int j = 0; j < context.Length("DescribeScalingGroups.ScalingGroups[" + i + "].RemovalPolicies.Length"); j++)
                {
                    scalingGroup_removalPolicies.Add(context.StringValue("DescribeScalingGroups.ScalingGroups[" + i + "].RemovalPolicies[" + j + "]"));
                }
                scalingGroup.RemovalPolicies = scalingGroup_removalPolicies;

                List <string> scalingGroup_dBInstanceIds = new List <string>();
                for (int j = 0; j < context.Length("DescribeScalingGroups.ScalingGroups[" + i + "].DBInstanceIds.Length"); j++)
                {
                    scalingGroup_dBInstanceIds.Add(context.StringValue("DescribeScalingGroups.ScalingGroups[" + i + "].DBInstanceIds[" + j + "]"));
                }
                scalingGroup.DBInstanceIds = scalingGroup_dBInstanceIds;

                List <string> scalingGroup_loadBalancerIds = new List <string>();
                for (int j = 0; j < context.Length("DescribeScalingGroups.ScalingGroups[" + i + "].LoadBalancerIds.Length"); j++)
                {
                    scalingGroup_loadBalancerIds.Add(context.StringValue("DescribeScalingGroups.ScalingGroups[" + i + "].LoadBalancerIds[" + j + "]"));
                }
                scalingGroup.LoadBalancerIds = scalingGroup_loadBalancerIds;

                describeScalingGroupsResponse_scalingGroups.Add(scalingGroup);
            }
            describeScalingGroupsResponse.ScalingGroups = describeScalingGroupsResponse_scalingGroups;

            return(describeScalingGroupsResponse);
        }
        public static FindImagesResponse Unmarshall(UnmarshallerContext context)
        {
            FindImagesResponse findImagesResponse = new FindImagesResponse();

            findImagesResponse.HttpResponse = context.HttpResponse;
            findImagesResponse.SetId        = context.StringValue("FindImages.SetId");
            findImagesResponse.NextMarker   = context.StringValue("FindImages.NextMarker");
            findImagesResponse.RequestId    = context.StringValue("FindImages.RequestId");

            List <FindImagesResponse.FindImages_ImagesItem> findImagesResponse_images = new List <FindImagesResponse.FindImages_ImagesItem>();

            for (int i = 0; i < context.Length("FindImages.Images.Length"); i++)
            {
                FindImagesResponse.FindImages_ImagesItem imagesItem = new FindImagesResponse.FindImages_ImagesItem();
                imagesItem.FacesModifyTime     = context.StringValue("FindImages.Images[" + i + "].FacesModifyTime");
                imagesItem.OCRModifyTime       = context.StringValue("FindImages.Images[" + i + "].OCRModifyTime");
                imagesItem.OCRStatus           = context.StringValue("FindImages.Images[" + i + "].OCRStatus");
                imagesItem.SourcePosition      = context.StringValue("FindImages.Images[" + i + "].SourcePosition");
                imagesItem.Exif                = context.StringValue("FindImages.Images[" + i + "].Exif");
                imagesItem.ImageUri            = context.StringValue("FindImages.Images[" + i + "].ImageUri");
                imagesItem.ImageWidth          = context.IntegerValue("FindImages.Images[" + i + "].ImageWidth");
                imagesItem.ImageFormat         = context.StringValue("FindImages.Images[" + i + "].ImageFormat");
                imagesItem.SourceType          = context.StringValue("FindImages.Images[" + i + "].SourceType");
                imagesItem.ModifyTime          = context.StringValue("FindImages.Images[" + i + "].ModifyTime");
                imagesItem.FileSize            = context.IntegerValue("FindImages.Images[" + i + "].FileSize");
                imagesItem.SourceUri           = context.StringValue("FindImages.Images[" + i + "].SourceUri");
                imagesItem.CreateTime          = context.StringValue("FindImages.Images[" + i + "].CreateTime");
                imagesItem.FacesStatus         = context.StringValue("FindImages.Images[" + i + "].FacesStatus");
                imagesItem.RemarksA            = context.StringValue("FindImages.Images[" + i + "].RemarksA");
                imagesItem.ImageHeight         = context.IntegerValue("FindImages.Images[" + i + "].ImageHeight");
                imagesItem.RemarksB            = context.StringValue("FindImages.Images[" + i + "].RemarksB");
                imagesItem.ImageTime           = context.StringValue("FindImages.Images[" + i + "].ImageTime");
                imagesItem.Orientation         = context.StringValue("FindImages.Images[" + i + "].Orientation");
                imagesItem.Location            = context.StringValue("FindImages.Images[" + i + "].Location");
                imagesItem.OCRFailReason       = context.StringValue("FindImages.Images[" + i + "].OCRFailReason");
                imagesItem.FacesFailReason     = context.StringValue("FindImages.Images[" + i + "].FacesFailReason");
                imagesItem.TagsFailReason      = context.StringValue("FindImages.Images[" + i + "].TagsFailReason");
                imagesItem.TagsModifyTime      = context.StringValue("FindImages.Images[" + i + "].TagsModifyTime");
                imagesItem.CelebrityStatus     = context.StringValue("FindImages.Images[" + i + "].CelebrityStatus");
                imagesItem.CelebrityModifyTime = context.StringValue("FindImages.Images[" + i + "].CelebrityModifyTime");
                imagesItem.CelebrityFailReason = context.StringValue("FindImages.Images[" + i + "].CelebrityFailReason");
                imagesItem.TagsStatus          = context.StringValue("FindImages.Images[" + i + "].TagsStatus");
                imagesItem.RemarksC            = context.StringValue("FindImages.Images[" + i + "].RemarksC");
                imagesItem.RemarksD            = context.StringValue("FindImages.Images[" + i + "].RemarksD");
                imagesItem.ExternalId          = context.StringValue("FindImages.Images[" + i + "].ExternalId");

                List <FindImagesResponse.FindImages_ImagesItem.FindImages_FacesItem> imagesItem_faces = new List <FindImagesResponse.FindImages_ImagesItem.FindImages_FacesItem>();
                for (int j = 0; j < context.Length("FindImages.Images[" + i + "].Faces.Length"); j++)
                {
                    FindImagesResponse.FindImages_ImagesItem.FindImages_FacesItem facesItem = new FindImagesResponse.FindImages_ImagesItem.FindImages_FacesItem();
                    facesItem.Age = context.IntegerValue("FindImages.Images[" + i + "].Faces[" + j + "].Age");
                    facesItem.GenderConfidence  = context.FloatValue("FindImages.Images[" + i + "].Faces[" + j + "].GenderConfidence");
                    facesItem.Attractive        = context.FloatValue("FindImages.Images[" + i + "].Faces[" + j + "].Attractive");
                    facesItem.Gender            = context.StringValue("FindImages.Images[" + i + "].Faces[" + j + "].Gender");
                    facesItem.FaceConfidence    = context.FloatValue("FindImages.Images[" + i + "].Faces[" + j + "].FaceConfidence");
                    facesItem.Emotion           = context.StringValue("FindImages.Images[" + i + "].Faces[" + j + "].Emotion");
                    facesItem.FaceId            = context.StringValue("FindImages.Images[" + i + "].Faces[" + j + "].FaceId");
                    facesItem.EmotionConfidence = context.FloatValue("FindImages.Images[" + i + "].Faces[" + j + "].EmotionConfidence");
                    facesItem.GroupId           = context.StringValue("FindImages.Images[" + i + "].Faces[" + j + "].GroupId");
                    facesItem.FaceQuality       = context.FloatValue("FindImages.Images[" + i + "].Faces[" + j + "].FaceQuality");

                    FindImagesResponse.FindImages_ImagesItem.FindImages_FacesItem.FindImages_EmotionDetails emotionDetails = new FindImagesResponse.FindImages_ImagesItem.FindImages_FacesItem.FindImages_EmotionDetails();
                    emotionDetails.SAD       = context.FloatValue("FindImages.Images[" + i + "].Faces[" + j + "].EmotionDetails.SAD");
                    emotionDetails.CALM      = context.FloatValue("FindImages.Images[" + i + "].Faces[" + j + "].EmotionDetails.CALM");
                    emotionDetails.ANGRY     = context.FloatValue("FindImages.Images[" + i + "].Faces[" + j + "].EmotionDetails.ANGRY");
                    emotionDetails.HAPPY     = context.FloatValue("FindImages.Images[" + i + "].Faces[" + j + "].EmotionDetails.HAPPY");
                    emotionDetails.SCARED    = context.FloatValue("FindImages.Images[" + i + "].Faces[" + j + "].EmotionDetails.SCARED");
                    emotionDetails.DISGUSTED = context.FloatValue("FindImages.Images[" + i + "].Faces[" + j + "].EmotionDetails.DISGUSTED");
                    emotionDetails.SURPRISED = context.FloatValue("FindImages.Images[" + i + "].Faces[" + j + "].EmotionDetails.SURPRISED");
                    facesItem.EmotionDetails = emotionDetails;

                    FindImagesResponse.FindImages_ImagesItem.FindImages_FacesItem.FindImages_FaceAttributes faceAttributes = new FindImagesResponse.FindImages_ImagesItem.FindImages_FacesItem.FindImages_FaceAttributes();
                    faceAttributes.GlassesConfidence = context.FloatValue("FindImages.Images[" + i + "].Faces[" + j + "].FaceAttributes.GlassesConfidence");
                    faceAttributes.Glasses           = context.StringValue("FindImages.Images[" + i + "].Faces[" + j + "].FaceAttributes.Glasses");
                    faceAttributes.RaceConfidence    = context.FloatValue("FindImages.Images[" + i + "].Faces[" + j + "].FaceAttributes.RaceConfidence");
                    faceAttributes.Beard             = context.StringValue("FindImages.Images[" + i + "].Faces[" + j + "].FaceAttributes.Beard");
                    faceAttributes.MaskConfidence    = context.FloatValue("FindImages.Images[" + i + "].Faces[" + j + "].FaceAttributes.MaskConfidence");
                    faceAttributes.Race            = context.StringValue("FindImages.Images[" + i + "].Faces[" + j + "].FaceAttributes.Race");
                    faceAttributes.BeardConfidence = context.FloatValue("FindImages.Images[" + i + "].Faces[" + j + "].FaceAttributes.BeardConfidence");
                    faceAttributes.Mask            = context.StringValue("FindImages.Images[" + i + "].Faces[" + j + "].FaceAttributes.Mask");

                    FindImagesResponse.FindImages_ImagesItem.FindImages_FacesItem.FindImages_FaceAttributes.FindImages_FaceBoundary faceBoundary = new FindImagesResponse.FindImages_ImagesItem.FindImages_FacesItem.FindImages_FaceAttributes.FindImages_FaceBoundary();
                    faceBoundary.Top            = context.IntegerValue("FindImages.Images[" + i + "].Faces[" + j + "].FaceAttributes.FaceBoundary.Top");
                    faceBoundary.Height         = context.IntegerValue("FindImages.Images[" + i + "].Faces[" + j + "].FaceAttributes.FaceBoundary.Height");
                    faceBoundary.Width          = context.IntegerValue("FindImages.Images[" + i + "].Faces[" + j + "].FaceAttributes.FaceBoundary.Width");
                    faceBoundary.Left           = context.IntegerValue("FindImages.Images[" + i + "].Faces[" + j + "].FaceAttributes.FaceBoundary.Left");
                    faceAttributes.FaceBoundary = faceBoundary;

                    FindImagesResponse.FindImages_ImagesItem.FindImages_FacesItem.FindImages_FaceAttributes.FindImages_HeadPose headPose = new FindImagesResponse.FindImages_ImagesItem.FindImages_FacesItem.FindImages_FaceAttributes.FindImages_HeadPose();
                    headPose.Pitch           = context.FloatValue("FindImages.Images[" + i + "].Faces[" + j + "].FaceAttributes.HeadPose.Pitch");
                    headPose.Roll            = context.FloatValue("FindImages.Images[" + i + "].Faces[" + j + "].FaceAttributes.HeadPose.Roll");
                    headPose.Yaw             = context.FloatValue("FindImages.Images[" + i + "].Faces[" + j + "].FaceAttributes.HeadPose.Yaw");
                    faceAttributes.HeadPose  = headPose;
                    facesItem.FaceAttributes = faceAttributes;

                    imagesItem_faces.Add(facesItem);
                }
                imagesItem.Faces = imagesItem_faces;

                List <FindImagesResponse.FindImages_ImagesItem.FindImages_TagsItem> imagesItem_tags = new List <FindImagesResponse.FindImages_ImagesItem.FindImages_TagsItem>();
                for (int j = 0; j < context.Length("FindImages.Images[" + i + "].Tags.Length"); j++)
                {
                    FindImagesResponse.FindImages_ImagesItem.FindImages_TagsItem tagsItem = new FindImagesResponse.FindImages_ImagesItem.FindImages_TagsItem();
                    tagsItem.TagConfidence = context.FloatValue("FindImages.Images[" + i + "].Tags[" + j + "].TagConfidence");
                    tagsItem.TagLevel      = context.IntegerValue("FindImages.Images[" + i + "].Tags[" + j + "].TagLevel");
                    tagsItem.TagName       = context.StringValue("FindImages.Images[" + i + "].Tags[" + j + "].TagName");
                    tagsItem.ParentTagName = context.StringValue("FindImages.Images[" + i + "].Tags[" + j + "].ParentTagName");

                    imagesItem_tags.Add(tagsItem);
                }
                imagesItem.Tags = imagesItem_tags;

                List <FindImagesResponse.FindImages_ImagesItem.FindImages_OCRItem> imagesItem_oCR = new List <FindImagesResponse.FindImages_ImagesItem.FindImages_OCRItem>();
                for (int j = 0; j < context.Length("FindImages.Images[" + i + "].OCR.Length"); j++)
                {
                    FindImagesResponse.FindImages_ImagesItem.FindImages_OCRItem oCRItem = new FindImagesResponse.FindImages_ImagesItem.FindImages_OCRItem();
                    oCRItem.OCRContents   = context.StringValue("FindImages.Images[" + i + "].OCR[" + j + "].OCRContents");
                    oCRItem.OCRConfidence = context.FloatValue("FindImages.Images[" + i + "].OCR[" + j + "].OCRConfidence");

                    FindImagesResponse.FindImages_ImagesItem.FindImages_OCRItem.FindImages_OCRBoundary oCRBoundary = new FindImagesResponse.FindImages_ImagesItem.FindImages_OCRItem.FindImages_OCRBoundary();
                    oCRBoundary.Left    = context.IntegerValue("FindImages.Images[" + i + "].OCR[" + j + "].OCRBoundary.Left");
                    oCRBoundary.Left1   = context.IntegerValue("FindImages.Images[" + i + "].OCR[" + j + "].OCRBoundary.Left");
                    oCRBoundary.Width   = context.IntegerValue("FindImages.Images[" + i + "].OCR[" + j + "].OCRBoundary.Width");
                    oCRBoundary.Height  = context.IntegerValue("FindImages.Images[" + i + "].OCR[" + j + "].OCRBoundary.Height");
                    oCRItem.OCRBoundary = oCRBoundary;

                    imagesItem_oCR.Add(oCRItem);
                }
                imagesItem.OCR = imagesItem_oCR;

                List <FindImagesResponse.FindImages_ImagesItem.FindImages_CelebrityItem> imagesItem_celebrity = new List <FindImagesResponse.FindImages_ImagesItem.FindImages_CelebrityItem>();
                for (int j = 0; j < context.Length("FindImages.Images[" + i + "].Celebrity.Length"); j++)
                {
                    FindImagesResponse.FindImages_ImagesItem.FindImages_CelebrityItem celebrityItem = new FindImagesResponse.FindImages_ImagesItem.FindImages_CelebrityItem();
                    celebrityItem.CelebrityName        = context.StringValue("FindImages.Images[" + i + "].Celebrity[" + j + "].CelebrityName");
                    celebrityItem.CelebrityGender      = context.StringValue("FindImages.Images[" + i + "].Celebrity[" + j + "].CelebrityGender");
                    celebrityItem.CelebrityConfidence  = context.FloatValue("FindImages.Images[" + i + "].Celebrity[" + j + "].CelebrityConfidence");
                    celebrityItem.CelebrityLibraryName = context.StringValue("FindImages.Images[" + i + "].Celebrity[" + j + "].CelebrityLibraryName");

                    FindImagesResponse.FindImages_ImagesItem.FindImages_CelebrityItem.FindImages_CelebrityBoundary celebrityBoundary = new FindImagesResponse.FindImages_ImagesItem.FindImages_CelebrityItem.FindImages_CelebrityBoundary();
                    celebrityBoundary.Left          = context.IntegerValue("FindImages.Images[" + i + "].Celebrity[" + j + "].CelebrityBoundary.Left");
                    celebrityBoundary.Top           = context.IntegerValue("FindImages.Images[" + i + "].Celebrity[" + j + "].CelebrityBoundary.Top");
                    celebrityBoundary.Width         = context.IntegerValue("FindImages.Images[" + i + "].Celebrity[" + j + "].CelebrityBoundary.Width");
                    celebrityBoundary.Height        = context.IntegerValue("FindImages.Images[" + i + "].Celebrity[" + j + "].CelebrityBoundary.Height");
                    celebrityItem.CelebrityBoundary = celebrityBoundary;

                    imagesItem_celebrity.Add(celebrityItem);
                }
                imagesItem.Celebrity = imagesItem_celebrity;

                findImagesResponse_images.Add(imagesItem);
            }
            findImagesResponse.Images = findImagesResponse_images;

            return(findImagesResponse);
        }
Exemplo n.º 41
0
        public static InitiateAttendedTransferResponse Unmarshall(UnmarshallerContext _ctx)
        {
            InitiateAttendedTransferResponse initiateAttendedTransferResponse = new InitiateAttendedTransferResponse();

            initiateAttendedTransferResponse.HttpResponse   = _ctx.HttpResponse;
            initiateAttendedTransferResponse.Code           = _ctx.StringValue("InitiateAttendedTransfer.Code");
            initiateAttendedTransferResponse.HttpStatusCode = _ctx.IntegerValue("InitiateAttendedTransfer.HttpStatusCode");
            initiateAttendedTransferResponse.Message        = _ctx.StringValue("InitiateAttendedTransfer.Message");
            initiateAttendedTransferResponse.RequestId      = _ctx.StringValue("InitiateAttendedTransfer.RequestId");

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

            for (int i = 0; i < _ctx.Length("InitiateAttendedTransfer.Params.Length"); i++)
            {
                initiateAttendedTransferResponse_params.Add(_ctx.StringValue("InitiateAttendedTransfer.Params[" + i + "]"));
            }
            initiateAttendedTransferResponse._Params = initiateAttendedTransferResponse_params;

            InitiateAttendedTransferResponse.InitiateAttendedTransfer_Data data = new InitiateAttendedTransferResponse.InitiateAttendedTransfer_Data();

            InitiateAttendedTransferResponse.InitiateAttendedTransfer_Data.InitiateAttendedTransfer_CallContext callContext = new InitiateAttendedTransferResponse.InitiateAttendedTransfer_Data.InitiateAttendedTransfer_CallContext();
            callContext.CallType   = _ctx.StringValue("InitiateAttendedTransfer.Data.CallContext.CallType");
            callContext.InstanceId = _ctx.StringValue("InitiateAttendedTransfer.Data.CallContext.InstanceId");
            callContext.JobId      = _ctx.StringValue("InitiateAttendedTransfer.Data.CallContext.JobId");

            List <InitiateAttendedTransferResponse.InitiateAttendedTransfer_Data.InitiateAttendedTransfer_CallContext.InitiateAttendedTransfer_ChannelContext> callContext_channelContexts = new List <InitiateAttendedTransferResponse.InitiateAttendedTransfer_Data.InitiateAttendedTransfer_CallContext.InitiateAttendedTransfer_ChannelContext>();

            for (int i = 0; i < _ctx.Length("InitiateAttendedTransfer.Data.CallContext.ChannelContexts.Length"); i++)
            {
                InitiateAttendedTransferResponse.InitiateAttendedTransfer_Data.InitiateAttendedTransfer_CallContext.InitiateAttendedTransfer_ChannelContext channelContext = new InitiateAttendedTransferResponse.InitiateAttendedTransfer_Data.InitiateAttendedTransfer_CallContext.InitiateAttendedTransfer_ChannelContext();
                channelContext.AssociatedData   = _ctx.StringValue("InitiateAttendedTransfer.Data.CallContext.ChannelContexts[" + i + "].AssociatedData");
                channelContext.CallType         = _ctx.StringValue("InitiateAttendedTransfer.Data.CallContext.ChannelContexts[" + i + "].CallType");
                channelContext.ChannelFlags     = _ctx.StringValue("InitiateAttendedTransfer.Data.CallContext.ChannelContexts[" + i + "].ChannelFlags");
                channelContext.ChannelId        = _ctx.StringValue("InitiateAttendedTransfer.Data.CallContext.ChannelContexts[" + i + "].ChannelId");
                channelContext.ChannelState     = _ctx.StringValue("InitiateAttendedTransfer.Data.CallContext.ChannelContexts[" + i + "].ChannelState");
                channelContext.Destination      = _ctx.StringValue("InitiateAttendedTransfer.Data.CallContext.ChannelContexts[" + i + "].Destination");
                channelContext.Index            = _ctx.IntegerValue("InitiateAttendedTransfer.Data.CallContext.ChannelContexts[" + i + "].Index");
                channelContext.JobId            = _ctx.StringValue("InitiateAttendedTransfer.Data.CallContext.ChannelContexts[" + i + "].JobId");
                channelContext.Originator       = _ctx.StringValue("InitiateAttendedTransfer.Data.CallContext.ChannelContexts[" + i + "].Originator");
                channelContext.ReleaseInitiator = _ctx.StringValue("InitiateAttendedTransfer.Data.CallContext.ChannelContexts[" + i + "].ReleaseInitiator");
                channelContext.ReleaseReason    = _ctx.StringValue("InitiateAttendedTransfer.Data.CallContext.ChannelContexts[" + i + "].ReleaseReason");
                channelContext.SkillGroupId     = _ctx.StringValue("InitiateAttendedTransfer.Data.CallContext.ChannelContexts[" + i + "].SkillGroupId");
                channelContext.Timestamp        = _ctx.LongValue("InitiateAttendedTransfer.Data.CallContext.ChannelContexts[" + i + "].Timestamp");
                channelContext.UserExtension    = _ctx.StringValue("InitiateAttendedTransfer.Data.CallContext.ChannelContexts[" + i + "].UserExtension");
                channelContext.UserId           = _ctx.StringValue("InitiateAttendedTransfer.Data.CallContext.ChannelContexts[" + i + "].UserId");

                callContext_channelContexts.Add(channelContext);
            }
            callContext.ChannelContexts = callContext_channelContexts;
            data.CallContext            = callContext;

            InitiateAttendedTransferResponse.InitiateAttendedTransfer_Data.InitiateAttendedTransfer_UserContext userContext = new InitiateAttendedTransferResponse.InitiateAttendedTransfer_Data.InitiateAttendedTransfer_UserContext();
            userContext.BreakCode        = _ctx.StringValue("InitiateAttendedTransfer.Data.UserContext.BreakCode");
            userContext.DeviceId         = _ctx.StringValue("InitiateAttendedTransfer.Data.UserContext.DeviceId");
            userContext.Extension        = _ctx.StringValue("InitiateAttendedTransfer.Data.UserContext.Extension");
            userContext.Heartbeat        = _ctx.LongValue("InitiateAttendedTransfer.Data.UserContext.Heartbeat");
            userContext.InstanceId       = _ctx.StringValue("InitiateAttendedTransfer.Data.UserContext.InstanceId");
            userContext.JobId            = _ctx.StringValue("InitiateAttendedTransfer.Data.UserContext.JobId");
            userContext.Mobile           = _ctx.StringValue("InitiateAttendedTransfer.Data.UserContext.Mobile");
            userContext.OutboundScenario = _ctx.BooleanValue("InitiateAttendedTransfer.Data.UserContext.OutboundScenario");
            userContext.Reserved         = _ctx.LongValue("InitiateAttendedTransfer.Data.UserContext.Reserved");
            userContext.UserId           = _ctx.StringValue("InitiateAttendedTransfer.Data.UserContext.UserId");
            userContext.UserState        = _ctx.StringValue("InitiateAttendedTransfer.Data.UserContext.UserState");
            userContext.WorkMode         = _ctx.StringValue("InitiateAttendedTransfer.Data.UserContext.WorkMode");

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

            for (int i = 0; i < _ctx.Length("InitiateAttendedTransfer.Data.UserContext.SignedSkillGroupIdList.Length"); i++)
            {
                userContext_signedSkillGroupIdList.Add(_ctx.StringValue("InitiateAttendedTransfer.Data.UserContext.SignedSkillGroupIdList[" + i + "]"));
            }
            userContext.SignedSkillGroupIdList = userContext_signedSkillGroupIdList;
            data.UserContext = userContext;
            initiateAttendedTransferResponse.Data = data;

            return(initiateAttendedTransferResponse);
        }
        public static DescribeGatewaysResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeGatewaysResponse describeGatewaysResponse = new DescribeGatewaysResponse();

            describeGatewaysResponse.HttpResponse = _ctx.HttpResponse;
            describeGatewaysResponse.RequestId    = _ctx.StringValue("DescribeGateways.RequestId");
            describeGatewaysResponse.Success      = _ctx.BooleanValue("DescribeGateways.Success");
            describeGatewaysResponse.Code         = _ctx.StringValue("DescribeGateways.Code");
            describeGatewaysResponse.Message      = _ctx.StringValue("DescribeGateways.Message");
            describeGatewaysResponse.TotalCount   = _ctx.IntegerValue("DescribeGateways.TotalCount");
            describeGatewaysResponse.PageNumber   = _ctx.IntegerValue("DescribeGateways.PageNumber");
            describeGatewaysResponse.PageSize     = _ctx.IntegerValue("DescribeGateways.PageSize");

            List <DescribeGatewaysResponse.DescribeGateways_Gateway> describeGatewaysResponse_gateways = new List <DescribeGatewaysResponse.DescribeGateways_Gateway>();

            for (int i = 0; i < _ctx.Length("DescribeGateways.Gateways.Length"); i++)
            {
                DescribeGatewaysResponse.DescribeGateways_Gateway gateway = new DescribeGatewaysResponse.DescribeGateways_Gateway();
                gateway.GatewayId       = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].GatewayId");
                gateway.StorageBundleId = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].StorageBundleId");
                gateway.Name            = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].Name");
                gateway.Description     = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].Description");
                gateway.Location        = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].Location");
                gateway.Category        = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].Category");
                gateway.Type            = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].Type");
                gateway.GatewayClass    = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].GatewayClass");
                gateway.Model           = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].Model");
                gateway.SerialNumber    = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].SerialNumber");
                gateway.Status          = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].Status");
                gateway.EcsInstanceId   = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].EcsInstanceId");
                gateway.VpcId           = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].VpcId");
                gateway.VSwitchId       = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].VSwitchId");
                gateway.Ip                       = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].Ip");
                gateway.InnerIp                  = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].InnerIp");
                gateway.CreatedTime              = _ctx.LongValue("DescribeGateways.Gateways[" + i + "].CreatedTime");
                gateway.ActivatedTime            = _ctx.LongValue("DescribeGateways.Gateways[" + i + "].ActivatedTime");
                gateway.TaskId                   = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].TaskId");
                gateway.GatewayVersion           = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].GatewayVersion");
                gateway.BuyURL                   = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].BuyURL");
                gateway.RenewURL                 = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].RenewURL");
                gateway.IsPostPaid               = _ctx.BooleanValue("DescribeGateways.Gateways[" + i + "].IsPostPaid");
                gateway.IsReleaseAfterExpiration = _ctx.BooleanValue("DescribeGateways.Gateways[" + i + "].IsReleaseAfterExpiration");
                gateway.ExpiredTime              = _ctx.LongValue("DescribeGateways.Gateways[" + i + "].ExpiredTime");
                gateway.ExpireStatus             = _ctx.IntegerValue("DescribeGateways.Gateways[" + i + "].ExpireStatus");
                gateway.CommonBuyInstanceId      = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].CommonBuyInstanceId");
                gateway.PublicNetworkBandwidth   = _ctx.IntegerValue("DescribeGateways.Gateways[" + i + "].PublicNetworkBandwidth");
                gateway.GatewayType              = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].GatewayType");
                gateway.ElasticGateway           = _ctx.BooleanValue("DescribeGateways.Gateways[" + i + "].ElasticGateway");
                gateway.MaxThroughput            = _ctx.IntegerValue("DescribeGateways.Gateways[" + i + "].MaxThroughput");
                gateway.Capacity                 = _ctx.IntegerValue("DescribeGateways.Gateways[" + i + "].Capacity");
                gateway.DataLoadType             = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].DataLoadType");
                gateway.DataLoadInterval         = _ctx.IntegerValue("DescribeGateways.Gateways[" + i + "].DataLoadInterval");
                gateway.LastErrorKey             = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].LastErrorKey");
                gateway.InnerIpv6Ip              = _ctx.StringValue("DescribeGateways.Gateways[" + i + "].InnerIpv6Ip");

                List <string> gateway_elasticNodes = new List <string>();
                for (int j = 0; j < _ctx.Length("DescribeGateways.Gateways[" + i + "].ElasticNodes.Length"); j++)
                {
                    gateway_elasticNodes.Add(_ctx.StringValue("DescribeGateways.Gateways[" + i + "].ElasticNodes[" + j + "]"));
                }
                gateway.ElasticNodes = gateway_elasticNodes;

                describeGatewaysResponse_gateways.Add(gateway);
            }
            describeGatewaysResponse.Gateways = describeGatewaysResponse_gateways;

            return(describeGatewaysResponse);
        }
        public static DescribeSourceServersResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeSourceServersResponse describeSourceServersResponse = new DescribeSourceServersResponse();

            describeSourceServersResponse.HttpResponse = context.HttpResponse;
            describeSourceServersResponse.RequestId    = context.StringValue("DescribeSourceServers.RequestId");
            describeSourceServersResponse.TotalCount   = context.IntegerValue("DescribeSourceServers.TotalCount");
            describeSourceServersResponse.PageNumber   = context.IntegerValue("DescribeSourceServers.PageNumber");
            describeSourceServersResponse.PageSize     = context.IntegerValue("DescribeSourceServers.PageSize");

            List <DescribeSourceServersResponse.DescribeSourceServers_SourceServer> describeSourceServersResponse_sourceServers = new List <DescribeSourceServersResponse.DescribeSourceServers_SourceServer>();

            for (int i = 0; i < context.Length("DescribeSourceServers.SourceServers.Length"); i++)
            {
                DescribeSourceServersResponse.DescribeSourceServers_SourceServer sourceServer = new DescribeSourceServersResponse.DescribeSourceServers_SourceServer();
                sourceServer.SourceId          = context.StringValue("DescribeSourceServers.SourceServers[" + i + "].SourceId");
                sourceServer.JobId             = context.StringValue("DescribeSourceServers.SourceServers[" + i + "].JobId");
                sourceServer.AgentVersion      = context.StringValue("DescribeSourceServers.SourceServers[" + i + "].AgentVersion");
                sourceServer.Name              = context.StringValue("DescribeSourceServers.SourceServers[" + i + "].Name");
                sourceServer.Description       = context.StringValue("DescribeSourceServers.SourceServers[" + i + "].Description");
                sourceServer.KernelLevel       = context.IntegerValue("DescribeSourceServers.SourceServers[" + i + "].KernelLevel");
                sourceServer.Platform          = context.StringValue("DescribeSourceServers.SourceServers[" + i + "].Platform");
                sourceServer.Architecture      = context.StringValue("DescribeSourceServers.SourceServers[" + i + "].Architecture");
                sourceServer.SystemDiskSize    = context.IntegerValue("DescribeSourceServers.SourceServers[" + i + "].SystemDiskSize");
                sourceServer.ReplicationDriver = context.StringValue("DescribeSourceServers.SourceServers[" + i + "].ReplicationDriver");
                sourceServer.SystemInfo        = context.StringValue("DescribeSourceServers.SourceServers[" + i + "].SystemInfo");
                sourceServer.CreationTime      = context.StringValue("DescribeSourceServers.SourceServers[" + i + "].CreationTime");
                sourceServer.State             = context.StringValue("DescribeSourceServers.SourceServers[" + i + "].State");
                sourceServer.ErrorCode         = context.StringValue("DescribeSourceServers.SourceServers[" + i + "].ErrorCode");
                sourceServer.StatusInfo        = context.StringValue("DescribeSourceServers.SourceServers[" + i + "].StatusInfo");
                sourceServer.HeartbeatRate     = context.IntegerValue("DescribeSourceServers.SourceServers[" + i + "].HeartbeatRate");

                List <DescribeSourceServersResponse.DescribeSourceServers_SourceServer.DescribeSourceServers_DataDisk> sourceServer_dataDisks = new List <DescribeSourceServersResponse.DescribeSourceServers_SourceServer.DescribeSourceServers_DataDisk>();
                for (int j = 0; j < context.Length("DescribeSourceServers.SourceServers[" + i + "].DataDisks.Length"); j++)
                {
                    DescribeSourceServersResponse.DescribeSourceServers_SourceServer.DescribeSourceServers_DataDisk dataDisk = new DescribeSourceServersResponse.DescribeSourceServers_SourceServer.DescribeSourceServers_DataDisk();
                    dataDisk.Index = context.IntegerValue("DescribeSourceServers.SourceServers[" + i + "].DataDisks[" + j + "].Index");
                    dataDisk.Size  = context.IntegerValue("DescribeSourceServers.SourceServers[" + i + "].DataDisks[" + j + "].Size");
                    dataDisk.Path  = context.StringValue("DescribeSourceServers.SourceServers[" + i + "].DataDisks[" + j + "].Path");

                    List <DescribeSourceServersResponse.DescribeSourceServers_SourceServer.DescribeSourceServers_DataDisk.DescribeSourceServers_Part> dataDisk_parts = new List <DescribeSourceServersResponse.DescribeSourceServers_SourceServer.DescribeSourceServers_DataDisk.DescribeSourceServers_Part>();
                    for (int k = 0; k < context.Length("DescribeSourceServers.SourceServers[" + i + "].DataDisks[" + j + "].Parts.Length"); k++)
                    {
                        DescribeSourceServersResponse.DescribeSourceServers_SourceServer.DescribeSourceServers_DataDisk.DescribeSourceServers_Part part = new DescribeSourceServersResponse.DescribeSourceServers_SourceServer.DescribeSourceServers_DataDisk.DescribeSourceServers_Part();
                        part.Path      = context.StringValue("DescribeSourceServers.SourceServers[" + i + "].DataDisks[" + j + "].Parts[" + k + "].Path");
                        part.Device    = context.StringValue("DescribeSourceServers.SourceServers[" + i + "].DataDisks[" + j + "].Parts[" + k + "].Device");
                        part.SizeBytes = context.LongValue("DescribeSourceServers.SourceServers[" + i + "].DataDisks[" + j + "].Parts[" + k + "].SizeBytes");
                        part.Need      = context.BooleanValue("DescribeSourceServers.SourceServers[" + i + "].DataDisks[" + j + "].Parts[" + k + "].Need");
                        part.CanBlock  = context.BooleanValue("DescribeSourceServers.SourceServers[" + i + "].DataDisks[" + j + "].Parts[" + k + "].CanBlock");

                        dataDisk_parts.Add(part);
                    }
                    dataDisk.Parts = dataDisk_parts;

                    sourceServer_dataDisks.Add(dataDisk);
                }
                sourceServer.DataDisks = sourceServer_dataDisks;

                List <DescribeSourceServersResponse.DescribeSourceServers_SourceServer.DescribeSourceServers_SystemDiskPart> sourceServer_systemDiskParts = new List <DescribeSourceServersResponse.DescribeSourceServers_SourceServer.DescribeSourceServers_SystemDiskPart>();
                for (int j = 0; j < context.Length("DescribeSourceServers.SourceServers[" + i + "].SystemDiskParts.Length"); j++)
                {
                    DescribeSourceServersResponse.DescribeSourceServers_SourceServer.DescribeSourceServers_SystemDiskPart systemDiskPart = new DescribeSourceServersResponse.DescribeSourceServers_SourceServer.DescribeSourceServers_SystemDiskPart();
                    systemDiskPart.Path      = context.StringValue("DescribeSourceServers.SourceServers[" + i + "].SystemDiskParts[" + j + "].Path");
                    systemDiskPart.Device    = context.StringValue("DescribeSourceServers.SourceServers[" + i + "].SystemDiskParts[" + j + "].Device");
                    systemDiskPart.SizeBytes = context.LongValue("DescribeSourceServers.SourceServers[" + i + "].SystemDiskParts[" + j + "].SizeBytes");
                    systemDiskPart.Need      = context.BooleanValue("DescribeSourceServers.SourceServers[" + i + "].SystemDiskParts[" + j + "].Need");
                    systemDiskPart.CanBlock  = context.BooleanValue("DescribeSourceServers.SourceServers[" + i + "].SystemDiskParts[" + j + "].CanBlock");

                    sourceServer_systemDiskParts.Add(systemDiskPart);
                }
                sourceServer.SystemDiskParts = sourceServer_systemDiskParts;

                describeSourceServersResponse_sourceServers.Add(sourceServer);
            }
            describeSourceServersResponse.SourceServers = describeSourceServersResponse_sourceServers;

            return(describeSourceServersResponse);
        }
        public static DescribeInstancesResponse Unmarshall(UnmarshallerContext context)
        {
			DescribeInstancesResponse describeInstancesResponse = new DescribeInstancesResponse();

			describeInstancesResponse.HttpResponse = context.HttpResponse;
			describeInstancesResponse.RequestId = context.StringValue("DescribeInstances.RequestId");
			describeInstancesResponse.PageNumber = context.IntegerValue("DescribeInstances.PageNumber");
			describeInstancesResponse.PageSize = context.IntegerValue("DescribeInstances.PageSize");
			describeInstancesResponse.TotalCount = context.IntegerValue("DescribeInstances.TotalCount");

			List<DescribeInstancesResponse.DescribeInstances_KVStoreInstance> describeInstancesResponse_instances = new List<DescribeInstancesResponse.DescribeInstances_KVStoreInstance>();
			for (int i = 0; i < context.Length("DescribeInstances.Instances.Length"); i++) {
				DescribeInstancesResponse.DescribeInstances_KVStoreInstance kVStoreInstance = new DescribeInstancesResponse.DescribeInstances_KVStoreInstance();
				kVStoreInstance.ReplacateId = context.StringValue("DescribeInstances.Instances["+ i +"].ReplacateId");
				kVStoreInstance.InstanceId = context.StringValue("DescribeInstances.Instances["+ i +"].InstanceId");
				kVStoreInstance.InstanceName = context.StringValue("DescribeInstances.Instances["+ i +"].InstanceName");
				kVStoreInstance.SearchKey = context.StringValue("DescribeInstances.Instances["+ i +"].SearchKey");
				kVStoreInstance.ConnectionDomain = context.StringValue("DescribeInstances.Instances["+ i +"].ConnectionDomain");
				kVStoreInstance.Port = context.LongValue("DescribeInstances.Instances["+ i +"].Port");
				kVStoreInstance.UserName = context.StringValue("DescribeInstances.Instances["+ i +"].UserName");
				kVStoreInstance.InstanceStatus = context.StringValue("DescribeInstances.Instances["+ i +"].InstanceStatus");
				kVStoreInstance.RegionId = context.StringValue("DescribeInstances.Instances["+ i +"].RegionId");
				kVStoreInstance.Capacity = context.LongValue("DescribeInstances.Instances["+ i +"].Capacity");
				kVStoreInstance.InstanceClass = context.StringValue("DescribeInstances.Instances["+ i +"].InstanceClass");
				kVStoreInstance.QPS = context.LongValue("DescribeInstances.Instances["+ i +"].QPS");
				kVStoreInstance.Bandwidth = context.LongValue("DescribeInstances.Instances["+ i +"].Bandwidth");
				kVStoreInstance.Connections = context.LongValue("DescribeInstances.Instances["+ i +"].Connections");
				kVStoreInstance.ZoneId = context.StringValue("DescribeInstances.Instances["+ i +"].ZoneId");
				kVStoreInstance.Config = context.StringValue("DescribeInstances.Instances["+ i +"].Config");
				kVStoreInstance.ChargeType = context.StringValue("DescribeInstances.Instances["+ i +"].ChargeType");
				kVStoreInstance.NetworkType = context.StringValue("DescribeInstances.Instances["+ i +"].NetworkType");
				kVStoreInstance.VpcId = context.StringValue("DescribeInstances.Instances["+ i +"].VpcId");
				kVStoreInstance.VSwitchId = context.StringValue("DescribeInstances.Instances["+ i +"].VSwitchId");
				kVStoreInstance.PrivateIp = context.StringValue("DescribeInstances.Instances["+ i +"].PrivateIp");
				kVStoreInstance.CreateTime = context.StringValue("DescribeInstances.Instances["+ i +"].CreateTime");
				kVStoreInstance.EndTime = context.StringValue("DescribeInstances.Instances["+ i +"].EndTime");
				kVStoreInstance.HasRenewChangeOrder = context.BooleanValue("DescribeInstances.Instances["+ i +"].HasRenewChangeOrder");
				kVStoreInstance.IsRds = context.BooleanValue("DescribeInstances.Instances["+ i +"].IsRds");
				kVStoreInstance.InstanceType = context.StringValue("DescribeInstances.Instances["+ i +"].InstanceType");
				kVStoreInstance.ArchitectureType = context.StringValue("DescribeInstances.Instances["+ i +"].ArchitectureType");
				kVStoreInstance.NodeType = context.StringValue("DescribeInstances.Instances["+ i +"].NodeType");
				kVStoreInstance.PackageType = context.StringValue("DescribeInstances.Instances["+ i +"].PackageType");
				kVStoreInstance.EngineVersion = context.StringValue("DescribeInstances.Instances["+ i +"].EngineVersion");
				kVStoreInstance.DestroyTime = context.StringValue("DescribeInstances.Instances["+ i +"].DestroyTime");
				kVStoreInstance.ConnectionMode = context.StringValue("DescribeInstances.Instances["+ i +"].ConnectionMode");
				kVStoreInstance.VpcCloudInstanceId = context.StringValue("DescribeInstances.Instances["+ i +"].VpcCloudInstanceId");
				kVStoreInstance.ResourceGroupId = context.StringValue("DescribeInstances.Instances["+ i +"].ResourceGroupId");

				List<DescribeInstancesResponse.DescribeInstances_KVStoreInstance.DescribeInstances_Tag> kVStoreInstance_tags = new List<DescribeInstancesResponse.DescribeInstances_KVStoreInstance.DescribeInstances_Tag>();
				for (int j = 0; j < context.Length("DescribeInstances.Instances["+ i +"].Tags.Length"); j++) {
					DescribeInstancesResponse.DescribeInstances_KVStoreInstance.DescribeInstances_Tag tag = new DescribeInstancesResponse.DescribeInstances_KVStoreInstance.DescribeInstances_Tag();
					tag.Key = context.StringValue("DescribeInstances.Instances["+ i +"].Tags["+ j +"].Key");
					tag._Value = context.StringValue("DescribeInstances.Instances["+ i +"].Tags["+ j +"].Value");

					kVStoreInstance_tags.Add(tag);
				}
				kVStoreInstance.Tags = kVStoreInstance_tags;

				describeInstancesResponse_instances.Add(kVStoreInstance);
			}
			describeInstancesResponse.Instances = describeInstancesResponse_instances;
        
			return describeInstancesResponse;
        }
        public static CreateJobGroupResponse Unmarshall(UnmarshallerContext _ctx)
        {
            CreateJobGroupResponse createJobGroupResponse = new CreateJobGroupResponse();

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

            CreateJobGroupResponse.CreateJobGroup_JobGroup jobGroup = new CreateJobGroupResponse.CreateJobGroup_JobGroup();
            jobGroup.JobGroupId          = _ctx.StringValue("CreateJobGroup.JobGroup.JobGroupId");
            jobGroup.JobGroupName        = _ctx.StringValue("CreateJobGroup.JobGroup.JobGroupName");
            jobGroup.JobGroupDescription = _ctx.StringValue("CreateJobGroup.JobGroup.JobGroupDescription");
            jobGroup.ScenarioId          = _ctx.StringValue("CreateJobGroup.JobGroup.ScenarioId");
            jobGroup.JobFilePath         = _ctx.StringValue("CreateJobGroup.JobGroup.JobFilePath");
            jobGroup.CreationTime        = _ctx.LongValue("CreateJobGroup.JobGroup.CreationTime");

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

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

            CreateJobGroupResponse.CreateJobGroup_JobGroup.CreateJobGroup_Strategy strategy = new CreateJobGroupResponse.CreateJobGroup_JobGroup.CreateJobGroup_Strategy();
            strategy.StrategyId          = _ctx.StringValue("CreateJobGroup.JobGroup.Strategy.StrategyId");
            strategy.StrategyName        = _ctx.StringValue("CreateJobGroup.JobGroup.Strategy.StrategyName");
            strategy.StrategyDescription = _ctx.StringValue("CreateJobGroup.JobGroup.Strategy.StrategyDescription");
            strategy.Type               = _ctx.StringValue("CreateJobGroup.JobGroup.Strategy.Type");
            strategy.StartTime          = _ctx.LongValue("CreateJobGroup.JobGroup.Strategy.StartTime");
            strategy.EndTime            = _ctx.LongValue("CreateJobGroup.JobGroup.Strategy.EndTime");
            strategy.RepeatBy           = _ctx.StringValue("CreateJobGroup.JobGroup.Strategy.RepeatBy");
            strategy.MaxAttemptsPerDay  = _ctx.IntegerValue("CreateJobGroup.JobGroup.Strategy.MaxAttemptsPerDay");
            strategy.MinAttemptInterval = _ctx.IntegerValue("CreateJobGroup.JobGroup.Strategy.MinAttemptInterval");
            strategy.Customized         = _ctx.StringValue("CreateJobGroup.JobGroup.Strategy.Customized");
            strategy.RoutingStrategy    = _ctx.StringValue("CreateJobGroup.JobGroup.Strategy.RoutingStrategy");
            strategy.FollowUpStrategy   = _ctx.StringValue("CreateJobGroup.JobGroup.Strategy.FollowUpStrategy");
            strategy.IsTemplate         = _ctx.BooleanValue("CreateJobGroup.JobGroup.Strategy.IsTemplate");

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

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

            List <CreateJobGroupResponse.CreateJobGroup_JobGroup.CreateJobGroup_Strategy.CreateJobGroup_TimeFrame> strategy_workingTime = new List <CreateJobGroupResponse.CreateJobGroup_JobGroup.CreateJobGroup_Strategy.CreateJobGroup_TimeFrame>();

            for (int i = 0; i < _ctx.Length("CreateJobGroup.JobGroup.Strategy.WorkingTime.Length"); i++)
            {
                CreateJobGroupResponse.CreateJobGroup_JobGroup.CreateJobGroup_Strategy.CreateJobGroup_TimeFrame timeFrame = new CreateJobGroupResponse.CreateJobGroup_JobGroup.CreateJobGroup_Strategy.CreateJobGroup_TimeFrame();
                timeFrame.From = _ctx.StringValue("CreateJobGroup.JobGroup.Strategy.WorkingTime[" + i + "].From");
                timeFrame.To   = _ctx.StringValue("CreateJobGroup.JobGroup.Strategy.WorkingTime[" + i + "].To");

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

            return(createJobGroupResponse);
        }
        public static DescribeAvailableResourceResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeAvailableResourceResponse describeAvailableResourceResponse = new DescribeAvailableResourceResponse();

            describeAvailableResourceResponse.HttpResponse = _ctx.HttpResponse;
            describeAvailableResourceResponse.RequestId    = _ctx.StringValue("DescribeAvailableResource.RequestId");

            List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone> describeAvailableResourceResponse_availableZones = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone>();

            for (int i = 0; i < _ctx.Length("DescribeAvailableResource.AvailableZones.Length"); i++)
            {
                DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone availableZone = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone();
                availableZone.RegionId     = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].RegionId");
                availableZone.ZoneId       = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].ZoneId");
                availableZone.Status       = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].Status");
                availableZone.NetworkTypes = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].NetworkTypes");

                List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine> availableZone_supportedEngines = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine>();
                for (int j = 0; j < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines.Length"); j++)
                {
                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine supportedEngine = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine();
                    supportedEngine.Engine = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].Engine");

                    List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion> supportedEngine_supportedEngineVersions = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion>();
                    for (int k = 0; k < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions.Length"); k++)
                    {
                        DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion supportedEngineVersion = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion();
                        supportedEngineVersion.Version = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].Version");

                        List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory> supportedEngineVersion_supportedCategorys = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory>();
                        for (int l = 0; l < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategorys.Length"); l++)
                        {
                            DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory supportedCategory = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory();
                            supportedCategory.Category = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategorys[" + l + "].Category");

                            List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory.DescribeAvailableResource_SupportedStorageType> supportedCategory_supportedStorageTypes = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory.DescribeAvailableResource_SupportedStorageType>();
                            for (int m = 0; m < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategorys[" + l + "].SupportedStorageTypes.Length"); m++)
                            {
                                DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory.DescribeAvailableResource_SupportedStorageType supportedStorageType = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory.DescribeAvailableResource_SupportedStorageType();
                                supportedStorageType.StorageType = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategorys[" + l + "].SupportedStorageTypes[" + m + "].StorageType");

                                List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_AvailableResource> supportedStorageType_availableResources = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_AvailableResource>();
                                for (int n = 0; n < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategorys[" + l + "].SupportedStorageTypes[" + m + "].AvailableResources.Length"); n++)
                                {
                                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_AvailableResource availableResource = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_AvailableResource();
                                    availableResource.DBInstanceClass = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategorys[" + l + "].SupportedStorageTypes[" + m + "].AvailableResources[" + n + "].DBInstanceClass");
                                    availableResource.StorageRange    = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategorys[" + l + "].SupportedStorageTypes[" + m + "].AvailableResources[" + n + "].StorageRange");

                                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_AvailableResource.DescribeAvailableResource_DBInstanceStorageRange dBInstanceStorageRange = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_AvailableResource.DescribeAvailableResource_DBInstanceStorageRange();
                                    dBInstanceStorageRange.Max  = _ctx.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategorys[" + l + "].SupportedStorageTypes[" + m + "].AvailableResources[" + n + "].DBInstanceStorageRange.Max");
                                    dBInstanceStorageRange.Min  = _ctx.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategorys[" + l + "].SupportedStorageTypes[" + m + "].AvailableResources[" + n + "].DBInstanceStorageRange.Min");
                                    dBInstanceStorageRange.Step = _ctx.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategorys[" + l + "].SupportedStorageTypes[" + m + "].AvailableResources[" + n + "].DBInstanceStorageRange.Step");
                                    availableResource.DBInstanceStorageRange = dBInstanceStorageRange;

                                    supportedStorageType_availableResources.Add(availableResource);
                                }
                                supportedStorageType.AvailableResources = supportedStorageType_availableResources;

                                supportedCategory_supportedStorageTypes.Add(supportedStorageType);
                            }
                            supportedCategory.SupportedStorageTypes = supportedCategory_supportedStorageTypes;

                            supportedEngineVersion_supportedCategorys.Add(supportedCategory);
                        }
                        supportedEngineVersion.SupportedCategorys = supportedEngineVersion_supportedCategorys;

                        supportedEngine_supportedEngineVersions.Add(supportedEngineVersion);
                    }
                    supportedEngine.SupportedEngineVersions = supportedEngine_supportedEngineVersions;

                    availableZone_supportedEngines.Add(supportedEngine);
                }
                availableZone.SupportedEngines = availableZone_supportedEngines;

                describeAvailableResourceResponse_availableZones.Add(availableZone);
            }
            describeAvailableResourceResponse.AvailableZones = describeAvailableResourceResponse_availableZones;

            return(describeAvailableResourceResponse);
        }
Exemplo n.º 47
0
        public static ListRemindsResponse Unmarshall(UnmarshallerContext _ctx)
        {
            ListRemindsResponse listRemindsResponse = new ListRemindsResponse();

            listRemindsResponse.HttpResponse   = _ctx.HttpResponse;
            listRemindsResponse.Success        = _ctx.BooleanValue("ListReminds.Success");
            listRemindsResponse.ErrorCode      = _ctx.StringValue("ListReminds.ErrorCode");
            listRemindsResponse.ErrorMessage   = _ctx.StringValue("ListReminds.ErrorMessage");
            listRemindsResponse.HttpStatusCode = _ctx.IntegerValue("ListReminds.HttpStatusCode");
            listRemindsResponse.RequestId      = _ctx.StringValue("ListReminds.RequestId");

            ListRemindsResponse.ListReminds_Data data = new ListRemindsResponse.ListReminds_Data();
            data.PageNumber = _ctx.IntegerValue("ListReminds.Data.PageNumber");
            data.PageSize   = _ctx.IntegerValue("ListReminds.Data.PageSize");
            data.TotalCount = _ctx.IntegerValue("ListReminds.Data.TotalCount");

            List <ListRemindsResponse.ListReminds_Data.ListReminds_RemindsItem> data_reminds = new List <ListRemindsResponse.ListReminds_Data.ListReminds_RemindsItem>();

            for (int i = 0; i < _ctx.Length("ListReminds.Data.Reminds.Length"); i++)
            {
                ListRemindsResponse.ListReminds_Data.ListReminds_RemindsItem remindsItem = new ListRemindsResponse.ListReminds_Data.ListReminds_RemindsItem();
                remindsItem.RemindId   = _ctx.LongValue("ListReminds.Data.Reminds[" + i + "].RemindId");
                remindsItem.RemindName = _ctx.StringValue("ListReminds.Data.Reminds[" + i + "].RemindName");
                remindsItem.DndStart   = _ctx.StringValue("ListReminds.Data.Reminds[" + i + "].DndStart");
                remindsItem.DndEnd     = _ctx.StringValue("ListReminds.Data.Reminds[" + i + "].DndEnd");
                remindsItem.RemindUnit = _ctx.StringValue("ListReminds.Data.Reminds[" + i + "].RemindUnit");
                remindsItem.RemindType = _ctx.StringValue("ListReminds.Data.Reminds[" + i + "].RemindType");
                remindsItem.AlertUnit  = _ctx.StringValue("ListReminds.Data.Reminds[" + i + "].AlertUnit");
                remindsItem.Useflag    = _ctx.BooleanValue("ListReminds.Data.Reminds[" + i + "].Useflag");
                remindsItem.Founder    = _ctx.StringValue("ListReminds.Data.Reminds[" + i + "].Founder");

                List <string> remindsItem_nodeIds = new List <string>();
                for (int j = 0; j < _ctx.Length("ListReminds.Data.Reminds[" + i + "].NodeIds.Length"); j++)
                {
                    remindsItem_nodeIds.Add(_ctx.StringValue("ListReminds.Data.Reminds[" + i + "].NodeIds[" + j + "]"));
                }
                remindsItem.NodeIds = remindsItem_nodeIds;

                List <string> remindsItem_baselineIds = new List <string>();
                for (int j = 0; j < _ctx.Length("ListReminds.Data.Reminds[" + i + "].BaselineIds.Length"); j++)
                {
                    remindsItem_baselineIds.Add(_ctx.StringValue("ListReminds.Data.Reminds[" + i + "].BaselineIds[" + j + "]"));
                }
                remindsItem.BaselineIds = remindsItem_baselineIds;

                List <string> remindsItem_projectIds = new List <string>();
                for (int j = 0; j < _ctx.Length("ListReminds.Data.Reminds[" + i + "].ProjectIds.Length"); j++)
                {
                    remindsItem_projectIds.Add(_ctx.StringValue("ListReminds.Data.Reminds[" + i + "].ProjectIds[" + j + "]"));
                }
                remindsItem.ProjectIds = remindsItem_projectIds;

                List <string> remindsItem_bizProcessIds = new List <string>();
                for (int j = 0; j < _ctx.Length("ListReminds.Data.Reminds[" + i + "].BizProcessIds.Length"); j++)
                {
                    remindsItem_bizProcessIds.Add(_ctx.StringValue("ListReminds.Data.Reminds[" + i + "].BizProcessIds[" + j + "]"));
                }
                remindsItem.BizProcessIds = remindsItem_bizProcessIds;

                List <string> remindsItem_alertMethods = new List <string>();
                for (int j = 0; j < _ctx.Length("ListReminds.Data.Reminds[" + i + "].AlertMethods.Length"); j++)
                {
                    remindsItem_alertMethods.Add(_ctx.StringValue("ListReminds.Data.Reminds[" + i + "].AlertMethods[" + j + "]"));
                }
                remindsItem.AlertMethods = remindsItem_alertMethods;

                List <string> remindsItem_alertTargets = new List <string>();
                for (int j = 0; j < _ctx.Length("ListReminds.Data.Reminds[" + i + "].AlertTargets.Length"); j++)
                {
                    remindsItem_alertTargets.Add(_ctx.StringValue("ListReminds.Data.Reminds[" + i + "].AlertTargets[" + j + "]"));
                }
                remindsItem.AlertTargets = remindsItem_alertTargets;

                data_reminds.Add(remindsItem);
            }
            data.Reminds             = data_reminds;
            listRemindsResponse.Data = data;

            return(listRemindsResponse);
        }
Exemplo n.º 48
0
        public static DescribeLoadBalancerTCPListenerAttributeResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeLoadBalancerTCPListenerAttributeResponse describeLoadBalancerTCPListenerAttributeResponse = new DescribeLoadBalancerTCPListenerAttributeResponse();

            describeLoadBalancerTCPListenerAttributeResponse.HttpResponse              = context.HttpResponse;
            describeLoadBalancerTCPListenerAttributeResponse.RequestId                 = context.StringValue("DescribeLoadBalancerTCPListenerAttribute.RequestId");
            describeLoadBalancerTCPListenerAttributeResponse.ListenerPort              = context.IntegerValue("DescribeLoadBalancerTCPListenerAttribute.ListenerPort");
            describeLoadBalancerTCPListenerAttributeResponse.BackendServerPort         = context.IntegerValue("DescribeLoadBalancerTCPListenerAttribute.BackendServerPort");
            describeLoadBalancerTCPListenerAttributeResponse.Status                    = context.StringValue("DescribeLoadBalancerTCPListenerAttribute.Status");
            describeLoadBalancerTCPListenerAttributeResponse.Bandwidth                 = context.IntegerValue("DescribeLoadBalancerTCPListenerAttribute.Bandwidth");
            describeLoadBalancerTCPListenerAttributeResponse.Scheduler                 = context.StringValue("DescribeLoadBalancerTCPListenerAttribute.Scheduler");
            describeLoadBalancerTCPListenerAttributeResponse.SynProxy                  = context.StringValue("DescribeLoadBalancerTCPListenerAttribute.SynProxy");
            describeLoadBalancerTCPListenerAttributeResponse.PersistenceTimeout        = context.IntegerValue("DescribeLoadBalancerTCPListenerAttribute.PersistenceTimeout");
            describeLoadBalancerTCPListenerAttributeResponse.HealthCheck               = context.StringValue("DescribeLoadBalancerTCPListenerAttribute.HealthCheck");
            describeLoadBalancerTCPListenerAttributeResponse.HealthyThreshold          = context.IntegerValue("DescribeLoadBalancerTCPListenerAttribute.HealthyThreshold");
            describeLoadBalancerTCPListenerAttributeResponse.UnhealthyThreshold        = context.IntegerValue("DescribeLoadBalancerTCPListenerAttribute.UnhealthyThreshold");
            describeLoadBalancerTCPListenerAttributeResponse.HealthCheckConnectTimeout = context.IntegerValue("DescribeLoadBalancerTCPListenerAttribute.HealthCheckConnectTimeout");
            describeLoadBalancerTCPListenerAttributeResponse.HealthCheckConnectPort    = context.IntegerValue("DescribeLoadBalancerTCPListenerAttribute.HealthCheckConnectPort");
            describeLoadBalancerTCPListenerAttributeResponse.HealthCheckInterval       = context.IntegerValue("DescribeLoadBalancerTCPListenerAttribute.HealthCheckInterval");
            describeLoadBalancerTCPListenerAttributeResponse.HealthCheckHttpCode       = context.StringValue("DescribeLoadBalancerTCPListenerAttribute.HealthCheckHttpCode");
            describeLoadBalancerTCPListenerAttributeResponse.HealthCheckDomain         = context.StringValue("DescribeLoadBalancerTCPListenerAttribute.HealthCheckDomain");
            describeLoadBalancerTCPListenerAttributeResponse.HealthCheckURI            = context.StringValue("DescribeLoadBalancerTCPListenerAttribute.HealthCheckURI");
            describeLoadBalancerTCPListenerAttributeResponse.HealthCheckType           = context.StringValue("DescribeLoadBalancerTCPListenerAttribute.HealthCheckType");
            describeLoadBalancerTCPListenerAttributeResponse.MaxConnection             = context.IntegerValue("DescribeLoadBalancerTCPListenerAttribute.MaxConnection");
            describeLoadBalancerTCPListenerAttributeResponse.VServerGroupId            = context.StringValue("DescribeLoadBalancerTCPListenerAttribute.VServerGroupId");

            return(describeLoadBalancerTCPListenerAttributeResponse);
        }
Exemplo n.º 49
0
        public static ListScenarioTemplatesResponse Unmarshall(UnmarshallerContext context)
        {
            ListScenarioTemplatesResponse listScenarioTemplatesResponse = new ListScenarioTemplatesResponse();

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

            List <ListScenarioTemplatesResponse.ListScenarioTemplates_Scenario> listScenarioTemplatesResponse_scenarioTemplates = new List <ListScenarioTemplatesResponse.ListScenarioTemplates_Scenario>();

            for (int i = 0; i < context.Length("ListScenarioTemplates.ScenarioTemplates.Length"); i++)
            {
                ListScenarioTemplatesResponse.ListScenarioTemplates_Scenario scenario = new ListScenarioTemplatesResponse.ListScenarioTemplates_Scenario();
                scenario.Id          = context.StringValue("ListScenarioTemplates.ScenarioTemplates[" + i + "].Id");
                scenario.Name        = context.StringValue("ListScenarioTemplates.ScenarioTemplates[" + i + "].Name");
                scenario.Description = context.StringValue("ListScenarioTemplates.ScenarioTemplates[" + i + "].Description");
                scenario.Type        = context.StringValue("ListScenarioTemplates.ScenarioTemplates[" + i + "].Type");
                scenario.IsTemplate  = context.BooleanValue("ListScenarioTemplates.ScenarioTemplates[" + i + "].IsTemplate");

                List <ListScenarioTemplatesResponse.ListScenarioTemplates_Scenario.ListScenarioTemplates_Survey> scenario_surveys = new List <ListScenarioTemplatesResponse.ListScenarioTemplates_Scenario.ListScenarioTemplates_Survey>();
                for (int j = 0; j < context.Length("ListScenarioTemplates.ScenarioTemplates[" + i + "].Surveys.Length"); j++)
                {
                    ListScenarioTemplatesResponse.ListScenarioTemplates_Scenario.ListScenarioTemplates_Survey survey = new ListScenarioTemplatesResponse.ListScenarioTemplates_Scenario.ListScenarioTemplates_Survey();
                    survey.Id              = context.StringValue("ListScenarioTemplates.ScenarioTemplates[" + i + "].Surveys[" + j + "].Id");
                    survey.Name            = context.StringValue("ListScenarioTemplates.ScenarioTemplates[" + i + "].Surveys[" + j + "].Name");
                    survey.Description     = context.StringValue("ListScenarioTemplates.ScenarioTemplates[" + i + "].Surveys[" + j + "].Description");
                    survey.Role            = context.StringValue("ListScenarioTemplates.ScenarioTemplates[" + i + "].Surveys[" + j + "].Role");
                    survey.Round           = context.IntegerValue("ListScenarioTemplates.ScenarioTemplates[" + i + "].Surveys[" + j + "].Round");
                    survey.BeebotId        = context.StringValue("ListScenarioTemplates.ScenarioTemplates[" + i + "].Surveys[" + j + "].BeebotId");
                    survey.GlobalQuestions = context.StringValue("ListScenarioTemplates.ScenarioTemplates[" + i + "].Surveys[" + j + "].GlobalQuestions");

                    ListScenarioTemplatesResponse.ListScenarioTemplates_Scenario.ListScenarioTemplates_Survey.ListScenarioTemplates_Flow flow = new ListScenarioTemplatesResponse.ListScenarioTemplates_Scenario.ListScenarioTemplates_Survey.ListScenarioTemplates_Flow();
                    flow.FlowId      = context.StringValue("ListScenarioTemplates.ScenarioTemplates[" + i + "].Surveys[" + j + "].Flow.FlowId");
                    flow.IsPublished = context.BooleanValue("ListScenarioTemplates.ScenarioTemplates[" + i + "].Surveys[" + j + "].Flow.IsPublished");
                    flow.FlowJson    = context.StringValue("ListScenarioTemplates.ScenarioTemplates[" + i + "].Surveys[" + j + "].Flow.FlowJson");
                    survey.Flow      = flow;

                    List <ListScenarioTemplatesResponse.ListScenarioTemplates_Scenario.ListScenarioTemplates_Survey.ListScenarioTemplates_IntentNode> survey_intents = new List <ListScenarioTemplatesResponse.ListScenarioTemplates_Scenario.ListScenarioTemplates_Survey.ListScenarioTemplates_IntentNode>();
                    for (int k = 0; k < context.Length("ListScenarioTemplates.ScenarioTemplates[" + i + "].Surveys[" + j + "].Intents.Length"); k++)
                    {
                        ListScenarioTemplatesResponse.ListScenarioTemplates_Scenario.ListScenarioTemplates_Survey.ListScenarioTemplates_IntentNode intentNode = new ListScenarioTemplatesResponse.ListScenarioTemplates_Scenario.ListScenarioTemplates_Survey.ListScenarioTemplates_IntentNode();
                        intentNode.NodeId   = context.StringValue("ListScenarioTemplates.ScenarioTemplates[" + i + "].Surveys[" + j + "].Intents[" + k + "].NodeId");
                        intentNode.IntentId = context.StringValue("ListScenarioTemplates.ScenarioTemplates[" + i + "].Surveys[" + j + "].Intents[" + k + "].IntentId");

                        survey_intents.Add(intentNode);
                    }
                    survey.Intents = survey_intents;

                    scenario_surveys.Add(survey);
                }
                scenario.Surveys = scenario_surveys;

                List <ListScenarioTemplatesResponse.ListScenarioTemplates_Scenario.ListScenarioTemplates_KeyValuePair> scenario_variables = new List <ListScenarioTemplatesResponse.ListScenarioTemplates_Scenario.ListScenarioTemplates_KeyValuePair>();
                for (int j = 0; j < context.Length("ListScenarioTemplates.ScenarioTemplates[" + i + "].Variables.Length"); j++)
                {
                    ListScenarioTemplatesResponse.ListScenarioTemplates_Scenario.ListScenarioTemplates_KeyValuePair keyValuePair = new ListScenarioTemplatesResponse.ListScenarioTemplates_Scenario.ListScenarioTemplates_KeyValuePair();
                    keyValuePair.Key    = context.StringValue("ListScenarioTemplates.ScenarioTemplates[" + i + "].Variables[" + j + "].Key");
                    keyValuePair._Value = context.StringValue("ListScenarioTemplates.ScenarioTemplates[" + i + "].Variables[" + j + "].Value");

                    scenario_variables.Add(keyValuePair);
                }
                scenario.Variables = scenario_variables;

                listScenarioTemplatesResponse_scenarioTemplates.Add(scenario);
            }
            listScenarioTemplatesResponse.ScenarioTemplates = listScenarioTemplatesResponse_scenarioTemplates;

            return(listScenarioTemplatesResponse);
        }
Exemplo n.º 50
0
        public static DetectFaceResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DetectFaceResponse detectFaceResponse = new DetectFaceResponse();

            detectFaceResponse.HttpResponse = _ctx.HttpResponse;
            detectFaceResponse.RequestId    = _ctx.StringValue("DetectFace.RequestId");

            DetectFaceResponse.DetectFace_Data data = new DetectFaceResponse.DetectFace_Data();
            data.LandmarkCount = _ctx.IntegerValue("DetectFace.Data.LandmarkCount");
            data.FaceCount     = _ctx.IntegerValue("DetectFace.Data.FaceCount");

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

            for (int i = 0; i < _ctx.Length("DetectFace.Data.FaceProbabilityList.Length"); i++)
            {
                data_faceProbabilityList.Add(_ctx.StringValue("DetectFace.Data.FaceProbabilityList[" + i + "]"));
            }
            data.FaceProbabilityList = data_faceProbabilityList;

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

            for (int i = 0; i < _ctx.Length("DetectFace.Data.FaceRectangles.Length"); i++)
            {
                data_faceRectangles.Add(_ctx.StringValue("DetectFace.Data.FaceRectangles[" + i + "]"));
            }
            data.FaceRectangles = data_faceRectangles;

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

            for (int i = 0; i < _ctx.Length("DetectFace.Data.Landmarks.Length"); i++)
            {
                data_landmarks.Add(_ctx.StringValue("DetectFace.Data.Landmarks[" + i + "]"));
            }
            data.Landmarks = data_landmarks;

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

            for (int i = 0; i < _ctx.Length("DetectFace.Data.PoseList.Length"); i++)
            {
                data_poseList.Add(_ctx.StringValue("DetectFace.Data.PoseList[" + i + "]"));
            }
            data.PoseList = data_poseList;

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

            for (int i = 0; i < _ctx.Length("DetectFace.Data.Pupils.Length"); i++)
            {
                data_pupils.Add(_ctx.StringValue("DetectFace.Data.Pupils[" + i + "]"));
            }
            data.Pupils = data_pupils;

            DetectFaceResponse.DetectFace_Data.DetectFace_Qualities qualities = new DetectFaceResponse.DetectFace_Data.DetectFace_Qualities();

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

            for (int i = 0; i < _ctx.Length("DetectFace.Data.Qualities.NoiseList.Length"); i++)
            {
                qualities_noiseList.Add(_ctx.StringValue("DetectFace.Data.Qualities.NoiseList[" + i + "]"));
            }
            qualities.NoiseList = qualities_noiseList;

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

            for (int i = 0; i < _ctx.Length("DetectFace.Data.Qualities.ScoreList.Length"); i++)
            {
                qualities_scoreList.Add(_ctx.StringValue("DetectFace.Data.Qualities.ScoreList[" + i + "]"));
            }
            qualities.ScoreList = qualities_scoreList;

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

            for (int i = 0; i < _ctx.Length("DetectFace.Data.Qualities.BlurList.Length"); i++)
            {
                qualities_blurList.Add(_ctx.StringValue("DetectFace.Data.Qualities.BlurList[" + i + "]"));
            }
            qualities.BlurList = qualities_blurList;

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

            for (int i = 0; i < _ctx.Length("DetectFace.Data.Qualities.MaskList.Length"); i++)
            {
                qualities_maskList.Add(_ctx.StringValue("DetectFace.Data.Qualities.MaskList[" + i + "]"));
            }
            qualities.MaskList = qualities_maskList;

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

            for (int i = 0; i < _ctx.Length("DetectFace.Data.Qualities.GlassList.Length"); i++)
            {
                qualities_glassList.Add(_ctx.StringValue("DetectFace.Data.Qualities.GlassList[" + i + "]"));
            }
            qualities.GlassList = qualities_glassList;

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

            for (int i = 0; i < _ctx.Length("DetectFace.Data.Qualities.FnfList.Length"); i++)
            {
                qualities_fnfList.Add(_ctx.StringValue("DetectFace.Data.Qualities.FnfList[" + i + "]"));
            }
            qualities.FnfList = qualities_fnfList;

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

            for (int i = 0; i < _ctx.Length("DetectFace.Data.Qualities.PoseList.Length"); i++)
            {
                qualities_poseList1.Add(_ctx.StringValue("DetectFace.Data.Qualities.PoseList[" + i + "]"));
            }
            qualities.PoseList1 = qualities_poseList1;

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

            for (int i = 0; i < _ctx.Length("DetectFace.Data.Qualities.IlluList.Length"); i++)
            {
                qualities_illuList.Add(_ctx.StringValue("DetectFace.Data.Qualities.IlluList[" + i + "]"));
            }
            qualities.IlluList      = qualities_illuList;
            data.Qualities          = qualities;
            detectFaceResponse.Data = data;

            return(detectFaceResponse);
        }
Exemplo n.º 51
0
        public static DescribeNavigationConfigResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeNavigationConfigResponse describeNavigationConfigResponse = new DescribeNavigationConfigResponse();

            describeNavigationConfigResponse.HttpResponse = context.HttpResponse;
            describeNavigationConfigResponse.RequestId    = context.StringValue("DescribeNavigationConfig.RequestId");

            DescribeNavigationConfigResponse.DescribeNavigationConfig_GreetingConfig greetingConfig = new DescribeNavigationConfigResponse.DescribeNavigationConfig_GreetingConfig();
            greetingConfig.GreetingWords = context.StringValue("DescribeNavigationConfig.GreetingConfig.GreetingWords");
            greetingConfig.SourceType    = context.StringValue("DescribeNavigationConfig.GreetingConfig.SourceType");
            greetingConfig.IntentTrigger = context.StringValue("DescribeNavigationConfig.GreetingConfig.IntentTrigger");
            describeNavigationConfigResponse.GreetingConfig = greetingConfig;

            DescribeNavigationConfigResponse.DescribeNavigationConfig_UnrecognizingConfig unrecognizingConfig = new DescribeNavigationConfigResponse.DescribeNavigationConfig_UnrecognizingConfig();
            unrecognizingConfig.Prompt            = context.StringValue("DescribeNavigationConfig.UnrecognizingConfig.Prompt");
            unrecognizingConfig.Threshold         = context.IntegerValue("DescribeNavigationConfig.UnrecognizingConfig.Threshold");
            unrecognizingConfig.FinalPrompt       = context.StringValue("DescribeNavigationConfig.UnrecognizingConfig.FinalPrompt");
            unrecognizingConfig.FinalAction       = context.StringValue("DescribeNavigationConfig.UnrecognizingConfig.FinalAction");
            unrecognizingConfig.FinalActionParams = context.StringValue("DescribeNavigationConfig.UnrecognizingConfig.FinalActionParams");
            describeNavigationConfigResponse.UnrecognizingConfig = unrecognizingConfig;

            DescribeNavigationConfigResponse.DescribeNavigationConfig_RepeatingConfig repeatingConfig = new DescribeNavigationConfigResponse.DescribeNavigationConfig_RepeatingConfig();

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

            for (int i = 0; i < context.Length("DescribeNavigationConfig.RepeatingConfig.Utterances.Length"); i++)
            {
                repeatingConfig_utterances.Add(context.StringValue("DescribeNavigationConfig.RepeatingConfig.Utterances[" + i + "]"));
            }
            repeatingConfig.Utterances = repeatingConfig_utterances;
            describeNavigationConfigResponse.RepeatingConfig = repeatingConfig;

            DescribeNavigationConfigResponse.DescribeNavigationConfig_AskingBackConfig askingBackConfig = new DescribeNavigationConfigResponse.DescribeNavigationConfig_AskingBackConfig();
            askingBackConfig.Enabled = context.BooleanValue("DescribeNavigationConfig.AskingBackConfig.Enabled");
            askingBackConfig.Prompt  = context.StringValue("DescribeNavigationConfig.AskingBackConfig.Prompt");
            askingBackConfig.EnableNegativeFeedback       = context.BooleanValue("DescribeNavigationConfig.AskingBackConfig.EnableNegativeFeedback");
            askingBackConfig.NegativeFeedbackPrompt       = context.StringValue("DescribeNavigationConfig.AskingBackConfig.NegativeFeedbackPrompt");
            askingBackConfig.NegativeFeedbackAction       = context.StringValue("DescribeNavigationConfig.AskingBackConfig.NegativeFeedbackAction");
            askingBackConfig.NegativeFeedbackActionParams = context.StringValue("DescribeNavigationConfig.AskingBackConfig.NegativeFeedbackActionParams");

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

            for (int i = 0; i < context.Length("DescribeNavigationConfig.AskingBackConfig.NegativeFeedbackUtterances.Length"); i++)
            {
                askingBackConfig_negativeFeedbackUtterances.Add(context.StringValue("DescribeNavigationConfig.AskingBackConfig.NegativeFeedbackUtterances[" + i + "]"));
            }
            askingBackConfig.NegativeFeedbackUtterances       = askingBackConfig_negativeFeedbackUtterances;
            describeNavigationConfigResponse.AskingBackConfig = askingBackConfig;

            DescribeNavigationConfigResponse.DescribeNavigationConfig_ComplainingConfig complainingConfig = new DescribeNavigationConfigResponse.DescribeNavigationConfig_ComplainingConfig();
            complainingConfig.Prompt            = context.StringValue("DescribeNavigationConfig.ComplainingConfig.Prompt");
            complainingConfig.FinalAction       = context.StringValue("DescribeNavigationConfig.ComplainingConfig.FinalAction");
            complainingConfig.FinalActionParams = context.StringValue("DescribeNavigationConfig.ComplainingConfig.FinalActionParams");

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

            for (int i = 0; i < context.Length("DescribeNavigationConfig.ComplainingConfig.Utterances.Length"); i++)
            {
                complainingConfig_utterances1.Add(context.StringValue("DescribeNavigationConfig.ComplainingConfig.Utterances[" + i + "]"));
            }
            complainingConfig.Utterances1 = complainingConfig_utterances1;
            describeNavigationConfigResponse.ComplainingConfig = complainingConfig;

            DescribeNavigationConfigResponse.DescribeNavigationConfig_SilenceTimeoutConfig silenceTimeoutConfig = new DescribeNavigationConfigResponse.DescribeNavigationConfig_SilenceTimeoutConfig();
            silenceTimeoutConfig.Prompt            = context.StringValue("DescribeNavigationConfig.SilenceTimeoutConfig.Prompt");
            silenceTimeoutConfig.Timeout           = context.LongValue("DescribeNavigationConfig.SilenceTimeoutConfig.Timeout");
            silenceTimeoutConfig.Threshold         = context.IntegerValue("DescribeNavigationConfig.SilenceTimeoutConfig.Threshold");
            silenceTimeoutConfig.FinalPrompt       = context.StringValue("DescribeNavigationConfig.SilenceTimeoutConfig.FinalPrompt");
            silenceTimeoutConfig.FinalAction       = context.StringValue("DescribeNavigationConfig.SilenceTimeoutConfig.FinalAction");
            silenceTimeoutConfig.FinalActionParams = context.StringValue("DescribeNavigationConfig.SilenceTimeoutConfig.FinalActionParams");
            silenceTimeoutConfig.SourceType        = context.StringValue("DescribeNavigationConfig.SilenceTimeoutConfig.SourceType");
            silenceTimeoutConfig.IntentTrigger     = context.StringValue("DescribeNavigationConfig.SilenceTimeoutConfig.IntentTrigger");
            describeNavigationConfigResponse.SilenceTimeoutConfig = silenceTimeoutConfig;

            return(describeNavigationConfigResponse);
        }
Exemplo n.º 52
0
        public static DescribeGatewayFileSharesResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeGatewayFileSharesResponse describeGatewayFileSharesResponse = new DescribeGatewayFileSharesResponse();

            describeGatewayFileSharesResponse.HttpResponse = _ctx.HttpResponse;
            describeGatewayFileSharesResponse.Message      = _ctx.StringValue("DescribeGatewayFileShares.Message");
            describeGatewayFileSharesResponse.RequestId    = _ctx.StringValue("DescribeGatewayFileShares.RequestId");
            describeGatewayFileSharesResponse.Code         = _ctx.StringValue("DescribeGatewayFileShares.Code");
            describeGatewayFileSharesResponse.Success      = _ctx.BooleanValue("DescribeGatewayFileShares.Success");

            List <DescribeGatewayFileSharesResponse.DescribeGatewayFileShares_FileShare> describeGatewayFileSharesResponse_fileShares = new List <DescribeGatewayFileSharesResponse.DescribeGatewayFileShares_FileShare>();

            for (int i = 0; i < _ctx.Length("DescribeGatewayFileShares.FileShares.Length"); i++)
            {
                DescribeGatewayFileSharesResponse.DescribeGatewayFileShares_FileShare fileShare = new DescribeGatewayFileSharesResponse.DescribeGatewayFileShares_FileShare();
                fileShare.SerialNumber           = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].SerialNumber");
                fileShare.ClientSideCmk          = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].ClientSideCmk");
                fileShare.PartialSyncPaths       = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].PartialSyncPaths");
                fileShare.PathPrefix             = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].PathPrefix");
                fileShare.BucketsStub            = _ctx.BooleanValue("DescribeGatewayFileShares.FileShares[" + i + "].BucketsStub");
                fileShare.UploadQueue            = _ctx.LongValue("DescribeGatewayFileShares.FileShares[" + i + "].UploadQueue");
                fileShare.DiskId                 = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].DiskId");
                fileShare.OssUsed                = _ctx.LongValue("DescribeGatewayFileShares.FileShares[" + i + "].OssUsed");
                fileShare.DownloadQueue          = _ctx.LongValue("DescribeGatewayFileShares.FileShares[" + i + "].DownloadQueue");
                fileShare.ActiveMessages         = _ctx.LongValue("DescribeGatewayFileShares.FileShares[" + i + "].ActiveMessages");
                fileShare.IndexId                = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].IndexId");
                fileShare.MnsHealth              = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].MnsHealth");
                fileShare.AccessBasedEnumeration = _ctx.BooleanValue("DescribeGatewayFileShares.FileShares[" + i + "].AccessBasedEnumeration");
                fileShare.DownloadRate           = _ctx.LongValue("DescribeGatewayFileShares.FileShares[" + i + "].DownloadRate");
                fileShare.FeLimit                = _ctx.IntegerValue("DescribeGatewayFileShares.FileShares[" + i + "].FeLimit");
                fileShare.SupportArchive         = _ctx.BooleanValue("DescribeGatewayFileShares.FileShares[" + i + "].SupportArchive");
                fileShare.OssEndpoint            = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].OssEndpoint");
                fileShare.OssHealth              = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].OssHealth");
                fileShare.OutRate                = _ctx.LongValue("DescribeGatewayFileShares.FileShares[" + i + "].OutRate");
                fileShare.ServerSideCmk          = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].ServerSideCmk");
                fileShare.RwClientList           = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].RwClientList");
                fileShare.State                = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].State");
                fileShare.Protocol             = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].Protocol");
                fileShare.OssBucketSsl         = _ctx.BooleanValue("DescribeGatewayFileShares.FileShares[" + i + "].OssBucketSsl");
                fileShare.DownloadLimit        = _ctx.IntegerValue("DescribeGatewayFileShares.FileShares[" + i + "].DownloadLimit");
                fileShare.InPlace              = _ctx.BooleanValue("DescribeGatewayFileShares.FileShares[" + i + "].InPlace");
                fileShare.RemoteSync           = _ctx.BooleanValue("DescribeGatewayFileShares.FileShares[" + i + "].RemoteSync");
                fileShare.FileNumLimit         = _ctx.LongValue("DescribeGatewayFileShares.FileShares[" + i + "].FileNumLimit");
                fileShare.Squash               = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].Squash");
                fileShare.NfsFullPath          = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].NfsFullPath");
                fileShare.RemainingMetaSpace   = _ctx.LongValue("DescribeGatewayFileShares.FileShares[" + i + "].RemainingMetaSpace");
                fileShare.TransferAcceleration = _ctx.BooleanValue("DescribeGatewayFileShares.FileShares[" + i + "].TransferAcceleration");
                fileShare.Size = _ctx.LongValue("DescribeGatewayFileShares.FileShares[" + i + "].Size");
                fileShare.ServerSideEncryption = _ctx.BooleanValue("DescribeGatewayFileShares.FileShares[" + i + "].ServerSideEncryption");
                fileShare.WindowsAcl           = _ctx.BooleanValue("DescribeGatewayFileShares.FileShares[" + i + "].WindowsAcl");
                fileShare.RemoteSyncDownload   = _ctx.BooleanValue("DescribeGatewayFileShares.FileShares[" + i + "].RemoteSyncDownload");
                fileShare.ClientSideEncryption = _ctx.BooleanValue("DescribeGatewayFileShares.FileShares[" + i + "].ClientSideEncryption");
                fileShare.BucketInfos          = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].BucketInfos");
                fileShare.NfsV4Optimization    = _ctx.BooleanValue("DescribeGatewayFileShares.FileShares[" + i + "].NfsV4Optimization");
                fileShare.TotalUpload          = _ctx.LongValue("DescribeGatewayFileShares.FileShares[" + i + "].TotalUpload");
                fileShare.DiskType             = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].DiskType");
                fileShare.Used                = _ctx.LongValue("DescribeGatewayFileShares.FileShares[" + i + "].Used");
                fileShare.IgnoreDelete        = _ctx.BooleanValue("DescribeGatewayFileShares.FileShares[" + i + "].IgnoreDelete");
                fileShare.RoUserList          = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].RoUserList");
                fileShare.FsSizeLimit         = _ctx.LongValue("DescribeGatewayFileShares.FileShares[" + i + "].FsSizeLimit");
                fileShare.TotalDownload       = _ctx.LongValue("DescribeGatewayFileShares.FileShares[" + i + "].TotalDownload");
                fileShare.Enabled             = _ctx.BooleanValue("DescribeGatewayFileShares.FileShares[" + i + "].Enabled");
                fileShare.HighWatermark       = _ctx.IntegerValue("DescribeGatewayFileShares.FileShares[" + i + "].HighWatermark");
                fileShare.KmsRotatePeriod     = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].KmsRotatePeriod");
                fileShare.Address             = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].Address");
                fileShare.PollingInterval     = _ctx.IntegerValue("DescribeGatewayFileShares.FileShares[" + i + "].PollingInterval");
                fileShare.Name                = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].Name");
                fileShare.OssBucketName       = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].OssBucketName");
                fileShare.ExpressSyncId       = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].ExpressSyncId");
                fileShare.LagPeriod           = _ctx.LongValue("DescribeGatewayFileShares.FileShares[" + i + "].LagPeriod");
                fileShare.DirectIO            = _ctx.BooleanValue("DescribeGatewayFileShares.FileShares[" + i + "].DirectIO");
                fileShare.CacheMode           = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].CacheMode");
                fileShare.InRate              = _ctx.LongValue("DescribeGatewayFileShares.FileShares[" + i + "].InRate");
                fileShare.LowWatermark        = _ctx.IntegerValue("DescribeGatewayFileShares.FileShares[" + i + "].LowWatermark");
                fileShare.SyncProgress        = _ctx.IntegerValue("DescribeGatewayFileShares.FileShares[" + i + "].SyncProgress");
                fileShare.ServerSideAlgorithm = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].ServerSideAlgorithm");
                fileShare.ObsoleteBuckets     = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].ObsoleteBuckets");
                fileShare.BeLimit             = _ctx.IntegerValue("DescribeGatewayFileShares.FileShares[" + i + "].BeLimit");
                fileShare.LocalPath           = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].LocalPath");
                fileShare.RoClientList        = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].RoClientList");
                fileShare.RwUserList          = _ctx.StringValue("DescribeGatewayFileShares.FileShares[" + i + "].RwUserList");
                fileShare.FastReclaim         = _ctx.BooleanValue("DescribeGatewayFileShares.FileShares[" + i + "].FastReclaim");
                fileShare.Browsable           = _ctx.BooleanValue("DescribeGatewayFileShares.FileShares[" + i + "].Browsable");
                fileShare.Throttling          = _ctx.BooleanValue("DescribeGatewayFileShares.FileShares[" + i + "].Throttling");
                fileShare.BypassCacheRead     = _ctx.BooleanValue("DescribeGatewayFileShares.FileShares[" + i + "].BypassCacheRead");

                describeGatewayFileSharesResponse_fileShares.Add(fileShare);
            }
            describeGatewayFileSharesResponse.FileShares = describeGatewayFileSharesResponse_fileShares;

            return(describeGatewayFileSharesResponse);
        }
        public static ListJobsByGroupResponse Unmarshall(UnmarshallerContext context)
        {
            ListJobsByGroupResponse listJobsByGroupResponse = new ListJobsByGroupResponse();

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

            ListJobsByGroupResponse.ListJobsByGroup_Jobs jobs = new ListJobsByGroupResponse.ListJobsByGroup_Jobs();
            jobs.TotalCount = context.IntegerValue("ListJobsByGroup.Jobs.TotalCount");
            jobs.PageNumber = context.IntegerValue("ListJobsByGroup.Jobs.PageNumber");
            jobs.PageSize   = context.IntegerValue("ListJobsByGroup.Jobs.PageSize");

            List <ListJobsByGroupResponse.ListJobsByGroup_Jobs.ListJobsByGroup_Job> jobs_list = new List <ListJobsByGroupResponse.ListJobsByGroup_Jobs.ListJobsByGroup_Job>();

            for (int i = 0; i < context.Length("ListJobsByGroup.Jobs.List.Length"); i++)
            {
                ListJobsByGroupResponse.ListJobsByGroup_Jobs.ListJobsByGroup_Job job = new ListJobsByGroupResponse.ListJobsByGroup_Jobs.ListJobsByGroup_Job();
                job.JobId          = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].JobId");
                job.GroupId        = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].GroupId");
                job.ScenarioId     = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].ScenarioId");
                job.StrategyId     = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].StrategyId");
                job.Priority       = context.IntegerValue("ListJobsByGroup.Jobs.List[" + i + "].Priority");
                job.SystemPriority = context.IntegerValue("ListJobsByGroup.Jobs.List[" + i + "].SystemPriority");
                job.Status         = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Status");
                job.ReferenceId    = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].ReferenceId");
                job.FailureReason  = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].FailureReason");

                List <string> job_callingNumbers = new List <string>();
                for (int j = 0; j < context.Length("ListJobsByGroup.Jobs.List[" + i + "].CallingNumbers.Length"); j++)
                {
                    job_callingNumbers.Add(context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].CallingNumbers[" + j + "]"));
                }
                job.CallingNumbers = job_callingNumbers;

                List <ListJobsByGroupResponse.ListJobsByGroup_Jobs.ListJobsByGroup_Job.ListJobsByGroup_Contact> job_contacts = new List <ListJobsByGroupResponse.ListJobsByGroup_Jobs.ListJobsByGroup_Job.ListJobsByGroup_Contact>();
                for (int j = 0; j < context.Length("ListJobsByGroup.Jobs.List[" + i + "].Contacts.Length"); j++)
                {
                    ListJobsByGroupResponse.ListJobsByGroup_Jobs.ListJobsByGroup_Job.ListJobsByGroup_Contact contact = new ListJobsByGroupResponse.ListJobsByGroup_Jobs.ListJobsByGroup_Job.ListJobsByGroup_Contact();
                    contact.ContactId   = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Contacts[" + j + "].ContactId");
                    contact.ContactName = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Contacts[" + j + "].ContactName");
                    contact.Honorific   = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Contacts[" + j + "].Honorific");
                    contact.Role        = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Contacts[" + j + "].Role");
                    contact.PhoneNumber = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Contacts[" + j + "].PhoneNumber");
                    contact.State       = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Contacts[" + j + "].State");
                    contact.ReferenceId = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Contacts[" + j + "].ReferenceId");
                    contact.JobId       = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Contacts[" + j + "].JobId");

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

                List <ListJobsByGroupResponse.ListJobsByGroup_Jobs.ListJobsByGroup_Job.ListJobsByGroup_KeyValuePair> job_extras = new List <ListJobsByGroupResponse.ListJobsByGroup_Jobs.ListJobsByGroup_Job.ListJobsByGroup_KeyValuePair>();
                for (int j = 0; j < context.Length("ListJobsByGroup.Jobs.List[" + i + "].Extras.Length"); j++)
                {
                    ListJobsByGroupResponse.ListJobsByGroup_Jobs.ListJobsByGroup_Job.ListJobsByGroup_KeyValuePair keyValuePair = new ListJobsByGroupResponse.ListJobsByGroup_Jobs.ListJobsByGroup_Job.ListJobsByGroup_KeyValuePair();
                    keyValuePair.Key    = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Extras[" + j + "].Key");
                    keyValuePair._Value = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Extras[" + j + "]._Value");

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

                List <ListJobsByGroupResponse.ListJobsByGroup_Jobs.ListJobsByGroup_Job.ListJobsByGroup_SummaryItem> job_summary = new List <ListJobsByGroupResponse.ListJobsByGroup_Jobs.ListJobsByGroup_Job.ListJobsByGroup_SummaryItem>();
                for (int j = 0; j < context.Length("ListJobsByGroup.Jobs.List[" + i + "].Summary.Length"); j++)
                {
                    ListJobsByGroupResponse.ListJobsByGroup_Jobs.ListJobsByGroup_Job.ListJobsByGroup_SummaryItem summaryItem = new ListJobsByGroupResponse.ListJobsByGroup_Jobs.ListJobsByGroup_Job.ListJobsByGroup_SummaryItem();
                    summaryItem.SummaryId            = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Summary[" + j + "].SummaryId");
                    summaryItem.GroupId              = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Summary[" + j + "].GroupId");
                    summaryItem.JobId                = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Summary[" + j + "].JobId");
                    summaryItem.TaskId               = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Summary[" + j + "].TaskId");
                    summaryItem.ConversationDetailId = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Summary[" + j + "].ConversationDetailId");
                    summaryItem.Category             = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Summary[" + j + "].Category");
                    summaryItem.SummaryName          = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Summary[" + j + "].SummaryName");
                    summaryItem.Content              = context.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Summary[" + j + "].Content");

                    job_summary.Add(summaryItem);
                }
                job.Summary = job_summary;

                jobs_list.Add(job);
            }
            jobs.List = jobs_list;
            listJobsByGroupResponse.Jobs = jobs;

            return(listJobsByGroupResponse);
        }
Exemplo n.º 54
0
        public static DescribeJobResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeJobResponse describeJobResponse = new DescribeJobResponse();

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

            DescribeJobResponse.DescribeJob_Job job = new DescribeJobResponse.DescribeJob_Job();
            job.FailureReason  = _ctx.StringValue("DescribeJob.Job.FailureReason");
            job.JobGroupId     = _ctx.StringValue("DescribeJob.Job.JobGroupId");
            job.JobId          = _ctx.StringValue("DescribeJob.Job.JobId");
            job.Priority       = _ctx.IntegerValue("DescribeJob.Job.Priority");
            job.ReferenceId    = _ctx.StringValue("DescribeJob.Job.ReferenceId");
            job.ScenarioId     = _ctx.StringValue("DescribeJob.Job.ScenarioId");
            job.Status         = _ctx.StringValue("DescribeJob.Job.Status");
            job.StrategyId     = _ctx.StringValue("DescribeJob.Job.StrategyId");
            job.SystemPriority = _ctx.IntegerValue("DescribeJob.Job.SystemPriority");

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

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

            List <DescribeJobResponse.DescribeJob_Job.DescribeJob_Contact> job_contacts = new List <DescribeJobResponse.DescribeJob_Job.DescribeJob_Contact>();

            for (int i = 0; i < _ctx.Length("DescribeJob.Job.Contacts.Length"); i++)
            {
                DescribeJobResponse.DescribeJob_Job.DescribeJob_Contact contact = new DescribeJobResponse.DescribeJob_Job.DescribeJob_Contact();
                contact.ContactId   = _ctx.StringValue("DescribeJob.Job.Contacts[" + i + "].ContactId");
                contact.ContactName = _ctx.StringValue("DescribeJob.Job.Contacts[" + i + "].ContactName");
                contact.Honorific   = _ctx.StringValue("DescribeJob.Job.Contacts[" + i + "].Honorific");
                contact.JobId       = _ctx.StringValue("DescribeJob.Job.Contacts[" + i + "].JobId");
                contact.PhoneNumber = _ctx.StringValue("DescribeJob.Job.Contacts[" + i + "].PhoneNumber");
                contact.ReferenceId = _ctx.StringValue("DescribeJob.Job.Contacts[" + i + "].ReferenceId");
                contact.Role        = _ctx.StringValue("DescribeJob.Job.Contacts[" + i + "].Role");
                contact.State       = _ctx.StringValue("DescribeJob.Job.Contacts[" + i + "].State");

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

            List <DescribeJobResponse.DescribeJob_Job.DescribeJob_KeyValuePair> job_extras = new List <DescribeJobResponse.DescribeJob_Job.DescribeJob_KeyValuePair>();

            for (int i = 0; i < _ctx.Length("DescribeJob.Job.Extras.Length"); i++)
            {
                DescribeJobResponse.DescribeJob_Job.DescribeJob_KeyValuePair keyValuePair = new DescribeJobResponse.DescribeJob_Job.DescribeJob_KeyValuePair();
                keyValuePair.Key    = _ctx.StringValue("DescribeJob.Job.Extras[" + i + "].Key");
                keyValuePair._Value = _ctx.StringValue("DescribeJob.Job.Extras[" + i + "].Value");

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

            List <DescribeJobResponse.DescribeJob_Job.DescribeJob_SummaryItem> job_summary = new List <DescribeJobResponse.DescribeJob_Job.DescribeJob_SummaryItem>();

            for (int i = 0; i < _ctx.Length("DescribeJob.Job.Summary.Length"); i++)
            {
                DescribeJobResponse.DescribeJob_Job.DescribeJob_SummaryItem summaryItem = new DescribeJobResponse.DescribeJob_Job.DescribeJob_SummaryItem();
                summaryItem.Category    = _ctx.StringValue("DescribeJob.Job.Summary[" + i + "].Category");
                summaryItem.Content     = _ctx.StringValue("DescribeJob.Job.Summary[" + i + "].Content");
                summaryItem.SummaryName = _ctx.StringValue("DescribeJob.Job.Summary[" + i + "].SummaryName");

                job_summary.Add(summaryItem);
            }
            job.Summary = job_summary;

            List <DescribeJobResponse.DescribeJob_Job.DescribeJob_Task> job_tasks = new List <DescribeJobResponse.DescribeJob_Job.DescribeJob_Task>();

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

                DescribeJobResponse.DescribeJob_Job.DescribeJob_Task.DescribeJob_Contact3 contact3 = new DescribeJobResponse.DescribeJob_Job.DescribeJob_Task.DescribeJob_Contact3();
                contact3.ContactId   = _ctx.StringValue("DescribeJob.Job.Tasks[" + i + "].Contact.ContactId");
                contact3.ContactName = _ctx.StringValue("DescribeJob.Job.Tasks[" + i + "].Contact.ContactName");
                contact3.Honorific   = _ctx.StringValue("DescribeJob.Job.Tasks[" + i + "].Contact.Honorific");
                contact3.JobId       = _ctx.StringValue("DescribeJob.Job.Tasks[" + i + "].Contact.JobId");
                contact3.PhoneNumber = _ctx.StringValue("DescribeJob.Job.Tasks[" + i + "].Contact.PhoneNumber");
                contact3.ReferenceId = _ctx.StringValue("DescribeJob.Job.Tasks[" + i + "].Contact.ReferenceId");
                contact3.Role        = _ctx.StringValue("DescribeJob.Job.Tasks[" + i + "].Contact.Role");
                contact3.State       = _ctx.StringValue("DescribeJob.Job.Tasks[" + i + "].Contact.State");
                task.Contact3        = contact3;

                List <DescribeJobResponse.DescribeJob_Job.DescribeJob_Task.DescribeJob_ConversationDetail> task_conversation = new List <DescribeJobResponse.DescribeJob_Job.DescribeJob_Task.DescribeJob_ConversationDetail>();
                for (int j = 0; j < _ctx.Length("DescribeJob.Job.Tasks[" + i + "].Conversation.Length"); j++)
                {
                    DescribeJobResponse.DescribeJob_Job.DescribeJob_Task.DescribeJob_ConversationDetail conversationDetail = new DescribeJobResponse.DescribeJob_Job.DescribeJob_Task.DescribeJob_ConversationDetail();
                    conversationDetail.Script    = _ctx.StringValue("DescribeJob.Job.Tasks[" + i + "].Conversation[" + j + "].Script");
                    conversationDetail.Speaker   = _ctx.StringValue("DescribeJob.Job.Tasks[" + i + "].Conversation[" + j + "].Speaker");
                    conversationDetail.Timestamp = _ctx.LongValue("DescribeJob.Job.Tasks[" + i + "].Conversation[" + j + "].Timestamp");

                    List <DescribeJobResponse.DescribeJob_Job.DescribeJob_Task.DescribeJob_ConversationDetail.DescribeJob_SummaryItem2> conversationDetail_summary1 = new List <DescribeJobResponse.DescribeJob_Job.DescribeJob_Task.DescribeJob_ConversationDetail.DescribeJob_SummaryItem2>();
                    for (int k = 0; k < _ctx.Length("DescribeJob.Job.Tasks[" + i + "].Conversation[" + j + "].Summary.Length"); k++)
                    {
                        DescribeJobResponse.DescribeJob_Job.DescribeJob_Task.DescribeJob_ConversationDetail.DescribeJob_SummaryItem2 summaryItem2 = new DescribeJobResponse.DescribeJob_Job.DescribeJob_Task.DescribeJob_ConversationDetail.DescribeJob_SummaryItem2();
                        summaryItem2.Category    = _ctx.StringValue("DescribeJob.Job.Tasks[" + i + "].Conversation[" + j + "].Summary[" + k + "].Category");
                        summaryItem2.Content     = _ctx.StringValue("DescribeJob.Job.Tasks[" + i + "].Conversation[" + j + "].Summary[" + k + "].Content");
                        summaryItem2.SummaryName = _ctx.StringValue("DescribeJob.Job.Tasks[" + i + "].Conversation[" + j + "].Summary[" + k + "].SummaryName");

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

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

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

            return(describeJobResponse);
        }
        public static ListCollectorsResponse Unmarshall(UnmarshallerContext context)
        {
            ListCollectorsResponse listCollectorsResponse = new ListCollectorsResponse();

            listCollectorsResponse.HttpResponse = context.HttpResponse;
            listCollectorsResponse.RequestId    = context.StringValue("ListCollectors.RequestId");

            ListCollectorsResponse.ListCollectors_Headers headers = new ListCollectorsResponse.ListCollectors_Headers();
            headers.XTotalCount            = context.IntegerValue("ListCollectors.Headers.X-Total-Count");
            listCollectorsResponse.Headers = headers;

            List <ListCollectorsResponse.ListCollectors_ResultItem> listCollectorsResponse_result = new List <ListCollectorsResponse.ListCollectors_ResultItem>();

            for (int i = 0; i < context.Length("ListCollectors.Result.Length"); i++)
            {
                ListCollectorsResponse.ListCollectors_ResultItem resultItem = new ListCollectorsResponse.ListCollectors_ResultItem();
                resultItem.GmtCreatedTime = context.StringValue("ListCollectors.Result[" + i + "].gmtCreatedTime");
                resultItem.GmtUpdateTime  = context.StringValue("ListCollectors.Result[" + i + "].gmtUpdateTime");
                resultItem.Name           = context.StringValue("ListCollectors.Result[" + i + "].name");
                resultItem.ResId          = context.StringValue("ListCollectors.Result[" + i + "].resId");
                resultItem.ResVersion     = context.StringValue("ListCollectors.Result[" + i + "].resVersion");
                resultItem.VpcId          = context.StringValue("ListCollectors.Result[" + i + "].vpcId");
                resultItem.ResType        = context.StringValue("ListCollectors.Result[" + i + "].resType");
                resultItem.OwnerId        = context.StringValue("ListCollectors.Result[" + i + "].ownerId");
                resultItem.Status         = context.StringValue("ListCollectors.Result[" + i + "].status");
                resultItem.DryRun         = context.BooleanValue("ListCollectors.Result[" + i + "].dryRun");

                List <string> resultItem_collectorPaths = new List <string>();
                for (int j = 0; j < context.Length("ListCollectors.Result[" + i + "].CollectorPaths.Length"); j++)
                {
                    resultItem_collectorPaths.Add(context.StringValue("ListCollectors.Result[" + i + "].CollectorPaths[" + j + "]"));
                }
                resultItem.CollectorPaths = resultItem_collectorPaths;

                List <ListCollectorsResponse.ListCollectors_ResultItem.ListCollectors_ConfigsItem> resultItem_configs = new List <ListCollectorsResponse.ListCollectors_ResultItem.ListCollectors_ConfigsItem>();
                for (int j = 0; j < context.Length("ListCollectors.Result[" + i + "].Configs.Length"); j++)
                {
                    ListCollectorsResponse.ListCollectors_ResultItem.ListCollectors_ConfigsItem configsItem = new ListCollectorsResponse.ListCollectors_ResultItem.ListCollectors_ConfigsItem();
                    configsItem.FileName = context.StringValue("ListCollectors.Result[" + i + "].Configs[" + j + "].fileName");
                    configsItem.Content  = context.StringValue("ListCollectors.Result[" + i + "].Configs[" + j + "].content");

                    resultItem_configs.Add(configsItem);
                }
                resultItem.Configs = resultItem_configs;

                List <ListCollectorsResponse.ListCollectors_ResultItem.ListCollectors_ExtendConfigsItem> resultItem_extendConfigs = new List <ListCollectorsResponse.ListCollectors_ResultItem.ListCollectors_ExtendConfigsItem>();
                for (int j = 0; j < context.Length("ListCollectors.Result[" + i + "].ExtendConfigs.Length"); j++)
                {
                    ListCollectorsResponse.ListCollectors_ResultItem.ListCollectors_ExtendConfigsItem extendConfigsItem = new ListCollectorsResponse.ListCollectors_ResultItem.ListCollectors_ExtendConfigsItem();
                    extendConfigsItem.ConfigType       = context.StringValue("ListCollectors.Result[" + i + "].ExtendConfigs[" + j + "].configType");
                    extendConfigsItem.InstanceId       = context.StringValue("ListCollectors.Result[" + i + "].ExtendConfigs[" + j + "].instanceId");
                    extendConfigsItem.InstanceType     = context.StringValue("ListCollectors.Result[" + i + "].ExtendConfigs[" + j + "].instanceType");
                    extendConfigsItem.Protocol         = context.StringValue("ListCollectors.Result[" + i + "].ExtendConfigs[" + j + "].protocol");
                    extendConfigsItem.UserName         = context.StringValue("ListCollectors.Result[" + i + "].ExtendConfigs[" + j + "].userName");
                    extendConfigsItem.EnableMonitoring = context.BooleanValue("ListCollectors.Result[" + i + "].ExtendConfigs[" + j + "].enableMonitoring");
                    extendConfigsItem.Type             = context.StringValue("ListCollectors.Result[" + i + "].ExtendConfigs[" + j + "].type");
                    extendConfigsItem.GroupId          = context.StringValue("ListCollectors.Result[" + i + "].ExtendConfigs[" + j + "].groupId");

                    List <string> extendConfigsItem_hosts = new List <string>();
                    for (int k = 0; k < context.Length("ListCollectors.Result[" + i + "].ExtendConfigs[" + j + "].Hosts.Length"); k++)
                    {
                        extendConfigsItem_hosts.Add(context.StringValue("ListCollectors.Result[" + i + "].ExtendConfigs[" + j + "].Hosts[" + k + "]"));
                    }
                    extendConfigsItem.Hosts = extendConfigsItem_hosts;

                    List <ListCollectorsResponse.ListCollectors_ResultItem.ListCollectors_ExtendConfigsItem.ListCollectors_MachinesItem> extendConfigsItem_machines = new List <ListCollectorsResponse.ListCollectors_ResultItem.ListCollectors_ExtendConfigsItem.ListCollectors_MachinesItem>();
                    for (int k = 0; k < context.Length("ListCollectors.Result[" + i + "].ExtendConfigs[" + j + "].Machines.Length"); k++)
                    {
                        ListCollectorsResponse.ListCollectors_ResultItem.ListCollectors_ExtendConfigsItem.ListCollectors_MachinesItem machinesItem = new ListCollectorsResponse.ListCollectors_ResultItem.ListCollectors_ExtendConfigsItem.ListCollectors_MachinesItem();
                        machinesItem.InstanceId  = context.StringValue("ListCollectors.Result[" + i + "].ExtendConfigs[" + j + "].Machines[" + k + "].instanceId");
                        machinesItem.AgentStatus = context.StringValue("ListCollectors.Result[" + i + "].ExtendConfigs[" + j + "].Machines[" + k + "].agentStatus");

                        extendConfigsItem_machines.Add(machinesItem);
                    }
                    extendConfigsItem.Machines = extendConfigsItem_machines;

                    resultItem_extendConfigs.Add(extendConfigsItem);
                }
                resultItem.ExtendConfigs = resultItem_extendConfigs;

                listCollectorsResponse_result.Add(resultItem);
            }
            listCollectorsResponse.Result = listCollectorsResponse_result;

            return(listCollectorsResponse);
        }
        public static DescribeClusterResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeClusterResponse describeClusterResponse = new DescribeClusterResponse();

            describeClusterResponse.HttpResponse = _ctx.HttpResponse;
            describeClusterResponse.RequestId    = _ctx.StringValue("DescribeCluster.RequestId");

            DescribeClusterResponse.DescribeCluster_ClusterInfo clusterInfo = new DescribeClusterResponse.DescribeCluster_ClusterInfo();
            clusterInfo.Id               = _ctx.StringValue("DescribeCluster.ClusterInfo.Id");
            clusterInfo.RegionId         = _ctx.StringValue("DescribeCluster.ClusterInfo.RegionId");
            clusterInfo.Name             = _ctx.StringValue("DescribeCluster.ClusterInfo.Name");
            clusterInfo.Description      = _ctx.StringValue("DescribeCluster.ClusterInfo.Description");
            clusterInfo.Status           = _ctx.StringValue("DescribeCluster.ClusterInfo.Status");
            clusterInfo.OsTag            = _ctx.StringValue("DescribeCluster.ClusterInfo.OsTag");
            clusterInfo.AccountType      = _ctx.StringValue("DescribeCluster.ClusterInfo.AccountType");
            clusterInfo.SchedulerType    = _ctx.StringValue("DescribeCluster.ClusterInfo.SchedulerType");
            clusterInfo.CreateTime       = _ctx.StringValue("DescribeCluster.ClusterInfo.CreateTime");
            clusterInfo.SecurityGroupId  = _ctx.StringValue("DescribeCluster.ClusterInfo.SecurityGroupId");
            clusterInfo.VpcId            = _ctx.StringValue("DescribeCluster.ClusterInfo.VpcId");
            clusterInfo.VSwitchId        = _ctx.StringValue("DescribeCluster.ClusterInfo.VSwitchId");
            clusterInfo.VolumeType       = _ctx.StringValue("DescribeCluster.ClusterInfo.VolumeType");
            clusterInfo.VolumeId         = _ctx.StringValue("DescribeCluster.ClusterInfo.VolumeId");
            clusterInfo.VolumeProtocol   = _ctx.StringValue("DescribeCluster.ClusterInfo.VolumeProtocol");
            clusterInfo.VolumeMountpoint = _ctx.StringValue("DescribeCluster.ClusterInfo.VolumeMountpoint");
            clusterInfo.RemoteDirectory  = _ctx.StringValue("DescribeCluster.ClusterInfo.RemoteDirectory");
            clusterInfo.DeployMode       = _ctx.StringValue("DescribeCluster.ClusterInfo.DeployMode");
            clusterInfo.HaEnable         = _ctx.BooleanValue("DescribeCluster.ClusterInfo.HaEnable");
            clusterInfo.EcsChargeType    = _ctx.StringValue("DescribeCluster.ClusterInfo.EcsChargeType");
            clusterInfo.KeyPairName      = _ctx.StringValue("DescribeCluster.ClusterInfo.KeyPairName");
            clusterInfo.SccClusterId     = _ctx.StringValue("DescribeCluster.ClusterInfo.SccClusterId");
            clusterInfo.ClientVersion    = _ctx.StringValue("DescribeCluster.ClusterInfo.ClientVersion");
            clusterInfo.ImageOwnerAlias  = _ctx.StringValue("DescribeCluster.ClusterInfo.ImageOwnerAlias");
            clusterInfo.ImageId          = _ctx.StringValue("DescribeCluster.ClusterInfo.ImageId");
            clusterInfo.Location         = _ctx.StringValue("DescribeCluster.ClusterInfo.Location");
            clusterInfo.BaseOsTag        = _ctx.StringValue("DescribeCluster.ClusterInfo.BaseOsTag");
            clusterInfo.ImageName        = _ctx.StringValue("DescribeCluster.ClusterInfo.ImageName");

            DescribeClusterResponse.DescribeCluster_ClusterInfo.DescribeCluster_EcsInfo ecsInfo = new DescribeClusterResponse.DescribeCluster_ClusterInfo.DescribeCluster_EcsInfo();

            DescribeClusterResponse.DescribeCluster_ClusterInfo.DescribeCluster_EcsInfo.DescribeCluster_Manager manager = new DescribeClusterResponse.DescribeCluster_ClusterInfo.DescribeCluster_EcsInfo.DescribeCluster_Manager();
            manager.Count        = _ctx.IntegerValue("DescribeCluster.ClusterInfo.EcsInfo.Manager.Count");
            manager.InstanceType = _ctx.StringValue("DescribeCluster.ClusterInfo.EcsInfo.Manager.InstanceType");
            ecsInfo.Manager      = manager;

            DescribeClusterResponse.DescribeCluster_ClusterInfo.DescribeCluster_EcsInfo.DescribeCluster_Compute compute = new DescribeClusterResponse.DescribeCluster_ClusterInfo.DescribeCluster_EcsInfo.DescribeCluster_Compute();
            compute.Count        = _ctx.IntegerValue("DescribeCluster.ClusterInfo.EcsInfo.Compute.Count");
            compute.InstanceType = _ctx.StringValue("DescribeCluster.ClusterInfo.EcsInfo.Compute.InstanceType");
            ecsInfo.Compute      = compute;

            DescribeClusterResponse.DescribeCluster_ClusterInfo.DescribeCluster_EcsInfo.DescribeCluster_Login login = new DescribeClusterResponse.DescribeCluster_ClusterInfo.DescribeCluster_EcsInfo.DescribeCluster_Login();
            login.Count         = _ctx.IntegerValue("DescribeCluster.ClusterInfo.EcsInfo.Login.Count");
            login.InstanceType  = _ctx.StringValue("DescribeCluster.ClusterInfo.EcsInfo.Login.InstanceType");
            ecsInfo.Login       = login;
            clusterInfo.EcsInfo = ecsInfo;

            List <DescribeClusterResponse.DescribeCluster_ClusterInfo.DescribeCluster_ApplicationInfo> clusterInfo_applications = new List <DescribeClusterResponse.DescribeCluster_ClusterInfo.DescribeCluster_ApplicationInfo>();

            for (int i = 0; i < _ctx.Length("DescribeCluster.ClusterInfo.Applications.Length"); i++)
            {
                DescribeClusterResponse.DescribeCluster_ClusterInfo.DescribeCluster_ApplicationInfo applicationInfo = new DescribeClusterResponse.DescribeCluster_ClusterInfo.DescribeCluster_ApplicationInfo();
                applicationInfo.Tag     = _ctx.StringValue("DescribeCluster.ClusterInfo.Applications[" + i + "].Tag");
                applicationInfo.Name    = _ctx.StringValue("DescribeCluster.ClusterInfo.Applications[" + i + "].Name");
                applicationInfo.Version = _ctx.StringValue("DescribeCluster.ClusterInfo.Applications[" + i + "].Version");

                clusterInfo_applications.Add(applicationInfo);
            }
            clusterInfo.Applications = clusterInfo_applications;

            List <DescribeClusterResponse.DescribeCluster_ClusterInfo.DescribeCluster_PostInstallScriptInfo> clusterInfo_postInstallScripts = new List <DescribeClusterResponse.DescribeCluster_ClusterInfo.DescribeCluster_PostInstallScriptInfo>();

            for (int i = 0; i < _ctx.Length("DescribeCluster.ClusterInfo.PostInstallScripts.Length"); i++)
            {
                DescribeClusterResponse.DescribeCluster_ClusterInfo.DescribeCluster_PostInstallScriptInfo postInstallScriptInfo = new DescribeClusterResponse.DescribeCluster_ClusterInfo.DescribeCluster_PostInstallScriptInfo();
                postInstallScriptInfo.Url  = _ctx.StringValue("DescribeCluster.ClusterInfo.PostInstallScripts[" + i + "].Url");
                postInstallScriptInfo.Args = _ctx.StringValue("DescribeCluster.ClusterInfo.PostInstallScripts[" + i + "].Args");

                clusterInfo_postInstallScripts.Add(postInstallScriptInfo);
            }
            clusterInfo.PostInstallScripts      = clusterInfo_postInstallScripts;
            describeClusterResponse.ClusterInfo = clusterInfo;

            return(describeClusterResponse);
        }
Exemplo n.º 57
0
        public static DescribeLaunchTemplateVersionsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeLaunchTemplateVersionsResponse describeLaunchTemplateVersionsResponse = new DescribeLaunchTemplateVersionsResponse();

            describeLaunchTemplateVersionsResponse.HttpResponse = context.HttpResponse;
            describeLaunchTemplateVersionsResponse.RequestId    = context.StringValue("DescribeLaunchTemplateVersions.RequestId");
            describeLaunchTemplateVersionsResponse.TotalCount   = context.IntegerValue("DescribeLaunchTemplateVersions.TotalCount");
            describeLaunchTemplateVersionsResponse.PageNumber   = context.IntegerValue("DescribeLaunchTemplateVersions.PageNumber");
            describeLaunchTemplateVersionsResponse.PageSize     = context.IntegerValue("DescribeLaunchTemplateVersions.PageSize");

            List <DescribeLaunchTemplateVersionsResponse.DescribeLaunchTemplateVersions_LaunchTemplateVersionSet> describeLaunchTemplateVersionsResponse_launchTemplateVersionSets = new List <DescribeLaunchTemplateVersionsResponse.DescribeLaunchTemplateVersions_LaunchTemplateVersionSet>();

            for (int i = 0; i < context.Length("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets.Length"); i++)
            {
                DescribeLaunchTemplateVersionsResponse.DescribeLaunchTemplateVersions_LaunchTemplateVersionSet launchTemplateVersionSet = new DescribeLaunchTemplateVersionsResponse.DescribeLaunchTemplateVersions_LaunchTemplateVersionSet();
                launchTemplateVersionSet.CreateTime         = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].CreateTime");
                launchTemplateVersionSet.ModifiedTime       = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].ModifiedTime");
                launchTemplateVersionSet.LaunchTemplateId   = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateId");
                launchTemplateVersionSet.LaunchTemplateName = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateName");
                launchTemplateVersionSet.DefaultVersion     = context.BooleanValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].DefaultVersion");
                launchTemplateVersionSet.VersionNumber      = context.LongValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].VersionNumber");
                launchTemplateVersionSet.VersionDescription = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].VersionDescription");
                launchTemplateVersionSet.CreatedBy          = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].CreatedBy");

                DescribeLaunchTemplateVersionsResponse.DescribeLaunchTemplateVersions_LaunchTemplateVersionSet.DescribeLaunchTemplateVersions_LaunchTemplateData launchTemplateData = new DescribeLaunchTemplateVersionsResponse.DescribeLaunchTemplateVersions_LaunchTemplateVersionSet.DescribeLaunchTemplateVersions_LaunchTemplateData();
                launchTemplateData.ImageId                     = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.ImageId");
                launchTemplateData.ImageOwnerAlias             = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.ImageOwnerAlias");
                launchTemplateData.PasswordInherit             = context.BooleanValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.PasswordInherit");
                launchTemplateData.InstanceType                = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.InstanceType");
                launchTemplateData.SecurityGroupId             = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.SecurityGroupId");
                launchTemplateData.VpcId                       = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.VpcId");
                launchTemplateData.VSwitchId                   = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.VSwitchId");
                launchTemplateData.InstanceName                = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.InstanceName");
                launchTemplateData.Description                 = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.Description");
                launchTemplateData.InternetMaxBandwidthIn      = context.IntegerValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.InternetMaxBandwidthIn");
                launchTemplateData.InternetMaxBandwidthOut     = context.IntegerValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.InternetMaxBandwidthOut");
                launchTemplateData.HostName                    = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.HostName");
                launchTemplateData.ZoneId                      = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.ZoneId");
                launchTemplateData.SystemDiskSize              = context.IntegerValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.SystemDisk.Size");
                launchTemplateData.SystemDiskCategory          = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.SystemDisk.Category");
                launchTemplateData.SystemDiskDiskName          = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.SystemDisk.DiskName");
                launchTemplateData.SystemDiskDescription       = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.SystemDisk.Description");
                launchTemplateData.SystemDiskIops              = context.IntegerValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.SystemDisk.Iops");
                launchTemplateData.IoOptimized                 = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.IoOptimized");
                launchTemplateData.InstanceChargeType          = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.InstanceChargeType");
                launchTemplateData.Period                      = context.IntegerValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.Period");
                launchTemplateData.InternetChargeType          = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.InternetChargeType");
                launchTemplateData.EnableVmOsConfig            = context.BooleanValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.EnableVmOsConfig");
                launchTemplateData.NetworkType                 = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.NetworkType");
                launchTemplateData.UserData                    = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.UserData");
                launchTemplateData.KeyPairName                 = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.KeyPairName");
                launchTemplateData.RamRoleName                 = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.RamRoleName");
                launchTemplateData.AutoReleaseTime             = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.AutoReleaseTime");
                launchTemplateData.SpotStrategy                = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.SpotStrategy");
                launchTemplateData.SpotPriceLimit              = context.FloatValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.SpotPriceLimit");
                launchTemplateData.SpotDuration                = context.IntegerValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.SpotDuration");
                launchTemplateData.ResourceGroupId             = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.ResourceGroupId");
                launchTemplateData.SecurityEnhancementStrategy = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.SecurityEnhancementStrategy");

                List <DescribeLaunchTemplateVersionsResponse.DescribeLaunchTemplateVersions_LaunchTemplateVersionSet.DescribeLaunchTemplateVersions_LaunchTemplateData.DescribeLaunchTemplateVersions_DataDisk> launchTemplateData_dataDisks = new List <DescribeLaunchTemplateVersionsResponse.DescribeLaunchTemplateVersions_LaunchTemplateVersionSet.DescribeLaunchTemplateVersions_LaunchTemplateData.DescribeLaunchTemplateVersions_DataDisk>();
                for (int j = 0; j < context.Length("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.DataDisks.Length"); j++)
                {
                    DescribeLaunchTemplateVersionsResponse.DescribeLaunchTemplateVersions_LaunchTemplateVersionSet.DescribeLaunchTemplateVersions_LaunchTemplateData.DescribeLaunchTemplateVersions_DataDisk dataDisk = new DescribeLaunchTemplateVersionsResponse.DescribeLaunchTemplateVersions_LaunchTemplateVersionSet.DescribeLaunchTemplateVersions_LaunchTemplateData.DescribeLaunchTemplateVersions_DataDisk();
                    dataDisk.Size               = context.IntegerValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.DataDisks[" + j + "].Size");
                    dataDisk.SnapshotId         = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.DataDisks[" + j + "].SnapshotId");
                    dataDisk.Category           = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.DataDisks[" + j + "].Category");
                    dataDisk.Encrypted          = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.DataDisks[" + j + "].Encrypted");
                    dataDisk.DiskName           = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.DataDisks[" + j + "].DiskName");
                    dataDisk.Description        = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.DataDisks[" + j + "].Description");
                    dataDisk.DeleteWithInstance = context.BooleanValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.DataDisks[" + j + "].DeleteWithInstance");
                    dataDisk.Device             = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.DataDisks[" + j + "].Device");

                    launchTemplateData_dataDisks.Add(dataDisk);
                }
                launchTemplateData.DataDisks = launchTemplateData_dataDisks;

                List <DescribeLaunchTemplateVersionsResponse.DescribeLaunchTemplateVersions_LaunchTemplateVersionSet.DescribeLaunchTemplateVersions_LaunchTemplateData.DescribeLaunchTemplateVersions_NetworkInterface> launchTemplateData_networkInterfaces = new List <DescribeLaunchTemplateVersionsResponse.DescribeLaunchTemplateVersions_LaunchTemplateVersionSet.DescribeLaunchTemplateVersions_LaunchTemplateData.DescribeLaunchTemplateVersions_NetworkInterface>();
                for (int j = 0; j < context.Length("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.NetworkInterfaces.Length"); j++)
                {
                    DescribeLaunchTemplateVersionsResponse.DescribeLaunchTemplateVersions_LaunchTemplateVersionSet.DescribeLaunchTemplateVersions_LaunchTemplateData.DescribeLaunchTemplateVersions_NetworkInterface networkInterface = new DescribeLaunchTemplateVersionsResponse.DescribeLaunchTemplateVersions_LaunchTemplateVersionSet.DescribeLaunchTemplateVersions_LaunchTemplateData.DescribeLaunchTemplateVersions_NetworkInterface();
                    networkInterface.PrimaryIpAddress     = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.NetworkInterfaces[" + j + "].PrimaryIpAddress");
                    networkInterface.VSwitchId            = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.NetworkInterfaces[" + j + "].VSwitchId");
                    networkInterface.SecurityGroupId      = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.NetworkInterfaces[" + j + "].SecurityGroupId");
                    networkInterface.NetworkInterfaceName = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.NetworkInterfaces[" + j + "].NetworkInterfaceName");
                    networkInterface.Description          = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.NetworkInterfaces[" + j + "].Description");

                    launchTemplateData_networkInterfaces.Add(networkInterface);
                }
                launchTemplateData.NetworkInterfaces = launchTemplateData_networkInterfaces;

                List <DescribeLaunchTemplateVersionsResponse.DescribeLaunchTemplateVersions_LaunchTemplateVersionSet.DescribeLaunchTemplateVersions_LaunchTemplateData.DescribeLaunchTemplateVersions_InstanceTag> launchTemplateData_tags = new List <DescribeLaunchTemplateVersionsResponse.DescribeLaunchTemplateVersions_LaunchTemplateVersionSet.DescribeLaunchTemplateVersions_LaunchTemplateData.DescribeLaunchTemplateVersions_InstanceTag>();
                for (int j = 0; j < context.Length("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.Tags.Length"); j++)
                {
                    DescribeLaunchTemplateVersionsResponse.DescribeLaunchTemplateVersions_LaunchTemplateVersionSet.DescribeLaunchTemplateVersions_LaunchTemplateData.DescribeLaunchTemplateVersions_InstanceTag instanceTag = new DescribeLaunchTemplateVersionsResponse.DescribeLaunchTemplateVersions_LaunchTemplateVersionSet.DescribeLaunchTemplateVersions_LaunchTemplateData.DescribeLaunchTemplateVersions_InstanceTag();
                    instanceTag.Key    = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.Tags[" + j + "].Key");
                    instanceTag._Value = context.StringValue("DescribeLaunchTemplateVersions.LaunchTemplateVersionSets[" + i + "].LaunchTemplateData.Tags[" + j + "].Value");

                    launchTemplateData_tags.Add(instanceTag);
                }
                launchTemplateData.Tags = launchTemplateData_tags;
                launchTemplateVersionSet.LaunchTemplateData = launchTemplateData;

                describeLaunchTemplateVersionsResponse_launchTemplateVersionSets.Add(launchTemplateVersionSet);
            }
            describeLaunchTemplateVersionsResponse.LaunchTemplateVersionSets = describeLaunchTemplateVersionsResponse_launchTemplateVersionSets;

            return(describeLaunchTemplateVersionsResponse);
        }
Exemplo n.º 58
0
        public static DescribeDBInstancesResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeDBInstancesResponse describeDBInstancesResponse = new DescribeDBInstancesResponse();

            describeDBInstancesResponse.HttpResponse = _ctx.HttpResponse;
            describeDBInstancesResponse.RequestId    = _ctx.StringValue("DescribeDBInstances.RequestId");
            describeDBInstancesResponse.PageNumber   = _ctx.IntegerValue("DescribeDBInstances.PageNumber");
            describeDBInstancesResponse.PageSize     = _ctx.IntegerValue("DescribeDBInstances.PageSize");
            describeDBInstancesResponse.TotalCount   = _ctx.IntegerValue("DescribeDBInstances.TotalCount");

            List <DescribeDBInstancesResponse.DescribeDBInstances_DBInstance> describeDBInstancesResponse_dBInstances = new List <DescribeDBInstancesResponse.DescribeDBInstances_DBInstance>();

            for (int i = 0; i < _ctx.Length("DescribeDBInstances.DBInstances.Length"); i++)
            {
                DescribeDBInstancesResponse.DescribeDBInstances_DBInstance dBInstance = new DescribeDBInstancesResponse.DescribeDBInstances_DBInstance();
                dBInstance.ResourceGroupId       = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].ResourceGroupId");
                dBInstance.DBInstanceId          = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].DBInstanceId");
                dBInstance.DBInstanceDescription = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].DBInstanceDescription");
                dBInstance.RegionId          = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].RegionId");
                dBInstance.ZoneId            = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].ZoneId");
                dBInstance.Engine            = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].Engine");
                dBInstance.EngineVersion     = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].EngineVersion");
                dBInstance.DBInstanceClass   = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].DBInstanceClass");
                dBInstance.DBInstanceStorage = _ctx.IntegerValue("DescribeDBInstances.DBInstances[" + i + "].DBInstanceStorage");
                dBInstance.KindCode          = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].KindCode");
                dBInstance.DBInstanceStatus  = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].DBInstanceStatus");
                dBInstance.LockMode          = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].LockMode");
                dBInstance.ChargeType        = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].ChargeType");
                dBInstance.NetworkType       = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].NetworkType");
                dBInstance.CreationTime      = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].CreationTime");
                dBInstance.ExpireTime        = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].ExpireTime");
                dBInstance.DBInstanceType    = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].DBInstanceType");
                dBInstance.LastDowngradeTime = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].LastDowngradeTime");
                dBInstance.ReplicationFactor = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].ReplicationFactor");
                dBInstance.DestroyTime       = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].DestroyTime");
                dBInstance.VpcAuthMode       = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].VpcAuthMode");

                List <DescribeDBInstancesResponse.DescribeDBInstances_DBInstance.DescribeDBInstances_MongosAttribute> dBInstance_mongosList = new List <DescribeDBInstancesResponse.DescribeDBInstances_DBInstance.DescribeDBInstances_MongosAttribute>();
                for (int j = 0; j < _ctx.Length("DescribeDBInstances.DBInstances[" + i + "].MongosList.Length"); j++)
                {
                    DescribeDBInstancesResponse.DescribeDBInstances_DBInstance.DescribeDBInstances_MongosAttribute mongosAttribute = new DescribeDBInstancesResponse.DescribeDBInstances_DBInstance.DescribeDBInstances_MongosAttribute();
                    mongosAttribute.NodeId          = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].MongosList[" + j + "].NodeId");
                    mongosAttribute.NodeDescription = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].MongosList[" + j + "].NodeDescription");
                    mongosAttribute.NodeClass       = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].MongosList[" + j + "].NodeClass");

                    dBInstance_mongosList.Add(mongosAttribute);
                }
                dBInstance.MongosList = dBInstance_mongosList;

                List <DescribeDBInstancesResponse.DescribeDBInstances_DBInstance.DescribeDBInstances_ShardAttribute> dBInstance_shardList = new List <DescribeDBInstancesResponse.DescribeDBInstances_DBInstance.DescribeDBInstances_ShardAttribute>();
                for (int j = 0; j < _ctx.Length("DescribeDBInstances.DBInstances[" + i + "].ShardList.Length"); j++)
                {
                    DescribeDBInstancesResponse.DescribeDBInstances_DBInstance.DescribeDBInstances_ShardAttribute shardAttribute = new DescribeDBInstancesResponse.DescribeDBInstances_DBInstance.DescribeDBInstances_ShardAttribute();
                    shardAttribute.NodeId          = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].ShardList[" + j + "].NodeId");
                    shardAttribute.NodeDescription = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].ShardList[" + j + "].NodeDescription");
                    shardAttribute.NodeClass       = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].ShardList[" + j + "].NodeClass");
                    shardAttribute.NodeStorage     = _ctx.IntegerValue("DescribeDBInstances.DBInstances[" + i + "].ShardList[" + j + "].NodeStorage");

                    dBInstance_shardList.Add(shardAttribute);
                }
                dBInstance.ShardList = dBInstance_shardList;

                List <DescribeDBInstancesResponse.DescribeDBInstances_DBInstance.DescribeDBInstances_Tag> dBInstance_tags = new List <DescribeDBInstancesResponse.DescribeDBInstances_DBInstance.DescribeDBInstances_Tag>();
                for (int j = 0; j < _ctx.Length("DescribeDBInstances.DBInstances[" + i + "].Tags.Length"); j++)
                {
                    DescribeDBInstancesResponse.DescribeDBInstances_DBInstance.DescribeDBInstances_Tag tag = new DescribeDBInstancesResponse.DescribeDBInstances_DBInstance.DescribeDBInstances_Tag();
                    tag.Key    = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].Tags[" + j + "].Key");
                    tag._Value = _ctx.StringValue("DescribeDBInstances.DBInstances[" + i + "].Tags[" + j + "].Value");

                    dBInstance_tags.Add(tag);
                }
                dBInstance.Tags = dBInstance_tags;

                describeDBInstancesResponse_dBInstances.Add(dBInstance);
            }
            describeDBInstancesResponse.DBInstances = describeDBInstancesResponse_dBInstances;

            return(describeDBInstancesResponse);
        }
Exemplo n.º 59
0
        public static DescribeAvailableResourceResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeAvailableResourceResponse describeAvailableResourceResponse = new DescribeAvailableResourceResponse();

            describeAvailableResourceResponse.HttpResponse = _ctx.HttpResponse;
            describeAvailableResourceResponse.RequestId    = _ctx.StringValue("DescribeAvailableResource.RequestId");

            List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone> describeAvailableResourceResponse_availableZones = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone>();

            for (int i = 0; i < _ctx.Length("DescribeAvailableResource.AvailableZones.Length"); i++)
            {
                DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone availableZone = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone();
                availableZone.RegionId = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].RegionId");
                availableZone.ZoneId   = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].ZoneId");

                List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine> availableZone_supportedEngines = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine>();
                for (int j = 0; j < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines.Length"); j++)
                {
                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine supportedEngine = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine();
                    supportedEngine.Engine = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].Engine");

                    List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion> supportedEngine_supportedEngineVersions = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion>();
                    for (int k = 0; k < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions.Length"); k++)
                    {
                        DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion supportedEngineVersion = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion();
                        supportedEngineVersion.Version = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].Version");

                        List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem> supportedEngineVersion_supportedCategories = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem>();
                        for (int l = 0; l < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories.Length"); l++)
                        {
                            DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem supportedCategoriesItem = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem();
                            supportedCategoriesItem.Category = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories[" + l + "].Category");

                            List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType> supportedCategoriesItem_supportedStorageTypes = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType>();
                            for (int m = 0; m < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories[" + l + "].SupportedStorageTypes.Length"); m++)
                            {
                                DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType supportedStorageType = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType();
                                supportedStorageType.StorageType = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories[" + l + "].SupportedStorageTypes[" + m + "].StorageType");

                                List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_CoreResource> supportedStorageType_coreResources = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_CoreResource>();
                                for (int n = 0; n < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories[" + l + "].SupportedStorageTypes[" + m + "].CoreResources.Length"); n++)
                                {
                                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_CoreResource coreResource = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_CoreResource();
                                    coreResource.InstanceType = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories[" + l + "].SupportedStorageTypes[" + m + "].CoreResources[" + n + "].InstanceType");
                                    coreResource.MaxCoreCount = _ctx.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories[" + l + "].SupportedStorageTypes[" + m + "].CoreResources[" + n + "].MaxCoreCount");

                                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_CoreResource.DescribeAvailableResource_DBInstanceStorageRange dBInstanceStorageRange = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_CoreResource.DescribeAvailableResource_DBInstanceStorageRange();
                                    dBInstanceStorageRange.MaxSize      = _ctx.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories[" + l + "].SupportedStorageTypes[" + m + "].CoreResources[" + n + "].DBInstanceStorageRange.MaxSize");
                                    dBInstanceStorageRange.MinSize      = _ctx.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories[" + l + "].SupportedStorageTypes[" + m + "].CoreResources[" + n + "].DBInstanceStorageRange.MinSize");
                                    dBInstanceStorageRange.StepSize     = _ctx.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories[" + l + "].SupportedStorageTypes[" + m + "].CoreResources[" + n + "].DBInstanceStorageRange.StepSize");
                                    coreResource.DBInstanceStorageRange = dBInstanceStorageRange;

                                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_CoreResource.DescribeAvailableResource_InstanceTypeDetail instanceTypeDetail = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_CoreResource.DescribeAvailableResource_InstanceTypeDetail();
                                    instanceTypeDetail.Cpu          = _ctx.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories[" + l + "].SupportedStorageTypes[" + m + "].CoreResources[" + n + "].InstanceTypeDetail.Cpu");
                                    instanceTypeDetail.Mem          = _ctx.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories[" + l + "].SupportedStorageTypes[" + m + "].CoreResources[" + n + "].InstanceTypeDetail.Mem");
                                    coreResource.InstanceTypeDetail = instanceTypeDetail;

                                    supportedStorageType_coreResources.Add(coreResource);
                                }
                                supportedStorageType.CoreResources = supportedStorageType_coreResources;

                                supportedCategoriesItem_supportedStorageTypes.Add(supportedStorageType);
                            }
                            supportedCategoriesItem.SupportedStorageTypes = supportedCategoriesItem_supportedStorageTypes;

                            supportedEngineVersion_supportedCategories.Add(supportedCategoriesItem);
                        }
                        supportedEngineVersion.SupportedCategories = supportedEngineVersion_supportedCategories;

                        supportedEngine_supportedEngineVersions.Add(supportedEngineVersion);
                    }
                    supportedEngine.SupportedEngineVersions = supportedEngine_supportedEngineVersions;

                    availableZone_supportedEngines.Add(supportedEngine);
                }
                availableZone.SupportedEngines = availableZone_supportedEngines;

                List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_MasterResource> availableZone_masterResources = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_MasterResource>();
                for (int j = 0; j < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].MasterResources.Length"); j++)
                {
                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_MasterResource masterResource = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_MasterResource();
                    masterResource.InstanceType = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].MasterResources[" + j + "].InstanceType");

                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_MasterResource.DescribeAvailableResource_InstanceTypeDetail1 instanceTypeDetail1 = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_MasterResource.DescribeAvailableResource_InstanceTypeDetail1();
                    instanceTypeDetail1.Cpu            = _ctx.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].MasterResources[" + j + "].InstanceTypeDetail.Cpu");
                    instanceTypeDetail1.Mem            = _ctx.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].MasterResources[" + j + "].InstanceTypeDetail.Mem");
                    masterResource.InstanceTypeDetail1 = instanceTypeDetail1;

                    availableZone_masterResources.Add(masterResource);
                }
                availableZone.MasterResources = availableZone_masterResources;

                describeAvailableResourceResponse_availableZones.Add(availableZone);
            }
            describeAvailableResourceResponse.AvailableZones = describeAvailableResourceResponse_availableZones;

            return(describeAvailableResourceResponse);
        }
        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");

            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");

                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;

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

            return(describeNetworkInterfacesResponse);
        }