Package com.contentgrid.opa.client
Class OpaClient
java.lang.Object
com.contentgrid.opa.client.OpaClient
- All Implemented Interfaces:
CompileApi,DataApi,PolicyApi,QueryApi
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.contentgrid.opa.client.api.CompileApi
CompileApi.PartialEvalResponse, CompileApi.PartialEvalResult, CompileApi.PartialEvaluationRequestNested classes/interfaces inherited from interface com.contentgrid.opa.client.api.DataApi
DataApi.GetDataResponse<TData>, DataApi.UpsertDataResultNested classes/interfaces inherited from interface com.contentgrid.opa.client.api.PolicyApi
PolicyApi.DeletePolicyResponse, PolicyApi.GetPolicyResponse, PolicyApi.ListPoliciesResponse, PolicyApi.OpaPolicy, PolicyApi.UpsertPolicyResponseNested classes/interfaces inherited from interface com.contentgrid.opa.client.api.QueryApi
QueryApi.QueryResponse, QueryApi.QueryResultEntry -
Method Summary
Modifier and TypeMethodDescriptionstatic OpaClient.Builderbuilder()deletePolicy(String id) <TData> CompletableFuture<TData>upsertData(String path, TData data) upsertPolicy(String id, String policy) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.contentgrid.opa.client.api.CompileApi
compile, compile
-
Method Details
-
builder
- Returns:
- builder for
OpaClient
-
compile
public CompletableFuture<CompileApi.PartialEvalResponse> compile(CompileApi.PartialEvaluationRequest request) - Specified by:
compilein interfaceCompileApi
-
listPolicies
- Specified by:
listPoliciesin interfacePolicyApi
-
upsertPolicy
- Specified by:
upsertPolicyin interfacePolicyApi
-
getPolicy
-
deletePolicy
- Specified by:
deletePolicyin interfacePolicyApi
-
upsertData
- Specified by:
upsertDatain interfaceDataApi
-
getData
-
query
-