From 49d9515c94edc5d7337eae2ac924d60b2ff85116 Mon Sep 17 00:00:00 2001 From: Safee Date: Mon, 11 Nov 2024 07:55:11 -0600 Subject: [PATCH 1/3] add rpc for returning server logs --- .gitignore | 1 + ansys/api/additive/v0/additive_simulation.proto | 9 +++++++++ csharp/Ansys.Api.Additive.csproj | 4 ++-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 3bfc010..bb3b159 100644 --- a/.gitignore +++ b/.gitignore @@ -34,6 +34,7 @@ venv/ # VSCode settings .vscode +.vs # autogenerated Python code *pb2*.py diff --git a/ansys/api/additive/v0/additive_simulation.proto b/ansys/api/additive/v0/additive_simulation.proto index a0078fd..a537b39 100644 --- a/ansys/api/additive/v0/additive_simulation.proto +++ b/ansys/api/additive/v0/additive_simulation.proto @@ -20,6 +20,8 @@ service SimulationService { rpc DownloadFile(DownloadFileRequest) returns (stream DownloadFileResponse); + rpc DownloadLogs(DownloadLogsRequest) returns (stream DownloadLogResponse); + rpc Mesh(MeshRequest) returns (google.longrunning.Operation) { option (google.longrunning.operation_info) = { response_type: "MeshResponse" @@ -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. @@ -83,6 +88,10 @@ message DownloadFileResponse { Progress progress = 10; // download progress } +message DownloadLogResponse { + DownloadFileResponse response = 1; +} + message MeshRequest { string id = 1; oneof Input { diff --git a/csharp/Ansys.Api.Additive.csproj b/csharp/Ansys.Api.Additive.csproj index 050d469..197701f 100644 --- a/csharp/Ansys.Api.Additive.csproj +++ b/csharp/Ansys.Api.Additive.csproj @@ -14,9 +14,9 @@ - + - + all runtime; build; native; contentfiles; analyzers From dccbbf8873d38f3ad85e93bed09657c9440c450e Mon Sep 17 00:00:00 2001 From: Safee Date: Mon, 11 Nov 2024 11:10:59 -0600 Subject: [PATCH 2/3] remove `DownloadLogResponse` --- ansys/api/additive/v0/additive_simulation.proto | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ansys/api/additive/v0/additive_simulation.proto b/ansys/api/additive/v0/additive_simulation.proto index a537b39..ce01864 100644 --- a/ansys/api/additive/v0/additive_simulation.proto +++ b/ansys/api/additive/v0/additive_simulation.proto @@ -20,7 +20,7 @@ service SimulationService { rpc DownloadFile(DownloadFileRequest) returns (stream DownloadFileResponse); - rpc DownloadLogs(DownloadLogsRequest) returns (stream DownloadLogResponse); + rpc DownloadLogs(DownloadLogsRequest) returns (stream DownloadFileResponse); rpc Mesh(MeshRequest) returns (google.longrunning.Operation) { option (google.longrunning.operation_info) = { @@ -88,10 +88,6 @@ message DownloadFileResponse { Progress progress = 10; // download progress } -message DownloadLogResponse { - DownloadFileResponse response = 1; -} - message MeshRequest { string id = 1; oneof Input { From df4fa27716bf418eff1016cc0403e14b9bba6749 Mon Sep 17 00:00:00 2001 From: Safee Date: Mon, 11 Nov 2024 11:48:21 -0600 Subject: [PATCH 3/3] bump version --- ansys/api/additive/VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansys/api/additive/VERSION b/ansys/api/additive/VERSION index 0ba0039..6cec60f 100644 --- a/ansys/api/additive/VERSION +++ b/ansys/api/additive/VERSION @@ -1 +1 @@ -2.2.1-dev0 +2.2.2-dev0