forked from cpp597455873/gitaly-proto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnamespace.proto
63 lines (53 loc) · 1.28 KB
/
namespace.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
syntax = "proto3";
package gitaly;
option go_package = "gitlab.com/gitlab-org/gitaly-proto/go/gitalypb";
import "shared.proto";
service NamespaceService {
rpc AddNamespace(AddNamespaceRequest) returns (AddNamespaceResponse) {
option (op_type) = {
op: MUTATOR
scope_level: STORAGE,
};
}
rpc RemoveNamespace(RemoveNamespaceRequest) returns (RemoveNamespaceResponse) {
option (op_type) = {
op: MUTATOR
scope_level: STORAGE,
};
}
rpc RenameNamespace(RenameNamespaceRequest) returns (RenameNamespaceResponse) {
option (op_type) = {
op: MUTATOR
scope_level: STORAGE,
};
}
rpc NamespaceExists(NamespaceExistsRequest) returns (NamespaceExistsResponse) {
option (op_type) = {
op: ACCESSOR
scope_level: STORAGE,
};
}
}
message AddNamespaceRequest {
string storage_name = 1;
string name = 2;
}
message RemoveNamespaceRequest {
string storage_name = 1;
string name = 2;
}
message RenameNamespaceRequest {
string storage_name = 1;
string from = 2;
string to = 3;
}
message NamespaceExistsRequest {
string storage_name = 1;
string name = 2;
}
message NamespaceExistsResponse {
bool exists = 1;
}
message AddNamespaceResponse {}
message RemoveNamespaceResponse {}
message RenameNamespaceResponse {}