io.polyglotted.elastic.client.XPackApi Maven / Gradle / Ivy
package io.polyglotted.elastic.client;
import io.polyglotted.common.util.HttpRequestBuilder.HttpReqType;
import lombok.RequiredArgsConstructor;
import static io.polyglotted.common.util.HttpRequestBuilder.HttpReqType.POST;
import static io.polyglotted.common.util.HttpRequestBuilder.HttpReqType.PUT;
import static lombok.AccessLevel.PRIVATE;
@RequiredArgsConstructor(access = PRIVATE)
public enum XPackApi {
TOKEN(POST, "/_xpack/security/oauth2/token"),
ROLE(PUT, "/_xpack/security/role/"),
USER(PUT, "/_xpack/security/user/");
final HttpReqType type;
final String endpoint;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy