package org.zstack.header.vm;
import org.springframework.http.HttpMethod;
import org.zstack.header.identity.Action;
import org.zstack.header.message.APIParam;
import org.zstack.header.message.APISyncCallMessage;
import org.zstack.header.rest.RestRequest;
/**
* Created by frank on 11/22/2015.
*/
@Action(category = VmInstanceConstant.ACTION_CATEGORY, names = {"read"})
@RestRequest(
path = "/vm-instances/{uuid}/boot-orders",
method = HttpMethod.GET,
responseClass = APIGetVmBootOrderReply.class,
parameterName = "null"
)
public class APIGetVmBootOrderMsg extends APISyncCallMessage implements VmInstanceMessage {
@APIParam(resourceType = VmInstanceVO.class)
private String uuid;
public String getUuid() {
return uuid;
}
public void setUuid(String uuid) {
this.uuid = uuid;
}
@Override
public String getVmInstanceUuid() {
return getUuid();
}
public static APIGetVmBootOrderMsg __example__() {
APIGetVmBootOrderMsg msg = new APIGetVmBootOrderMsg();
msg.uuid = uuid();
return msg;
}
}