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
10 changes: 7 additions & 3 deletions aruna/api/internal/v1/bundler.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ option go_package = "github.com/ArunaStorage/go-api/aruna/api/internal/v1";

import "google/api/visibility.proto";
import "google/protobuf/timestamp.proto";
import "aruna/api/storage/models/v1/models.proto";
import "aruna/api/internal/v1/proxy.proto";



service InternalBundlerService {
option (google.api.api_visibility).restriction = "INTERNAL";
Expand All @@ -27,9 +31,9 @@ message PrepareBundleResponse {}


message ObjectRef {
string object_location = 1;
string encryption_key = 2;
string object_path = 3; // Path + filename foo/bar/baz/test.txt
aruna.api.internal.v1.Location object_location = 1;
aruna.api.storage.models.v1.Object object_info = 2;
string sub_path = 3;
}

message Bundle {
Expand Down
26 changes: 25 additions & 1 deletion aruna/api/storage/services/v1/collection_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,19 @@ service CollectionService {
body : "*"
};
}

// AddKeyValueToCollection
//
// Status: BETA
//
// Adds key values (labels / hooks) to a collection
rpc AddKeyValuesToCollection(AddKeyValuesToCollectionRequest)
returns (AddKeyValuesToCollectionResponse) {
option (google.api.http) = {
patch : "/v1/collection/{collection_id}/add_key_value"
body : "*"
};
}
}


Expand Down Expand Up @@ -303,4 +316,15 @@ message DeleteCollectionRequest {
bool force = 3;
}

message DeleteCollectionResponse {}
message DeleteCollectionResponse {}


message AddKeyValuesToCollectionRequest {
repeated storage.models.v1.KeyValue labels = 1;
repeated storage.models.v1.KeyValue hooks = 2;
}

message AddKeyValuesToCollectionResponse {
// New collection overview
storage.models.v1.CollectionOverview collection = 1;
}