public static QueryApplyStatusResponse Unmarshall(UnmarshallerContext context) { QueryApplyStatusResponse queryApplyStatusResponse = new QueryApplyStatusResponse(); queryApplyStatusResponse.HttpResponse = context.HttpResponse; queryApplyStatusResponse.RequestId = context.StringValue("QueryApplyStatus.RequestId"); queryApplyStatusResponse.Success = context.BooleanValue("QueryApplyStatus.Success"); queryApplyStatusResponse.ErrorMessage = context.StringValue("QueryApplyStatus.ErrorMessage"); queryApplyStatusResponse.Finish = context.BooleanValue("QueryApplyStatus.Finish"); return queryApplyStatusResponse; }
public static DescribeDomainRecordsResponse Unmarshall(UnmarshallerContext context) { DescribeDomainRecordsResponse describeDomainRecordsResponse = new DescribeDomainRecordsResponse(); describeDomainRecordsResponse.HttpResponse = context.HttpResponse; describeDomainRecordsResponse.RequestId = context.StringValue("DescribeDomainRecords.RequestId"); describeDomainRecordsResponse.TotalCount = context.LongValue("DescribeDomainRecords.TotalCount"); describeDomainRecordsResponse.PageNumber = context.LongValue("DescribeDomainRecords.PageNumber"); describeDomainRecordsResponse.PageSize = context.LongValue("DescribeDomainRecords.PageSize"); List<DescribeDomainRecordsResponse.Record> domainRecords = new List<DescribeDomainRecordsResponse.Record>(); for (int i = 0; i < context.Length("DescribeDomainRecords.DomainRecords.Length"); i++) { DescribeDomainRecordsResponse.Record record = new DescribeDomainRecordsResponse.Record(); record.DomainName = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].DomainName"); record.RecordId = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].RecordId"); record.RR = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].RR"); record.Type = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].Type"); record.Value = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].Value"); record.TTL = context.LongValue("DescribeDomainRecords.DomainRecords["+ i +"].TTL"); record.Priority = context.LongValue("DescribeDomainRecords.DomainRecords["+ i +"].Priority"); record.Line = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].Line"); record.Status = context.StringValue("DescribeDomainRecords.DomainRecords["+ i +"].Status"); record.Locked = context.BooleanValue("DescribeDomainRecords.DomainRecords["+ i +"].Locked"); record.Weight = context.IntegerValue("DescribeDomainRecords.DomainRecords["+ i +"].Weight"); domainRecords.Add(record); } describeDomainRecordsResponse.DomainRecords = domainRecords; return describeDomainRecordsResponse; }
public static 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 ListDevicePermitsResponse Unmarshall(UnmarshallerContext context) { ListDevicePermitsResponse listDevicePermitsResponse = new ListDevicePermitsResponse(); listDevicePermitsResponse.HttpResponse = context.HttpResponse; listDevicePermitsResponse.RequestId = context.StringValue("ListDevicePermits.RequestId"); listDevicePermitsResponse.Success = context.BooleanValue("ListDevicePermits.Success"); listDevicePermitsResponse.ErrorMessage = context.StringValue("ListDevicePermits.ErrorMessage"); List<ListDevicePermitsResponse.DevicePermission> devicePermissions = new List<ListDevicePermitsResponse.DevicePermission>(); for (int i = 0; i < context.Length("ListDevicePermits.DevicePermissions.Length"); i++) { ListDevicePermitsResponse.DevicePermission devicePermission = new ListDevicePermitsResponse.DevicePermission(); devicePermission.Id = context.LongValue("ListDevicePermits.DevicePermissions["+ i +"].Id"); devicePermission.AppKey = context.LongValue("ListDevicePermits.DevicePermissions["+ i +"].AppKey"); devicePermission.DeviceId = context.StringValue("ListDevicePermits.DevicePermissions["+ i +"].DeviceId"); devicePermission.GrantType = context.StringValue("ListDevicePermits.DevicePermissions["+ i +"].GrantType"); devicePermission.TopicFullName = context.StringValue("ListDevicePermits.DevicePermissions["+ i +"].TopicFullName"); devicePermission.TopicUserId = context.LongValue("ListDevicePermits.DevicePermissions["+ i +"].TopicUserId"); devicePermissions.Add(devicePermission); } listDevicePermitsResponse.DevicePermissions = devicePermissions; return listDevicePermitsResponse; }
public static CheckDomainRecordResponse Unmarshall(UnmarshallerContext context) { CheckDomainRecordResponse checkDomainRecordResponse = new CheckDomainRecordResponse(); checkDomainRecordResponse.HttpResponse = context.HttpResponse; checkDomainRecordResponse.RequestId = context.StringValue("CheckDomainRecord.RequestId"); checkDomainRecordResponse.IsExist = context.BooleanValue("CheckDomainRecord.IsExist"); return checkDomainRecordResponse; }
public static IsGreyUserResponse Unmarshall(UnmarshallerContext context) { IsGreyUserResponse isGreyUserResponse = new IsGreyUserResponse(); isGreyUserResponse.HttpResponse = context.HttpResponse; isGreyUserResponse.RequestId = context.StringValue("IsGreyUser.RequestId"); isGreyUserResponse.IsGreyUser = context.BooleanValue("IsGreyUser.IsGreyUser"); return isGreyUserResponse; }
public static CheckDeviceResponse Unmarshall(UnmarshallerContext context) { CheckDeviceResponse checkDeviceResponse = new CheckDeviceResponse(); checkDeviceResponse.HttpResponse = context.HttpResponse; checkDeviceResponse.RequestId = context.StringValue("CheckDevice.RequestId"); checkDeviceResponse.Available = context.BooleanValue("CheckDevice.Available"); return checkDeviceResponse; }
public static QueryPushDetailResponse Unmarshall(UnmarshallerContext context) { QueryPushDetailResponse queryPushDetailResponse = new QueryPushDetailResponse(); queryPushDetailResponse.HttpResponse = context.HttpResponse; queryPushDetailResponse.RequestId = context.StringValue("QueryPushDetail.RequestId"); queryPushDetailResponse.AppKey = context.LongValue("QueryPushDetail.AppKey"); queryPushDetailResponse.Target = context.StringValue("QueryPushDetail.Target"); queryPushDetailResponse.TargetValue = context.StringValue("QueryPushDetail.TargetValue"); queryPushDetailResponse.PushType = context.StringValue("QueryPushDetail.PushType"); queryPushDetailResponse.DeviceType = context.StringValue("QueryPushDetail.DeviceType"); queryPushDetailResponse.Title = context.StringValue("QueryPushDetail.Title"); queryPushDetailResponse.Body = context.StringValue("QueryPushDetail.Body"); queryPushDetailResponse.PushTime = context.StringValue("QueryPushDetail.PushTime"); queryPushDetailResponse.ExpireTime = context.StringValue("QueryPushDetail.ExpireTime"); queryPushDetailResponse.AntiHarassStartTime = context.IntegerValue("QueryPushDetail.AntiHarassStartTime"); queryPushDetailResponse.AntiHarassDuration = context.IntegerValue("QueryPushDetail.AntiHarassDuration"); queryPushDetailResponse.StoreOffline = context.BooleanValue("QueryPushDetail.StoreOffline"); queryPushDetailResponse.BatchNumber = context.StringValue("QueryPushDetail.BatchNumber"); queryPushDetailResponse.ProvinceId = context.StringValue("QueryPushDetail.ProvinceId"); queryPushDetailResponse.IOSApnsEnv = context.StringValue("QueryPushDetail.IOSApnsEnv"); queryPushDetailResponse.IOSRemind = context.BooleanValue("QueryPushDetail.IOSRemind"); queryPushDetailResponse.IOSRemindBody = context.StringValue("QueryPushDetail.IOSRemindBody"); queryPushDetailResponse.IOSBadge = context.IntegerValue("QueryPushDetail.IOSBadge"); queryPushDetailResponse.IOSMusic = context.StringValue("QueryPushDetail.IOSMusic"); queryPushDetailResponse.IOSSubtitle = context.StringValue("QueryPushDetail.IOSSubtitle"); queryPushDetailResponse.IOSNotificationCategory = context.StringValue("QueryPushDetail.IOSNotificationCategory"); queryPushDetailResponse.IOSMutableContent = context.BooleanValue("QueryPushDetail.IOSMutableContent"); queryPushDetailResponse.IOSExtParameters = context.StringValue("QueryPushDetail.IOSExtParameters"); queryPushDetailResponse.AndroidNotifyType = context.StringValue("QueryPushDetail.AndroidNotifyType"); queryPushDetailResponse.AndroidOpenType = context.StringValue("QueryPushDetail.AndroidOpenType"); queryPushDetailResponse.AndroidActivity = context.StringValue("QueryPushDetail.AndroidActivity"); queryPushDetailResponse.AndroidMusic = context.StringValue("QueryPushDetail.AndroidMusic"); queryPushDetailResponse.AndroidOpenUrl = context.StringValue("QueryPushDetail.AndroidOpenUrl"); queryPushDetailResponse.AndroidXiaoMiActivity = context.StringValue("QueryPushDetail.AndroidXiaoMiActivity"); queryPushDetailResponse.AndroidXiaoMiNotifyTitle = context.StringValue("QueryPushDetail.AndroidXiaoMiNotifyTitle"); queryPushDetailResponse.AndroidXiaoMiNotifyBody = context.StringValue("QueryPushDetail.AndroidXiaoMiNotifyBody"); queryPushDetailResponse.AndroidNotificationBarType = context.IntegerValue("QueryPushDetail.AndroidNotificationBarType"); queryPushDetailResponse.AndroidNotificationBarPriority = context.IntegerValue("QueryPushDetail.AndroidNotificationBarPriority"); queryPushDetailResponse.AndroidExtParameters = context.StringValue("QueryPushDetail.AndroidExtParameters"); return queryPushDetailResponse; }
public static ServerOnlineResponse Unmarshall(UnmarshallerContext context) { ServerOnlineResponse serverOnlineResponse = new ServerOnlineResponse(); serverOnlineResponse.HttpResponse = context.HttpResponse; serverOnlineResponse.RequestId = context.StringValue("ServerOnline.RequestId"); serverOnlineResponse.Success = context.BooleanValue("ServerOnline.Success"); serverOnlineResponse.ErrorMessage = context.StringValue("ServerOnline.ErrorMessage"); return serverOnlineResponse; }
public static UpdateProductResponse Unmarshall(UnmarshallerContext context) { UpdateProductResponse updateProductResponse = new UpdateProductResponse(); updateProductResponse.HttpResponse = context.HttpResponse; updateProductResponse.RequestId = context.StringValue("UpdateProduct.RequestId"); updateProductResponse.Success = context.BooleanValue("UpdateProduct.Success"); updateProductResponse.ErrorMessage = context.StringValue("UpdateProduct.ErrorMessage"); return updateProductResponse; }
public static DeviceGrantResponse Unmarshall(UnmarshallerContext context) { DeviceGrantResponse deviceGrantResponse = new DeviceGrantResponse(); deviceGrantResponse.HttpResponse = context.HttpResponse; deviceGrantResponse.RequestId = context.StringValue("DeviceGrant.RequestId"); deviceGrantResponse.Success = context.BooleanValue("DeviceGrant.Success"); deviceGrantResponse.ErrorMessage = context.StringValue("DeviceGrant.ErrorMessage"); return deviceGrantResponse; }
public static SubTopicFilterResponse Unmarshall(UnmarshallerContext context) { SubTopicFilterResponse subTopicFilterResponse = new SubTopicFilterResponse(); subTopicFilterResponse.HttpResponse = context.HttpResponse; subTopicFilterResponse.RequestId = context.StringValue("SubTopicFilter.RequestId"); subTopicFilterResponse.Success = context.BooleanValue("SubTopicFilter.Success"); subTopicFilterResponse.ErrorMessage = context.StringValue("SubTopicFilter.ErrorMessage"); return subTopicFilterResponse; }
public static UnSubResponse Unmarshall(UnmarshallerContext context) { UnSubResponse unSubResponse = new UnSubResponse(); unSubResponse.HttpResponse = context.HttpResponse; unSubResponse.RequestId = context.StringValue("UnSub.RequestId"); unSubResponse.Success = context.BooleanValue("UnSub.Success"); unSubResponse.ErrorMessage = context.StringValue("UnSub.ErrorMessage"); return unSubResponse; }
public static PubResponse Unmarshall(UnmarshallerContext context) { PubResponse pubResponse = new PubResponse(); pubResponse.HttpResponse = context.HttpResponse; pubResponse.RequestId = context.StringValue("Pub.RequestId"); pubResponse.Success = context.BooleanValue("Pub.Success"); pubResponse.ErrorMessage = context.StringValue("Pub.ErrorMessage"); return pubResponse; }
public static SetDNSSLBStatusResponse Unmarshall(UnmarshallerContext context) { SetDNSSLBStatusResponse setDNSSLBStatusResponse = new SetDNSSLBStatusResponse(); setDNSSLBStatusResponse.HttpResponse = context.HttpResponse; setDNSSLBStatusResponse.RequestId = context.StringValue("SetDNSSLBStatus.RequestId"); setDNSSLBStatusResponse.RecordCount = context.LongValue("SetDNSSLBStatus.RecordCount"); setDNSSLBStatusResponse.Open = context.BooleanValue("SetDNSSLBStatus.Open"); return setDNSSLBStatusResponse; }
public static RevertRpcResponse Unmarshall(UnmarshallerContext context) { RevertRpcResponse revertRpcResponse = new RevertRpcResponse(); revertRpcResponse.HttpResponse = context.HttpResponse; revertRpcResponse.RequestId = context.StringValue("RevertRpc.RequestId"); revertRpcResponse.Success = context.BooleanValue("RevertRpc.Success"); revertRpcResponse.RpcCode = context.StringValue("RevertRpc.RpcCode"); revertRpcResponse.ResponseContent = context.StringValue("RevertRpc.ResponseContent"); revertRpcResponse.ErrorMessage = context.StringValue("RevertRpc.ErrorMessage"); return revertRpcResponse; }
public static DescribeDBInstancesResponse Unmarshall(UnmarshallerContext context) { DescribeDBInstancesResponse describeDBInstancesResponse = new DescribeDBInstancesResponse(); describeDBInstancesResponse.HttpResponse = context.HttpResponse; describeDBInstancesResponse.RequestId = context.StringValue("DescribeDBInstances.RequestId"); describeDBInstancesResponse.PageNumber = context.IntegerValue("DescribeDBInstances.PageNumber"); describeDBInstancesResponse.TotalRecordCount = context.IntegerValue("DescribeDBInstances.TotalRecordCount"); describeDBInstancesResponse.PageRecordCount = context.IntegerValue("DescribeDBInstances.PageRecordCount"); List<DescribeDBInstancesResponse.DBInstance> items = new List<DescribeDBInstancesResponse.DBInstance>(); for (int i = 0; i < context.Length("DescribeDBInstances.Items.Length"); i++) { DescribeDBInstancesResponse.DBInstance dBInstance = new DescribeDBInstancesResponse.DBInstance(); dBInstance.InsId = context.IntegerValue("DescribeDBInstances.Items["+ i +"].InsId"); dBInstance.DBInstanceId = context.StringValue("DescribeDBInstances.Items["+ i +"].DBInstanceId"); dBInstance.DBInstanceDescription = context.StringValue("DescribeDBInstances.Items["+ i +"].DBInstanceDescription"); dBInstance.PayType = context.StringValue("DescribeDBInstances.Items["+ i +"].PayType"); dBInstance.DBInstanceType = context.EnumValue<DescribeDBInstancesResponse.DBInstance.DBInstanceTypeEnum>("DescribeDBInstances.Items["+ i +"].DBInstanceType"); dBInstance.RegionId = context.StringValue("DescribeDBInstances.Items["+ i +"].RegionId"); dBInstance.ExpireTime = context.StringValue("DescribeDBInstances.Items["+ i +"].ExpireTime"); dBInstance.DBInstanceStatus = context.EnumValue<DescribeDBInstancesResponse.DBInstance.DBInstanceStatusEnum>("DescribeDBInstances.Items["+ i +"].DBInstanceStatus"); dBInstance.Engine = context.StringValue("DescribeDBInstances.Items["+ i +"].Engine"); dBInstance.DBInstanceNetType = context.EnumValue<DescribeDBInstancesResponse.DBInstance.DBInstanceNetTypeEnum>("DescribeDBInstances.Items["+ i +"].DBInstanceNetType"); dBInstance.ConnectionMode = context.EnumValue<DescribeDBInstancesResponse.DBInstance.ConnectionModeEnum>("DescribeDBInstances.Items["+ i +"].ConnectionMode"); dBInstance.LockMode = context.EnumValue<DescribeDBInstancesResponse.DBInstance.LockModeEnum>("DescribeDBInstances.Items["+ i +"].LockMode"); dBInstance.InstanceNetworkType = context.StringValue("DescribeDBInstances.Items["+ i +"].InstanceNetworkType"); dBInstance.LockReason = context.StringValue("DescribeDBInstances.Items["+ i +"].LockReason"); dBInstance.ZoneId = context.StringValue("DescribeDBInstances.Items["+ i +"].ZoneId"); dBInstance.MutriORsignle = context.BooleanValue("DescribeDBInstances.Items["+ i +"].MutriORsignle"); dBInstance.CreateTime = context.StringValue("DescribeDBInstances.Items["+ i +"].CreateTime"); dBInstance.EngineVersion = context.StringValue("DescribeDBInstances.Items["+ i +"].EngineVersion"); dBInstance.GuardDBInstanceId = context.StringValue("DescribeDBInstances.Items["+ i +"].GuardDBInstanceId"); dBInstance.TempDBInstanceId = context.StringValue("DescribeDBInstances.Items["+ i +"].TempDBInstanceId"); dBInstance.MasterInstanceId = context.StringValue("DescribeDBInstances.Items["+ i +"].MasterInstanceId"); dBInstance.VpcId = context.StringValue("DescribeDBInstances.Items["+ i +"].VpcId"); List<DescribeDBInstancesResponse.DBInstance.ReadOnlyDBInstanceId> readOnlyDBInstanceIds = new List<DescribeDBInstancesResponse.DBInstance.ReadOnlyDBInstanceId>(); for (int j = 0; j < context.Length("DescribeDBInstances.Items["+ i +"].ReadOnlyDBInstanceIds.Length"); j++) { DescribeDBInstancesResponse.DBInstance.ReadOnlyDBInstanceId readOnlyDBInstanceId = new DescribeDBInstancesResponse.DBInstance.ReadOnlyDBInstanceId(); readOnlyDBInstanceId.DBInstanceId = context.StringValue("DescribeDBInstances.Items["+ i +"].ReadOnlyDBInstanceIds["+ j +"].DBInstanceId"); readOnlyDBInstanceIds.Add(readOnlyDBInstanceId); } dBInstance.ReadOnlyDBInstanceIds = readOnlyDBInstanceIds; items.Add(dBInstance); } describeDBInstancesResponse.Items = items; return describeDBInstancesResponse; }
public static QueryAppConfigResponse Unmarshall(UnmarshallerContext context) { QueryAppConfigResponse queryAppConfigResponse = new QueryAppConfigResponse(); queryAppConfigResponse.HttpResponse = context.HttpResponse; queryAppConfigResponse.RequestId = context.StringValue("QueryAppConfig.RequestId"); QueryAppConfigResponse.AppConfig_ appConfig = new QueryAppConfigResponse.AppConfig_(); appConfig.AppKey = context.LongValue("QueryAppConfig.AppConfig.AppKey"); appConfig.AppId = context.StringValue("QueryAppConfig.AppConfig.AppId"); appConfig.AppName = context.StringValue("QueryAppConfig.AppConfig.AppName"); appConfig.BundleId = context.StringValue("QueryAppConfig.AppConfig.BundleId"); appConfig.PackageName = context.StringValue("QueryAppConfig.AppConfig.PackageName"); appConfig.BoxFlag = context.BooleanValue("QueryAppConfig.AppConfig.BoxFlag"); appConfig.Android = context.BooleanValue("QueryAppConfig.AppConfig.Android"); appConfig.IOS = context.BooleanValue("QueryAppConfig.AppConfig.IOS"); appConfig.ProductCertKey = context.StringValue("QueryAppConfig.AppConfig.ProductCertKey"); appConfig.ProductCertPass = context.StringValue("QueryAppConfig.AppConfig.ProductCertPass"); appConfig.DevCertKey = context.StringValue("QueryAppConfig.AppConfig.DevCertKey"); appConfig.DevCertPass = context.StringValue("QueryAppConfig.AppConfig.DevCertPass"); queryAppConfigResponse.AppConfig = appConfig; return queryAppConfigResponse; }
public static RegistDeviceResponse Unmarshall(UnmarshallerContext context) { RegistDeviceResponse registDeviceResponse = new RegistDeviceResponse(); registDeviceResponse.HttpResponse = context.HttpResponse; registDeviceResponse.RequestId = context.StringValue("RegistDevice.RequestId"); registDeviceResponse.Success = context.BooleanValue("RegistDevice.Success"); registDeviceResponse.ErrorMessage = context.StringValue("RegistDevice.ErrorMessage"); registDeviceResponse.DeviceId = context.StringValue("RegistDevice.DeviceId"); registDeviceResponse.DeviceName = context.StringValue("RegistDevice.DeviceName"); registDeviceResponse.DeviceSecret = context.StringValue("RegistDevice.DeviceSecret"); registDeviceResponse.DeviceStatus = context.StringValue("RegistDevice.DeviceStatus"); return registDeviceResponse; }
public static ValidateAppCertResponse Unmarshall(UnmarshallerContext context) { ValidateAppCertResponse validateAppCertResponse = new ValidateAppCertResponse(); validateAppCertResponse.HttpResponse = context.HttpResponse; validateAppCertResponse.RequestId = context.StringValue("ValidateAppCert.RequestId"); ValidateAppCertResponse.AppCertInfo_ appCertInfo = new ValidateAppCertResponse.AppCertInfo_(); appCertInfo.AppName = context.StringValue("ValidateAppCert.AppCertInfo.AppName"); appCertInfo.CertType = context.StringValue("ValidateAppCert.AppCertInfo.CertType"); appCertInfo.DevCert = context.BooleanValue("ValidateAppCert.AppCertInfo.DevCert"); appCertInfo.ExpirationDate = context.LongValue("ValidateAppCert.AppCertInfo.ExpirationDate"); appCertInfo.GenerateDate = context.LongValue("ValidateAppCert.AppCertInfo.GenerateDate"); validateAppCertResponse.AppCertInfo = appCertInfo; return validateAppCertResponse; }
public static GetDeviceInfosResponse Unmarshall(UnmarshallerContext context) { GetDeviceInfosResponse getDeviceInfosResponse = new GetDeviceInfosResponse(); getDeviceInfosResponse.HttpResponse = context.HttpResponse; List<GetDeviceInfosResponse.DeviceInfo> deviceInfos = new List<GetDeviceInfosResponse.DeviceInfo>(); for (int i = 0; i < context.Length("GetDeviceInfos.DeviceInfos.Length"); i++) { GetDeviceInfosResponse.DeviceInfo deviceInfo = new GetDeviceInfosResponse.DeviceInfo(); deviceInfo.DeviceId = context.StringValue("GetDeviceInfos.DeviceInfos["+ i +"].DeviceId"); deviceInfo.IsOnline = context.BooleanValue("GetDeviceInfos.DeviceInfos["+ i +"].IsOnline"); deviceInfos.Add(deviceInfo); } getDeviceInfosResponse.DeviceInfos = deviceInfos; return getDeviceInfosResponse; }
public static QueryDeviceInfoResponse Unmarshall(UnmarshallerContext context) { QueryDeviceInfoResponse queryDeviceInfoResponse = new QueryDeviceInfoResponse(); queryDeviceInfoResponse.HttpResponse = context.HttpResponse; queryDeviceInfoResponse.RequestId = context.StringValue("QueryDeviceInfo.RequestId"); QueryDeviceInfoResponse.DeviceInfo_ deviceInfo = new QueryDeviceInfoResponse.DeviceInfo_(); deviceInfo.DeviceId = context.StringValue("QueryDeviceInfo.DeviceInfo.DeviceId"); deviceInfo.DeviceType = context.StringValue("QueryDeviceInfo.DeviceInfo.DeviceType"); deviceInfo.Account = context.StringValue("QueryDeviceInfo.DeviceInfo.Account"); deviceInfo.DeviceToken = context.StringValue("QueryDeviceInfo.DeviceInfo.DeviceToken"); deviceInfo.Tags = context.StringValue("QueryDeviceInfo.DeviceInfo.Tags"); deviceInfo.Alias = context.StringValue("QueryDeviceInfo.DeviceInfo.Alias"); deviceInfo.LastOnlineTime = context.StringValue("QueryDeviceInfo.DeviceInfo.LastOnlineTime"); deviceInfo.Online = context.BooleanValue("QueryDeviceInfo.DeviceInfo.Online"); queryDeviceInfoResponse.DeviceInfo = deviceInfo; return queryDeviceInfoResponse; }
public static ListAllMediaBucketResponse Unmarshall(UnmarshallerContext context) { ListAllMediaBucketResponse listAllMediaBucketResponse = new ListAllMediaBucketResponse(); listAllMediaBucketResponse.HttpResponse = context.HttpResponse; listAllMediaBucketResponse.RequestId = context.StringValue("ListAllMediaBucket.RequestId"); List<ListAllMediaBucketResponse.MediaBucket> mediaBucketList = new List<ListAllMediaBucketResponse.MediaBucket>(); for (int i = 0; i < context.Length("ListAllMediaBucket.MediaBucketList.Length"); i++) { ListAllMediaBucketResponse.MediaBucket mediaBucket = new ListAllMediaBucketResponse.MediaBucket(); mediaBucket.Bucket = context.StringValue("ListAllMediaBucket.MediaBucketList["+ i +"].Bucket"); mediaBucket.Type = context.StringValue("ListAllMediaBucket.MediaBucketList["+ i +"].Type"); mediaBucket.Sync = context.BooleanValue("ListAllMediaBucket.MediaBucketList["+ i +"].Sync"); mediaBucketList.Add(mediaBucket); } listAllMediaBucketResponse.MediaBucketList = mediaBucketList; return listAllMediaBucketResponse; }
public static QueryDeviceByNameResponse Unmarshall(UnmarshallerContext context) { QueryDeviceByNameResponse queryDeviceByNameResponse = new QueryDeviceByNameResponse(); queryDeviceByNameResponse.HttpResponse = context.HttpResponse; queryDeviceByNameResponse.RequestId = context.StringValue("QueryDeviceByName.RequestId"); queryDeviceByNameResponse.Success = context.BooleanValue("QueryDeviceByName.Success"); queryDeviceByNameResponse.ErrorMessage = context.StringValue("QueryDeviceByName.ErrorMessage"); QueryDeviceByNameResponse.DeviceInfo_ deviceInfo = new QueryDeviceByNameResponse.DeviceInfo_(); deviceInfo.DeviceId = context.StringValue("QueryDeviceByName.DeviceInfo.DeviceId"); deviceInfo.DeviceSecret = context.StringValue("QueryDeviceByName.DeviceInfo.DeviceSecret"); deviceInfo.ProductKey = context.StringValue("QueryDeviceByName.DeviceInfo.ProductKey"); deviceInfo.DeviceStatus = context.StringValue("QueryDeviceByName.DeviceInfo.DeviceStatus"); deviceInfo.DeviceName = context.StringValue("QueryDeviceByName.DeviceInfo.DeviceName"); deviceInfo.GmtCreate = context.StringValue("QueryDeviceByName.DeviceInfo.GmtCreate"); deviceInfo.GmtModified = context.StringValue("QueryDeviceByName.DeviceInfo.GmtModified"); queryDeviceByNameResponse.DeviceInfo = deviceInfo; return queryDeviceByNameResponse; }
public static DescribeDNSSLBSubDomainsResponse Unmarshall(UnmarshallerContext context) { DescribeDNSSLBSubDomainsResponse describeDNSSLBSubDomainsResponse = new DescribeDNSSLBSubDomainsResponse(); describeDNSSLBSubDomainsResponse.HttpResponse = context.HttpResponse; describeDNSSLBSubDomainsResponse.RequestId = context.StringValue("DescribeDNSSLBSubDomains.RequestId"); describeDNSSLBSubDomainsResponse.TotalCount = context.LongValue("DescribeDNSSLBSubDomains.TotalCount"); describeDNSSLBSubDomainsResponse.PageNumber = context.LongValue("DescribeDNSSLBSubDomains.PageNumber"); describeDNSSLBSubDomainsResponse.PageSize = context.LongValue("DescribeDNSSLBSubDomains.PageSize"); List<DescribeDNSSLBSubDomainsResponse.SlbSubDomain> slbSubDomains = new List<DescribeDNSSLBSubDomainsResponse.SlbSubDomain>(); for (int i = 0; i < context.Length("DescribeDNSSLBSubDomains.SlbSubDomains.Length"); i++) { DescribeDNSSLBSubDomainsResponse.SlbSubDomain slbSubDomain = new DescribeDNSSLBSubDomainsResponse.SlbSubDomain(); slbSubDomain.SubDomain = context.StringValue("DescribeDNSSLBSubDomains.SlbSubDomains["+ i +"].SubDomain"); slbSubDomain.RecordCount = context.LongValue("DescribeDNSSLBSubDomains.SlbSubDomains["+ i +"].RecordCount"); slbSubDomain.Open = context.BooleanValue("DescribeDNSSLBSubDomains.SlbSubDomains["+ i +"].Open"); slbSubDomains.Add(slbSubDomain); } describeDNSSLBSubDomainsResponse.SlbSubDomains = slbSubDomains; return describeDNSSLBSubDomainsResponse; }
public static BatchGetDeviceStateResponse Unmarshall(UnmarshallerContext context) { BatchGetDeviceStateResponse batchGetDeviceStateResponse = new BatchGetDeviceStateResponse(); batchGetDeviceStateResponse.HttpResponse = context.HttpResponse; batchGetDeviceStateResponse.RequestId = context.StringValue("BatchGetDeviceState.RequestId"); batchGetDeviceStateResponse.Success = context.BooleanValue("BatchGetDeviceState.Success"); batchGetDeviceStateResponse.ErrorMessage = context.StringValue("BatchGetDeviceState.ErrorMessage"); List<BatchGetDeviceStateResponse.DeviceStatus> deviceStatusList = new List<BatchGetDeviceStateResponse.DeviceStatus>(); for (int i = 0; i < context.Length("BatchGetDeviceState.DeviceStatusList.Length"); i++) { BatchGetDeviceStateResponse.DeviceStatus deviceStatus = new BatchGetDeviceStateResponse.DeviceStatus(); deviceStatus.DeviceId = context.StringValue("BatchGetDeviceState.DeviceStatusList["+ i +"].DeviceId"); deviceStatus.DeviceName = context.StringValue("BatchGetDeviceState.DeviceStatusList["+ i +"].DeviceName"); deviceStatus.Status = context.StringValue("BatchGetDeviceState.DeviceStatusList["+ i +"].Status"); deviceStatus.AsAddress = context.StringValue("BatchGetDeviceState.DeviceStatusList["+ i +"].AsAddress"); deviceStatusList.Add(deviceStatus); } batchGetDeviceStateResponse.DeviceStatusList = deviceStatusList; return batchGetDeviceStateResponse; }
public static CreateProductResponse Unmarshall(UnmarshallerContext context) { CreateProductResponse createProductResponse = new CreateProductResponse(); createProductResponse.HttpResponse = context.HttpResponse; createProductResponse.RequestId = context.StringValue("CreateProduct.RequestId"); createProductResponse.Success = context.BooleanValue("CreateProduct.Success"); createProductResponse.ErrorMessage = context.StringValue("CreateProduct.ErrorMessage"); CreateProductResponse.ProductInfo_ productInfo = new CreateProductResponse.ProductInfo_(); productInfo.ProductKey = context.StringValue("CreateProduct.ProductInfo.ProductKey"); productInfo.ProductName = context.StringValue("CreateProduct.ProductInfo.ProductName"); productInfo.CatId = context.LongValue("CreateProduct.ProductInfo.CatId"); productInfo.CreateUserId = context.LongValue("CreateProduct.ProductInfo.CreateUserId"); productInfo.ProductDesc = context.StringValue("CreateProduct.ProductInfo.ProductDesc"); productInfo.FromSource = context.StringValue("CreateProduct.ProductInfo.FromSource"); productInfo.ExtProps = context.StringValue("CreateProduct.ProductInfo.ExtProps"); productInfo.GmtCreate = context.StringValue("CreateProduct.ProductInfo.GmtCreate"); productInfo.GmtModified = context.StringValue("CreateProduct.ProductInfo.GmtModified"); createProductResponse.ProductInfo = productInfo; return createProductResponse; }
public static GetNatGatewayAttributeResponse Unmarshall(UnmarshallerContext _ctx) { GetNatGatewayAttributeResponse getNatGatewayAttributeResponse = new GetNatGatewayAttributeResponse(); getNatGatewayAttributeResponse.HttpResponse = _ctx.HttpResponse; getNatGatewayAttributeResponse.RequestId = _ctx.StringValue("GetNatGatewayAttribute.RequestId"); getNatGatewayAttributeResponse.Description = _ctx.StringValue("GetNatGatewayAttribute.Description"); getNatGatewayAttributeResponse.NatType = _ctx.StringValue("GetNatGatewayAttribute.NatType"); getNatGatewayAttributeResponse.EcsMetricEnabled = _ctx.BooleanValue("GetNatGatewayAttribute.EcsMetricEnabled"); getNatGatewayAttributeResponse.VpcId = _ctx.StringValue("GetNatGatewayAttribute.VpcId"); getNatGatewayAttributeResponse.NatGatewayId = _ctx.StringValue("GetNatGatewayAttribute.NatGatewayId"); getNatGatewayAttributeResponse.CreationTime = _ctx.StringValue("GetNatGatewayAttribute.CreationTime"); getNatGatewayAttributeResponse.ExpiredTime = _ctx.StringValue("GetNatGatewayAttribute.ExpiredTime"); getNatGatewayAttributeResponse.Name = _ctx.StringValue("GetNatGatewayAttribute.Name"); getNatGatewayAttributeResponse.Status = _ctx.StringValue("GetNatGatewayAttribute.Status"); getNatGatewayAttributeResponse.BusinessStatus = _ctx.StringValue("GetNatGatewayAttribute.BusinessStatus"); getNatGatewayAttributeResponse.RegionId = _ctx.StringValue("GetNatGatewayAttribute.RegionId"); getNatGatewayAttributeResponse.ResourceGroupId = _ctx.StringValue("GetNatGatewayAttribute.ResourceGroupId"); GetNatGatewayAttributeResponse.GetNatGatewayAttribute_ForwardTable forwardTable = new GetNatGatewayAttributeResponse.GetNatGatewayAttribute_ForwardTable(); forwardTable.ForwardTableId = _ctx.StringValue("GetNatGatewayAttribute.ForwardTable.ForwardTableId"); forwardTable.ForwardEntryCount = _ctx.IntegerValue("GetNatGatewayAttribute.ForwardTable.ForwardEntryCount"); getNatGatewayAttributeResponse.ForwardTable = forwardTable; GetNatGatewayAttributeResponse.GetNatGatewayAttribute_SnatTable snatTable = new GetNatGatewayAttributeResponse.GetNatGatewayAttribute_SnatTable(); snatTable.SnatTableId = _ctx.StringValue("GetNatGatewayAttribute.SnatTable.SnatTableId"); snatTable.SnatEntryCount = _ctx.IntegerValue("GetNatGatewayAttribute.SnatTable.SnatEntryCount"); getNatGatewayAttributeResponse.SnatTable = snatTable; GetNatGatewayAttributeResponse.GetNatGatewayAttribute_BillingConfig billingConfig = new GetNatGatewayAttributeResponse.GetNatGatewayAttribute_BillingConfig(); billingConfig.Spec = _ctx.StringValue("GetNatGatewayAttribute.BillingConfig.Spec"); billingConfig.InternetChargeType = _ctx.StringValue("GetNatGatewayAttribute.BillingConfig.InternetChargeType"); billingConfig.InstanceChargeType = _ctx.StringValue("GetNatGatewayAttribute.BillingConfig.InstanceChargeType"); billingConfig.AutoPay = _ctx.StringValue("GetNatGatewayAttribute.BillingConfig.AutoPay"); getNatGatewayAttributeResponse.BillingConfig = billingConfig; GetNatGatewayAttributeResponse.GetNatGatewayAttribute_PrivateInfo privateInfo = new GetNatGatewayAttributeResponse.GetNatGatewayAttribute_PrivateInfo(); privateInfo.EniInstanceId = _ctx.StringValue("GetNatGatewayAttribute.PrivateInfo.EniInstanceId"); privateInfo.IzNo = _ctx.StringValue("GetNatGatewayAttribute.PrivateInfo.IzNo"); privateInfo.MaxBandwidth = _ctx.IntegerValue("GetNatGatewayAttribute.PrivateInfo.MaxBandwidth"); privateInfo.PrivateIpAddress = _ctx.StringValue("GetNatGatewayAttribute.PrivateInfo.PrivateIpAddress"); privateInfo.VswitchId = _ctx.StringValue("GetNatGatewayAttribute.PrivateInfo.VswitchId"); getNatGatewayAttributeResponse.PrivateInfo = privateInfo; GetNatGatewayAttributeResponse.GetNatGatewayAttribute_DeletionProtectionInfo deletionProtectionInfo = new GetNatGatewayAttributeResponse.GetNatGatewayAttribute_DeletionProtectionInfo(); deletionProtectionInfo.Enabled = _ctx.BooleanValue("GetNatGatewayAttribute.DeletionProtectionInfo.Enabled"); getNatGatewayAttributeResponse.DeletionProtectionInfo = deletionProtectionInfo; List <GetNatGatewayAttributeResponse.GetNatGatewayAttribute_IpListItem> getNatGatewayAttributeResponse_ipList = new List <GetNatGatewayAttributeResponse.GetNatGatewayAttribute_IpListItem>(); for (int i = 0; i < _ctx.Length("GetNatGatewayAttribute.IpList.Length"); i++) { GetNatGatewayAttributeResponse.GetNatGatewayAttribute_IpListItem ipListItem = new GetNatGatewayAttributeResponse.GetNatGatewayAttribute_IpListItem(); ipListItem.IpAddress = _ctx.StringValue("GetNatGatewayAttribute.IpList[" + i + "].IpAddress"); ipListItem.AllocationId = _ctx.StringValue("GetNatGatewayAttribute.IpList[" + i + "].AllocationId"); ipListItem.UsingStatus = _ctx.StringValue("GetNatGatewayAttribute.IpList[" + i + "].UsingStatus"); getNatGatewayAttributeResponse_ipList.Add(ipListItem); } getNatGatewayAttributeResponse.IpList = getNatGatewayAttributeResponse_ipList; return(getNatGatewayAttributeResponse); }
public static DescribeEipAddressesResponse Unmarshall(UnmarshallerContext context) { DescribeEipAddressesResponse describeEipAddressesResponse = new DescribeEipAddressesResponse(); describeEipAddressesResponse.HttpResponse = context.HttpResponse; describeEipAddressesResponse.RequestId = context.StringValue("DescribeEipAddresses.RequestId"); describeEipAddressesResponse.TotalCount = context.IntegerValue("DescribeEipAddresses.TotalCount"); describeEipAddressesResponse.PageNumber = context.IntegerValue("DescribeEipAddresses.PageNumber"); describeEipAddressesResponse.PageSize = context.IntegerValue("DescribeEipAddresses.PageSize"); List <DescribeEipAddressesResponse.DescribeEipAddresses_EipAddress> describeEipAddressesResponse_eipAddresses = new List <DescribeEipAddressesResponse.DescribeEipAddresses_EipAddress>(); for (int i = 0; i < context.Length("DescribeEipAddresses.EipAddresses.Length"); i++) { DescribeEipAddressesResponse.DescribeEipAddresses_EipAddress eipAddress = new DescribeEipAddressesResponse.DescribeEipAddresses_EipAddress(); eipAddress.RegionId = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].RegionId"); eipAddress.IpAddress = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].IpAddress"); eipAddress.PrivateIpAddress = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].PrivateIpAddress"); eipAddress.AllocationId = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].AllocationId"); eipAddress.Status = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].Status"); eipAddress.InstanceId = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].InstanceId"); eipAddress.Bandwidth = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].Bandwidth"); eipAddress.EipBandwidth = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].EipBandwidth"); eipAddress.InternetChargeType = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].InternetChargeType"); eipAddress.AllocationTime = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].AllocationTime"); eipAddress.InstanceType = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].InstanceType"); eipAddress.InstanceRegionId = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].InstanceRegionId"); eipAddress.ChargeType = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].ChargeType"); eipAddress.ExpiredTime = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].ExpiredTime"); eipAddress.HDMonitorStatus = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].HDMonitorStatus"); eipAddress.Name = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].Name"); eipAddress.ISP = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].ISP"); eipAddress.Descritpion = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].Descritpion"); eipAddress.BandwidthPackageId = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].BandwidthPackageId"); eipAddress.BandwidthPackageType = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].BandwidthPackageType"); eipAddress.BandwidthPackageBandwidth = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].BandwidthPackageBandwidth"); eipAddress.ResourceGroupId = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].ResourceGroupId"); eipAddress.HasReservationData = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].HasReservationData"); eipAddress.ReservationBandwidth = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].ReservationBandwidth"); eipAddress.ReservationInternetChargeType = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].ReservationInternetChargeType"); eipAddress.ReservationActiveTime = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].ReservationActiveTime"); eipAddress.ReservationOrderType = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].ReservationOrderType"); eipAddress.Mode = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].Mode"); eipAddress.DeletionProtection = context.BooleanValue("DescribeEipAddresses.EipAddresses[" + i + "].DeletionProtection"); eipAddress.SecondLimited = context.BooleanValue("DescribeEipAddresses.EipAddresses[" + i + "].SecondLimited"); List <string> eipAddress_availableRegions = new List <string>(); for (int j = 0; j < context.Length("DescribeEipAddresses.EipAddresses[" + i + "].AvailableRegions.Length"); j++) { eipAddress_availableRegions.Add(context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].AvailableRegions[" + j + "]")); } eipAddress.AvailableRegions = eipAddress_availableRegions; List <DescribeEipAddressesResponse.DescribeEipAddresses_EipAddress.DescribeEipAddresses_LockReason> eipAddress_operationLocks = new List <DescribeEipAddressesResponse.DescribeEipAddresses_EipAddress.DescribeEipAddresses_LockReason>(); for (int j = 0; j < context.Length("DescribeEipAddresses.EipAddresses[" + i + "].OperationLocks.Length"); j++) { DescribeEipAddressesResponse.DescribeEipAddresses_EipAddress.DescribeEipAddresses_LockReason lockReason = new DescribeEipAddressesResponse.DescribeEipAddresses_EipAddress.DescribeEipAddresses_LockReason(); lockReason.LockReason = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].OperationLocks[" + j + "].LockReason"); eipAddress_operationLocks.Add(lockReason); } eipAddress.OperationLocks = eipAddress_operationLocks; List <DescribeEipAddressesResponse.DescribeEipAddresses_EipAddress.DescribeEipAddresses_Tag> eipAddress_tags = new List <DescribeEipAddressesResponse.DescribeEipAddresses_EipAddress.DescribeEipAddresses_Tag>(); for (int j = 0; j < context.Length("DescribeEipAddresses.EipAddresses[" + i + "].Tags.Length"); j++) { DescribeEipAddressesResponse.DescribeEipAddresses_EipAddress.DescribeEipAddresses_Tag tag = new DescribeEipAddressesResponse.DescribeEipAddresses_EipAddress.DescribeEipAddresses_Tag(); tag.Key = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].Tags[" + j + "].Key"); tag._Value = context.StringValue("DescribeEipAddresses.EipAddresses[" + i + "].Tags[" + j + "]._Value"); eipAddress_tags.Add(tag); } eipAddress.Tags = eipAddress_tags; describeEipAddressesResponse_eipAddresses.Add(eipAddress); } describeEipAddressesResponse.EipAddresses = describeEipAddressesResponse_eipAddresses; return(describeEipAddressesResponse); }
public static DescribeApiHistoryResponse Unmarshall(UnmarshallerContext context) { DescribeApiHistoryResponse describeApiHistoryResponse = new DescribeApiHistoryResponse(); describeApiHistoryResponse.HttpResponse = context.HttpResponse; describeApiHistoryResponse.RequestId = context.StringValue("DescribeApiHistory.RequestId"); describeApiHistoryResponse.RegionId = context.StringValue("DescribeApiHistory.RegionId"); describeApiHistoryResponse.GroupId = context.StringValue("DescribeApiHistory.GroupId"); describeApiHistoryResponse.GroupName = context.StringValue("DescribeApiHistory.GroupName"); describeApiHistoryResponse.StageName = context.StringValue("DescribeApiHistory.StageName"); describeApiHistoryResponse.ApiId = context.StringValue("DescribeApiHistory.ApiId"); describeApiHistoryResponse.ApiName = context.StringValue("DescribeApiHistory.ApiName"); describeApiHistoryResponse.Description = context.StringValue("DescribeApiHistory.Description"); describeApiHistoryResponse.HistoryVersion = context.StringValue("DescribeApiHistory.HistoryVersion"); describeApiHistoryResponse.Status = context.StringValue("DescribeApiHistory.Status"); describeApiHistoryResponse.Visibility = context.StringValue("DescribeApiHistory.Visibility"); describeApiHistoryResponse.AuthType = context.StringValue("DescribeApiHistory.AuthType"); describeApiHistoryResponse.ResultType = context.StringValue("DescribeApiHistory.ResultType"); describeApiHistoryResponse.ResultSample = context.StringValue("DescribeApiHistory.ResultSample"); describeApiHistoryResponse.FailResultSample = context.StringValue("DescribeApiHistory.FailResultSample"); describeApiHistoryResponse.DeployedTime = context.StringValue("DescribeApiHistory.DeployedTime"); describeApiHistoryResponse.AllowSignatureMethod = context.StringValue("DescribeApiHistory.AllowSignatureMethod"); describeApiHistoryResponse.ResultBodyModel = context.StringValue("DescribeApiHistory.ResultBodyModel"); DescribeApiHistoryResponse.DescribeApiHistory_RequestConfig requestConfig = new DescribeApiHistoryResponse.DescribeApiHistory_RequestConfig(); requestConfig.RequestProtocol = context.StringValue("DescribeApiHistory.RequestConfig.RequestProtocol"); requestConfig.RequestHttpMethod = context.StringValue("DescribeApiHistory.RequestConfig.RequestHttpMethod"); requestConfig.RequestPath = context.StringValue("DescribeApiHistory.RequestConfig.RequestPath"); requestConfig.BodyFormat = context.StringValue("DescribeApiHistory.RequestConfig.BodyFormat"); requestConfig.PostBodyDescription = context.StringValue("DescribeApiHistory.RequestConfig.PostBodyDescription"); requestConfig.RequestMode = context.StringValue("DescribeApiHistory.RequestConfig.RequestMode"); requestConfig.BodyModel = context.StringValue("DescribeApiHistory.RequestConfig.BodyModel"); describeApiHistoryResponse.RequestConfig = requestConfig; DescribeApiHistoryResponse.DescribeApiHistory_ServiceConfig serviceConfig = new DescribeApiHistoryResponse.DescribeApiHistory_ServiceConfig(); serviceConfig.ServiceProtocol = context.StringValue("DescribeApiHistory.ServiceConfig.ServiceProtocol"); serviceConfig.ServiceAddress = context.StringValue("DescribeApiHistory.ServiceConfig.ServiceAddress"); serviceConfig.ServiceHttpMethod = context.StringValue("DescribeApiHistory.ServiceConfig.ServiceHttpMethod"); serviceConfig.ServicePath = context.StringValue("DescribeApiHistory.ServiceConfig.ServicePath"); serviceConfig.ServiceTimeout = context.IntegerValue("DescribeApiHistory.ServiceConfig.ServiceTimeout"); serviceConfig.Mock = context.StringValue("DescribeApiHistory.ServiceConfig.Mock"); serviceConfig.MockResult = context.StringValue("DescribeApiHistory.ServiceConfig.MockResult"); serviceConfig.ServiceVpcEnable = context.StringValue("DescribeApiHistory.ServiceConfig.ServiceVpcEnable"); serviceConfig.MockStatusCode = context.IntegerValue("DescribeApiHistory.ServiceConfig.MockStatusCode"); DescribeApiHistoryResponse.DescribeApiHistory_ServiceConfig.DescribeApiHistory_VpcConfig vpcConfig = new DescribeApiHistoryResponse.DescribeApiHistory_ServiceConfig.DescribeApiHistory_VpcConfig(); vpcConfig.Name = context.StringValue("DescribeApiHistory.ServiceConfig.VpcConfig.Name"); vpcConfig.VpcId = context.StringValue("DescribeApiHistory.ServiceConfig.VpcConfig.VpcId"); vpcConfig.InstanceId = context.StringValue("DescribeApiHistory.ServiceConfig.VpcConfig.InstanceId"); vpcConfig.Port = context.IntegerValue("DescribeApiHistory.ServiceConfig.VpcConfig.Port"); serviceConfig.VpcConfig = vpcConfig; List <DescribeApiHistoryResponse.DescribeApiHistory_ServiceConfig.DescribeApiHistory_MockHeader> serviceConfig_mockHeaders = new List <DescribeApiHistoryResponse.DescribeApiHistory_ServiceConfig.DescribeApiHistory_MockHeader>(); for (int i = 0; i < context.Length("DescribeApiHistory.ServiceConfig.MockHeaders.Length"); i++) { DescribeApiHistoryResponse.DescribeApiHistory_ServiceConfig.DescribeApiHistory_MockHeader mockHeader = new DescribeApiHistoryResponse.DescribeApiHistory_ServiceConfig.DescribeApiHistory_MockHeader(); mockHeader.HeaderName = context.StringValue("DescribeApiHistory.ServiceConfig.MockHeaders[" + i + "].HeaderName"); mockHeader.HeaderValue = context.StringValue("DescribeApiHistory.ServiceConfig.MockHeaders[" + i + "].HeaderValue"); serviceConfig_mockHeaders.Add(mockHeader); } serviceConfig.MockHeaders = serviceConfig_mockHeaders; describeApiHistoryResponse.ServiceConfig = serviceConfig; DescribeApiHistoryResponse.DescribeApiHistory_OpenIdConnectConfig openIdConnectConfig = new DescribeApiHistoryResponse.DescribeApiHistory_OpenIdConnectConfig(); openIdConnectConfig.OpenIdApiType = context.StringValue("DescribeApiHistory.OpenIdConnectConfig.OpenIdApiType"); openIdConnectConfig.IdTokenParamName = context.StringValue("DescribeApiHistory.OpenIdConnectConfig.IdTokenParamName"); openIdConnectConfig.PublicKeyId = context.StringValue("DescribeApiHistory.OpenIdConnectConfig.PublicKeyId"); openIdConnectConfig.PublicKey = context.StringValue("DescribeApiHistory.OpenIdConnectConfig.PublicKey"); describeApiHistoryResponse.OpenIdConnectConfig = openIdConnectConfig; List <DescribeApiHistoryResponse.DescribeApiHistory_ErrorCodeSample> describeApiHistoryResponse_errorCodeSamples = new List <DescribeApiHistoryResponse.DescribeApiHistory_ErrorCodeSample>(); for (int i = 0; i < context.Length("DescribeApiHistory.ErrorCodeSamples.Length"); i++) { DescribeApiHistoryResponse.DescribeApiHistory_ErrorCodeSample errorCodeSample = new DescribeApiHistoryResponse.DescribeApiHistory_ErrorCodeSample(); errorCodeSample.Code = context.StringValue("DescribeApiHistory.ErrorCodeSamples[" + i + "].Code"); errorCodeSample.Message = context.StringValue("DescribeApiHistory.ErrorCodeSamples[" + i + "].Message"); errorCodeSample.Description = context.StringValue("DescribeApiHistory.ErrorCodeSamples[" + i + "].Description"); describeApiHistoryResponse_errorCodeSamples.Add(errorCodeSample); } describeApiHistoryResponse.ErrorCodeSamples = describeApiHistoryResponse_errorCodeSamples; List <DescribeApiHistoryResponse.DescribeApiHistory_ResultDescription> describeApiHistoryResponse_resultDescriptions = new List <DescribeApiHistoryResponse.DescribeApiHistory_ResultDescription>(); for (int i = 0; i < context.Length("DescribeApiHistory.ResultDescriptions.Length"); i++) { DescribeApiHistoryResponse.DescribeApiHistory_ResultDescription resultDescription = new DescribeApiHistoryResponse.DescribeApiHistory_ResultDescription(); resultDescription.Id = context.StringValue("DescribeApiHistory.ResultDescriptions[" + i + "].Id"); resultDescription.Pid = context.StringValue("DescribeApiHistory.ResultDescriptions[" + i + "].Pid"); resultDescription.HasChild = context.BooleanValue("DescribeApiHistory.ResultDescriptions[" + i + "].HasChild"); resultDescription.Key = context.StringValue("DescribeApiHistory.ResultDescriptions[" + i + "].Key"); resultDescription.Name = context.StringValue("DescribeApiHistory.ResultDescriptions[" + i + "].Name"); resultDescription.Mandatory = context.BooleanValue("DescribeApiHistory.ResultDescriptions[" + i + "].Mandatory"); resultDescription.Type = context.StringValue("DescribeApiHistory.ResultDescriptions[" + i + "].Type"); resultDescription.Description = context.StringValue("DescribeApiHistory.ResultDescriptions[" + i + "].Description"); describeApiHistoryResponse_resultDescriptions.Add(resultDescription); } describeApiHistoryResponse.ResultDescriptions = describeApiHistoryResponse_resultDescriptions; List <DescribeApiHistoryResponse.DescribeApiHistory_SystemParameter> describeApiHistoryResponse_systemParameters = new List <DescribeApiHistoryResponse.DescribeApiHistory_SystemParameter>(); for (int i = 0; i < context.Length("DescribeApiHistory.SystemParameters.Length"); i++) { DescribeApiHistoryResponse.DescribeApiHistory_SystemParameter systemParameter = new DescribeApiHistoryResponse.DescribeApiHistory_SystemParameter(); systemParameter.ParameterName = context.StringValue("DescribeApiHistory.SystemParameters[" + i + "].ParameterName"); systemParameter.ServiceParameterName = context.StringValue("DescribeApiHistory.SystemParameters[" + i + "].ServiceParameterName"); systemParameter.Location = context.StringValue("DescribeApiHistory.SystemParameters[" + i + "].Location"); systemParameter.DemoValue = context.StringValue("DescribeApiHistory.SystemParameters[" + i + "].DemoValue"); systemParameter.Description = context.StringValue("DescribeApiHistory.SystemParameters[" + i + "].Description"); describeApiHistoryResponse_systemParameters.Add(systemParameter); } describeApiHistoryResponse.SystemParameters = describeApiHistoryResponse_systemParameters; List <DescribeApiHistoryResponse.DescribeApiHistory_CustomSystemParameter> describeApiHistoryResponse_customSystemParameters = new List <DescribeApiHistoryResponse.DescribeApiHistory_CustomSystemParameter>(); for (int i = 0; i < context.Length("DescribeApiHistory.CustomSystemParameters.Length"); i++) { DescribeApiHistoryResponse.DescribeApiHistory_CustomSystemParameter customSystemParameter = new DescribeApiHistoryResponse.DescribeApiHistory_CustomSystemParameter(); customSystemParameter.ParameterName = context.StringValue("DescribeApiHistory.CustomSystemParameters[" + i + "].ParameterName"); customSystemParameter.ServiceParameterName = context.StringValue("DescribeApiHistory.CustomSystemParameters[" + i + "].ServiceParameterName"); customSystemParameter.Location = context.StringValue("DescribeApiHistory.CustomSystemParameters[" + i + "].Location"); customSystemParameter.DemoValue = context.StringValue("DescribeApiHistory.CustomSystemParameters[" + i + "].DemoValue"); customSystemParameter.Description = context.StringValue("DescribeApiHistory.CustomSystemParameters[" + i + "].Description"); describeApiHistoryResponse_customSystemParameters.Add(customSystemParameter); } describeApiHistoryResponse.CustomSystemParameters = describeApiHistoryResponse_customSystemParameters; List <DescribeApiHistoryResponse.DescribeApiHistory_ConstantParameter> describeApiHistoryResponse_constantParameters = new List <DescribeApiHistoryResponse.DescribeApiHistory_ConstantParameter>(); for (int i = 0; i < context.Length("DescribeApiHistory.ConstantParameters.Length"); i++) { DescribeApiHistoryResponse.DescribeApiHistory_ConstantParameter constantParameter = new DescribeApiHistoryResponse.DescribeApiHistory_ConstantParameter(); constantParameter.ServiceParameterName = context.StringValue("DescribeApiHistory.ConstantParameters[" + i + "].ServiceParameterName"); constantParameter.ConstantValue = context.StringValue("DescribeApiHistory.ConstantParameters[" + i + "].ConstantValue"); constantParameter.Location = context.StringValue("DescribeApiHistory.ConstantParameters[" + i + "].Location"); constantParameter.Description = context.StringValue("DescribeApiHistory.ConstantParameters[" + i + "].Description"); describeApiHistoryResponse_constantParameters.Add(constantParameter); } describeApiHistoryResponse.ConstantParameters = describeApiHistoryResponse_constantParameters; List <DescribeApiHistoryResponse.DescribeApiHistory_RequestParameter> describeApiHistoryResponse_requestParameters = new List <DescribeApiHistoryResponse.DescribeApiHistory_RequestParameter>(); for (int i = 0; i < context.Length("DescribeApiHistory.RequestParameters.Length"); i++) { DescribeApiHistoryResponse.DescribeApiHistory_RequestParameter requestParameter = new DescribeApiHistoryResponse.DescribeApiHistory_RequestParameter(); requestParameter.ApiParameterName = context.StringValue("DescribeApiHistory.RequestParameters[" + i + "].ApiParameterName"); requestParameter.Location = context.StringValue("DescribeApiHistory.RequestParameters[" + i + "].Location"); requestParameter.ParameterType = context.StringValue("DescribeApiHistory.RequestParameters[" + i + "].ParameterType"); requestParameter.Required = context.StringValue("DescribeApiHistory.RequestParameters[" + i + "].Required"); requestParameter.DefaultValue = context.StringValue("DescribeApiHistory.RequestParameters[" + i + "].DefaultValue"); requestParameter.DemoValue = context.StringValue("DescribeApiHistory.RequestParameters[" + i + "].DemoValue"); requestParameter.MaxValue = context.LongValue("DescribeApiHistory.RequestParameters[" + i + "].MaxValue"); requestParameter.MinValue = context.LongValue("DescribeApiHistory.RequestParameters[" + i + "].MinValue"); requestParameter.MaxLength = context.LongValue("DescribeApiHistory.RequestParameters[" + i + "].MaxLength"); requestParameter.MinLength = context.LongValue("DescribeApiHistory.RequestParameters[" + i + "].MinLength"); requestParameter.RegularExpression = context.StringValue("DescribeApiHistory.RequestParameters[" + i + "].RegularExpression"); requestParameter.JsonScheme = context.StringValue("DescribeApiHistory.RequestParameters[" + i + "].JsonScheme"); requestParameter.EnumValue = context.StringValue("DescribeApiHistory.RequestParameters[" + i + "].EnumValue"); requestParameter.DocShow = context.StringValue("DescribeApiHistory.RequestParameters[" + i + "].DocShow"); requestParameter.DocOrder = context.IntegerValue("DescribeApiHistory.RequestParameters[" + i + "].DocOrder"); requestParameter.Description = context.StringValue("DescribeApiHistory.RequestParameters[" + i + "].Description"); describeApiHistoryResponse_requestParameters.Add(requestParameter); } describeApiHistoryResponse.RequestParameters = describeApiHistoryResponse_requestParameters; List <DescribeApiHistoryResponse.DescribeApiHistory_ServiceParameter> describeApiHistoryResponse_serviceParameters = new List <DescribeApiHistoryResponse.DescribeApiHistory_ServiceParameter>(); for (int i = 0; i < context.Length("DescribeApiHistory.ServiceParameters.Length"); i++) { DescribeApiHistoryResponse.DescribeApiHistory_ServiceParameter serviceParameter = new DescribeApiHistoryResponse.DescribeApiHistory_ServiceParameter(); serviceParameter.ServiceParameterName = context.StringValue("DescribeApiHistory.ServiceParameters[" + i + "].ServiceParameterName"); serviceParameter.Location = context.StringValue("DescribeApiHistory.ServiceParameters[" + i + "].Location"); serviceParameter.ParameterType = context.StringValue("DescribeApiHistory.ServiceParameters[" + i + "].ParameterType"); describeApiHistoryResponse_serviceParameters.Add(serviceParameter); } describeApiHistoryResponse.ServiceParameters = describeApiHistoryResponse_serviceParameters; List <DescribeApiHistoryResponse.DescribeApiHistory_ServiceParameterMap> describeApiHistoryResponse_serviceParametersMap = new List <DescribeApiHistoryResponse.DescribeApiHistory_ServiceParameterMap>(); for (int i = 0; i < context.Length("DescribeApiHistory.ServiceParametersMap.Length"); i++) { DescribeApiHistoryResponse.DescribeApiHistory_ServiceParameterMap serviceParameterMap = new DescribeApiHistoryResponse.DescribeApiHistory_ServiceParameterMap(); serviceParameterMap.ServiceParameterName = context.StringValue("DescribeApiHistory.ServiceParametersMap[" + i + "].ServiceParameterName"); serviceParameterMap.RequestParameterName = context.StringValue("DescribeApiHistory.ServiceParametersMap[" + i + "].RequestParameterName"); describeApiHistoryResponse_serviceParametersMap.Add(serviceParameterMap); } describeApiHistoryResponse.ServiceParametersMap = describeApiHistoryResponse_serviceParametersMap; return(describeApiHistoryResponse); }
public static SaveTaskForSubmittingDomainNameCredentialByTemplateIdResponse Unmarshall(UnmarshallerContext context) { SaveTaskForSubmittingDomainNameCredentialByTemplateIdResponse saveTaskForSubmittingDomainNameCredentialByTemplateIdResponse = new SaveTaskForSubmittingDomainNameCredentialByTemplateIdResponse(); saveTaskForSubmittingDomainNameCredentialByTemplateIdResponse.HttpResponse = context.HttpResponse; saveTaskForSubmittingDomainNameCredentialByTemplateIdResponse.RequestId = context.StringValue("SaveTaskForSubmittingDomainNameCredentialByTemplateId.RequestId"); saveTaskForSubmittingDomainNameCredentialByTemplateIdResponse.Success = context.BooleanValue("SaveTaskForSubmittingDomainNameCredentialByTemplateId.Success"); saveTaskForSubmittingDomainNameCredentialByTemplateIdResponse.TaskNo = context.StringValue("SaveTaskForSubmittingDomainNameCredentialByTemplateId.TaskNo"); return(saveTaskForSubmittingDomainNameCredentialByTemplateIdResponse); }
public static DescribeInstanceAttributeResponse Unmarshall(UnmarshallerContext _ctx) { DescribeInstanceAttributeResponse describeInstanceAttributeResponse = new DescribeInstanceAttributeResponse(); describeInstanceAttributeResponse.HttpResponse = _ctx.HttpResponse; describeInstanceAttributeResponse.RequestId = _ctx.StringValue("DescribeInstanceAttribute.RequestId"); List <DescribeInstanceAttributeResponse.DescribeInstanceAttribute_DBInstanceAttribute> describeInstanceAttributeResponse_instances = new List <DescribeInstanceAttributeResponse.DescribeInstanceAttribute_DBInstanceAttribute>(); for (int i = 0; i < _ctx.Length("DescribeInstanceAttribute.Instances.Length"); i++) { DescribeInstanceAttributeResponse.DescribeInstanceAttribute_DBInstanceAttribute dBInstanceAttribute = new DescribeInstanceAttributeResponse.DescribeInstanceAttribute_DBInstanceAttribute(); dBInstanceAttribute.InstanceId = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].InstanceId"); dBInstanceAttribute.InstanceName = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].InstanceName"); dBInstanceAttribute.ConnectionDomain = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].ConnectionDomain"); dBInstanceAttribute.Port = _ctx.LongValue("DescribeInstanceAttribute.Instances[" + i + "].Port"); dBInstanceAttribute.InstanceStatus = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].InstanceStatus"); dBInstanceAttribute.RegionId = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].RegionId"); dBInstanceAttribute.Capacity = _ctx.LongValue("DescribeInstanceAttribute.Instances[" + i + "].Capacity"); dBInstanceAttribute.InstanceClass = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].InstanceClass"); dBInstanceAttribute.QPS = _ctx.LongValue("DescribeInstanceAttribute.Instances[" + i + "].QPS"); dBInstanceAttribute.Bandwidth = _ctx.LongValue("DescribeInstanceAttribute.Instances[" + i + "].Bandwidth"); dBInstanceAttribute.Connections = _ctx.LongValue("DescribeInstanceAttribute.Instances[" + i + "].Connections"); dBInstanceAttribute.ZoneId = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].ZoneId"); dBInstanceAttribute.Config = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].Config"); dBInstanceAttribute.ChargeType = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].ChargeType"); dBInstanceAttribute.NodeType = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].NodeType"); dBInstanceAttribute.NetworkType = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].NetworkType"); dBInstanceAttribute.VpcId = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].VpcId"); dBInstanceAttribute.VSwitchId = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].VSwitchId"); dBInstanceAttribute.PrivateIp = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].PrivateIp"); dBInstanceAttribute.CreateTime = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].CreateTime"); dBInstanceAttribute.EndTime = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].EndTime"); dBInstanceAttribute.HasRenewChangeOrder = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].HasRenewChangeOrder"); dBInstanceAttribute.IsRds = _ctx.BooleanValue("DescribeInstanceAttribute.Instances[" + i + "].IsRds"); dBInstanceAttribute.Engine = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].Engine"); dBInstanceAttribute.EngineVersion = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].EngineVersion"); dBInstanceAttribute.MaintainStartTime = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].MaintainStartTime"); dBInstanceAttribute.MaintainEndTime = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].MaintainEndTime"); dBInstanceAttribute.AvailabilityValue = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].AvailabilityValue"); dBInstanceAttribute.SecurityIPList = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].SecurityIPList"); dBInstanceAttribute.InstanceType = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].InstanceType"); dBInstanceAttribute.ArchitectureType = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].ArchitectureType"); dBInstanceAttribute.PackageType = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].PackageType"); dBInstanceAttribute.ReplicaId = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].ReplicaId"); dBInstanceAttribute.VpcAuthMode = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].VpcAuthMode"); dBInstanceAttribute.AuditLogRetention = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].AuditLogRetention"); dBInstanceAttribute.ReplicationMode = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].ReplicationMode"); dBInstanceAttribute.VpcCloudInstanceId = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].VpcCloudInstanceId"); dBInstanceAttribute.InstanceReleaseProtection = _ctx.BooleanValue("DescribeInstanceAttribute.Instances[" + i + "].InstanceReleaseProtection"); dBInstanceAttribute.ResourceGroupId = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].ResourceGroupId"); dBInstanceAttribute.ShardCount = _ctx.IntegerValue("DescribeInstanceAttribute.Instances[" + i + "].ShardCount"); dBInstanceAttribute.Storage = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].Storage"); dBInstanceAttribute.StorageType = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].StorageType"); dBInstanceAttribute.GlobalInstanceId = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].GlobalInstanceId"); dBInstanceAttribute.SecondaryZoneId = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].SecondaryZoneId"); dBInstanceAttribute.ZoneType = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].ZoneType"); List <DescribeInstanceAttributeResponse.DescribeInstanceAttribute_DBInstanceAttribute.DescribeInstanceAttribute_Tag> dBInstanceAttribute_tags = new List <DescribeInstanceAttributeResponse.DescribeInstanceAttribute_DBInstanceAttribute.DescribeInstanceAttribute_Tag>(); for (int j = 0; j < _ctx.Length("DescribeInstanceAttribute.Instances[" + i + "].Tags.Length"); j++) { DescribeInstanceAttributeResponse.DescribeInstanceAttribute_DBInstanceAttribute.DescribeInstanceAttribute_Tag tag = new DescribeInstanceAttributeResponse.DescribeInstanceAttribute_DBInstanceAttribute.DescribeInstanceAttribute_Tag(); tag.Key = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].Tags[" + j + "].Key"); tag._Value = _ctx.StringValue("DescribeInstanceAttribute.Instances[" + i + "].Tags[" + j + "].Value"); dBInstanceAttribute_tags.Add(tag); } dBInstanceAttribute.Tags = dBInstanceAttribute_tags; describeInstanceAttributeResponse_instances.Add(dBInstanceAttribute); } describeInstanceAttributeResponse.Instances = describeInstanceAttributeResponse_instances; return(describeInstanceAttributeResponse); }
public static QuerySettlementBillResponse Unmarshall(UnmarshallerContext context) { QuerySettlementBillResponse querySettlementBillResponse = new QuerySettlementBillResponse(); querySettlementBillResponse.HttpResponse = context.HttpResponse; querySettlementBillResponse.RequestId = context.StringValue("QuerySettlementBill.RequestId"); querySettlementBillResponse.Success = context.BooleanValue("QuerySettlementBill.Success"); querySettlementBillResponse.Code = context.StringValue("QuerySettlementBill.Code"); querySettlementBillResponse.Message = context.StringValue("QuerySettlementBill.Message"); QuerySettlementBillResponse.QuerySettlementBill_Data data = new QuerySettlementBillResponse.QuerySettlementBill_Data(); data.PageNum = context.IntegerValue("QuerySettlementBill.Data.PageNum"); data.PageSize = context.IntegerValue("QuerySettlementBill.Data.PageSize"); data.TotalCount = context.IntegerValue("QuerySettlementBill.Data.TotalCount"); data.BillingCycle = context.StringValue("QuerySettlementBill.Data.BillingCycle"); List <QuerySettlementBillResponse.QuerySettlementBill_Data.QuerySettlementBill_Item> data_items = new List <QuerySettlementBillResponse.QuerySettlementBill_Data.QuerySettlementBill_Item>(); for (int i = 0; i < context.Length("QuerySettlementBill.Data.Items.Length"); i++) { QuerySettlementBillResponse.QuerySettlementBill_Data.QuerySettlementBill_Item item = new QuerySettlementBillResponse.QuerySettlementBill_Data.QuerySettlementBill_Item(); item.RecordID = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].RecordID"); item.Item = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].Item"); item.PayerAccount = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].PayerAccount"); item.OwnerID = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].OwnerID"); item.CreateTime = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].CreateTime"); item.UsageStartTime = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].UsageStartTime"); item.UsageEndTime = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].UsageEndTime"); item.SuborderID = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].SuborderID"); item.OrderID = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].OrderID"); item.OrderType = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].OrderType"); item.LinkedCustomerOrderID = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].LinkedCustomerOrderID"); item.OriginalOrderID = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].OriginalOrderID"); item.PaymentTime = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].PaymentTime"); item.SolutionID = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].SolutionID"); item.SolutionName = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].SolutionName"); item.BillID = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].BillID"); item.ProductCode = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].ProductCode"); item.ProductType = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].ProductType"); item.SubscriptionType = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].SubscriptionType"); item.Region = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].Region"); item.Config = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].Config"); item.Quantity = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].Quantity"); item.PretaxGrossAmount = context.FloatValue("QuerySettlementBill.Data.Items[" + i + "].PretaxGrossAmount"); item.ChargeDiscount = context.FloatValue("QuerySettlementBill.Data.Items[" + i + "].ChargeDiscount"); item.DeductedByCoupons = context.FloatValue("QuerySettlementBill.Data.Items[" + i + "].DeductedByCoupons"); item.AccountDiscount = context.FloatValue("QuerySettlementBill.Data.Items[" + i + "].AccountDiscount"); item.Promotion = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].Promotion"); item.PretaxAmount = context.FloatValue("QuerySettlementBill.Data.Items[" + i + "].PretaxAmount"); item.Currency = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].Currency"); item.PretaxAmountLocal = context.FloatValue("QuerySettlementBill.Data.Items[" + i + "].PretaxAmountLocal"); item.PreviousBillingCycleBalance = context.FloatValue("QuerySettlementBill.Data.Items[" + i + "].PreviousBillingCycleBalance"); item.Tax = context.FloatValue("QuerySettlementBill.Data.Items[" + i + "].Tax"); item.AfterTaxAmount = context.FloatValue("QuerySettlementBill.Data.Items[" + i + "].AfterTaxAmount"); item.Status = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].Status"); item.ClearedTime = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].ClearedTime"); item.OutstandingAmount = context.FloatValue("QuerySettlementBill.Data.Items[" + i + "].OutstandingAmount"); item.DeductedByCashCoupons = context.FloatValue("QuerySettlementBill.Data.Items[" + i + "].DeductedByCashCoupons"); item.DeductedByPrepaidCard = context.FloatValue("QuerySettlementBill.Data.Items[" + i + "].DeductedByPrepaidCard"); item.MybankPaymentAmount = context.FloatValue("QuerySettlementBill.Data.Items[" + i + "].MybankPaymentAmount"); item.PaymentAmount = context.FloatValue("QuerySettlementBill.Data.Items[" + i + "].PaymentAmount"); item.PaymentCurrency = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].PaymentCurrency"); item.Seller = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].Seller"); item.InvoiceNo = context.StringValue("QuerySettlementBill.Data.Items[" + i + "].InvoiceNo"); data_items.Add(item); } data.Items = data_items; querySettlementBillResponse.Data = data; return(querySettlementBillResponse); }
public static DescribeNetworkInterfacesResponse Unmarshall(UnmarshallerContext context) { DescribeNetworkInterfacesResponse describeNetworkInterfacesResponse = new DescribeNetworkInterfacesResponse(); describeNetworkInterfacesResponse.HttpResponse = context.HttpResponse; describeNetworkInterfacesResponse.RequestId = context.StringValue("DescribeNetworkInterfaces.RequestId"); describeNetworkInterfacesResponse.TotalCount = context.IntegerValue("DescribeNetworkInterfaces.TotalCount"); describeNetworkInterfacesResponse.PageNumber = context.IntegerValue("DescribeNetworkInterfaces.PageNumber"); describeNetworkInterfacesResponse.PageSize = context.IntegerValue("DescribeNetworkInterfaces.PageSize"); describeNetworkInterfacesResponse.NextToken = context.StringValue("DescribeNetworkInterfaces.NextToken"); List <DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet> describeNetworkInterfacesResponse_networkInterfaceSets = new List <DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet>(); for (int i = 0; i < context.Length("DescribeNetworkInterfaces.NetworkInterfaceSets.Length"); i++) { DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet networkInterfaceSet = new DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet(); networkInterfaceSet.NetworkInterfaceId = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].NetworkInterfaceId"); networkInterfaceSet.Status = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].Status"); networkInterfaceSet.Type = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].Type"); networkInterfaceSet.VpcId = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].VpcId"); networkInterfaceSet.VSwitchId = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].VSwitchId"); networkInterfaceSet.ZoneId = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].ZoneId"); networkInterfaceSet.PrivateIpAddress = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].PrivateIpAddress"); networkInterfaceSet.MacAddress = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].MacAddress"); networkInterfaceSet.NetworkInterfaceName = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].NetworkInterfaceName"); networkInterfaceSet.Description = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].Description"); networkInterfaceSet.InstanceId = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].InstanceId"); networkInterfaceSet.CreationTime = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].CreationTime"); networkInterfaceSet.ResourceGroupId = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].ResourceGroupId"); networkInterfaceSet.ServiceID = context.LongValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].ServiceID"); networkInterfaceSet.ServiceManaged = context.BooleanValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].ServiceManaged"); networkInterfaceSet.QueueNumber = context.IntegerValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].QueueNumber"); networkInterfaceSet.OwnerId = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].OwnerId"); List <string> networkInterfaceSet_securityGroupIds = new List <string>(); for (int j = 0; j < context.Length("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].SecurityGroupIds.Length"); j++) { networkInterfaceSet_securityGroupIds.Add(context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].SecurityGroupIds[" + j + "]")); } networkInterfaceSet.SecurityGroupIds = networkInterfaceSet_securityGroupIds; DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_AssociatedPublicIp associatedPublicIp = new DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_AssociatedPublicIp(); associatedPublicIp.PublicIpAddress = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].AssociatedPublicIp.PublicIpAddress"); associatedPublicIp.AllocationId = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].AssociatedPublicIp.AllocationId"); networkInterfaceSet.AssociatedPublicIp = associatedPublicIp; List <DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_PrivateIpSet> networkInterfaceSet_privateIpSets = new List <DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_PrivateIpSet>(); for (int j = 0; j < context.Length("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].PrivateIpSets.Length"); j++) { DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_PrivateIpSet privateIpSet = new DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_PrivateIpSet(); privateIpSet.PrivateIpAddress = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].PrivateIpSets[" + j + "].PrivateIpAddress"); privateIpSet.Primary = context.BooleanValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].PrivateIpSets[" + j + "].Primary"); DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_PrivateIpSet.DescribeNetworkInterfaces_AssociatedPublicIp1 associatedPublicIp1 = new DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_PrivateIpSet.DescribeNetworkInterfaces_AssociatedPublicIp1(); associatedPublicIp1.PublicIpAddress = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].PrivateIpSets[" + j + "].AssociatedPublicIp.PublicIpAddress"); associatedPublicIp1.AllocationId = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].PrivateIpSets[" + j + "].AssociatedPublicIp.AllocationId"); privateIpSet.AssociatedPublicIp1 = associatedPublicIp1; networkInterfaceSet_privateIpSets.Add(privateIpSet); } networkInterfaceSet.PrivateIpSets = networkInterfaceSet_privateIpSets; List <DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_Ipv6Set> networkInterfaceSet_ipv6Sets = new List <DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_Ipv6Set>(); for (int j = 0; j < context.Length("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].Ipv6Sets.Length"); j++) { DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_Ipv6Set ipv6Set = new DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_Ipv6Set(); ipv6Set.Ipv6Address = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].Ipv6Sets[" + j + "].Ipv6Address"); networkInterfaceSet_ipv6Sets.Add(ipv6Set); } networkInterfaceSet.Ipv6Sets = networkInterfaceSet_ipv6Sets; List <DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_Tag> networkInterfaceSet_tags = new List <DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_Tag>(); for (int j = 0; j < context.Length("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].Tags.Length"); j++) { DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_Tag tag = new DescribeNetworkInterfacesResponse.DescribeNetworkInterfaces_NetworkInterfaceSet.DescribeNetworkInterfaces_Tag(); tag.TagKey = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].Tags[" + j + "].TagKey"); tag.TagValue = context.StringValue("DescribeNetworkInterfaces.NetworkInterfaceSets[" + i + "].Tags[" + j + "].TagValue"); networkInterfaceSet_tags.Add(tag); } networkInterfaceSet.Tags = networkInterfaceSet_tags; describeNetworkInterfacesResponse_networkInterfaceSets.Add(networkInterfaceSet); } describeNetworkInterfacesResponse.NetworkInterfaceSets = describeNetworkInterfacesResponse_networkInterfaceSets; return(describeNetworkInterfacesResponse); }
public static GetJobGroupResponse Unmarshall(UnmarshallerContext context) { GetJobGroupResponse getJobGroupResponse = new GetJobGroupResponse(); getJobGroupResponse.HttpResponse = context.HttpResponse; getJobGroupResponse.RequestId = context.StringValue("GetJobGroup.RequestId"); getJobGroupResponse.Success = context.BooleanValue("GetJobGroup.Success"); getJobGroupResponse.Code = context.StringValue("GetJobGroup.Code"); getJobGroupResponse.Message = context.StringValue("GetJobGroup.Message"); getJobGroupResponse.HttpStatusCode = context.IntegerValue("GetJobGroup.HttpStatusCode"); GetJobGroupResponse.GetJobGroup_JobGroup jobGroup = new GetJobGroupResponse.GetJobGroup_JobGroup(); jobGroup.Id = context.StringValue("GetJobGroup.JobGroup.Id"); jobGroup.Name = context.StringValue("GetJobGroup.JobGroup.Name"); jobGroup.Description = context.StringValue("GetJobGroup.JobGroup.Description"); jobGroup.ScenarioId = context.StringValue("GetJobGroup.JobGroup.ScenarioId"); jobGroup.JobFilePath = context.StringValue("GetJobGroup.JobGroup.JobFilePath"); jobGroup.CreationTime = context.LongValue("GetJobGroup.JobGroup.CreationTime"); List <string> jobGroup_callingNumbers = new List <string>(); for (int i = 0; i < context.Length("GetJobGroup.JobGroup.CallingNumbers.Length"); i++) { jobGroup_callingNumbers.Add(context.StringValue("GetJobGroup.JobGroup.CallingNumbers[" + i + "]")); } jobGroup.CallingNumbers = jobGroup_callingNumbers; GetJobGroupResponse.GetJobGroup_JobGroup.GetJobGroup_Strategy strategy = new GetJobGroupResponse.GetJobGroup_JobGroup.GetJobGroup_Strategy(); strategy.Id = context.StringValue("GetJobGroup.JobGroup.Strategy.Id"); strategy.Name = context.StringValue("GetJobGroup.JobGroup.Strategy.Name"); strategy.Description = context.StringValue("GetJobGroup.JobGroup.Strategy.Description"); strategy.Type = context.StringValue("GetJobGroup.JobGroup.Strategy.Type"); strategy.StartTime = context.LongValue("GetJobGroup.JobGroup.Strategy.StartTime"); strategy.EndTime = context.LongValue("GetJobGroup.JobGroup.Strategy.EndTime"); strategy.RepeatBy = context.StringValue("GetJobGroup.JobGroup.Strategy.RepeatBy"); strategy.MaxAttemptsPerDay = context.IntegerValue("GetJobGroup.JobGroup.Strategy.MaxAttemptsPerDay"); strategy.MinAttemptInterval = context.IntegerValue("GetJobGroup.JobGroup.Strategy.MinAttemptInterval"); strategy.Customized = context.StringValue("GetJobGroup.JobGroup.Strategy.Customized"); strategy.RoutingStrategy = context.StringValue("GetJobGroup.JobGroup.Strategy.RoutingStrategy"); strategy.FollowUpStrategy = context.StringValue("GetJobGroup.JobGroup.Strategy.FollowUpStrategy"); strategy.IsTemplate = context.BooleanValue("GetJobGroup.JobGroup.Strategy.IsTemplate"); List <string> strategy_repeatDays = new List <string>(); for (int i = 0; i < context.Length("GetJobGroup.JobGroup.Strategy.RepeatDays.Length"); i++) { strategy_repeatDays.Add(context.StringValue("GetJobGroup.JobGroup.Strategy.RepeatDays[" + i + "]")); } strategy.RepeatDays = strategy_repeatDays; List <GetJobGroupResponse.GetJobGroup_JobGroup.GetJobGroup_Strategy.GetJobGroup_TimeFrame> strategy_workingTime = new List <GetJobGroupResponse.GetJobGroup_JobGroup.GetJobGroup_Strategy.GetJobGroup_TimeFrame>(); for (int i = 0; i < context.Length("GetJobGroup.JobGroup.Strategy.WorkingTime.Length"); i++) { GetJobGroupResponse.GetJobGroup_JobGroup.GetJobGroup_Strategy.GetJobGroup_TimeFrame timeFrame = new GetJobGroupResponse.GetJobGroup_JobGroup.GetJobGroup_Strategy.GetJobGroup_TimeFrame(); timeFrame.BeginTime = context.StringValue("GetJobGroup.JobGroup.Strategy.WorkingTime[" + i + "].BeginTime"); timeFrame.EndTime = context.StringValue("GetJobGroup.JobGroup.Strategy.WorkingTime[" + i + "].EndTime"); strategy_workingTime.Add(timeFrame); } strategy.WorkingTime = strategy_workingTime; jobGroup.Strategy = strategy; GetJobGroupResponse.GetJobGroup_JobGroup.GetJobGroup_Progress progress = new GetJobGroupResponse.GetJobGroup_JobGroup.GetJobGroup_Progress(); progress.TotalJobs = context.IntegerValue("GetJobGroup.JobGroup.Progress.TotalJobs"); progress.Status = context.StringValue("GetJobGroup.JobGroup.Progress.Status"); progress.TotalNotAnswered = context.IntegerValue("GetJobGroup.JobGroup.Progress.TotalNotAnswered"); progress.TotalCompleted = context.IntegerValue("GetJobGroup.JobGroup.Progress.TotalCompleted"); progress.StartTime = context.LongValue("GetJobGroup.JobGroup.Progress.StartTime"); progress.Duration = context.IntegerValue("GetJobGroup.JobGroup.Progress.Duration"); List <GetJobGroupResponse.GetJobGroup_JobGroup.GetJobGroup_Progress.GetJobGroup_KeyValuePair> progress_categories = new List <GetJobGroupResponse.GetJobGroup_JobGroup.GetJobGroup_Progress.GetJobGroup_KeyValuePair>(); for (int i = 0; i < context.Length("GetJobGroup.JobGroup.Progress.Categories.Length"); i++) { GetJobGroupResponse.GetJobGroup_JobGroup.GetJobGroup_Progress.GetJobGroup_KeyValuePair keyValuePair = new GetJobGroupResponse.GetJobGroup_JobGroup.GetJobGroup_Progress.GetJobGroup_KeyValuePair(); keyValuePair.Key = context.StringValue("GetJobGroup.JobGroup.Progress.Categories[" + i + "].Key"); keyValuePair._Value = context.StringValue("GetJobGroup.JobGroup.Progress.Categories[" + i + "].Value"); progress_categories.Add(keyValuePair); } progress.Categories = progress_categories; jobGroup.Progress = progress; getJobGroupResponse.JobGroup = jobGroup; return(getJobGroupResponse); }
public static GetUserByExtensionResponse Unmarshall(UnmarshallerContext _ctx) { GetUserByExtensionResponse getUserByExtensionResponse = new GetUserByExtensionResponse(); getUserByExtensionResponse.HttpResponse = _ctx.HttpResponse; getUserByExtensionResponse.RequestId = _ctx.StringValue("GetUserByExtension.RequestId"); getUserByExtensionResponse.Success = _ctx.BooleanValue("GetUserByExtension.Success"); getUserByExtensionResponse.Code = _ctx.StringValue("GetUserByExtension.Code"); getUserByExtensionResponse.Message = _ctx.StringValue("GetUserByExtension.Message"); getUserByExtensionResponse.HttpStatusCode = _ctx.IntegerValue("GetUserByExtension.HttpStatusCode"); GetUserByExtensionResponse.GetUserByExtension_User user = new GetUserByExtensionResponse.GetUserByExtension_User(); user.UserId = _ctx.StringValue("GetUserByExtension.User.UserId"); user.RamId = _ctx.StringValue("GetUserByExtension.User.RamId"); user.InstanceId = _ctx.StringValue("GetUserByExtension.User.InstanceId"); GetUserByExtensionResponse.GetUserByExtension_User.GetUserByExtension_Detail detail = new GetUserByExtensionResponse.GetUserByExtension_User.GetUserByExtension_Detail(); detail.LoginName = _ctx.StringValue("GetUserByExtension.User.Detail.LoginName"); detail.DisplayName = _ctx.StringValue("GetUserByExtension.User.Detail.DisplayName"); detail.Phone = _ctx.StringValue("GetUserByExtension.User.Detail.Phone"); detail.Email = _ctx.StringValue("GetUserByExtension.User.Detail.Email"); detail.Department = _ctx.StringValue("GetUserByExtension.User.Detail.Department"); detail.Extension = _ctx.StringValue("GetUserByExtension.User.Detail.Extension"); user.Detail = detail; List <GetUserByExtensionResponse.GetUserByExtension_User.GetUserByExtension_Role> user_roles = new List <GetUserByExtensionResponse.GetUserByExtension_User.GetUserByExtension_Role>(); for (int i = 0; i < _ctx.Length("GetUserByExtension.User.Roles.Length"); i++) { GetUserByExtensionResponse.GetUserByExtension_User.GetUserByExtension_Role role = new GetUserByExtensionResponse.GetUserByExtension_User.GetUserByExtension_Role(); role.RoleId = _ctx.StringValue("GetUserByExtension.User.Roles[" + i + "].RoleId"); role.InstanceId = _ctx.StringValue("GetUserByExtension.User.Roles[" + i + "].InstanceId"); role.RoleName = _ctx.StringValue("GetUserByExtension.User.Roles[" + i + "].RoleName"); role.RoleDescription = _ctx.StringValue("GetUserByExtension.User.Roles[" + i + "].RoleDescription"); user_roles.Add(role); } user.Roles = user_roles; List <GetUserByExtensionResponse.GetUserByExtension_User.GetUserByExtension_SkillLevel> user_skillLevels = new List <GetUserByExtensionResponse.GetUserByExtension_User.GetUserByExtension_SkillLevel>(); for (int i = 0; i < _ctx.Length("GetUserByExtension.User.SkillLevels.Length"); i++) { GetUserByExtensionResponse.GetUserByExtension_User.GetUserByExtension_SkillLevel skillLevel = new GetUserByExtensionResponse.GetUserByExtension_User.GetUserByExtension_SkillLevel(); skillLevel.SkillLevelId = _ctx.StringValue("GetUserByExtension.User.SkillLevels[" + i + "].SkillLevelId"); skillLevel.Level = _ctx.IntegerValue("GetUserByExtension.User.SkillLevels[" + i + "].Level"); GetUserByExtensionResponse.GetUserByExtension_User.GetUserByExtension_SkillLevel.GetUserByExtension_Skill skill = new GetUserByExtensionResponse.GetUserByExtension_User.GetUserByExtension_SkillLevel.GetUserByExtension_Skill(); skill.SkillGroupId = _ctx.StringValue("GetUserByExtension.User.SkillLevels[" + i + "].Skill.SkillGroupId"); skill.InstanceId = _ctx.StringValue("GetUserByExtension.User.SkillLevels[" + i + "].Skill.InstanceId"); skill.SkillGroupName = _ctx.StringValue("GetUserByExtension.User.SkillLevels[" + i + "].Skill.SkillGroupName"); skill.SkillGroupDescription = _ctx.StringValue("GetUserByExtension.User.SkillLevels[" + i + "].Skill.SkillGroupDescription"); skillLevel.Skill = skill; user_skillLevels.Add(skillLevel); } user.SkillLevels = user_skillLevels; getUserByExtensionResponse.User = user; return(getUserByExtensionResponse); }
public static DescribeApiDocResponse Unmarshall(UnmarshallerContext context) { DescribeApiDocResponse describeApiDocResponse = new DescribeApiDocResponse(); describeApiDocResponse.HttpResponse = context.HttpResponse; describeApiDocResponse.RequestId = context.StringValue("DescribeApiDoc.RequestId"); describeApiDocResponse.RegionId = context.StringValue("DescribeApiDoc.RegionId"); describeApiDocResponse.GroupId = context.StringValue("DescribeApiDoc.GroupId"); describeApiDocResponse.GroupName = context.StringValue("DescribeApiDoc.GroupName"); describeApiDocResponse.StageName = context.StringValue("DescribeApiDoc.StageName"); describeApiDocResponse.ApiId = context.StringValue("DescribeApiDoc.ApiId"); describeApiDocResponse.ApiName = context.StringValue("DescribeApiDoc.ApiName"); describeApiDocResponse.Description = context.StringValue("DescribeApiDoc.Description"); describeApiDocResponse.Visibility = context.StringValue("DescribeApiDoc.Visibility"); describeApiDocResponse.AuthType = context.StringValue("DescribeApiDoc.AuthType"); describeApiDocResponse.ResultType = context.StringValue("DescribeApiDoc.ResultType"); describeApiDocResponse.ResultSample = context.StringValue("DescribeApiDoc.ResultSample"); describeApiDocResponse.FailResultSample = context.StringValue("DescribeApiDoc.FailResultSample"); describeApiDocResponse.DeployedTime = context.StringValue("DescribeApiDoc.DeployedTime"); DescribeApiDocResponse.RequestConfig_ requestConfig = new DescribeApiDocResponse.RequestConfig_(); requestConfig.RequestProtocol = context.StringValue("DescribeApiDoc.RequestConfig.RequestProtocol"); requestConfig.RequestHttpMethod = context.StringValue("DescribeApiDoc.RequestConfig.RequestHttpMethod"); requestConfig.RequestPath = context.StringValue("DescribeApiDoc.RequestConfig.RequestPath"); requestConfig.BodyFormat = context.StringValue("DescribeApiDoc.RequestConfig.BodyFormat"); requestConfig.PostBodyDescription = context.StringValue("DescribeApiDoc.RequestConfig.PostBodyDescription"); requestConfig.RequestMode = context.StringValue("DescribeApiDoc.RequestConfig.RequestMode"); describeApiDocResponse.RequestConfig = requestConfig; List <DescribeApiDocResponse.ErrorCodeSample> errorCodeSamples = new List <DescribeApiDocResponse.ErrorCodeSample>(); for (int i = 0; i < context.Length("DescribeApiDoc.ErrorCodeSamples.Length"); i++) { DescribeApiDocResponse.ErrorCodeSample errorCodeSample = new DescribeApiDocResponse.ErrorCodeSample(); errorCodeSample.Code = context.StringValue("DescribeApiDoc.ErrorCodeSamples[" + i + "].Code"); errorCodeSample.Message = context.StringValue("DescribeApiDoc.ErrorCodeSamples[" + i + "].Message"); errorCodeSample.Description = context.StringValue("DescribeApiDoc.ErrorCodeSamples[" + i + "].Description"); errorCodeSamples.Add(errorCodeSample); } describeApiDocResponse.ErrorCodeSamples = errorCodeSamples; List <DescribeApiDocResponse.ResultDescription> resultDescriptions = new List <DescribeApiDocResponse.ResultDescription>(); for (int i = 0; i < context.Length("DescribeApiDoc.ResultDescriptions.Length"); i++) { DescribeApiDocResponse.ResultDescription resultDescription = new DescribeApiDocResponse.ResultDescription(); resultDescription.Id = context.StringValue("DescribeApiDoc.ResultDescriptions[" + i + "].Id"); resultDescription.Pid = context.StringValue("DescribeApiDoc.ResultDescriptions[" + i + "].Pid"); resultDescription.HasChild = context.BooleanValue("DescribeApiDoc.ResultDescriptions[" + i + "].HasChild"); resultDescription.Key = context.StringValue("DescribeApiDoc.ResultDescriptions[" + i + "].Key"); resultDescription.Name = context.StringValue("DescribeApiDoc.ResultDescriptions[" + i + "].Name"); resultDescription.Mandatory = context.BooleanValue("DescribeApiDoc.ResultDescriptions[" + i + "].Mandatory"); resultDescription.Type = context.StringValue("DescribeApiDoc.ResultDescriptions[" + i + "].Type"); resultDescription.Description = context.StringValue("DescribeApiDoc.ResultDescriptions[" + i + "].Description"); resultDescription.Example = context.StringValue("DescribeApiDoc.ResultDescriptions[" + i + "].Example"); resultDescriptions.Add(resultDescription); } describeApiDocResponse.ResultDescriptions = resultDescriptions; List <DescribeApiDocResponse.RequestParameter> requestParameters = new List <DescribeApiDocResponse.RequestParameter>(); for (int i = 0; i < context.Length("DescribeApiDoc.RequestParameters.Length"); i++) { DescribeApiDocResponse.RequestParameter requestParameter = new DescribeApiDocResponse.RequestParameter(); requestParameter.ApiParameterName = context.StringValue("DescribeApiDoc.RequestParameters[" + i + "].ApiParameterName"); requestParameter.Location = context.StringValue("DescribeApiDoc.RequestParameters[" + i + "].Location"); requestParameter.ParameterType = context.StringValue("DescribeApiDoc.RequestParameters[" + i + "].ParameterType"); requestParameter.Required = context.StringValue("DescribeApiDoc.RequestParameters[" + i + "].Required"); requestParameter.DefaultValue = context.StringValue("DescribeApiDoc.RequestParameters[" + i + "].DefaultValue"); requestParameter.DemoValue = context.StringValue("DescribeApiDoc.RequestParameters[" + i + "].DemoValue"); requestParameter.MaxValue = context.LongValue("DescribeApiDoc.RequestParameters[" + i + "].MaxValue"); requestParameter.MinValue = context.LongValue("DescribeApiDoc.RequestParameters[" + i + "].MinValue"); requestParameter.MaxLength = context.LongValue("DescribeApiDoc.RequestParameters[" + i + "].MaxLength"); requestParameter.MinLength = context.LongValue("DescribeApiDoc.RequestParameters[" + i + "].MinLength"); requestParameter.RegularExpression = context.StringValue("DescribeApiDoc.RequestParameters[" + i + "].RegularExpression"); requestParameter.JsonScheme = context.StringValue("DescribeApiDoc.RequestParameters[" + i + "].JsonScheme"); requestParameter.EnumValue = context.StringValue("DescribeApiDoc.RequestParameters[" + i + "].EnumValue"); requestParameter.DocShow = context.StringValue("DescribeApiDoc.RequestParameters[" + i + "].DocShow"); requestParameter.DocOrder = context.IntegerValue("DescribeApiDoc.RequestParameters[" + i + "].DocOrder"); requestParameter.Description = context.StringValue("DescribeApiDoc.RequestParameters[" + i + "].Description"); requestParameters.Add(requestParameter); } describeApiDocResponse.RequestParameters = requestParameters; return(describeApiDocResponse); }
public static GetInstanceSummaryReportSinceMidnightResponse Unmarshall(UnmarshallerContext _ctx) { GetInstanceSummaryReportSinceMidnightResponse getInstanceSummaryReportSinceMidnightResponse = new GetInstanceSummaryReportSinceMidnightResponse(); getInstanceSummaryReportSinceMidnightResponse.HttpResponse = _ctx.HttpResponse; getInstanceSummaryReportSinceMidnightResponse.RequestId = _ctx.StringValue("GetInstanceSummaryReportSinceMidnight.RequestId"); getInstanceSummaryReportSinceMidnightResponse.Success = _ctx.BooleanValue("GetInstanceSummaryReportSinceMidnight.Success"); getInstanceSummaryReportSinceMidnightResponse.Code = _ctx.StringValue("GetInstanceSummaryReportSinceMidnight.Code"); getInstanceSummaryReportSinceMidnightResponse.Message = _ctx.StringValue("GetInstanceSummaryReportSinceMidnight.Message"); getInstanceSummaryReportSinceMidnightResponse.HttpStatusCode = _ctx.IntegerValue("GetInstanceSummaryReportSinceMidnight.HttpStatusCode"); GetInstanceSummaryReportSinceMidnightResponse.GetInstanceSummaryReportSinceMidnight_InstanceSummaryReport instanceSummaryReport = new GetInstanceSummaryReportSinceMidnightResponse.GetInstanceSummaryReportSinceMidnight_InstanceSummaryReport(); instanceSummaryReport.Timestamp = _ctx.StringValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Timestamp"); instanceSummaryReport.InstanceId = _ctx.StringValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.InstanceId"); GetInstanceSummaryReportSinceMidnightResponse.GetInstanceSummaryReportSinceMidnight_InstanceSummaryReport.GetInstanceSummaryReportSinceMidnight_Overall overall = new GetInstanceSummaryReportSinceMidnightResponse.GetInstanceSummaryReportSinceMidnight_InstanceSummaryReport.GetInstanceSummaryReportSinceMidnight_Overall(); overall.TotalCalls = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Overall.TotalCalls"); overall.TotalLoggedInTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Overall.TotalLoggedInTime"); overall.TotalBreakTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Overall.TotalBreakTime"); overall.OccupancyRate = _ctx.FloatValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Overall.OccupancyRate"); overall.TotalReadyTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Overall.TotalReadyTime"); overall.MaxReadyTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Overall.MaxReadyTime"); overall.AverageReadyTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Overall.AverageReadyTime"); overall.TotalTalkTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Overall.TotalTalkTime"); overall.MaxTalkTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Overall.MaxTalkTime"); overall.AverageTalkTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Overall.AverageTalkTime"); overall.TotalWorkTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Overall.TotalWorkTime"); overall.MaxWorkTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Overall.MaxWorkTime"); overall.AverageWorkTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Overall.AverageWorkTime"); overall.SatisfactionIndex = _ctx.FloatValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Overall.SatisfactionIndex"); overall.SatisfactionSurveysOffered = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Overall.SatisfactionSurveysOffered"); overall.SatisfactionSurveysResponded = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Overall.SatisfactionSurveysResponded"); instanceSummaryReport.Overall = overall; GetInstanceSummaryReportSinceMidnightResponse.GetInstanceSummaryReportSinceMidnight_InstanceSummaryReport.GetInstanceSummaryReportSinceMidnight_Inbound inbound = new GetInstanceSummaryReportSinceMidnightResponse.GetInstanceSummaryReportSinceMidnight_InstanceSummaryReport.GetInstanceSummaryReportSinceMidnight_Inbound(); inbound.CallsIncomingLine = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.CallsIncomingLine"); inbound.CallsIncomingIVR = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.CallsIncomingIVR"); inbound.CallsAbandonedInIVR = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.CallsAbandonedInIVR"); inbound.CallsIncomingQueue = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.CallsIncomingQueue"); inbound.CallsAbandonedInQueue = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.CallsAbandonedInQueue"); inbound.CallsOffered = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.CallsOffered"); inbound.CallsHandled = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.CallsHandled"); inbound.HandleRate = _ctx.FloatValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.HandleRate"); inbound.TotalRingTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.TotalRingTime"); inbound.MaxRingTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.MaxRingTime"); inbound.AverageRingTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.AverageRingTime"); inbound.ServiceLevel20 = _ctx.FloatValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.ServiceLevel20"); inbound.TotalTalkTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.TotalTalkTime"); inbound.MaxTalkTime = _ctx.StringValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.MaxTalkTime"); inbound.AverageTalkTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.AverageTalkTime"); inbound.TotalWorkTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.TotalWorkTime"); inbound.MaxWorkTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.MaxWorkTime"); inbound.AverageWorkTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.AverageWorkTime"); inbound.SatisfactionIndex = _ctx.FloatValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.SatisfactionIndex"); inbound.SatisfactionSurveysOffered = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.SatisfactionSurveysOffered"); inbound.SatisfactionSurveysResponded = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.SatisfactionSurveysResponded"); inbound.TotalWaitTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.TotalWaitTime"); inbound.MaxWaitTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.MaxWaitTime"); inbound.AverageWaitTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Inbound.AverageWaitTime"); instanceSummaryReport.Inbound = inbound; GetInstanceSummaryReportSinceMidnightResponse.GetInstanceSummaryReportSinceMidnight_InstanceSummaryReport.GetInstanceSummaryReportSinceMidnight_Outbound outbound = new GetInstanceSummaryReportSinceMidnightResponse.GetInstanceSummaryReportSinceMidnight_InstanceSummaryReport.GetInstanceSummaryReportSinceMidnight_Outbound(); outbound.CallsDialed = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Outbound.CallsDialed"); outbound.CallsAnswered = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Outbound.CallsAnswered"); outbound.AnswerRate = _ctx.FloatValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Outbound.AnswerRate"); outbound.TotalDialingTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Outbound.TotalDialingTime"); outbound.MaxDialingTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Outbound.MaxDialingTime"); outbound.AverageDialingTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Outbound.AverageDialingTime"); outbound.TotalTalkTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Outbound.TotalTalkTime"); outbound.MaxTalkTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Outbound.MaxTalkTime"); outbound.AverageTalkTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Outbound.AverageTalkTime"); outbound.TotalWorkTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Outbound.TotalWorkTime"); outbound.MaxWorkTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Outbound.MaxWorkTime"); outbound.AverageWorkTime = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Outbound.AverageWorkTime"); outbound.SatisfactionIndex = _ctx.FloatValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Outbound.SatisfactionIndex"); outbound.SatisfactionSurveysOffered = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Outbound.SatisfactionSurveysOffered"); outbound.SatisfactionSurveysResponded = _ctx.LongValue("GetInstanceSummaryReportSinceMidnight.InstanceSummaryReport.Outbound.SatisfactionSurveysResponded"); instanceSummaryReport.Outbound = outbound; getInstanceSummaryReportSinceMidnightResponse.InstanceSummaryReport = instanceSummaryReport; return(getInstanceSummaryReportSinceMidnightResponse); }
public static DescribeResourcePackageProductResponse Unmarshall(UnmarshallerContext _ctx) { DescribeResourcePackageProductResponse describeResourcePackageProductResponse = new DescribeResourcePackageProductResponse(); describeResourcePackageProductResponse.HttpResponse = _ctx.HttpResponse; describeResourcePackageProductResponse.RequestId = _ctx.StringValue("DescribeResourcePackageProduct.RequestId"); describeResourcePackageProductResponse.OrderId = _ctx.LongValue("DescribeResourcePackageProduct.OrderId"); describeResourcePackageProductResponse.Success = _ctx.BooleanValue("DescribeResourcePackageProduct.Success"); describeResourcePackageProductResponse.Code = _ctx.StringValue("DescribeResourcePackageProduct.Code"); describeResourcePackageProductResponse.Message = _ctx.StringValue("DescribeResourcePackageProduct.Message"); DescribeResourcePackageProductResponse.DescribeResourcePackageProduct_Data data = new DescribeResourcePackageProductResponse.DescribeResourcePackageProduct_Data(); List <DescribeResourcePackageProductResponse.DescribeResourcePackageProduct_Data.DescribeResourcePackageProduct_ResourcePackage> data_resourcePackages = new List <DescribeResourcePackageProductResponse.DescribeResourcePackageProduct_Data.DescribeResourcePackageProduct_ResourcePackage>(); for (int i = 0; i < _ctx.Length("DescribeResourcePackageProduct.Data.ResourcePackages.Length"); i++) { DescribeResourcePackageProductResponse.DescribeResourcePackageProduct_Data.DescribeResourcePackageProduct_ResourcePackage resourcePackage = new DescribeResourcePackageProductResponse.DescribeResourcePackageProduct_Data.DescribeResourcePackageProduct_ResourcePackage(); resourcePackage.ProductCode = _ctx.StringValue("DescribeResourcePackageProduct.Data.ResourcePackages[" + i + "].ProductCode"); resourcePackage.ProductType = _ctx.StringValue("DescribeResourcePackageProduct.Data.ResourcePackages[" + i + "].ProductType"); resourcePackage.Name = _ctx.StringValue("DescribeResourcePackageProduct.Data.ResourcePackages[" + i + "].Name"); List <DescribeResourcePackageProductResponse.DescribeResourcePackageProduct_Data.DescribeResourcePackageProduct_ResourcePackage.DescribeResourcePackageProduct_PackageType> resourcePackage_packageTypes = new List <DescribeResourcePackageProductResponse.DescribeResourcePackageProduct_Data.DescribeResourcePackageProduct_ResourcePackage.DescribeResourcePackageProduct_PackageType>(); for (int j = 0; j < _ctx.Length("DescribeResourcePackageProduct.Data.ResourcePackages[" + i + "].PackageTypes.Length"); j++) { DescribeResourcePackageProductResponse.DescribeResourcePackageProduct_Data.DescribeResourcePackageProduct_ResourcePackage.DescribeResourcePackageProduct_PackageType packageType = new DescribeResourcePackageProductResponse.DescribeResourcePackageProduct_Data.DescribeResourcePackageProduct_ResourcePackage.DescribeResourcePackageProduct_PackageType(); packageType.Name = _ctx.StringValue("DescribeResourcePackageProduct.Data.ResourcePackages[" + i + "].PackageTypes[" + j + "].Name"); packageType.Code = _ctx.StringValue("DescribeResourcePackageProduct.Data.ResourcePackages[" + i + "].PackageTypes[" + j + "].Code"); List <DescribeResourcePackageProductResponse.DescribeResourcePackageProduct_Data.DescribeResourcePackageProduct_ResourcePackage.DescribeResourcePackageProduct_PackageType.DescribeResourcePackageProduct_Property> packageType_properties = new List <DescribeResourcePackageProductResponse.DescribeResourcePackageProduct_Data.DescribeResourcePackageProduct_ResourcePackage.DescribeResourcePackageProduct_PackageType.DescribeResourcePackageProduct_Property>(); for (int k = 0; k < _ctx.Length("DescribeResourcePackageProduct.Data.ResourcePackages[" + i + "].PackageTypes[" + j + "].Properties.Length"); k++) { DescribeResourcePackageProductResponse.DescribeResourcePackageProduct_Data.DescribeResourcePackageProduct_ResourcePackage.DescribeResourcePackageProduct_PackageType.DescribeResourcePackageProduct_Property property = new DescribeResourcePackageProductResponse.DescribeResourcePackageProduct_Data.DescribeResourcePackageProduct_ResourcePackage.DescribeResourcePackageProduct_PackageType.DescribeResourcePackageProduct_Property(); property.Name = _ctx.StringValue("DescribeResourcePackageProduct.Data.ResourcePackages[" + i + "].PackageTypes[" + j + "].Properties[" + k + "].Name"); property._Value = _ctx.StringValue("DescribeResourcePackageProduct.Data.ResourcePackages[" + i + "].PackageTypes[" + j + "].Properties[" + k + "].Value"); packageType_properties.Add(property); } packageType.Properties = packageType_properties; List <DescribeResourcePackageProductResponse.DescribeResourcePackageProduct_Data.DescribeResourcePackageProduct_ResourcePackage.DescribeResourcePackageProduct_PackageType.DescribeResourcePackageProduct_Specification> packageType_specifications = new List <DescribeResourcePackageProductResponse.DescribeResourcePackageProduct_Data.DescribeResourcePackageProduct_ResourcePackage.DescribeResourcePackageProduct_PackageType.DescribeResourcePackageProduct_Specification>(); for (int k = 0; k < _ctx.Length("DescribeResourcePackageProduct.Data.ResourcePackages[" + i + "].PackageTypes[" + j + "].Specifications.Length"); k++) { DescribeResourcePackageProductResponse.DescribeResourcePackageProduct_Data.DescribeResourcePackageProduct_ResourcePackage.DescribeResourcePackageProduct_PackageType.DescribeResourcePackageProduct_Specification specification = new DescribeResourcePackageProductResponse.DescribeResourcePackageProduct_Data.DescribeResourcePackageProduct_ResourcePackage.DescribeResourcePackageProduct_PackageType.DescribeResourcePackageProduct_Specification(); specification.Name = _ctx.StringValue("DescribeResourcePackageProduct.Data.ResourcePackages[" + i + "].PackageTypes[" + j + "].Specifications[" + k + "].Name"); specification._Value = _ctx.StringValue("DescribeResourcePackageProduct.Data.ResourcePackages[" + i + "].PackageTypes[" + j + "].Specifications[" + k + "].Value"); List <DescribeResourcePackageProductResponse.DescribeResourcePackageProduct_Data.DescribeResourcePackageProduct_ResourcePackage.DescribeResourcePackageProduct_PackageType.DescribeResourcePackageProduct_Specification.DescribeResourcePackageProduct_AvailableDuration> specification_availableDurations = new List <DescribeResourcePackageProductResponse.DescribeResourcePackageProduct_Data.DescribeResourcePackageProduct_ResourcePackage.DescribeResourcePackageProduct_PackageType.DescribeResourcePackageProduct_Specification.DescribeResourcePackageProduct_AvailableDuration>(); for (int l = 0; l < _ctx.Length("DescribeResourcePackageProduct.Data.ResourcePackages[" + i + "].PackageTypes[" + j + "].Specifications[" + k + "].AvailableDurations.Length"); l++) { DescribeResourcePackageProductResponse.DescribeResourcePackageProduct_Data.DescribeResourcePackageProduct_ResourcePackage.DescribeResourcePackageProduct_PackageType.DescribeResourcePackageProduct_Specification.DescribeResourcePackageProduct_AvailableDuration availableDuration = new DescribeResourcePackageProductResponse.DescribeResourcePackageProduct_Data.DescribeResourcePackageProduct_ResourcePackage.DescribeResourcePackageProduct_PackageType.DescribeResourcePackageProduct_Specification.DescribeResourcePackageProduct_AvailableDuration(); availableDuration.Name = _ctx.StringValue("DescribeResourcePackageProduct.Data.ResourcePackages[" + i + "].PackageTypes[" + j + "].Specifications[" + k + "].AvailableDurations[" + l + "].Name"); availableDuration._Value = _ctx.IntegerValue("DescribeResourcePackageProduct.Data.ResourcePackages[" + i + "].PackageTypes[" + j + "].Specifications[" + k + "].AvailableDurations[" + l + "].Value"); availableDuration.Unit = _ctx.StringValue("DescribeResourcePackageProduct.Data.ResourcePackages[" + i + "].PackageTypes[" + j + "].Specifications[" + k + "].AvailableDurations[" + l + "].Unit"); specification_availableDurations.Add(availableDuration); } specification.AvailableDurations = specification_availableDurations; packageType_specifications.Add(specification); } packageType.Specifications = packageType_specifications; resourcePackage_packageTypes.Add(packageType); } resourcePackage.PackageTypes = resourcePackage_packageTypes; data_resourcePackages.Add(resourcePackage); } data.ResourcePackages = data_resourcePackages; describeResourcePackageProductResponse.Data = data; return(describeResourcePackageProductResponse); }
public static ListScenariosResponse Unmarshall(UnmarshallerContext context) { ListScenariosResponse listScenariosResponse = new ListScenariosResponse(); listScenariosResponse.HttpResponse = context.HttpResponse; listScenariosResponse.RequestId = context.StringValue("ListScenarios.RequestId"); listScenariosResponse.Success = context.BooleanValue("ListScenarios.Success"); listScenariosResponse.Code = context.StringValue("ListScenarios.Code"); listScenariosResponse.Message = context.StringValue("ListScenarios.Message"); listScenariosResponse.HttpStatusCode = context.IntegerValue("ListScenarios.HttpStatusCode"); List <ListScenariosResponse.ListScenarios_Scenario> listScenariosResponse_scenarios = new List <ListScenariosResponse.ListScenarios_Scenario>(); for (int i = 0; i < context.Length("ListScenarios.Scenarios.Length"); i++) { ListScenariosResponse.ListScenarios_Scenario scenario = new ListScenariosResponse.ListScenarios_Scenario(); scenario.Id = context.StringValue("ListScenarios.Scenarios[" + i + "].Id"); scenario.Name = context.StringValue("ListScenarios.Scenarios[" + i + "].Name"); scenario.Description = context.StringValue("ListScenarios.Scenarios[" + i + "].Description"); scenario.Type = context.StringValue("ListScenarios.Scenarios[" + i + "].Type"); scenario.IsTemplate = context.BooleanValue("ListScenarios.Scenarios[" + i + "].IsTemplate"); ListScenariosResponse.ListScenarios_Scenario.ListScenarios_Strategy strategy = new ListScenariosResponse.ListScenarios_Scenario.ListScenarios_Strategy(); strategy.Id = context.StringValue("ListScenarios.Scenarios[" + i + "].Strategy.Id"); strategy.Name = context.StringValue("ListScenarios.Scenarios[" + i + "].Strategy.Name"); strategy.Description = context.StringValue("ListScenarios.Scenarios[" + i + "].Strategy.Description"); strategy.Type = context.StringValue("ListScenarios.Scenarios[" + i + "].Strategy.Type"); strategy.StartTime = context.LongValue("ListScenarios.Scenarios[" + i + "].Strategy.StartTime"); strategy.EndTime = context.LongValue("ListScenarios.Scenarios[" + i + "].Strategy.EndTime"); strategy.RepeatBy = context.StringValue("ListScenarios.Scenarios[" + i + "].Strategy.RepeatBy"); strategy.MaxAttemptsPerDay = context.IntegerValue("ListScenarios.Scenarios[" + i + "].Strategy.MaxAttemptsPerDay"); strategy.MinAttemptInterval = context.IntegerValue("ListScenarios.Scenarios[" + i + "].Strategy.MinAttemptInterval"); strategy.Customized = context.StringValue("ListScenarios.Scenarios[" + i + "].Strategy.Customized"); strategy.RoutingStrategy = context.StringValue("ListScenarios.Scenarios[" + i + "].Strategy.RoutingStrategy"); strategy.FollowUpStrategy = context.StringValue("ListScenarios.Scenarios[" + i + "].Strategy.FollowUpStrategy"); strategy.IsTemplate = context.BooleanValue("ListScenarios.Scenarios[" + i + "].Strategy.IsTemplate"); List <string> strategy_repeatDays = new List <string>(); for (int j = 0; j < context.Length("ListScenarios.Scenarios[" + i + "].Strategy.RepeatDays.Length"); j++) { strategy_repeatDays.Add(context.StringValue("ListScenarios.Scenarios[" + i + "].Strategy.RepeatDays[" + j + "]")); } strategy.RepeatDays = strategy_repeatDays; List <ListScenariosResponse.ListScenarios_Scenario.ListScenarios_Strategy.ListScenarios_TimeFrame> strategy_workingTime = new List <ListScenariosResponse.ListScenarios_Scenario.ListScenarios_Strategy.ListScenarios_TimeFrame>(); for (int j = 0; j < context.Length("ListScenarios.Scenarios[" + i + "].Strategy.WorkingTime.Length"); j++) { ListScenariosResponse.ListScenarios_Scenario.ListScenarios_Strategy.ListScenarios_TimeFrame timeFrame = new ListScenariosResponse.ListScenarios_Scenario.ListScenarios_Strategy.ListScenarios_TimeFrame(); timeFrame.BeginTime = context.StringValue("ListScenarios.Scenarios[" + i + "].Strategy.WorkingTime[" + j + "].BeginTime"); timeFrame.EndTime = context.StringValue("ListScenarios.Scenarios[" + i + "].Strategy.WorkingTime[" + j + "].EndTime"); strategy_workingTime.Add(timeFrame); } strategy.WorkingTime = strategy_workingTime; scenario.Strategy = strategy; List <ListScenariosResponse.ListScenarios_Scenario.ListScenarios_Survey> scenario_surveys = new List <ListScenariosResponse.ListScenarios_Scenario.ListScenarios_Survey>(); for (int j = 0; j < context.Length("ListScenarios.Scenarios[" + i + "].Surveys.Length"); j++) { ListScenariosResponse.ListScenarios_Scenario.ListScenarios_Survey survey = new ListScenariosResponse.ListScenarios_Scenario.ListScenarios_Survey(); survey.Id = context.StringValue("ListScenarios.Scenarios[" + i + "].Surveys[" + j + "].Id"); survey.Name = context.StringValue("ListScenarios.Scenarios[" + i + "].Surveys[" + j + "].Name"); survey.Description = context.StringValue("ListScenarios.Scenarios[" + i + "].Surveys[" + j + "].Description"); survey.Role = context.StringValue("ListScenarios.Scenarios[" + i + "].Surveys[" + j + "].Role"); survey.Round = context.IntegerValue("ListScenarios.Scenarios[" + i + "].Surveys[" + j + "].Round"); survey.BeebotId = context.StringValue("ListScenarios.Scenarios[" + i + "].Surveys[" + j + "].BeebotId"); List <ListScenariosResponse.ListScenarios_Scenario.ListScenarios_Survey.ListScenarios_IntentNode> survey_intents = new List <ListScenariosResponse.ListScenarios_Scenario.ListScenarios_Survey.ListScenarios_IntentNode>(); for (int k = 0; k < context.Length("ListScenarios.Scenarios[" + i + "].Surveys[" + j + "].Intents.Length"); k++) { ListScenariosResponse.ListScenarios_Scenario.ListScenarios_Survey.ListScenarios_IntentNode intentNode = new ListScenariosResponse.ListScenarios_Scenario.ListScenarios_Survey.ListScenarios_IntentNode(); intentNode.NodeId = context.StringValue("ListScenarios.Scenarios[" + i + "].Surveys[" + j + "].Intents[" + k + "].NodeId"); intentNode.IntentId = context.StringValue("ListScenarios.Scenarios[" + i + "].Surveys[" + j + "].Intents[" + k + "].IntentId"); survey_intents.Add(intentNode); } survey.Intents = survey_intents; scenario_surveys.Add(survey); } scenario.Surveys = scenario_surveys; List <ListScenariosResponse.ListScenarios_Scenario.ListScenarios_KeyValuePair> scenario_variables = new List <ListScenariosResponse.ListScenarios_Scenario.ListScenarios_KeyValuePair>(); for (int j = 0; j < context.Length("ListScenarios.Scenarios[" + i + "].Variables.Length"); j++) { ListScenariosResponse.ListScenarios_Scenario.ListScenarios_KeyValuePair keyValuePair = new ListScenariosResponse.ListScenarios_Scenario.ListScenarios_KeyValuePair(); keyValuePair.Key = context.StringValue("ListScenarios.Scenarios[" + i + "].Variables[" + j + "].Key"); keyValuePair._Value = context.StringValue("ListScenarios.Scenarios[" + i + "].Variables[" + j + "]._Value"); scenario_variables.Add(keyValuePair); } scenario.Variables = scenario_variables; listScenariosResponse_scenarios.Add(scenario); } listScenariosResponse.Scenarios = listScenariosResponse_scenarios; return(listScenariosResponse); }
public static DescribeZonesResponse Unmarshall(UnmarshallerContext context) { DescribeZonesResponse describeZonesResponse = new DescribeZonesResponse(); describeZonesResponse.HttpResponse = context.HttpResponse; describeZonesResponse.RequestId = context.StringValue("DescribeZones.RequestId"); List<DescribeZonesResponse.Zone> zones = new List<DescribeZonesResponse.Zone>(); for (int i = 0; i < context.Length("DescribeZones.Zones.Length"); i++) { DescribeZonesResponse.Zone zone = new DescribeZonesResponse.Zone(); zone.ZoneId = context.StringValue("DescribeZones.Zones["+ i +"].ZoneId"); zone.LocalName = context.StringValue("DescribeZones.Zones["+ i +"].LocalName"); List<string> availableResourceCreation = new List<string>(); for (int j = 0; j < context.Length("DescribeZones.Zones["+ i +"].AvailableResourceCreation.Length"); j++) { availableResourceCreation.Add(context.StringValue("DescribeZones.Zones["+ i +"].AvailableResourceCreation["+ j +"]")); } zone.AvailableResourceCreation = availableResourceCreation; List<string> availableDiskCategories = new List<string>(); for (int j = 0; j < context.Length("DescribeZones.Zones["+ i +"].AvailableDiskCategories.Length"); j++) { availableDiskCategories.Add(context.StringValue("DescribeZones.Zones["+ i +"].AvailableDiskCategories["+ j +"]")); } zone.AvailableDiskCategories = availableDiskCategories; List<string> availableInstanceTypes = new List<string>(); for (int j = 0; j < context.Length("DescribeZones.Zones["+ i +"].AvailableInstanceTypes.Length"); j++) { availableInstanceTypes.Add(context.StringValue("DescribeZones.Zones["+ i +"].AvailableInstanceTypes["+ j +"]")); } zone.AvailableInstanceTypes = availableInstanceTypes; List<DescribeZonesResponse.Zone.ResourcesInfo> availableResources = new List<DescribeZonesResponse.Zone.ResourcesInfo>(); for (int j = 0; j < context.Length("DescribeZones.Zones["+ i +"].AvailableResources.Length"); j++) { DescribeZonesResponse.Zone.ResourcesInfo resourcesInfo = new DescribeZonesResponse.Zone.ResourcesInfo(); resourcesInfo.IoOptimized = context.BooleanValue("DescribeZones.Zones["+ i +"].AvailableResources["+ j +"].IoOptimized"); List<string> systemDiskCategories = new List<string>(); for (int k = 0; k < context.Length("DescribeZones.Zones["+ i +"].AvailableResources["+ j +"].SystemDiskCategories.Length"); k++) { systemDiskCategories.Add(context.StringValue("DescribeZones.Zones["+ i +"].AvailableResources["+ j +"].SystemDiskCategories["+ k +"]")); } resourcesInfo.SystemDiskCategories = systemDiskCategories; List<string> dataDiskCategories = new List<string>(); for (int k = 0; k < context.Length("DescribeZones.Zones["+ i +"].AvailableResources["+ j +"].DataDiskCategories.Length"); k++) { dataDiskCategories.Add(context.StringValue("DescribeZones.Zones["+ i +"].AvailableResources["+ j +"].DataDiskCategories["+ k +"]")); } resourcesInfo.DataDiskCategories = dataDiskCategories; List<string> networkTypes = new List<string>(); for (int k = 0; k < context.Length("DescribeZones.Zones["+ i +"].AvailableResources["+ j +"].NetworkTypes.Length"); k++) { networkTypes.Add(context.StringValue("DescribeZones.Zones["+ i +"].AvailableResources["+ j +"].NetworkTypes["+ k +"]")); } resourcesInfo.NetworkTypes = networkTypes; List<string> instanceTypes = new List<string>(); for (int k = 0; k < context.Length("DescribeZones.Zones["+ i +"].AvailableResources["+ j +"].InstanceTypes.Length"); k++) { instanceTypes.Add(context.StringValue("DescribeZones.Zones["+ i +"].AvailableResources["+ j +"].InstanceTypes["+ k +"]")); } resourcesInfo.InstanceTypes = instanceTypes; List<string> instanceTypeFamilies = new List<string>(); for (int k = 0; k < context.Length("DescribeZones.Zones["+ i +"].AvailableResources["+ j +"].InstanceTypeFamilies.Length"); k++) { instanceTypeFamilies.Add(context.StringValue("DescribeZones.Zones["+ i +"].AvailableResources["+ j +"].InstanceTypeFamilies["+ k +"]")); } resourcesInfo.InstanceTypeFamilies = instanceTypeFamilies; List<string> instanceGenerations = new List<string>(); for (int k = 0; k < context.Length("DescribeZones.Zones["+ i +"].AvailableResources["+ j +"].InstanceGenerations.Length"); k++) { instanceGenerations.Add(context.StringValue("DescribeZones.Zones["+ i +"].AvailableResources["+ j +"].InstanceGenerations["+ k +"]")); } resourcesInfo.InstanceGenerations = instanceGenerations; availableResources.Add(resourcesInfo); } zone.AvailableResources = availableResources; zones.Add(zone); } describeZonesResponse.Zones = zones; return describeZonesResponse; }
public static ListNodesResponse Unmarshall(UnmarshallerContext context) { ListNodesResponse listNodesResponse = new ListNodesResponse(); listNodesResponse.HttpResponse = context.HttpResponse; listNodesResponse.RequestId = context.StringValue("ListNodes.RequestId"); listNodesResponse.TotalCount = context.IntegerValue("ListNodes.TotalCount"); listNodesResponse.PageNumber = context.IntegerValue("ListNodes.PageNumber"); listNodesResponse.PageSize = context.IntegerValue("ListNodes.PageSize"); List <ListNodesResponse.ListNodes_NodeInfo> listNodesResponse_nodes = new List <ListNodesResponse.ListNodes_NodeInfo>(); for (int i = 0; i < context.Length("ListNodes.Nodes.Length"); i++) { ListNodesResponse.ListNodes_NodeInfo nodeInfo = new ListNodesResponse.ListNodes_NodeInfo(); nodeInfo.Id = context.StringValue("ListNodes.Nodes[" + i + "].Id"); nodeInfo.RegionId = context.StringValue("ListNodes.Nodes[" + i + "].RegionId"); nodeInfo.HostName = context.StringValue("ListNodes.Nodes[" + i + "].HostName"); nodeInfo.IpAddress = context.StringValue("ListNodes.Nodes[" + i + "].IpAddress"); nodeInfo.Status = context.StringValue("ListNodes.Nodes[" + i + "].Status"); nodeInfo.Version = context.StringValue("ListNodes.Nodes[" + i + "].Version"); nodeInfo.CreatedByEhpc = context.BooleanValue("ListNodes.Nodes[" + i + "].CreatedByEhpc"); nodeInfo.AddTime = context.StringValue("ListNodes.Nodes[" + i + "].AddTime"); nodeInfo.Expired = context.BooleanValue("ListNodes.Nodes[" + i + "].Expired"); nodeInfo.ExpiredTime = context.StringValue("ListNodes.Nodes[" + i + "].ExpiredTime"); nodeInfo.SpotStrategy = context.StringValue("ListNodes.Nodes[" + i + "].SpotStrategy"); nodeInfo.LockReason = context.StringValue("ListNodes.Nodes[" + i + "].LockReason"); nodeInfo.ImageOwnerAlias = context.StringValue("ListNodes.Nodes[" + i + "].ImageOwnerAlias"); nodeInfo.ImageId = context.StringValue("ListNodes.Nodes[" + i + "].ImageId"); nodeInfo.Location = context.StringValue("ListNodes.Nodes[" + i + "].Location"); nodeInfo.CreateMode = context.StringValue("ListNodes.Nodes[" + i + "].CreateMode"); nodeInfo.VpcId = context.StringValue("ListNodes.Nodes[" + i + "].VpcId"); nodeInfo.ZoneId = context.StringValue("ListNodes.Nodes[" + i + "].ZoneId"); nodeInfo.VSwitchId = context.StringValue("ListNodes.Nodes[" + i + "].VSwitchId"); nodeInfo.HtEnabled = context.BooleanValue("ListNodes.Nodes[" + i + "].HtEnabled"); List <string> nodeInfo_roles = new List <string>(); for (int j = 0; j < context.Length("ListNodes.Nodes[" + i + "].Roles.Length"); j++) { nodeInfo_roles.Add(context.StringValue("ListNodes.Nodes[" + i + "].Roles[" + j + "]")); } nodeInfo.Roles = nodeInfo_roles; ListNodesResponse.ListNodes_NodeInfo.ListNodes_TotalResources totalResources = new ListNodesResponse.ListNodes_NodeInfo.ListNodes_TotalResources(); totalResources.Cpu = context.IntegerValue("ListNodes.Nodes[" + i + "].TotalResources.Cpu"); totalResources.Memory = context.IntegerValue("ListNodes.Nodes[" + i + "].TotalResources.Memory"); totalResources.Gpu = context.IntegerValue("ListNodes.Nodes[" + i + "].TotalResources.Gpu"); nodeInfo.TotalResources = totalResources; ListNodesResponse.ListNodes_NodeInfo.ListNodes_UsedResources usedResources = new ListNodesResponse.ListNodes_NodeInfo.ListNodes_UsedResources(); usedResources.Cpu = context.IntegerValue("ListNodes.Nodes[" + i + "].UsedResources.Cpu"); usedResources.Memory = context.IntegerValue("ListNodes.Nodes[" + i + "].UsedResources.Memory"); usedResources.Gpu = context.IntegerValue("ListNodes.Nodes[" + i + "].UsedResources.Gpu"); nodeInfo.UsedResources = usedResources; listNodesResponse_nodes.Add(nodeInfo); } listNodesResponse.Nodes = listNodesResponse_nodes; return(listNodesResponse); }
public static DescribeDisksResponse Unmarshall(UnmarshallerContext context) { DescribeDisksResponse describeDisksResponse = new DescribeDisksResponse(); describeDisksResponse.HttpResponse = context.HttpResponse; describeDisksResponse.RequestId = context.StringValue("DescribeDisks.RequestId"); describeDisksResponse.TotalCount = context.IntegerValue("DescribeDisks.TotalCount"); describeDisksResponse.PageNumber = context.IntegerValue("DescribeDisks.PageNumber"); describeDisksResponse.PageSize = context.IntegerValue("DescribeDisks.PageSize"); List <DescribeDisksResponse.DescribeDisks_Disk> describeDisksResponse_disks = new List <DescribeDisksResponse.DescribeDisks_Disk>(); for (int i = 0; i < context.Length("DescribeDisks.Disks.Length"); i++) { DescribeDisksResponse.DescribeDisks_Disk disk = new DescribeDisksResponse.DescribeDisks_Disk(); disk.DiskId = context.StringValue("DescribeDisks.Disks[" + i + "].DiskId"); disk.RegionId = context.StringValue("DescribeDisks.Disks[" + i + "].RegionId"); disk.ZoneId = context.StringValue("DescribeDisks.Disks[" + i + "].ZoneId"); disk.DiskName = context.StringValue("DescribeDisks.Disks[" + i + "].DiskName"); disk.Description = context.StringValue("DescribeDisks.Disks[" + i + "].Description"); disk.Type = context.StringValue("DescribeDisks.Disks[" + i + "].Type"); disk.Category = context.StringValue("DescribeDisks.Disks[" + i + "].Category"); disk.Size = context.IntegerValue("DescribeDisks.Disks[" + i + "].Size"); disk.ImageId = context.StringValue("DescribeDisks.Disks[" + i + "].ImageId"); disk.SourceSnapshotId = context.StringValue("DescribeDisks.Disks[" + i + "].SourceSnapshotId"); disk.AutoSnapshotPolicyId = context.StringValue("DescribeDisks.Disks[" + i + "].AutoSnapshotPolicyId"); disk.ProductCode = context.StringValue("DescribeDisks.Disks[" + i + "].ProductCode"); disk.Portable = context.BooleanValue("DescribeDisks.Disks[" + i + "].Portable"); disk.Status = context.StringValue("DescribeDisks.Disks[" + i + "].Status"); disk.InstanceId = context.StringValue("DescribeDisks.Disks[" + i + "].InstanceId"); disk.Device = context.StringValue("DescribeDisks.Disks[" + i + "].Device"); disk.DeleteWithInstance = context.BooleanValue("DescribeDisks.Disks[" + i + "].DeleteWithInstance"); disk.DeleteAutoSnapshot = context.BooleanValue("DescribeDisks.Disks[" + i + "].DeleteAutoSnapshot"); disk.EnableAutoSnapshot = context.BooleanValue("DescribeDisks.Disks[" + i + "].EnableAutoSnapshot"); disk.EnableAutomatedSnapshotPolicy = context.BooleanValue("DescribeDisks.Disks[" + i + "].EnableAutomatedSnapshotPolicy"); disk.CreationTime = context.StringValue("DescribeDisks.Disks[" + i + "].CreationTime"); disk.AttachedTime = context.StringValue("DescribeDisks.Disks[" + i + "].AttachedTime"); disk.DetachedTime = context.StringValue("DescribeDisks.Disks[" + i + "].DetachedTime"); disk.DiskChargeType = context.StringValue("DescribeDisks.Disks[" + i + "].DiskChargeType"); disk.ExpiredTime = context.StringValue("DescribeDisks.Disks[" + i + "].ExpiredTime"); disk.ResourceGroupId = context.StringValue("DescribeDisks.Disks[" + i + "].ResourceGroupId"); disk.Encrypted = context.BooleanValue("DescribeDisks.Disks[" + i + "].Encrypted"); disk.MountInstanceNum = context.IntegerValue("DescribeDisks.Disks[" + i + "].MountInstanceNum"); disk.IOPS = context.IntegerValue("DescribeDisks.Disks[" + i + "].IOPS"); disk.IOPSRead = context.IntegerValue("DescribeDisks.Disks[" + i + "].IOPSRead"); disk.IOPSWrite = context.IntegerValue("DescribeDisks.Disks[" + i + "].IOPSWrite"); disk.KMSKeyId = context.StringValue("DescribeDisks.Disks[" + i + "].KMSKeyId"); disk.BdfId = context.StringValue("DescribeDisks.Disks[" + i + "].BdfId"); List <DescribeDisksResponse.DescribeDisks_Disk.DescribeDisks_OperationLock> disk_operationLocks = new List <DescribeDisksResponse.DescribeDisks_Disk.DescribeDisks_OperationLock>(); for (int j = 0; j < context.Length("DescribeDisks.Disks[" + i + "].OperationLocks.Length"); j++) { DescribeDisksResponse.DescribeDisks_Disk.DescribeDisks_OperationLock operationLock = new DescribeDisksResponse.DescribeDisks_Disk.DescribeDisks_OperationLock(); operationLock.LockReason = context.StringValue("DescribeDisks.Disks[" + i + "].OperationLocks[" + j + "].LockReason"); disk_operationLocks.Add(operationLock); } disk.OperationLocks = disk_operationLocks; List <DescribeDisksResponse.DescribeDisks_Disk.DescribeDisks_MountInstance> disk_mountInstances = new List <DescribeDisksResponse.DescribeDisks_Disk.DescribeDisks_MountInstance>(); for (int j = 0; j < context.Length("DescribeDisks.Disks[" + i + "].MountInstances.Length"); j++) { DescribeDisksResponse.DescribeDisks_Disk.DescribeDisks_MountInstance mountInstance = new DescribeDisksResponse.DescribeDisks_Disk.DescribeDisks_MountInstance(); mountInstance.InstanceId = context.StringValue("DescribeDisks.Disks[" + i + "].MountInstances[" + j + "].InstanceId"); mountInstance.Device = context.StringValue("DescribeDisks.Disks[" + i + "].MountInstances[" + j + "].Device"); mountInstance.AttachedTime = context.StringValue("DescribeDisks.Disks[" + i + "].MountInstances[" + j + "].AttachedTime"); disk_mountInstances.Add(mountInstance); } disk.MountInstances = disk_mountInstances; List <DescribeDisksResponse.DescribeDisks_Disk.DescribeDisks_Tag> disk_tags = new List <DescribeDisksResponse.DescribeDisks_Disk.DescribeDisks_Tag>(); for (int j = 0; j < context.Length("DescribeDisks.Disks[" + i + "].Tags.Length"); j++) { DescribeDisksResponse.DescribeDisks_Disk.DescribeDisks_Tag tag = new DescribeDisksResponse.DescribeDisks_Disk.DescribeDisks_Tag(); tag.TagKey = context.StringValue("DescribeDisks.Disks[" + i + "].Tags[" + j + "].TagKey"); tag.TagValue = context.StringValue("DescribeDisks.Disks[" + i + "].Tags[" + j + "].TagValue"); disk_tags.Add(tag); } disk.Tags = disk_tags; describeDisksResponse_disks.Add(disk); } describeDisksResponse.Disks = describeDisksResponse_disks; return(describeDisksResponse); }
public static DescribeCenBandwidthPackagesResponse Unmarshall(UnmarshallerContext _ctx) { DescribeCenBandwidthPackagesResponse describeCenBandwidthPackagesResponse = new DescribeCenBandwidthPackagesResponse(); describeCenBandwidthPackagesResponse.HttpResponse = _ctx.HttpResponse; describeCenBandwidthPackagesResponse.RequestId = _ctx.StringValue("DescribeCenBandwidthPackages.RequestId"); describeCenBandwidthPackagesResponse.TotalCount = _ctx.IntegerValue("DescribeCenBandwidthPackages.TotalCount"); describeCenBandwidthPackagesResponse.PageNumber = _ctx.IntegerValue("DescribeCenBandwidthPackages.PageNumber"); describeCenBandwidthPackagesResponse.PageSize = _ctx.IntegerValue("DescribeCenBandwidthPackages.PageSize"); List <DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage> describeCenBandwidthPackagesResponse_cenBandwidthPackages = new List <DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage>(); for (int i = 0; i < _ctx.Length("DescribeCenBandwidthPackages.CenBandwidthPackages.Length"); i++) { DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage cenBandwidthPackage = new DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage(); cenBandwidthPackage.CenBandwidthPackageId = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].CenBandwidthPackageId"); cenBandwidthPackage.Name = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].Name"); cenBandwidthPackage.Description = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].Description"); cenBandwidthPackage.Bandwidth = _ctx.LongValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].Bandwidth"); cenBandwidthPackage.BandwidthPackageChargeType = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].BandwidthPackageChargeType"); cenBandwidthPackage.GeographicRegionAId = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].GeographicRegionAId"); cenBandwidthPackage.GeographicRegionBId = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].GeographicRegionBId"); cenBandwidthPackage.GeographicSpanId = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].GeographicSpanId"); cenBandwidthPackage.BusinessStatus = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].BusinessStatus"); cenBandwidthPackage.CreationTime = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].CreationTime"); cenBandwidthPackage.ExpiredTime = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].ExpiredTime"); cenBandwidthPackage.Status = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].Status"); cenBandwidthPackage.IsCrossBorder = _ctx.BooleanValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].IsCrossBorder"); cenBandwidthPackage.TypeFor95 = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].TypeFor95"); cenBandwidthPackage.Ratio = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].Ratio"); cenBandwidthPackage.HasReservationData = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].HasReservationData"); cenBandwidthPackage.ReservationBandwidth = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].ReservationBandwidth"); cenBandwidthPackage.ReservationInternetChargeType = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].ReservationInternetChargeType"); cenBandwidthPackage.ReservationActiveTime = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].ReservationActiveTime"); cenBandwidthPackage.ReservationOrderType = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].ReservationOrderType"); List <string> cenBandwidthPackage_cenIds = new List <string>(); for (int j = 0; j < _ctx.Length("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].CenIds.Length"); j++) { cenBandwidthPackage_cenIds.Add(_ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].CenIds[" + j + "]")); } cenBandwidthPackage.CenIds = cenBandwidthPackage_cenIds; List <DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage.DescribeCenBandwidthPackages_OrginInterRegionBandwidthLimit> cenBandwidthPackage_orginInterRegionBandwidthLimits = new List <DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage.DescribeCenBandwidthPackages_OrginInterRegionBandwidthLimit>(); for (int j = 0; j < _ctx.Length("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].OrginInterRegionBandwidthLimits.Length"); j++) { DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage.DescribeCenBandwidthPackages_OrginInterRegionBandwidthLimit orginInterRegionBandwidthLimit = new DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage.DescribeCenBandwidthPackages_OrginInterRegionBandwidthLimit(); orginInterRegionBandwidthLimit.LocalRegionId = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].OrginInterRegionBandwidthLimits[" + j + "].LocalRegionId"); orginInterRegionBandwidthLimit.OppositeRegionId = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].OrginInterRegionBandwidthLimits[" + j + "].OppositeRegionId"); orginInterRegionBandwidthLimit.GeographicSpanId = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].OrginInterRegionBandwidthLimits[" + j + "].GeographicSpanId"); orginInterRegionBandwidthLimit.BandwidthLimit = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].OrginInterRegionBandwidthLimits[" + j + "].BandwidthLimit"); cenBandwidthPackage_orginInterRegionBandwidthLimits.Add(orginInterRegionBandwidthLimit); } cenBandwidthPackage.OrginInterRegionBandwidthLimits = cenBandwidthPackage_orginInterRegionBandwidthLimits; List <DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage.DescribeCenBandwidthPackages_Tag> cenBandwidthPackage_tags = new List <DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage.DescribeCenBandwidthPackages_Tag>(); for (int j = 0; j < _ctx.Length("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].Tags.Length"); j++) { DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage.DescribeCenBandwidthPackages_Tag tag = new DescribeCenBandwidthPackagesResponse.DescribeCenBandwidthPackages_CenBandwidthPackage.DescribeCenBandwidthPackages_Tag(); tag.Key = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].Tags[" + j + "].Key"); tag._Value = _ctx.StringValue("DescribeCenBandwidthPackages.CenBandwidthPackages[" + i + "].Tags[" + j + "].Value"); cenBandwidthPackage_tags.Add(tag); } cenBandwidthPackage.Tags = cenBandwidthPackage_tags; describeCenBandwidthPackagesResponse_cenBandwidthPackages.Add(cenBandwidthPackage); } describeCenBandwidthPackagesResponse.CenBandwidthPackages = describeCenBandwidthPackagesResponse_cenBandwidthPackages; return(describeCenBandwidthPackagesResponse); }
public static DescribeOssIncrementCheckSettingResponse Unmarshall(UnmarshallerContext context) { DescribeOssIncrementCheckSettingResponse describeOssIncrementCheckSettingResponse = new DescribeOssIncrementCheckSettingResponse(); describeOssIncrementCheckSettingResponse.HttpResponse = context.HttpResponse; describeOssIncrementCheckSettingResponse.RequestId = context.StringValue("DescribeOssIncrementCheckSetting.RequestId"); describeOssIncrementCheckSettingResponse.ImageEnableLimit = context.BooleanValue("DescribeOssIncrementCheckSetting.ImageEnableLimit"); describeOssIncrementCheckSettingResponse.ImageScanLimit = context.LongValue("DescribeOssIncrementCheckSetting.ImageScanLimit"); describeOssIncrementCheckSettingResponse.VideoFrameInterval = context.IntegerValue("DescribeOssIncrementCheckSetting.VideoFrameInterval"); describeOssIncrementCheckSettingResponse.VideoMaxFrames = context.IntegerValue("DescribeOssIncrementCheckSetting.VideoMaxFrames"); describeOssIncrementCheckSettingResponse.VideoMaxSize = context.IntegerValue("DescribeOssIncrementCheckSetting.VideoMaxSize"); describeOssIncrementCheckSettingResponse.AutoFreezeType = context.StringValue("DescribeOssIncrementCheckSetting.AutoFreezeType"); List <string> describeOssIncrementCheckSettingResponse_imageSceneList = new List <string>(); for (int i = 0; i < context.Length("DescribeOssIncrementCheckSetting.ImageSceneList.Length"); i++) { describeOssIncrementCheckSettingResponse_imageSceneList.Add(context.StringValue("DescribeOssIncrementCheckSetting.ImageSceneList[" + i + "]")); } describeOssIncrementCheckSettingResponse.ImageSceneList = describeOssIncrementCheckSettingResponse_imageSceneList; List <string> describeOssIncrementCheckSettingResponse_videoSceneList = new List <string>(); for (int i = 0; i < context.Length("DescribeOssIncrementCheckSetting.VideoSceneList.Length"); i++) { describeOssIncrementCheckSettingResponse_videoSceneList.Add(context.StringValue("DescribeOssIncrementCheckSetting.VideoSceneList[" + i + "]")); } describeOssIncrementCheckSettingResponse.VideoSceneList = describeOssIncrementCheckSettingResponse_videoSceneList; List <string> describeOssIncrementCheckSettingResponse_videoAutoFreezeSceneList = new List <string>(); for (int i = 0; i < context.Length("DescribeOssIncrementCheckSetting.VideoAutoFreezeSceneList.Length"); i++) { describeOssIncrementCheckSettingResponse_videoAutoFreezeSceneList.Add(context.StringValue("DescribeOssIncrementCheckSetting.VideoAutoFreezeSceneList[" + i + "]")); } describeOssIncrementCheckSettingResponse.VideoAutoFreezeSceneList = describeOssIncrementCheckSettingResponse_videoAutoFreezeSceneList; DescribeOssIncrementCheckSettingResponse.DescribeOssIncrementCheckSetting_ImageAutoFreeze imageAutoFreeze = new DescribeOssIncrementCheckSettingResponse.DescribeOssIncrementCheckSetting_ImageAutoFreeze(); imageAutoFreeze.Enabled = context.BooleanValue("DescribeOssIncrementCheckSetting.ImageAutoFreeze.Enabled"); imageAutoFreeze.P**n = context.StringValue("DescribeOssIncrementCheckSetting.ImageAutoFreeze.P**n"); imageAutoFreeze.Terrorism = context.StringValue("DescribeOssIncrementCheckSetting.ImageAutoFreeze.Terrorism"); describeOssIncrementCheckSettingResponse.ImageAutoFreeze = imageAutoFreeze; List <DescribeOssIncrementCheckSettingResponse.DescribeOssIncrementCheckSetting_BucketConfig> describeOssIncrementCheckSettingResponse_bucketConfigList = new List <DescribeOssIncrementCheckSettingResponse.DescribeOssIncrementCheckSetting_BucketConfig>(); for (int i = 0; i < context.Length("DescribeOssIncrementCheckSetting.BucketConfigList.Length"); i++) { DescribeOssIncrementCheckSettingResponse.DescribeOssIncrementCheckSetting_BucketConfig bucketConfig = new DescribeOssIncrementCheckSettingResponse.DescribeOssIncrementCheckSetting_BucketConfig(); bucketConfig.Selected = context.BooleanValue("DescribeOssIncrementCheckSetting.BucketConfigList[" + i + "].Selected"); bucketConfig.Bucket = context.StringValue("DescribeOssIncrementCheckSetting.BucketConfigList[" + i + "].Bucket"); List <string> bucketConfig_prefixes = new List <string>(); for (int j = 0; j < context.Length("DescribeOssIncrementCheckSetting.BucketConfigList[" + i + "].Prefixes.Length"); j++) { bucketConfig_prefixes.Add(context.StringValue("DescribeOssIncrementCheckSetting.BucketConfigList[" + i + "].Prefixes[" + j + "]")); } bucketConfig.Prefixes = bucketConfig_prefixes; describeOssIncrementCheckSettingResponse_bucketConfigList.Add(bucketConfig); } describeOssIncrementCheckSettingResponse.BucketConfigList = describeOssIncrementCheckSettingResponse_bucketConfigList; return(describeOssIncrementCheckSettingResponse); }
public static GetPredictiveJobResponse Unmarshall(UnmarshallerContext context) { GetPredictiveJobResponse getPredictiveJobResponse = new GetPredictiveJobResponse(); getPredictiveJobResponse.HttpResponse = context.HttpResponse; getPredictiveJobResponse.RequestId = context.StringValue("GetPredictiveJob.RequestId"); getPredictiveJobResponse.Success = context.BooleanValue("GetPredictiveJob.Success"); getPredictiveJobResponse.Code = context.StringValue("GetPredictiveJob.Code"); getPredictiveJobResponse.Message = context.StringValue("GetPredictiveJob.Message"); getPredictiveJobResponse.HttpStatusCode = context.IntegerValue("GetPredictiveJob.HttpStatusCode"); GetPredictiveJobResponse.GetPredictiveJob_Job job = new GetPredictiveJobResponse.GetPredictiveJob_Job(); job.JobId = context.StringValue("GetPredictiveJob.Job.JobId"); job.JobGroupId = context.StringValue("GetPredictiveJob.Job.JobGroupId"); job.ScenarioId = context.StringValue("GetPredictiveJob.Job.ScenarioId"); job.StrategyId = context.StringValue("GetPredictiveJob.Job.StrategyId"); job.Priority = context.IntegerValue("GetPredictiveJob.Job.Priority"); job.SystemPriority = context.IntegerValue("GetPredictiveJob.Job.SystemPriority"); job.Status = context.StringValue("GetPredictiveJob.Job.Status"); job.ReferenceId = context.StringValue("GetPredictiveJob.Job.ReferenceId"); job.FailureReason = context.StringValue("GetPredictiveJob.Job.FailureReason"); List <string> job_callingNumbers = new List <string>(); for (int i = 0; i < context.Length("GetPredictiveJob.Job.CallingNumbers.Length"); i++) { job_callingNumbers.Add(context.StringValue("GetPredictiveJob.Job.CallingNumbers[" + i + "]")); } job.CallingNumbers = job_callingNumbers; List <GetPredictiveJobResponse.GetPredictiveJob_Job.GetPredictiveJob_Contact> job_contacts = new List <GetPredictiveJobResponse.GetPredictiveJob_Job.GetPredictiveJob_Contact>(); for (int i = 0; i < context.Length("GetPredictiveJob.Job.Contacts.Length"); i++) { GetPredictiveJobResponse.GetPredictiveJob_Job.GetPredictiveJob_Contact contact = new GetPredictiveJobResponse.GetPredictiveJob_Job.GetPredictiveJob_Contact(); contact.ContactId = context.StringValue("GetPredictiveJob.Job.Contacts[" + i + "].ContactId"); contact.ContactName = context.StringValue("GetPredictiveJob.Job.Contacts[" + i + "].ContactName"); contact.Honorific = context.StringValue("GetPredictiveJob.Job.Contacts[" + i + "].Honorific"); contact.Role = context.StringValue("GetPredictiveJob.Job.Contacts[" + i + "].Role"); contact.PhoneNumber = context.StringValue("GetPredictiveJob.Job.Contacts[" + i + "].PhoneNumber"); contact.State = context.StringValue("GetPredictiveJob.Job.Contacts[" + i + "].State"); contact.ReferenceId = context.StringValue("GetPredictiveJob.Job.Contacts[" + i + "].ReferenceId"); contact.JobId = context.StringValue("GetPredictiveJob.Job.Contacts[" + i + "].JobId"); job_contacts.Add(contact); } job.Contacts = job_contacts; List <GetPredictiveJobResponse.GetPredictiveJob_Job.GetPredictiveJob_Task> job_tasks = new List <GetPredictiveJobResponse.GetPredictiveJob_Job.GetPredictiveJob_Task>(); for (int i = 0; i < context.Length("GetPredictiveJob.Job.Tasks.Length"); i++) { GetPredictiveJobResponse.GetPredictiveJob_Job.GetPredictiveJob_Task task = new GetPredictiveJobResponse.GetPredictiveJob_Job.GetPredictiveJob_Task(); task.TaskId = context.StringValue("GetPredictiveJob.Job.Tasks[" + i + "].TaskId"); task.JobId = context.StringValue("GetPredictiveJob.Job.Tasks[" + i + "].JobId"); task.ScenarioId = context.StringValue("GetPredictiveJob.Job.Tasks[" + i + "].ScenarioId"); task.ChatbotId = context.StringValue("GetPredictiveJob.Job.Tasks[" + i + "].ChatbotId"); task.PlanedTime = context.LongValue("GetPredictiveJob.Job.Tasks[" + i + "].PlanedTime"); task.ActualTime = context.LongValue("GetPredictiveJob.Job.Tasks[" + i + "].ActualTime"); task.CallingNumber = context.StringValue("GetPredictiveJob.Job.Tasks[" + i + "].CallingNumber"); task.CalledNumber = context.StringValue("GetPredictiveJob.Job.Tasks[" + i + "].CalledNumber"); task.CallId = context.StringValue("GetPredictiveJob.Job.Tasks[" + i + "].CallId"); task.Status = context.StringValue("GetPredictiveJob.Job.Tasks[" + i + "].Status"); task.Brief = context.StringValue("GetPredictiveJob.Job.Tasks[" + i + "].Brief"); task.Duration = context.IntegerValue("GetPredictiveJob.Job.Tasks[" + i + "].Duration"); GetPredictiveJobResponse.GetPredictiveJob_Job.GetPredictiveJob_Task.GetPredictiveJob_Contact1 contact1 = new GetPredictiveJobResponse.GetPredictiveJob_Job.GetPredictiveJob_Task.GetPredictiveJob_Contact1(); contact1.ContactId = context.StringValue("GetPredictiveJob.Job.Tasks[" + i + "].Contact.ContactId"); contact1.ContactName = context.StringValue("GetPredictiveJob.Job.Tasks[" + i + "].Contact.ContactName"); contact1.Honorific = context.StringValue("GetPredictiveJob.Job.Tasks[" + i + "].Contact.Honorific"); contact1.Role = context.StringValue("GetPredictiveJob.Job.Tasks[" + i + "].Contact.Role"); contact1.PhoneNumber = context.StringValue("GetPredictiveJob.Job.Tasks[" + i + "].Contact.PhoneNumber"); contact1.State = context.StringValue("GetPredictiveJob.Job.Tasks[" + i + "].Contact.State"); contact1.ReferenceId = context.StringValue("GetPredictiveJob.Job.Tasks[" + i + "].Contact.ReferenceId"); contact1.JobId = context.StringValue("GetPredictiveJob.Job.Tasks[" + i + "].Contact.JobId"); task.Contact1 = contact1; job_tasks.Add(task); } job.Tasks = job_tasks; getPredictiveJobResponse.Job = job; return(getPredictiveJobResponse); }
public static DescribeImagesResponse Unmarshall(UnmarshallerContext context) { DescribeImagesResponse describeImagesResponse = new DescribeImagesResponse(); describeImagesResponse.HttpResponse = context.HttpResponse; describeImagesResponse.RequestId = context.StringValue("DescribeImages.RequestId"); describeImagesResponse.RegionId = context.StringValue("DescribeImages.RegionId"); describeImagesResponse.TotalCount = context.IntegerValue("DescribeImages.TotalCount"); describeImagesResponse.PageNumber = context.IntegerValue("DescribeImages.PageNumber"); describeImagesResponse.PageSize = context.IntegerValue("DescribeImages.PageSize"); List <DescribeImagesResponse.DescribeImages_Image> describeImagesResponse_images = new List <DescribeImagesResponse.DescribeImages_Image>(); for (int i = 0; i < context.Length("DescribeImages.Images.Length"); i++) { DescribeImagesResponse.DescribeImages_Image image = new DescribeImagesResponse.DescribeImages_Image(); image.Progress = context.StringValue("DescribeImages.Images[" + i + "].Progress"); image.ImageId = context.StringValue("DescribeImages.Images[" + i + "].ImageId"); image.ImageName = context.StringValue("DescribeImages.Images[" + i + "].ImageName"); image.ImageVersion = context.StringValue("DescribeImages.Images[" + i + "].ImageVersion"); image.Description = context.StringValue("DescribeImages.Images[" + i + "].Description"); image.Size = context.IntegerValue("DescribeImages.Images[" + i + "].Size"); image.ImageOwnerAlias = context.StringValue("DescribeImages.Images[" + i + "].ImageOwnerAlias"); image.IsSupportIoOptimized = context.BooleanValue("DescribeImages.Images[" + i + "].IsSupportIoOptimized"); image.IsSupportCloudinit = context.BooleanValue("DescribeImages.Images[" + i + "].IsSupportCloudinit"); image.OSName = context.StringValue("DescribeImages.Images[" + i + "].OSName"); image.Architecture = context.StringValue("DescribeImages.Images[" + i + "].Architecture"); image.Status = context.StringValue("DescribeImages.Images[" + i + "].Status"); image.ProductCode = context.StringValue("DescribeImages.Images[" + i + "].ProductCode"); image.IsSubscribed = context.BooleanValue("DescribeImages.Images[" + i + "].IsSubscribed"); image.CreationTime = context.StringValue("DescribeImages.Images[" + i + "].CreationTime"); image.IsSelfShared = context.StringValue("DescribeImages.Images[" + i + "].IsSelfShared"); image.OSType = context.StringValue("DescribeImages.Images[" + i + "].OSType"); image.Platform = context.StringValue("DescribeImages.Images[" + i + "].Platform"); image.Usage = context.StringValue("DescribeImages.Images[" + i + "].Usage"); image.IsCopied = context.BooleanValue("DescribeImages.Images[" + i + "].IsCopied"); image.ResourceGroupId = context.StringValue("DescribeImages.Images[" + i + "].ResourceGroupId"); List <DescribeImagesResponse.DescribeImages_Image.DescribeImages_DiskDeviceMapping> image_diskDeviceMappings = new List <DescribeImagesResponse.DescribeImages_Image.DescribeImages_DiskDeviceMapping>(); for (int j = 0; j < context.Length("DescribeImages.Images[" + i + "].DiskDeviceMappings.Length"); j++) { DescribeImagesResponse.DescribeImages_Image.DescribeImages_DiskDeviceMapping diskDeviceMapping = new DescribeImagesResponse.DescribeImages_Image.DescribeImages_DiskDeviceMapping(); diskDeviceMapping.SnapshotId = context.StringValue("DescribeImages.Images[" + i + "].DiskDeviceMappings[" + j + "].SnapshotId"); diskDeviceMapping.Size = context.StringValue("DescribeImages.Images[" + i + "].DiskDeviceMappings[" + j + "].Size"); diskDeviceMapping.Device = context.StringValue("DescribeImages.Images[" + i + "].DiskDeviceMappings[" + j + "].Device"); diskDeviceMapping.Type = context.StringValue("DescribeImages.Images[" + i + "].DiskDeviceMappings[" + j + "].Type"); diskDeviceMapping.Format = context.StringValue("DescribeImages.Images[" + i + "].DiskDeviceMappings[" + j + "].Format"); diskDeviceMapping.ImportOSSBucket = context.StringValue("DescribeImages.Images[" + i + "].DiskDeviceMappings[" + j + "].ImportOSSBucket"); diskDeviceMapping.ImportOSSObject = context.StringValue("DescribeImages.Images[" + i + "].DiskDeviceMappings[" + j + "].ImportOSSObject"); diskDeviceMapping.Progress = context.StringValue("DescribeImages.Images[" + i + "].DiskDeviceMappings[" + j + "].Progress"); diskDeviceMapping.RemainTime = context.IntegerValue("DescribeImages.Images[" + i + "].DiskDeviceMappings[" + j + "].RemainTime"); image_diskDeviceMappings.Add(diskDeviceMapping); } image.DiskDeviceMappings = image_diskDeviceMappings; List <DescribeImagesResponse.DescribeImages_Image.DescribeImages_Tag> image_tags = new List <DescribeImagesResponse.DescribeImages_Image.DescribeImages_Tag>(); for (int j = 0; j < context.Length("DescribeImages.Images[" + i + "].Tags.Length"); j++) { DescribeImagesResponse.DescribeImages_Image.DescribeImages_Tag tag = new DescribeImagesResponse.DescribeImages_Image.DescribeImages_Tag(); tag.TagKey = context.StringValue("DescribeImages.Images[" + i + "].Tags[" + j + "].TagKey"); tag.TagValue = context.StringValue("DescribeImages.Images[" + i + "].Tags[" + j + "].TagValue"); image_tags.Add(tag); } image.Tags = image_tags; describeImagesResponse_images.Add(image); } describeImagesResponse.Images = describeImagesResponse_images; return(describeImagesResponse); }
public static DescribeScreenSecurityStatInfoResponse Unmarshall(UnmarshallerContext context) { DescribeScreenSecurityStatInfoResponse describeScreenSecurityStatInfoResponse = new DescribeScreenSecurityStatInfoResponse(); describeScreenSecurityStatInfoResponse.HttpResponse = context.HttpResponse; describeScreenSecurityStatInfoResponse.RequestId = context.StringValue("DescribeScreenSecurityStatInfo.RequestId"); describeScreenSecurityStatInfoResponse.Success = context.BooleanValue("DescribeScreenSecurityStatInfo.Success"); DescribeScreenSecurityStatInfoResponse.DescribeScreenSecurityStatInfo_SecurityEvent securityEvent = new DescribeScreenSecurityStatInfoResponse.DescribeScreenSecurityStatInfo_SecurityEvent(); securityEvent.SeriousCount = context.IntegerValue("DescribeScreenSecurityStatInfo.SecurityEvent.SeriousCount"); securityEvent.SuspiciousCount = context.IntegerValue("DescribeScreenSecurityStatInfo.SecurityEvent.SuspiciousCount"); securityEvent.RemindCount = context.IntegerValue("DescribeScreenSecurityStatInfo.SecurityEvent.RemindCount"); securityEvent.TotalCount = context.IntegerValue("DescribeScreenSecurityStatInfo.SecurityEvent.TotalCount"); List <string> securityEvent_dateArray = new List <string>(); for (int i = 0; i < context.Length("DescribeScreenSecurityStatInfo.SecurityEvent.DateArray.Length"); i++) { securityEvent_dateArray.Add(context.StringValue("DescribeScreenSecurityStatInfo.SecurityEvent.DateArray[" + i + "]")); } securityEvent.DateArray = securityEvent_dateArray; List <string> securityEvent_valueArray = new List <string>(); for (int i = 0; i < context.Length("DescribeScreenSecurityStatInfo.SecurityEvent.ValueArray.Length"); i++) { securityEvent_valueArray.Add(context.StringValue("DescribeScreenSecurityStatInfo.SecurityEvent.ValueArray[" + i + "]")); } securityEvent.ValueArray = securityEvent_valueArray; List <string> securityEvent_levelsOn = new List <string>(); for (int i = 0; i < context.Length("DescribeScreenSecurityStatInfo.SecurityEvent.LevelsOn.Length"); i++) { securityEvent_levelsOn.Add(context.StringValue("DescribeScreenSecurityStatInfo.SecurityEvent.LevelsOn[" + i + "]")); } securityEvent.LevelsOn = securityEvent_levelsOn; List <string> securityEvent_seriousList = new List <string>(); for (int i = 0; i < context.Length("DescribeScreenSecurityStatInfo.SecurityEvent.SeriousList.Length"); i++) { securityEvent_seriousList.Add(context.StringValue("DescribeScreenSecurityStatInfo.SecurityEvent.SeriousList[" + i + "]")); } securityEvent.SeriousList = securityEvent_seriousList; List <string> securityEvent_suspiciousList = new List <string>(); for (int i = 0; i < context.Length("DescribeScreenSecurityStatInfo.SecurityEvent.SuspiciousList.Length"); i++) { securityEvent_suspiciousList.Add(context.StringValue("DescribeScreenSecurityStatInfo.SecurityEvent.SuspiciousList[" + i + "]")); } securityEvent.SuspiciousList = securityEvent_suspiciousList; List <string> securityEvent_remindList = new List <string>(); for (int i = 0; i < context.Length("DescribeScreenSecurityStatInfo.SecurityEvent.RemindList.Length"); i++) { securityEvent_remindList.Add(context.StringValue("DescribeScreenSecurityStatInfo.SecurityEvent.RemindList[" + i + "]")); } securityEvent.RemindList = securityEvent_remindList; describeScreenSecurityStatInfoResponse.SecurityEvent = securityEvent; DescribeScreenSecurityStatInfoResponse.DescribeScreenSecurityStatInfo_AttackEvent attackEvent = new DescribeScreenSecurityStatInfoResponse.DescribeScreenSecurityStatInfo_AttackEvent(); attackEvent.TotalCount = context.IntegerValue("DescribeScreenSecurityStatInfo.AttackEvent.TotalCount"); List <string> attackEvent_dateArray1 = new List <string>(); for (int i = 0; i < context.Length("DescribeScreenSecurityStatInfo.AttackEvent.DateArray.Length"); i++) { attackEvent_dateArray1.Add(context.StringValue("DescribeScreenSecurityStatInfo.AttackEvent.DateArray[" + i + "]")); } attackEvent.DateArray1 = attackEvent_dateArray1; List <string> attackEvent_valueArray2 = new List <string>(); for (int i = 0; i < context.Length("DescribeScreenSecurityStatInfo.AttackEvent.ValueArray.Length"); i++) { attackEvent_valueArray2.Add(context.StringValue("DescribeScreenSecurityStatInfo.AttackEvent.ValueArray[" + i + "]")); } attackEvent.ValueArray2 = attackEvent_valueArray2; describeScreenSecurityStatInfoResponse.AttackEvent = attackEvent; DescribeScreenSecurityStatInfoResponse.DescribeScreenSecurityStatInfo_HealthCheck healthCheck = new DescribeScreenSecurityStatInfoResponse.DescribeScreenSecurityStatInfo_HealthCheck(); healthCheck.MediumCount = context.IntegerValue("DescribeScreenSecurityStatInfo.HealthCheck.MediumCount"); healthCheck.HighCount = context.IntegerValue("DescribeScreenSecurityStatInfo.HealthCheck.HighCount"); healthCheck.LowCount = context.IntegerValue("DescribeScreenSecurityStatInfo.HealthCheck.LowCount"); healthCheck.TotalCount = context.IntegerValue("DescribeScreenSecurityStatInfo.HealthCheck.TotalCount"); List <string> healthCheck_dateArray3 = new List <string>(); for (int i = 0; i < context.Length("DescribeScreenSecurityStatInfo.HealthCheck.DateArray.Length"); i++) { healthCheck_dateArray3.Add(context.StringValue("DescribeScreenSecurityStatInfo.HealthCheck.DateArray[" + i + "]")); } healthCheck.DateArray3 = healthCheck_dateArray3; List <string> healthCheck_valueArray4 = new List <string>(); for (int i = 0; i < context.Length("DescribeScreenSecurityStatInfo.HealthCheck.ValueArray.Length"); i++) { healthCheck_valueArray4.Add(context.StringValue("DescribeScreenSecurityStatInfo.HealthCheck.ValueArray[" + i + "]")); } healthCheck.ValueArray4 = healthCheck_valueArray4; List <string> healthCheck_levelsOn5 = new List <string>(); for (int i = 0; i < context.Length("DescribeScreenSecurityStatInfo.HealthCheck.LevelsOn.Length"); i++) { healthCheck_levelsOn5.Add(context.StringValue("DescribeScreenSecurityStatInfo.HealthCheck.LevelsOn[" + i + "]")); } healthCheck.LevelsOn5 = healthCheck_levelsOn5; List <string> healthCheck_highList = new List <string>(); for (int i = 0; i < context.Length("DescribeScreenSecurityStatInfo.HealthCheck.HighList.Length"); i++) { healthCheck_highList.Add(context.StringValue("DescribeScreenSecurityStatInfo.HealthCheck.HighList[" + i + "]")); } healthCheck.HighList = healthCheck_highList; List <string> healthCheck_mediumList = new List <string>(); for (int i = 0; i < context.Length("DescribeScreenSecurityStatInfo.HealthCheck.MediumList.Length"); i++) { healthCheck_mediumList.Add(context.StringValue("DescribeScreenSecurityStatInfo.HealthCheck.MediumList[" + i + "]")); } healthCheck.MediumList = healthCheck_mediumList; List <string> healthCheck_lowList = new List <string>(); for (int i = 0; i < context.Length("DescribeScreenSecurityStatInfo.HealthCheck.LowList.Length"); i++) { healthCheck_lowList.Add(context.StringValue("DescribeScreenSecurityStatInfo.HealthCheck.LowList[" + i + "]")); } healthCheck.LowList = healthCheck_lowList; describeScreenSecurityStatInfoResponse.HealthCheck = healthCheck; DescribeScreenSecurityStatInfoResponse.DescribeScreenSecurityStatInfo_Vulnerability vulnerability = new DescribeScreenSecurityStatInfoResponse.DescribeScreenSecurityStatInfo_Vulnerability(); vulnerability.NntfCount = context.IntegerValue("DescribeScreenSecurityStatInfo.Vulnerability.NntfCount"); vulnerability.LaterCount = context.IntegerValue("DescribeScreenSecurityStatInfo.Vulnerability.LaterCount"); vulnerability.AsapCount = context.IntegerValue("DescribeScreenSecurityStatInfo.Vulnerability.AsapCount"); vulnerability.TotalCount = context.IntegerValue("DescribeScreenSecurityStatInfo.Vulnerability.TotalCount"); List <string> vulnerability_dateArray6 = new List <string>(); for (int i = 0; i < context.Length("DescribeScreenSecurityStatInfo.Vulnerability.DateArray.Length"); i++) { vulnerability_dateArray6.Add(context.StringValue("DescribeScreenSecurityStatInfo.Vulnerability.DateArray[" + i + "]")); } vulnerability.DateArray6 = vulnerability_dateArray6; List <string> vulnerability_valueArray7 = new List <string>(); for (int i = 0; i < context.Length("DescribeScreenSecurityStatInfo.Vulnerability.ValueArray.Length"); i++) { vulnerability_valueArray7.Add(context.StringValue("DescribeScreenSecurityStatInfo.Vulnerability.ValueArray[" + i + "]")); } vulnerability.ValueArray7 = vulnerability_valueArray7; List <string> vulnerability_levelsOn8 = new List <string>(); for (int i = 0; i < context.Length("DescribeScreenSecurityStatInfo.Vulnerability.LevelsOn.Length"); i++) { vulnerability_levelsOn8.Add(context.StringValue("DescribeScreenSecurityStatInfo.Vulnerability.LevelsOn[" + i + "]")); } vulnerability.LevelsOn8 = vulnerability_levelsOn8; List <string> vulnerability_nntfList = new List <string>(); for (int i = 0; i < context.Length("DescribeScreenSecurityStatInfo.Vulnerability.NntfList.Length"); i++) { vulnerability_nntfList.Add(context.StringValue("DescribeScreenSecurityStatInfo.Vulnerability.NntfList[" + i + "]")); } vulnerability.NntfList = vulnerability_nntfList; List <string> vulnerability_asapList = new List <string>(); for (int i = 0; i < context.Length("DescribeScreenSecurityStatInfo.Vulnerability.AsapList.Length"); i++) { vulnerability_asapList.Add(context.StringValue("DescribeScreenSecurityStatInfo.Vulnerability.AsapList[" + i + "]")); } vulnerability.AsapList = vulnerability_asapList; List <string> vulnerability_laterList = new List <string>(); for (int i = 0; i < context.Length("DescribeScreenSecurityStatInfo.Vulnerability.LaterList.Length"); i++) { vulnerability_laterList.Add(context.StringValue("DescribeScreenSecurityStatInfo.Vulnerability.LaterList[" + i + "]")); } vulnerability.LaterList = vulnerability_laterList; describeScreenSecurityStatInfoResponse.Vulnerability = vulnerability; return(describeScreenSecurityStatInfoResponse); }
public static DescribeVirtualBorderRoutersResponse Unmarshall(UnmarshallerContext _ctx) { DescribeVirtualBorderRoutersResponse describeVirtualBorderRoutersResponse = new DescribeVirtualBorderRoutersResponse(); describeVirtualBorderRoutersResponse.HttpResponse = _ctx.HttpResponse; describeVirtualBorderRoutersResponse.RequestId = _ctx.StringValue("DescribeVirtualBorderRouters.RequestId"); describeVirtualBorderRoutersResponse.PageNumber = _ctx.IntegerValue("DescribeVirtualBorderRouters.PageNumber"); describeVirtualBorderRoutersResponse.PageSize = _ctx.IntegerValue("DescribeVirtualBorderRouters.PageSize"); describeVirtualBorderRoutersResponse.TotalCount = _ctx.IntegerValue("DescribeVirtualBorderRouters.TotalCount"); List <DescribeVirtualBorderRoutersResponse.DescribeVirtualBorderRouters_VirtualBorderRouterType> describeVirtualBorderRoutersResponse_virtualBorderRouterSet = new List <DescribeVirtualBorderRoutersResponse.DescribeVirtualBorderRouters_VirtualBorderRouterType>(); for (int i = 0; i < _ctx.Length("DescribeVirtualBorderRouters.VirtualBorderRouterSet.Length"); i++) { DescribeVirtualBorderRoutersResponse.DescribeVirtualBorderRouters_VirtualBorderRouterType virtualBorderRouterType = new DescribeVirtualBorderRoutersResponse.DescribeVirtualBorderRouters_VirtualBorderRouterType(); virtualBorderRouterType.VbrId = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].VbrId"); virtualBorderRouterType.CreationTime = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].CreationTime"); virtualBorderRouterType.ActivationTime = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].ActivationTime"); virtualBorderRouterType.TerminationTime = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].TerminationTime"); virtualBorderRouterType.RecoveryTime = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].RecoveryTime"); virtualBorderRouterType.Status = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].Status"); virtualBorderRouterType.VlanId = _ctx.IntegerValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].VlanId"); virtualBorderRouterType.CircuitCode = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].CircuitCode"); virtualBorderRouterType.RouteTableId = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].RouteTableId"); virtualBorderRouterType.VlanInterfaceId = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].VlanInterfaceId"); virtualBorderRouterType.LocalGatewayIp = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].LocalGatewayIp"); virtualBorderRouterType.PeerGatewayIp = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].PeerGatewayIp"); virtualBorderRouterType.PeeringSubnetMask = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].PeeringSubnetMask"); virtualBorderRouterType.PhysicalConnectionId = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].PhysicalConnectionId"); virtualBorderRouterType.PhysicalConnectionStatus = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].PhysicalConnectionStatus"); virtualBorderRouterType.PhysicalConnectionBusinessStatus = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].PhysicalConnectionBusinessStatus"); virtualBorderRouterType.PhysicalConnectionOwnerUid = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].PhysicalConnectionOwnerUid"); virtualBorderRouterType.AccessPointId = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].AccessPointId"); virtualBorderRouterType.Name = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].Name"); virtualBorderRouterType.Description = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].Description"); virtualBorderRouterType.PConnVbrExpireTime = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].PConnVbrExpireTime"); virtualBorderRouterType.EccId = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].EccId"); virtualBorderRouterType.Type = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].Type"); virtualBorderRouterType.MinTxInterval = _ctx.LongValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].MinTxInterval"); virtualBorderRouterType.MinRxInterval = _ctx.LongValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].MinRxInterval"); virtualBorderRouterType.DetectMultiplier = _ctx.LongValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].DetectMultiplier"); virtualBorderRouterType.LocalIpv6GatewayIp = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].LocalIpv6GatewayIp"); virtualBorderRouterType.PeerIpv6GatewayIp = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].PeerIpv6GatewayIp"); virtualBorderRouterType.PeeringIpv6SubnetMask = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].PeeringIpv6SubnetMask"); virtualBorderRouterType.EnableIpv6 = _ctx.BooleanValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].EnableIpv6"); virtualBorderRouterType.CloudBoxInstanceId = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].CloudBoxInstanceId"); List <DescribeVirtualBorderRoutersResponse.DescribeVirtualBorderRouters_VirtualBorderRouterType.DescribeVirtualBorderRouters_AssociatedPhysicalConnection> virtualBorderRouterType_associatedPhysicalConnections = new List <DescribeVirtualBorderRoutersResponse.DescribeVirtualBorderRouters_VirtualBorderRouterType.DescribeVirtualBorderRouters_AssociatedPhysicalConnection>(); for (int j = 0; j < _ctx.Length("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].AssociatedPhysicalConnections.Length"); j++) { DescribeVirtualBorderRoutersResponse.DescribeVirtualBorderRouters_VirtualBorderRouterType.DescribeVirtualBorderRouters_AssociatedPhysicalConnection associatedPhysicalConnection = new DescribeVirtualBorderRoutersResponse.DescribeVirtualBorderRouters_VirtualBorderRouterType.DescribeVirtualBorderRouters_AssociatedPhysicalConnection(); associatedPhysicalConnection.CircuitCode = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].AssociatedPhysicalConnections[" + j + "].CircuitCode"); associatedPhysicalConnection.VlanInterfaceId = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].AssociatedPhysicalConnections[" + j + "].VlanInterfaceId"); associatedPhysicalConnection.LocalGatewayIp = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].AssociatedPhysicalConnections[" + j + "].LocalGatewayIp"); associatedPhysicalConnection.PeerGatewayIp = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].AssociatedPhysicalConnections[" + j + "].PeerGatewayIp"); associatedPhysicalConnection.PeeringSubnetMask = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].AssociatedPhysicalConnections[" + j + "].PeeringSubnetMask"); associatedPhysicalConnection.PhysicalConnectionId = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].AssociatedPhysicalConnections[" + j + "].PhysicalConnectionId"); associatedPhysicalConnection.PhysicalConnectionStatus = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].AssociatedPhysicalConnections[" + j + "].PhysicalConnectionStatus"); associatedPhysicalConnection.PhysicalConnectionBusinessStatus = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].AssociatedPhysicalConnections[" + j + "].PhysicalConnectionBusinessStatus"); associatedPhysicalConnection.PhysicalConnectionOwnerUid = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].AssociatedPhysicalConnections[" + j + "].PhysicalConnectionOwnerUid"); associatedPhysicalConnection.VlanId = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].AssociatedPhysicalConnections[" + j + "].VlanId"); associatedPhysicalConnection.LocalIpv6GatewayIp = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].AssociatedPhysicalConnections[" + j + "].LocalIpv6GatewayIp"); associatedPhysicalConnection.PeerIpv6GatewayIp = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].AssociatedPhysicalConnections[" + j + "].PeerIpv6GatewayIp"); associatedPhysicalConnection.PeeringIpv6SubnetMask = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].AssociatedPhysicalConnections[" + j + "].PeeringIpv6SubnetMask"); associatedPhysicalConnection.Status = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].AssociatedPhysicalConnections[" + j + "].Status"); associatedPhysicalConnection.EnableIpv6 = _ctx.BooleanValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].AssociatedPhysicalConnections[" + j + "].EnableIpv6"); virtualBorderRouterType_associatedPhysicalConnections.Add(associatedPhysicalConnection); } virtualBorderRouterType.AssociatedPhysicalConnections = virtualBorderRouterType_associatedPhysicalConnections; List <DescribeVirtualBorderRoutersResponse.DescribeVirtualBorderRouters_VirtualBorderRouterType.DescribeVirtualBorderRouters_AssociatedCen> virtualBorderRouterType_associatedCens = new List <DescribeVirtualBorderRoutersResponse.DescribeVirtualBorderRouters_VirtualBorderRouterType.DescribeVirtualBorderRouters_AssociatedCen>(); for (int j = 0; j < _ctx.Length("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].AssociatedCens.Length"); j++) { DescribeVirtualBorderRoutersResponse.DescribeVirtualBorderRouters_VirtualBorderRouterType.DescribeVirtualBorderRouters_AssociatedCen associatedCen = new DescribeVirtualBorderRoutersResponse.DescribeVirtualBorderRouters_VirtualBorderRouterType.DescribeVirtualBorderRouters_AssociatedCen(); associatedCen.CenId = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].AssociatedCens[" + j + "].CenId"); associatedCen.CenOwnerId = _ctx.LongValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].AssociatedCens[" + j + "].CenOwnerId"); associatedCen.CenStatus = _ctx.StringValue("DescribeVirtualBorderRouters.VirtualBorderRouterSet[" + i + "].AssociatedCens[" + j + "].CenStatus"); virtualBorderRouterType_associatedCens.Add(associatedCen); } virtualBorderRouterType.AssociatedCens = virtualBorderRouterType_associatedCens; describeVirtualBorderRoutersResponse_virtualBorderRouterSet.Add(virtualBorderRouterType); } describeVirtualBorderRoutersResponse.VirtualBorderRouterSet = describeVirtualBorderRoutersResponse_virtualBorderRouterSet; return(describeVirtualBorderRoutersResponse); }
public static ListJobsByGroupResponse Unmarshall(UnmarshallerContext _ctx) { ListJobsByGroupResponse listJobsByGroupResponse = new ListJobsByGroupResponse(); listJobsByGroupResponse.HttpResponse = _ctx.HttpResponse; listJobsByGroupResponse.Code = _ctx.StringValue("ListJobsByGroup.Code"); listJobsByGroupResponse.HttpStatusCode = _ctx.IntegerValue("ListJobsByGroup.HttpStatusCode"); listJobsByGroupResponse.Message = _ctx.StringValue("ListJobsByGroup.Message"); listJobsByGroupResponse.RequestId = _ctx.StringValue("ListJobsByGroup.RequestId"); listJobsByGroupResponse.Success = _ctx.BooleanValue("ListJobsByGroup.Success"); ListJobsByGroupResponse.ListJobsByGroup_Jobs jobs = new ListJobsByGroupResponse.ListJobsByGroup_Jobs(); jobs.PageNumber = _ctx.IntegerValue("ListJobsByGroup.Jobs.PageNumber"); jobs.PageSize = _ctx.IntegerValue("ListJobsByGroup.Jobs.PageSize"); jobs.TotalCount = _ctx.IntegerValue("ListJobsByGroup.Jobs.TotalCount"); List <ListJobsByGroupResponse.ListJobsByGroup_Jobs.ListJobsByGroup_Job> jobs_list = new List <ListJobsByGroupResponse.ListJobsByGroup_Jobs.ListJobsByGroup_Job>(); for (int i = 0; i < _ctx.Length("ListJobsByGroup.Jobs.List.Length"); i++) { ListJobsByGroupResponse.ListJobsByGroup_Jobs.ListJobsByGroup_Job job = new ListJobsByGroupResponse.ListJobsByGroup_Jobs.ListJobsByGroup_Job(); job.FailureReason = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].FailureReason"); job.JobGroupId = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].JobGroupId"); job.JobId = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].JobId"); job.Priority = _ctx.IntegerValue("ListJobsByGroup.Jobs.List[" + i + "].Priority"); job.ReferenceId = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].ReferenceId"); job.ScenarioId = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].ScenarioId"); job.Status = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Status"); job.StrategyId = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].StrategyId"); job.SystemPriority = _ctx.IntegerValue("ListJobsByGroup.Jobs.List[" + i + "].SystemPriority"); List <string> job_callingNumbers = new List <string>(); for (int j = 0; j < _ctx.Length("ListJobsByGroup.Jobs.List[" + i + "].CallingNumbers.Length"); j++) { job_callingNumbers.Add(_ctx.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 < _ctx.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 = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Contacts[" + j + "].ContactId"); contact.ContactName = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Contacts[" + j + "].ContactName"); contact.Honorific = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Contacts[" + j + "].Honorific"); contact.JobId = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Contacts[" + j + "].JobId"); contact.PhoneNumber = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Contacts[" + j + "].PhoneNumber"); contact.ReferenceId = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Contacts[" + j + "].ReferenceId"); contact.Role = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Contacts[" + j + "].Role"); contact.State = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Contacts[" + j + "].State"); 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 < _ctx.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 = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Extras[" + j + "].Key"); keyValuePair._Value = _ctx.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 < _ctx.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.Category = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Summary[" + j + "].Category"); summaryItem.Content = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Summary[" + j + "].Content"); summaryItem.ConversationDetailId = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Summary[" + j + "].ConversationDetailId"); summaryItem.JobGroupId = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Summary[" + j + "].JobGroupId"); summaryItem.JobId = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Summary[" + j + "].JobId"); summaryItem.SummaryId = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Summary[" + j + "].SummaryId"); summaryItem.SummaryName = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Summary[" + j + "].SummaryName"); summaryItem.TaskId = _ctx.StringValue("ListJobsByGroup.Jobs.List[" + i + "].Summary[" + j + "].TaskId"); job_summary.Add(summaryItem); } job.Summary = job_summary; jobs_list.Add(job); } jobs.List = jobs_list; listJobsByGroupResponse.Jobs = jobs; return(listJobsByGroupResponse); }
public static DescribeZonesResponse Unmarshall(UnmarshallerContext context) { DescribeZonesResponse describeZonesResponse = new DescribeZonesResponse(); describeZonesResponse.HttpResponse = context.HttpResponse; describeZonesResponse.RequestId = context.StringValue("DescribeZones.RequestId"); List <DescribeZonesResponse.Zone> zones = new List <DescribeZonesResponse.Zone>(); for (int i = 0; i < context.Length("DescribeZones.Zones.Length"); i++) { DescribeZonesResponse.Zone zone = new DescribeZonesResponse.Zone(); zone.ZoneId = context.StringValue("DescribeZones.Zones[" + i + "].ZoneId"); zone.LocalName = context.StringValue("DescribeZones.Zones[" + i + "].LocalName"); List <string> availableResourceCreation = new List <string>(); for (int j = 0; j < context.Length("DescribeZones.Zones[" + i + "].AvailableResourceCreation.Length"); j++) { availableResourceCreation.Add(context.StringValue("DescribeZones.Zones[" + i + "].AvailableResourceCreation[" + j + "]")); } zone.AvailableResourceCreation = availableResourceCreation; List <string> availableDiskCategories = new List <string>(); for (int j = 0; j < context.Length("DescribeZones.Zones[" + i + "].AvailableDiskCategories.Length"); j++) { availableDiskCategories.Add(context.StringValue("DescribeZones.Zones[" + i + "].AvailableDiskCategories[" + j + "]")); } zone.AvailableDiskCategories = availableDiskCategories; List <string> availableInstanceTypes = new List <string>(); for (int j = 0; j < context.Length("DescribeZones.Zones[" + i + "].AvailableInstanceTypes.Length"); j++) { availableInstanceTypes.Add(context.StringValue("DescribeZones.Zones[" + i + "].AvailableInstanceTypes[" + j + "]")); } zone.AvailableInstanceTypes = availableInstanceTypes; List <DescribeZonesResponse.Zone.ResourcesInfo> availableResources = new List <DescribeZonesResponse.Zone.ResourcesInfo>(); for (int j = 0; j < context.Length("DescribeZones.Zones[" + i + "].AvailableResources.Length"); j++) { DescribeZonesResponse.Zone.ResourcesInfo resourcesInfo = new DescribeZonesResponse.Zone.ResourcesInfo(); resourcesInfo.IoOptimized = context.BooleanValue("DescribeZones.Zones[" + i + "].AvailableResources[" + j + "].IoOptimized"); List <string> systemDiskCategories = new List <string>(); for (int k = 0; k < context.Length("DescribeZones.Zones[" + i + "].AvailableResources[" + j + "].SystemDiskCategories.Length"); k++) { systemDiskCategories.Add(context.StringValue("DescribeZones.Zones[" + i + "].AvailableResources[" + j + "].SystemDiskCategories[" + k + "]")); } resourcesInfo.SystemDiskCategories = systemDiskCategories; List <string> dataDiskCategories = new List <string>(); for (int k = 0; k < context.Length("DescribeZones.Zones[" + i + "].AvailableResources[" + j + "].DataDiskCategories.Length"); k++) { dataDiskCategories.Add(context.StringValue("DescribeZones.Zones[" + i + "].AvailableResources[" + j + "].DataDiskCategories[" + k + "]")); } resourcesInfo.DataDiskCategories = dataDiskCategories; List <string> networkTypes = new List <string>(); for (int k = 0; k < context.Length("DescribeZones.Zones[" + i + "].AvailableResources[" + j + "].NetworkTypes.Length"); k++) { networkTypes.Add(context.StringValue("DescribeZones.Zones[" + i + "].AvailableResources[" + j + "].NetworkTypes[" + k + "]")); } resourcesInfo.NetworkTypes = networkTypes; List <string> instanceTypes = new List <string>(); for (int k = 0; k < context.Length("DescribeZones.Zones[" + i + "].AvailableResources[" + j + "].InstanceTypes.Length"); k++) { instanceTypes.Add(context.StringValue("DescribeZones.Zones[" + i + "].AvailableResources[" + j + "].InstanceTypes[" + k + "]")); } resourcesInfo.InstanceTypes = instanceTypes; List <string> instanceTypeFamilies = new List <string>(); for (int k = 0; k < context.Length("DescribeZones.Zones[" + i + "].AvailableResources[" + j + "].InstanceTypeFamilies.Length"); k++) { instanceTypeFamilies.Add(context.StringValue("DescribeZones.Zones[" + i + "].AvailableResources[" + j + "].InstanceTypeFamilies[" + k + "]")); } resourcesInfo.InstanceTypeFamilies = instanceTypeFamilies; List <string> instanceGenerations = new List <string>(); for (int k = 0; k < context.Length("DescribeZones.Zones[" + i + "].AvailableResources[" + j + "].InstanceGenerations.Length"); k++) { instanceGenerations.Add(context.StringValue("DescribeZones.Zones[" + i + "].AvailableResources[" + j + "].InstanceGenerations[" + k + "]")); } resourcesInfo.InstanceGenerations = instanceGenerations; availableResources.Add(resourcesInfo); } zone.AvailableResources = availableResources; zones.Add(zone); } describeZonesResponse.Zones = zones; return(describeZonesResponse); }
public static DescribePricingModuleResponse Unmarshall(UnmarshallerContext context) { DescribePricingModuleResponse describePricingModuleResponse = new DescribePricingModuleResponse(); describePricingModuleResponse.HttpResponse = context.HttpResponse; describePricingModuleResponse.RequestId = context.StringValue("DescribePricingModule.RequestId"); describePricingModuleResponse.Success = context.BooleanValue("DescribePricingModule.Success"); describePricingModuleResponse.Code = context.StringValue("DescribePricingModule.Code"); describePricingModuleResponse.Message = context.StringValue("DescribePricingModule.Message"); DescribePricingModuleResponse.DescribePricingModule_Data data = new DescribePricingModuleResponse.DescribePricingModule_Data(); List <DescribePricingModuleResponse.DescribePricingModule_Data.DescribePricingModule_Module> data_moduleList = new List <DescribePricingModuleResponse.DescribePricingModule_Data.DescribePricingModule_Module>(); for (int i = 0; i < context.Length("DescribePricingModule.Data.ModuleList.Length"); i++) { DescribePricingModuleResponse.DescribePricingModule_Data.DescribePricingModule_Module module = new DescribePricingModuleResponse.DescribePricingModule_Data.DescribePricingModule_Module(); module.ModuleCode = context.StringValue("DescribePricingModule.Data.ModuleList[" + i + "].ModuleCode"); module.ModuleName = context.StringValue("DescribePricingModule.Data.ModuleList[" + i + "].ModuleName"); module.PriceType = context.StringValue("DescribePricingModule.Data.ModuleList[" + i + "].PriceType"); module.Currency = context.StringValue("DescribePricingModule.Data.ModuleList[" + i + "].Currency"); List <string> module_configList = new List <string>(); for (int j = 0; j < context.Length("DescribePricingModule.Data.ModuleList[" + i + "].ConfigList.Length"); j++) { module_configList.Add(context.StringValue("DescribePricingModule.Data.ModuleList[" + i + "].ConfigList[" + j + "]")); } module.ConfigList = module_configList; data_moduleList.Add(module); } data.ModuleList = data_moduleList; List <DescribePricingModuleResponse.DescribePricingModule_Data.DescribePricingModule_Attribute> data_attributeList = new List <DescribePricingModuleResponse.DescribePricingModule_Data.DescribePricingModule_Attribute>(); for (int i = 0; i < context.Length("DescribePricingModule.Data.AttributeList.Length"); i++) { DescribePricingModuleResponse.DescribePricingModule_Data.DescribePricingModule_Attribute attribute = new DescribePricingModuleResponse.DescribePricingModule_Data.DescribePricingModule_Attribute(); attribute.Code = context.StringValue("DescribePricingModule.Data.AttributeList[" + i + "].Code"); attribute.Name = context.StringValue("DescribePricingModule.Data.AttributeList[" + i + "].Name"); attribute.Unit = context.StringValue("DescribePricingModule.Data.AttributeList[" + i + "].Unit"); List <DescribePricingModuleResponse.DescribePricingModule_Data.DescribePricingModule_Attribute.DescribePricingModule_AttributeValue> attribute_values = new List <DescribePricingModuleResponse.DescribePricingModule_Data.DescribePricingModule_Attribute.DescribePricingModule_AttributeValue>(); for (int j = 0; j < context.Length("DescribePricingModule.Data.AttributeList[" + i + "].Values.Length"); j++) { DescribePricingModuleResponse.DescribePricingModule_Data.DescribePricingModule_Attribute.DescribePricingModule_AttributeValue attributeValue = new DescribePricingModuleResponse.DescribePricingModule_Data.DescribePricingModule_Attribute.DescribePricingModule_AttributeValue(); attributeValue.Type = context.StringValue("DescribePricingModule.Data.AttributeList[" + i + "].Values[" + j + "].Type"); attributeValue.Name = context.StringValue("DescribePricingModule.Data.AttributeList[" + i + "].Values[" + j + "].Name"); attributeValue._Value = context.StringValue("DescribePricingModule.Data.AttributeList[" + i + "].Values[" + j + "]._Value"); attributeValue.Remark = context.StringValue("DescribePricingModule.Data.AttributeList[" + i + "].Values[" + j + "].Remark"); attribute_values.Add(attributeValue); } attribute.Values = attribute_values; data_attributeList.Add(attribute); } data.AttributeList = data_attributeList; describePricingModuleResponse.Data = data; return(describePricingModuleResponse); }
public static DescribeNatGatewaysResponse Unmarshall(UnmarshallerContext context) { DescribeNatGatewaysResponse describeNatGatewaysResponse = new DescribeNatGatewaysResponse(); describeNatGatewaysResponse.HttpResponse = context.HttpResponse; describeNatGatewaysResponse.RequestId = context.StringValue("DescribeNatGateways.RequestId"); describeNatGatewaysResponse.TotalCount = context.IntegerValue("DescribeNatGateways.TotalCount"); describeNatGatewaysResponse.PageNumber = context.IntegerValue("DescribeNatGateways.PageNumber"); describeNatGatewaysResponse.PageSize = context.IntegerValue("DescribeNatGateways.PageSize"); List <DescribeNatGatewaysResponse.DescribeNatGateways_NatGateway> describeNatGatewaysResponse_natGateways = new List <DescribeNatGatewaysResponse.DescribeNatGateways_NatGateway>(); for (int i = 0; i < context.Length("DescribeNatGateways.NatGateways.Length"); i++) { DescribeNatGatewaysResponse.DescribeNatGateways_NatGateway natGateway = new DescribeNatGatewaysResponse.DescribeNatGateways_NatGateway(); natGateway.NatGatewayId = context.StringValue("DescribeNatGateways.NatGateways[" + i + "].NatGatewayId"); natGateway.RegionId = context.StringValue("DescribeNatGateways.NatGateways[" + i + "].RegionId"); natGateway.Name = context.StringValue("DescribeNatGateways.NatGateways[" + i + "].Name"); natGateway.Description = context.StringValue("DescribeNatGateways.NatGateways[" + i + "].Description"); natGateway.VpcId = context.StringValue("DescribeNatGateways.NatGateways[" + i + "].VpcId"); natGateway.Spec = context.StringValue("DescribeNatGateways.NatGateways[" + i + "].Spec"); natGateway.InstanceChargeType = context.StringValue("DescribeNatGateways.NatGateways[" + i + "].InstanceChargeType"); natGateway.ExpiredTime = context.StringValue("DescribeNatGateways.NatGateways[" + i + "].ExpiredTime"); natGateway.AutoPay = context.BooleanValue("DescribeNatGateways.NatGateways[" + i + "].AutoPay"); natGateway.BusinessStatus = context.StringValue("DescribeNatGateways.NatGateways[" + i + "].BusinessStatus"); natGateway.CreationTime = context.StringValue("DescribeNatGateways.NatGateways[" + i + "].CreationTime"); natGateway.Status = context.StringValue("DescribeNatGateways.NatGateways[" + i + "].Status"); List <string> natGateway_forwardTableIds = new List <string>(); for (int j = 0; j < context.Length("DescribeNatGateways.NatGateways[" + i + "].ForwardTableIds.Length"); j++) { natGateway_forwardTableIds.Add(context.StringValue("DescribeNatGateways.NatGateways[" + i + "].ForwardTableIds[" + j + "]")); } natGateway.ForwardTableIds = natGateway_forwardTableIds; List <string> natGateway_snatTableIds = new List <string>(); for (int j = 0; j < context.Length("DescribeNatGateways.NatGateways[" + i + "].SnatTableIds.Length"); j++) { natGateway_snatTableIds.Add(context.StringValue("DescribeNatGateways.NatGateways[" + i + "].SnatTableIds[" + j + "]")); } natGateway.SnatTableIds = natGateway_snatTableIds; List <string> natGateway_bandwidthPackageIds = new List <string>(); for (int j = 0; j < context.Length("DescribeNatGateways.NatGateways[" + i + "].BandwidthPackageIds.Length"); j++) { natGateway_bandwidthPackageIds.Add(context.StringValue("DescribeNatGateways.NatGateways[" + i + "].BandwidthPackageIds[" + j + "]")); } natGateway.BandwidthPackageIds = natGateway_bandwidthPackageIds; List <DescribeNatGatewaysResponse.DescribeNatGateways_NatGateway.DescribeNatGateways_IpList> natGateway_ipLists = new List <DescribeNatGatewaysResponse.DescribeNatGateways_NatGateway.DescribeNatGateways_IpList>(); for (int j = 0; j < context.Length("DescribeNatGateways.NatGateways[" + i + "].IpLists.Length"); j++) { DescribeNatGatewaysResponse.DescribeNatGateways_NatGateway.DescribeNatGateways_IpList ipList = new DescribeNatGatewaysResponse.DescribeNatGateways_NatGateway.DescribeNatGateways_IpList(); ipList.AllocationId = context.StringValue("DescribeNatGateways.NatGateways[" + i + "].IpLists[" + j + "].AllocationId"); ipList.IpAddress = context.StringValue("DescribeNatGateways.NatGateways[" + i + "].IpLists[" + j + "].IpAddress"); ipList.UsingStatus = context.StringValue("DescribeNatGateways.NatGateways[" + i + "].IpLists[" + j + "].UsingStatus"); ipList.ApAccessEnabled = context.BooleanValue("DescribeNatGateways.NatGateways[" + i + "].IpLists[" + j + "].ApAccessEnabled"); natGateway_ipLists.Add(ipList); } natGateway.IpLists = natGateway_ipLists; describeNatGatewaysResponse_natGateways.Add(natGateway); } describeNatGatewaysResponse.NatGateways = describeNatGatewaysResponse_natGateways; return(describeNatGatewaysResponse); }
public static ListEcsInstancesResponse Unmarshall(UnmarshallerContext context) { ListEcsInstancesResponse listEcsInstancesResponse = new ListEcsInstancesResponse(); listEcsInstancesResponse.HttpResponse = context.HttpResponse; listEcsInstancesResponse.RequestId = context.StringValue("ListEcsInstances.RequestId"); ListEcsInstancesResponse.ListEcsInstances_Headers headers = new ListEcsInstancesResponse.ListEcsInstances_Headers(); headers.XTotalCount = context.IntegerValue("ListEcsInstances.Headers.X-Total-Count"); listEcsInstancesResponse.Headers = headers; List <ListEcsInstancesResponse.ListEcsInstances_ResultItem> listEcsInstancesResponse_result = new List <ListEcsInstancesResponse.ListEcsInstances_ResultItem>(); for (int i = 0; i < context.Length("ListEcsInstances.Result.Length"); i++) { ListEcsInstancesResponse.ListEcsInstances_ResultItem resultItem = new ListEcsInstancesResponse.ListEcsInstances_ResultItem(); resultItem.EcsInstanceId = context.StringValue("ListEcsInstances.Result[" + i + "].ecsInstanceId"); resultItem.EcsInstanceName = context.StringValue("ListEcsInstances.Result[" + i + "].ecsInstanceName"); resultItem.Status = context.StringValue("ListEcsInstances.Result[" + i + "].status"); resultItem.Tags = context.StringValue("ListEcsInstances.Result[" + i + "].tags"); resultItem.OsType = context.StringValue("ListEcsInstances.Result[" + i + "].osType"); resultItem.CloudAssistantStatus = context.StringValue("ListEcsInstances.Result[" + i + "].cloudAssistantStatus"); List <ListEcsInstancesResponse.ListEcsInstances_ResultItem.ListEcsInstances_IpAddressItem> resultItem_ipAddress = new List <ListEcsInstancesResponse.ListEcsInstances_ResultItem.ListEcsInstances_IpAddressItem>(); for (int j = 0; j < context.Length("ListEcsInstances.Result[" + i + "].IpAddress.Length"); j++) { ListEcsInstancesResponse.ListEcsInstances_ResultItem.ListEcsInstances_IpAddressItem ipAddressItem = new ListEcsInstancesResponse.ListEcsInstances_ResultItem.ListEcsInstances_IpAddressItem(); ipAddressItem.Host = context.StringValue("ListEcsInstances.Result[" + i + "].IpAddress[" + j + "].host"); ipAddressItem.IpType = context.StringValue("ListEcsInstances.Result[" + i + "].IpAddress[" + j + "].ipType"); resultItem_ipAddress.Add(ipAddressItem); } resultItem.IpAddress = resultItem_ipAddress; List <ListEcsInstancesResponse.ListEcsInstances_ResultItem.ListEcsInstances_CollectorsItem> resultItem_collectors = new List <ListEcsInstancesResponse.ListEcsInstances_ResultItem.ListEcsInstances_CollectorsItem>(); for (int j = 0; j < context.Length("ListEcsInstances.Result[" + i + "].Collectors.Length"); j++) { ListEcsInstancesResponse.ListEcsInstances_ResultItem.ListEcsInstances_CollectorsItem collectorsItem = new ListEcsInstancesResponse.ListEcsInstances_ResultItem.ListEcsInstances_CollectorsItem(); collectorsItem.GmtCreatedTime = context.StringValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].gmtCreatedTime"); collectorsItem.GmtUpdateTime = context.StringValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].gmtUpdateTime"); collectorsItem.Name = context.StringValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].name"); collectorsItem.ResId = context.StringValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].resId"); collectorsItem.ResVersion = context.StringValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].resVersion"); collectorsItem.VpcId = context.StringValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].vpcId"); collectorsItem.ResType = context.StringValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].resType"); collectorsItem.OwnerId = context.StringValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].ownerId"); collectorsItem.Status = context.StringValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].status"); collectorsItem.DryRun = context.BooleanValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].dryRun"); List <string> collectorsItem_collectorPaths = new List <string>(); for (int k = 0; k < context.Length("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].CollectorPaths.Length"); k++) { collectorsItem_collectorPaths.Add(context.StringValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].CollectorPaths[" + k + "]")); } collectorsItem.CollectorPaths = collectorsItem_collectorPaths; List <ListEcsInstancesResponse.ListEcsInstances_ResultItem.ListEcsInstances_CollectorsItem.ListEcsInstances_ConfigsItem> collectorsItem_configs = new List <ListEcsInstancesResponse.ListEcsInstances_ResultItem.ListEcsInstances_CollectorsItem.ListEcsInstances_ConfigsItem>(); for (int k = 0; k < context.Length("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].Configs.Length"); k++) { ListEcsInstancesResponse.ListEcsInstances_ResultItem.ListEcsInstances_CollectorsItem.ListEcsInstances_ConfigsItem configsItem = new ListEcsInstancesResponse.ListEcsInstances_ResultItem.ListEcsInstances_CollectorsItem.ListEcsInstances_ConfigsItem(); configsItem.FileName = context.StringValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].Configs[" + k + "].fileName"); configsItem.Content = context.StringValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].Configs[" + k + "].content"); collectorsItem_configs.Add(configsItem); } collectorsItem.Configs = collectorsItem_configs; List <ListEcsInstancesResponse.ListEcsInstances_ResultItem.ListEcsInstances_CollectorsItem.ListEcsInstances_ExtendConfigsItem> collectorsItem_extendConfigs = new List <ListEcsInstancesResponse.ListEcsInstances_ResultItem.ListEcsInstances_CollectorsItem.ListEcsInstances_ExtendConfigsItem>(); for (int k = 0; k < context.Length("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].ExtendConfigs.Length"); k++) { ListEcsInstancesResponse.ListEcsInstances_ResultItem.ListEcsInstances_CollectorsItem.ListEcsInstances_ExtendConfigsItem extendConfigsItem = new ListEcsInstancesResponse.ListEcsInstances_ResultItem.ListEcsInstances_CollectorsItem.ListEcsInstances_ExtendConfigsItem(); extendConfigsItem.ConfigType = context.StringValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].ExtendConfigs[" + k + "].configType"); extendConfigsItem.InstanceId = context.StringValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].ExtendConfigs[" + k + "].instanceId"); extendConfigsItem.InstanceType = context.StringValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].ExtendConfigs[" + k + "].instanceType"); extendConfigsItem.Protocol = context.StringValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].ExtendConfigs[" + k + "].protocol"); extendConfigsItem.UserName = context.StringValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].ExtendConfigs[" + k + "].userName"); extendConfigsItem.EnableMonitoring = context.BooleanValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].ExtendConfigs[" + k + "].enableMonitoring"); extendConfigsItem.Type = context.StringValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].ExtendConfigs[" + k + "].type"); extendConfigsItem.GroupId = context.StringValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].ExtendConfigs[" + k + "].groupId"); List <string> extendConfigsItem_hosts = new List <string>(); for (int l = 0; l < context.Length("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].ExtendConfigs[" + k + "].Hosts.Length"); l++) { extendConfigsItem_hosts.Add(context.StringValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].ExtendConfigs[" + k + "].Hosts[" + l + "]")); } extendConfigsItem.Hosts = extendConfigsItem_hosts; List <ListEcsInstancesResponse.ListEcsInstances_ResultItem.ListEcsInstances_CollectorsItem.ListEcsInstances_ExtendConfigsItem.ListEcsInstances_MachinesItem> extendConfigsItem_machines = new List <ListEcsInstancesResponse.ListEcsInstances_ResultItem.ListEcsInstances_CollectorsItem.ListEcsInstances_ExtendConfigsItem.ListEcsInstances_MachinesItem>(); for (int l = 0; l < context.Length("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].ExtendConfigs[" + k + "].Machines.Length"); l++) { ListEcsInstancesResponse.ListEcsInstances_ResultItem.ListEcsInstances_CollectorsItem.ListEcsInstances_ExtendConfigsItem.ListEcsInstances_MachinesItem machinesItem = new ListEcsInstancesResponse.ListEcsInstances_ResultItem.ListEcsInstances_CollectorsItem.ListEcsInstances_ExtendConfigsItem.ListEcsInstances_MachinesItem(); machinesItem.InstanceId = context.StringValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].ExtendConfigs[" + k + "].Machines[" + l + "].instanceId"); machinesItem.AgentStatus = context.StringValue("ListEcsInstances.Result[" + i + "].Collectors[" + j + "].ExtendConfigs[" + k + "].Machines[" + l + "].agentStatus"); extendConfigsItem_machines.Add(machinesItem); } extendConfigsItem.Machines = extendConfigsItem_machines; collectorsItem_extendConfigs.Add(extendConfigsItem); } collectorsItem.ExtendConfigs = collectorsItem_extendConfigs; resultItem_collectors.Add(collectorsItem); } resultItem.Collectors = resultItem_collectors; listEcsInstancesResponse_result.Add(resultItem); } listEcsInstancesResponse.Result = listEcsInstancesResponse_result; return(listEcsInstancesResponse); }
public static DescribeDisksResponse Unmarshall(UnmarshallerContext context) { DescribeDisksResponse describeDisksResponse = new DescribeDisksResponse(); describeDisksResponse.HttpResponse = context.HttpResponse; describeDisksResponse.RequestId = context.StringValue("DescribeDisks.RequestId"); describeDisksResponse.TotalCount = context.IntegerValue("DescribeDisks.TotalCount"); describeDisksResponse.PageNumber = context.IntegerValue("DescribeDisks.PageNumber"); describeDisksResponse.PageSize = context.IntegerValue("DescribeDisks.PageSize"); List<DescribeDisksResponse.Disk> disks = new List<DescribeDisksResponse.Disk>(); for (int i = 0; i < context.Length("DescribeDisks.Disks.Length"); i++) { DescribeDisksResponse.Disk disk = new DescribeDisksResponse.Disk(); disk.DiskId = context.StringValue("DescribeDisks.Disks["+ i +"].DiskId"); disk.RegionId = context.StringValue("DescribeDisks.Disks["+ i +"].RegionId"); disk.ZoneId = context.StringValue("DescribeDisks.Disks["+ i +"].ZoneId"); disk.DiskName = context.StringValue("DescribeDisks.Disks["+ i +"].DiskName"); disk.Description = context.StringValue("DescribeDisks.Disks["+ i +"].Description"); disk.Type = context.EnumValue<DescribeDisksResponse.Disk.TypeEnum>("DescribeDisks.Disks["+ i +"].Type"); disk.Category = context.EnumValue<DescribeDisksResponse.Disk.CategoryEnum>("DescribeDisks.Disks["+ i +"].Category"); disk.Size = context.IntegerValue("DescribeDisks.Disks["+ i +"].Size"); disk.ImageId = context.StringValue("DescribeDisks.Disks["+ i +"].ImageId"); disk.SourceSnapshotId = context.StringValue("DescribeDisks.Disks["+ i +"].SourceSnapshotId"); disk.AutoSnapshotPolicyId = context.StringValue("DescribeDisks.Disks["+ i +"].AutoSnapshotPolicyId"); disk.ProductCode = context.StringValue("DescribeDisks.Disks["+ i +"].ProductCode"); disk.Portable = context.BooleanValue("DescribeDisks.Disks["+ i +"].Portable"); disk.Status = context.StringValue("DescribeDisks.Disks["+ i +"].Status"); disk.InstanceId = context.StringValue("DescribeDisks.Disks["+ i +"].InstanceId"); disk.Device = context.StringValue("DescribeDisks.Disks["+ i +"].Device"); disk.DeleteWithInstance = context.BooleanValue("DescribeDisks.Disks["+ i +"].DeleteWithInstance"); disk.DeleteAutoSnapshot = context.BooleanValue("DescribeDisks.Disks["+ i +"].DeleteAutoSnapshot"); disk.EnableAutoSnapshot = context.BooleanValue("DescribeDisks.Disks["+ i +"].EnableAutoSnapshot"); disk.EnableAutomatedSnapshotPolicy = context.BooleanValue("DescribeDisks.Disks["+ i +"].EnableAutomatedSnapshotPolicy"); disk.CreationTime = context.StringValue("DescribeDisks.Disks["+ i +"].CreationTime"); disk.AttachedTime = context.StringValue("DescribeDisks.Disks["+ i +"].AttachedTime"); disk.DetachedTime = context.StringValue("DescribeDisks.Disks["+ i +"].DetachedTime"); disk.DiskChargeType = context.StringValue("DescribeDisks.Disks["+ i +"].DiskChargeType"); disk.ExpiredTime = context.StringValue("DescribeDisks.Disks["+ i +"].ExpiredTime"); List<DescribeDisksResponse.Disk.OperationLock> operationLocks = new List<DescribeDisksResponse.Disk.OperationLock>(); for (int j = 0; j < context.Length("DescribeDisks.Disks["+ i +"].OperationLocks.Length"); j++) { DescribeDisksResponse.Disk.OperationLock operationLock = new DescribeDisksResponse.Disk.OperationLock(); operationLock.LockReason = context.StringValue("DescribeDisks.Disks["+ i +"].OperationLocks["+ j +"].LockReason"); operationLocks.Add(operationLock); } disk.OperationLocks = operationLocks; List<DescribeDisksResponse.Disk.Tag> tags = new List<DescribeDisksResponse.Disk.Tag>(); for (int j = 0; j < context.Length("DescribeDisks.Disks["+ i +"].Tags.Length"); j++) { DescribeDisksResponse.Disk.Tag tag = new DescribeDisksResponse.Disk.Tag(); tag.TagKey = context.StringValue("DescribeDisks.Disks["+ i +"].Tags["+ j +"].TagKey"); tag.TagValue = context.StringValue("DescribeDisks.Disks["+ i +"].Tags["+ j +"].TagValue"); tags.Add(tag); } disk.Tags = tags; disks.Add(disk); } describeDisksResponse.Disks = disks; return describeDisksResponse; }
public static GetStackResponse Unmarshall(UnmarshallerContext _ctx) { GetStackResponse getStackResponse = new GetStackResponse(); getStackResponse.HttpResponse = _ctx.HttpResponse; getStackResponse.CreateTime = _ctx.StringValue("GetStack.CreateTime"); getStackResponse.Description = _ctx.StringValue("GetStack.Description"); getStackResponse.DisableRollback = _ctx.BooleanValue("GetStack.DisableRollback"); getStackResponse.RegionId = _ctx.StringValue("GetStack.RegionId"); getStackResponse.RequestId = _ctx.StringValue("GetStack.RequestId"); getStackResponse.StackId = _ctx.StringValue("GetStack.StackId"); getStackResponse.StackName = _ctx.StringValue("GetStack.StackName"); getStackResponse.Status = _ctx.StringValue("GetStack.Status"); getStackResponse.StatusReason = _ctx.StringValue("GetStack.StatusReason"); getStackResponse.TemplateDescription = _ctx.StringValue("GetStack.TemplateDescription"); getStackResponse.TimeoutInMinutes = _ctx.IntegerValue("GetStack.TimeoutInMinutes"); getStackResponse.UpdateTime = _ctx.StringValue("GetStack.UpdateTime"); getStackResponse.ParentStackId = _ctx.StringValue("GetStack.ParentStackId"); getStackResponse.StackDriftStatus = _ctx.StringValue("GetStack.StackDriftStatus"); getStackResponse.DriftDetectionTime = _ctx.StringValue("GetStack.DriftDetectionTime"); getStackResponse.RamRoleName = _ctx.StringValue("GetStack.RamRoleName"); getStackResponse.DeletionProtection = _ctx.StringValue("GetStack.DeletionProtection"); getStackResponse.RootStackId = _ctx.StringValue("GetStack.RootStackId"); getStackResponse.StackType = _ctx.StringValue("GetStack.StackType"); List <Dictionary <string, string> > getStackResponse_outputs = new List <Dictionary <string, string> >(); for (int i = 0; i < _ctx.Length("GetStack.Outputs.Length"); i++) { Dictionary <string, string> tmp = new Dictionary <string, string>() { }; foreach (var _item in _ctx.ResponseDictionary) { string prefix = "GetStack.Outputs[" + i + "]."; if (_item.Key.IndexOf(prefix) == 0) { tmp.Add(_item.Key.Substring(prefix.Length), _item.Value); } } if (tmp.Count > 0) { getStackResponse_outputs.Add(tmp); } } getStackResponse.Outputs = getStackResponse_outputs; List <string> getStackResponse_notificationURLs = new List <string>(); for (int i = 0; i < _ctx.Length("GetStack.NotificationURLs.Length"); i++) { getStackResponse_notificationURLs.Add(_ctx.StringValue("GetStack.NotificationURLs[" + i + "]")); } getStackResponse.NotificationURLs = getStackResponse_notificationURLs; List <GetStackResponse.GetStack_Parameter> getStackResponse_parameters = new List <GetStackResponse.GetStack_Parameter>(); for (int i = 0; i < _ctx.Length("GetStack.Parameters.Length"); i++) { GetStackResponse.GetStack_Parameter parameter = new GetStackResponse.GetStack_Parameter(); parameter.ParameterKey = _ctx.StringValue("GetStack.Parameters[" + i + "].ParameterKey"); parameter.ParameterValue = _ctx.StringValue("GetStack.Parameters[" + i + "].ParameterValue"); getStackResponse_parameters.Add(parameter); } getStackResponse.Parameters = getStackResponse_parameters; return(getStackResponse); }
public static DescribeImagesResponse Unmarshall(UnmarshallerContext context) { DescribeImagesResponse describeImagesResponse = new DescribeImagesResponse(); describeImagesResponse.HttpResponse = context.HttpResponse; describeImagesResponse.RequestId = context.StringValue("DescribeImages.RequestId"); describeImagesResponse.RegionId = context.StringValue("DescribeImages.RegionId"); describeImagesResponse.TotalCount = context.IntegerValue("DescribeImages.TotalCount"); describeImagesResponse.PageNumber = context.IntegerValue("DescribeImages.PageNumber"); describeImagesResponse.PageSize = context.IntegerValue("DescribeImages.PageSize"); List<DescribeImagesResponse.Image> images = new List<DescribeImagesResponse.Image>(); for (int i = 0; i < context.Length("DescribeImages.Images.Length"); i++) { DescribeImagesResponse.Image image = new DescribeImagesResponse.Image(); image.Progress = context.StringValue("DescribeImages.Images["+ i +"].Progress"); image.ImageId = context.StringValue("DescribeImages.Images["+ i +"].ImageId"); image.ImageName = context.StringValue("DescribeImages.Images["+ i +"].ImageName"); image.ImageVersion = context.StringValue("DescribeImages.Images["+ i +"].ImageVersion"); image.Description = context.StringValue("DescribeImages.Images["+ i +"].Description"); image.Size = context.IntegerValue("DescribeImages.Images["+ i +"].Size"); image.ImageOwnerAlias = context.StringValue("DescribeImages.Images["+ i +"].ImageOwnerAlias"); image.IsSupportIoOptimized = context.BooleanValue("DescribeImages.Images["+ i +"].IsSupportIoOptimized"); image.OSName = context.StringValue("DescribeImages.Images["+ i +"].OSName"); image.Architecture = context.EnumValue<DescribeImagesResponse.Image.ArchitectureEnum>("DescribeImages.Images["+ i +"].Architecture"); image.Status = context.StringValue("DescribeImages.Images["+ i +"].Status"); image.ProductCode = context.StringValue("DescribeImages.Images["+ i +"].ProductCode"); image.IsSubscribed = context.BooleanValue("DescribeImages.Images["+ i +"].IsSubscribed"); image.CreationTime = context.StringValue("DescribeImages.Images["+ i +"].CreationTime"); image.IsSelfShared = context.StringValue("DescribeImages.Images["+ i +"].IsSelfShared"); image.OSType = context.StringValue("DescribeImages.Images["+ i +"].OSType"); image.Platform = context.StringValue("DescribeImages.Images["+ i +"].Platform"); image.Usage = context.StringValue("DescribeImages.Images["+ i +"].Usage"); image.IsCopied = context.BooleanValue("DescribeImages.Images["+ i +"].IsCopied"); List<DescribeImagesResponse.Image.DiskDeviceMapping> diskDeviceMappings = new List<DescribeImagesResponse.Image.DiskDeviceMapping>(); for (int j = 0; j < context.Length("DescribeImages.Images["+ i +"].DiskDeviceMappings.Length"); j++) { DescribeImagesResponse.Image.DiskDeviceMapping diskDeviceMapping = new DescribeImagesResponse.Image.DiskDeviceMapping(); diskDeviceMapping.SnapshotId = context.StringValue("DescribeImages.Images["+ i +"].DiskDeviceMappings["+ j +"].SnapshotId"); diskDeviceMapping.Size = context.StringValue("DescribeImages.Images["+ i +"].DiskDeviceMappings["+ j +"].Size"); diskDeviceMapping.Device = context.StringValue("DescribeImages.Images["+ i +"].DiskDeviceMappings["+ j +"].Device"); diskDeviceMapping.Format = context.StringValue("DescribeImages.Images["+ i +"].DiskDeviceMappings["+ j +"].Format"); diskDeviceMapping.ImportOSSBucket = context.StringValue("DescribeImages.Images["+ i +"].DiskDeviceMappings["+ j +"].ImportOSSBucket"); diskDeviceMapping.ImportOSSObject = context.StringValue("DescribeImages.Images["+ i +"].DiskDeviceMappings["+ j +"].ImportOSSObject"); diskDeviceMappings.Add(diskDeviceMapping); } image.DiskDeviceMappings = diskDeviceMappings; List<DescribeImagesResponse.Image.Tag> tags = new List<DescribeImagesResponse.Image.Tag>(); for (int j = 0; j < context.Length("DescribeImages.Images["+ i +"].Tags.Length"); j++) { DescribeImagesResponse.Image.Tag tag = new DescribeImagesResponse.Image.Tag(); tag.TagKey = context.StringValue("DescribeImages.Images["+ i +"].Tags["+ j +"].TagKey"); tag.TagValue = context.StringValue("DescribeImages.Images["+ i +"].Tags["+ j +"].TagValue"); tags.Add(tag); } image.Tags = tags; images.Add(image); } describeImagesResponse.Images = images; return describeImagesResponse; }
public static BlindTransferResponse Unmarshall(UnmarshallerContext _ctx) { BlindTransferResponse blindTransferResponse = new BlindTransferResponse(); blindTransferResponse.HttpResponse = _ctx.HttpResponse; blindTransferResponse.Code = _ctx.StringValue("BlindTransfer.Code"); blindTransferResponse.HttpStatusCode = _ctx.IntegerValue("BlindTransfer.HttpStatusCode"); blindTransferResponse.Message = _ctx.StringValue("BlindTransfer.Message"); blindTransferResponse.RequestId = _ctx.StringValue("BlindTransfer.RequestId"); List <string> blindTransferResponse_params = new List <string>(); for (int i = 0; i < _ctx.Length("BlindTransfer.Params.Length"); i++) { blindTransferResponse_params.Add(_ctx.StringValue("BlindTransfer.Params[" + i + "]")); } blindTransferResponse._Params = blindTransferResponse_params; BlindTransferResponse.BlindTransfer_Data data = new BlindTransferResponse.BlindTransfer_Data(); BlindTransferResponse.BlindTransfer_Data.BlindTransfer_CallContext callContext = new BlindTransferResponse.BlindTransfer_Data.BlindTransfer_CallContext(); callContext.CallType = _ctx.StringValue("BlindTransfer.Data.CallContext.CallType"); callContext.InstanceId = _ctx.StringValue("BlindTransfer.Data.CallContext.InstanceId"); callContext.JobId = _ctx.StringValue("BlindTransfer.Data.CallContext.JobId"); List <BlindTransferResponse.BlindTransfer_Data.BlindTransfer_CallContext.BlindTransfer_ChannelContext> callContext_channelContexts = new List <BlindTransferResponse.BlindTransfer_Data.BlindTransfer_CallContext.BlindTransfer_ChannelContext>(); for (int i = 0; i < _ctx.Length("BlindTransfer.Data.CallContext.ChannelContexts.Length"); i++) { BlindTransferResponse.BlindTransfer_Data.BlindTransfer_CallContext.BlindTransfer_ChannelContext channelContext = new BlindTransferResponse.BlindTransfer_Data.BlindTransfer_CallContext.BlindTransfer_ChannelContext(); channelContext.AssociatedData = _ctx.StringValue("BlindTransfer.Data.CallContext.ChannelContexts[" + i + "].AssociatedData"); channelContext.CallType = _ctx.StringValue("BlindTransfer.Data.CallContext.ChannelContexts[" + i + "].CallType"); channelContext.ChannelFlags = _ctx.StringValue("BlindTransfer.Data.CallContext.ChannelContexts[" + i + "].ChannelFlags"); channelContext.ChannelId = _ctx.StringValue("BlindTransfer.Data.CallContext.ChannelContexts[" + i + "].ChannelId"); channelContext.ChannelState = _ctx.StringValue("BlindTransfer.Data.CallContext.ChannelContexts[" + i + "].ChannelState"); channelContext.Destination = _ctx.StringValue("BlindTransfer.Data.CallContext.ChannelContexts[" + i + "].Destination"); channelContext.JobId = _ctx.StringValue("BlindTransfer.Data.CallContext.ChannelContexts[" + i + "].JobId"); channelContext.Originator = _ctx.StringValue("BlindTransfer.Data.CallContext.ChannelContexts[" + i + "].Originator"); channelContext.ReleaseInitiator = _ctx.StringValue("BlindTransfer.Data.CallContext.ChannelContexts[" + i + "].ReleaseInitiator"); channelContext.ReleaseReason = _ctx.StringValue("BlindTransfer.Data.CallContext.ChannelContexts[" + i + "].ReleaseReason"); channelContext.Timestamp = _ctx.LongValue("BlindTransfer.Data.CallContext.ChannelContexts[" + i + "].Timestamp"); channelContext.UserExtension = _ctx.StringValue("BlindTransfer.Data.CallContext.ChannelContexts[" + i + "].UserExtension"); channelContext.UserId = _ctx.StringValue("BlindTransfer.Data.CallContext.ChannelContexts[" + i + "].UserId"); callContext_channelContexts.Add(channelContext); } callContext.ChannelContexts = callContext_channelContexts; data.CallContext = callContext; BlindTransferResponse.BlindTransfer_Data.BlindTransfer_UserContext userContext = new BlindTransferResponse.BlindTransfer_Data.BlindTransfer_UserContext(); userContext.BreakCode = _ctx.StringValue("BlindTransfer.Data.UserContext.BreakCode"); userContext.DeviceId = _ctx.StringValue("BlindTransfer.Data.UserContext.DeviceId"); userContext.Extension = _ctx.StringValue("BlindTransfer.Data.UserContext.Extension"); userContext.Heartbeat = _ctx.LongValue("BlindTransfer.Data.UserContext.Heartbeat"); userContext.InstanceId = _ctx.StringValue("BlindTransfer.Data.UserContext.InstanceId"); userContext.JobId = _ctx.StringValue("BlindTransfer.Data.UserContext.JobId"); userContext.Mobile = _ctx.StringValue("BlindTransfer.Data.UserContext.Mobile"); userContext.OutboundScenario = _ctx.BooleanValue("BlindTransfer.Data.UserContext.OutboundScenario"); userContext.Reserved = _ctx.LongValue("BlindTransfer.Data.UserContext.Reserved"); userContext.UserId = _ctx.StringValue("BlindTransfer.Data.UserContext.UserId"); userContext.UserState = _ctx.StringValue("BlindTransfer.Data.UserContext.UserState"); userContext.WorkMode = _ctx.StringValue("BlindTransfer.Data.UserContext.WorkMode"); List <string> userContext_signedSkillGroupIdList = new List <string>(); for (int i = 0; i < _ctx.Length("BlindTransfer.Data.UserContext.SignedSkillGroupIdList.Length"); i++) { userContext_signedSkillGroupIdList.Add(_ctx.StringValue("BlindTransfer.Data.UserContext.SignedSkillGroupIdList[" + i + "]")); } userContext.SignedSkillGroupIdList = userContext_signedSkillGroupIdList; data.UserContext = userContext; blindTransferResponse.Data = data; return(blindTransferResponse); }
public static GetJobInfoResponse Unmarshall(UnmarshallerContext context) { GetJobInfoResponse getJobInfoResponse = new GetJobInfoResponse(); getJobInfoResponse.HttpResponse = context.HttpResponse; getJobInfoResponse.RequestId = context.StringValue("GetJobInfo.RequestId"); getJobInfoResponse.Code = context.IntegerValue("GetJobInfo.Code"); getJobInfoResponse.Message = context.StringValue("GetJobInfo.Message"); getJobInfoResponse.Success = context.BooleanValue("GetJobInfo.Success"); GetJobInfoResponse.GetJobInfo_Data data = new GetJobInfoResponse.GetJobInfo_Data(); GetJobInfoResponse.GetJobInfo_Data.GetJobInfo_JobConfigInfo jobConfigInfo = new GetJobInfoResponse.GetJobInfo_Data.GetJobInfo_JobConfigInfo(); jobConfigInfo.ClassName = context.StringValue("GetJobInfo.Data.JobConfigInfo.ClassName"); jobConfigInfo.JarUrl = context.StringValue("GetJobInfo.Data.JobConfigInfo.JarUrl"); jobConfigInfo.Content = context.StringValue("GetJobInfo.Data.JobConfigInfo.Content"); jobConfigInfo.Name = context.StringValue("GetJobInfo.Data.JobConfigInfo.Name"); jobConfigInfo.Description = context.StringValue("GetJobInfo.Data.JobConfigInfo.Description"); jobConfigInfo.Status = context.IntegerValue("GetJobInfo.Data.JobConfigInfo.Status"); jobConfigInfo.ExecuteMode = context.StringValue("GetJobInfo.Data.JobConfigInfo.ExecuteMode"); jobConfigInfo.Parameters = context.StringValue("GetJobInfo.Data.JobConfigInfo.Parameters"); jobConfigInfo.MaxConcurrency = context.StringValue("GetJobInfo.Data.JobConfigInfo.MaxConcurrency"); jobConfigInfo.MaxAttempt = context.IntegerValue("GetJobInfo.Data.JobConfigInfo.MaxAttempt"); jobConfigInfo.AttemptInterval = context.IntegerValue("GetJobInfo.Data.JobConfigInfo.AttemptInterval"); GetJobInfoResponse.GetJobInfo_Data.GetJobInfo_JobConfigInfo.GetJobInfo_MapTaskXAttrs mapTaskXAttrs = new GetJobInfoResponse.GetJobInfo_Data.GetJobInfo_JobConfigInfo.GetJobInfo_MapTaskXAttrs(); mapTaskXAttrs.PageSize = context.IntegerValue("GetJobInfo.Data.JobConfigInfo.MapTaskXAttrs.PageSize"); mapTaskXAttrs.ConsumerSize = context.IntegerValue("GetJobInfo.Data.JobConfigInfo.MapTaskXAttrs.ConsumerSize"); mapTaskXAttrs.QueueSize = context.IntegerValue("GetJobInfo.Data.JobConfigInfo.MapTaskXAttrs.QueueSize"); mapTaskXAttrs.DispatcherSize = context.IntegerValue("GetJobInfo.Data.JobConfigInfo.MapTaskXAttrs.DispatcherSize"); mapTaskXAttrs.TaskMaxAttempt = context.IntegerValue("GetJobInfo.Data.JobConfigInfo.MapTaskXAttrs.TaskMaxAttempt"); mapTaskXAttrs.TaskAttemptInterval = context.IntegerValue("GetJobInfo.Data.JobConfigInfo.MapTaskXAttrs.TaskAttemptInterval"); jobConfigInfo.MapTaskXAttrs = mapTaskXAttrs; GetJobInfoResponse.GetJobInfo_Data.GetJobInfo_JobConfigInfo.GetJobInfo_TimeConfig timeConfig = new GetJobInfoResponse.GetJobInfo_Data.GetJobInfo_JobConfigInfo.GetJobInfo_TimeConfig(); timeConfig.TimeType = context.IntegerValue("GetJobInfo.Data.JobConfigInfo.TimeConfig.TimeType"); timeConfig.TimeExpression = context.StringValue("GetJobInfo.Data.JobConfigInfo.TimeConfig.TimeExpression"); timeConfig.Calendar = context.StringValue("GetJobInfo.Data.JobConfigInfo.TimeConfig.Calendar"); timeConfig.DataOffset = context.IntegerValue("GetJobInfo.Data.JobConfigInfo.TimeConfig.DataOffset"); jobConfigInfo.TimeConfig = timeConfig; GetJobInfoResponse.GetJobInfo_Data.GetJobInfo_JobConfigInfo.GetJobInfo_JobMonitorInfo jobMonitorInfo = new GetJobInfoResponse.GetJobInfo_Data.GetJobInfo_JobConfigInfo.GetJobInfo_JobMonitorInfo(); GetJobInfoResponse.GetJobInfo_Data.GetJobInfo_JobConfigInfo.GetJobInfo_JobMonitorInfo.GetJobInfo_MonitorConfig monitorConfig = new GetJobInfoResponse.GetJobInfo_Data.GetJobInfo_JobConfigInfo.GetJobInfo_JobMonitorInfo.GetJobInfo_MonitorConfig(); monitorConfig.TimeoutEnable = context.BooleanValue("GetJobInfo.Data.JobConfigInfo.JobMonitorInfo.MonitorConfig.TimeoutEnable"); monitorConfig.Timeout = context.LongValue("GetJobInfo.Data.JobConfigInfo.JobMonitorInfo.MonitorConfig.Timeout"); monitorConfig.TimeoutKillEnable = context.BooleanValue("GetJobInfo.Data.JobConfigInfo.JobMonitorInfo.MonitorConfig.TimeoutKillEnable"); monitorConfig.FailEnable = context.BooleanValue("GetJobInfo.Data.JobConfigInfo.JobMonitorInfo.MonitorConfig.FailEnable"); monitorConfig.SendChannel = context.StringValue("GetJobInfo.Data.JobConfigInfo.JobMonitorInfo.MonitorConfig.SendChannel"); jobMonitorInfo.MonitorConfig = monitorConfig; List <GetJobInfoResponse.GetJobInfo_Data.GetJobInfo_JobConfigInfo.GetJobInfo_JobMonitorInfo.GetJobInfo_ContactInfoItem> jobMonitorInfo_contactInfo = new List <GetJobInfoResponse.GetJobInfo_Data.GetJobInfo_JobConfigInfo.GetJobInfo_JobMonitorInfo.GetJobInfo_ContactInfoItem>(); for (int i = 0; i < context.Length("GetJobInfo.Data.JobConfigInfo.JobMonitorInfo.ContactInfo.Length"); i++) { GetJobInfoResponse.GetJobInfo_Data.GetJobInfo_JobConfigInfo.GetJobInfo_JobMonitorInfo.GetJobInfo_ContactInfoItem contactInfoItem = new GetJobInfoResponse.GetJobInfo_Data.GetJobInfo_JobConfigInfo.GetJobInfo_JobMonitorInfo.GetJobInfo_ContactInfoItem(); contactInfoItem.UserName = context.StringValue("GetJobInfo.Data.JobConfigInfo.JobMonitorInfo.ContactInfo[" + i + "].UserName"); contactInfoItem.UserPhone = context.StringValue("GetJobInfo.Data.JobConfigInfo.JobMonitorInfo.ContactInfo[" + i + "].UserPhone"); jobMonitorInfo_contactInfo.Add(contactInfoItem); } jobMonitorInfo.ContactInfo = jobMonitorInfo_contactInfo; jobConfigInfo.JobMonitorInfo = jobMonitorInfo; data.JobConfigInfo = jobConfigInfo; getJobInfoResponse.Data = data; return(getJobInfoResponse); }
public static GetServiceResponse Unmarshall(UnmarshallerContext context) { GetServiceResponse getServiceResponse = new GetServiceResponse(); getServiceResponse.HttpResponse = context.HttpResponse; getServiceResponse.Code = context.IntegerValue("GetService.Code"); getServiceResponse.Message = context.StringValue("GetService.Message"); getServiceResponse.RequestId = context.StringValue("GetService.RequestId"); GetServiceResponse.GetService_Data data = new GetServiceResponse.GetService_Data(); GetServiceResponse.GetService_Data.GetService_Service service = new GetServiceResponse.GetService_Data.GetService_Service(); service.AccessParamsJSON = context.StringValue("GetService.Data.Service.AccessParamsJSON"); service.Active = context.BooleanValue("GetService.Data.Service.Active"); service.Alias = context.StringValue("GetService.Data.Service.Alias"); service.AllVisiable = context.BooleanValue("GetService.Data.Service.AllVisiable"); service.ApproveUserId = context.StringValue("GetService.Data.Service.ApproveUserId"); service.CasTargets = context.StringValue("GetService.Data.Service.CasTargets"); service.ConsumeTypesJSON = context.StringValue("GetService.Data.Service.ConsumeTypesJSON"); service.CreateTime = context.LongValue("GetService.Data.Service.CreateTime"); service.CsbId = context.LongValue("GetService.Data.Service.CsbId"); service.ErrDefJSON = context.StringValue("GetService.Data.Service.ErrDefJSON"); service.Id = context.LongValue("GetService.Data.Service.Id"); service.InterfaceName = context.StringValue("GetService.Data.Service.InterfaceName"); service.IpBlackStr = context.StringValue("GetService.Data.Service.IpBlackStr"); service.IpWhiteStr = context.StringValue("GetService.Data.Service.IpWhiteStr"); service.ModelVersion = context.StringValue("GetService.Data.Service.ModelVersion"); service.ModifiedTime = context.LongValue("GetService.Data.Service.ModifiedTime"); service.OldVersion = context.StringValue("GetService.Data.Service.OldVersion"); service.OpenRestfulPath = context.StringValue("GetService.Data.Service.OpenRestfulPath"); service.OttFlag = context.BooleanValue("GetService.Data.Service.OttFlag"); service.OwnerId = context.StringValue("GetService.Data.Service.OwnerId"); service.PolicyHandler = context.StringValue("GetService.Data.Service.PolicyHandler"); service.PrincipalName = context.StringValue("GetService.Data.Service.PrincipalName"); service.ProjectId = context.LongValue("GetService.Data.Service.ProjectId"); service.ProjectName = context.StringValue("GetService.Data.Service.ProjectName"); service.ProvideType = context.StringValue("GetService.Data.Service.ProvideType"); service.RouteConfJson = context.StringValue("GetService.Data.Service.RouteConfJson"); service.SSL = context.BooleanValue("GetService.Data.Service.SSL"); service.Scope = context.StringValue("GetService.Data.Service.Scope"); service.ServiceName = context.StringValue("GetService.Data.Service.ServiceName"); service.ServiceOpenRestfulPath = context.StringValue("GetService.Data.Service.ServiceOpenRestfulPath"); service.ServiceProviderType = context.StringValue("GetService.Data.Service.ServiceProviderType"); service.ServiceVersion = context.StringValue("GetService.Data.Service.ServiceVersion"); service.SkipAuth = context.BooleanValue("GetService.Data.Service.SkipAuth"); service.StatisticName = context.StringValue("GetService.Data.Service.StatisticName"); service.Status = context.IntegerValue("GetService.Data.Service.Status"); service.UserId = context.StringValue("GetService.Data.Service.UserId"); service.ValidConsumeTypes = context.BooleanValue("GetService.Data.Service.ValidConsumeTypes"); service.ValidProvideType = context.BooleanValue("GetService.Data.Service.ValidProvideType"); List <string> service_casServTargets = new List <string>(); for (int i = 0; i < context.Length("GetService.Data.Service.CasServTargets.Length"); i++) { service_casServTargets.Add(context.StringValue("GetService.Data.Service.CasServTargets[" + i + "]")); } service.CasServTargets = service_casServTargets; List <string> service_consumeTypes = new List <string>(); for (int i = 0; i < context.Length("GetService.Data.Service.ConsumeTypes.Length"); i++) { service_consumeTypes.Add(context.StringValue("GetService.Data.Service.ConsumeTypes[" + i + "]")); } service.ConsumeTypes = service_consumeTypes; GetServiceResponse.GetService_Data.GetService_Service.GetService_RouteConf routeConf = new GetServiceResponse.GetService_Data.GetService_Service.GetService_RouteConf(); routeConf.ServiceRouteStrategy = context.StringValue("GetService.Data.Service.RouteConf.ServiceRouteStrategy"); GetServiceResponse.GetService_Data.GetService_Service.GetService_RouteConf.GetService_ImportConf importConf = new GetServiceResponse.GetService_Data.GetService_Service.GetService_RouteConf.GetService_ImportConf(); importConf.AccessEndpointJSON = context.StringValue("GetService.Data.Service.RouteConf.ImportConf.AccessEndpointJSON"); importConf.ProvideType = context.StringValue("GetService.Data.Service.RouteConf.ImportConf.ProvideType"); List <GetServiceResponse.GetService_Data.GetService_Service.GetService_RouteConf.GetService_ImportConf.GetService_InputParameter> importConf_inputParameterMap = new List <GetServiceResponse.GetService_Data.GetService_Service.GetService_RouteConf.GetService_ImportConf.GetService_InputParameter>(); for (int i = 0; i < context.Length("GetService.Data.Service.RouteConf.ImportConf.InputParameterMap.Length"); i++) { GetServiceResponse.GetService_Data.GetService_Service.GetService_RouteConf.GetService_ImportConf.GetService_InputParameter inputParameter = new GetServiceResponse.GetService_Data.GetService_Service.GetService_RouteConf.GetService_ImportConf.GetService_InputParameter(); inputParameter.CatType = context.IntegerValue("GetService.Data.Service.RouteConf.ImportConf.InputParameterMap[" + i + "].CatType"); inputParameter.Depth = context.IntegerValue("GetService.Data.Service.RouteConf.ImportConf.InputParameterMap[" + i + "].Depth"); inputParameter.ExtType = context.IntegerValue("GetService.Data.Service.RouteConf.ImportConf.InputParameterMap[" + i + "].ExtType"); inputParameter.MapStyle = context.IntegerValue("GetService.Data.Service.RouteConf.ImportConf.InputParameterMap[" + i + "].MapStyle"); inputParameter.Optional = context.BooleanValue("GetService.Data.Service.RouteConf.ImportConf.InputParameterMap[" + i + "].Optional"); inputParameter.OriginalName = context.StringValue("GetService.Data.Service.RouteConf.ImportConf.InputParameterMap[" + i + "].OriginalName"); inputParameter.ParamType = context.StringValue("GetService.Data.Service.RouteConf.ImportConf.InputParameterMap[" + i + "].ParamType"); inputParameter.PassMethod = context.StringValue("GetService.Data.Service.RouteConf.ImportConf.InputParameterMap[" + i + "].PassMethod"); inputParameter.TargetName = context.StringValue("GetService.Data.Service.RouteConf.ImportConf.InputParameterMap[" + i + "].TargetName"); importConf_inputParameterMap.Add(inputParameter); } importConf.InputParameterMap = importConf_inputParameterMap; List <GetServiceResponse.GetService_Data.GetService_Service.GetService_RouteConf.GetService_ImportConf.GetService_OutputParameter> importConf_outputParameterMap = new List <GetServiceResponse.GetService_Data.GetService_Service.GetService_RouteConf.GetService_ImportConf.GetService_OutputParameter>(); for (int i = 0; i < context.Length("GetService.Data.Service.RouteConf.ImportConf.OutputParameterMap.Length"); i++) { GetServiceResponse.GetService_Data.GetService_Service.GetService_RouteConf.GetService_ImportConf.GetService_OutputParameter outputParameter = new GetServiceResponse.GetService_Data.GetService_Service.GetService_RouteConf.GetService_ImportConf.GetService_OutputParameter(); outputParameter.CatType = context.IntegerValue("GetService.Data.Service.RouteConf.ImportConf.OutputParameterMap[" + i + "].CatType"); outputParameter.Depth = context.IntegerValue("GetService.Data.Service.RouteConf.ImportConf.OutputParameterMap[" + i + "].Depth"); outputParameter.ExtType = context.IntegerValue("GetService.Data.Service.RouteConf.ImportConf.OutputParameterMap[" + i + "].ExtType"); outputParameter.MapStyle = context.IntegerValue("GetService.Data.Service.RouteConf.ImportConf.OutputParameterMap[" + i + "].MapStyle"); outputParameter.Optional = context.BooleanValue("GetService.Data.Service.RouteConf.ImportConf.OutputParameterMap[" + i + "].Optional"); outputParameter.OriginalName = context.StringValue("GetService.Data.Service.RouteConf.ImportConf.OutputParameterMap[" + i + "].OriginalName"); outputParameter.ParamType = context.StringValue("GetService.Data.Service.RouteConf.ImportConf.OutputParameterMap[" + i + "].ParamType"); outputParameter.PassMethod = context.StringValue("GetService.Data.Service.RouteConf.ImportConf.OutputParameterMap[" + i + "].PassMethod"); outputParameter.TargetName = context.StringValue("GetService.Data.Service.RouteConf.ImportConf.OutputParameterMap[" + i + "].TargetName"); importConf_outputParameterMap.Add(outputParameter); } importConf.OutputParameterMap = importConf_outputParameterMap; routeConf.ImportConf = importConf; GetServiceResponse.GetService_Data.GetService_Service.GetService_RouteConf.GetService_ImportConfs importConfs = new GetServiceResponse.GetService_Data.GetService_Service.GetService_RouteConf.GetService_ImportConfs(); importConfs.AccessEndpointJSON = context.StringValue("GetService.Data.Service.RouteConf.ImportConfs.AccessEndpointJSON"); importConfs.ProvideType = context.StringValue("GetService.Data.Service.RouteConf.ImportConfs.ProvideType"); List <GetServiceResponse.GetService_Data.GetService_Service.GetService_RouteConf.GetService_ImportConfs.GetService_InputParameter3> importConfs_inputParameterMap1 = new List <GetServiceResponse.GetService_Data.GetService_Service.GetService_RouteConf.GetService_ImportConfs.GetService_InputParameter3>(); for (int i = 0; i < context.Length("GetService.Data.Service.RouteConf.ImportConfs.InputParameterMap.Length"); i++) { GetServiceResponse.GetService_Data.GetService_Service.GetService_RouteConf.GetService_ImportConfs.GetService_InputParameter3 inputParameter3 = new GetServiceResponse.GetService_Data.GetService_Service.GetService_RouteConf.GetService_ImportConfs.GetService_InputParameter3(); inputParameter3.CatType = context.IntegerValue("GetService.Data.Service.RouteConf.ImportConfs.InputParameterMap[" + i + "].CatType"); inputParameter3.Depth = context.IntegerValue("GetService.Data.Service.RouteConf.ImportConfs.InputParameterMap[" + i + "].Depth"); inputParameter3.ExtType = context.IntegerValue("GetService.Data.Service.RouteConf.ImportConfs.InputParameterMap[" + i + "].ExtType"); inputParameter3.MapStyle = context.IntegerValue("GetService.Data.Service.RouteConf.ImportConfs.InputParameterMap[" + i + "].MapStyle"); inputParameter3.Optional = context.BooleanValue("GetService.Data.Service.RouteConf.ImportConfs.InputParameterMap[" + i + "].Optional"); inputParameter3.OriginalName = context.StringValue("GetService.Data.Service.RouteConf.ImportConfs.InputParameterMap[" + i + "].OriginalName"); inputParameter3.ParamType = context.StringValue("GetService.Data.Service.RouteConf.ImportConfs.InputParameterMap[" + i + "].ParamType"); inputParameter3.PassMethod = context.StringValue("GetService.Data.Service.RouteConf.ImportConfs.InputParameterMap[" + i + "].PassMethod"); inputParameter3.TargetName = context.StringValue("GetService.Data.Service.RouteConf.ImportConfs.InputParameterMap[" + i + "].TargetName"); importConfs_inputParameterMap1.Add(inputParameter3); } importConfs.InputParameterMap1 = importConfs_inputParameterMap1; List <GetServiceResponse.GetService_Data.GetService_Service.GetService_RouteConf.GetService_ImportConfs.GetService_OutputParameter4> importConfs_outputParameterMap2 = new List <GetServiceResponse.GetService_Data.GetService_Service.GetService_RouteConf.GetService_ImportConfs.GetService_OutputParameter4>(); for (int i = 0; i < context.Length("GetService.Data.Service.RouteConf.ImportConfs.OutputParameterMap.Length"); i++) { GetServiceResponse.GetService_Data.GetService_Service.GetService_RouteConf.GetService_ImportConfs.GetService_OutputParameter4 outputParameter4 = new GetServiceResponse.GetService_Data.GetService_Service.GetService_RouteConf.GetService_ImportConfs.GetService_OutputParameter4(); outputParameter4.CatType = context.IntegerValue("GetService.Data.Service.RouteConf.ImportConfs.OutputParameterMap[" + i + "].CatType"); outputParameter4.Depth = context.IntegerValue("GetService.Data.Service.RouteConf.ImportConfs.OutputParameterMap[" + i + "].Depth"); outputParameter4.ExtType = context.IntegerValue("GetService.Data.Service.RouteConf.ImportConfs.OutputParameterMap[" + i + "].ExtType"); outputParameter4.MapStyle = context.IntegerValue("GetService.Data.Service.RouteConf.ImportConfs.OutputParameterMap[" + i + "].MapStyle"); outputParameter4.Optional = context.BooleanValue("GetService.Data.Service.RouteConf.ImportConfs.OutputParameterMap[" + i + "].Optional"); outputParameter4.OriginalName = context.StringValue("GetService.Data.Service.RouteConf.ImportConfs.OutputParameterMap[" + i + "].OriginalName"); outputParameter4.ParamType = context.StringValue("GetService.Data.Service.RouteConf.ImportConfs.OutputParameterMap[" + i + "].ParamType"); outputParameter4.PassMethod = context.StringValue("GetService.Data.Service.RouteConf.ImportConfs.OutputParameterMap[" + i + "].PassMethod"); outputParameter4.TargetName = context.StringValue("GetService.Data.Service.RouteConf.ImportConfs.OutputParameterMap[" + i + "].TargetName"); importConfs_outputParameterMap2.Add(outputParameter4); } importConfs.OutputParameterMap2 = importConfs_outputParameterMap2; routeConf.ImportConfs = importConfs; service.RouteConf = routeConf; List <GetServiceResponse.GetService_Data.GetService_Service.GetService_ServiceVersion> service_serviceVersionsList = new List <GetServiceResponse.GetService_Data.GetService_Service.GetService_ServiceVersion>(); for (int i = 0; i < context.Length("GetService.Data.Service.ServiceVersionsList.Length"); i++) { GetServiceResponse.GetService_Data.GetService_Service.GetService_ServiceVersion serviceVersion = new GetServiceResponse.GetService_Data.GetService_Service.GetService_ServiceVersion(); serviceVersion.Active = context.BooleanValue("GetService.Data.Service.ServiceVersionsList[" + i + "].Active"); serviceVersion.AllVisiable = context.BooleanValue("GetService.Data.Service.ServiceVersionsList[" + i + "].AllVisiable"); serviceVersion.Id = context.LongValue("GetService.Data.Service.ServiceVersionsList[" + i + "].Id"); serviceVersion.OldVersion = context.StringValue("GetService.Data.Service.ServiceVersionsList[" + i + "].OldVersion"); serviceVersion.OttFlag = context.BooleanValue("GetService.Data.Service.ServiceVersionsList[" + i + "].OttFlag"); serviceVersion.SSL = context.BooleanValue("GetService.Data.Service.ServiceVersionsList[" + i + "].SSL"); serviceVersion.Scope = context.StringValue("GetService.Data.Service.ServiceVersionsList[" + i + "].Scope"); serviceVersion.ServiceVersion = context.StringValue("GetService.Data.Service.ServiceVersionsList[" + i + "].ServiceVersion"); serviceVersion.SkipAuth = context.BooleanValue("GetService.Data.Service.ServiceVersionsList[" + i + "].SkipAuth"); serviceVersion.StatisticName = context.StringValue("GetService.Data.Service.ServiceVersionsList[" + i + "].StatisticName"); serviceVersion.Status = context.IntegerValue("GetService.Data.Service.ServiceVersionsList[" + i + "].Status"); serviceVersion.ValidConsumeTypes = context.BooleanValue("GetService.Data.Service.ServiceVersionsList[" + i + "].ValidConsumeTypes"); serviceVersion.ValidProvideType = context.BooleanValue("GetService.Data.Service.ServiceVersionsList[" + i + "].ValidProvideType"); service_serviceVersionsList.Add(serviceVersion); } service.ServiceVersionsList = service_serviceVersionsList; List <GetServiceResponse.GetService_Data.GetService_Service.GetService_VisiableGroup> service_visiableGroupList = new List <GetServiceResponse.GetService_Data.GetService_Service.GetService_VisiableGroup>(); for (int i = 0; i < context.Length("GetService.Data.Service.VisiableGroupList.Length"); i++) { GetServiceResponse.GetService_Data.GetService_Service.GetService_VisiableGroup visiableGroup = new GetServiceResponse.GetService_Data.GetService_Service.GetService_VisiableGroup(); visiableGroup.Id = context.LongValue("GetService.Data.Service.VisiableGroupList[" + i + "].Id"); visiableGroup.GroupId = context.LongValue("GetService.Data.Service.VisiableGroupList[" + i + "].GroupId"); visiableGroup.UserId = context.StringValue("GetService.Data.Service.VisiableGroupList[" + i + "].UserId"); visiableGroup.ServiceId = context.LongValue("GetService.Data.Service.VisiableGroupList[" + i + "].ServiceId"); visiableGroup.CreateTime = context.LongValue("GetService.Data.Service.VisiableGroupList[" + i + "].CreateTime"); visiableGroup.ModifiedTime = context.LongValue("GetService.Data.Service.VisiableGroupList[" + i + "].ModifiedTime"); visiableGroup.Status = context.IntegerValue("GetService.Data.Service.VisiableGroupList[" + i + "].Status"); service_visiableGroupList.Add(visiableGroup); } service.VisiableGroupList = service_visiableGroupList; data.Service = service; getServiceResponse.Data = data; return(getServiceResponse); }