Package com.authzed.api.v1
Class SchemaServiceGrpc.SchemaServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<SchemaServiceGrpc.SchemaServiceFutureStub>
com.authzed.api.v1.SchemaServiceGrpc.SchemaServiceFutureStub
- Enclosing class:
- SchemaServiceGrpc
public static final class SchemaServiceGrpc.SchemaServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<SchemaServiceGrpc.SchemaServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service SchemaService.
SchemaService implements operations on a Permissions System's Schema.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<ComputablePermissionsResponse>
ComputablePermissions returns the set of permissions that compute based off a relation in the current schema.com.google.common.util.concurrent.ListenableFuture<DependentRelationsResponse>
DependentRelations returns the set of relations and permissions that used to compute a permission, recursively, in the current schema.com.google.common.util.concurrent.ListenableFuture<DiffSchemaResponse>
diffSchema
(DiffSchemaRequest request) DiffSchema returns the difference between the specified schema and the current schema stored in SpiceDB.com.google.common.util.concurrent.ListenableFuture<ReadSchemaResponse>
readSchema
(ReadSchemaRequest request) Read returns the current Object Definitions for a Permissions System.com.google.common.util.concurrent.ListenableFuture<ReflectSchemaResponse>
reflectSchema
(ReflectSchemaRequest request) ReflectSchema reflects the current schema stored in SpiceDB, returning a structural form of the schema for use by client tooling.com.google.common.util.concurrent.ListenableFuture<WriteSchemaResponse>
writeSchema
(WriteSchemaRequest request) Write overwrites the current Object Definitions for a Permissions System.Methods inherited from class io.grpc.stub.AbstractFutureStub
newStub, newStub
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected SchemaServiceGrpc.SchemaServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<SchemaServiceGrpc.SchemaServiceFutureStub>
-
readSchema
public com.google.common.util.concurrent.ListenableFuture<ReadSchemaResponse> readSchema(ReadSchemaRequest request) Read returns the current Object Definitions for a Permissions System. Errors include: - INVALID_ARGUMENT: a provided value has failed to semantically validate - NOT_FOUND: no schema has been defined
-
writeSchema
public com.google.common.util.concurrent.ListenableFuture<WriteSchemaResponse> writeSchema(WriteSchemaRequest request) Write overwrites the current Object Definitions for a Permissions System.
-
reflectSchema
public com.google.common.util.concurrent.ListenableFuture<ReflectSchemaResponse> reflectSchema(ReflectSchemaRequest request) ReflectSchema reflects the current schema stored in SpiceDB, returning a structural form of the schema for use by client tooling.
-
computablePermissions
public com.google.common.util.concurrent.ListenableFuture<ComputablePermissionsResponse> computablePermissions(ComputablePermissionsRequest request) ComputablePermissions returns the set of permissions that compute based off a relation in the current schema. For example, if the schema has a relation `viewer` and a permission `view` defined as `permission view = viewer + editor`, then the computable permissions for the relation `viewer` will include `view`.
-
dependentRelations
public com.google.common.util.concurrent.ListenableFuture<DependentRelationsResponse> dependentRelations(DependentRelationsRequest request) DependentRelations returns the set of relations and permissions that used to compute a permission, recursively, in the current schema. It is the inverse of the ComputablePermissions API.
-
diffSchema
public com.google.common.util.concurrent.ListenableFuture<DiffSchemaResponse> diffSchema(DiffSchemaRequest request) DiffSchema returns the difference between the specified schema and the current schema stored in SpiceDB.
-