package org.zstack.storage.primary.local;

import org.zstack.header.message.APIParam;
import org.zstack.header.message.APISyncCallMessage;
import org.zstack.header.rest.APINoSee;
import org.zstack.header.storage.primary.PrimaryStorageMessage;
import org.zstack.header.volume.VolumeVO;

/**
 * Created by frank on 11/18/2015.
 */
public class APILocalStorageGetVolumeMigratableHostsMsg extends APISyncCallMessage implements PrimaryStorageMessage {
    @APIParam(resourceType = VolumeVO.class, checkAccount = true, operationTarget = true)
    private String volumeUuid;
    @APINoSee
    private String primaryStorageUuid;

    public String getVolumeUuid() {
        return volumeUuid;
    }

    public void setVolumeUuid(String volumeUuid) {
        this.volumeUuid = volumeUuid;
    }

    @Override
    public String getPrimaryStorageUuid() {
        return primaryStorageUuid;
    }

    public void setPrimaryStorageUuid(String primaryStorageUuid) {
        this.primaryStorageUuid = primaryStorageUuid;
    }
}

@@ -38,16 +38,59 @@
 cal;%0D%0A%0D%0A
+import org.zstack.header.identity.Action;%0D%0A
 import o
@@ -277,32 +277,81 @@
 torageMessage;%0D%0A
+import org.zstack.header.volume.VolumeConstant;%0D%0A
 import org.zstac
@@ -425,16 +425,86 @@
 .%0D%0A */%0D%0A
+@Action(category = VolumeConstant.ACTION_CATEGORY, names = %7B%22read%22%7D)%0D%0A
 public c

fix https://github.com/zxwing/premium/issues/59