Skip to content

Commit

Permalink
add rpc for returning server logs (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
safeerehman authored Nov 11, 2024
1 parent e810c79 commit 52bd8e6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ venv/

# VSCode settings
.vscode
.vs

# autogenerated Python code
*pb2*.py
Expand Down
2 changes: 1 addition & 1 deletion ansys/api/additive/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.1-dev0
2.2.2-dev0
5 changes: 5 additions & 0 deletions ansys/api/additive/v0/additive_simulation.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ service SimulationService {

rpc DownloadFile(DownloadFileRequest) returns (stream DownloadFileResponse);

rpc DownloadLogs(DownloadLogsRequest) returns (stream DownloadFileResponse);

rpc Mesh(MeshRequest) returns (google.longrunning.Operation) {
option (google.longrunning.operation_info) = {
response_type: "MeshResponse"
Expand Down Expand Up @@ -72,6 +74,9 @@ message DownloadFileRequest {
string remote_file_name = 1; // full path to file on server
}

message DownloadLogsRequest {
}

// DownloadFileResponse is used to transfer a file in chunks from
// the server to a client. Content and content_md5 may be empty
// if only a progress message is sent.
Expand Down
4 changes: 2 additions & 2 deletions csharp/Ansys.Api.Additive.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
<Protobuf Include="../google/**/*.proto" ProtoRoot=".." GrpcServices="both" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.26.1" />
<PackageReference Include="Google.Protobuf" Version="3.28.3" />
<PackageReference Include="Grpc" Version="2.46.6" />
<PackageReference Include="Grpc.Tools" Version="2.50.0">
<PackageReference Include="Grpc.Tools" Version="2.67.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down

0 comments on commit 52bd8e6

Please sign in to comment.