package org.zstack.header.identity;
import org.zstack.header.query.APIQueryReply;
import org.zstack.header.rest.RestResponse;
import java.util.List;
import static org.zstack.utils.CollectionDSL.list;
/**
* Created by frank on 7/14/2015.
*/
@RestResponse(allTo = "inventories")
public class APIQueryQuotaReply extends APIQueryReply {
private List<QuotaInventory> inventories;
public List<QuotaInventory> getInventories() {
return inventories;
}
public void setInventories(List<QuotaInventory> inventories) {
this.inventories = inventories;
}
public static APIQueryQuotaReply __example__() {
APIQueryQuotaReply reply = new APIQueryQuotaReply();
QuotaInventory inventory = new QuotaInventory();
inventory.setName("quota");
inventory.setValue(20);
inventory.setIdentityUuid(uuid());
reply.setInventories(list(inventory));
return reply;
}
}