package org.zstack.header.host;

import org.zstack.header.query.APIQueryReply;
import org.zstack.header.rest.RestResponse;

import java.util.List;

@RestResponse(allTo = "inventories")
public class APIQueryHostReply extends APIQueryReply {
    private List<HostInventory> inventories;

    public List<HostInventory> getInventories() {
        return inventories;
    }

    public void setInventories(List<HostInventory> inventories) {
        this.inventories = inventories;
    }
 
    public static APIQueryHostReply __example__() {
        APIQueryHostReply reply = new APIQueryHostReply();


        return reply;
    }

}

@@ -117,16 +117,69 @@
 ponse;%0A%0A
+import java.util.ArrayList;%0Aimport java.util.Arrays;%0A
 import j
@@ -643,16 +643,657 @@
 ply();%0A%0A
+        HostInventory hi = new HostInventory ();%0A        hi.setAvailableCpuCapacity(2L);%0A        hi.setAvailableMemoryCapacity(4L);%0A        hi.setClusterUuid(uuid());%0A        hi.setManagementIp(%22192.168.0.1%22);%0A        hi.setName(%22example%22);%0A        hi.setState(HostState.Enabled.toString());%0A        hi.setStatus(HostStatus.Connected.toString());%0A        hi.setClusterUuid(uuid());%0A        hi.setZoneUuid(uuid());%0A        hi.setUuid(uuid());%0A        hi.setTotalCpuCapacity(4L);%0A        hi.setTotalMemoryCapacity(4L);%0A        hi.setHypervisorType(%22KVM%22);%0A        hi.setDescription(%22example%22);%0A%0A        reply.setInventories(Arrays.asList(hi));
 %0A       

Fix APIQueryHostReply example