public static DescribeCloudConnectNetworksResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeCloudConnectNetworksResponse describeCloudConnectNetworksResponse = new DescribeCloudConnectNetworksResponse();

            describeCloudConnectNetworksResponse.HttpResponse = context.HttpResponse;
            describeCloudConnectNetworksResponse.RequestId    = context.StringValue("DescribeCloudConnectNetworks.RequestId");
            describeCloudConnectNetworksResponse.TotalCount   = context.IntegerValue("DescribeCloudConnectNetworks.TotalCount");
            describeCloudConnectNetworksResponse.PageNumber   = context.IntegerValue("DescribeCloudConnectNetworks.PageNumber");
            describeCloudConnectNetworksResponse.PageSize     = context.IntegerValue("DescribeCloudConnectNetworks.PageSize");

            List <DescribeCloudConnectNetworksResponse.DescribeCloudConnectNetworks_CloudConnectNetwork> describeCloudConnectNetworksResponse_cloudConnectNetworks = new List <DescribeCloudConnectNetworksResponse.DescribeCloudConnectNetworks_CloudConnectNetwork>();

            for (int i = 0; i < context.Length("DescribeCloudConnectNetworks.CloudConnectNetworks.Length"); i++)
            {
                DescribeCloudConnectNetworksResponse.DescribeCloudConnectNetworks_CloudConnectNetwork cloudConnectNetwork = new DescribeCloudConnectNetworksResponse.DescribeCloudConnectNetworks_CloudConnectNetwork();
                cloudConnectNetwork.CcnId = context.StringValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].CcnId");
                cloudConnectNetwork.Name  = context.StringValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].Name");
                cloudConnectNetwork.AssociatedCloudBoxCount = context.StringValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].AssociatedCloudBoxCount");
                cloudConnectNetwork.AvailableCloudBoxCount  = context.StringValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].AvailableCloudBoxCount");
                cloudConnectNetwork.AssociatedCenId         = context.StringValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].AssociatedCenId");
                cloudConnectNetwork.AssociatedCenOwnerId    = context.StringValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].AssociatedCenOwnerId");
                cloudConnectNetwork.Description             = context.StringValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].Description");
                cloudConnectNetwork.CreateTime = context.LongValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].CreateTime");
                cloudConnectNetwork.IsDefault  = context.BooleanValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].IsDefault");

                describeCloudConnectNetworksResponse_cloudConnectNetworks.Add(cloudConnectNetwork);
            }
            describeCloudConnectNetworksResponse.CloudConnectNetworks = describeCloudConnectNetworksResponse_cloudConnectNetworks;

            return(describeCloudConnectNetworksResponse);
        }
예제 #2
0
        public static DescribeCloudConnectNetworksResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeCloudConnectNetworksResponse describeCloudConnectNetworksResponse = new DescribeCloudConnectNetworksResponse();

            describeCloudConnectNetworksResponse.HttpResponse = context.HttpResponse;
            describeCloudConnectNetworksResponse.RequestId    = context.StringValue("DescribeCloudConnectNetworks.RequestId");
            describeCloudConnectNetworksResponse.TotalCount   = context.IntegerValue("DescribeCloudConnectNetworks.TotalCount");
            describeCloudConnectNetworksResponse.PageNumber   = context.IntegerValue("DescribeCloudConnectNetworks.PageNumber");
            describeCloudConnectNetworksResponse.PageSize     = context.IntegerValue("DescribeCloudConnectNetworks.PageSize");

            List <DescribeCloudConnectNetworksResponse.DescribeCloudConnectNetworks_CloudConnectNetwork> describeCloudConnectNetworksResponse_cloudConnectNetworks = new List <DescribeCloudConnectNetworksResponse.DescribeCloudConnectNetworks_CloudConnectNetwork>();

            for (int i = 0; i < context.Length("DescribeCloudConnectNetworks.CloudConnectNetworks.Length"); i++)
            {
                DescribeCloudConnectNetworksResponse.DescribeCloudConnectNetworks_CloudConnectNetwork cloudConnectNetwork = new DescribeCloudConnectNetworksResponse.DescribeCloudConnectNetworks_CloudConnectNetwork();
                cloudConnectNetwork.CcnId = context.StringValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].CcnId");
                cloudConnectNetwork.Name  = context.StringValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].Name");
                cloudConnectNetwork.AssociatedCloudBoxCount = context.StringValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].AssociatedCloudBoxCount");
                cloudConnectNetwork.AvailableCloudBoxCount  = context.StringValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].AvailableCloudBoxCount");
                cloudConnectNetwork.AssociatedCenId         = context.StringValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].AssociatedCenId");
                cloudConnectNetwork.AssociatedCenOwnerId    = context.StringValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].AssociatedCenOwnerId");
                cloudConnectNetwork.Description             = context.StringValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].Description");
                cloudConnectNetwork.CreateTime         = context.LongValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].CreateTime");
                cloudConnectNetwork.IsDefault          = context.BooleanValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].IsDefault");
                cloudConnectNetwork.CidrBlock          = context.StringValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].CidrBlock");
                cloudConnectNetwork.SnatCidrBlock      = context.StringValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].SnatCidrBlock");
                cloudConnectNetwork.InterworkingStatus = context.StringValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].InterworkingStatus");

                List <DescribeCloudConnectNetworksResponse.DescribeCloudConnectNetworks_CloudConnectNetwork.DescribeCloudConnectNetworks_Tag> cloudConnectNetwork_tags = new List <DescribeCloudConnectNetworksResponse.DescribeCloudConnectNetworks_CloudConnectNetwork.DescribeCloudConnectNetworks_Tag>();
                for (int j = 0; j < context.Length("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].Tags.Length"); j++)
                {
                    DescribeCloudConnectNetworksResponse.DescribeCloudConnectNetworks_CloudConnectNetwork.DescribeCloudConnectNetworks_Tag tag = new DescribeCloudConnectNetworksResponse.DescribeCloudConnectNetworks_CloudConnectNetwork.DescribeCloudConnectNetworks_Tag();
                    tag.Key    = context.StringValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].Tags[" + j + "].Key");
                    tag._Value = context.StringValue("DescribeCloudConnectNetworks.CloudConnectNetworks[" + i + "].Tags[" + j + "].Value");

                    cloudConnectNetwork_tags.Add(tag);
                }
                cloudConnectNetwork.Tags = cloudConnectNetwork_tags;

                describeCloudConnectNetworksResponse_cloudConnectNetworks.Add(cloudConnectNetwork);
            }
            describeCloudConnectNetworksResponse.CloudConnectNetworks = describeCloudConnectNetworksResponse_cloudConnectNetworks;

            return(describeCloudConnectNetworksResponse);
        }