public static DescribeSmartAccessGatewaysResponse Unmarshall(UnmarshallerContext context) { DescribeSmartAccessGatewaysResponse describeSmartAccessGatewaysResponse = new DescribeSmartAccessGatewaysResponse(); describeSmartAccessGatewaysResponse.HttpResponse = context.HttpResponse; describeSmartAccessGatewaysResponse.RequestId = context.StringValue("DescribeSmartAccessGateways.RequestId"); describeSmartAccessGatewaysResponse.TotalCount = context.IntegerValue("DescribeSmartAccessGateways.TotalCount"); describeSmartAccessGatewaysResponse.PageNumber = context.IntegerValue("DescribeSmartAccessGateways.PageNumber"); describeSmartAccessGatewaysResponse.PageSize = context.IntegerValue("DescribeSmartAccessGateways.PageSize"); List <DescribeSmartAccessGatewaysResponse.DescribeSmartAccessGateways_SmartAccessGateway> describeSmartAccessGatewaysResponse_smartAccessGateways = new List <DescribeSmartAccessGatewaysResponse.DescribeSmartAccessGateways_SmartAccessGateway>(); for (int i = 0; i < context.Length("DescribeSmartAccessGateways.SmartAccessGateways.Length"); i++) { DescribeSmartAccessGatewaysResponse.DescribeSmartAccessGateways_SmartAccessGateway smartAccessGateway = new DescribeSmartAccessGatewaysResponse.DescribeSmartAccessGateways_SmartAccessGateway(); smartAccessGateway.SmartAGId = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].SmartAGId"); smartAccessGateway.Name = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].Name"); smartAccessGateway.City = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].City"); smartAccessGateway.MaxBandwidth = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].MaxBandwidth"); smartAccessGateway.Status = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].Status"); smartAccessGateway.CidrBlock = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].CidrBlock"); smartAccessGateway.AssociatedCcnId = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].AssociatedCcnId"); smartAccessGateway.AssociatedCcnName = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].AssociatedCcnName"); smartAccessGateway.Description = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].Description"); smartAccessGateway.CreateTime = context.LongValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].CreateTime"); smartAccessGateway.EndTime = context.LongValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].EndTime"); smartAccessGateway.SoftwareVersion = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].SoftwareVersion"); smartAccessGateway.HardwareVersion = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].HardwareVersion"); smartAccessGateway.SerialNumber = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].SerialNumber"); smartAccessGateway.SecurityLockThreshold = context.IntegerValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].SecurityLockThreshold"); smartAccessGateway.AclIds = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].AclIds"); smartAccessGateway.DataPlan = context.LongValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].DataPlan"); smartAccessGateway.UserCount = context.IntegerValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].UserCount"); List <DescribeSmartAccessGatewaysResponse.DescribeSmartAccessGateways_SmartAccessGateway.DescribeSmartAccessGateways_SnatEntry> smartAccessGateway_snatEntries = new List <DescribeSmartAccessGatewaysResponse.DescribeSmartAccessGateways_SmartAccessGateway.DescribeSmartAccessGateways_SnatEntry>(); for (int j = 0; j < context.Length("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].SnatEntries.Length"); j++) { DescribeSmartAccessGatewaysResponse.DescribeSmartAccessGateways_SmartAccessGateway.DescribeSmartAccessGateways_SnatEntry snatEntry = new DescribeSmartAccessGatewaysResponse.DescribeSmartAccessGateways_SmartAccessGateway.DescribeSmartAccessGateways_SnatEntry(); snatEntry.CidrBlock = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].SnatEntries[" + j + "].CidrBlock"); snatEntry.SnatIp = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].SnatEntries[" + j + "].SnatIp"); smartAccessGateway_snatEntries.Add(snatEntry); } smartAccessGateway.SnatEntries = smartAccessGateway_snatEntries; describeSmartAccessGatewaysResponse_smartAccessGateways.Add(smartAccessGateway); } describeSmartAccessGatewaysResponse.SmartAccessGateways = describeSmartAccessGatewaysResponse_smartAccessGateways; return(describeSmartAccessGatewaysResponse); }
public static DescribeSmartAccessGatewaysResponse Unmarshall(UnmarshallerContext context) { DescribeSmartAccessGatewaysResponse describeSmartAccessGatewaysResponse = new DescribeSmartAccessGatewaysResponse(); describeSmartAccessGatewaysResponse.HttpResponse = context.HttpResponse; describeSmartAccessGatewaysResponse.RequestId = context.StringValue("DescribeSmartAccessGateways.RequestId"); describeSmartAccessGatewaysResponse.TotalCount = context.IntegerValue("DescribeSmartAccessGateways.TotalCount"); describeSmartAccessGatewaysResponse.PageNumber = context.IntegerValue("DescribeSmartAccessGateways.PageNumber"); describeSmartAccessGatewaysResponse.PageSize = context.IntegerValue("DescribeSmartAccessGateways.PageSize"); List <DescribeSmartAccessGatewaysResponse.DescribeSmartAccessGateways_SmartAccessGateway> describeSmartAccessGatewaysResponse_smartAccessGateways = new List <DescribeSmartAccessGatewaysResponse.DescribeSmartAccessGateways_SmartAccessGateway>(); for (int i = 0; i < context.Length("DescribeSmartAccessGateways.SmartAccessGateways.Length"); i++) { DescribeSmartAccessGatewaysResponse.DescribeSmartAccessGateways_SmartAccessGateway smartAccessGateway = new DescribeSmartAccessGatewaysResponse.DescribeSmartAccessGateways_SmartAccessGateway(); smartAccessGateway.SmartAGId = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].SmartAGId"); smartAccessGateway.Name = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].Name"); smartAccessGateway.City = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].City"); smartAccessGateway.MaxBandwidth = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].MaxBandwidth"); smartAccessGateway.Status = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].Status"); smartAccessGateway.CidrBlock = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].CidrBlock"); smartAccessGateway.AssociatedCcnId = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].AssociatedCcnId"); smartAccessGateway.AssociatedCcnName = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].AssociatedCcnName"); smartAccessGateway.Description = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].Description"); smartAccessGateway.CreateTime = context.LongValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].CreateTime"); smartAccessGateway.EndTime = context.LongValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].EndTime"); smartAccessGateway.SoftwareVersion = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].SoftwareVersion"); smartAccessGateway.HardwareVersion = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].HardwareVersion"); smartAccessGateway.SerialNumber = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].SerialNumber"); smartAccessGateway.SecurityLockThreshold = context.IntegerValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].SecurityLockThreshold"); smartAccessGateway.AclIds = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].AclIds"); smartAccessGateway.DataPlan = context.LongValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].DataPlan"); smartAccessGateway.UserCount = context.IntegerValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].UserCount"); smartAccessGateway.RoutingStrategy = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].RoutingStrategy"); smartAccessGateway.UpBandwidthWan = context.IntegerValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].UpBandwidthWan"); smartAccessGateway.UpBandwidth4G = context.IntegerValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].UpBandwidth4G"); smartAccessGateway.QosIds = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].QosIds"); smartAccessGateway.BackupSoftwareVersion = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].BackupSoftwareVersion"); smartAccessGateway.SmartAGUid = context.LongValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].SmartAGUid"); smartAccessGateway.BackupStatus = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].BackupStatus"); smartAccessGateway.ResourceGroupId = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].ResourceGroupId"); smartAccessGateway.VpnStatus = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].VpnStatus"); smartAccessGateway.IpsecStatus = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].IpsecStatus"); List <DescribeSmartAccessGatewaysResponse.DescribeSmartAccessGateways_SmartAccessGateway.DescribeSmartAccessGateways_Link> smartAccessGateway_links = new List <DescribeSmartAccessGatewaysResponse.DescribeSmartAccessGateways_SmartAccessGateway.DescribeSmartAccessGateways_Link>(); for (int j = 0; j < context.Length("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].Links.Length"); j++) { DescribeSmartAccessGatewaysResponse.DescribeSmartAccessGateways_SmartAccessGateway.DescribeSmartAccessGateways_Link link = new DescribeSmartAccessGatewaysResponse.DescribeSmartAccessGateways_SmartAccessGateway.DescribeSmartAccessGateways_Link(); link.InstanceId = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].Links[" + j + "].InstanceId"); link.Type = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].Links[" + j + "].Type"); link.Status = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].Links[" + j + "].Status"); link.EndTime = context.LongValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].Links[" + j + "].EndTime"); link.Bandwidth = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].Links[" + j + "].Bandwidth"); link.RelateInstanceId = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].Links[" + j + "].RelateInstanceId"); link.RelateInstanceRegionId = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].Links[" + j + "].RelateInstanceRegionId"); link.CommodityType = context.StringValue("DescribeSmartAccessGateways.SmartAccessGateways[" + i + "].Links[" + j + "].CommodityType"); smartAccessGateway_links.Add(link); } smartAccessGateway.Links = smartAccessGateway_links; describeSmartAccessGatewaysResponse_smartAccessGateways.Add(smartAccessGateway); } describeSmartAccessGatewaysResponse.SmartAccessGateways = describeSmartAccessGatewaysResponse_smartAccessGateways; return(describeSmartAccessGatewaysResponse); }