ansys-api-discovery 0.6.3__py3-none-any.whl → 0.6.5__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.
- ansys/api/discovery/VERSION +1 -1
- ansys/api/discovery/v0/assignments/boltassignment.proto +40 -0
- ansys/api/discovery/v0/assignments/boltassignment_pb2.py +37 -0
- ansys/api/discovery/v0/assignments/boltassignment_pb2.pyi +95 -0
- ansys/api/discovery/v0/assignments/boltassignment_pb2_grpc.py +67 -0
- ansys/api/discovery/v0/assignments/boltassignment_pb2_grpc.pyi +27 -0
- ansys/api/discovery/v0/conditions/acceleration.proto +52 -0
- ansys/api/discovery/v0/conditions/acceleration_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/acceleration_pb2.pyi +94 -0
- ansys/api/discovery/v0/conditions/acceleration_pb2_grpc.py +365 -0
- ansys/api/discovery/v0/conditions/acceleration_pb2_grpc.pyi +118 -0
- ansys/api/discovery/v0/conditions/bearing.proto +47 -0
- ansys/api/discovery/v0/conditions/bearing_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/bearing_pb2.pyi +102 -0
- ansys/api/discovery/v0/conditions/bearing_pb2_grpc.py +200 -0
- ansys/api/discovery/v0/conditions/bearing_pb2_grpc.pyi +68 -0
- ansys/api/discovery/v0/conditions/boltpreload.proto +94 -0
- ansys/api/discovery/v0/conditions/boltpreload_pb2.py +48 -0
- ansys/api/discovery/v0/conditions/boltpreload_pb2.pyi +218 -0
- ansys/api/discovery/v0/conditions/boltpreload_pb2_grpc.py +431 -0
- ansys/api/discovery/v0/conditions/boltpreload_pb2_grpc.pyi +138 -0
- ansys/api/discovery/v0/{conditions.proto → conditions/condition.proto} +5 -4
- ansys/api/discovery/v0/conditions/condition_pb2.py +34 -0
- ansys/api/discovery/v0/{conditions_pb2.pyi → conditions/condition_pb2.pyi} +13 -6
- ansys/api/discovery/v0/{conditions_pb2_grpc.py → conditions/condition_pb2_grpc.py} +21 -21
- ansys/api/discovery/v0/{conditions_pb2_grpc.pyi → conditions/condition_pb2_grpc.pyi} +10 -10
- ansys/api/discovery/v0/conditions/convection.proto +43 -0
- ansys/api/discovery/v0/conditions/convection_pb2.py +34 -0
- ansys/api/discovery/v0/conditions/convection_pb2.pyi +89 -0
- ansys/api/discovery/v0/conditions/convection_pb2_grpc.py +166 -0
- ansys/api/discovery/v0/conditions/convection_pb2_grpc.pyi +55 -0
- ansys/api/discovery/v0/conditions/displacement.proto +105 -0
- ansys/api/discovery/v0/conditions/displacement_pb2.py +48 -0
- ansys/api/discovery/v0/conditions/displacement_pb2.pyi +209 -0
- ansys/api/discovery/v0/conditions/displacement_pb2_grpc.py +827 -0
- ansys/api/discovery/v0/conditions/displacement_pb2_grpc.pyi +258 -0
- ansys/api/discovery/v0/{conditionsfluid.proto → conditions/flow.proto} +19 -24
- ansys/api/discovery/v0/conditions/flow_pb2.py +86 -0
- ansys/api/discovery/v0/{conditionsfluid_pb2.pyi → conditions/flow_pb2.pyi} +51 -34
- ansys/api/discovery/v0/{conditionsfluid_pb2_grpc.py → conditions/flow_pb2_grpc.py} +86 -86
- ansys/api/discovery/v0/{conditionsfluid_pb2_grpc.pyi → conditions/flow_pb2_grpc.pyi} +32 -32
- ansys/api/discovery/v0/conditions/fluidinitialtemperature.proto +13 -0
- ansys/api/discovery/v0/conditions/fluidinitialtemperature_pb2.py +28 -0
- ansys/api/discovery/v0/conditions/fluidinitialtemperature_pb2.pyi +7 -0
- ansys/api/discovery/v0/conditions/fluidinitialtemperature_pb2_grpc.py +66 -0
- ansys/api/discovery/v0/conditions/fluidinitialtemperature_pb2_grpc.pyi +24 -0
- ansys/api/discovery/v0/conditions/force.proto +131 -0
- ansys/api/discovery/v0/conditions/force_pb2.py +56 -0
- ansys/api/discovery/v0/conditions/force_pb2.pyi +286 -0
- ansys/api/discovery/v0/conditions/force_pb2_grpc.py +829 -0
- ansys/api/discovery/v0/conditions/force_pb2_grpc.pyi +257 -0
- ansys/api/discovery/v0/conditions/gravity.proto +39 -0
- ansys/api/discovery/v0/conditions/gravity_pb2.py +32 -0
- ansys/api/discovery/v0/conditions/gravity_pb2.pyi +65 -0
- ansys/api/discovery/v0/conditions/gravity_pb2_grpc.py +266 -0
- ansys/api/discovery/v0/conditions/gravity_pb2_grpc.pyi +91 -0
- ansys/api/discovery/v0/conditions/heat.proto +90 -0
- ansys/api/discovery/v0/conditions/heat_pb2.py +46 -0
- ansys/api/discovery/v0/conditions/heat_pb2.pyi +210 -0
- ansys/api/discovery/v0/conditions/heat_pb2_grpc.py +332 -0
- ansys/api/discovery/v0/conditions/heat_pb2_grpc.pyi +108 -0
- ansys/api/discovery/v0/conditions/insulated.proto +34 -0
- ansys/api/discovery/v0/conditions/insulated_pb2.py +34 -0
- ansys/api/discovery/v0/conditions/insulated_pb2.pyi +73 -0
- ansys/api/discovery/v0/conditions/insulated_pb2_grpc.py +100 -0
- ansys/api/discovery/v0/conditions/insulated_pb2_grpc.pyi +35 -0
- ansys/api/discovery/v0/conditions/mass.proto +49 -0
- ansys/api/discovery/v0/conditions/mass_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/mass_pb2.pyi +98 -0
- ansys/api/discovery/v0/conditions/mass_pb2_grpc.py +266 -0
- ansys/api/discovery/v0/conditions/mass_pb2_grpc.pyi +88 -0
- ansys/api/discovery/v0/conditions/moment.proto +67 -0
- ansys/api/discovery/v0/conditions/moment_pb2.py +40 -0
- ansys/api/discovery/v0/conditions/moment_pb2.pyi +132 -0
- ansys/api/discovery/v0/conditions/moment_pb2_grpc.py +398 -0
- ansys/api/discovery/v0/conditions/moment_pb2_grpc.pyi +128 -0
- ansys/api/discovery/v0/conditions/porous.proto +116 -0
- ansys/api/discovery/v0/conditions/porous_pb2.py +44 -0
- ansys/api/discovery/v0/conditions/porous_pb2.pyi +217 -0
- ansys/api/discovery/v0/conditions/porous_pb2_grpc.py +534 -0
- ansys/api/discovery/v0/conditions/porous_pb2_grpc.pyi +181 -0
- ansys/api/discovery/v0/conditions/pressure.proto +43 -0
- ansys/api/discovery/v0/conditions/pressure_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/pressure_pb2.pyi +94 -0
- ansys/api/discovery/v0/conditions/pressure_pb2_grpc.py +134 -0
- ansys/api/discovery/v0/conditions/pressure_pb2_grpc.pyi +48 -0
- ansys/api/discovery/v0/conditions/rotatingfluidzone.proto +57 -0
- ansys/api/discovery/v0/conditions/rotatingfluidzone_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/rotatingfluidzone_pb2.pyi +102 -0
- ansys/api/discovery/v0/conditions/rotatingfluidzone_pb2_grpc.py +136 -0
- ansys/api/discovery/v0/conditions/rotatingfluidzone_pb2_grpc.pyi +54 -0
- ansys/api/discovery/v0/conditions/solidtemperature.proto +40 -0
- ansys/api/discovery/v0/conditions/solidtemperature_pb2.py +34 -0
- ansys/api/discovery/v0/conditions/solidtemperature_pb2.pyi +81 -0
- ansys/api/discovery/v0/conditions/solidtemperature_pb2_grpc.py +166 -0
- ansys/api/discovery/v0/conditions/solidtemperature_pb2_grpc.pyi +55 -0
- ansys/api/discovery/v0/conditions/springpreload.proto +105 -0
- ansys/api/discovery/v0/conditions/springpreload_pb2.py +50 -0
- ansys/api/discovery/v0/conditions/springpreload_pb2.pyi +250 -0
- ansys/api/discovery/v0/conditions/springpreload_pb2_grpc.py +431 -0
- ansys/api/discovery/v0/conditions/springpreload_pb2_grpc.pyi +138 -0
- ansys/api/discovery/v0/conditions/support.proto +98 -0
- ansys/api/discovery/v0/conditions/support_pb2.py +46 -0
- ansys/api/discovery/v0/conditions/support_pb2.pyi +200 -0
- ansys/api/discovery/v0/{conditionsthermal_pb2_grpc.py → conditions/support_pb2_grpc.py} +251 -221
- ansys/api/discovery/v0/conditions/support_pb2_grpc.pyi +218 -0
- ansys/api/discovery/v0/conditions/velocity.proto +58 -0
- ansys/api/discovery/v0/conditions/velocity_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/velocity_pb2.pyi +98 -0
- ansys/api/discovery/v0/conditions/velocity_pb2_grpc.py +497 -0
- ansys/api/discovery/v0/conditions/velocity_pb2_grpc.pyi +158 -0
- ansys/api/discovery/v0/conditions/wall.proto +209 -0
- ansys/api/discovery/v0/conditions/wall_pb2.py +70 -0
- ansys/api/discovery/v0/conditions/wall_pb2.pyi +494 -0
- ansys/api/discovery/v0/conditions/wall_pb2_grpc.py +633 -0
- ansys/api/discovery/v0/conditions/wall_pb2_grpc.pyi +211 -0
- ansys/api/discovery/v0/connections/contact.proto +110 -0
- ansys/api/discovery/v0/connections/contact_pb2.py +46 -0
- ansys/api/discovery/v0/connections/contact_pb2.pyi +242 -0
- ansys/api/discovery/v0/connections/contact_pb2_grpc.py +827 -0
- ansys/api/discovery/v0/connections/contact_pb2_grpc.pyi +258 -0
- ansys/api/discovery/v0/connections/contactgroup.proto +89 -0
- ansys/api/discovery/v0/connections/contactgroup_pb2.py +37 -0
- ansys/api/discovery/v0/connections/contactgroup_pb2.pyi +178 -0
- ansys/api/discovery/v0/connections/contactgroup_pb2_grpc.py +860 -0
- ansys/api/discovery/v0/connections/contactgroup_pb2_grpc.pyi +266 -0
- ansys/api/discovery/v0/connections/joint.proto +56 -0
- ansys/api/discovery/v0/connections/joint_pb2.py +40 -0
- ansys/api/discovery/v0/connections/joint_pb2.pyi +129 -0
- ansys/api/discovery/v0/connections/joint_pb2_grpc.py +167 -0
- ansys/api/discovery/v0/connections/joint_pb2_grpc.pyi +58 -0
- ansys/api/discovery/v0/discoverymodels.proto +34 -17
- ansys/api/discovery/v0/discoverymodels_pb2.py +46 -40
- ansys/api/discovery/v0/discoverymodels_pb2.pyi +118 -47
- ansys/api/discovery/v0/engineeringdata/boltdata.proto +37 -0
- ansys/api/discovery/v0/engineeringdata/boltdata_pb2.py +36 -0
- ansys/api/discovery/v0/engineeringdata/boltdata_pb2.pyi +81 -0
- ansys/api/discovery/v0/engineeringdata/boltdata_pb2_grpc.py +67 -0
- ansys/api/discovery/v0/engineeringdata/boltdata_pb2_grpc.pyi +27 -0
- ansys/api/discovery/v0/monitors.proto +4 -4
- ansys/api/discovery/v0/monitors_pb2.py +10 -10
- ansys/api/discovery/v0/monitors_pb2.pyi +11 -11
- ansys/api/discovery/v0/solution.proto +4 -3
- ansys/api/discovery/v0/solution_pb2.py +16 -15
- ansys/api/discovery/v0/solution_pb2.pyi +11 -7
- ansys/api/discovery/v0/unsupported.proto +10 -0
- ansys/api/discovery/v0/unsupported_pb2.py +5 -3
- ansys/api/discovery/v0/unsupported_pb2.pyi +14 -0
- ansys/api/discovery/v0/unsupported_pb2_grpc.py +68 -0
- ansys/api/discovery/v0/unsupported_pb2_grpc.pyi +24 -0
- {ansys_api_discovery-0.6.3.dist-info → ansys_api_discovery-0.6.5.dist-info}/METADATA +13 -4
- ansys_api_discovery-0.6.5.dist-info/RECORD +200 -0
- {ansys_api_discovery-0.6.3.dist-info → ansys_api_discovery-0.6.5.dist-info}/WHEEL +1 -1
- ansys/api/discovery/v0/conditions_pb2.py +0 -33
- ansys/api/discovery/v0/conditionsfluid_pb2.py +0 -85
- ansys/api/discovery/v0/conditionsstructural.proto +0 -595
- ansys/api/discovery/v0/conditionsstructural_pb2.py +0 -149
- ansys/api/discovery/v0/conditionsstructural_pb2.pyi +0 -1216
- ansys/api/discovery/v0/conditionsstructural_pb2_grpc.py +0 -4171
- ansys/api/discovery/v0/conditionsstructural_pb2_grpc.pyi +0 -1303
- ansys/api/discovery/v0/conditionsthermal.proto +0 -179
- ansys/api/discovery/v0/conditionsthermal_pb2.py +0 -63
- ansys/api/discovery/v0/conditionsthermal_pb2.pyi +0 -399
- ansys/api/discovery/v0/conditionsthermal_pb2_grpc.pyi +0 -217
- ansys_api_discovery-0.6.3.dist-info/RECORD +0 -85
- {ansys_api_discovery-0.6.3.dist-info → ansys_api_discovery-0.6.5.dist-info}/LICENSE +0 -0
- {ansys_api_discovery-0.6.3.dist-info → ansys_api_discovery-0.6.5.dist-info}/entry_points.txt +0 -0
- {ansys_api_discovery-0.6.3.dist-info → ansys_api_discovery-0.6.5.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
import abc
|
|
6
|
+
import ansys.api.discovery.v0.conditions.boltpreload_pb2
|
|
7
|
+
import ansys.api.discovery.v0.discoverymodels_pb2
|
|
8
|
+
import grpc
|
|
9
|
+
|
|
10
|
+
class BoltPreloadStub:
|
|
11
|
+
def __init__(self, channel: grpc.Channel) -> None: ...
|
|
12
|
+
CreateBoltPreloadClampForce: grpc.UnaryUnaryMultiCallable[
|
|
13
|
+
ansys.api.discovery.v0.conditions.boltpreload_pb2.BoltPreloadClampForceCreationRequest,
|
|
14
|
+
ansys.api.discovery.v0.conditions.boltpreload_pb2.BoltPreloadCreationResponse] = ...
|
|
15
|
+
"""Bolt prestress condition methods"""
|
|
16
|
+
|
|
17
|
+
CreateBoltPreloadGripLength: grpc.UnaryUnaryMultiCallable[
|
|
18
|
+
ansys.api.discovery.v0.conditions.boltpreload_pb2.BoltPreloadGripLengthCreationRequest,
|
|
19
|
+
ansys.api.discovery.v0.conditions.boltpreload_pb2.BoltPreloadCreationResponse] = ...
|
|
20
|
+
|
|
21
|
+
CreateBoltPreloadTorque: grpc.UnaryUnaryMultiCallable[
|
|
22
|
+
ansys.api.discovery.v0.conditions.boltpreload_pb2.BoltPreloadTorqueCreationRequest,
|
|
23
|
+
ansys.api.discovery.v0.conditions.boltpreload_pb2.BoltPreloadCreationResponse] = ...
|
|
24
|
+
|
|
25
|
+
ChangeBoltPreloadSide1Location: grpc.UnaryUnaryMultiCallable[
|
|
26
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeLocationExtendedRequest,
|
|
27
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
28
|
+
|
|
29
|
+
ChangeBoltPreloadSide2Location: grpc.UnaryUnaryMultiCallable[
|
|
30
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeLocationRequest,
|
|
31
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
32
|
+
|
|
33
|
+
ChangeBoltPreloadSpecification: grpc.UnaryUnaryMultiCallable[
|
|
34
|
+
ansys.api.discovery.v0.conditions.boltpreload_pb2.ChangeBoltPreloadSpecificationRequest,
|
|
35
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
36
|
+
|
|
37
|
+
ChangeBoltPreloadClampForce: grpc.UnaryUnaryMultiCallable[
|
|
38
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
39
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
40
|
+
|
|
41
|
+
ChangeBoltPreloadGripLength: grpc.UnaryUnaryMultiCallable[
|
|
42
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
43
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
44
|
+
|
|
45
|
+
ChangeBoltPreloadTorque: grpc.UnaryUnaryMultiCallable[
|
|
46
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
47
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
48
|
+
|
|
49
|
+
ChangeBoltPreloadTorqueCoefficient: grpc.UnaryUnaryMultiCallable[
|
|
50
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
51
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
52
|
+
|
|
53
|
+
ChangeBoltPreloadSpecifyBoltDiameter: grpc.UnaryUnaryMultiCallable[
|
|
54
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeBooleanRequest,
|
|
55
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
56
|
+
|
|
57
|
+
ChangeBoltPreloadShankDiameter: grpc.UnaryUnaryMultiCallable[
|
|
58
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
59
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class BoltPreloadServicer(metaclass=abc.ABCMeta):
|
|
63
|
+
@abc.abstractmethod
|
|
64
|
+
def CreateBoltPreloadClampForce(self,
|
|
65
|
+
request: ansys.api.discovery.v0.conditions.boltpreload_pb2.BoltPreloadClampForceCreationRequest,
|
|
66
|
+
context: grpc.ServicerContext,
|
|
67
|
+
) -> ansys.api.discovery.v0.conditions.boltpreload_pb2.BoltPreloadCreationResponse:
|
|
68
|
+
"""Bolt prestress condition methods"""
|
|
69
|
+
pass
|
|
70
|
+
|
|
71
|
+
@abc.abstractmethod
|
|
72
|
+
def CreateBoltPreloadGripLength(self,
|
|
73
|
+
request: ansys.api.discovery.v0.conditions.boltpreload_pb2.BoltPreloadGripLengthCreationRequest,
|
|
74
|
+
context: grpc.ServicerContext,
|
|
75
|
+
) -> ansys.api.discovery.v0.conditions.boltpreload_pb2.BoltPreloadCreationResponse: ...
|
|
76
|
+
|
|
77
|
+
@abc.abstractmethod
|
|
78
|
+
def CreateBoltPreloadTorque(self,
|
|
79
|
+
request: ansys.api.discovery.v0.conditions.boltpreload_pb2.BoltPreloadTorqueCreationRequest,
|
|
80
|
+
context: grpc.ServicerContext,
|
|
81
|
+
) -> ansys.api.discovery.v0.conditions.boltpreload_pb2.BoltPreloadCreationResponse: ...
|
|
82
|
+
|
|
83
|
+
@abc.abstractmethod
|
|
84
|
+
def ChangeBoltPreloadSide1Location(self,
|
|
85
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeLocationExtendedRequest,
|
|
86
|
+
context: grpc.ServicerContext,
|
|
87
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
88
|
+
|
|
89
|
+
@abc.abstractmethod
|
|
90
|
+
def ChangeBoltPreloadSide2Location(self,
|
|
91
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeLocationRequest,
|
|
92
|
+
context: grpc.ServicerContext,
|
|
93
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
94
|
+
|
|
95
|
+
@abc.abstractmethod
|
|
96
|
+
def ChangeBoltPreloadSpecification(self,
|
|
97
|
+
request: ansys.api.discovery.v0.conditions.boltpreload_pb2.ChangeBoltPreloadSpecificationRequest,
|
|
98
|
+
context: grpc.ServicerContext,
|
|
99
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
100
|
+
|
|
101
|
+
@abc.abstractmethod
|
|
102
|
+
def ChangeBoltPreloadClampForce(self,
|
|
103
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
104
|
+
context: grpc.ServicerContext,
|
|
105
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
106
|
+
|
|
107
|
+
@abc.abstractmethod
|
|
108
|
+
def ChangeBoltPreloadGripLength(self,
|
|
109
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
110
|
+
context: grpc.ServicerContext,
|
|
111
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
112
|
+
|
|
113
|
+
@abc.abstractmethod
|
|
114
|
+
def ChangeBoltPreloadTorque(self,
|
|
115
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
116
|
+
context: grpc.ServicerContext,
|
|
117
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
118
|
+
|
|
119
|
+
@abc.abstractmethod
|
|
120
|
+
def ChangeBoltPreloadTorqueCoefficient(self,
|
|
121
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
122
|
+
context: grpc.ServicerContext,
|
|
123
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
124
|
+
|
|
125
|
+
@abc.abstractmethod
|
|
126
|
+
def ChangeBoltPreloadSpecifyBoltDiameter(self,
|
|
127
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeBooleanRequest,
|
|
128
|
+
context: grpc.ServicerContext,
|
|
129
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
130
|
+
|
|
131
|
+
@abc.abstractmethod
|
|
132
|
+
def ChangeBoltPreloadShankDiameter(self,
|
|
133
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
134
|
+
context: grpc.ServicerContext,
|
|
135
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
def add_BoltPreloadServicer_to_server(servicer: BoltPreloadServicer, server: grpc.Server) -> None: ...
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
syntax = "proto3";
|
|
3
3
|
package ansys.api.discovery.v0.conditions;
|
|
4
4
|
|
|
5
|
+
import "ansys/api/dbu/v0/dbumodels.proto";
|
|
5
6
|
import "ansys/api/discovery/v0/discoverymodels.proto";
|
|
6
7
|
|
|
7
8
|
option csharp_namespace = "Ansys.Api.Discovery.V0.Conditions";
|
|
8
9
|
|
|
9
|
-
service
|
|
10
|
+
service Condition
|
|
10
11
|
{
|
|
11
12
|
//General condition methods
|
|
12
13
|
rpc DeleteCondition(DeleteConditionRequest) returns (ChangeResponse);
|
|
@@ -18,15 +19,15 @@ service Conditions
|
|
|
18
19
|
|
|
19
20
|
//General Requests
|
|
20
21
|
message DeleteConditionRequest{
|
|
21
|
-
|
|
22
|
+
ansys.api.dbu.v0.PhysicsEntityIdentifier object_id = 1;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
message ChangeConditionSuppressionStateRequest{
|
|
25
|
-
|
|
26
|
+
ansys.api.dbu.v0.PhysicsEntityIdentifier object_id = 1;
|
|
26
27
|
bool is_suppressed = 2;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
message ChangeConditionNameRequest{
|
|
30
|
-
|
|
31
|
+
ansys.api.dbu.v0.PhysicsEntityIdentifier object_id = 1;
|
|
31
32
|
string new_name = 2;
|
|
32
33
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: ansys/api/discovery/v0/conditions/condition.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf.internal import builder as _builder
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from ansys.api.dbu.v0 import dbumodels_pb2 as ansys_dot_api_dot_dbu_dot_v0_dot_dbumodels__pb2
|
|
15
|
+
from ansys.api.discovery.v0 import discoverymodels_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n1ansys/api/discovery/v0/conditions/condition.proto\x12!ansys.api.discovery.v0.conditions\x1a ansys/api/dbu/v0/dbumodels.proto\x1a,ansys/api/discovery/v0/discoverymodels.proto\"V\n\x16\x44\x65leteConditionRequest\x12<\n\tobject_id\x18\x01 \x01(\x0b\x32).ansys.api.dbu.v0.PhysicsEntityIdentifier\"}\n&ChangeConditionSuppressionStateRequest\x12<\n\tobject_id\x18\x01 \x01(\x0b\x32).ansys.api.dbu.v0.PhysicsEntityIdentifier\x12\x15\n\ris_suppressed\x18\x02 \x01(\x08\"l\n\x1a\x43hangeConditionNameRequest\x12<\n\tobject_id\x18\x01 \x01(\x0b\x32).ansys.api.dbu.v0.PhysicsEntityIdentifier\x12\x10\n\x08new_name\x18\x02 \x01(\t2\x96\x03\n\tCondition\x12t\n\x0f\x44\x65leteCondition\x12\x39.ansys.api.discovery.v0.conditions.DeleteConditionRequest\x1a&.ansys.api.discovery.v0.ChangeResponse\x12\x94\x01\n\x1f\x43hangeConditionSuppressionState\x12I.ansys.api.discovery.v0.conditions.ChangeConditionSuppressionStateRequest\x1a&.ansys.api.discovery.v0.ChangeResponse\x12|\n\x13\x43hangeConditionName\x12=.ansys.api.discovery.v0.conditions.ChangeConditionNameRequest\x1a&.ansys.api.discovery.v0.ChangeResponseB$\xaa\x02!Ansys.Api.Discovery.V0.Conditionsb\x06proto3')
|
|
19
|
+
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ansys.api.discovery.v0.conditions.condition_pb2', globals())
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
|
|
24
|
+
DESCRIPTOR._options = None
|
|
25
|
+
DESCRIPTOR._serialized_options = b'\252\002!Ansys.Api.Discovery.V0.Conditions'
|
|
26
|
+
_DELETECONDITIONREQUEST._serialized_start=168
|
|
27
|
+
_DELETECONDITIONREQUEST._serialized_end=254
|
|
28
|
+
_CHANGECONDITIONSUPPRESSIONSTATEREQUEST._serialized_start=256
|
|
29
|
+
_CHANGECONDITIONSUPPRESSIONSTATEREQUEST._serialized_end=381
|
|
30
|
+
_CHANGECONDITIONNAMEREQUEST._serialized_start=383
|
|
31
|
+
_CHANGECONDITIONNAMEREQUEST._serialized_end=491
|
|
32
|
+
_CONDITION._serialized_start=494
|
|
33
|
+
_CONDITION._serialized_end=900
|
|
34
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@generated by mypy-protobuf. Do not edit manually!
|
|
3
3
|
isort:skip_file
|
|
4
4
|
"""
|
|
5
|
+
import ansys.api.dbu.v0.dbumodels_pb2
|
|
5
6
|
import builtins
|
|
6
7
|
import google.protobuf.descriptor
|
|
7
8
|
import google.protobuf.message
|
|
@@ -14,11 +15,13 @@ class DeleteConditionRequest(google.protobuf.message.Message):
|
|
|
14
15
|
"""General Requests"""
|
|
15
16
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
16
17
|
OBJECT_ID_FIELD_NUMBER: builtins.int
|
|
17
|
-
|
|
18
|
+
@property
|
|
19
|
+
def object_id(self) -> ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier: ...
|
|
18
20
|
def __init__(self,
|
|
19
21
|
*,
|
|
20
|
-
object_id : typing.
|
|
22
|
+
object_id : typing.Optional[ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier] = ...,
|
|
21
23
|
) -> None: ...
|
|
24
|
+
def HasField(self, field_name: typing_extensions.Literal["object_id",b"object_id"]) -> builtins.bool: ...
|
|
22
25
|
def ClearField(self, field_name: typing_extensions.Literal["object_id",b"object_id"]) -> None: ...
|
|
23
26
|
global___DeleteConditionRequest = DeleteConditionRequest
|
|
24
27
|
|
|
@@ -26,13 +29,15 @@ class ChangeConditionSuppressionStateRequest(google.protobuf.message.Message):
|
|
|
26
29
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
27
30
|
OBJECT_ID_FIELD_NUMBER: builtins.int
|
|
28
31
|
IS_SUPPRESSED_FIELD_NUMBER: builtins.int
|
|
29
|
-
|
|
32
|
+
@property
|
|
33
|
+
def object_id(self) -> ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier: ...
|
|
30
34
|
is_suppressed: builtins.bool = ...
|
|
31
35
|
def __init__(self,
|
|
32
36
|
*,
|
|
33
|
-
object_id : typing.
|
|
37
|
+
object_id : typing.Optional[ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier] = ...,
|
|
34
38
|
is_suppressed : builtins.bool = ...,
|
|
35
39
|
) -> None: ...
|
|
40
|
+
def HasField(self, field_name: typing_extensions.Literal["object_id",b"object_id"]) -> builtins.bool: ...
|
|
36
41
|
def ClearField(self, field_name: typing_extensions.Literal["is_suppressed",b"is_suppressed","object_id",b"object_id"]) -> None: ...
|
|
37
42
|
global___ChangeConditionSuppressionStateRequest = ChangeConditionSuppressionStateRequest
|
|
38
43
|
|
|
@@ -40,12 +45,14 @@ class ChangeConditionNameRequest(google.protobuf.message.Message):
|
|
|
40
45
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
41
46
|
OBJECT_ID_FIELD_NUMBER: builtins.int
|
|
42
47
|
NEW_NAME_FIELD_NUMBER: builtins.int
|
|
43
|
-
|
|
48
|
+
@property
|
|
49
|
+
def object_id(self) -> ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier: ...
|
|
44
50
|
new_name: typing.Text = ...
|
|
45
51
|
def __init__(self,
|
|
46
52
|
*,
|
|
47
|
-
object_id : typing.
|
|
53
|
+
object_id : typing.Optional[ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier] = ...,
|
|
48
54
|
new_name : typing.Text = ...,
|
|
49
55
|
) -> None: ...
|
|
56
|
+
def HasField(self, field_name: typing_extensions.Literal["object_id",b"object_id"]) -> builtins.bool: ...
|
|
50
57
|
def ClearField(self, field_name: typing_extensions.Literal["new_name",b"new_name","object_id",b"object_id"]) -> None: ...
|
|
51
58
|
global___ChangeConditionNameRequest = ChangeConditionNameRequest
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
3
|
import grpc
|
|
4
4
|
|
|
5
|
-
from ansys.api.discovery.v0 import
|
|
5
|
+
from ansys.api.discovery.v0.conditions import condition_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_condition__pb2
|
|
6
6
|
from ansys.api.discovery.v0 import discoverymodels_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class
|
|
9
|
+
class ConditionStub(object):
|
|
10
10
|
"""Missing associated documentation comment in .proto file."""
|
|
11
11
|
|
|
12
12
|
def __init__(self, channel):
|
|
@@ -16,23 +16,23 @@ class ConditionsStub(object):
|
|
|
16
16
|
channel: A grpc.Channel.
|
|
17
17
|
"""
|
|
18
18
|
self.DeleteCondition = channel.unary_unary(
|
|
19
|
-
'/ansys.api.discovery.v0.conditions.
|
|
20
|
-
request_serializer=
|
|
19
|
+
'/ansys.api.discovery.v0.conditions.Condition/DeleteCondition',
|
|
20
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_condition__pb2.DeleteConditionRequest.SerializeToString,
|
|
21
21
|
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
22
22
|
)
|
|
23
23
|
self.ChangeConditionSuppressionState = channel.unary_unary(
|
|
24
|
-
'/ansys.api.discovery.v0.conditions.
|
|
25
|
-
request_serializer=
|
|
24
|
+
'/ansys.api.discovery.v0.conditions.Condition/ChangeConditionSuppressionState',
|
|
25
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_condition__pb2.ChangeConditionSuppressionStateRequest.SerializeToString,
|
|
26
26
|
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
27
27
|
)
|
|
28
28
|
self.ChangeConditionName = channel.unary_unary(
|
|
29
|
-
'/ansys.api.discovery.v0.conditions.
|
|
30
|
-
request_serializer=
|
|
29
|
+
'/ansys.api.discovery.v0.conditions.Condition/ChangeConditionName',
|
|
30
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_condition__pb2.ChangeConditionNameRequest.SerializeToString,
|
|
31
31
|
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
32
32
|
)
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class ConditionServicer(object):
|
|
36
36
|
"""Missing associated documentation comment in .proto file."""
|
|
37
37
|
|
|
38
38
|
def DeleteCondition(self, request, context):
|
|
@@ -55,31 +55,31 @@ class ConditionsServicer(object):
|
|
|
55
55
|
raise NotImplementedError('Method not implemented!')
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
def
|
|
58
|
+
def add_ConditionServicer_to_server(servicer, server):
|
|
59
59
|
rpc_method_handlers = {
|
|
60
60
|
'DeleteCondition': grpc.unary_unary_rpc_method_handler(
|
|
61
61
|
servicer.DeleteCondition,
|
|
62
|
-
request_deserializer=
|
|
62
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_condition__pb2.DeleteConditionRequest.FromString,
|
|
63
63
|
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.SerializeToString,
|
|
64
64
|
),
|
|
65
65
|
'ChangeConditionSuppressionState': grpc.unary_unary_rpc_method_handler(
|
|
66
66
|
servicer.ChangeConditionSuppressionState,
|
|
67
|
-
request_deserializer=
|
|
67
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_condition__pb2.ChangeConditionSuppressionStateRequest.FromString,
|
|
68
68
|
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.SerializeToString,
|
|
69
69
|
),
|
|
70
70
|
'ChangeConditionName': grpc.unary_unary_rpc_method_handler(
|
|
71
71
|
servicer.ChangeConditionName,
|
|
72
|
-
request_deserializer=
|
|
72
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_condition__pb2.ChangeConditionNameRequest.FromString,
|
|
73
73
|
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.SerializeToString,
|
|
74
74
|
),
|
|
75
75
|
}
|
|
76
76
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
77
|
-
'ansys.api.discovery.v0.conditions.
|
|
77
|
+
'ansys.api.discovery.v0.conditions.Condition', rpc_method_handlers)
|
|
78
78
|
server.add_generic_rpc_handlers((generic_handler,))
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
# This class is part of an EXPERIMENTAL API.
|
|
82
|
-
class
|
|
82
|
+
class Condition(object):
|
|
83
83
|
"""Missing associated documentation comment in .proto file."""
|
|
84
84
|
|
|
85
85
|
@staticmethod
|
|
@@ -93,8 +93,8 @@ class Conditions(object):
|
|
|
93
93
|
wait_for_ready=None,
|
|
94
94
|
timeout=None,
|
|
95
95
|
metadata=None):
|
|
96
|
-
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.
|
|
97
|
-
|
|
96
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.Condition/DeleteCondition',
|
|
97
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_condition__pb2.DeleteConditionRequest.SerializeToString,
|
|
98
98
|
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
99
99
|
options, channel_credentials,
|
|
100
100
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -110,8 +110,8 @@ class Conditions(object):
|
|
|
110
110
|
wait_for_ready=None,
|
|
111
111
|
timeout=None,
|
|
112
112
|
metadata=None):
|
|
113
|
-
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.
|
|
114
|
-
|
|
113
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.Condition/ChangeConditionSuppressionState',
|
|
114
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_condition__pb2.ChangeConditionSuppressionStateRequest.SerializeToString,
|
|
115
115
|
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
116
116
|
options, channel_credentials,
|
|
117
117
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -127,8 +127,8 @@ class Conditions(object):
|
|
|
127
127
|
wait_for_ready=None,
|
|
128
128
|
timeout=None,
|
|
129
129
|
metadata=None):
|
|
130
|
-
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.
|
|
131
|
-
|
|
130
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.Condition/ChangeConditionName',
|
|
131
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_condition__pb2.ChangeConditionNameRequest.SerializeToString,
|
|
132
132
|
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
133
133
|
options, channel_credentials,
|
|
134
134
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -3,30 +3,30 @@
|
|
|
3
3
|
isort:skip_file
|
|
4
4
|
"""
|
|
5
5
|
import abc
|
|
6
|
-
import ansys.api.discovery.v0.
|
|
6
|
+
import ansys.api.discovery.v0.conditions.condition_pb2
|
|
7
7
|
import ansys.api.discovery.v0.discoverymodels_pb2
|
|
8
8
|
import grpc
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class ConditionStub:
|
|
11
11
|
def __init__(self, channel: grpc.Channel) -> None: ...
|
|
12
12
|
DeleteCondition: grpc.UnaryUnaryMultiCallable[
|
|
13
|
-
ansys.api.discovery.v0.
|
|
13
|
+
ansys.api.discovery.v0.conditions.condition_pb2.DeleteConditionRequest,
|
|
14
14
|
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
15
15
|
"""General condition methods"""
|
|
16
16
|
|
|
17
17
|
ChangeConditionSuppressionState: grpc.UnaryUnaryMultiCallable[
|
|
18
|
-
ansys.api.discovery.v0.
|
|
18
|
+
ansys.api.discovery.v0.conditions.condition_pb2.ChangeConditionSuppressionStateRequest,
|
|
19
19
|
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
20
20
|
|
|
21
21
|
ChangeConditionName: grpc.UnaryUnaryMultiCallable[
|
|
22
|
-
ansys.api.discovery.v0.
|
|
22
|
+
ansys.api.discovery.v0.conditions.condition_pb2.ChangeConditionNameRequest,
|
|
23
23
|
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class ConditionServicer(metaclass=abc.ABCMeta):
|
|
27
27
|
@abc.abstractmethod
|
|
28
28
|
def DeleteCondition(self,
|
|
29
|
-
request: ansys.api.discovery.v0.
|
|
29
|
+
request: ansys.api.discovery.v0.conditions.condition_pb2.DeleteConditionRequest,
|
|
30
30
|
context: grpc.ServicerContext,
|
|
31
31
|
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse:
|
|
32
32
|
"""General condition methods"""
|
|
@@ -34,15 +34,15 @@ class ConditionsServicer(metaclass=abc.ABCMeta):
|
|
|
34
34
|
|
|
35
35
|
@abc.abstractmethod
|
|
36
36
|
def ChangeConditionSuppressionState(self,
|
|
37
|
-
request: ansys.api.discovery.v0.
|
|
37
|
+
request: ansys.api.discovery.v0.conditions.condition_pb2.ChangeConditionSuppressionStateRequest,
|
|
38
38
|
context: grpc.ServicerContext,
|
|
39
39
|
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
40
40
|
|
|
41
41
|
@abc.abstractmethod
|
|
42
42
|
def ChangeConditionName(self,
|
|
43
|
-
request: ansys.api.discovery.v0.
|
|
43
|
+
request: ansys.api.discovery.v0.conditions.condition_pb2.ChangeConditionNameRequest,
|
|
44
44
|
context: grpc.ServicerContext,
|
|
45
45
|
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
def
|
|
48
|
+
def add_ConditionServicer_to_server(servicer: ConditionServicer, server: grpc.Server) -> None: ...
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Copyright 2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
package ansys.api.discovery.v0.conditions.convection;
|
|
4
|
+
|
|
5
|
+
import "ansys/api/dbu/v0/dbumodels.proto";
|
|
6
|
+
import "ansys/api/discovery/v0/discoverymodels.proto";
|
|
7
|
+
|
|
8
|
+
option csharp_namespace = "Ansys.Api.Discovery.V0.Conditions";
|
|
9
|
+
|
|
10
|
+
service Convection
|
|
11
|
+
{
|
|
12
|
+
rpc CreateConvection(ConvectionCreationRequest) returns (ConvectionCreationResponse);
|
|
13
|
+
|
|
14
|
+
rpc ChangeConvectionLocation(ChangeLocationRequest) returns(ChangeResponse);
|
|
15
|
+
|
|
16
|
+
rpc ChangeConvectionCoefficientMagnitude(ChangeQuantityRequest) returns(ChangeResponse);
|
|
17
|
+
|
|
18
|
+
rpc ChangeConvectionTemperatureMagnitude(ChangeQuantityRequest) returns(ChangeResponse);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
//Requests and responses
|
|
22
|
+
message ConvectionCreationRequest{
|
|
23
|
+
ScopedCreationData creation_data = 1;
|
|
24
|
+
Quantity coefficient = 2;
|
|
25
|
+
Quantity temperature = 3;
|
|
26
|
+
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
message ConvectionCreationResponse{
|
|
30
|
+
CreationResponse condition_response = 1;
|
|
31
|
+
ConvectionDefinition condition_data = 2;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
//Definitions
|
|
35
|
+
message ConvectionDefinition {
|
|
36
|
+
ansys.api.dbu.v0.PhysicsEntityIdentifier id = 1;
|
|
37
|
+
ansys.api.dbu.v0.PhysicsEntityIdentifier parent_id = 2;
|
|
38
|
+
string label = 3;
|
|
39
|
+
repeated string locations = 4;
|
|
40
|
+
bool suppressed = 5;
|
|
41
|
+
Quantity coefficient = 6;
|
|
42
|
+
Quantity temperature = 7;
|
|
43
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: ansys/api/discovery/v0/conditions/convection.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf.internal import builder as _builder
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from ansys.api.dbu.v0 import dbumodels_pb2 as ansys_dot_api_dot_dbu_dot_v0_dot_dbumodels__pb2
|
|
15
|
+
from ansys.api.discovery.v0 import discoverymodels_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n2ansys/api/discovery/v0/conditions/convection.proto\x12,ansys.api.discovery.v0.conditions.convection\x1a ansys/api/dbu/v0/dbumodels.proto\x1a,ansys/api/discovery/v0/discoverymodels.proto\"\xcc\x01\n\x19\x43onvectionCreationRequest\x12\x41\n\rcreation_data\x18\x01 \x01(\x0b\x32*.ansys.api.discovery.v0.ScopedCreationData\x12\x35\n\x0b\x63oefficient\x18\x02 \x01(\x0b\x32 .ansys.api.discovery.v0.Quantity\x12\x35\n\x0btemperature\x18\x03 \x01(\x0b\x32 .ansys.api.discovery.v0.Quantity\"\xbe\x01\n\x1a\x43onvectionCreationResponse\x12\x44\n\x12\x63ondition_response\x18\x01 \x01(\x0b\x32(.ansys.api.discovery.v0.CreationResponse\x12Z\n\x0e\x63ondition_data\x18\x02 \x01(\x0b\x32\x42.ansys.api.discovery.v0.conditions.convection.ConvectionDefinition\"\xaf\x02\n\x14\x43onvectionDefinition\x12\x35\n\x02id\x18\x01 \x01(\x0b\x32).ansys.api.dbu.v0.PhysicsEntityIdentifier\x12<\n\tparent_id\x18\x02 \x01(\x0b\x32).ansys.api.dbu.v0.PhysicsEntityIdentifier\x12\r\n\x05label\x18\x03 \x01(\t\x12\x11\n\tlocations\x18\x04 \x03(\t\x12\x12\n\nsuppressed\x18\x05 \x01(\x08\x12\x35\n\x0b\x63oefficient\x18\x06 \x01(\x0b\x32 .ansys.api.discovery.v0.Quantity\x12\x35\n\x0btemperature\x18\x07 \x01(\x0b\x32 .ansys.api.discovery.v0.Quantity2\xa5\x04\n\nConvection\x12\xa5\x01\n\x10\x43reateConvection\x12G.ansys.api.discovery.v0.conditions.convection.ConvectionCreationRequest\x1aH.ansys.api.discovery.v0.conditions.convection.ConvectionCreationResponse\x12q\n\x18\x43hangeConvectionLocation\x12-.ansys.api.discovery.v0.ChangeLocationRequest\x1a&.ansys.api.discovery.v0.ChangeResponse\x12}\n$ChangeConvectionCoefficientMagnitude\x12-.ansys.api.discovery.v0.ChangeQuantityRequest\x1a&.ansys.api.discovery.v0.ChangeResponse\x12}\n$ChangeConvectionTemperatureMagnitude\x12-.ansys.api.discovery.v0.ChangeQuantityRequest\x1a&.ansys.api.discovery.v0.ChangeResponseB$\xaa\x02!Ansys.Api.Discovery.V0.Conditionsb\x06proto3')
|
|
19
|
+
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ansys.api.discovery.v0.conditions.convection_pb2', globals())
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
|
|
24
|
+
DESCRIPTOR._options = None
|
|
25
|
+
DESCRIPTOR._serialized_options = b'\252\002!Ansys.Api.Discovery.V0.Conditions'
|
|
26
|
+
_CONVECTIONCREATIONREQUEST._serialized_start=181
|
|
27
|
+
_CONVECTIONCREATIONREQUEST._serialized_end=385
|
|
28
|
+
_CONVECTIONCREATIONRESPONSE._serialized_start=388
|
|
29
|
+
_CONVECTIONCREATIONRESPONSE._serialized_end=578
|
|
30
|
+
_CONVECTIONDEFINITION._serialized_start=581
|
|
31
|
+
_CONVECTIONDEFINITION._serialized_end=884
|
|
32
|
+
_CONVECTION._serialized_start=887
|
|
33
|
+
_CONVECTION._serialized_end=1436
|
|
34
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
import ansys.api.dbu.v0.dbumodels_pb2
|
|
6
|
+
import ansys.api.discovery.v0.discoverymodels_pb2
|
|
7
|
+
import builtins
|
|
8
|
+
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.internal.containers
|
|
10
|
+
import google.protobuf.message
|
|
11
|
+
import typing
|
|
12
|
+
import typing_extensions
|
|
13
|
+
|
|
14
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ...
|
|
15
|
+
|
|
16
|
+
class ConvectionCreationRequest(google.protobuf.message.Message):
|
|
17
|
+
"""Requests and responses"""
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
19
|
+
CREATION_DATA_FIELD_NUMBER: builtins.int
|
|
20
|
+
COEFFICIENT_FIELD_NUMBER: builtins.int
|
|
21
|
+
TEMPERATURE_FIELD_NUMBER: builtins.int
|
|
22
|
+
@property
|
|
23
|
+
def creation_data(self) -> ansys.api.discovery.v0.discoverymodels_pb2.ScopedCreationData: ...
|
|
24
|
+
@property
|
|
25
|
+
def coefficient(self) -> ansys.api.discovery.v0.discoverymodels_pb2.Quantity: ...
|
|
26
|
+
@property
|
|
27
|
+
def temperature(self) -> ansys.api.discovery.v0.discoverymodels_pb2.Quantity: ...
|
|
28
|
+
def __init__(self,
|
|
29
|
+
*,
|
|
30
|
+
creation_data : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.ScopedCreationData] = ...,
|
|
31
|
+
coefficient : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.Quantity] = ...,
|
|
32
|
+
temperature : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.Quantity] = ...,
|
|
33
|
+
) -> None: ...
|
|
34
|
+
def HasField(self, field_name: typing_extensions.Literal["coefficient",b"coefficient","creation_data",b"creation_data","temperature",b"temperature"]) -> builtins.bool: ...
|
|
35
|
+
def ClearField(self, field_name: typing_extensions.Literal["coefficient",b"coefficient","creation_data",b"creation_data","temperature",b"temperature"]) -> None: ...
|
|
36
|
+
global___ConvectionCreationRequest = ConvectionCreationRequest
|
|
37
|
+
|
|
38
|
+
class ConvectionCreationResponse(google.protobuf.message.Message):
|
|
39
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
40
|
+
CONDITION_RESPONSE_FIELD_NUMBER: builtins.int
|
|
41
|
+
CONDITION_DATA_FIELD_NUMBER: builtins.int
|
|
42
|
+
@property
|
|
43
|
+
def condition_response(self) -> ansys.api.discovery.v0.discoverymodels_pb2.CreationResponse: ...
|
|
44
|
+
@property
|
|
45
|
+
def condition_data(self) -> global___ConvectionDefinition: ...
|
|
46
|
+
def __init__(self,
|
|
47
|
+
*,
|
|
48
|
+
condition_response : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.CreationResponse] = ...,
|
|
49
|
+
condition_data : typing.Optional[global___ConvectionDefinition] = ...,
|
|
50
|
+
) -> None: ...
|
|
51
|
+
def HasField(self, field_name: typing_extensions.Literal["condition_data",b"condition_data","condition_response",b"condition_response"]) -> builtins.bool: ...
|
|
52
|
+
def ClearField(self, field_name: typing_extensions.Literal["condition_data",b"condition_data","condition_response",b"condition_response"]) -> None: ...
|
|
53
|
+
global___ConvectionCreationResponse = ConvectionCreationResponse
|
|
54
|
+
|
|
55
|
+
class ConvectionDefinition(google.protobuf.message.Message):
|
|
56
|
+
"""Definitions"""
|
|
57
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
58
|
+
ID_FIELD_NUMBER: builtins.int
|
|
59
|
+
PARENT_ID_FIELD_NUMBER: builtins.int
|
|
60
|
+
LABEL_FIELD_NUMBER: builtins.int
|
|
61
|
+
LOCATIONS_FIELD_NUMBER: builtins.int
|
|
62
|
+
SUPPRESSED_FIELD_NUMBER: builtins.int
|
|
63
|
+
COEFFICIENT_FIELD_NUMBER: builtins.int
|
|
64
|
+
TEMPERATURE_FIELD_NUMBER: builtins.int
|
|
65
|
+
@property
|
|
66
|
+
def id(self) -> ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier: ...
|
|
67
|
+
@property
|
|
68
|
+
def parent_id(self) -> ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier: ...
|
|
69
|
+
label: typing.Text = ...
|
|
70
|
+
@property
|
|
71
|
+
def locations(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ...
|
|
72
|
+
suppressed: builtins.bool = ...
|
|
73
|
+
@property
|
|
74
|
+
def coefficient(self) -> ansys.api.discovery.v0.discoverymodels_pb2.Quantity: ...
|
|
75
|
+
@property
|
|
76
|
+
def temperature(self) -> ansys.api.discovery.v0.discoverymodels_pb2.Quantity: ...
|
|
77
|
+
def __init__(self,
|
|
78
|
+
*,
|
|
79
|
+
id : typing.Optional[ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier] = ...,
|
|
80
|
+
parent_id : typing.Optional[ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier] = ...,
|
|
81
|
+
label : typing.Text = ...,
|
|
82
|
+
locations : typing.Optional[typing.Iterable[typing.Text]] = ...,
|
|
83
|
+
suppressed : builtins.bool = ...,
|
|
84
|
+
coefficient : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.Quantity] = ...,
|
|
85
|
+
temperature : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.Quantity] = ...,
|
|
86
|
+
) -> None: ...
|
|
87
|
+
def HasField(self, field_name: typing_extensions.Literal["coefficient",b"coefficient","id",b"id","parent_id",b"parent_id","temperature",b"temperature"]) -> builtins.bool: ...
|
|
88
|
+
def ClearField(self, field_name: typing_extensions.Literal["coefficient",b"coefficient","id",b"id","label",b"label","locations",b"locations","parent_id",b"parent_id","suppressed",b"suppressed","temperature",b"temperature"]) -> None: ...
|
|
89
|
+
global___ConvectionDefinition = ConvectionDefinition
|