Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-proto
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-proto
Commits
5ed9e98d
Verified
Commit
5ed9e98d
authored
3 years ago
by
Daniel Hornung
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Small documentation changes and reorderd messages.
parent
6859eb7b
No related branches found
No related tags found
3 merge requests
!8
Release 0.2
,
!7
F acm
,
!6
F acm docchanges
Pipeline
#17049
passed with warnings
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
proto/caosdb/acm/v1alpha1/main.proto
+68
-66
68 additions, 66 deletions
proto/caosdb/acm/v1alpha1/main.proto
with
68 additions
and
66 deletions
proto/caosdb/acm/v1alpha1/main.proto
+
68
−
66
View file @
5ed9e98d
...
...
@@ -26,7 +26,7 @@ option java_package = "org.caosdb.api.acm.v1alpha1";
package
caosdb
.
acm.v1alpha1
;
///////////////////////////////////////////
// COMMON
STUFF
// COMMON
MESSAGES
///////////////////////////////////////////
// Client preferences for the paging. The server MUST respect the index
...
...
@@ -49,7 +49,7 @@ message PagingResponse {
}
///////////////////////////////////////////
// PERMISSSION
STUFF
// PERMISSSION
S
///////////////////////////////////////////
// TODO
...
...
@@ -74,7 +74,7 @@ message PermissionDescription {
message
PermissionRule
{
// The permission which is being granted oder denied.
string
permission
=
1
;
// Priority permission rules overrule non-priority permission rules.
// Priority permission rules
(TRUE)
overrule non-priority
(FALSE)
permission rules.
bool
priority
=
2
;
// True means that the permission is being granted by this rule, false means the
// permission is being DENIED!
...
...
@@ -82,7 +82,7 @@ message PermissionRule {
}
///////////////////////////////////////////
// ROLE
STUFF
// ROLE
S
///////////////////////////////////////////
// Role
...
...
@@ -114,9 +114,9 @@ message ListRolesResponse {
message
ListRoleItem
{
// Role
Role
role
=
1
;
// The permissions of the user of the current session
// The permissions of the user of the current session
w.r.t. this role.
repeated
RolePermissions
permissions
=
2
;
// What
we
can
do
with this role
// What can
be done
with this role
.
repeated
RoleCapabilities
capabilities
=
3
;
}
...
...
@@ -135,41 +135,15 @@ message RetrieveSingleRoleRequest {
string
name
=
1
;
}
// Role Permissions
enum
RolePermissions
{
// Unspecified permission
ROLE_PERMISSIONS_UNSPECIFIED
=
0
;
// Role can be deleted
ROLE_PERMISSIONS_DELETE
=
1
;
// Description can be updated
ROLE_PERMISSIONS_UPDATE_DESCRIPTION
=
2
;
// Permission rules of this role can be updated
ROLE_PERMISSIONS_UPDATE_PERMISSION_RULES
=
3
;
// This role can be assigned
ROLE_PERMISSIONS_ASSIGN
=
4
;
}
// Role Capabilities
enum
RoleCapabilities
{
// Unspecified capability
ROLE_CAPABILITIES_UNSPECIFIED
=
0
;
// This role is deletable
ROLE_CAPABILITIES_DELETE
=
1
;
// This role's permissions can be changed
ROLE_CAPABILITIES_UPDATE_PERMISSION_RULES
=
2
;
// This role can be assigned to a user
ROLE_CAPABILITIES_ASSIGN
=
3
;
}
// Response message for the RetrieveSingleRole RPC
message
RetrieveSingleRoleResponse
{
// The role.
Role
role
=
1
;
// Known users with this role
repeated
User
users
=
2
;
// The permissions of the user of the current session
// The permissions of the user of the current session
w.r.t. this role.
repeated
RolePermissions
permissions
=
3
;
// What
we
can do with this role
// What can
be
do with this role
.
repeated
RoleCapabilities
capabilities
=
4
;
}
...
...
@@ -190,8 +164,35 @@ message DeleteSingleRoleRequest {
// Response message for the DeleteSingleRole RPC
message
DeleteSingleRoleResponse
{}
// Role Permissions
enum
RolePermissions
{
// Unspecified permission
ROLE_PERMISSIONS_UNSPECIFIED
=
0
;
// Role can be deleted
ROLE_PERMISSIONS_DELETE
=
1
;
// Description can be updated
ROLE_PERMISSIONS_UPDATE_DESCRIPTION
=
2
;
// Permission rules of this role can be updated
ROLE_PERMISSIONS_UPDATE_PERMISSION_RULES
=
3
;
// This role can be assigned
ROLE_PERMISSIONS_ASSIGN
=
4
;
}
// Role Capabilities
enum
RoleCapabilities
{
// Unspecified capability
ROLE_CAPABILITIES_UNSPECIFIED
=
0
;
// This role is deletable
ROLE_CAPABILITIES_DELETE
=
1
;
// This role's permissions can be changed
ROLE_CAPABILITIES_UPDATE_PERMISSION_RULES
=
2
;
// This role can be assigned to a user
ROLE_CAPABILITIES_ASSIGN
=
3
;
}
///////////////////////////////////////////
// USER
STUFF
// USER
S
///////////////////////////////////////////
// UserStatus
...
...
@@ -229,7 +230,7 @@ message User {
UserStatus
status
=
1
;
// Realm of this user. The realm is the authority which can authenticate this
// user, e.g. 'PAM' when the user is a (POSIX) user from the server's host, or
// 'CaosDB' when CaosDB
S
erver itself can authenticate the user.
// 'CaosDB' when CaosDB
s
erver itself can authenticate the user.
string
realm
=
2
;
// Name of this user.
string
name
=
3
;
...
...
@@ -264,7 +265,7 @@ message CreateSingleUserRequest {
PasswordSetting
password_setting
=
2
;
}
// Response message for the CreateSingeUser RPC
// Response message for the CreateSing
l
eUser RPC
message
CreateSingleUserResponse
{}
// Request message for the RetrieveSingleUser RPC
...
...
@@ -275,41 +276,13 @@ message RetrieveSingleUserRequest {
string
name
=
2
;
}
// Permissions for updating and deleting a user.
enum
UserPermissions
{
// Unspecified permission
USER_PERMISSIONS_UNSPECIFIED
=
0
;
// The user can be deleted.
USER_PERMISSIONS_DELETE
=
1
;
// The password of the user can be updated.
USER_PERMISSIONS_UPDATE_PASSWORD
=
2
;
// The email of the user can be updated.
USER_PERMISSIONS_UPDATE_EMAIL
=
3
;
// The status (active/inactive) of the user can be changed.
USER_PERMISSIONS_UPDATE_STATUS
=
4
;
// The roles of the user can be altered.
USER_PERMISSIONS_UPDATE_ROLES
=
5
;
// Ths entity of the user can be set.
USER_PERMISSIONS_UPDATE_ENTITY
=
6
;
}
// What we can do with a user (generally speaking, if permissions suffice).
enum
UserCapabilities
{
// Unspecified capability
USER_CAPABILITIES_UNSPECIFIED
=
0
;
// User can be deleted.
USER_CAPABILITIES_DELETE
=
1
;
// The user's password can be updated.
USER_CAPABILITIES_UPDATE_PASSWORD
=
2
;
}
// Response message for the RetrieveSingleUser RPC
message
RetrieveSingleUserResponse
{
// The user
User
user
=
1
;
// The permissions of the user of the current session.
repeated
UserPermissions
permissions
=
2
;
// What
we
can
do
with this user
// What can
be done
with this user
repeated
UserCapabilities
capabilities
=
3
;
}
...
...
@@ -335,6 +308,35 @@ message DeleteSingleUserRequest {
// Response message for the DeleteSingleUser RPC
message
DeleteSingleUserResponse
{}
// Permissions for updating and deleting a user.
enum
UserPermissions
{
// Unspecified permission
USER_PERMISSIONS_UNSPECIFIED
=
0
;
// The user can be deleted.
USER_PERMISSIONS_DELETE
=
1
;
// The password of the user can be updated.
USER_PERMISSIONS_UPDATE_PASSWORD
=
2
;
// The email of the user can be updated.
USER_PERMISSIONS_UPDATE_EMAIL
=
3
;
// The status (active/inactive) of the user can be changed.
USER_PERMISSIONS_UPDATE_STATUS
=
4
;
// The roles of the user can be altered.
USER_PERMISSIONS_UPDATE_ROLES
=
5
;
// Ths entity of the user can be set.
USER_PERMISSIONS_UPDATE_ENTITY
=
6
;
}
// What can be done with a user (generally speaking, if permissions suffice).
enum
UserCapabilities
{
// Unspecified capability
USER_CAPABILITIES_UNSPECIFIED
=
0
;
// User can be deleted.
USER_CAPABILITIES_DELETE
=
1
;
// The user's password can be updated.
USER_CAPABILITIES_UPDATE_PASSWORD
=
2
;
}
///////////////////////////////////////////
// SERVICE DEFINITION
///////////////////////////////////////////
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment