package org.zstack.header.tag;
import org.springframework.http.HttpMethod;
import org.zstack.header.identity.Action;
import org.zstack.header.message.APIMessage;
import org.zstack.header.message.APIParam;
import org.zstack.header.rest.RestRequest;
/**
* Created by frank on 8/17/2015.
*/
@Action(category = TagConstant.ACTION_CATEGORY)
@RestRequest(
path = "/system-tags/{uuid}/actions",
responseClass = APIUpdateSystemTagEvent.class,
isAction = true,
method = HttpMethod.PUT
)
public class APIUpdateSystemTagMsg extends APIMessage {
@APIParam(resourceType = SystemTagVO.class, checkAccount = true, operationTarget = true)
private String uuid;
@APIParam
private String tag;
public String getUuid() {
return uuid;
}
public void setUuid(String uuid) {
this.uuid = uuid;
}
public String getTag() {
return tag;
}
public void setTag(String tag) {
this.tag = tag;
}
public static APIUpdateSystemTagMsg __example__() {
APIUpdateSystemTagMsg msg = new APIUpdateSystemTagMsg();
msg.setUuid(uuid());
msg.setTag("for-large-DB");
return msg;
}
}