package org.zstack.header.storage.primary;

import org.zstack.header.message.NeedReplyMessage;
import org.zstack.header.storage.snapshot.VolumeSnapshotStruct;

/**
 */
public class TakeSnapshotMsg extends NeedReplyMessage implements PrimaryStorageMessage {
    private String primaryStorageUuid;
    private VolumeSnapshotStruct struct;

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

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

    public VolumeSnapshotStruct getStruct() {
        return struct;
    }

    public void setStruct(VolumeSnapshotStruct struct) {
        this.struct = struct;
    }
}

@@ -39,16 +39,59 @@
 ary;%0D%0A%0D%0A
+import org.zstack.header.core.ApiTimeout;%0D%0A
 import o
@@ -203,18 +203,141 @@
 t;%0D%0A
-%0D%0A/**%0D%0A */
+import org.zstack.header.volume.APICreateVolumeSnapshotMsg;%0D%0A%0D%0A/**%0D%0A */%0D%0A@ApiTimeout(apiClasses = %7BAPICreateVolumeSnapshotMsg.class%7D)
 %0D%0Apu

Add a missing timeout decoration