Skip to content

Commit e206e40

Browse files
MaxjreyMaxJPReyRobPasMue
authored
Add folder content from CSharpAddins\ApiServer\DomainModel\DomainModel.Protobuffer\ansys\api\geometry\v0. (#23)
Co-authored-by: pyansys-ci-bot <[email protected]> Co-authored-by: Roberto Pastor Muela <[email protected]>
1 parent e6dbc17 commit e206e40

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

ansys/api/geometry/v0/admin.proto

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ option csharp_namespace = "Ansys.Api.Geometry.V0";
55
option go_package = "ansys/api/geometry/v0";
66
import "google/protobuf/timestamp.proto";
77
import "google/protobuf/struct.proto";
8+
import "google/protobuf/empty.proto";
89

910
service Admin{
1011

@@ -18,6 +19,10 @@ service Admin{
1819

1920
// Gets basic status information.
2021
rpc StatusInfo(StatusInfoRequest) returns(StatusInfoResponse);
22+
23+
rpc SetApplicationTitle(SetApplicationTitleRequest) returns(SetApplicationTitleResponse);
24+
25+
rpc CloseApplication(CloseApplicationRequest) returns(google.protobuf.Empty);
2126
}
2227

2328
enum LogsTarget{
@@ -77,3 +82,18 @@ message StatusInfoResponse{
7782
string application_version = 2 [json_name = "application_version"];
7883
string embedded_api_version = 3 [json_name = "embedded_api_version"];
7984
}
85+
86+
message SetApplicationTitleRequest{
87+
string title =1;
88+
}
89+
90+
message SetApplicationTitleResponse{
91+
}
92+
93+
message CloseApplicationRequest{
94+
string title =1;
95+
}
96+
97+
message CloseApplicationResponse{
98+
}
99+

ansys/api/geometry/v0/commands.proto

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ service Commands{
3737

3838
rpc DownloadFile(Empty) returns (DownloadFileResponse);
3939

40+
rpc UploadFile(UploadFileRequest) returns (UploadFileResponse);
41+
4042
rpc CreateSphere(CreateSphereRequest) returns (CreateSphereResponse);
4143

4244
rpc CreateTorus(CreateTorusRequest) returns (CreateTorusResponse);
@@ -183,6 +185,15 @@ message DownloadFileResponse {
183185
bytes data=1;
184186
}
185187

188+
message UploadFileRequest {
189+
bytes data=1;
190+
string file_name=2;
191+
}
192+
193+
message UploadFileResponse {
194+
string file_path=1;
195+
}
196+
186197
message CreateSphereRequest {
187198
string name=1;
188199
string parent=2;

ansys/api/geometry/v0/geometryapi.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ message GetVersionRequest{
1818
}
1919

2020
message GetVersionResponse{
21-
string result = 1;
21+
ApiVersion version = 1;
2222
}
2323

2424
message SetVersionRequest{

0 commit comments

Comments
 (0)