package org.zstack.header.identity;
import org.springframework.http.HttpMethod;
import org.zstack.header.query.APIQueryMessage;
import org.zstack.header.query.AutoQuery;
import org.zstack.header.rest.RestRequest;
import java.util.List;
import static java.util.Arrays.asList;
/**
* Created by frank on 7/14/2015.
*/
@AutoQuery(replyClass = APIQueryPolicyReply.class, inventoryClass = PolicyInventory.class)
@Action(category = AccountConstant.ACTION_CATEGORY, names = {"read"})
@RestRequest(
path = "/accounts/policies",
optionalPaths = {"/accounts/policies/{uuid}"},
method = HttpMethod.GET,
responseClass = APIQueryPolicyReply.class
)
public class APIQueryPolicyMsg extends APIQueryMessage {
public static List<String> __example__() {
return asList("name=test");
}
}