diff --git a/ansys/api/discovery/v0/__init__.py b/ansys/api/discovery/v0/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/ansys/api/discovery/v0/admintools.proto b/ansys/api/discovery/v0/admintools.proto new file mode 100644 index 0000000..30ee193 --- /dev/null +++ b/ansys/api/discovery/v0/admintools.proto @@ -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; +} diff --git a/ansys/api/discovery/v0/datamodels.proto b/ansys/api/discovery/v0/datamodels.proto index 0edef11..8083aef 100644 --- a/ansys/api/discovery/v0/datamodels.proto +++ b/ansys/api/discovery/v0/datamodels.proto @@ -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; @@ -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; } // diff --git a/ansys/api/discovery/v0/discoveryapi.proto b/ansys/api/discovery/v0/discoveryapi.proto index 3f98e7c..130cd0c 100644 --- a/ansys/api/discovery/v0/discoveryapi.proto +++ b/ansys/api/discovery/v0/discoveryapi.proto @@ -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; } diff --git a/ansys/api/discovery/v0/historytrackparameters.proto b/ansys/api/discovery/v0/historytrackparameters.proto index ae20249..388d3d6 100644 --- a/ansys/api/discovery/v0/historytrackparameters.proto +++ b/ansys/api/discovery/v0/historytrackparameters.proto @@ -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; @@ -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{ @@ -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; +} diff --git a/setup.py b/setup.py index 44bbe59..9743793 100644 --- a/setup.py +++ b/setup.py @@ -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()