ansys-api-discovery 0.5.2__py3-none-any.whl → 0.6.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ansys-api-discovery might be problematic. Click here for more details.

Files changed (53) hide show
  1. ansys/api/discovery/VERSION +1 -1
  2. ansys/api/discovery/v0/conditions.proto +11 -46
  3. ansys/api/discovery/v0/conditions_pb2.py +12 -70
  4. ansys/api/discovery/v0/conditions_pb2.pyi +16 -88
  5. ansys/api/discovery/v0/conditions_pb2_grpc.py +40 -139
  6. ansys/api/discovery/v0/conditions_pb2_grpc.pyi +20 -50
  7. ansys/api/discovery/v0/conditionsfluid.proto +246 -0
  8. ansys/api/discovery/v0/conditionsfluid_pb2.py +85 -0
  9. ansys/api/discovery/v0/conditionsfluid_pb2.pyi +590 -0
  10. ansys/api/discovery/v0/conditionsfluid_pb2_grpc.py +662 -0
  11. ansys/api/discovery/v0/conditionsfluid_pb2_grpc.pyi +208 -0
  12. ansys/api/discovery/v0/conditionsstructural.proto +407 -0
  13. ansys/api/discovery/v0/conditionsstructural_pb2.py +113 -0
  14. ansys/api/discovery/v0/conditionsstructural_pb2.pyi +839 -0
  15. ansys/api/discovery/v0/conditionsstructural_pb2_grpc.py +2746 -0
  16. ansys/api/discovery/v0/conditionsstructural_pb2_grpc.pyi +854 -0
  17. ansys/api/discovery/v0/conditionsthermal.proto +179 -0
  18. ansys/api/discovery/v0/conditionsthermal_pb2.py +63 -0
  19. ansys/api/discovery/v0/conditionsthermal_pb2.pyi +399 -0
  20. ansys/api/discovery/v0/conditionsthermal_pb2_grpc.py +665 -0
  21. ansys/api/discovery/v0/conditionsthermal_pb2_grpc.pyi +217 -0
  22. ansys/api/discovery/v0/definedvariationstable.proto +12 -0
  23. ansys/api/discovery/v0/definedvariationstable_pb2.py +12 -116
  24. ansys/api/discovery/v0/definedvariationstable_pb2.pyi +16 -0
  25. ansys/api/discovery/v0/definedvariationstable_pb2_grpc.py +68 -0
  26. ansys/api/discovery/v0/definedvariationstable_pb2_grpc.pyi +26 -0
  27. ansys/api/discovery/v0/discoverymodels.proto +91 -25
  28. ansys/api/discovery/v0/discoverymodels_pb2.py +59 -211
  29. ansys/api/discovery/v0/discoverymodels_pb2.pyi +264 -50
  30. ansys/api/discovery/v0/historytrackparameters_pb2.py +3 -50
  31. ansys/api/discovery/v0/messaging.proto +0 -2
  32. ansys/api/discovery/v0/messaging_pb2.py +8 -20
  33. ansys/api/discovery/v0/monitors.proto +137 -0
  34. ansys/api/discovery/v0/monitors_pb2.py +42 -0
  35. ansys/api/discovery/v0/monitors_pb2.pyi +307 -0
  36. ansys/api/discovery/v0/monitors_pb2_grpc.py +67 -0
  37. ansys/api/discovery/v0/monitors_pb2_grpc.pyi +27 -0
  38. ansys/api/discovery/v0/scriptparameters_pb2.py +3 -37
  39. ansys/api/discovery/v0/simulations.proto +0 -1
  40. ansys/api/discovery/v0/simulations_pb2.py +8 -19
  41. ansys/api/discovery/v0/solution.proto +19 -2
  42. ansys/api/discovery/v0/solution_pb2.py +18 -40
  43. ansys/api/discovery/v0/solution_pb2.pyi +53 -0
  44. ansys/api/discovery/v0/solution_pb2_grpc.py +33 -0
  45. ansys/api/discovery/v0/solution_pb2_grpc.pyi +10 -0
  46. ansys/api/discovery/v0/units_pb2.py +3 -1232
  47. {ansys_api_discovery-0.5.2.dist-info → ansys_api_discovery-0.6.1.dist-info}/METADATA +8 -8
  48. ansys_api_discovery-0.6.1.dist-info/RECORD +75 -0
  49. {ansys_api_discovery-0.5.2.dist-info → ansys_api_discovery-0.6.1.dist-info}/WHEEL +1 -1
  50. ansys_api_discovery-0.5.2.dist-info/RECORD +0 -55
  51. {ansys_api_discovery-0.5.2.dist-info → ansys_api_discovery-0.6.1.dist-info}/LICENSE +0 -0
  52. {ansys_api_discovery-0.5.2.dist-info → ansys_api_discovery-0.6.1.dist-info}/entry_points.txt +0 -0
  53. {ansys_api_discovery-0.5.2.dist-info → ansys_api_discovery-0.6.1.dist-info}/top_level.txt +0 -0
@@ -2,60 +2,38 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # source: ansys/api/discovery/v0/solution.proto
4
4
  """Generated protocol buffer code."""
5
+ from google.protobuf.internal import builder as _builder
5
6
  from google.protobuf import descriptor as _descriptor
6
7
  from google.protobuf import descriptor_pool as _descriptor_pool
7
- from google.protobuf import message as _message
8
- from google.protobuf import reflection as _reflection
9
8
  from google.protobuf import symbol_database as _symbol_database
10
9
  # @@protoc_insertion_point(imports)
11
10
 
12
11
  _sym_db = _symbol_database.Default()
13
12
 
14
13
 
15
- from ansys.api.dbu.v0 import dbumodels_pb2 as ansys_dot_api_dot_dbu_dot_v0_dot_dbumodels__pb2
16
- from ansys.api.discovery.v0 import discoverymodels_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2
17
14
  from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
18
15
 
19
16
 
20
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%ansys/api/discovery/v0/solution.proto\x12\x1f\x61nsys.api.discovery.v0.solution\x1a ansys/api/dbu/v0/dbumodels.proto\x1a,ansys/api/discovery/v0/discoverymodels.proto\x1a\x1bgoogle/protobuf/empty.proto\"y\n\x15SolverFidelityRequest\x12Q\n\x10simulation_stage\x18\x01 \x01(\x0b\x32\x37.ansys.api.discovery.v0.solution.SimulationStageRequest\x12\r\n\x05value\x18\x02 \x01(\x01\";\n\x16SimulationStageRequest\x12\x12\n\nsimulation\x18\x01 \x01(\t\x12\r\n\x05stage\x18\x02 \x01(\t\"\'\n\x16SolverFidelityResponse\x12\r\n\x05value\x18\x01 \x01(\x01\x32\xf7\x01\n\x08Solution\x12\x85\x01\n\x11GetSolverFidelity\x12\x37.ansys.api.discovery.v0.solution.SimulationStageRequest\x1a\x37.ansys.api.discovery.v0.solution.SolverFidelityResponse\x12\x63\n\x11SetSolverFidelity\x12\x36.ansys.api.discovery.v0.solution.SolverFidelityRequest\x1a\x16.google.protobuf.EmptyB\"\xaa\x02\x1f\x41nsys.Api.Discovery.V0.Solutionb\x06proto3')
17
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%ansys/api/discovery/v0/solution.proto\x12\x1f\x61nsys.api.discovery.v0.solution\x1a\x1bgoogle/protobuf/empty.proto\"y\n\x15SolverFidelityRequest\x12Q\n\x10simulation_stage\x18\x01 \x01(\x0b\x32\x37.ansys.api.discovery.v0.solution.SimulationStageRequest\x12\r\n\x05value\x18\x02 \x01(\x01\";\n\x16SimulationStageRequest\x12\x12\n\nsimulation\x18\x01 \x01(\t\x12\r\n\x05stage\x18\x02 \x01(\t\"\'\n\x16SolverFidelityResponse\x12\r\n\x05value\x18\x01 \x01(\x01\"\xab\x01\n\x15SolveExecutionRequest\x12\x15\n\rsimulation_id\x18\x01 \x01(\t\x12\x46\n\x0esolver_manager\x18\x02 \x01(\x0e\x32..ansys.api.discovery.v0.solution.SolverManager\x12\x18\n\x10\x65xecute_remotely\x18\x03 \x01(\x08\x12\x19\n\x11variation_id_list\x18\x04 \x03(\t\":\n\x16SolveExecutionResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x0f\n\x07message\x18\x02 \x01(\t*(\n\rSolverManager\x12\x0b\n\x07\x41RTEMIS\x10\x00\x12\n\n\x06\x41POLLO\x10\x01\x32\xf1\x02\n\x08Solution\x12\x85\x01\n\x11GetSolverFidelity\x12\x37.ansys.api.discovery.v0.solution.SimulationStageRequest\x1a\x37.ansys.api.discovery.v0.solution.SolverFidelityResponse\x12\x63\n\x11SetSolverFidelity\x12\x36.ansys.api.discovery.v0.solution.SolverFidelityRequest\x1a\x16.google.protobuf.Empty\x12x\n\x05Solve\x12\x36.ansys.api.discovery.v0.solution.SolveExecutionRequest\x1a\x37.ansys.api.discovery.v0.solution.SolveExecutionResponseB\"\xaa\x02\x1f\x41nsys.Api.Discovery.V0.Solutionb\x06proto3')
21
18
 
22
-
23
-
24
- _SOLVERFIDELITYREQUEST = DESCRIPTOR.message_types_by_name['SolverFidelityRequest']
25
- _SIMULATIONSTAGEREQUEST = DESCRIPTOR.message_types_by_name['SimulationStageRequest']
26
- _SOLVERFIDELITYRESPONSE = DESCRIPTOR.message_types_by_name['SolverFidelityResponse']
27
- SolverFidelityRequest = _reflection.GeneratedProtocolMessageType('SolverFidelityRequest', (_message.Message,), {
28
- 'DESCRIPTOR' : _SOLVERFIDELITYREQUEST,
29
- '__module__' : 'ansys.api.discovery.v0.solution_pb2'
30
- # @@protoc_insertion_point(class_scope:ansys.api.discovery.v0.solution.SolverFidelityRequest)
31
- })
32
- _sym_db.RegisterMessage(SolverFidelityRequest)
33
-
34
- SimulationStageRequest = _reflection.GeneratedProtocolMessageType('SimulationStageRequest', (_message.Message,), {
35
- 'DESCRIPTOR' : _SIMULATIONSTAGEREQUEST,
36
- '__module__' : 'ansys.api.discovery.v0.solution_pb2'
37
- # @@protoc_insertion_point(class_scope:ansys.api.discovery.v0.solution.SimulationStageRequest)
38
- })
39
- _sym_db.RegisterMessage(SimulationStageRequest)
40
-
41
- SolverFidelityResponse = _reflection.GeneratedProtocolMessageType('SolverFidelityResponse', (_message.Message,), {
42
- 'DESCRIPTOR' : _SOLVERFIDELITYRESPONSE,
43
- '__module__' : 'ansys.api.discovery.v0.solution_pb2'
44
- # @@protoc_insertion_point(class_scope:ansys.api.discovery.v0.solution.SolverFidelityResponse)
45
- })
46
- _sym_db.RegisterMessage(SolverFidelityResponse)
47
-
48
- _SOLUTION = DESCRIPTOR.services_by_name['Solution']
19
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
20
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ansys.api.discovery.v0.solution_pb2', globals())
49
21
  if _descriptor._USE_C_DESCRIPTORS == False:
50
22
 
51
23
  DESCRIPTOR._options = None
52
24
  DESCRIPTOR._serialized_options = b'\252\002\037Ansys.Api.Discovery.V0.Solution'
53
- _SOLVERFIDELITYREQUEST._serialized_start=183
54
- _SOLVERFIDELITYREQUEST._serialized_end=304
55
- _SIMULATIONSTAGEREQUEST._serialized_start=306
56
- _SIMULATIONSTAGEREQUEST._serialized_end=365
57
- _SOLVERFIDELITYRESPONSE._serialized_start=367
58
- _SOLVERFIDELITYRESPONSE._serialized_end=406
59
- _SOLUTION._serialized_start=409
60
- _SOLUTION._serialized_end=656
25
+ _SOLVERMANAGER._serialized_start=562
26
+ _SOLVERMANAGER._serialized_end=602
27
+ _SOLVERFIDELITYREQUEST._serialized_start=103
28
+ _SOLVERFIDELITYREQUEST._serialized_end=224
29
+ _SIMULATIONSTAGEREQUEST._serialized_start=226
30
+ _SIMULATIONSTAGEREQUEST._serialized_end=285
31
+ _SOLVERFIDELITYRESPONSE._serialized_start=287
32
+ _SOLVERFIDELITYRESPONSE._serialized_end=326
33
+ _SOLVEEXECUTIONREQUEST._serialized_start=329
34
+ _SOLVEEXECUTIONREQUEST._serialized_end=500
35
+ _SOLVEEXECUTIONRESPONSE._serialized_start=502
36
+ _SOLVEEXECUTIONRESPONSE._serialized_end=560
37
+ _SOLUTION._serialized_start=605
38
+ _SOLUTION._serialized_end=974
61
39
  # @@protoc_insertion_point(module_scope)
@@ -4,12 +4,29 @@ isort:skip_file
4
4
  """
5
5
  import builtins
6
6
  import google.protobuf.descriptor
7
+ import google.protobuf.internal.containers
8
+ import google.protobuf.internal.enum_type_wrapper
7
9
  import google.protobuf.message
8
10
  import typing
9
11
  import typing_extensions
10
12
 
11
13
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ...
12
14
 
15
+ class _SolverManager:
16
+ ValueType = typing.NewType('ValueType', builtins.int)
17
+ V: typing_extensions.TypeAlias = ValueType
18
+ class _SolverManagerEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SolverManager.ValueType], builtins.type):
19
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ...
20
+ ARTEMIS: SolverManager.ValueType = ... # 0
21
+ APOLLO: SolverManager.ValueType = ... # 1
22
+ class SolverManager(_SolverManager, metaclass=_SolverManagerEnumTypeWrapper):
23
+ pass
24
+
25
+ ARTEMIS: SolverManager.ValueType = ... # 0
26
+ APOLLO: SolverManager.ValueType = ... # 1
27
+ global___SolverManager = SolverManager
28
+
29
+
13
30
  class SolverFidelityRequest(google.protobuf.message.Message):
14
31
  DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
15
32
  SIMULATION_STAGE_FIELD_NUMBER: builtins.int
@@ -27,6 +44,7 @@ class SolverFidelityRequest(google.protobuf.message.Message):
27
44
  global___SolverFidelityRequest = SolverFidelityRequest
28
45
 
29
46
  class SimulationStageRequest(google.protobuf.message.Message):
47
+ """TODO Replace string with Enum"""
30
48
  DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
31
49
  SIMULATION_FIELD_NUMBER: builtins.int
32
50
  STAGE_FIELD_NUMBER: builtins.int
@@ -50,3 +68,38 @@ class SolverFidelityResponse(google.protobuf.message.Message):
50
68
  ) -> None: ...
51
69
  def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ...
52
70
  global___SolverFidelityResponse = SolverFidelityResponse
71
+
72
+ class SolveExecutionRequest(google.protobuf.message.Message):
73
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
74
+ SIMULATION_ID_FIELD_NUMBER: builtins.int
75
+ SOLVER_MANAGER_FIELD_NUMBER: builtins.int
76
+ EXECUTE_REMOTELY_FIELD_NUMBER: builtins.int
77
+ VARIATION_ID_LIST_FIELD_NUMBER: builtins.int
78
+ simulation_id: typing.Text = ...
79
+ solver_manager: global___SolverManager.ValueType = ...
80
+ execute_remotely: builtins.bool = ...
81
+ @property
82
+ def variation_id_list(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ...
83
+ def __init__(self,
84
+ *,
85
+ simulation_id : typing.Text = ...,
86
+ solver_manager : global___SolverManager.ValueType = ...,
87
+ execute_remotely : builtins.bool = ...,
88
+ variation_id_list : typing.Optional[typing.Iterable[typing.Text]] = ...,
89
+ ) -> None: ...
90
+ def ClearField(self, field_name: typing_extensions.Literal["execute_remotely",b"execute_remotely","simulation_id",b"simulation_id","solver_manager",b"solver_manager","variation_id_list",b"variation_id_list"]) -> None: ...
91
+ global___SolveExecutionRequest = SolveExecutionRequest
92
+
93
+ class SolveExecutionResponse(google.protobuf.message.Message):
94
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
95
+ SUCCESS_FIELD_NUMBER: builtins.int
96
+ MESSAGE_FIELD_NUMBER: builtins.int
97
+ success: builtins.bool = ...
98
+ message: typing.Text = ...
99
+ def __init__(self,
100
+ *,
101
+ success : builtins.bool = ...,
102
+ message : typing.Text = ...,
103
+ ) -> None: ...
104
+ def ClearField(self, field_name: typing_extensions.Literal["message",b"message","success",b"success"]) -> None: ...
105
+ global___SolveExecutionResponse = SolveExecutionResponse
@@ -25,6 +25,11 @@ class SolutionStub(object):
25
25
  request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SolverFidelityRequest.SerializeToString,
26
26
  response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
27
27
  )
28
+ self.Solve = channel.unary_unary(
29
+ '/ansys.api.discovery.v0.solution.Solution/Solve',
30
+ request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SolveExecutionRequest.SerializeToString,
31
+ response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SolveExecutionResponse.FromString,
32
+ )
28
33
 
29
34
 
30
35
  class SolutionServicer(object):
@@ -42,6 +47,12 @@ class SolutionServicer(object):
42
47
  context.set_details('Method not implemented!')
43
48
  raise NotImplementedError('Method not implemented!')
44
49
 
50
+ def Solve(self, request, context):
51
+ """Missing associated documentation comment in .proto file."""
52
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
53
+ context.set_details('Method not implemented!')
54
+ raise NotImplementedError('Method not implemented!')
55
+
45
56
 
46
57
  def add_SolutionServicer_to_server(servicer, server):
47
58
  rpc_method_handlers = {
@@ -55,6 +66,11 @@ def add_SolutionServicer_to_server(servicer, server):
55
66
  request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SolverFidelityRequest.FromString,
56
67
  response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
57
68
  ),
69
+ 'Solve': grpc.unary_unary_rpc_method_handler(
70
+ servicer.Solve,
71
+ request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SolveExecutionRequest.FromString,
72
+ response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SolveExecutionResponse.SerializeToString,
73
+ ),
58
74
  }
59
75
  generic_handler = grpc.method_handlers_generic_handler(
60
76
  'ansys.api.discovery.v0.solution.Solution', rpc_method_handlers)
@@ -98,3 +114,20 @@ class Solution(object):
98
114
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
99
115
  options, channel_credentials,
100
116
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
117
+
118
+ @staticmethod
119
+ def Solve(request,
120
+ target,
121
+ options=(),
122
+ channel_credentials=None,
123
+ call_credentials=None,
124
+ insecure=False,
125
+ compression=None,
126
+ wait_for_ready=None,
127
+ timeout=None,
128
+ metadata=None):
129
+ return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.solution.Solution/Solve',
130
+ ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SolveExecutionRequest.SerializeToString,
131
+ ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SolveExecutionResponse.FromString,
132
+ options, channel_credentials,
133
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -17,6 +17,10 @@ class SolutionStub:
17
17
  ansys.api.discovery.v0.solution_pb2.SolverFidelityRequest,
18
18
  google.protobuf.empty_pb2.Empty] = ...
19
19
 
20
+ Solve: grpc.UnaryUnaryMultiCallable[
21
+ ansys.api.discovery.v0.solution_pb2.SolveExecutionRequest,
22
+ ansys.api.discovery.v0.solution_pb2.SolveExecutionResponse] = ...
23
+
20
24
 
21
25
  class SolutionServicer(metaclass=abc.ABCMeta):
22
26
  @abc.abstractmethod
@@ -31,5 +35,11 @@ class SolutionServicer(metaclass=abc.ABCMeta):
31
35
  context: grpc.ServicerContext,
32
36
  ) -> google.protobuf.empty_pb2.Empty: ...
33
37
 
38
+ @abc.abstractmethod
39
+ def Solve(self,
40
+ request: ansys.api.discovery.v0.solution_pb2.SolveExecutionRequest,
41
+ context: grpc.ServicerContext,
42
+ ) -> ansys.api.discovery.v0.solution_pb2.SolveExecutionResponse: ...
43
+
34
44
 
35
45
  def add_SolutionServicer_to_server(servicer: SolutionServicer, server: grpc.Server) -> None: ...