Skip to content

Commit

Permalink
feat: Added Title, Authors and Rulebindings to resources
Browse files Browse the repository at this point in the history
  • Loading branch information
St4NNi committed Feb 21, 2024
1 parent 53bffeb commit b2ce195
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions aruna/api/storage/models/v2/models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ message User {
string email = 5;
// User attributes
UserAttributes attributes = 6;
// First and Last name
string first_name = 7;
string last_name = 8;
}

message Permission {
Expand Down Expand Up @@ -289,6 +292,19 @@ message License {
string url = 4; // https://creativecommons.org/licenses/by-sa/4.0/
}

message Author {
string first_name = 1;
string last_name = 2;
optional string email = 3;
optional string orcid = 4;
optional string id = 5;
}

message RuleBinding {
string rule_id = 1;
string origin = 2;
}

// ------ Resources ----------

message GenericResource {
Expand All @@ -303,6 +319,7 @@ message GenericResource {
message Project {
string id = 1;
string name = 2; // Short name according to BucketNamingRules
string title = 15; // Long name
string description = 3; // Long name
// Project specific labels / hooks
repeated KeyValue key_values = 4;
Expand All @@ -312,17 +329,20 @@ message Project {
DataClass data_class = 7;
google.protobuf.Timestamp created_at = 8;
string created_by = 9;
repeated Author authors = 16;
Status status = 10;
bool dynamic = 11;
repeated DataEndpoint endpoints = 12;
string metadata_license_tag = 13;
string default_data_license_tag = 14;
repeated RuleBinding rule_bindings = 17;
}


message Collection {
string id = 1; // ASDASDASDOPASKIDPO
string name = 2; // my_mags
string title = 15; // Long name
string description = 3; // ENA asda234928349028 MAG 1293819203819028i V1
// Collection specific labels / hooks
repeated KeyValue key_values = 4;
Expand All @@ -332,16 +352,19 @@ message Collection {
DataClass data_class = 7;
google.protobuf.Timestamp created_at = 8;
string created_by = 9;
repeated Author authors = 16;
Status status = 10;
bool dynamic = 11;
repeated DataEndpoint endpoints = 12;
string metadata_license_tag = 13;
string default_data_license_tag = 14;
repeated RuleBinding rule_bindings = 17;
}

message Dataset {
string id = 1;
string name = 2;
string title = 15; // Long name
string description = 3;
// Dataset specific labels / hooks
repeated KeyValue key_values = 4;
Expand All @@ -351,16 +374,19 @@ message Dataset {
DataClass data_class = 7;
google.protobuf.Timestamp created_at = 8;
string created_by = 9;
repeated Author authors = 16;
Status status = 10;
bool dynamic = 11;
repeated DataEndpoint endpoints = 12;
string metadata_license_tag = 13;
string default_data_license_tag = 14;
repeated RuleBinding rule_bindings = 17;
}

message Object {
string id = 1;
string name = 2;
string title = 16; // Long name
string description = 3;
// Collection specific labels / hooks
repeated KeyValue key_values = 4;
Expand All @@ -370,11 +396,13 @@ message Object {
DataClass data_class = 7;
google.protobuf.Timestamp created_at = 8;
string created_by = 9;
repeated Author authors = 17;
Status status = 10;
bool dynamic = 11;
repeated DataEndpoint endpoints = 12;
// Object specific attributes
repeated Hash hashes = 13;
string metadata_license_tag = 14;
string data_license_tag = 15;
repeated RuleBinding rule_bindings = 18;
}

0 comments on commit b2ce195

Please sign in to comment.