diff --git a/aruna/api/internal/v1/bundler.proto b/aruna/api/internal/v1/bundler.proto index a36494e4..aee161c9 100644 --- a/aruna/api/internal/v1/bundler.proto +++ b/aruna/api/internal/v1/bundler.proto @@ -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"; @@ -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 { diff --git a/aruna/api/storage/services/v1/collection_service.proto b/aruna/api/storage/services/v1/collection_service.proto index 505ee1be..94133782 100644 --- a/aruna/api/storage/services/v1/collection_service.proto +++ b/aruna/api/storage/services/v1/collection_service.proto @@ -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 : "*" + }; + } } @@ -303,4 +316,15 @@ message DeleteCollectionRequest { bool force = 3; } -message DeleteCollectionResponse {} \ No newline at end of file +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; +} \ No newline at end of file