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
Empty file.
72 changes: 72 additions & 0 deletions ansys/api/discovery/v0/admintools.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// �2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
syntax = "proto3";
package ansys.api.discovery.v0.AdminTools;

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

option csharp_namespace = "Ansys.Api.Discovery.V0.AdminTools";
option go_package = "ansys/api/discovery/v0";

service AdminTools{

rpc GetLogs(LogsRequest) returns(stream LogsResponse);

rpc Health(google.protobuf.Empty) returns(HealthResponse);

rpc Shutdown(google.protobuf.Empty) returns(google.protobuf.Empty);

rpc StatusInfo(google.protobuf.Empty) returns(StatusInfoResponse);

rpc SetApplicationTitle(SetApplicationTitleRequest) returns(google.protobuf.Empty);

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

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

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

message LogsRequest{

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

PeriodType period_type = 4;

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;
}

message HealthResponse{
string message = 1;
}

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"];
}

message SetApplicationTitleRequest{
string title =1;
}
11 changes: 10 additions & 1 deletion ansys/api/discovery/v0/datamodels.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// �2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
// �2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
syntax = "proto3";
package ansys.api.discovery.v0;

Expand Down Expand Up @@ -101,6 +101,15 @@ message InputParameter {
double quantity_value=5;
int32 unit=6;
string unit_abbreviation=7;
InputParameterType input_type=8;
string parent_object_id = 9;
}

enum InputParameterType{
PHYSICS=0;
DRIVING_DIMENSION=1;
HISTORY_TRACK=2;
UNKNOWN=3;
}

//
Expand Down
9 changes: 5 additions & 4 deletions ansys/api/discovery/v0/discoveryapi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ message SetVersionResponse{
}

enum ApiVersion {
V_21 = 0;
V_22 = 1;
V_231 = 2;
V_232 = 3;
INVALID = 0;
V_21 = 21;
V_22 = 22;
V_231 = 231;
V_232 = 232;
}
19 changes: 18 additions & 1 deletion ansys/api/discovery/v0/historytrackparameters.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// �2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
// �2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
syntax = "proto3";
package ansys.api.discovery.v0.HistoryTrackParameters;

Expand All @@ -22,6 +22,10 @@ service HistoryTrackParameters{

// Replays the history block parameters
rpc Replay(google.protobuf.Empty) returns(ReplayResponse);

rpc GetRecordingStatus(google.protobuf.Empty) returns(GetRecordingStatusResponse);

rpc SetRecordingStatus(SetRecordingStatusRequest) returns(google.protobuf.Empty);
}

message GetAllResponse{
Expand All @@ -37,3 +41,16 @@ message ReplayResponse{
// The result
string result = 1;
}

enum RecordingStatus{
OFF=0;
ON=1;
}

message GetRecordingStatusResponse{
RecordingStatus status=1;
}

message SetRecordingStatusRequest{
RecordingStatus status=1;
}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

product = "discovery"
library = ""
package_info = ["ansys", "api", product, library]
package_info = ["ansys", "api", product, library,"v0"]
with open(os.path.join(HERE, "ansys", "api", product, library, "VERSION"), encoding="utf-8") as f:
version = f.read().strip()

Expand Down