Skip to content

Commit c97ff9c

Browse files
authored
Update RunScriptFile return type to StreamPackage (#5)
* Update RunScriptFile return type to StreamPackage * Fix import order
1 parent 79311d5 commit c97ff9c

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

ansys/api/discovery/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.3.dev0
1+
0.4.dev0

ansys/api/discovery/v1/application.proto

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
// Copyright 2022, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
22
syntax = "proto3";
33
package ansys.api.discovery.v1;
4+
5+
import "ansys/api/discovery/v1/streaming.proto";
6+
47
option csharp_namespace = "Ansys.Api.Discovery.V1";
58
option go_package = "ansys/api/discovery/v1";
69

10+
711
service Application {
812

913
// Runs a script based on a file.
10-
rpc RunScriptFile(RunScriptFileRequest) returns(stream RunScriptFileResponse);
14+
rpc RunScriptFile(RunScriptFileRequest) returns(stream StreamPackage);
1115

1216
// Runs a script based on a supplied string.
1317
rpc RunScript(RunScriptRequest) returns(RunScriptResponse);
@@ -25,11 +29,6 @@ message RunScriptFileRequest{
2529
int32 api_version = 3;
2630
}
2731

28-
message RunScriptFileResponse{
29-
// Results returned by script.
30-
string script_output = 1 [json_name = "script_output"];
31-
}
32-
3332
message RunScriptRequest{
3433
// Script source to execute.
3534
string script = 1;

0 commit comments

Comments
 (0)