Package org.yamcs.http.api
Class IamApi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createGroup
(Context ctx, CreateGroupRequest request, Observer<GroupInfo> observer) Create a groupvoid
createServiceAccount
(Context ctx, CreateServiceAccountRequest request, Observer<CreateServiceAccountResponse> observer) Create a service accountvoid
createUser
(Context ctx, CreateUserRequest request, Observer<UserInfo> observer) Create a uservoid
deleteGroup
(Context ctx, DeleteGroupRequest request, Observer<GroupInfo> observer) Delete a groupvoid
deleteIdentity
(Context ctx, DeleteIdentityRequest request, Observer<com.google.protobuf.Empty> observer) Delete an external identityvoid
deleteRoleAssignment
(Context ctx, DeleteRoleAssignmentRequest request, Observer<com.google.protobuf.Empty> observer) Delete a role assignmentvoid
deleteServiceAccount
(Context ctx, DeleteServiceAccountRequest request, Observer<com.google.protobuf.Empty> observer) Delete a service accountvoid
deleteUser
(Context ctx, DeleteUserRequest request, Observer<com.google.protobuf.Empty> observer) Delete a uservoid
getGroup
(Context ctx, GetGroupRequest request, Observer<GroupInfo> observer) Get a groupvoid
getOwnUser
(Context ctx, com.google.protobuf.Empty request, Observer<UserInfo> observer) Get own uservoid
getRole
(Context ctx, GetRoleRequest request, Observer<RoleInfo> observer) Get a rolevoid
getServiceAccount
(Context ctx, GetServiceAccountRequest request, Observer<ServiceAccountInfo> observer) Get a service accountvoid
getUser
(Context ctx, GetUserRequest request, Observer<UserInfo> observer) Get a uservoid
listGroups
(Context ctx, com.google.protobuf.Empty request, Observer<ListGroupsResponse> observer) List groupsvoid
listPrivileges
(Context ctx, com.google.protobuf.Empty request, Observer<ListPrivilegesResponse> observer) List privilegesvoid
listRoles
(Context ctx, com.google.protobuf.Empty request, Observer<ListRolesResponse> observer) List rolesvoid
listServiceAccounts
(Context ctx, com.google.protobuf.Empty request, Observer<ListServiceAccountsResponse> observer) List service accountsvoid
listUsers
(Context ctx, com.google.protobuf.Empty request, Observer<ListUsersResponse> observer) List usersstatic UserInfo
toUserInfo
(User user, boolean sensitiveDetails, Directory directory) void
updateGroup
(Context ctx, UpdateGroupRequest request, Observer<GroupInfo> observer) Update a groupvoid
updateUser
(Context ctx, UpdateUserRequest request, Observer<UserInfo> observer) Update a userMethods inherited from class org.yamcs.protobuf.AbstractIamApi
callMethod, callMethod, getDescriptorForType, getRequestPrototype, getResponsePrototype
-
Constructor Details
-
IamApi
-
-
Method Details
-
listRoles
public void listRoles(Context ctx, com.google.protobuf.Empty request, Observer<ListRolesResponse> observer) Description copied from class:AbstractIamApi
List roles
- Specified by:
listRoles
in classAbstractIamApi<Context>
-
getRole
Description copied from class:AbstractIamApi
Get a role
- Specified by:
getRole
in classAbstractIamApi<Context>
-
deleteRoleAssignment
public void deleteRoleAssignment(Context ctx, DeleteRoleAssignmentRequest request, Observer<com.google.protobuf.Empty> observer) Description copied from class:AbstractIamApi
Delete a role assignment
- Specified by:
deleteRoleAssignment
in classAbstractIamApi<Context>
-
listPrivileges
public void listPrivileges(Context ctx, com.google.protobuf.Empty request, Observer<ListPrivilegesResponse> observer) Description copied from class:AbstractIamApi
List privileges
- Specified by:
listPrivileges
in classAbstractIamApi<Context>
-
listUsers
public void listUsers(Context ctx, com.google.protobuf.Empty request, Observer<ListUsersResponse> observer) Description copied from class:AbstractIamApi
List users
- Specified by:
listUsers
in classAbstractIamApi<Context>
-
createUser
Description copied from class:AbstractIamApi
Create a user
- Specified by:
createUser
in classAbstractIamApi<Context>
-
getUser
Description copied from class:AbstractIamApi
Get a user
- Specified by:
getUser
in classAbstractIamApi<Context>
-
updateUser
Description copied from class:AbstractIamApi
Update a user
- Specified by:
updateUser
in classAbstractIamApi<Context>
-
deleteIdentity
public void deleteIdentity(Context ctx, DeleteIdentityRequest request, Observer<com.google.protobuf.Empty> observer) Description copied from class:AbstractIamApi
Delete an external identity
- Specified by:
deleteIdentity
in classAbstractIamApi<Context>
-
getOwnUser
Description copied from class:AbstractIamApi
Get own user
- Specified by:
getOwnUser
in classAbstractIamApi<Context>
-
listServiceAccounts
public void listServiceAccounts(Context ctx, com.google.protobuf.Empty request, Observer<ListServiceAccountsResponse> observer) Description copied from class:AbstractIamApi
List service accounts
- Specified by:
listServiceAccounts
in classAbstractIamApi<Context>
-
getServiceAccount
public void getServiceAccount(Context ctx, GetServiceAccountRequest request, Observer<ServiceAccountInfo> observer) Description copied from class:AbstractIamApi
Get a service account
- Specified by:
getServiceAccount
in classAbstractIamApi<Context>
-
deleteServiceAccount
public void deleteServiceAccount(Context ctx, DeleteServiceAccountRequest request, Observer<com.google.protobuf.Empty> observer) Description copied from class:AbstractIamApi
Delete a service account
- Specified by:
deleteServiceAccount
in classAbstractIamApi<Context>
-
deleteUser
public void deleteUser(Context ctx, DeleteUserRequest request, Observer<com.google.protobuf.Empty> observer) Description copied from class:AbstractIamApi
Delete a user
- Specified by:
deleteUser
in classAbstractIamApi<Context>
-
createServiceAccount
public void createServiceAccount(Context ctx, CreateServiceAccountRequest request, Observer<CreateServiceAccountResponse> observer) Description copied from class:AbstractIamApi
Create a service account
- Specified by:
createServiceAccount
in classAbstractIamApi<Context>
-
listGroups
public void listGroups(Context ctx, com.google.protobuf.Empty request, Observer<ListGroupsResponse> observer) Description copied from class:AbstractIamApi
List groups
- Specified by:
listGroups
in classAbstractIamApi<Context>
-
getGroup
Description copied from class:AbstractIamApi
Get a group
- Specified by:
getGroup
in classAbstractIamApi<Context>
-
createGroup
Description copied from class:AbstractIamApi
Create a group
- Specified by:
createGroup
in classAbstractIamApi<Context>
-
updateGroup
Description copied from class:AbstractIamApi
Update a group
- Specified by:
updateGroup
in classAbstractIamApi<Context>
-
deleteGroup
Description copied from class:AbstractIamApi
Delete a group
- Specified by:
deleteGroup
in classAbstractIamApi<Context>
-
toUserInfo
-