Skip to content

Commit

Permalink
Merge pull request #38 from aneoconsulting/jg/results_service
Browse files Browse the repository at this point in the history
Add results service
  • Loading branch information
aneojgurhem authored Sep 16, 2022
2 parents d5888cb + 47943ec commit 4e55748
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Api/csharp/ArmoniK.Api.Client/ArmoniK.Api.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,8 @@
<Protobuf Include="..\..\..\Protos\V1\tasks_service.proto" GrpcServices="Client">
<Link>gRPC\Protos\tasks_service.proto</Link>
</Protobuf>
<Protobuf Include="..\..\..\Protos\V1\results_service.proto" GrpcServices="Client">
<Link>gRPC\Protos\results_service.proto</Link>
</Protobuf>
</ItemGroup>
</Project>
4 changes: 4 additions & 0 deletions Api/csharp/ArmoniK.Api.Common/ArmoniK.Api.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@
<GrpcServices>Message</GrpcServices>
<ProtoCompile>True</ProtoCompile>
</Protobuf>
<Protobuf Include="..\..\..\Protos\V1\results_common.proto" Link="results_common.proto">
<GrpcServices>Message</GrpcServices>
<ProtoCompile>True</ProtoCompile>
</Protobuf>
</ItemGroup>

</Project>
3 changes: 3 additions & 0 deletions Api/csharp/ArmoniK.Api.Core/ArmoniK.Api.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
<Protobuf Include="..\..\..\Protos\V1\tasks_service.proto" GrpcServices="Both">
<Link>gRPC\Protos\tasks_service.proto</Link>
</Protobuf>
<Protobuf Include="..\..\..\Protos\V1\results_service.proto" GrpcServices="Both">
<Link>gRPC\Protos\results_service.proto</Link>
</Protobuf>
</ItemGroup>

</Project>
27 changes: 27 additions & 0 deletions Protos/V1/results_common.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
syntax = "proto3";

package armonik.api.grpc.v1.results;

import "result_status.proto";

option csharp_namespace = "ArmoniK.Api.gRPC.V1.Results";

/*
* Request for getting the id of the task that should create this result
*/
message GetOwnerTaskIdRequest {
string session_id = 1;
repeated string result_id = 2;
}

/*
* Response for getting the id of the task that should create this result
*/
message GetOwnerTaskIdResponse {
message MapResultTask {
string result_id = 1;
string task_id = 2;
}
repeated MapResultTask result_task = 1;
string session_id = 2;
}
15 changes: 15 additions & 0 deletions Protos/V1/results_service.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
syntax = "proto3";

package armonik.api.grpc.v1.results;

import "results_common.proto";

option csharp_namespace = "ArmoniK.Api.gRPC.V1.Results";

/**
* The ResultsService provides methods for interacting with results
*/
service Results {
// Get the id of the task that should produce the result
rpc GetOwnerTaskId(GetOwnerTaskIdRequest) returns (GetOwnerTaskIdResponse);
}

0 comments on commit 4e55748

Please sign in to comment.