public static DescribeVServerGroupsResponse Unmarshall(UnmarshallerContext context) { DescribeVServerGroupsResponse describeVServerGroupsResponse = new DescribeVServerGroupsResponse(); describeVServerGroupsResponse.HttpResponse = context.HttpResponse; describeVServerGroupsResponse.RequestId = context.StringValue("DescribeVServerGroups.RequestId"); List <DescribeVServerGroupsResponse.DescribeVServerGroups_VServerGroup> describeVServerGroupsResponse_vServerGroups = new List <DescribeVServerGroupsResponse.DescribeVServerGroups_VServerGroup>(); for (int i = 0; i < context.Length("DescribeVServerGroups.VServerGroups.Length"); i++) { DescribeVServerGroupsResponse.DescribeVServerGroups_VServerGroup vServerGroup = new DescribeVServerGroupsResponse.DescribeVServerGroups_VServerGroup(); vServerGroup.VServerGroupId = context.StringValue("DescribeVServerGroups.VServerGroups[" + i + "].VServerGroupId"); vServerGroup.VServerGroupName = context.StringValue("DescribeVServerGroups.VServerGroups[" + i + "].VServerGroupName"); DescribeVServerGroupsResponse.DescribeVServerGroups_VServerGroup.DescribeVServerGroups_AssociatedObjects associatedObjects = new DescribeVServerGroupsResponse.DescribeVServerGroups_VServerGroup.DescribeVServerGroups_AssociatedObjects(); List <DescribeVServerGroupsResponse.DescribeVServerGroups_VServerGroup.DescribeVServerGroups_AssociatedObjects.DescribeVServerGroups_Listener> associatedObjects_listeners = new List <DescribeVServerGroupsResponse.DescribeVServerGroups_VServerGroup.DescribeVServerGroups_AssociatedObjects.DescribeVServerGroups_Listener>(); for (int j = 0; j < context.Length("DescribeVServerGroups.VServerGroups[" + i + "].AssociatedObjects.Listeners.Length"); j++) { DescribeVServerGroupsResponse.DescribeVServerGroups_VServerGroup.DescribeVServerGroups_AssociatedObjects.DescribeVServerGroups_Listener listener = new DescribeVServerGroupsResponse.DescribeVServerGroups_VServerGroup.DescribeVServerGroups_AssociatedObjects.DescribeVServerGroups_Listener(); listener.Protocol = context.StringValue("DescribeVServerGroups.VServerGroups[" + i + "].AssociatedObjects.Listeners[" + j + "].Protocol"); listener.Port = context.IntegerValue("DescribeVServerGroups.VServerGroups[" + i + "].AssociatedObjects.Listeners[" + j + "].Port"); associatedObjects_listeners.Add(listener); } associatedObjects.Listeners = associatedObjects_listeners; List <DescribeVServerGroupsResponse.DescribeVServerGroups_VServerGroup.DescribeVServerGroups_AssociatedObjects.DescribeVServerGroups_Rule> associatedObjects_rules = new List <DescribeVServerGroupsResponse.DescribeVServerGroups_VServerGroup.DescribeVServerGroups_AssociatedObjects.DescribeVServerGroups_Rule>(); for (int j = 0; j < context.Length("DescribeVServerGroups.VServerGroups[" + i + "].AssociatedObjects.Rules.Length"); j++) { DescribeVServerGroupsResponse.DescribeVServerGroups_VServerGroup.DescribeVServerGroups_AssociatedObjects.DescribeVServerGroups_Rule rule = new DescribeVServerGroupsResponse.DescribeVServerGroups_VServerGroup.DescribeVServerGroups_AssociatedObjects.DescribeVServerGroups_Rule(); rule.RuleId = context.StringValue("DescribeVServerGroups.VServerGroups[" + i + "].AssociatedObjects.Rules[" + j + "].RuleId"); rule.Domain = context.StringValue("DescribeVServerGroups.VServerGroups[" + i + "].AssociatedObjects.Rules[" + j + "].Domain"); rule.Url = context.StringValue("DescribeVServerGroups.VServerGroups[" + i + "].AssociatedObjects.Rules[" + j + "].Url"); rule.RuleName = context.StringValue("DescribeVServerGroups.VServerGroups[" + i + "].AssociatedObjects.Rules[" + j + "].RuleName"); associatedObjects_rules.Add(rule); } associatedObjects.Rules = associatedObjects_rules; vServerGroup.AssociatedObjects = associatedObjects; describeVServerGroupsResponse_vServerGroups.Add(vServerGroup); } describeVServerGroupsResponse.VServerGroups = describeVServerGroupsResponse_vServerGroups; return(describeVServerGroupsResponse); }
public static DescribeVServerGroupsResponse Unmarshall(UnmarshallerContext context) { DescribeVServerGroupsResponse describeVServerGroupsResponse = new DescribeVServerGroupsResponse(); describeVServerGroupsResponse.HttpResponse = context.HttpResponse; describeVServerGroupsResponse.RequestId = context.StringValue("DescribeVServerGroups.RequestId"); List <DescribeVServerGroupsResponse.VServerGroup> vServerGroups = new List <DescribeVServerGroupsResponse.VServerGroup>(); for (int i = 0; i < context.Length("DescribeVServerGroups.VServerGroups.Length"); i++) { DescribeVServerGroupsResponse.VServerGroup vServerGroup = new DescribeVServerGroupsResponse.VServerGroup(); vServerGroup.VServerGroupId = context.StringValue("DescribeVServerGroups.VServerGroups[" + i + "].VServerGroupId"); vServerGroup.VServerGroupName = context.StringValue("DescribeVServerGroups.VServerGroups[" + i + "].VServerGroupName"); vServerGroups.Add(vServerGroup); } describeVServerGroupsResponse.VServerGroups = vServerGroups; return(describeVServerGroupsResponse); }