Package com.daml.ledger.api.v2.admin
Class UserManagementServiceGrpc
java.lang.Object
com.daml.ledger.api.v2.admin.UserManagementServiceGrpc
@Generated(value="by gRPC proto compiler",
comments="Source: com/daml/ledger/api/v2/admin/user_management_service.proto")
public final class UserManagementServiceGrpc
extends Object
Service to manage users and their rights for interacting with the Ledger API served by a participant node. The authorization rules for its RPCs are specified on the ``<RpcName>Request`` messages as boolean expressions over these facts: 1. ``HasRight(r)`` denoting whether the authenticated user has right ``r`` and 2. ``IsAuthenticatedUser(uid)`` denoting whether ``uid`` is the empty string or equal to the id of the authenticated user. 3. ``IsAuthenticatedIdentityProviderAdmin(idp)`` denoting whether ``idp`` is equal to the ``identity_provider_id`` of the authenticated user and the user has an IdentityProviderAdmin right. If `user_id` is set to the empty string (the default), then the data for the authenticated user will be retrieved. If `identity_provider_id` is set to an empty string, then it's effectively set to the value of access token's 'iss' field if that is provided. If `identity_provider_id` remains an empty string, the default identity provider will be assumed. The fields of request messages (and sub-messages) are marked either as ``Optional`` or ``Required``: 1. ``Optional`` denoting the client may leave the field unset when sending a request. 2. ``Required`` denoting the client must set the field to a non-default value when sending a request. A user resource consists of: 1. a set of properties represented by the ``User`` message, 2. a set of user rights, where each right is represented by the ``Right`` message. A user resource, once it has been created, can be modified. In order to update the properties represented by the ``User`` message use the ``UpdateUser`` RPC. The only fields that can be modified are those marked as ``Modifiable``. In order to grant or revoke user rights use ``GrantRights' and ``RevokeRights`` RPCs.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Service to manage users and their rights for interacting with the Ledger API served by a participant node.static final class
A stub to allow clients to do synchronous rpc calls to service UserManagementService.static final class
A stub to allow clients to do ListenableFuture-style rpc calls to service UserManagementService.static class
Base class for the server implementation of the service UserManagementService.static final class
A stub to allow clients to do asynchronous rpc calls to service UserManagementService. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic final io.grpc.ServerServiceDefinition
static io.grpc.MethodDescriptor<UserManagementServiceOuterClass.CreateUserRequest,
UserManagementServiceOuterClass.CreateUserResponse> static io.grpc.MethodDescriptor<UserManagementServiceOuterClass.DeleteUserRequest,
UserManagementServiceOuterClass.DeleteUserResponse> static io.grpc.MethodDescriptor<UserManagementServiceOuterClass.GetUserRequest,
UserManagementServiceOuterClass.GetUserResponse> static io.grpc.MethodDescriptor<UserManagementServiceOuterClass.GrantUserRightsRequest,
UserManagementServiceOuterClass.GrantUserRightsResponse> static io.grpc.MethodDescriptor<UserManagementServiceOuterClass.ListUserRightsRequest,
UserManagementServiceOuterClass.ListUserRightsResponse> static io.grpc.MethodDescriptor<UserManagementServiceOuterClass.ListUsersRequest,
UserManagementServiceOuterClass.ListUsersResponse> static io.grpc.MethodDescriptor<UserManagementServiceOuterClass.RevokeUserRightsRequest,
UserManagementServiceOuterClass.RevokeUserRightsResponse> static io.grpc.ServiceDescriptor
static io.grpc.MethodDescriptor<UserManagementServiceOuterClass.UpdateUserIdentityProviderIdRequest,
UserManagementServiceOuterClass.UpdateUserIdentityProviderIdResponse> static io.grpc.MethodDescriptor<UserManagementServiceOuterClass.UpdateUserRequest,
UserManagementServiceOuterClass.UpdateUserResponse> newBlockingStub
(io.grpc.Channel channel) Creates a new blocking-style stub that supports unary and streaming output calls on the servicenewFutureStub
(io.grpc.Channel channel) Creates a new ListenableFuture-style stub that supports unary calls on the servicenewStub
(io.grpc.Channel channel) Creates a new async stub that supports all call types for the service
-
Field Details
-
SERVICE_NAME
- See Also:
-
-
Method Details
-
getCreateUserMethod
public static io.grpc.MethodDescriptor<UserManagementServiceOuterClass.CreateUserRequest,UserManagementServiceOuterClass.CreateUserResponse> getCreateUserMethod() -
getGetUserMethod
public static io.grpc.MethodDescriptor<UserManagementServiceOuterClass.GetUserRequest,UserManagementServiceOuterClass.GetUserResponse> getGetUserMethod() -
getUpdateUserMethod
public static io.grpc.MethodDescriptor<UserManagementServiceOuterClass.UpdateUserRequest,UserManagementServiceOuterClass.UpdateUserResponse> getUpdateUserMethod() -
getDeleteUserMethod
public static io.grpc.MethodDescriptor<UserManagementServiceOuterClass.DeleteUserRequest,UserManagementServiceOuterClass.DeleteUserResponse> getDeleteUserMethod() -
getListUsersMethod
public static io.grpc.MethodDescriptor<UserManagementServiceOuterClass.ListUsersRequest,UserManagementServiceOuterClass.ListUsersResponse> getListUsersMethod() -
getGrantUserRightsMethod
public static io.grpc.MethodDescriptor<UserManagementServiceOuterClass.GrantUserRightsRequest,UserManagementServiceOuterClass.GrantUserRightsResponse> getGrantUserRightsMethod() -
getRevokeUserRightsMethod
public static io.grpc.MethodDescriptor<UserManagementServiceOuterClass.RevokeUserRightsRequest,UserManagementServiceOuterClass.RevokeUserRightsResponse> getRevokeUserRightsMethod() -
getListUserRightsMethod
public static io.grpc.MethodDescriptor<UserManagementServiceOuterClass.ListUserRightsRequest,UserManagementServiceOuterClass.ListUserRightsResponse> getListUserRightsMethod() -
getUpdateUserIdentityProviderIdMethod
public static io.grpc.MethodDescriptor<UserManagementServiceOuterClass.UpdateUserIdentityProviderIdRequest,UserManagementServiceOuterClass.UpdateUserIdentityProviderIdResponse> getUpdateUserIdentityProviderIdMethod() -
newStub
Creates a new async stub that supports all call types for the service -
newBlockingStub
public static UserManagementServiceGrpc.UserManagementServiceBlockingStub newBlockingStub(io.grpc.Channel channel) Creates a new blocking-style stub that supports unary and streaming output calls on the service -
newFutureStub
public static UserManagementServiceGrpc.UserManagementServiceFutureStub newFutureStub(io.grpc.Channel channel) Creates a new ListenableFuture-style stub that supports unary calls on the service -
bindService
public static final io.grpc.ServerServiceDefinition bindService(UserManagementServiceGrpc.AsyncService service) -
getServiceDescriptor
public static io.grpc.ServiceDescriptor getServiceDescriptor()
-