package org.zstack.header.vm;

import org.zstack.header.configuration.InstanceOfferingVO;
import org.zstack.header.message.APIMessage;
import org.zstack.header.message.APIParam;

/**
 * Created by frank on 7/16/2015.
 */
public class APIChangeInstanceOfferingMsg extends APIMessage implements VmInstanceMessage {
    @APIParam(resourceType = VmInstanceVO.class, checkAccount = true, operationTarget = true)
    private String vmInstanceUuid;
    @APIParam(resourceType = InstanceOfferingVO.class, checkAccount = true, operationTarget = true)
    private String instanceOfferingUuid;

    @Override
    public String getVmInstanceUuid() {
        return vmInstanceUuid;
    }

    public void setVmInstanceUuid(String vmInstanceUuid) {
        this.vmInstanceUuid = vmInstanceUuid;
    }

    public String getInstanceOfferingUuid() {
        return instanceOfferingUuid;
    }

    public void setInstanceOfferingUuid(String instanceOfferingUuid) {
        this.instanceOfferingUuid = instanceOfferingUuid;
    }
}

@@ -86,16 +86,59 @@
 ingVO;%0D%0A
+import org.zstack.header.identity.Action;%0D%0A
 import o
@@ -266,16 +266,72 @@
 .%0D%0A */%0D%0A
+@Action(category = VmInstanceConstant.ACTION_CATEGORY)%0D%0A
 public c
@@ -619,32 +619,8 @@
 nt =
- true, operationTarget =
  tru

fix https://github.com/zstackorg/zstack/issues/237