Class API
- java.lang.Object
-
- io.quarkiverse.openfga.client.api.API
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class API extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description API(OpenFGAConfig config, io.quarkus.runtime.TlsConfig tlsConfig, boolean tracingEnabled, io.vertx.mutiny.core.Vertx vertx)API(io.vertx.mutiny.ext.web.client.WebClient webClient, Optional<io.vertx.ext.auth.authentication.Credentials> credentials)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.smallrye.mutiny.Uni<CheckResponse>check(String storeId, CheckBody body)voidclose()static com.fasterxml.jackson.databind.ObjectMappercreateObjectMapper()io.smallrye.mutiny.Uni<CreateStoreResponse>createStore(CreateStoreRequest body)io.smallrye.mutiny.Uni<Void>deleteStore(String storeId)io.smallrye.mutiny.Uni<ExpandResponse>expand(String storeId, ExpandBody body)io.smallrye.mutiny.Uni<GetStoreResponse>getStore(String storeId)io.smallrye.mutiny.Uni<HealthzResponse>health()io.smallrye.mutiny.Uni<ListObjectsResponse>listObjects(String storeId, ListObjectsBody body)io.smallrye.mutiny.Uni<ListStoresResponse>listStores(Integer pageSize, String continuationToken)TypeDefinitionsparseModel(String modelJSON)List<TupleKey>parseTuples(String modelJSON)io.smallrye.mutiny.Uni<ReadResponse>read(String storeId, ReadBody body)io.smallrye.mutiny.Uni<ReadAssertionsResponse>readAssertions(String storeId, String authorizationModelId)io.smallrye.mutiny.Uni<ReadAuthorizationModelResponse>readAuthorizationModel(String storeId, String id)io.smallrye.mutiny.Uni<ReadAuthorizationModelsResponse>readAuthorizationModels(String storeId, Integer pageSize, String continuationToken)io.smallrye.mutiny.Uni<ReadChangesResponse>readChanges(String storeId, String type, Integer pageSize, String continuationToken)io.smallrye.mutiny.Uni<WriteResponse>write(String storeId, WriteBody body)io.smallrye.mutiny.Uni<Void>writeAssertions(String storeId, String authorizationModelId, WriteAssertionsRequest body)io.smallrye.mutiny.Uni<WriteAuthorizationModelResponse>writeAuthorizationModel(String storeId, TypeDefinitions typeDefinitions)
-
-
-
Constructor Detail
-
API
public API(OpenFGAConfig config, io.quarkus.runtime.TlsConfig tlsConfig, boolean tracingEnabled, io.vertx.mutiny.core.Vertx vertx)
-
API
public API(io.vertx.mutiny.ext.web.client.WebClient webClient, Optional<io.vertx.ext.auth.authentication.Credentials> credentials)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
parseModel
public TypeDefinitions parseModel(String modelJSON) throws IOException
- Throws:
IOException
-
parseTuples
public List<TupleKey> parseTuples(String modelJSON) throws IOException
- Throws:
IOException
-
listStores
public io.smallrye.mutiny.Uni<ListStoresResponse> listStores(@Nullable Integer pageSize, @Nullable String continuationToken)
-
createStore
public io.smallrye.mutiny.Uni<CreateStoreResponse> createStore(CreateStoreRequest body)
-
getStore
public io.smallrye.mutiny.Uni<GetStoreResponse> getStore(String storeId)
-
readAssertions
public io.smallrye.mutiny.Uni<ReadAssertionsResponse> readAssertions(String storeId, @Nullable String authorizationModelId)
-
writeAssertions
public io.smallrye.mutiny.Uni<Void> writeAssertions(String storeId, String authorizationModelId, WriteAssertionsRequest body)
-
readAuthorizationModels
public io.smallrye.mutiny.Uni<ReadAuthorizationModelsResponse> readAuthorizationModels(String storeId, @Nullable Integer pageSize, @Nullable String continuationToken)
-
writeAuthorizationModel
public io.smallrye.mutiny.Uni<WriteAuthorizationModelResponse> writeAuthorizationModel(String storeId, TypeDefinitions typeDefinitions)
-
readAuthorizationModel
public io.smallrye.mutiny.Uni<ReadAuthorizationModelResponse> readAuthorizationModel(String storeId, @Nullable String id)
-
readChanges
public io.smallrye.mutiny.Uni<ReadChangesResponse> readChanges(String storeId, @Nullable String type, @Nullable Integer pageSize, @Nullable String continuationToken)
-
check
public io.smallrye.mutiny.Uni<CheckResponse> check(String storeId, CheckBody body)
-
expand
public io.smallrye.mutiny.Uni<ExpandResponse> expand(String storeId, ExpandBody body)
-
listObjects
public io.smallrye.mutiny.Uni<ListObjectsResponse> listObjects(String storeId, ListObjectsBody body)
-
read
public io.smallrye.mutiny.Uni<ReadResponse> read(String storeId, ReadBody body)
-
write
public io.smallrye.mutiny.Uni<WriteResponse> write(String storeId, WriteBody body)
-
health
public io.smallrye.mutiny.Uni<HealthzResponse> health()
-
createObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper()
-
-