Class API
java.lang.Object
io.quarkiverse.openfga.client.api.API
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionAPI(OpenFGAConfig config, boolean globalTrustAll, 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
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<CheckResponse>voidclose()static com.fasterxml.jackson.databind.ObjectMapperio.smallrye.mutiny.Uni<CreateStoreResponse>io.smallrye.mutiny.Uni<Void>deleteStore(String storeId) io.smallrye.mutiny.Uni<ExpandResponse>expand(String storeId, ExpandBody body) io.smallrye.mutiny.Uni<GetStoreResponse>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) parseModel(String modelJSON) parseTuples(String modelJSON) io.smallrye.mutiny.Uni<ReadResponse>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>io.smallrye.mutiny.Uni<Void>writeAssertions(String storeId, String authorizationModelId, WriteAssertionsRequest body) io.smallrye.mutiny.Uni<WriteAuthorizationModelResponse>writeAuthorizationModel(String storeId, TypeDefinitions typeDefinitions)
-
Constructor Details
-
API
public API(OpenFGAConfig config, boolean globalTrustAll, 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 Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
parseModel
- Throws:
IOException
-
parseTuples
- Throws:
IOException
-
listStores
public io.smallrye.mutiny.Uni<ListStoresResponse> listStores(@Nullable Integer pageSize, @Nullable String continuationToken) -
createStore
-
getStore
-
deleteStore
-
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
-
expand
-
listObjects
public io.smallrye.mutiny.Uni<ListObjectsResponse> listObjects(String storeId, ListObjectsBody body) -
read
-
write
-
health
-
createObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper()
-