public static ListInstanceIndicesResponse Unmarshall(UnmarshallerContext _ctx)
        {
            ListInstanceIndicesResponse listInstanceIndicesResponse = new ListInstanceIndicesResponse();

            listInstanceIndicesResponse.HttpResponse = _ctx.HttpResponse;
            listInstanceIndicesResponse.RequestId    = _ctx.StringValue("ListInstanceIndices.RequestId");

            ListInstanceIndicesResponse.ListInstanceIndices_Headers headers = new ListInstanceIndicesResponse.ListInstanceIndices_Headers();
            headers.XManagedCount               = _ctx.IntegerValue("ListInstanceIndices.Headers.X-Managed-Count");
            headers.XManagedStorageSize         = _ctx.LongValue("ListInstanceIndices.Headers.X-Managed-StorageSize");
            listInstanceIndicesResponse.Headers = headers;

            List <ListInstanceIndicesResponse.ListInstanceIndices_ResultItem> listInstanceIndicesResponse_result = new List <ListInstanceIndicesResponse.ListInstanceIndices_ResultItem>();

            for (int i = 0; i < _ctx.Length("ListInstanceIndices.Result.Length"); i++)
            {
                ListInstanceIndicesResponse.ListInstanceIndices_ResultItem resultItem = new ListInstanceIndicesResponse.ListInstanceIndices_ResultItem();
                resultItem.Name          = _ctx.StringValue("ListInstanceIndices.Result[" + i + "].name");
                resultItem.Health        = _ctx.StringValue("ListInstanceIndices.Result[" + i + "].health");
                resultItem.Size          = _ctx.LongValue("ListInstanceIndices.Result[" + i + "].size");
                resultItem.CreateTime    = _ctx.StringValue("ListInstanceIndices.Result[" + i + "].createTime");
                resultItem.IsManaged     = _ctx.StringValue("ListInstanceIndices.Result[" + i + "].isManaged");
                resultItem.ManagedStatus = _ctx.StringValue("ListInstanceIndices.Result[" + i + "].managedStatus");

                listInstanceIndicesResponse_result.Add(resultItem);
            }
            listInstanceIndicesResponse.Result = listInstanceIndicesResponse_result;

            return(listInstanceIndicesResponse);
        }
Ejemplo n.º 2
0
        public static ListInstanceIndicesResponse Unmarshall(UnmarshallerContext context)
        {
            ListInstanceIndicesResponse listInstanceIndicesResponse = new ListInstanceIndicesResponse();

            listInstanceIndicesResponse.HttpResponse = context.HttpResponse;
            listInstanceIndicesResponse.RequestId    = context.StringValue("ListInstanceIndices.RequestId");

            List <string> listInstanceIndicesResponse_result = new List <string>();

            for (int i = 0; i < context.Length("ListInstanceIndices.Result.Length"); i++)
            {
                listInstanceIndicesResponse_result.Add(context.StringValue("ListInstanceIndices.Result[" + i + "]"));
            }
            listInstanceIndicesResponse.Result = listInstanceIndicesResponse_result;

            return(listInstanceIndicesResponse);
        }