public static DescribeDedicatedHostsResponse Unmarshall(UnmarshallerContext context) { DescribeDedicatedHostsResponse describeDedicatedHostsResponse = new DescribeDedicatedHostsResponse(); describeDedicatedHostsResponse.HttpResponse = context.HttpResponse; describeDedicatedHostsResponse.RequestId = context.StringValue("DescribeDedicatedHosts.RequestId"); describeDedicatedHostsResponse.DedicatedHostGroupId = context.StringValue("DescribeDedicatedHosts.DedicatedHostGroupId"); List <DescribeDedicatedHostsResponse.DescribeDedicatedHosts_DedicatedHostsItem> describeDedicatedHostsResponse_dedicatedHosts = new List <DescribeDedicatedHostsResponse.DescribeDedicatedHosts_DedicatedHostsItem>(); for (int i = 0; i < context.Length("DescribeDedicatedHosts.DedicatedHosts.Length"); i++) { DescribeDedicatedHostsResponse.DescribeDedicatedHosts_DedicatedHostsItem dedicatedHostsItem = new DescribeDedicatedHostsResponse.DescribeDedicatedHosts_DedicatedHostsItem(); dedicatedHostsItem.HostName = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].HostName"); dedicatedHostsItem.HostStatus = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].HostStatus"); dedicatedHostsItem.InstanceNumber = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].InstanceNumber"); dedicatedHostsItem.CPUAllocationRatio = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].CPUAllocationRatio"); dedicatedHostsItem.MemAllocationRatio = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].MemAllocationRatio"); dedicatedHostsItem.DiskAllocationRatio = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].DiskAllocationRatio"); dedicatedHostsItem.VPCId = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].VPCId"); dedicatedHostsItem.VSwitchId = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].VSwitchId"); dedicatedHostsItem.ZoneId = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].ZoneId"); dedicatedHostsItem.IPAddress = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].IPAddress"); dedicatedHostsItem.HostClass = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].HostClass"); dedicatedHostsItem.CreatedTime = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].CreatedTime"); dedicatedHostsItem.DedicatedHostId = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].DedicatedHostId"); dedicatedHostsItem.AllocationStatus = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].AllocationStatus"); dedicatedHostsItem.EndTime = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].EndTime"); dedicatedHostsItem.HostType = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].HostType"); dedicatedHostsItem.BastionInstanceId = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].BastionInstanceId"); dedicatedHostsItem.OpenPermission = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].OpenPermission"); dedicatedHostsItem.AccountName = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].AccountName"); dedicatedHostsItem.HostCPU = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].HostCPU"); dedicatedHostsItem.HostMem = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].HostMem"); dedicatedHostsItem.HostStorage = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].HostStorage"); dedicatedHostsItem.CpuUsed = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].CpuUsed"); dedicatedHostsItem.MemoryUsed = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].MemoryUsed"); dedicatedHostsItem.StorageUsed = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].StorageUsed"); dedicatedHostsItem.ImageCategory = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].ImageCategory"); describeDedicatedHostsResponse_dedicatedHosts.Add(dedicatedHostsItem); } describeDedicatedHostsResponse.DedicatedHosts = describeDedicatedHostsResponse_dedicatedHosts; return(describeDedicatedHostsResponse); }
public static DescribeDedicatedHostsResponse Unmarshall(UnmarshallerContext context) { DescribeDedicatedHostsResponse describeDedicatedHostsResponse = new DescribeDedicatedHostsResponse(); describeDedicatedHostsResponse.HttpResponse = context.HttpResponse; describeDedicatedHostsResponse.RequestId = context.StringValue("DescribeDedicatedHosts.RequestId"); describeDedicatedHostsResponse.DedicatedHostGroupId = context.StringValue("DescribeDedicatedHosts.DedicatedHostGroupId"); List <DescribeDedicatedHostsResponse.DescribeDedicatedHosts_DedicatedHostsItem> describeDedicatedHostsResponse_dedicatedHosts = new List <DescribeDedicatedHostsResponse.DescribeDedicatedHosts_DedicatedHostsItem>(); for (int i = 0; i < context.Length("DescribeDedicatedHosts.DedicatedHosts.Length"); i++) { DescribeDedicatedHostsResponse.DescribeDedicatedHosts_DedicatedHostsItem dedicatedHostsItem = new DescribeDedicatedHostsResponse.DescribeDedicatedHosts_DedicatedHostsItem(); dedicatedHostsItem.HostName = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].HostName"); dedicatedHostsItem.HostStatus = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].HostStatus"); dedicatedHostsItem.InstanceNumber = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].InstanceNumber"); dedicatedHostsItem.CPUAllocationRatio = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].CPUAllocationRatio"); dedicatedHostsItem.MemAllocationRatio = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].MemAllocationRatio"); dedicatedHostsItem.DiskAllocationRatio = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].DiskAllocationRatio"); dedicatedHostsItem.VPCId = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].VPCId"); dedicatedHostsItem.VSwitchId = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].VSwitchId"); dedicatedHostsItem.ZoneId = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].ZoneId"); dedicatedHostsItem.IPAddress = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].IPAddress"); dedicatedHostsItem.HostClass = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].HostClass"); dedicatedHostsItem.CreatedTime = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].CreatedTime"); dedicatedHostsItem.DedicatedHostId = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].DedicatedHostId"); dedicatedHostsItem.AllocationStatus = context.StringValue("DescribeDedicatedHosts.DedicatedHosts[" + i + "].AllocationStatus"); describeDedicatedHostsResponse_dedicatedHosts.Add(dedicatedHostsItem); } describeDedicatedHostsResponse.DedicatedHosts = describeDedicatedHostsResponse_dedicatedHosts; return(describeDedicatedHostsResponse); }