Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion aruna/api/dataproxy/services/v2/bundler_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ message CreateBundleRequest {
}

message CreateBundleResponse {
string bundle_url = 1;
string bundle_id = 1;
string bundle_url = 2;
}

message DeleteBundleRequest{
Expand Down
6 changes: 3 additions & 3 deletions aruna/api/hooks/services/v2/hooks_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ service HooksService {
}
rpc AddProjectsToHook(AddProjectsToHookRequest) returns (AddProjectsToHookResponse) {
option (google.api.http) = {
post : "/v2/hook/{hook_id}/{project_id}"
post : "/v2/hook/{hook_id}"
body : "*"
};
}
Expand Down Expand Up @@ -71,9 +71,8 @@ message ExternalHook {
Credentials credentials = 2;
// If empty a basic JSON template will be used
optional string custom_template = 3;
// Optional Project/Collection/Dataset where hooks can upload results.
optional string result_object = 4;
Method method = 5;
// TODO: Optional request headers
}

enum Method {
Expand Down Expand Up @@ -155,6 +154,7 @@ message ListProjectHooksRequest{
}

message ListOwnedHooksRequest{
// ADMIN only
string user_id = 1;
}

Expand Down
2 changes: 1 addition & 1 deletion aruna/api/storage/services/v2/collection_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ service CollectionService {
// Queries multiple collections by ID
rpc GetCollections(GetCollectionsRequest) returns (GetCollectionsResponse) {
option (google.api.http) = {
get : "/v2/collections/"
get : "/v2/collections"
};
}

Expand Down
2 changes: 1 addition & 1 deletion aruna/api/storage/services/v2/dataset_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ service DatasetService {
// Queries multiple datasets by ID
rpc GetDatasets(GetDatasetsRequest) returns (GetDatasetsResponse) {
option (google.api.http) = {
get : "/v2/datasets/"
get : "/v2/datasets"
};
}

Expand Down
1 change: 1 addition & 0 deletions aruna/api/storage/services/v2/search_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ message GetResourcesResponse {

message RequestResourceAccessRequest {
string resource_id = 1;
string message = 2;
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ service ServiceAccountService {
rpc GetDataproxyTokenSvcAccount(GetDataproxyTokenSvcAccountRequest)
returns (GetDataproxyTokenSvcAccountResponse) {
option (google.api.http) = {
get : "/v2/user/{svc_account_id}/proxy_token"
get : "/v2/user/{user_id}/svc_proxy_token"
};
}
}
Expand Down
21 changes: 10 additions & 11 deletions aruna/api/storage/services/v2/user_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ service UserService {
rpc UpdateUserDisplayName(UpdateUserDisplayNameRequest)
returns (UpdateUserDisplayNameResponse) {
option (google.api.http) = {
patch : "/v2/user/{user_id}/display_name"
patch : "/v2/user/display_name"
body : "*"
};
}
Expand Down Expand Up @@ -219,7 +219,7 @@ service UserService {
rpc GetPersonalNotifications(GetPersonalNotificationsRequest)
returns (GetPersonalNotificationsResponse) {
option (google.api.http) = {
get : "/v2/user/{user_id}/notifications"
get : "/v2/user/notifications"
};
}

Expand All @@ -231,7 +231,7 @@ service UserService {
rpc AcknowledgePersonalNotifications(AcknowledgePersonalNotificationsRequest)
returns (AcknowledgePersonalNotificationsResponse) {
option (google.api.http) = {
get : "/v2/user/{user_id}/acknowledge"
get : "/v2/user/acknowledge"
};
}

Expand Down Expand Up @@ -395,16 +395,14 @@ message GetDataproxyTokenUserResponse {
string token = 1;
}

message GetPersonalNotificationsRequest {
string user_id = 1;
}
message GetPersonalNotificationsRequest {}

message GetPersonalNotificationsResponse {
repeated PersonalNotification notifications = 1;
}

message AcknowledgePersonalNotificationsRequest {
repeated string notification_id = 1;
repeated string notification_ids = 1;
}

message AcknowledgePersonalNotificationsResponse {}
Expand All @@ -415,9 +413,9 @@ enum ReferenceType {
REFERENCE_TYPE_RESOURCE = 2;
}

message References {
message Reference {
ReferenceType ref_type = 1;
string ref_name = 2; // "User A"
string ref_name = 2; // "User A" | file.txt
string ref_value = 3; // 0123AAA123AAA (id)
}

Expand All @@ -426,12 +424,13 @@ enum PersonalNotificationVariant {
PERSONAL_NOTIFICATION_VARIANT_ACCESS_REQUESTED = 1;
PERSONAL_NOTIFICATION_VARIANT_PERMISSION_GRANTED = 2;
PERSONAL_NOTIFICATION_VARIANT_PERMISSION_REVOKED = 3;
PERSONAL_NOTIFICATION_VARIANT_ANNOUNCEMENT = 4;
PERSONAL_NOTIFICATION_VARIANT_PERMISSION_UPDATED = 4;
PERSONAL_NOTIFICATION_VARIANT_ANNOUNCEMENT = 5;
}

message PersonalNotification {
string id = 1;
PersonalNotificationVariant variant = 2;
string message = 3; // User A has requested access for resource B
repeated References refs = 4; // References to resource in the "message"
repeated Reference refs = 4; // References to resource in the "message"
}
4 changes: 1 addition & 3 deletions aruna/api/storage/services/v2/workspace_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ service WorkspaceService {
returns (GetWorkspaceTemplateResponse) {
option (google.api.http) = {
get: "/v2/workspace/template/{template_id}"
body : "*"
};
}
// ListOwnedWorkspaceTemplates
Expand All @@ -43,7 +42,6 @@ service WorkspaceService {
returns (ListOwnedWorkspaceTemplatesResponse) {
option (google.api.http) = {
get: "/v2/workspace/template"
body : "*"
};
}
// DeleteWorkspaceTemplates
Expand Down Expand Up @@ -125,7 +123,7 @@ message GetWorkspaceTemplateRequest {
string template_id = 1;
}
message GetWorkspaceTemplateResponse {
WorkspaceInfo workspaces = 1;
WorkspaceInfo workspace = 1;
}
message DeleteWorkspaceTemplateRequest {
string template_id = 1;
Expand Down