Skip to content

Commit 62c99cd

Browse files
committed
Merge branch 'main' into release/0.2
2 parents 21f559a + 348345e commit 62c99cd

21 files changed

+1790
-1769
lines changed

ansys/api/geometry/v0/admin.proto

Lines changed: 40 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,70 @@
1-
// ©2021, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
1+
// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
22
syntax = "proto3";
3-
package ansys.api.geometry.v0;
4-
option csharp_namespace = "Ansys.Api.Geometry.V0";
5-
option go_package = "ansys/api/geometry/v0";
6-
import "google/protobuf/timestamp.proto";
7-
import "google/protobuf/struct.proto";
3+
package ansys.api.geometry.v0.Admin;
4+
85
import "google/protobuf/empty.proto";
6+
import "google/protobuf/struct.proto";
7+
import "google/protobuf/timestamp.proto";
8+
9+
option csharp_namespace = "Ansys.Api.Geometry.V0.Admin";
10+
option go_package = "ansys/api/geometry/v0";
911

1012
service Admin{
1113

12-
rpc GetLogs(LogsRequest) returns(stream LogsResponse);
14+
rpc GetLogs(LogsRequest) returns(stream LogsResponse);
1315

14-
// Gets the health of the service.
15-
rpc Health(HealthRequest) returns(HealthResponse);
16+
// Gets the health of the service.
17+
rpc Health(HealthRequest) returns(HealthResponse);
1618

17-
// Shuts down the underlying gRPC server.
18-
rpc Shutdown(ShutdownRequest) returns(ShutdownResponse);
19+
// Shuts down the underlying gRPC server.
20+
rpc Shutdown(ShutdownRequest) returns(ShutdownResponse);
1921

20-
// Gets basic status information.
21-
rpc StatusInfo(StatusInfoRequest) returns(StatusInfoResponse);
22+
// Gets basic status information.
23+
rpc StatusInfo(StatusInfoRequest) returns(StatusInfoResponse);
2224

23-
rpc SetApplicationTitle(SetApplicationTitleRequest) returns(SetApplicationTitleResponse);
25+
rpc SetApplicationTitle(SetApplicationTitleRequest) returns(SetApplicationTitleResponse);
2426

25-
rpc CloseApplication(CloseApplicationRequest) returns(google.protobuf.Empty);
27+
rpc CloseApplication(CloseApplicationRequest) returns(google.protobuf.Empty);
2628
}
2729

2830
enum LogsTarget{
29-
CLIENT = 0;
30-
PATH = 1;
31+
CLIENT = 0;
32+
PATH = 1;
3133
}
3234

3335
enum PeriodType{
34-
CURRENT = 0;
35-
PAST = 1;
36-
ALL = 2;
36+
CURRENT = 0;
37+
PAST = 1;
38+
ALL = 2;
3739
}
3840

3941
message LogsRequest{
4042

41-
LogsTarget target = 1;
42-
oneof path{
43-
google.protobuf.NullValue null_path = 2;
44-
string target_path =3;
45-
}
43+
LogsTarget target = 1;
44+
oneof path{
45+
google.protobuf.NullValue null_path = 2;
46+
string target_path =3;
47+
}
4648

47-
PeriodType period_type = 4;
49+
PeriodType period_type = 4;
4850

49-
oneof period {
50-
google.protobuf.NullValue null_period = 5;
51-
google.protobuf.Timestamp logs_period = 6;
52-
}
51+
oneof period {
52+
google.protobuf.NullValue null_period = 5;
53+
google.protobuf.Timestamp logs_period = 6;
54+
}
5355
}
5456

5557
message LogsResponse{
56-
string relative_path = 1;
57-
string log_name = 2;
58-
bytes log_chunk = 3;
58+
string relative_path = 1;
59+
string log_name = 2;
60+
bytes log_chunk = 3;
5961
}
6062

6163
message HealthRequest{
6264
}
6365

6466
message HealthResponse{
65-
string message = 1;
67+
string message = 1;
6668
}
6769

6870
message ShutdownRequest{
@@ -78,20 +80,19 @@ message StatusInfoRequest{
7880
}
7981

8082
message StatusInfoResponse{
81-
string touch_time = 1 [json_name = "touch_time"];
82-
string application_version = 2 [json_name = "application_version"];
83-
string embedded_api_version = 3 [json_name = "embedded_api_version"];
83+
string touch_time = 1 [json_name = "touch_time"];
84+
string application_version = 2 [json_name = "application_version"];
85+
string embedded_api_version = 3 [json_name = "embedded_api_version"];
8486
}
8587

8688
message SetApplicationTitleRequest{
87-
string title =1;
89+
string title =1;
8890
}
8991

9092
message SetApplicationTitleResponse{
9193
}
9294

9395
message CloseApplicationRequest{
94-
string title =1;
9596
}
9697

9798
message CloseApplicationResponse{

ansys/api/geometry/v0/bodies.proto

Lines changed: 65 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,138 +1,139 @@
1-
// ©2021, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
1+
// ©2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
22
syntax = "proto3";
33
package ansys.api.geometry.v0.Bodies;
4-
option csharp_namespace = "Ansys.Api.Geometry.V0.Bodies";
54

65
import "ansys/api/geometry/v0/models.proto";
76

7+
option csharp_namespace = "Ansys.Api.Geometry.V0.Bodies";
8+
89
service Bodies
910
{
10-
rpc Get(GetRequest) returns(Body);
11+
rpc Get(GetRequest) returns(Body);
12+
13+
rpc GetMaster(EntityIdentifier) returns(Body);
1114

12-
rpc GetMaster(EntityIdentifier) returns(Body);
15+
rpc GetOriginal(EntityIdentifier) returns(Body);
1316

14-
rpc GetOriginal(EntityIdentifier) returns(Body);
17+
rpc GetParent(EntityIdentifier) returns(Part);
1518

16-
rpc GetParent(EntityIdentifier) returns(Part);
19+
rpc GetAll(GetAllRequest) returns(GetAllResponse) ;
1720

18-
rpc GetAll(GetAllRequest) returns(GetAllResponse) ;
21+
rpc GetAssignedMaterial(EntityIdentifier) returns(Material);
1922

20-
rpc GetAssignedMaterial(EntityIdentifier) returns(Material);
23+
rpc SetAssignedMaterial(SetAssignedMaterialRequest) returns(SetAssignedMaterialResponse);
2124

22-
rpc SetAssignedMaterial(SetAssignedMaterialRequest) returns(SetAssignedMaterialResponse);
25+
rpc Translate(TranslateRequest) returns(Empty);
2326

24-
rpc Translate(TranslateRequest) returns(Empty);
27+
rpc GetFaces(EntityIdentifier) returns (GetFacesResponse);
28+
29+
rpc CreateBodyFromFace(CreateBodyFromFaceRequest) returns (Body);
30+
31+
rpc CreateExtrudedBodyFromFaceProfile(CreateExtrudedBodyFromFaceProfileRequest) returns (Body);
32+
33+
rpc Delete(EntityIdentifier) returns (Empty);
2534

26-
rpc GetFaces(EntityIdentifier) returns (GetFacesResponse);
27-
28-
rpc CreateBodyFromFace(CreateBodyFromFaceRequest) returns (Body);
29-
30-
rpc CreateExtrudedBodyFromFaceProfile(CreateExtrudedBodyFromFaceProfileRequest) returns (Body);
31-
32-
rpc Delete(EntityIdentifier) returns (Empty);
35+
rpc CreatePlanarBody(CreatePlanarBodyRequest) returns (Body);
3336

34-
rpc CreatePlanarBody(CreatePlanarBodyRequest) returns (Body);
35-
36-
rpc CreateExtrudedBody(CreateExtrudedBodyRequest) returns (Body);
37+
rpc CreateExtrudedBody(CreateExtrudedBodyRequest) returns (Body);
3738

38-
rpc GetVolume(EntityIdentifier) returns(GetVolumeResponse);
39+
rpc GetVolume(EntityIdentifier) returns(GetVolumeResponse);
3940

40-
rpc GetTessellation(EntityIdentifier) returns(GetTessellationResponse);
41+
rpc GetTessellation(EntityIdentifier) returns(GetTessellationResponse);
4142

42-
rpc GetEdges(EntityIdentifier) returns (GetEdgesResponse);
43+
rpc GetEdges(EntityIdentifier) returns (GetEdgesResponse);
4344

44-
rpc GetName(EntityIdentifier) returns (GetNameResponse);
45+
rpc GetName(EntityIdentifier) returns (GetNameResponse);
4546

46-
rpc Copy(CopyRequest) returns (Body);
47+
rpc Copy(CopyRequest) returns (Body);
4748

48-
rpc GetUpdateState(EntityIdentifier) returns (UpdateState);
49+
rpc GetUpdateState(EntityIdentifier) returns (UpdateState);
4950
}
5051

5152
enum GetType{
52-
NONE = 0;
53-
MASTER = 1;
54-
ORIGINAL = 2;
55-
PARENT=3;
53+
NONE = 0;
54+
MASTER = 1;
55+
ORIGINAL = 2;
56+
PARENT=3;
5657
}
5758

5859
message GetRequest{
59-
string id = 1;
60-
GetType body_type = 2;
60+
string id = 1;
61+
GetType body_type = 2;
6162
}
6263

6364
message GetAllRequest{
64-
string parent = 1;
65+
string parent = 1;
6566
}
6667

6768
message GetAllResponse{
68-
repeated Body bodies = 1;
69+
repeated Body bodies = 1;
6970
}
7071

7172
message SetAssignedMaterialRequest{
72-
string id=1;
73-
string material=2;
73+
string id=1;
74+
string material=2;
7475
}
7576

7677
message SetAssignedMaterialResponse{
77-
Material material=1;
78+
Material material=1;
7879
}
7980

8081
message TranslateRequest{
81-
repeated string ids=1;
82-
Direction direction=2;
83-
float distance=3;
82+
repeated string ids=1;
83+
Direction direction=2;
84+
float distance=3;
8485
}
8586

8687
message GetFacesResponse {
87-
repeated Face faces=1;
88+
repeated Face faces=1;
8889
}
8990

9091
message CreateBodyFromFaceRequest {
91-
string name=1;
92-
string parent=2;
93-
string face=3;
92+
string name=1;
93+
string parent=2;
94+
string face=3;
9495
}
9596

9697
message CreateExtrudedBodyFromFaceProfileRequest {
97-
string name=1;
98-
string parent=2;
99-
string face=3;
100-
double distance=4;
98+
string name=1;
99+
string parent=2;
100+
string face=3;
101+
double distance=4;
101102
}
102103

103104
message CreatePlanarBodyRequest {
104-
string name=1;
105-
string parent=2;
106-
Plane plane=3;
107-
Geometries geometries=4;
105+
string name=1;
106+
string parent=2;
107+
Plane plane=3;
108+
Geometries geometries=4;
108109
}
109110

110111
message CreateExtrudedBodyRequest {
111-
string name=1;
112-
string parent=2;
113-
Plane plane=3;
114-
Geometries geometries=4;
115-
double distance=5;
112+
string name=1;
113+
string parent=2;
114+
Plane plane=3;
115+
Geometries geometries=4;
116+
double distance=5;
116117
}
117118

118119
message GetVolumeResponse {
119-
double volume=1;
120+
double volume=1;
120121
}
121122

122123
message GetTessellationResponse{
123-
map<string, Tessellation> face_tessellation=1;
124+
map<string, Tessellation> face_tessellation=1;
124125
}
125126

126127
message GetEdgesResponse {
127-
repeated Edge edges=1;
128+
repeated Edge edges=1;
128129
}
129130

130131
message GetNameResponse {
131-
string name=1;
132+
string name=1;
132133
}
133134

134135
message CopyRequest {
135-
string id=1;
136-
string parent=2;
137-
string name=3;
136+
string id=1;
137+
string parent=2;
138+
string name=3;
138139
}

0 commit comments

Comments
 (0)