-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathgroup.proto
More file actions
50 lines (38 loc) · 1.37 KB
/
group.proto
File metadata and controls
50 lines (38 loc) · 1.37 KB
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
syntax = "proto3";
package odpf.assets;
option java_package = "io.odpf.assets";
option java_outer_classname = "GroupProto";
option go_package = "github.com/odpf/proton/assets";
import "odpf/assets/common/timestamp.proto";
import "odpf/assets/common/event.proto";
import "odpf/assets/common/resource.proto";
import "odpf/assets/facets/properties.proto";
// Group represents a group of users and resources.
message Group {
// Representation of the resource
odpf.assets.common.Resource resource = 1;
// The email of the group.
// Example: `[email protected]`
string email = 2;
// The members of the group.
// For example look at schema of the member.
repeated Member members = 21;
// List of the user's custom properties.
// Properties facet can be used to set custom properties, tags and labels for a user.
odpf.assets.facets.Properties properties = 31;
// The timestamp of the user's creation.
// Timstamp facet can be used to set the creation and updation timestamp of a user.
odpf.assets.common.Timestamp timestamps = 32;
// The timestamp of the generated event.
// Event schemas is defined in the common event schema.
odpf.assets.common.Event event = 100;
}
// Member represents a user.
message Member {
// The unique identifier for the user.
// Example: `user:example`.
string urn = 1;
// The role of the user.
// Example: `owner`.
string role = 2;
}