Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 40 additions & 38 deletions ansys/api/geometry/v0/admin.proto
Original file line number Diff line number Diff line change
@@ -1,68 +1,70 @@
// �2021, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
// �2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
syntax = "proto3";
package ansys.api.geometry.v0;
option csharp_namespace = "Ansys.Api.Geometry.V0";
option go_package = "ansys/api/geometry/v0";
import "google/protobuf/timestamp.proto";
import "google/protobuf/struct.proto";
package ansys.api.geometry.v0.Admin;

import "google/protobuf/empty.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";

option csharp_namespace = "Ansys.Api.Geometry.V0.Admin";
option go_package = "ansys/api/geometry/v0";

service Admin{

rpc GetLogs(LogsRequest) returns(stream LogsResponse);
rpc GetLogs(LogsRequest) returns(stream LogsResponse);

// Gets the health of the service.
rpc Health(HealthRequest) returns(HealthResponse);
// Gets the health of the service.
rpc Health(HealthRequest) returns(HealthResponse);

// Shuts down the underlying gRPC server.
rpc Shutdown(ShutdownRequest) returns(ShutdownResponse);
// Shuts down the underlying gRPC server.
rpc Shutdown(ShutdownRequest) returns(ShutdownResponse);

// Gets basic status information.
rpc StatusInfo(StatusInfoRequest) returns(StatusInfoResponse);
// Gets basic status information.
rpc StatusInfo(StatusInfoRequest) returns(StatusInfoResponse);

rpc SetApplicationTitle(SetApplicationTitleRequest) returns(SetApplicationTitleResponse);
rpc SetApplicationTitle(SetApplicationTitleRequest) returns(SetApplicationTitleResponse);

rpc CloseApplication(CloseApplicationRequest) returns(google.protobuf.Empty);
rpc CloseApplication(CloseApplicationRequest) returns(google.protobuf.Empty);
}

enum LogsTarget{
CLIENT = 0;
PATH = 1;
CLIENT = 0;
PATH = 1;
}

enum PeriodType{
CURRENT = 0;
PAST = 1;
ALL = 2;
CURRENT = 0;
PAST = 1;
ALL = 2;
}

message LogsRequest{

LogsTarget target = 1;
oneof path{
google.protobuf.NullValue null_path = 2;
string target_path =3;
}
LogsTarget target = 1;
oneof path{
google.protobuf.NullValue null_path = 2;
string target_path =3;
}

PeriodType period_type = 4;
PeriodType period_type = 4;

oneof period {
google.protobuf.NullValue null_period = 5;
google.protobuf.Timestamp logs_period = 6;
}
oneof period {
google.protobuf.NullValue null_period = 5;
google.protobuf.Timestamp logs_period = 6;
}
}

message LogsResponse{
string relative_path = 1;
string log_name = 2;
bytes log_chunk = 3;
string relative_path = 1;
string log_name = 2;
bytes log_chunk = 3;
}

message HealthRequest{
}

message HealthResponse{
string message = 1;
string message = 1;
}

message ShutdownRequest{
Expand All @@ -78,13 +80,13 @@ message StatusInfoRequest{
}

message StatusInfoResponse{
string touch_time = 1 [json_name = "touch_time"];
string application_version = 2 [json_name = "application_version"];
string embedded_api_version = 3 [json_name = "embedded_api_version"];
string touch_time = 1 [json_name = "touch_time"];
string application_version = 2 [json_name = "application_version"];
string embedded_api_version = 3 [json_name = "embedded_api_version"];
}

message SetApplicationTitleRequest{
string title =1;
string title =1;
}

message SetApplicationTitleResponse{
Expand Down
129 changes: 65 additions & 64 deletions ansys/api/geometry/v0/bodies.proto
Original file line number Diff line number Diff line change
@@ -1,138 +1,139 @@
// �2021, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
// �2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
syntax = "proto3";
package ansys.api.geometry.v0.Bodies;
option csharp_namespace = "Ansys.Api.Geometry.V0.Bodies";

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

option csharp_namespace = "Ansys.Api.Geometry.V0.Bodies";

service Bodies
{
rpc Get(GetRequest) returns(Body);
rpc Get(GetRequest) returns(Body);

rpc GetMaster(EntityIdentifier) returns(Body);

rpc GetMaster(EntityIdentifier) returns(Body);
rpc GetOriginal(EntityIdentifier) returns(Body);

rpc GetOriginal(EntityIdentifier) returns(Body);
rpc GetParent(EntityIdentifier) returns(Part);

rpc GetParent(EntityIdentifier) returns(Part);
rpc GetAll(GetAllRequest) returns(GetAllResponse) ;

rpc GetAll(GetAllRequest) returns(GetAllResponse) ;
rpc GetAssignedMaterial(EntityIdentifier) returns(Material);

rpc GetAssignedMaterial(EntityIdentifier) returns(Material);
rpc SetAssignedMaterial(SetAssignedMaterialRequest) returns(SetAssignedMaterialResponse);

rpc SetAssignedMaterial(SetAssignedMaterialRequest) returns(SetAssignedMaterialResponse);
rpc Translate(TranslateRequest) returns(Empty);

rpc Translate(TranslateRequest) returns(Empty);
rpc GetFaces(EntityIdentifier) returns (GetFacesResponse);

rpc CreateBodyFromFace(CreateBodyFromFaceRequest) returns (Body);

rpc CreateExtrudedBodyFromFaceProfile(CreateExtrudedBodyFromFaceProfileRequest) returns (Body);

rpc Delete(EntityIdentifier) returns (Empty);

rpc GetFaces(EntityIdentifier) returns (GetFacesResponse);

rpc CreateBodyFromFace(CreateBodyFromFaceRequest) returns (Body);

rpc CreateExtrudedBodyFromFaceProfile(CreateExtrudedBodyFromFaceProfileRequest) returns (Body);

rpc Delete(EntityIdentifier) returns (Empty);
rpc CreatePlanarBody(CreatePlanarBodyRequest) returns (Body);

rpc CreatePlanarBody(CreatePlanarBodyRequest) returns (Body);

rpc CreateExtrudedBody(CreateExtrudedBodyRequest) returns (Body);
rpc CreateExtrudedBody(CreateExtrudedBodyRequest) returns (Body);

rpc GetVolume(EntityIdentifier) returns(GetVolumeResponse);
rpc GetVolume(EntityIdentifier) returns(GetVolumeResponse);

rpc GetTessellation(EntityIdentifier) returns(GetTessellationResponse);
rpc GetTessellation(EntityIdentifier) returns(GetTessellationResponse);

rpc GetEdges(EntityIdentifier) returns (GetEdgesResponse);
rpc GetEdges(EntityIdentifier) returns (GetEdgesResponse);

rpc GetName(EntityIdentifier) returns (GetNameResponse);
rpc GetName(EntityIdentifier) returns (GetNameResponse);

rpc Copy(CopyRequest) returns (Body);
rpc Copy(CopyRequest) returns (Body);

rpc GetUpdateState(EntityIdentifier) returns (UpdateState);
rpc GetUpdateState(EntityIdentifier) returns (UpdateState);
}

enum GetType{
NONE = 0;
MASTER = 1;
ORIGINAL = 2;
PARENT=3;
NONE = 0;
MASTER = 1;
ORIGINAL = 2;
PARENT=3;
}

message GetRequest{
string id = 1;
GetType body_type = 2;
string id = 1;
GetType body_type = 2;
}

message GetAllRequest{
string parent = 1;
string parent = 1;
}

message GetAllResponse{
repeated Body bodies = 1;
repeated Body bodies = 1;
}

message SetAssignedMaterialRequest{
string id=1;
string material=2;
string id=1;
string material=2;
}

message SetAssignedMaterialResponse{
Material material=1;
Material material=1;
}

message TranslateRequest{
repeated string ids=1;
Direction direction=2;
float distance=3;
repeated string ids=1;
Direction direction=2;
float distance=3;
}

message GetFacesResponse {
repeated Face faces=1;
repeated Face faces=1;
}

message CreateBodyFromFaceRequest {
string name=1;
string parent=2;
string face=3;
string name=1;
string parent=2;
string face=3;
}

message CreateExtrudedBodyFromFaceProfileRequest {
string name=1;
string parent=2;
string face=3;
double distance=4;
string name=1;
string parent=2;
string face=3;
double distance=4;
}

message CreatePlanarBodyRequest {
string name=1;
string parent=2;
Plane plane=3;
Geometries geometries=4;
string name=1;
string parent=2;
Plane plane=3;
Geometries geometries=4;
}

message CreateExtrudedBodyRequest {
string name=1;
string parent=2;
Plane plane=3;
Geometries geometries=4;
double distance=5;
string name=1;
string parent=2;
Plane plane=3;
Geometries geometries=4;
double distance=5;
}

message GetVolumeResponse {
double volume=1;
double volume=1;
}

message GetTessellationResponse{
map<string, Tessellation> face_tessellation=1;
map<string, Tessellation> face_tessellation=1;
}

message GetEdgesResponse {
repeated Edge edges=1;
repeated Edge edges=1;
}

message GetNameResponse {
string name=1;
string name=1;
}

message CopyRequest {
string id=1;
string parent=2;
string name=3;
string id=1;
string parent=2;
string name=3;
}
Loading