luminarycloud 0.15.4__py3-none-any.whl → 0.16.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.
Files changed (58) hide show
  1. luminarycloud/_helpers/__init__.py +1 -0
  2. luminarycloud/_helpers/_code_representation.py +18 -3
  3. luminarycloud/_helpers/_create_geometry.py +36 -17
  4. luminarycloud/_helpers/download.py +67 -1
  5. luminarycloud/_proto/api/v0/luminarycloud/geometry/geometry_pb2.pyi +1 -2
  6. luminarycloud/_proto/api/v0/luminarycloud/inference/inference_pb2.py +9 -9
  7. luminarycloud/_proto/api/v0/luminarycloud/inference/inference_pb2.pyi +7 -4
  8. luminarycloud/_proto/api/v0/luminarycloud/physics_ai/physics_ai_pb2.py +45 -21
  9. luminarycloud/_proto/api/v0/luminarycloud/physics_ai/physics_ai_pb2.pyi +65 -0
  10. luminarycloud/_proto/api/v0/luminarycloud/physics_ai/physics_ai_pb2_grpc.py +34 -0
  11. luminarycloud/_proto/api/v0/luminarycloud/physics_ai/physics_ai_pb2_grpc.pyi +12 -0
  12. luminarycloud/_proto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape_pb2.py +191 -82
  13. luminarycloud/_proto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape_pb2.pyi +327 -74
  14. luminarycloud/_proto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape_pb2_grpc.py +140 -65
  15. luminarycloud/_proto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape_pb2_grpc.pyi +74 -38
  16. luminarycloud/_proto/api/v0/luminarycloud/upload/upload_pb2.py +6 -2
  17. luminarycloud/_proto/api/v0/luminarycloud/upload/upload_pb2_grpc.py +71 -0
  18. luminarycloud/_proto/api/v0/luminarycloud/upload/upload_pb2_grpc.pyi +32 -0
  19. luminarycloud/_proto/assistant/assistant_pb2.py +76 -75
  20. luminarycloud/_proto/assistant/assistant_pb2.pyi +21 -18
  21. luminarycloud/_proto/assistant/assistant_pb2_grpc.py +14 -14
  22. luminarycloud/_proto/assistant/assistant_pb2_grpc.pyi +8 -8
  23. luminarycloud/_proto/base/base_pb2.py +7 -6
  24. luminarycloud/_proto/base/base_pb2.pyi +4 -0
  25. luminarycloud/_proto/client/simulation_pb2.py +188 -186
  26. luminarycloud/_proto/client/simulation_pb2.pyi +10 -2
  27. luminarycloud/_proto/geometry/geometry_pb2.py +63 -64
  28. luminarycloud/_proto/geometry/geometry_pb2.pyi +5 -1
  29. luminarycloud/_proto/inferenceservice/inferenceservice_pb2.py +11 -11
  30. luminarycloud/_proto/inferenceservice/inferenceservice_pb2.pyi +12 -4
  31. luminarycloud/_proto/quantity/quantity_pb2.py +11 -2
  32. luminarycloud/_proto/quantity/quantity_pb2.pyi +6 -0
  33. luminarycloud/_proto/table/table_pb2.pyi +4 -2
  34. luminarycloud/_proto/upload/upload_pb2.py +47 -7
  35. luminarycloud/_proto/upload/upload_pb2.pyi +62 -0
  36. luminarycloud/enum/quantity_type.py +15 -0
  37. luminarycloud/mesh.py +8 -1
  38. luminarycloud/params/simulation/physics/fluid/solution_controls/fluid_relaxation_method/fluid_implicit_relaxation/robust_startup/__init__.py +1 -0
  39. luminarycloud/params/simulation/physics/fluid/solution_controls/fluid_relaxation_method/fluid_implicit_relaxation/robust_startup/robust_startup_auto_.py +30 -0
  40. luminarycloud/params/simulation/physics/fluid/solution_controls/fluid_relaxation_method/fluid_implicit_relaxation/robust_startup/robust_startup_on_.py +1 -1
  41. luminarycloud/params/simulation/physics/fluid/solution_controls/fluid_relaxation_method/fluid_implicit_relaxation_.py +7 -3
  42. luminarycloud/params/simulation/physics/fluid/solution_controls_fluid_.py +4 -0
  43. luminarycloud/params/simulation/physics/fluid/turbulence_.py +1 -1
  44. luminarycloud/params/simulation/physics/fluid_.py +1 -1
  45. luminarycloud/params/simulation/physics/heat/solution_controls/heat_relaxation_method/heat_implicit_relaxation_.py +1 -1
  46. luminarycloud/params/simulation/physics/heat/solution_controls_heat_.py +1 -1
  47. luminarycloud/physics_ai/__init__.py +4 -0
  48. luminarycloud/physics_ai/inference.py +140 -4
  49. luminarycloud/physics_ai/solution.py +60 -0
  50. luminarycloud/tables.py +6 -8
  51. luminarycloud/vis/data_extraction.py +4 -5
  52. luminarycloud/vis/display.py +26 -11
  53. luminarycloud/vis/filters.py +116 -68
  54. luminarycloud/vis/primitives.py +3 -2
  55. luminarycloud/vis/visualization.py +197 -40
  56. {luminarycloud-0.15.4.dist-info → luminarycloud-0.16.0.dist-info}/METADATA +1 -1
  57. {luminarycloud-0.15.4.dist-info → luminarycloud-0.16.0.dist-info}/RECORD +58 -56
  58. {luminarycloud-0.15.4.dist-info → luminarycloud-0.16.0.dist-info}/WHEEL +0 -0
@@ -6,7 +6,9 @@ from luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape imp
6
6
 
7
7
 
8
8
  class OnshapeServiceStub(object):
9
- """Missing associated documentation comment in .proto file."""
9
+ """Public API service for Onshape third-party integration functionality.
10
+ Exposes authentication status checking and variable fetching capabilities.
11
+ """
10
12
 
11
13
  def __init__(self, channel):
12
14
  """Constructor.
@@ -14,66 +16,93 @@ class OnshapeServiceStub(object):
14
16
  Args:
15
17
  channel: A grpc.Channel.
16
18
  """
17
- self.SetAuthentication = channel.unary_unary(
18
- '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/SetAuthentication',
19
- request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.SetAuthenticationRequest.SerializeToString,
20
- response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.SetAuthenticationReply.FromString,
21
- )
22
19
  self.GetAuthenticationStatus = channel.unary_unary(
23
20
  '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/GetAuthenticationStatus',
24
- request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetAuthenticationRequest.SerializeToString,
25
- response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetAuthenticationReply.FromString,
26
- )
27
- self.ImportGeometry = channel.unary_unary(
28
- '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/ImportGeometry',
29
- request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ImportGeometryRequest.SerializeToString,
30
- response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ImportGeometryReply.FromString,
21
+ request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetAuthenticationStatusRequest.SerializeToString,
22
+ response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetAuthenticationStatusReply.FromString,
31
23
  )
32
24
  self.FetchVariables = channel.unary_unary(
33
25
  '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/FetchVariables',
34
26
  request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.FetchVariablesRequest.SerializeToString,
35
27
  response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.FetchVariablesReply.FromString,
36
28
  )
37
- self.SetVariables = channel.unary_unary(
38
- '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/SetVariables',
39
- request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.SetVariablesRequest.SerializeToString,
40
- response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.SetVariablesReply.FromString,
29
+ self.ListDocumentsWithWorkspaceAndVersions = channel.unary_unary(
30
+ '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/ListDocumentsWithWorkspaceAndVersions',
31
+ request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsWithWorkspaceAndVersionsRequest.SerializeToString,
32
+ response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsWithWorkspaceAndVersionsReply.FromString,
33
+ )
34
+ self.ListDocuments = channel.unary_unary(
35
+ '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/ListDocuments',
36
+ request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsRequest.SerializeToString,
37
+ response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsReply.FromString,
38
+ )
39
+ self.ListWorkspacesAndVersions = channel.unary_unary(
40
+ '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/ListWorkspacesAndVersions',
41
+ request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListWorkspacesAndVersionsRequest.SerializeToString,
42
+ response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListWorkspacesAndVersionsReply.FromString,
43
+ )
44
+ self.ListImportablesForSelection = channel.unary_unary(
45
+ '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/ListImportablesForSelection',
46
+ request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListImportablesForSelectionRequest.SerializeToString,
47
+ response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListImportablesForSelectionReply.FromString,
48
+ )
49
+ self.GetCompanyPrefixes = channel.unary_unary(
50
+ '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/GetCompanyPrefixes',
51
+ request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetCompanyPrefixesRequest.SerializeToString,
52
+ response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetCompanyPrefixesReply.FromString,
41
53
  )
42
54
 
43
55
 
44
56
  class OnshapeServiceServicer(object):
45
- """Missing associated documentation comment in .proto file."""
57
+ """Public API service for Onshape third-party integration functionality.
58
+ Exposes authentication status checking and variable fetching capabilities.
59
+ """
46
60
 
47
- def SetAuthentication(self, request, context):
48
- """Sets Onshape authentication and ties it to Luminary authentication.
61
+ def GetAuthenticationStatus(self, request, context):
62
+ """Checks whether the current user has valid authentication with Onshape.
49
63
  """
50
64
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
51
65
  context.set_details('Method not implemented!')
52
66
  raise NotImplementedError('Method not implemented!')
53
67
 
54
- def GetAuthenticationStatus(self, request, context):
55
- """Checks whether Luminary user currently has valid Auth for Onshape.
68
+ def FetchVariables(self, request, context):
69
+ """Fetches the list of variable names available in the specified Onshape element.
56
70
  """
57
71
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
58
72
  context.set_details('Method not implemented!')
59
73
  raise NotImplementedError('Method not implemented!')
60
74
 
61
- def ImportGeometry(self, request, context):
62
- """Imports geometry from Onshape into a Luminary Project.
75
+ def ListDocumentsWithWorkspaceAndVersions(self, request, context):
76
+ """Lists the documents of the user and the associated workspaces and versions.
77
+ A thumbnail is included for each document (not workspace or version)
63
78
  """
64
79
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
65
80
  context.set_details('Method not implemented!')
66
81
  raise NotImplementedError('Method not implemented!')
67
82
 
68
- def FetchVariables(self, request, context):
69
- """Get the current list of variables used in an Onshape project.
83
+ def ListDocuments(self, request, context):
84
+ """Lists only the documents of the user. A thumbnail is included for each document.
85
+ """
86
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
87
+ context.set_details('Method not implemented!')
88
+ raise NotImplementedError('Method not implemented!')
89
+
90
+ def ListWorkspacesAndVersions(self, request, context):
91
+ """Lists the workspaces and versions for a given document.
92
+ """
93
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
94
+ context.set_details('Method not implemented!')
95
+ raise NotImplementedError('Method not implemented!')
96
+
97
+ def ListImportablesForSelection(self, request, context):
98
+ """Given a request specifying a document and a workspace or version, lists the importable elements.
70
99
  """
71
100
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
72
101
  context.set_details('Method not implemented!')
73
102
  raise NotImplementedError('Method not implemented!')
74
103
 
75
- def SetVariables(self, request, context):
76
- """Resets variables in an Onshape project.
104
+ def GetCompanyPrefixes(self, request, context):
105
+ """Returns information about the companies the user is associated with.
77
106
  """
78
107
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
79
108
  context.set_details('Method not implemented!')
@@ -82,30 +111,40 @@ class OnshapeServiceServicer(object):
82
111
 
83
112
  def add_OnshapeServiceServicer_to_server(servicer, server):
84
113
  rpc_method_handlers = {
85
- 'SetAuthentication': grpc.unary_unary_rpc_method_handler(
86
- servicer.SetAuthentication,
87
- request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.SetAuthenticationRequest.FromString,
88
- response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.SetAuthenticationReply.SerializeToString,
89
- ),
90
114
  'GetAuthenticationStatus': grpc.unary_unary_rpc_method_handler(
91
115
  servicer.GetAuthenticationStatus,
92
- request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetAuthenticationRequest.FromString,
93
- response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetAuthenticationReply.SerializeToString,
94
- ),
95
- 'ImportGeometry': grpc.unary_unary_rpc_method_handler(
96
- servicer.ImportGeometry,
97
- request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ImportGeometryRequest.FromString,
98
- response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ImportGeometryReply.SerializeToString,
116
+ request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetAuthenticationStatusRequest.FromString,
117
+ response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetAuthenticationStatusReply.SerializeToString,
99
118
  ),
100
119
  'FetchVariables': grpc.unary_unary_rpc_method_handler(
101
120
  servicer.FetchVariables,
102
121
  request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.FetchVariablesRequest.FromString,
103
122
  response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.FetchVariablesReply.SerializeToString,
104
123
  ),
105
- 'SetVariables': grpc.unary_unary_rpc_method_handler(
106
- servicer.SetVariables,
107
- request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.SetVariablesRequest.FromString,
108
- response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.SetVariablesReply.SerializeToString,
124
+ 'ListDocumentsWithWorkspaceAndVersions': grpc.unary_unary_rpc_method_handler(
125
+ servicer.ListDocumentsWithWorkspaceAndVersions,
126
+ request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsWithWorkspaceAndVersionsRequest.FromString,
127
+ response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsWithWorkspaceAndVersionsReply.SerializeToString,
128
+ ),
129
+ 'ListDocuments': grpc.unary_unary_rpc_method_handler(
130
+ servicer.ListDocuments,
131
+ request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsRequest.FromString,
132
+ response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsReply.SerializeToString,
133
+ ),
134
+ 'ListWorkspacesAndVersions': grpc.unary_unary_rpc_method_handler(
135
+ servicer.ListWorkspacesAndVersions,
136
+ request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListWorkspacesAndVersionsRequest.FromString,
137
+ response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListWorkspacesAndVersionsReply.SerializeToString,
138
+ ),
139
+ 'ListImportablesForSelection': grpc.unary_unary_rpc_method_handler(
140
+ servicer.ListImportablesForSelection,
141
+ request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListImportablesForSelectionRequest.FromString,
142
+ response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListImportablesForSelectionReply.SerializeToString,
143
+ ),
144
+ 'GetCompanyPrefixes': grpc.unary_unary_rpc_method_handler(
145
+ servicer.GetCompanyPrefixes,
146
+ request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetCompanyPrefixesRequest.FromString,
147
+ response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetCompanyPrefixesReply.SerializeToString,
109
148
  ),
110
149
  }
111
150
  generic_handler = grpc.method_handlers_generic_handler(
@@ -115,10 +154,12 @@ def add_OnshapeServiceServicer_to_server(servicer, server):
115
154
 
116
155
  # This class is part of an EXPERIMENTAL API.
117
156
  class OnshapeService(object):
118
- """Missing associated documentation comment in .proto file."""
157
+ """Public API service for Onshape third-party integration functionality.
158
+ Exposes authentication status checking and variable fetching capabilities.
159
+ """
119
160
 
120
161
  @staticmethod
121
- def SetAuthentication(request,
162
+ def GetAuthenticationStatus(request,
122
163
  target,
123
164
  options=(),
124
165
  channel_credentials=None,
@@ -128,14 +169,14 @@ class OnshapeService(object):
128
169
  wait_for_ready=None,
129
170
  timeout=None,
130
171
  metadata=None):
131
- return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/SetAuthentication',
132
- proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.SetAuthenticationRequest.SerializeToString,
133
- proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.SetAuthenticationReply.FromString,
172
+ return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/GetAuthenticationStatus',
173
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetAuthenticationStatusRequest.SerializeToString,
174
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetAuthenticationStatusReply.FromString,
134
175
  options, channel_credentials,
135
176
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
136
177
 
137
178
  @staticmethod
138
- def GetAuthenticationStatus(request,
179
+ def FetchVariables(request,
139
180
  target,
140
181
  options=(),
141
182
  channel_credentials=None,
@@ -145,14 +186,14 @@ class OnshapeService(object):
145
186
  wait_for_ready=None,
146
187
  timeout=None,
147
188
  metadata=None):
148
- return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/GetAuthenticationStatus',
149
- proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetAuthenticationRequest.SerializeToString,
150
- proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetAuthenticationReply.FromString,
189
+ return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/FetchVariables',
190
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.FetchVariablesRequest.SerializeToString,
191
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.FetchVariablesReply.FromString,
151
192
  options, channel_credentials,
152
193
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
153
194
 
154
195
  @staticmethod
155
- def ImportGeometry(request,
196
+ def ListDocumentsWithWorkspaceAndVersions(request,
156
197
  target,
157
198
  options=(),
158
199
  channel_credentials=None,
@@ -162,14 +203,14 @@ class OnshapeService(object):
162
203
  wait_for_ready=None,
163
204
  timeout=None,
164
205
  metadata=None):
165
- return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/ImportGeometry',
166
- proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ImportGeometryRequest.SerializeToString,
167
- proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ImportGeometryReply.FromString,
206
+ return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/ListDocumentsWithWorkspaceAndVersions',
207
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsWithWorkspaceAndVersionsRequest.SerializeToString,
208
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsWithWorkspaceAndVersionsReply.FromString,
168
209
  options, channel_credentials,
169
210
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
170
211
 
171
212
  @staticmethod
172
- def FetchVariables(request,
213
+ def ListDocuments(request,
173
214
  target,
174
215
  options=(),
175
216
  channel_credentials=None,
@@ -179,14 +220,48 @@ class OnshapeService(object):
179
220
  wait_for_ready=None,
180
221
  timeout=None,
181
222
  metadata=None):
182
- return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/FetchVariables',
183
- proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.FetchVariablesRequest.SerializeToString,
184
- proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.FetchVariablesReply.FromString,
223
+ return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/ListDocuments',
224
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsRequest.SerializeToString,
225
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsReply.FromString,
226
+ options, channel_credentials,
227
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
228
+
229
+ @staticmethod
230
+ def ListWorkspacesAndVersions(request,
231
+ target,
232
+ options=(),
233
+ channel_credentials=None,
234
+ call_credentials=None,
235
+ insecure=False,
236
+ compression=None,
237
+ wait_for_ready=None,
238
+ timeout=None,
239
+ metadata=None):
240
+ return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/ListWorkspacesAndVersions',
241
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListWorkspacesAndVersionsRequest.SerializeToString,
242
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListWorkspacesAndVersionsReply.FromString,
243
+ options, channel_credentials,
244
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
245
+
246
+ @staticmethod
247
+ def ListImportablesForSelection(request,
248
+ target,
249
+ options=(),
250
+ channel_credentials=None,
251
+ call_credentials=None,
252
+ insecure=False,
253
+ compression=None,
254
+ wait_for_ready=None,
255
+ timeout=None,
256
+ metadata=None):
257
+ return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/ListImportablesForSelection',
258
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListImportablesForSelectionRequest.SerializeToString,
259
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListImportablesForSelectionReply.FromString,
185
260
  options, channel_credentials,
186
261
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
187
262
 
188
263
  @staticmethod
189
- def SetVariables(request,
264
+ def GetCompanyPrefixes(request,
190
265
  target,
191
266
  options=(),
192
267
  channel_credentials=None,
@@ -196,8 +271,8 @@ class OnshapeService(object):
196
271
  wait_for_ready=None,
197
272
  timeout=None,
198
273
  metadata=None):
199
- return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/SetVariables',
200
- proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.SetVariablesRequest.SerializeToString,
201
- proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.SetVariablesReply.FromString,
274
+ return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/GetCompanyPrefixes',
275
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetCompanyPrefixesRequest.SerializeToString,
276
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetCompanyPrefixesReply.FromString,
202
277
  options, channel_credentials,
203
278
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -7,68 +7,104 @@ import grpc
7
7
  import luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2
8
8
 
9
9
  class OnshapeServiceStub:
10
+ """Public API service for Onshape third-party integration functionality.
11
+ Exposes authentication status checking and variable fetching capabilities.
12
+ """
13
+
10
14
  def __init__(self, channel: grpc.Channel) -> None: ...
11
- SetAuthentication: grpc.UnaryUnaryMultiCallable[
12
- luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.SetAuthenticationRequest,
13
- luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.SetAuthenticationReply,
14
- ]
15
- """Sets Onshape authentication and ties it to Luminary authentication."""
16
15
  GetAuthenticationStatus: grpc.UnaryUnaryMultiCallable[
17
- luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.GetAuthenticationRequest,
18
- luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.GetAuthenticationReply,
19
- ]
20
- """Checks whether Luminary user currently has valid Auth for Onshape."""
21
- ImportGeometry: grpc.UnaryUnaryMultiCallable[
22
- luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.ImportGeometryRequest,
23
- luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.ImportGeometryReply,
16
+ luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.GetAuthenticationStatusRequest,
17
+ luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.GetAuthenticationStatusReply,
24
18
  ]
25
- """Imports geometry from Onshape into a Luminary Project."""
19
+ """Checks whether the current user has valid authentication with Onshape."""
26
20
  FetchVariables: grpc.UnaryUnaryMultiCallable[
27
21
  luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.FetchVariablesRequest,
28
22
  luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.FetchVariablesReply,
29
23
  ]
30
- """Get the current list of variables used in an Onshape project."""
31
- SetVariables: grpc.UnaryUnaryMultiCallable[
32
- luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.SetVariablesRequest,
33
- luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.SetVariablesReply,
24
+ """Fetches the list of variable names available in the specified Onshape element."""
25
+ ListDocumentsWithWorkspaceAndVersions: grpc.UnaryUnaryMultiCallable[
26
+ luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.ListDocumentsWithWorkspaceAndVersionsRequest,
27
+ luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.ListDocumentsWithWorkspaceAndVersionsReply,
28
+ ]
29
+ """Lists the documents of the user and the associated workspaces and versions.
30
+ A thumbnail is included for each document (not workspace or version)
31
+ """
32
+ ListDocuments: grpc.UnaryUnaryMultiCallable[
33
+ luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.ListDocumentsRequest,
34
+ luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.ListDocumentsReply,
35
+ ]
36
+ """Lists only the documents of the user. A thumbnail is included for each document."""
37
+ ListWorkspacesAndVersions: grpc.UnaryUnaryMultiCallable[
38
+ luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.ListWorkspacesAndVersionsRequest,
39
+ luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.ListWorkspacesAndVersionsReply,
40
+ ]
41
+ """Lists the workspaces and versions for a given document."""
42
+ ListImportablesForSelection: grpc.UnaryUnaryMultiCallable[
43
+ luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.ListImportablesForSelectionRequest,
44
+ luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.ListImportablesForSelectionReply,
34
45
  ]
35
- """Resets variables in an Onshape project."""
46
+ """Given a request specifying a document and a workspace or version, lists the importable elements."""
47
+ GetCompanyPrefixes: grpc.UnaryUnaryMultiCallable[
48
+ luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.GetCompanyPrefixesRequest,
49
+ luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.GetCompanyPrefixesReply,
50
+ ]
51
+ """Returns information about the companies the user is associated with."""
36
52
 
37
53
  class OnshapeServiceServicer(metaclass=abc.ABCMeta):
54
+ """Public API service for Onshape third-party integration functionality.
55
+ Exposes authentication status checking and variable fetching capabilities.
56
+ """
57
+
38
58
  @abc.abstractmethod
39
- def SetAuthentication(
59
+ def GetAuthenticationStatus(
40
60
  self,
41
- request: luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.SetAuthenticationRequest,
61
+ request: luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.GetAuthenticationStatusRequest,
42
62
  context: grpc.ServicerContext,
43
- ) -> luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.SetAuthenticationReply:
44
- """Sets Onshape authentication and ties it to Luminary authentication."""
63
+ ) -> luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.GetAuthenticationStatusReply:
64
+ """Checks whether the current user has valid authentication with Onshape."""
45
65
  @abc.abstractmethod
46
- def GetAuthenticationStatus(
66
+ def FetchVariables(
47
67
  self,
48
- request: luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.GetAuthenticationRequest,
68
+ request: luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.FetchVariablesRequest,
49
69
  context: grpc.ServicerContext,
50
- ) -> luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.GetAuthenticationReply:
51
- """Checks whether Luminary user currently has valid Auth for Onshape."""
70
+ ) -> luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.FetchVariablesReply:
71
+ """Fetches the list of variable names available in the specified Onshape element."""
52
72
  @abc.abstractmethod
53
- def ImportGeometry(
73
+ def ListDocumentsWithWorkspaceAndVersions(
54
74
  self,
55
- request: luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.ImportGeometryRequest,
75
+ request: luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.ListDocumentsWithWorkspaceAndVersionsRequest,
56
76
  context: grpc.ServicerContext,
57
- ) -> luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.ImportGeometryReply:
58
- """Imports geometry from Onshape into a Luminary Project."""
77
+ ) -> luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.ListDocumentsWithWorkspaceAndVersionsReply:
78
+ """Lists the documents of the user and the associated workspaces and versions.
79
+ A thumbnail is included for each document (not workspace or version)
80
+ """
59
81
  @abc.abstractmethod
60
- def FetchVariables(
82
+ def ListDocuments(
61
83
  self,
62
- request: luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.FetchVariablesRequest,
84
+ request: luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.ListDocumentsRequest,
63
85
  context: grpc.ServicerContext,
64
- ) -> luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.FetchVariablesReply:
65
- """Get the current list of variables used in an Onshape project."""
86
+ ) -> luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.ListDocumentsReply:
87
+ """Lists only the documents of the user. A thumbnail is included for each document."""
88
+ @abc.abstractmethod
89
+ def ListWorkspacesAndVersions(
90
+ self,
91
+ request: luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.ListWorkspacesAndVersionsRequest,
92
+ context: grpc.ServicerContext,
93
+ ) -> luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.ListWorkspacesAndVersionsReply:
94
+ """Lists the workspaces and versions for a given document."""
95
+ @abc.abstractmethod
96
+ def ListImportablesForSelection(
97
+ self,
98
+ request: luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.ListImportablesForSelectionRequest,
99
+ context: grpc.ServicerContext,
100
+ ) -> luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.ListImportablesForSelectionReply:
101
+ """Given a request specifying a document and a workspace or version, lists the importable elements."""
66
102
  @abc.abstractmethod
67
- def SetVariables(
103
+ def GetCompanyPrefixes(
68
104
  self,
69
- request: luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.SetVariablesRequest,
105
+ request: luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.GetCompanyPrefixesRequest,
70
106
  context: grpc.ServicerContext,
71
- ) -> luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.SetVariablesReply:
72
- """Resets variables in an Onshape project."""
107
+ ) -> luminarycloud._proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2.GetCompanyPrefixesReply:
108
+ """Returns information about the companies the user is associated with."""
73
109
 
74
110
  def add_OnshapeServiceServicer_to_server(servicer: OnshapeServiceServicer, server: grpc.Server) -> None: ...
@@ -16,7 +16,7 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
16
16
  from luminarycloud._proto.upload import upload_pb2 as proto_dot_upload_dot_upload__pb2
17
17
 
18
18
 
19
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.proto/api/v0/luminarycloud/upload/upload.proto\x12*luminary.proto.api.v0.luminarycloud.upload\x1a\x1cgoogle/api/annotations.proto\x1a\x19proto/upload/upload.proto2\xd0\x04\n\rUploadService\x12\x92\x01\n\x0c\x43reateUpload\x12*.luminary.proto.upload.CreateUploadRequest\x1a(.luminary.proto.upload.CreateUploadReply\",\x82\xd3\xe4\x93\x02&\"!/v0/projects/{project_id}/uploads:\x01*\x12\x8b\x01\n\x0bStartUpload\x12).luminary.proto.upload.StartUploadRequest\x1a\'.luminary.proto.upload.StartUploadReply\"(\x82\xd3\xe4\x93\x02\"\"\x1d/v0/uploads/{upload_id}:start:\x01*\x12\x89\x01\n\nUploadData\x12(.luminary.proto.upload.UploadDataRequest\x1a&.luminary.proto.upload.UploadDataReply\")\x82\xd3\xe4\x93\x02#\"\x1e/v0/uploads/{upload_id}:upload:\x01*\x12\x8f\x01\n\x0c\x46inishUpload\x12*.luminary.proto.upload.FinishUploadRequest\x1a(.luminary.proto.upload.FinishUploadReply\")\x82\xd3\xe4\x93\x02#\"\x1e/v0/uploads/{upload_id}:finish:\x01*B:Z8luminarycloud.com/core/proto/api/v0/luminarycloud/uploadb\x06proto3')
19
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.proto/api/v0/luminarycloud/upload/upload.proto\x12*luminary.proto.api.v0.luminarycloud.upload\x1a\x1cgoogle/api/annotations.proto\x1a\x19proto/upload/upload.proto2\xc9\x07\n\rUploadService\x12\x92\x01\n\x0c\x43reateUpload\x12*.luminary.proto.upload.CreateUploadRequest\x1a(.luminary.proto.upload.CreateUploadReply\",\x82\xd3\xe4\x93\x02&\"!/v0/projects/{project_id}/uploads:\x01*\x12\x8b\x01\n\x0bStartUpload\x12).luminary.proto.upload.StartUploadRequest\x1a\'.luminary.proto.upload.StartUploadReply\"(\x82\xd3\xe4\x93\x02\"\"\x1d/v0/uploads/{upload_id}:start:\x01*\x12\x89\x01\n\nUploadData\x12(.luminary.proto.upload.UploadDataRequest\x1a&.luminary.proto.upload.UploadDataReply\")\x82\xd3\xe4\x93\x02#\"\x1e/v0/uploads/{upload_id}:upload:\x01*\x12\x8f\x01\n\x0c\x46inishUpload\x12*.luminary.proto.upload.FinishUploadRequest\x1a(.luminary.proto.upload.FinishUploadReply\")\x82\xd3\xe4\x93\x02#\"\x1e/v0/uploads/{upload_id}:finish:\x01*\x12\xae\x01\n\x11UploadWebGeometry\x12/.luminary.proto.upload.UploadWebGeometryRequest\x1a-.luminary.proto.upload.UploadWebGeometryReply\"9\x82\xd3\xe4\x93\x02\x33\"./v0/projects/{project_id}/uploads:web_geometry:\x01*\x12\xc5\x01\n\x15GetWebGeometryBaseUrl\x12\x33.luminary.proto.upload.GetWebGeometryBaseUrlRequest\x1a\x31.luminary.proto.upload.GetWebGeometryBaseUrlReply\"D\x82\xd3\xe4\x93\x02>\x12</v0/projects/{project_id}/uploads/{web_geometry_id}:base_urlB:Z8luminarycloud.com/core/proto/api/v0/luminarycloud/uploadb\x06proto3')
20
20
 
21
21
 
22
22
 
@@ -33,6 +33,10 @@ if _descriptor._USE_C_DESCRIPTORS == False:
33
33
  _UPLOADSERVICE.methods_by_name['UploadData']._serialized_options = b'\202\323\344\223\002#\"\036/v0/uploads/{upload_id}:upload:\001*'
34
34
  _UPLOADSERVICE.methods_by_name['FinishUpload']._options = None
35
35
  _UPLOADSERVICE.methods_by_name['FinishUpload']._serialized_options = b'\202\323\344\223\002#\"\036/v0/uploads/{upload_id}:finish:\001*'
36
+ _UPLOADSERVICE.methods_by_name['UploadWebGeometry']._options = None
37
+ _UPLOADSERVICE.methods_by_name['UploadWebGeometry']._serialized_options = b'\202\323\344\223\0023\"./v0/projects/{project_id}/uploads:web_geometry:\001*'
38
+ _UPLOADSERVICE.methods_by_name['GetWebGeometryBaseUrl']._options = None
39
+ _UPLOADSERVICE.methods_by_name['GetWebGeometryBaseUrl']._serialized_options = b'\202\323\344\223\002>\022</v0/projects/{project_id}/uploads/{web_geometry_id}:base_url'
36
40
  _UPLOADSERVICE._serialized_start=152
37
- _UPLOADSERVICE._serialized_end=744
41
+ _UPLOADSERVICE._serialized_end=1121
38
42
  # @@protoc_insertion_point(module_scope)
@@ -35,6 +35,16 @@ class UploadServiceStub(object):
35
35
  request_serializer=proto_dot_upload_dot_upload__pb2.FinishUploadRequest.SerializeToString,
36
36
  response_deserializer=proto_dot_upload_dot_upload__pb2.FinishUploadReply.FromString,
37
37
  )
38
+ self.UploadWebGeometry = channel.unary_unary(
39
+ '/luminary.proto.api.v0.luminarycloud.upload.UploadService/UploadWebGeometry',
40
+ request_serializer=proto_dot_upload_dot_upload__pb2.UploadWebGeometryRequest.SerializeToString,
41
+ response_deserializer=proto_dot_upload_dot_upload__pb2.UploadWebGeometryReply.FromString,
42
+ )
43
+ self.GetWebGeometryBaseUrl = channel.unary_unary(
44
+ '/luminary.proto.api.v0.luminarycloud.upload.UploadService/GetWebGeometryBaseUrl',
45
+ request_serializer=proto_dot_upload_dot_upload__pb2.GetWebGeometryBaseUrlRequest.SerializeToString,
46
+ response_deserializer=proto_dot_upload_dot_upload__pb2.GetWebGeometryBaseUrlReply.FromString,
47
+ )
38
48
 
39
49
 
40
50
  class UploadServiceServicer(object):
@@ -86,6 +96,23 @@ class UploadServiceServicer(object):
86
96
  context.set_details('Method not implemented!')
87
97
  raise NotImplementedError('Method not implemented!')
88
98
 
99
+ def UploadWebGeometry(self, request, context):
100
+ """Upload a URL referencing an asset on from an online geometry provider
101
+ (e.g., Onshape). We store the reference and and perform no actual file
102
+ transfer until use of the Onshape asset. It is merely for tracking references
103
+ to the object.
104
+ """
105
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
106
+ context.set_details('Method not implemented!')
107
+ raise NotImplementedError('Method not implemented!')
108
+
109
+ def GetWebGeometryBaseUrl(self, request, context):
110
+ """Get the originally associated URL for a given web geometry ID.
111
+ """
112
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
113
+ context.set_details('Method not implemented!')
114
+ raise NotImplementedError('Method not implemented!')
115
+
89
116
 
90
117
  def add_UploadServiceServicer_to_server(servicer, server):
91
118
  rpc_method_handlers = {
@@ -109,6 +136,16 @@ def add_UploadServiceServicer_to_server(servicer, server):
109
136
  request_deserializer=proto_dot_upload_dot_upload__pb2.FinishUploadRequest.FromString,
110
137
  response_serializer=proto_dot_upload_dot_upload__pb2.FinishUploadReply.SerializeToString,
111
138
  ),
139
+ 'UploadWebGeometry': grpc.unary_unary_rpc_method_handler(
140
+ servicer.UploadWebGeometry,
141
+ request_deserializer=proto_dot_upload_dot_upload__pb2.UploadWebGeometryRequest.FromString,
142
+ response_serializer=proto_dot_upload_dot_upload__pb2.UploadWebGeometryReply.SerializeToString,
143
+ ),
144
+ 'GetWebGeometryBaseUrl': grpc.unary_unary_rpc_method_handler(
145
+ servicer.GetWebGeometryBaseUrl,
146
+ request_deserializer=proto_dot_upload_dot_upload__pb2.GetWebGeometryBaseUrlRequest.FromString,
147
+ response_serializer=proto_dot_upload_dot_upload__pb2.GetWebGeometryBaseUrlReply.SerializeToString,
148
+ ),
112
149
  }
113
150
  generic_handler = grpc.method_handlers_generic_handler(
114
151
  'luminary.proto.api.v0.luminarycloud.upload.UploadService', rpc_method_handlers)
@@ -187,3 +224,37 @@ class UploadService(object):
187
224
  proto_dot_upload_dot_upload__pb2.FinishUploadReply.FromString,
188
225
  options, channel_credentials,
189
226
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
227
+
228
+ @staticmethod
229
+ def UploadWebGeometry(request,
230
+ target,
231
+ options=(),
232
+ channel_credentials=None,
233
+ call_credentials=None,
234
+ insecure=False,
235
+ compression=None,
236
+ wait_for_ready=None,
237
+ timeout=None,
238
+ metadata=None):
239
+ return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.upload.UploadService/UploadWebGeometry',
240
+ proto_dot_upload_dot_upload__pb2.UploadWebGeometryRequest.SerializeToString,
241
+ proto_dot_upload_dot_upload__pb2.UploadWebGeometryReply.FromString,
242
+ options, channel_credentials,
243
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
244
+
245
+ @staticmethod
246
+ def GetWebGeometryBaseUrl(request,
247
+ target,
248
+ options=(),
249
+ channel_credentials=None,
250
+ call_credentials=None,
251
+ insecure=False,
252
+ compression=None,
253
+ wait_for_ready=None,
254
+ timeout=None,
255
+ metadata=None):
256
+ return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.upload.UploadService/GetWebGeometryBaseUrl',
257
+ proto_dot_upload_dot_upload__pb2.GetWebGeometryBaseUrlRequest.SerializeToString,
258
+ proto_dot_upload_dot_upload__pb2.GetWebGeometryBaseUrlReply.FromString,
259
+ options, channel_credentials,
260
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)