package org.zstack.core.keystore;

import org.zstack.header.message.APICreateMessage;
import org.zstack.header.message.APIParam;

/**
 * Created by miao on 16-8-15.
 */
public class APICreateKeystoreMsg extends APICreateMessage {
    @APIParam
    private String resourceUuid;

    @APIParam
    private String resourceType;

    @APIParam(validValues = {"Certificate", "SSH-KEY", "Password"})
    private String type;

    @APIParam
    private String content;


    @Override
    public String getResourceUuid() {
        return resourceUuid;
    }

    @Override
    public void setResourceUuid(String resourceUuid) {
        this.resourceUuid = resourceUuid;
    }

    public String getResourceType() {
        return resourceType;
    }

    public void setResourceType(String resourceType) {
        this.resourceType = resourceType;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}

@@ -79,16 +79,61 @@
 essage;%0A
+import org.zstack.header.message.APIMessage;%0A
 import o
@@ -252,22 +252,16 @@
 ends API
-Create
 Message 
@@ -496,30 +496,16 @@
 tent;%0A%0A%0A
-    @Override%0A
     publ
@@ -574,22 +574,8 @@
  %7D%0A%0A
-    @Override%0A
     

use apimessage instead of apiCreateMessage