syntax = "proto3";
package generated;

import "Shared.proto";

message ExecuteRequest {
    bytes item = 1;
    bytes backup = 2;
}

message ExecuteResponse {
    bytes item = 1;
    repeated ResourceIdentifier additionalItems = 2;
}

message ResourceIdentifier {
    string group = 1;
    string resource = 2;
    string namespace = 3;
    string name = 4;
}

service BackupItemAction {
    rpc AppliesTo(Empty) returns (AppliesToResponse);
    rpc Execute(ExecuteRequest) returns (ExecuteResponse);
}
