@demobox ok, we are dealing with Subscription object's descendants field, if I 
request ```/groupedsubscriptions/``` I'll get: ```"descendants": [{"amount": 
"32212254720", "auto_renew": false, "descendants": [], "discount_amount": null, 
"discount_percent": null, "end_time": "2013-07-13T12:00:00+00:00", "id": 
"28552", "last_notification": "2013-07-08T18:03:24.494785+00:00", "period": "30 
days, 0:17:49.695836", "price": "5.40000000000000000000", "remaining": 
"32212254720", "resource": "dssd", "resource_uri": 
"/api/2.0/groupedsubscriptions/28552/", "start_time": 
"2013-06-13T11:42:10.304164+00:00", "status": "expired", "subscribed_object": 
null, "uuid": "0feccfea-5c0b-497e-aa38-90e78d9f8da4"}, {"amount": 
"32212254720", "auto_renew": false, "descendants": [], "discount_amount": null, 
"discount_percent": null, "end_time": "2013-08-19T12:00:00+00:00", "id": 
"53000", "last_notification": "2013-07-08T18:03:24.494785+00:00", "period": "31 
days, 23:57:33.464314", "price": "5.580000000000
 00000000", "remaining": "32212254720", "resource": "dssd", "resource_uri": 
"/api/2.0/groupedsubscriptions/53000/", "start_time": 
"2013-07-18T12:02:26.535686+00:00", "status": "active", "subscribed_object": 
null, "uuid": "8e9862bb-94e6-4e5e-9ea8-58880acab42a"}]```
Here are another Subscriptions objects. But if I call ```/subscriptions/``` 
I'll get:
```"descendants": ["/api/2.0/subscriptions/28552/", 
"/api/2.0/subscriptions/53000/"]```
This can happen with another objects in the future, so I don't want to 
duplicate Subscription.class with List<URI> in one & List<Subscription> in 
another.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/12#issuecomment-22414346

Reply via email to