luminarycloud 0.16.2__py3-none-any.whl → 0.18.0__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.
- luminarycloud/_auth/auth.py +23 -34
- luminarycloud/_client/client.py +23 -4
- luminarycloud/_client/retry_interceptor.py +7 -0
- luminarycloud/_helpers/_create_geometry.py +134 -34
- luminarycloud/_helpers/_wait_for_mesh.py +14 -4
- luminarycloud/_helpers/cond.py +0 -1
- luminarycloud/_proto/api/v0/luminarycloud/geometry/geometry_pb2.py +146 -123
- luminarycloud/_proto/api/v0/luminarycloud/geometry/geometry_pb2.pyi +82 -15
- luminarycloud/_proto/api/v0/luminarycloud/geometry/geometry_pb2_grpc.py +34 -0
- luminarycloud/_proto/api/v0/luminarycloud/geometry/geometry_pb2_grpc.pyi +12 -0
- luminarycloud/_proto/api/v0/luminarycloud/inference/inference_pb2.py +8 -8
- luminarycloud/_proto/api/v0/luminarycloud/inference/inference_pb2.pyi +12 -7
- luminarycloud/_proto/api/v0/luminarycloud/mesh/mesh_pb2.py +25 -3
- luminarycloud/_proto/api/v0/luminarycloud/mesh/mesh_pb2.pyi +30 -0
- luminarycloud/_proto/api/v0/luminarycloud/mesh/mesh_pb2_grpc.py +34 -0
- luminarycloud/_proto/api/v0/luminarycloud/mesh/mesh_pb2_grpc.pyi +12 -0
- luminarycloud/_proto/api/v0/luminarycloud/pipelines/pipelines_pb2.py +246 -0
- luminarycloud/_proto/api/v0/luminarycloud/pipelines/pipelines_pb2.pyi +420 -0
- luminarycloud/_proto/api/v0/luminarycloud/pipelines/pipelines_pb2_grpc.py +240 -0
- luminarycloud/_proto/api/v0/luminarycloud/pipelines/pipelines_pb2_grpc.pyi +90 -0
- luminarycloud/_proto/api/v0/luminarycloud/project/project_pb2.py +54 -3
- luminarycloud/_proto/api/v0/luminarycloud/project/project_pb2.pyi +92 -1
- luminarycloud/_proto/api/v0/luminarycloud/project/project_pb2_grpc.py +132 -0
- luminarycloud/_proto/api/v0/luminarycloud/project/project_pb2_grpc.pyi +40 -0
- luminarycloud/_proto/api/v0/luminarycloud/project_ui_state/project_ui_state_pb2.py +97 -0
- luminarycloud/_proto/api/v0/luminarycloud/project_ui_state/project_ui_state_pb2.pyi +93 -0
- luminarycloud/_proto/api/v0/luminarycloud/project_ui_state/project_ui_state_pb2_grpc.py +132 -0
- luminarycloud/_proto/api/v0/luminarycloud/project_ui_state/project_ui_state_pb2_grpc.pyi +44 -0
- luminarycloud/_proto/api/v0/luminarycloud/simulation_template/simulation_template_pb2.py +48 -26
- luminarycloud/_proto/api/v0/luminarycloud/simulation_template/simulation_template_pb2.pyi +30 -2
- luminarycloud/_proto/api/v0/luminarycloud/simulation_template/simulation_template_pb2_grpc.py +36 -0
- luminarycloud/_proto/api/v0/luminarycloud/simulation_template/simulation_template_pb2_grpc.pyi +18 -0
- luminarycloud/_proto/api/v0/luminarycloud/vis/vis_pb2.py +153 -133
- luminarycloud/_proto/api/v0/luminarycloud/vis/vis_pb2.pyi +51 -3
- luminarycloud/_proto/client/simulation_pb2.py +261 -251
- luminarycloud/_proto/client/simulation_pb2.pyi +35 -2
- luminarycloud/_proto/frontend/output/output_pb2.py +24 -24
- luminarycloud/_proto/frontend/output/output_pb2.pyi +6 -3
- luminarycloud/_proto/geometry/geometry_pb2.py +63 -63
- luminarycloud/_proto/geometry/geometry_pb2.pyi +16 -8
- luminarycloud/_proto/hexmesh/hexmesh_pb2.py +17 -4
- luminarycloud/_proto/hexmesh/hexmesh_pb2.pyi +22 -1
- luminarycloud/_proto/inferenceservice/inferenceservice_pb2.py +10 -10
- luminarycloud/_proto/inferenceservice/inferenceservice_pb2.pyi +12 -7
- luminarycloud/_proto/quantity/quantity_pb2.py +19 -19
- luminarycloud/enum/geometry_status.py +15 -8
- luminarycloud/enum/pipeline_job_status.py +23 -0
- luminarycloud/feature_modification.py +3 -6
- luminarycloud/geometry.py +25 -0
- luminarycloud/geometry_version.py +23 -0
- luminarycloud/mesh.py +16 -0
- luminarycloud/params/enum/_enum_wrappers.py +29 -0
- luminarycloud/params/simulation/physics/fluid/boundary_conditions/inlet/fan_curve_inlet_.py +1 -1
- luminarycloud/params/simulation/physics/fluid/boundary_conditions/inlet/mach_inlet_.py +5 -1
- luminarycloud/params/simulation/physics/fluid/boundary_conditions/inlet/mass_flow_inlet_.py +5 -1
- luminarycloud/params/simulation/physics/fluid/boundary_conditions/inlet/total_pressure_inlet_.py +5 -1
- luminarycloud/params/simulation/physics/fluid/boundary_conditions/inlet/velocity_magnitude_inlet_.py +5 -1
- luminarycloud/physics_ai/inference.py +46 -30
- luminarycloud/pipelines/__init__.py +7 -0
- luminarycloud/pipelines/api.py +213 -0
- luminarycloud/project.py +98 -11
- luminarycloud/simulation_template.py +15 -6
- luminarycloud/vis/__init__.py +6 -0
- luminarycloud/vis/data_extraction.py +201 -31
- luminarycloud/vis/filters.py +94 -35
- luminarycloud/vis/interactive_inference.py +153 -0
- luminarycloud/vis/interactive_scene.py +35 -16
- luminarycloud/vis/primitives.py +87 -1
- luminarycloud/vis/visualization.py +50 -6
- luminarycloud/volume_selection.py +3 -6
- {luminarycloud-0.16.2.dist-info → luminarycloud-0.18.0.dist-info}/METADATA +18 -18
- {luminarycloud-0.16.2.dist-info → luminarycloud-0.18.0.dist-info}/RECORD +73 -62
- {luminarycloud-0.16.2.dist-info → luminarycloud-0.18.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
import builtins
|
|
6
|
+
import google.protobuf.descriptor
|
|
7
|
+
import google.protobuf.message
|
|
8
|
+
import sys
|
|
9
|
+
|
|
10
|
+
if sys.version_info >= (3, 8):
|
|
11
|
+
import typing as typing_extensions
|
|
12
|
+
else:
|
|
13
|
+
import typing_extensions
|
|
14
|
+
|
|
15
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
16
|
+
|
|
17
|
+
class GetActiveNamedVariableSetRequest(google.protobuf.message.Message):
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
19
|
+
|
|
20
|
+
PROJECT_ID_FIELD_NUMBER: builtins.int
|
|
21
|
+
project_id: builtins.str
|
|
22
|
+
def __init__(
|
|
23
|
+
self,
|
|
24
|
+
*,
|
|
25
|
+
project_id: builtins.str = ...,
|
|
26
|
+
) -> None: ...
|
|
27
|
+
def ClearField(self, field_name: typing_extensions.Literal["project_id", b"project_id"]) -> None: ...
|
|
28
|
+
|
|
29
|
+
global___GetActiveNamedVariableSetRequest = GetActiveNamedVariableSetRequest
|
|
30
|
+
|
|
31
|
+
class GetActiveNamedVariableSetResponse(google.protobuf.message.Message):
|
|
32
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
33
|
+
|
|
34
|
+
ACTIVE_NAMED_VARIABLE_SET_ID_FIELD_NUMBER: builtins.int
|
|
35
|
+
active_named_variable_set_id: builtins.str
|
|
36
|
+
"""The ID of the active named variable set. Empty if no active set is configured."""
|
|
37
|
+
def __init__(
|
|
38
|
+
self,
|
|
39
|
+
*,
|
|
40
|
+
active_named_variable_set_id: builtins.str = ...,
|
|
41
|
+
) -> None: ...
|
|
42
|
+
def ClearField(self, field_name: typing_extensions.Literal["active_named_variable_set_id", b"active_named_variable_set_id"]) -> None: ...
|
|
43
|
+
|
|
44
|
+
global___GetActiveNamedVariableSetResponse = GetActiveNamedVariableSetResponse
|
|
45
|
+
|
|
46
|
+
class SetActiveNamedVariableSetRequest(google.protobuf.message.Message):
|
|
47
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
48
|
+
|
|
49
|
+
PROJECT_ID_FIELD_NUMBER: builtins.int
|
|
50
|
+
NAMED_VARIABLE_SET_ID_FIELD_NUMBER: builtins.int
|
|
51
|
+
project_id: builtins.str
|
|
52
|
+
named_variable_set_id: builtins.str
|
|
53
|
+
def __init__(
|
|
54
|
+
self,
|
|
55
|
+
*,
|
|
56
|
+
project_id: builtins.str = ...,
|
|
57
|
+
named_variable_set_id: builtins.str = ...,
|
|
58
|
+
) -> None: ...
|
|
59
|
+
def ClearField(self, field_name: typing_extensions.Literal["named_variable_set_id", b"named_variable_set_id", "project_id", b"project_id"]) -> None: ...
|
|
60
|
+
|
|
61
|
+
global___SetActiveNamedVariableSetRequest = SetActiveNamedVariableSetRequest
|
|
62
|
+
|
|
63
|
+
class SetActiveNamedVariableSetReply(google.protobuf.message.Message):
|
|
64
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
65
|
+
|
|
66
|
+
def __init__(
|
|
67
|
+
self,
|
|
68
|
+
) -> None: ...
|
|
69
|
+
|
|
70
|
+
global___SetActiveNamedVariableSetReply = SetActiveNamedVariableSetReply
|
|
71
|
+
|
|
72
|
+
class ClearActiveNamedVariableSetRequest(google.protobuf.message.Message):
|
|
73
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
74
|
+
|
|
75
|
+
PROJECT_ID_FIELD_NUMBER: builtins.int
|
|
76
|
+
project_id: builtins.str
|
|
77
|
+
def __init__(
|
|
78
|
+
self,
|
|
79
|
+
*,
|
|
80
|
+
project_id: builtins.str = ...,
|
|
81
|
+
) -> None: ...
|
|
82
|
+
def ClearField(self, field_name: typing_extensions.Literal["project_id", b"project_id"]) -> None: ...
|
|
83
|
+
|
|
84
|
+
global___ClearActiveNamedVariableSetRequest = ClearActiveNamedVariableSetRequest
|
|
85
|
+
|
|
86
|
+
class ClearActiveNamedVariableSetReply(google.protobuf.message.Message):
|
|
87
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
88
|
+
|
|
89
|
+
def __init__(
|
|
90
|
+
self,
|
|
91
|
+
) -> None: ...
|
|
92
|
+
|
|
93
|
+
global___ClearActiveNamedVariableSetReply = ClearActiveNamedVariableSetReply
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
|
|
5
|
+
from luminarycloud._proto.api.v0.luminarycloud.project_ui_state import project_ui_state_pb2 as proto_dot_api_dot_v0_dot_luminarycloud_dot_project__ui__state_dot_project__ui__state__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ProjectUIStateServiceStub(object):
|
|
9
|
+
"""Missing associated documentation comment in .proto file."""
|
|
10
|
+
|
|
11
|
+
def __init__(self, channel):
|
|
12
|
+
"""Constructor.
|
|
13
|
+
|
|
14
|
+
Args:
|
|
15
|
+
channel: A grpc.Channel.
|
|
16
|
+
"""
|
|
17
|
+
self.GetActiveNamedVariableSet = channel.unary_unary(
|
|
18
|
+
'/luminary.proto.api.v0.luminarycloud.project_ui_state.ProjectUIStateService/GetActiveNamedVariableSet',
|
|
19
|
+
request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_project__ui__state_dot_project__ui__state__pb2.GetActiveNamedVariableSetRequest.SerializeToString,
|
|
20
|
+
response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_project__ui__state_dot_project__ui__state__pb2.GetActiveNamedVariableSetResponse.FromString,
|
|
21
|
+
)
|
|
22
|
+
self.SetActiveNamedVariableSet = channel.unary_unary(
|
|
23
|
+
'/luminary.proto.api.v0.luminarycloud.project_ui_state.ProjectUIStateService/SetActiveNamedVariableSet',
|
|
24
|
+
request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_project__ui__state_dot_project__ui__state__pb2.SetActiveNamedVariableSetRequest.SerializeToString,
|
|
25
|
+
response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_project__ui__state_dot_project__ui__state__pb2.SetActiveNamedVariableSetReply.FromString,
|
|
26
|
+
)
|
|
27
|
+
self.ClearActiveNamedVariableSet = channel.unary_unary(
|
|
28
|
+
'/luminary.proto.api.v0.luminarycloud.project_ui_state.ProjectUIStateService/ClearActiveNamedVariableSet',
|
|
29
|
+
request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_project__ui__state_dot_project__ui__state__pb2.ClearActiveNamedVariableSetRequest.SerializeToString,
|
|
30
|
+
response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_project__ui__state_dot_project__ui__state__pb2.ClearActiveNamedVariableSetReply.FromString,
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class ProjectUIStateServiceServicer(object):
|
|
35
|
+
"""Missing associated documentation comment in .proto file."""
|
|
36
|
+
|
|
37
|
+
def GetActiveNamedVariableSet(self, request, context):
|
|
38
|
+
"""Missing associated documentation comment in .proto file."""
|
|
39
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
40
|
+
context.set_details('Method not implemented!')
|
|
41
|
+
raise NotImplementedError('Method not implemented!')
|
|
42
|
+
|
|
43
|
+
def SetActiveNamedVariableSet(self, request, context):
|
|
44
|
+
"""Missing associated documentation comment in .proto file."""
|
|
45
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
46
|
+
context.set_details('Method not implemented!')
|
|
47
|
+
raise NotImplementedError('Method not implemented!')
|
|
48
|
+
|
|
49
|
+
def ClearActiveNamedVariableSet(self, request, context):
|
|
50
|
+
"""Missing associated documentation comment in .proto file."""
|
|
51
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
52
|
+
context.set_details('Method not implemented!')
|
|
53
|
+
raise NotImplementedError('Method not implemented!')
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def add_ProjectUIStateServiceServicer_to_server(servicer, server):
|
|
57
|
+
rpc_method_handlers = {
|
|
58
|
+
'GetActiveNamedVariableSet': grpc.unary_unary_rpc_method_handler(
|
|
59
|
+
servicer.GetActiveNamedVariableSet,
|
|
60
|
+
request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_project__ui__state_dot_project__ui__state__pb2.GetActiveNamedVariableSetRequest.FromString,
|
|
61
|
+
response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_project__ui__state_dot_project__ui__state__pb2.GetActiveNamedVariableSetResponse.SerializeToString,
|
|
62
|
+
),
|
|
63
|
+
'SetActiveNamedVariableSet': grpc.unary_unary_rpc_method_handler(
|
|
64
|
+
servicer.SetActiveNamedVariableSet,
|
|
65
|
+
request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_project__ui__state_dot_project__ui__state__pb2.SetActiveNamedVariableSetRequest.FromString,
|
|
66
|
+
response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_project__ui__state_dot_project__ui__state__pb2.SetActiveNamedVariableSetReply.SerializeToString,
|
|
67
|
+
),
|
|
68
|
+
'ClearActiveNamedVariableSet': grpc.unary_unary_rpc_method_handler(
|
|
69
|
+
servicer.ClearActiveNamedVariableSet,
|
|
70
|
+
request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_project__ui__state_dot_project__ui__state__pb2.ClearActiveNamedVariableSetRequest.FromString,
|
|
71
|
+
response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_project__ui__state_dot_project__ui__state__pb2.ClearActiveNamedVariableSetReply.SerializeToString,
|
|
72
|
+
),
|
|
73
|
+
}
|
|
74
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
75
|
+
'luminary.proto.api.v0.luminarycloud.project_ui_state.ProjectUIStateService', rpc_method_handlers)
|
|
76
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
# This class is part of an EXPERIMENTAL API.
|
|
80
|
+
class ProjectUIStateService(object):
|
|
81
|
+
"""Missing associated documentation comment in .proto file."""
|
|
82
|
+
|
|
83
|
+
@staticmethod
|
|
84
|
+
def GetActiveNamedVariableSet(request,
|
|
85
|
+
target,
|
|
86
|
+
options=(),
|
|
87
|
+
channel_credentials=None,
|
|
88
|
+
call_credentials=None,
|
|
89
|
+
insecure=False,
|
|
90
|
+
compression=None,
|
|
91
|
+
wait_for_ready=None,
|
|
92
|
+
timeout=None,
|
|
93
|
+
metadata=None):
|
|
94
|
+
return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.project_ui_state.ProjectUIStateService/GetActiveNamedVariableSet',
|
|
95
|
+
proto_dot_api_dot_v0_dot_luminarycloud_dot_project__ui__state_dot_project__ui__state__pb2.GetActiveNamedVariableSetRequest.SerializeToString,
|
|
96
|
+
proto_dot_api_dot_v0_dot_luminarycloud_dot_project__ui__state_dot_project__ui__state__pb2.GetActiveNamedVariableSetResponse.FromString,
|
|
97
|
+
options, channel_credentials,
|
|
98
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
99
|
+
|
|
100
|
+
@staticmethod
|
|
101
|
+
def SetActiveNamedVariableSet(request,
|
|
102
|
+
target,
|
|
103
|
+
options=(),
|
|
104
|
+
channel_credentials=None,
|
|
105
|
+
call_credentials=None,
|
|
106
|
+
insecure=False,
|
|
107
|
+
compression=None,
|
|
108
|
+
wait_for_ready=None,
|
|
109
|
+
timeout=None,
|
|
110
|
+
metadata=None):
|
|
111
|
+
return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.project_ui_state.ProjectUIStateService/SetActiveNamedVariableSet',
|
|
112
|
+
proto_dot_api_dot_v0_dot_luminarycloud_dot_project__ui__state_dot_project__ui__state__pb2.SetActiveNamedVariableSetRequest.SerializeToString,
|
|
113
|
+
proto_dot_api_dot_v0_dot_luminarycloud_dot_project__ui__state_dot_project__ui__state__pb2.SetActiveNamedVariableSetReply.FromString,
|
|
114
|
+
options, channel_credentials,
|
|
115
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
116
|
+
|
|
117
|
+
@staticmethod
|
|
118
|
+
def ClearActiveNamedVariableSet(request,
|
|
119
|
+
target,
|
|
120
|
+
options=(),
|
|
121
|
+
channel_credentials=None,
|
|
122
|
+
call_credentials=None,
|
|
123
|
+
insecure=False,
|
|
124
|
+
compression=None,
|
|
125
|
+
wait_for_ready=None,
|
|
126
|
+
timeout=None,
|
|
127
|
+
metadata=None):
|
|
128
|
+
return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.project_ui_state.ProjectUIStateService/ClearActiveNamedVariableSet',
|
|
129
|
+
proto_dot_api_dot_v0_dot_luminarycloud_dot_project__ui__state_dot_project__ui__state__pb2.ClearActiveNamedVariableSetRequest.SerializeToString,
|
|
130
|
+
proto_dot_api_dot_v0_dot_luminarycloud_dot_project__ui__state_dot_project__ui__state__pb2.ClearActiveNamedVariableSetReply.FromString,
|
|
131
|
+
options, channel_credentials,
|
|
132
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
import abc
|
|
6
|
+
import grpc
|
|
7
|
+
import luminarycloud._proto.api.v0.luminarycloud.project_ui_state.project_ui_state_pb2
|
|
8
|
+
|
|
9
|
+
class ProjectUIStateServiceStub:
|
|
10
|
+
def __init__(self, channel: grpc.Channel) -> None: ...
|
|
11
|
+
GetActiveNamedVariableSet: grpc.UnaryUnaryMultiCallable[
|
|
12
|
+
luminarycloud._proto.api.v0.luminarycloud.project_ui_state.project_ui_state_pb2.GetActiveNamedVariableSetRequest,
|
|
13
|
+
luminarycloud._proto.api.v0.luminarycloud.project_ui_state.project_ui_state_pb2.GetActiveNamedVariableSetResponse,
|
|
14
|
+
]
|
|
15
|
+
SetActiveNamedVariableSet: grpc.UnaryUnaryMultiCallable[
|
|
16
|
+
luminarycloud._proto.api.v0.luminarycloud.project_ui_state.project_ui_state_pb2.SetActiveNamedVariableSetRequest,
|
|
17
|
+
luminarycloud._proto.api.v0.luminarycloud.project_ui_state.project_ui_state_pb2.SetActiveNamedVariableSetReply,
|
|
18
|
+
]
|
|
19
|
+
ClearActiveNamedVariableSet: grpc.UnaryUnaryMultiCallable[
|
|
20
|
+
luminarycloud._proto.api.v0.luminarycloud.project_ui_state.project_ui_state_pb2.ClearActiveNamedVariableSetRequest,
|
|
21
|
+
luminarycloud._proto.api.v0.luminarycloud.project_ui_state.project_ui_state_pb2.ClearActiveNamedVariableSetReply,
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
class ProjectUIStateServiceServicer(metaclass=abc.ABCMeta):
|
|
25
|
+
@abc.abstractmethod
|
|
26
|
+
def GetActiveNamedVariableSet(
|
|
27
|
+
self,
|
|
28
|
+
request: luminarycloud._proto.api.v0.luminarycloud.project_ui_state.project_ui_state_pb2.GetActiveNamedVariableSetRequest,
|
|
29
|
+
context: grpc.ServicerContext,
|
|
30
|
+
) -> luminarycloud._proto.api.v0.luminarycloud.project_ui_state.project_ui_state_pb2.GetActiveNamedVariableSetResponse: ...
|
|
31
|
+
@abc.abstractmethod
|
|
32
|
+
def SetActiveNamedVariableSet(
|
|
33
|
+
self,
|
|
34
|
+
request: luminarycloud._proto.api.v0.luminarycloud.project_ui_state.project_ui_state_pb2.SetActiveNamedVariableSetRequest,
|
|
35
|
+
context: grpc.ServicerContext,
|
|
36
|
+
) -> luminarycloud._proto.api.v0.luminarycloud.project_ui_state.project_ui_state_pb2.SetActiveNamedVariableSetReply: ...
|
|
37
|
+
@abc.abstractmethod
|
|
38
|
+
def ClearActiveNamedVariableSet(
|
|
39
|
+
self,
|
|
40
|
+
request: luminarycloud._proto.api.v0.luminarycloud.project_ui_state.project_ui_state_pb2.ClearActiveNamedVariableSetRequest,
|
|
41
|
+
context: grpc.ServicerContext,
|
|
42
|
+
) -> luminarycloud._proto.api.v0.luminarycloud.project_ui_state.project_ui_state_pb2.ClearActiveNamedVariableSetReply: ...
|
|
43
|
+
|
|
44
|
+
def add_ProjectUIStateServiceServicer_to_server(servicer: ProjectUIStateServiceServicer, server: grpc.Server) -> None: ...
|
|
@@ -18,7 +18,7 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
|
18
18
|
from luminarycloud._proto.client import simulation_pb2 as proto_dot_client_dot_simulation__pb2
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nHproto/api/v0/luminarycloud/simulation_template/simulation_template.proto\x12\x37luminary.proto.api.v0.luminarycloud.simulation_template\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1dproto/client/simulation.proto\"\
|
|
21
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nHproto/api/v0/luminarycloud/simulation_template/simulation_template.proto\x12\x37luminary.proto.api.v0.luminarycloud.simulation_template\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1dproto/client/simulation.proto\"\xe0\x01\n\x12SimulationTemplate\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12:\n\nparameters\x18\x03 \x01(\x0b\x32&.luminary.proto.client.SimulationParam\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nproject_id\x18\x06 \x01(\t\"\xa5\x01\n\x1f\x43reateSimulationTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12:\n\nparameters\x18\x03 \x01(\x0b\x32&.luminary.proto.client.SimulationParam\x12\x16\n\tcopy_from\x18\x04 \x01(\tH\x00\x88\x01\x01\x42\x0c\n\n_copy_from\"\x8c\x01\n CreateSimulationTemplateResponse\x12h\n\x13simulation_template\x18\x01 \x01(\x0b\x32K.luminary.proto.api.v0.luminarycloud.simulation_template.SimulationTemplate\"4\n\x1eListSimulationTemplatesRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\"\x8c\x01\n\x1fListSimulationTemplatesResponse\x12i\n\x14simulation_templates\x18\x01 \x03(\x0b\x32K.luminary.proto.api.v0.luminarycloud.simulation_template.SimulationTemplate\"*\n\x1cGetSimulationTemplateRequest\x12\n\n\x02id\x18\x01 \x01(\t\"\x89\x01\n\x1dGetSimulationTemplateResponse\x12h\n\x13simulation_template\x18\x01 \x01(\x0b\x32K.luminary.proto.api.v0.luminarycloud.simulation_template.SimulationTemplate\"\xbf\x01\n\x1fUpdateSimulationTemplateRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\x04name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12?\n\nparameters\x18\x03 \x01(\x0b\x32&.luminary.proto.client.SimulationParamH\x01\x88\x01\x01\x12\x16\n\tcopy_from\x18\x04 \x01(\tH\x02\x88\x01\x01\x42\x07\n\x05_nameB\r\n\x0b_parametersB\x0c\n\n_copy_from\"\x8c\x01\n UpdateSimulationTemplateResponse\x12h\n\x13simulation_template\x18\x01 \x01(\x0b\x32K.luminary.proto.api.v0.luminarycloud.simulation_template.SimulationTemplate\"-\n\x1f\x44\x65leteSimulationTemplateRequest\x12\n\n\x02id\x18\x01 \x01(\t\"/\n!ValidateSimulationTemplateRequest\x12\n\n\x02id\x18\x01 \x01(\t\"H\n\"ValidateSimulationTemplateResponse\x12\x10\n\x08is_valid\x18\x01 \x01(\x08\x12\x10\n\x08messages\x18\x02 \x03(\t\"/\n!SyncSimulationTemplateToUIRequest\x12\n\n\x02id\x18\x01 \x01(\t\"$\n\"SyncSimulationTemplateToUIResponse2\xe3\r\n\x19SimulationTemplateService\x12\x8a\x02\n\x18\x43reateSimulationTemplate\x12X.luminary.proto.api.v0.luminarycloud.simulation_template.CreateSimulationTemplateRequest\x1aY.luminary.proto.api.v0.luminarycloud.simulation_template.CreateSimulationTemplateResponse\"9\x82\xd3\xe4\x93\x02\x33\"./v0/projects/{project_id}/simulation_templates:\x01*\x12\x84\x02\n\x17ListSimulationTemplates\x12W.luminary.proto.api.v0.luminarycloud.simulation_template.ListSimulationTemplatesRequest\x1aX.luminary.proto.api.v0.luminarycloud.simulation_template.ListSimulationTemplatesResponse\"6\x82\xd3\xe4\x93\x02\x30\x12./v0/projects/{project_id}/simulation_templates\x12\xed\x01\n\x15GetSimulationTemplate\x12U.luminary.proto.api.v0.luminarycloud.simulation_template.GetSimulationTemplateRequest\x1aV.luminary.proto.api.v0.luminarycloud.simulation_template.GetSimulationTemplateResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v0/simulation_templates/{id}\x12\xf9\x01\n\x18UpdateSimulationTemplate\x12X.luminary.proto.api.v0.luminarycloud.simulation_template.UpdateSimulationTemplateRequest\x1aY.luminary.proto.api.v0.luminarycloud.simulation_template.UpdateSimulationTemplateResponse\"(\x82\xd3\xe4\x93\x02\"2\x1d/v0/simulation_templates/{id}:\x01*\x12\xb3\x01\n\x18\x44\x65leteSimulationTemplate\x12X.luminary.proto.api.v0.luminarycloud.simulation_template.DeleteSimulationTemplateRequest\x1a\x16.google.protobuf.Empty\"%\x82\xd3\xe4\x93\x02\x1f*\x1d/v0/simulation_templates/{id}\x12\x85\x02\n\x1aValidateSimulationTemplate\x12Z.luminary.proto.api.v0.luminarycloud.simulation_template.ValidateSimulationTemplateRequest\x1a[.luminary.proto.api.v0.luminarycloud.simulation_template.ValidateSimulationTemplateResponse\".\x82\xd3\xe4\x93\x02(\x12&/v0/simulation_templates/{id}:validate\x12\x87\x02\n\x1aSyncSimulationTemplateToUI\x12Z.luminary.proto.api.v0.luminarycloud.simulation_template.SyncSimulationTemplateToUIRequest\x1a[.luminary.proto.api.v0.luminarycloud.simulation_template.SyncSimulationTemplateToUIResponse\"0\x82\xd3\xe4\x93\x02*\"(/v0/simulation_templates/{id}:sync_to_uiBGZEluminarycloud.com/core/proto/api/v0/luminarycloud/simulation_templateb\x06proto3')
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -34,6 +34,8 @@ _UPDATESIMULATIONTEMPLATERESPONSE = DESCRIPTOR.message_types_by_name['UpdateSimu
|
|
|
34
34
|
_DELETESIMULATIONTEMPLATEREQUEST = DESCRIPTOR.message_types_by_name['DeleteSimulationTemplateRequest']
|
|
35
35
|
_VALIDATESIMULATIONTEMPLATEREQUEST = DESCRIPTOR.message_types_by_name['ValidateSimulationTemplateRequest']
|
|
36
36
|
_VALIDATESIMULATIONTEMPLATERESPONSE = DESCRIPTOR.message_types_by_name['ValidateSimulationTemplateResponse']
|
|
37
|
+
_SYNCSIMULATIONTEMPLATETOUIREQUEST = DESCRIPTOR.message_types_by_name['SyncSimulationTemplateToUIRequest']
|
|
38
|
+
_SYNCSIMULATIONTEMPLATETOUIRESPONSE = DESCRIPTOR.message_types_by_name['SyncSimulationTemplateToUIResponse']
|
|
37
39
|
SimulationTemplate = _reflection.GeneratedProtocolMessageType('SimulationTemplate', (_message.Message,), {
|
|
38
40
|
'DESCRIPTOR' : _SIMULATIONTEMPLATE,
|
|
39
41
|
'__module__' : 'proto.api.v0.luminarycloud.simulation_template.simulation_template_pb2'
|
|
@@ -118,6 +120,20 @@ ValidateSimulationTemplateResponse = _reflection.GeneratedProtocolMessageType('V
|
|
|
118
120
|
})
|
|
119
121
|
_sym_db.RegisterMessage(ValidateSimulationTemplateResponse)
|
|
120
122
|
|
|
123
|
+
SyncSimulationTemplateToUIRequest = _reflection.GeneratedProtocolMessageType('SyncSimulationTemplateToUIRequest', (_message.Message,), {
|
|
124
|
+
'DESCRIPTOR' : _SYNCSIMULATIONTEMPLATETOUIREQUEST,
|
|
125
|
+
'__module__' : 'proto.api.v0.luminarycloud.simulation_template.simulation_template_pb2'
|
|
126
|
+
# @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.simulation_template.SyncSimulationTemplateToUIRequest)
|
|
127
|
+
})
|
|
128
|
+
_sym_db.RegisterMessage(SyncSimulationTemplateToUIRequest)
|
|
129
|
+
|
|
130
|
+
SyncSimulationTemplateToUIResponse = _reflection.GeneratedProtocolMessageType('SyncSimulationTemplateToUIResponse', (_message.Message,), {
|
|
131
|
+
'DESCRIPTOR' : _SYNCSIMULATIONTEMPLATETOUIRESPONSE,
|
|
132
|
+
'__module__' : 'proto.api.v0.luminarycloud.simulation_template.simulation_template_pb2'
|
|
133
|
+
# @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.simulation_template.SyncSimulationTemplateToUIResponse)
|
|
134
|
+
})
|
|
135
|
+
_sym_db.RegisterMessage(SyncSimulationTemplateToUIResponse)
|
|
136
|
+
|
|
121
137
|
_SIMULATIONTEMPLATESERVICE = DESCRIPTOR.services_by_name['SimulationTemplateService']
|
|
122
138
|
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
123
139
|
|
|
@@ -135,30 +151,36 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
135
151
|
_SIMULATIONTEMPLATESERVICE.methods_by_name['DeleteSimulationTemplate']._serialized_options = b'\202\323\344\223\002\037*\035/v0/simulation_templates/{id}'
|
|
136
152
|
_SIMULATIONTEMPLATESERVICE.methods_by_name['ValidateSimulationTemplate']._options = None
|
|
137
153
|
_SIMULATIONTEMPLATESERVICE.methods_by_name['ValidateSimulationTemplate']._serialized_options = b'\202\323\344\223\002(\022&/v0/simulation_templates/{id}:validate'
|
|
154
|
+
_SIMULATIONTEMPLATESERVICE.methods_by_name['SyncSimulationTemplateToUI']._options = None
|
|
155
|
+
_SIMULATIONTEMPLATESERVICE.methods_by_name['SyncSimulationTemplateToUI']._serialized_options = b'\202\323\344\223\002*\"(/v0/simulation_templates/{id}:sync_to_ui'
|
|
138
156
|
_SIMULATIONTEMPLATE._serialized_start=257
|
|
139
|
-
_SIMULATIONTEMPLATE._serialized_end=
|
|
140
|
-
_CREATESIMULATIONTEMPLATEREQUEST._serialized_start=
|
|
141
|
-
_CREATESIMULATIONTEMPLATEREQUEST._serialized_end=
|
|
142
|
-
_CREATESIMULATIONTEMPLATERESPONSE._serialized_start=
|
|
143
|
-
_CREATESIMULATIONTEMPLATERESPONSE._serialized_end=
|
|
144
|
-
_LISTSIMULATIONTEMPLATESREQUEST._serialized_start=
|
|
145
|
-
_LISTSIMULATIONTEMPLATESREQUEST._serialized_end=
|
|
146
|
-
_LISTSIMULATIONTEMPLATESRESPONSE._serialized_start=
|
|
147
|
-
_LISTSIMULATIONTEMPLATESRESPONSE._serialized_end=
|
|
148
|
-
_GETSIMULATIONTEMPLATEREQUEST._serialized_start=
|
|
149
|
-
_GETSIMULATIONTEMPLATEREQUEST._serialized_end=
|
|
150
|
-
_GETSIMULATIONTEMPLATERESPONSE._serialized_start=
|
|
151
|
-
_GETSIMULATIONTEMPLATERESPONSE._serialized_end=
|
|
152
|
-
_UPDATESIMULATIONTEMPLATEREQUEST._serialized_start=
|
|
153
|
-
_UPDATESIMULATIONTEMPLATEREQUEST._serialized_end=
|
|
154
|
-
_UPDATESIMULATIONTEMPLATERESPONSE._serialized_start=
|
|
155
|
-
_UPDATESIMULATIONTEMPLATERESPONSE._serialized_end=
|
|
156
|
-
_DELETESIMULATIONTEMPLATEREQUEST._serialized_start=
|
|
157
|
-
_DELETESIMULATIONTEMPLATEREQUEST._serialized_end=
|
|
158
|
-
_VALIDATESIMULATIONTEMPLATEREQUEST._serialized_start=
|
|
159
|
-
_VALIDATESIMULATIONTEMPLATEREQUEST._serialized_end=
|
|
160
|
-
_VALIDATESIMULATIONTEMPLATERESPONSE._serialized_start=
|
|
161
|
-
_VALIDATESIMULATIONTEMPLATERESPONSE._serialized_end=
|
|
162
|
-
|
|
163
|
-
|
|
157
|
+
_SIMULATIONTEMPLATE._serialized_end=481
|
|
158
|
+
_CREATESIMULATIONTEMPLATEREQUEST._serialized_start=484
|
|
159
|
+
_CREATESIMULATIONTEMPLATEREQUEST._serialized_end=649
|
|
160
|
+
_CREATESIMULATIONTEMPLATERESPONSE._serialized_start=652
|
|
161
|
+
_CREATESIMULATIONTEMPLATERESPONSE._serialized_end=792
|
|
162
|
+
_LISTSIMULATIONTEMPLATESREQUEST._serialized_start=794
|
|
163
|
+
_LISTSIMULATIONTEMPLATESREQUEST._serialized_end=846
|
|
164
|
+
_LISTSIMULATIONTEMPLATESRESPONSE._serialized_start=849
|
|
165
|
+
_LISTSIMULATIONTEMPLATESRESPONSE._serialized_end=989
|
|
166
|
+
_GETSIMULATIONTEMPLATEREQUEST._serialized_start=991
|
|
167
|
+
_GETSIMULATIONTEMPLATEREQUEST._serialized_end=1033
|
|
168
|
+
_GETSIMULATIONTEMPLATERESPONSE._serialized_start=1036
|
|
169
|
+
_GETSIMULATIONTEMPLATERESPONSE._serialized_end=1173
|
|
170
|
+
_UPDATESIMULATIONTEMPLATEREQUEST._serialized_start=1176
|
|
171
|
+
_UPDATESIMULATIONTEMPLATEREQUEST._serialized_end=1367
|
|
172
|
+
_UPDATESIMULATIONTEMPLATERESPONSE._serialized_start=1370
|
|
173
|
+
_UPDATESIMULATIONTEMPLATERESPONSE._serialized_end=1510
|
|
174
|
+
_DELETESIMULATIONTEMPLATEREQUEST._serialized_start=1512
|
|
175
|
+
_DELETESIMULATIONTEMPLATEREQUEST._serialized_end=1557
|
|
176
|
+
_VALIDATESIMULATIONTEMPLATEREQUEST._serialized_start=1559
|
|
177
|
+
_VALIDATESIMULATIONTEMPLATEREQUEST._serialized_end=1606
|
|
178
|
+
_VALIDATESIMULATIONTEMPLATERESPONSE._serialized_start=1608
|
|
179
|
+
_VALIDATESIMULATIONTEMPLATERESPONSE._serialized_end=1680
|
|
180
|
+
_SYNCSIMULATIONTEMPLATETOUIREQUEST._serialized_start=1682
|
|
181
|
+
_SYNCSIMULATIONTEMPLATETOUIREQUEST._serialized_end=1729
|
|
182
|
+
_SYNCSIMULATIONTEMPLATETOUIRESPONSE._serialized_start=1731
|
|
183
|
+
_SYNCSIMULATIONTEMPLATETOUIRESPONSE._serialized_end=1767
|
|
184
|
+
_SIMULATIONTEMPLATESERVICE._serialized_start=1770
|
|
185
|
+
_SIMULATIONTEMPLATESERVICE._serialized_end=3533
|
|
164
186
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -29,6 +29,7 @@ class SimulationTemplate(google.protobuf.message.Message):
|
|
|
29
29
|
PARAMETERS_FIELD_NUMBER: builtins.int
|
|
30
30
|
CREATE_TIME_FIELD_NUMBER: builtins.int
|
|
31
31
|
UPDATE_TIME_FIELD_NUMBER: builtins.int
|
|
32
|
+
PROJECT_ID_FIELD_NUMBER: builtins.int
|
|
32
33
|
id: builtins.str
|
|
33
34
|
"""Required. The unique identifier for the resource."""
|
|
34
35
|
name: builtins.str
|
|
@@ -44,6 +45,8 @@ class SimulationTemplate(google.protobuf.message.Message):
|
|
|
44
45
|
@property
|
|
45
46
|
def update_time(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
46
47
|
"""Output only. The timestamp when the resource was last updated."""
|
|
48
|
+
project_id: builtins.str
|
|
49
|
+
"""Required. The project this sim template belongs to."""
|
|
47
50
|
def __init__(
|
|
48
51
|
self,
|
|
49
52
|
*,
|
|
@@ -52,9 +55,10 @@ class SimulationTemplate(google.protobuf.message.Message):
|
|
|
52
55
|
parameters: luminarycloud._proto.client.simulation_pb2.SimulationParam | None = ...,
|
|
53
56
|
create_time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
54
57
|
update_time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
58
|
+
project_id: builtins.str = ...,
|
|
55
59
|
) -> None: ...
|
|
56
60
|
def HasField(self, field_name: typing_extensions.Literal["create_time", b"create_time", "parameters", b"parameters", "update_time", b"update_time"]) -> builtins.bool: ...
|
|
57
|
-
def ClearField(self, field_name: typing_extensions.Literal["create_time", b"create_time", "id", b"id", "name", b"name", "parameters", b"parameters", "update_time", b"update_time"]) -> None: ...
|
|
61
|
+
def ClearField(self, field_name: typing_extensions.Literal["create_time", b"create_time", "id", b"id", "name", b"name", "parameters", b"parameters", "project_id", b"project_id", "update_time", b"update_time"]) -> None: ...
|
|
58
62
|
|
|
59
63
|
global___SimulationTemplate = SimulationTemplate
|
|
60
64
|
|
|
@@ -130,7 +134,7 @@ class ListSimulationTemplatesResponse(google.protobuf.message.Message):
|
|
|
130
134
|
SIMULATION_TEMPLATES_FIELD_NUMBER: builtins.int
|
|
131
135
|
@property
|
|
132
136
|
def simulation_templates(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SimulationTemplate]:
|
|
133
|
-
"""Required. The
|
|
137
|
+
"""Required. The requested list of simulation templates."""
|
|
134
138
|
def __init__(
|
|
135
139
|
self,
|
|
136
140
|
*,
|
|
@@ -275,3 +279,27 @@ class ValidateSimulationTemplateResponse(google.protobuf.message.Message):
|
|
|
275
279
|
def ClearField(self, field_name: typing_extensions.Literal["is_valid", b"is_valid", "messages", b"messages"]) -> None: ...
|
|
276
280
|
|
|
277
281
|
global___ValidateSimulationTemplateResponse = ValidateSimulationTemplateResponse
|
|
282
|
+
|
|
283
|
+
class SyncSimulationTemplateToUIRequest(google.protobuf.message.Message):
|
|
284
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
285
|
+
|
|
286
|
+
ID_FIELD_NUMBER: builtins.int
|
|
287
|
+
id: builtins.str
|
|
288
|
+
"""Required. The ID of the simulation template to sync to the UI."""
|
|
289
|
+
def __init__(
|
|
290
|
+
self,
|
|
291
|
+
*,
|
|
292
|
+
id: builtins.str = ...,
|
|
293
|
+
) -> None: ...
|
|
294
|
+
def ClearField(self, field_name: typing_extensions.Literal["id", b"id"]) -> None: ...
|
|
295
|
+
|
|
296
|
+
global___SyncSimulationTemplateToUIRequest = SyncSimulationTemplateToUIRequest
|
|
297
|
+
|
|
298
|
+
class SyncSimulationTemplateToUIResponse(google.protobuf.message.Message):
|
|
299
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
300
|
+
|
|
301
|
+
def __init__(
|
|
302
|
+
self,
|
|
303
|
+
) -> None: ...
|
|
304
|
+
|
|
305
|
+
global___SyncSimulationTemplateToUIResponse = SyncSimulationTemplateToUIResponse
|
luminarycloud/_proto/api/v0/luminarycloud/simulation_template/simulation_template_pb2_grpc.py
CHANGED
|
@@ -46,6 +46,11 @@ class SimulationTemplateServiceStub(object):
|
|
|
46
46
|
request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_simulation__template_dot_simulation__template__pb2.ValidateSimulationTemplateRequest.SerializeToString,
|
|
47
47
|
response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_simulation__template_dot_simulation__template__pb2.ValidateSimulationTemplateResponse.FromString,
|
|
48
48
|
)
|
|
49
|
+
self.SyncSimulationTemplateToUI = channel.unary_unary(
|
|
50
|
+
'/luminary.proto.api.v0.luminarycloud.simulation_template.SimulationTemplateService/SyncSimulationTemplateToUI',
|
|
51
|
+
request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_simulation__template_dot_simulation__template__pb2.SyncSimulationTemplateToUIRequest.SerializeToString,
|
|
52
|
+
response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_simulation__template_dot_simulation__template__pb2.SyncSimulationTemplateToUIResponse.FromString,
|
|
53
|
+
)
|
|
49
54
|
|
|
50
55
|
|
|
51
56
|
class SimulationTemplateServiceServicer(object):
|
|
@@ -95,6 +100,15 @@ class SimulationTemplateServiceServicer(object):
|
|
|
95
100
|
context.set_details('Method not implemented!')
|
|
96
101
|
raise NotImplementedError('Method not implemented!')
|
|
97
102
|
|
|
103
|
+
def SyncSimulationTemplateToUI(self, request, context):
|
|
104
|
+
"""Syncs a simulation template to the UI. The specified simulation template will be the one that
|
|
105
|
+
is shown in and controlled by the "Setup" tab of the UI within the project that the simulation
|
|
106
|
+
template belongs to.
|
|
107
|
+
"""
|
|
108
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
109
|
+
context.set_details('Method not implemented!')
|
|
110
|
+
raise NotImplementedError('Method not implemented!')
|
|
111
|
+
|
|
98
112
|
|
|
99
113
|
def add_SimulationTemplateServiceServicer_to_server(servicer, server):
|
|
100
114
|
rpc_method_handlers = {
|
|
@@ -128,6 +142,11 @@ def add_SimulationTemplateServiceServicer_to_server(servicer, server):
|
|
|
128
142
|
request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_simulation__template_dot_simulation__template__pb2.ValidateSimulationTemplateRequest.FromString,
|
|
129
143
|
response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_simulation__template_dot_simulation__template__pb2.ValidateSimulationTemplateResponse.SerializeToString,
|
|
130
144
|
),
|
|
145
|
+
'SyncSimulationTemplateToUI': grpc.unary_unary_rpc_method_handler(
|
|
146
|
+
servicer.SyncSimulationTemplateToUI,
|
|
147
|
+
request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_simulation__template_dot_simulation__template__pb2.SyncSimulationTemplateToUIRequest.FromString,
|
|
148
|
+
response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_simulation__template_dot_simulation__template__pb2.SyncSimulationTemplateToUIResponse.SerializeToString,
|
|
149
|
+
),
|
|
131
150
|
}
|
|
132
151
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
133
152
|
'luminary.proto.api.v0.luminarycloud.simulation_template.SimulationTemplateService', rpc_method_handlers)
|
|
@@ -240,3 +259,20 @@ class SimulationTemplateService(object):
|
|
|
240
259
|
proto_dot_api_dot_v0_dot_luminarycloud_dot_simulation__template_dot_simulation__template__pb2.ValidateSimulationTemplateResponse.FromString,
|
|
241
260
|
options, channel_credentials,
|
|
242
261
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
262
|
+
|
|
263
|
+
@staticmethod
|
|
264
|
+
def SyncSimulationTemplateToUI(request,
|
|
265
|
+
target,
|
|
266
|
+
options=(),
|
|
267
|
+
channel_credentials=None,
|
|
268
|
+
call_credentials=None,
|
|
269
|
+
insecure=False,
|
|
270
|
+
compression=None,
|
|
271
|
+
wait_for_ready=None,
|
|
272
|
+
timeout=None,
|
|
273
|
+
metadata=None):
|
|
274
|
+
return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.simulation_template.SimulationTemplateService/SyncSimulationTemplateToUI',
|
|
275
|
+
proto_dot_api_dot_v0_dot_luminarycloud_dot_simulation__template_dot_simulation__template__pb2.SyncSimulationTemplateToUIRequest.SerializeToString,
|
|
276
|
+
proto_dot_api_dot_v0_dot_luminarycloud_dot_simulation__template_dot_simulation__template__pb2.SyncSimulationTemplateToUIResponse.FromString,
|
|
277
|
+
options, channel_credentials,
|
|
278
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
luminarycloud/_proto/api/v0/luminarycloud/simulation_template/simulation_template_pb2_grpc.pyi
CHANGED
|
@@ -43,6 +43,14 @@ class SimulationTemplateServiceStub:
|
|
|
43
43
|
luminarycloud._proto.api.v0.luminarycloud.simulation_template.simulation_template_pb2.ValidateSimulationTemplateResponse,
|
|
44
44
|
]
|
|
45
45
|
"""Validate an existing simulation template resource."""
|
|
46
|
+
SyncSimulationTemplateToUI: grpc.UnaryUnaryMultiCallable[
|
|
47
|
+
luminarycloud._proto.api.v0.luminarycloud.simulation_template.simulation_template_pb2.SyncSimulationTemplateToUIRequest,
|
|
48
|
+
luminarycloud._proto.api.v0.luminarycloud.simulation_template.simulation_template_pb2.SyncSimulationTemplateToUIResponse,
|
|
49
|
+
]
|
|
50
|
+
"""Syncs a simulation template to the UI. The specified simulation template will be the one that
|
|
51
|
+
is shown in and controlled by the "Setup" tab of the UI within the project that the simulation
|
|
52
|
+
template belongs to.
|
|
53
|
+
"""
|
|
46
54
|
|
|
47
55
|
class SimulationTemplateServiceServicer(metaclass=abc.ABCMeta):
|
|
48
56
|
"""Provides APIs for running simulations and retrieve outputs."""
|
|
@@ -91,5 +99,15 @@ class SimulationTemplateServiceServicer(metaclass=abc.ABCMeta):
|
|
|
91
99
|
context: grpc.ServicerContext,
|
|
92
100
|
) -> luminarycloud._proto.api.v0.luminarycloud.simulation_template.simulation_template_pb2.ValidateSimulationTemplateResponse:
|
|
93
101
|
"""Validate an existing simulation template resource."""
|
|
102
|
+
@abc.abstractmethod
|
|
103
|
+
def SyncSimulationTemplateToUI(
|
|
104
|
+
self,
|
|
105
|
+
request: luminarycloud._proto.api.v0.luminarycloud.simulation_template.simulation_template_pb2.SyncSimulationTemplateToUIRequest,
|
|
106
|
+
context: grpc.ServicerContext,
|
|
107
|
+
) -> luminarycloud._proto.api.v0.luminarycloud.simulation_template.simulation_template_pb2.SyncSimulationTemplateToUIResponse:
|
|
108
|
+
"""Syncs a simulation template to the UI. The specified simulation template will be the one that
|
|
109
|
+
is shown in and controlled by the "Setup" tab of the UI within the project that the simulation
|
|
110
|
+
template belongs to.
|
|
111
|
+
"""
|
|
94
112
|
|
|
95
113
|
def add_SimulationTemplateServiceServicer_to_server(servicer: SimulationTemplateServiceServicer, server: grpc.Server) -> None: ...
|