luminarycloud 0.15.4__py3-none-any.whl → 0.15.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.
Files changed (25) hide show
  1. luminarycloud/_helpers/_create_geometry.py +36 -17
  2. luminarycloud/_proto/api/v0/luminarycloud/geometry/geometry_pb2.pyi +1 -2
  3. luminarycloud/_proto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape_pb2.py +27 -105
  4. luminarycloud/_proto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape_pb2.pyi +24 -173
  5. luminarycloud/_proto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape_pb2_grpc.py +17 -113
  6. luminarycloud/_proto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape_pb2_grpc.pyi +16 -44
  7. luminarycloud/_proto/api/v0/luminarycloud/upload/upload_pb2.py +4 -2
  8. luminarycloud/_proto/api/v0/luminarycloud/upload/upload_pb2_grpc.py +37 -0
  9. luminarycloud/_proto/api/v0/luminarycloud/upload/upload_pb2_grpc.pyi +20 -0
  10. luminarycloud/_proto/assistant/assistant_pb2.py +9 -29
  11. luminarycloud/_proto/assistant/assistant_pb2.pyi +0 -37
  12. luminarycloud/_proto/assistant/assistant_pb2_grpc.py +0 -34
  13. luminarycloud/_proto/assistant/assistant_pb2_grpc.pyi +0 -12
  14. luminarycloud/_proto/geometry/geometry_pb2.py +63 -64
  15. luminarycloud/_proto/upload/upload_pb2.py +27 -7
  16. luminarycloud/_proto/upload/upload_pb2.pyi +31 -0
  17. luminarycloud/params/simulation/physics/fluid/solution_controls/fluid_relaxation_method/fluid_implicit_relaxation_.py +1 -1
  18. luminarycloud/params/simulation/physics/fluid/turbulence_.py +1 -1
  19. luminarycloud/params/simulation/physics/fluid_.py +1 -1
  20. luminarycloud/params/simulation/physics/heat/solution_controls/heat_relaxation_method/heat_implicit_relaxation_.py +1 -1
  21. luminarycloud/params/simulation/physics/heat/solution_controls_heat_.py +1 -1
  22. luminarycloud/vis/filters.py +18 -3
  23. {luminarycloud-0.15.4.dist-info → luminarycloud-0.15.5.dist-info}/METADATA +1 -1
  24. {luminarycloud-0.15.4.dist-info → luminarycloud-0.15.5.dist-info}/RECORD +25 -25
  25. {luminarycloud-0.15.4.dist-info → luminarycloud-0.15.5.dist-info}/WHEEL +0 -0
@@ -26,24 +26,42 @@ def create_geometry(
26
26
  convert_to_discrete: bool = False,
27
27
  ) -> geometrypb.Geometry:
28
28
 
29
- cad_file_meta = util.get_file_metadata(cad_file_path)
30
- logger.info(
31
- f"creating geometry in {project_id} by uploading file: {cad_file_meta.name}.{cad_file_meta.ext}, "
32
- + f"size: {cad_file_meta.size} bytes, sha256: {str(cad_file_meta.sha256_checksum)}, "
33
- + f"crc32c: {cad_file_meta.crc32c_checksum}"
34
- )
29
+ # TODO(onshape): Document this publicly when we release
30
+ cad_file_path_str = str(cad_file_path)
31
+ if "https://" in cad_file_path_str and ".onshape.com" in cad_file_path_str:
32
+ if name is None:
33
+ # Onshape will fill in an empty string with the document - element name
34
+ name = ""
35
+
36
+ web_geometry_reply = client.UploadWebGeometry(
37
+ uploadpb.UploadWebGeometryRequest(
38
+ project_id=project_id,
39
+ url=cad_file_path_str,
40
+ )
41
+ )
42
+ url = ""
43
+ web_geometry_id = web_geometry_reply.web_geometry_id
44
+ else:
45
+ cad_file_meta = util.get_file_metadata(cad_file_path)
46
+ logger.info(
47
+ f"creating geometry in {project_id} by uploading file: {cad_file_meta.name}.{cad_file_meta.ext}, "
48
+ + f"size: {cad_file_meta.size} bytes, sha256: {str(cad_file_meta.sha256_checksum)}, "
49
+ + f"crc32c: {cad_file_meta.crc32c_checksum}"
50
+ )
51
+
52
+ finish_res = upload_file(
53
+ client,
54
+ project_id,
55
+ uploadpb.ResourceParams(geometry_params=uploadpb.GeometryParams()),
56
+ cad_file_path,
57
+ )[1]
58
+ url = finish_res.url
59
+ web_geometry_id = ""
35
60
 
36
- finish_res = upload_file(
37
- client,
38
- project_id,
39
- uploadpb.ResourceParams(geometry_params=uploadpb.GeometryParams()),
40
- cad_file_path,
41
- )[1]
61
+ if name is None:
62
+ # if the caller did not provide a name, use the file name
63
+ name = cad_file_meta.name
42
64
 
43
- # create geometry
44
- if name is None:
45
- # if the caller did not provide a name, use the file name
46
- name = cad_file_meta.name
47
65
  if scaling is None:
48
66
  # default to no scaling
49
67
  scaling = 1.0
@@ -52,7 +70,8 @@ def create_geometry(
52
70
  geometrypb.CreateGeometryRequest(
53
71
  project_id=project_id,
54
72
  name=name,
55
- url=finish_res.url,
73
+ url=url,
74
+ web_geometry_id=web_geometry_id,
56
75
  scaling=scaling,
57
76
  wait=False,
58
77
  request_id=str(uuid.uuid4()),
@@ -685,8 +685,7 @@ class CreateGeometryRequest(google.protobuf.message.Message):
685
685
  """
686
686
  web_geometry_id: builtins.str
687
687
  """One of url/web_geometry_id required.
688
- Id for web_geometry, such as returned from
689
- frontendpb.UploadWebGeometryReply.
688
+ Id for web_geometry, such as returned from UploadWebGeometryReply.
690
689
  """
691
690
  scaling: builtins.float
692
691
  """Required. Scaling of the source CAD file."""
@@ -13,42 +13,18 @@ _sym_db = _symbol_database.Default()
13
13
 
14
14
 
15
15
  from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
16
- from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
17
- from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
18
16
  from luminarycloud._proto.ratelimit import ratelimit_pb2 as proto_dot_ratelimit_dot_ratelimit__pb2
19
17
 
20
18
 
21
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nFproto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape.proto\x12\x41luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1fproto/ratelimit/ratelimit.proto\"m\n\x0bOnshapePath\x12\x16\n\x0e\x63ompany_prefix\x18\x01 \x01(\t\x12\x13\n\x0b\x64ocument_id\x18\x02 \x01(\t\x12\x0e\n\x06w_or_v\x18\x03 \x01(\t\x12\r\n\x05wv_id\x18\x04 \x01(\t\x12\x12\n\nelement_id\x18\x05 \x01(\t\"e\n\x0fOnshapeVariable\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05value\x18\x03 \x01(\t\x12\x12\n\nexpression\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\"1\n\x1eGetAuthenticationStatusRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\"\x1a\n\x18SetAuthenticationRequest\"\x18\n\x16SetAuthenticationReply\"+\n\x18GetAuthenticationRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\"-\n\x16GetAuthenticationReply\x12\x13\n\x0b\x61uth_active\x18\x01 \x01(\x08\"\x9a\x01\n\x15ImportGeometryRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\\\n\x04path\x18\x02 \x01(\x0b\x32N.luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapePath\x12\x12\n\nproject_id\x18\x03 \x01(\t\"*\n\x13ImportGeometryReply\x12\x13\n\x0bgeometry_id\x18\x01 \x03(\t\"\x86\x01\n\x15\x46\x65tchVariablesRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\\\n\x04path\x18\x02 \x01(\x0b\x32N.luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapePath\"$\n\x13\x46\x65tchVariablesReply\x12\r\n\x05names\x18\x01 \x03(\t\"\xeb\x01\n\x13SetVariablesRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\\\n\x04path\x18\x02 \x01(\x0b\x32N.luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapePath\x12\x65\n\tvariables\x18\x03 \x03(\x0b\x32R.luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeVariable\"\"\n\x11SetVariablesReply\x12\r\n\x05\x65rror\x18\x01 \x01(\t2\x85\x08\n\x0eOnshapeService\x12\xcd\x01\n\x11SetAuthentication\x12[.luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.SetAuthenticationRequest\x1aY.luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.SetAuthenticationReply\"\x00\x12\xd3\x01\n\x17GetAuthenticationStatus\x12[.luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.GetAuthenticationRequest\x1aY.luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.GetAuthenticationReply\"\x00\x12\xc4\x01\n\x0eImportGeometry\x12X.luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.ImportGeometryRequest\x1aV.luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.ImportGeometryReply\"\x00\x12\xc4\x01\n\x0e\x46\x65tchVariables\x12X.luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.FetchVariablesRequest\x1aV.luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.FetchVariablesReply\"\x00\x12\xbe\x01\n\x0cSetVariables\x12V.luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.SetVariablesRequest\x1aT.luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.SetVariablesReply\"\x00\x42QZOluminarycloud.com/core/proto/api/v0/luminarycloud/thirdpartyintegration/onshapeb\x06proto3')
19
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nFproto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape.proto\x12\x41luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape\x1a\x1cgoogle/api/annotations.proto\x1a\x1fproto/ratelimit/ratelimit.proto\" \n\x1eGetAuthenticationStatusRequest\"3\n\x1cGetAuthenticationStatusReply\x12\x13\n\x0b\x61uth_active\x18\x01 \x01(\x08\"m\n\x0bOnshapePath\x12\x16\n\x0e\x63ompany_prefix\x18\x01 \x01(\t\x12\x13\n\x0b\x64ocument_id\x18\x02 \x01(\t\x12\x0e\n\x06w_or_v\x18\x03 \x01(\t\x12\r\n\x05wv_id\x18\x04 \x01(\t\x12\x12\n\nelement_id\x18\x05 \x01(\t\"u\n\x15\x46\x65tchVariablesRequest\x12\\\n\x04path\x18\x01 \x01(\x0b\x32N.luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapePath\"$\n\x13\x46\x65tchVariablesReply\x12\r\n\x05names\x18\x01 \x03(\t2\xc8\x04\n\x0eOnshapeService\x12\xa8\x02\n\x17GetAuthenticationStatus\x12\x61.luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.GetAuthenticationStatusRequest\x1a_.luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.GetAuthenticationStatusReply\"I\x82\xd3\xe4\x93\x02\x39\x12\x37/v0/thirdpartyintegration/onshape/authentication-status\x8a\xb5\x18\x06\x08<\x12\x02\x08\x01\x12\x8a\x02\n\x0e\x46\x65tchVariables\x12X.luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.FetchVariablesRequest\x1aV.luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.FetchVariablesReply\"F\x82\xd3\xe4\x93\x02\x36\"1/v0/thirdpartyintegration/onshape/fetch-variables:\x01*\x8a\xb5\x18\x06\x08\n\x12\x02\x08\x05\x42QZOluminarycloud.com/core/proto/api/v0/luminarycloud/thirdpartyintegration/onshapeb\x06proto3')
22
20
 
23
21
 
24
22
 
25
- _ONSHAPEPATH = DESCRIPTOR.message_types_by_name['OnshapePath']
26
- _ONSHAPEVARIABLE = DESCRIPTOR.message_types_by_name['OnshapeVariable']
27
23
  _GETAUTHENTICATIONSTATUSREQUEST = DESCRIPTOR.message_types_by_name['GetAuthenticationStatusRequest']
28
- _SETAUTHENTICATIONREQUEST = DESCRIPTOR.message_types_by_name['SetAuthenticationRequest']
29
- _SETAUTHENTICATIONREPLY = DESCRIPTOR.message_types_by_name['SetAuthenticationReply']
30
- _GETAUTHENTICATIONREQUEST = DESCRIPTOR.message_types_by_name['GetAuthenticationRequest']
31
- _GETAUTHENTICATIONREPLY = DESCRIPTOR.message_types_by_name['GetAuthenticationReply']
32
- _IMPORTGEOMETRYREQUEST = DESCRIPTOR.message_types_by_name['ImportGeometryRequest']
33
- _IMPORTGEOMETRYREPLY = DESCRIPTOR.message_types_by_name['ImportGeometryReply']
24
+ _GETAUTHENTICATIONSTATUSREPLY = DESCRIPTOR.message_types_by_name['GetAuthenticationStatusReply']
25
+ _ONSHAPEPATH = DESCRIPTOR.message_types_by_name['OnshapePath']
34
26
  _FETCHVARIABLESREQUEST = DESCRIPTOR.message_types_by_name['FetchVariablesRequest']
35
27
  _FETCHVARIABLESREPLY = DESCRIPTOR.message_types_by_name['FetchVariablesReply']
36
- _SETVARIABLESREQUEST = DESCRIPTOR.message_types_by_name['SetVariablesRequest']
37
- _SETVARIABLESREPLY = DESCRIPTOR.message_types_by_name['SetVariablesReply']
38
- OnshapePath = _reflection.GeneratedProtocolMessageType('OnshapePath', (_message.Message,), {
39
- 'DESCRIPTOR' : _ONSHAPEPATH,
40
- '__module__' : 'proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2'
41
- # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapePath)
42
- })
43
- _sym_db.RegisterMessage(OnshapePath)
44
-
45
- OnshapeVariable = _reflection.GeneratedProtocolMessageType('OnshapeVariable', (_message.Message,), {
46
- 'DESCRIPTOR' : _ONSHAPEVARIABLE,
47
- '__module__' : 'proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2'
48
- # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeVariable)
49
- })
50
- _sym_db.RegisterMessage(OnshapeVariable)
51
-
52
28
  GetAuthenticationStatusRequest = _reflection.GeneratedProtocolMessageType('GetAuthenticationStatusRequest', (_message.Message,), {
53
29
  'DESCRIPTOR' : _GETAUTHENTICATIONSTATUSREQUEST,
54
30
  '__module__' : 'proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2'
@@ -56,47 +32,19 @@ GetAuthenticationStatusRequest = _reflection.GeneratedProtocolMessageType('GetAu
56
32
  })
57
33
  _sym_db.RegisterMessage(GetAuthenticationStatusRequest)
58
34
 
59
- SetAuthenticationRequest = _reflection.GeneratedProtocolMessageType('SetAuthenticationRequest', (_message.Message,), {
60
- 'DESCRIPTOR' : _SETAUTHENTICATIONREQUEST,
61
- '__module__' : 'proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2'
62
- # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.SetAuthenticationRequest)
63
- })
64
- _sym_db.RegisterMessage(SetAuthenticationRequest)
65
-
66
- SetAuthenticationReply = _reflection.GeneratedProtocolMessageType('SetAuthenticationReply', (_message.Message,), {
67
- 'DESCRIPTOR' : _SETAUTHENTICATIONREPLY,
68
- '__module__' : 'proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2'
69
- # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.SetAuthenticationReply)
70
- })
71
- _sym_db.RegisterMessage(SetAuthenticationReply)
72
-
73
- GetAuthenticationRequest = _reflection.GeneratedProtocolMessageType('GetAuthenticationRequest', (_message.Message,), {
74
- 'DESCRIPTOR' : _GETAUTHENTICATIONREQUEST,
35
+ GetAuthenticationStatusReply = _reflection.GeneratedProtocolMessageType('GetAuthenticationStatusReply', (_message.Message,), {
36
+ 'DESCRIPTOR' : _GETAUTHENTICATIONSTATUSREPLY,
75
37
  '__module__' : 'proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2'
76
- # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.GetAuthenticationRequest)
38
+ # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.GetAuthenticationStatusReply)
77
39
  })
78
- _sym_db.RegisterMessage(GetAuthenticationRequest)
40
+ _sym_db.RegisterMessage(GetAuthenticationStatusReply)
79
41
 
80
- GetAuthenticationReply = _reflection.GeneratedProtocolMessageType('GetAuthenticationReply', (_message.Message,), {
81
- 'DESCRIPTOR' : _GETAUTHENTICATIONREPLY,
82
- '__module__' : 'proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2'
83
- # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.GetAuthenticationReply)
84
- })
85
- _sym_db.RegisterMessage(GetAuthenticationReply)
86
-
87
- ImportGeometryRequest = _reflection.GeneratedProtocolMessageType('ImportGeometryRequest', (_message.Message,), {
88
- 'DESCRIPTOR' : _IMPORTGEOMETRYREQUEST,
89
- '__module__' : 'proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2'
90
- # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.ImportGeometryRequest)
91
- })
92
- _sym_db.RegisterMessage(ImportGeometryRequest)
93
-
94
- ImportGeometryReply = _reflection.GeneratedProtocolMessageType('ImportGeometryReply', (_message.Message,), {
95
- 'DESCRIPTOR' : _IMPORTGEOMETRYREPLY,
42
+ OnshapePath = _reflection.GeneratedProtocolMessageType('OnshapePath', (_message.Message,), {
43
+ 'DESCRIPTOR' : _ONSHAPEPATH,
96
44
  '__module__' : 'proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2'
97
- # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.ImportGeometryReply)
45
+ # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapePath)
98
46
  })
99
- _sym_db.RegisterMessage(ImportGeometryReply)
47
+ _sym_db.RegisterMessage(OnshapePath)
100
48
 
101
49
  FetchVariablesRequest = _reflection.GeneratedProtocolMessageType('FetchVariablesRequest', (_message.Message,), {
102
50
  'DESCRIPTOR' : _FETCHVARIABLESREQUEST,
@@ -112,51 +60,25 @@ FetchVariablesReply = _reflection.GeneratedProtocolMessageType('FetchVariablesRe
112
60
  })
113
61
  _sym_db.RegisterMessage(FetchVariablesReply)
114
62
 
115
- SetVariablesRequest = _reflection.GeneratedProtocolMessageType('SetVariablesRequest', (_message.Message,), {
116
- 'DESCRIPTOR' : _SETVARIABLESREQUEST,
117
- '__module__' : 'proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2'
118
- # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.SetVariablesRequest)
119
- })
120
- _sym_db.RegisterMessage(SetVariablesRequest)
121
-
122
- SetVariablesReply = _reflection.GeneratedProtocolMessageType('SetVariablesReply', (_message.Message,), {
123
- 'DESCRIPTOR' : _SETVARIABLESREPLY,
124
- '__module__' : 'proto.api.v0.luminarycloud.thirdpartyintegration.onshape.onshape_pb2'
125
- # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.SetVariablesReply)
126
- })
127
- _sym_db.RegisterMessage(SetVariablesReply)
128
-
129
63
  _ONSHAPESERVICE = DESCRIPTOR.services_by_name['OnshapeService']
130
64
  if _descriptor._USE_C_DESCRIPTORS == False:
131
65
 
132
66
  DESCRIPTOR._options = None
133
67
  DESCRIPTOR._serialized_options = b'ZOluminarycloud.com/core/proto/api/v0/luminarycloud/thirdpartyintegration/onshape'
134
- _ONSHAPEPATH._serialized_start=266
135
- _ONSHAPEPATH._serialized_end=375
136
- _ONSHAPEVARIABLE._serialized_start=377
137
- _ONSHAPEVARIABLE._serialized_end=478
138
- _GETAUTHENTICATIONSTATUSREQUEST._serialized_start=480
139
- _GETAUTHENTICATIONSTATUSREQUEST._serialized_end=529
140
- _SETAUTHENTICATIONREQUEST._serialized_start=531
141
- _SETAUTHENTICATIONREQUEST._serialized_end=557
142
- _SETAUTHENTICATIONREPLY._serialized_start=559
143
- _SETAUTHENTICATIONREPLY._serialized_end=583
144
- _GETAUTHENTICATIONREQUEST._serialized_start=585
145
- _GETAUTHENTICATIONREQUEST._serialized_end=628
146
- _GETAUTHENTICATIONREPLY._serialized_start=630
147
- _GETAUTHENTICATIONREPLY._serialized_end=675
148
- _IMPORTGEOMETRYREQUEST._serialized_start=678
149
- _IMPORTGEOMETRYREQUEST._serialized_end=832
150
- _IMPORTGEOMETRYREPLY._serialized_start=834
151
- _IMPORTGEOMETRYREPLY._serialized_end=876
152
- _FETCHVARIABLESREQUEST._serialized_start=879
153
- _FETCHVARIABLESREQUEST._serialized_end=1013
154
- _FETCHVARIABLESREPLY._serialized_start=1015
155
- _FETCHVARIABLESREPLY._serialized_end=1051
156
- _SETVARIABLESREQUEST._serialized_start=1054
157
- _SETVARIABLESREQUEST._serialized_end=1289
158
- _SETVARIABLESREPLY._serialized_start=1291
159
- _SETVARIABLESREPLY._serialized_end=1325
160
- _ONSHAPESERVICE._serialized_start=1328
161
- _ONSHAPESERVICE._serialized_end=2357
68
+ _ONSHAPESERVICE.methods_by_name['GetAuthenticationStatus']._options = None
69
+ _ONSHAPESERVICE.methods_by_name['GetAuthenticationStatus']._serialized_options = b'\202\323\344\223\0029\0227/v0/thirdpartyintegration/onshape/authentication-status\212\265\030\006\010<\022\002\010\001'
70
+ _ONSHAPESERVICE.methods_by_name['FetchVariables']._options = None
71
+ _ONSHAPESERVICE.methods_by_name['FetchVariables']._serialized_options = b'\202\323\344\223\0026\"1/v0/thirdpartyintegration/onshape/fetch-variables:\001*\212\265\030\006\010\n\022\002\010\005'
72
+ _GETAUTHENTICATIONSTATUSREQUEST._serialized_start=204
73
+ _GETAUTHENTICATIONSTATUSREQUEST._serialized_end=236
74
+ _GETAUTHENTICATIONSTATUSREPLY._serialized_start=238
75
+ _GETAUTHENTICATIONSTATUSREPLY._serialized_end=289
76
+ _ONSHAPEPATH._serialized_start=291
77
+ _ONSHAPEPATH._serialized_end=400
78
+ _FETCHVARIABLESREQUEST._serialized_start=402
79
+ _FETCHVARIABLESREQUEST._serialized_end=519
80
+ _FETCHVARIABLESREPLY._serialized_start=521
81
+ _FETCHVARIABLESREPLY._serialized_end=557
82
+ _ONSHAPESERVICE._serialized_start=560
83
+ _ONSHAPESERVICE._serialized_end=1144
162
84
  # @@protoc_insertion_point(module_scope)
@@ -16,6 +16,29 @@ else:
16
16
 
17
17
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
18
18
 
19
+ class GetAuthenticationStatusRequest(google.protobuf.message.Message):
20
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
21
+
22
+ def __init__(
23
+ self,
24
+ ) -> None: ...
25
+
26
+ global___GetAuthenticationStatusRequest = GetAuthenticationStatusRequest
27
+
28
+ class GetAuthenticationStatusReply(google.protobuf.message.Message):
29
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
30
+
31
+ AUTH_ACTIVE_FIELD_NUMBER: builtins.int
32
+ auth_active: builtins.bool
33
+ def __init__(
34
+ self,
35
+ *,
36
+ auth_active: builtins.bool = ...,
37
+ ) -> None: ...
38
+ def ClearField(self, field_name: typing_extensions.Literal["auth_active", b"auth_active"]) -> None: ...
39
+
40
+ global___GetAuthenticationStatusReply = GetAuthenticationStatusReply
41
+
19
42
  class OnshapePath(google.protobuf.message.Message):
20
43
  """Provides the full description necessary to reference an element in Onshape."""
21
44
 
@@ -50,153 +73,19 @@ class OnshapePath(google.protobuf.message.Message):
50
73
 
51
74
  global___OnshapePath = OnshapePath
52
75
 
53
- class OnshapeVariable(google.protobuf.message.Message):
54
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
55
-
56
- TYPE_FIELD_NUMBER: builtins.int
57
- NAME_FIELD_NUMBER: builtins.int
58
- VALUE_FIELD_NUMBER: builtins.int
59
- EXPRESSION_FIELD_NUMBER: builtins.int
60
- DESCRIPTION_FIELD_NUMBER: builtins.int
61
- type: builtins.str
62
- name: builtins.str
63
- value: builtins.str
64
- expression: builtins.str
65
- description: builtins.str
66
- def __init__(
67
- self,
68
- *,
69
- type: builtins.str = ...,
70
- name: builtins.str = ...,
71
- value: builtins.str = ...,
72
- expression: builtins.str = ...,
73
- description: builtins.str = ...,
74
- ) -> None: ...
75
- def ClearField(self, field_name: typing_extensions.Literal["description", b"description", "expression", b"expression", "name", b"name", "type", b"type", "value", b"value"]) -> None: ...
76
-
77
- global___OnshapeVariable = OnshapeVariable
78
-
79
- class GetAuthenticationStatusRequest(google.protobuf.message.Message):
80
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
81
-
82
- SESSION_FIELD_NUMBER: builtins.int
83
- session: builtins.str
84
- """JWT session key that identifies the user. Must be set."""
85
- def __init__(
86
- self,
87
- *,
88
- session: builtins.str = ...,
89
- ) -> None: ...
90
- def ClearField(self, field_name: typing_extensions.Literal["session", b"session"]) -> None: ...
91
-
92
- global___GetAuthenticationStatusRequest = GetAuthenticationStatusRequest
93
-
94
- class SetAuthenticationRequest(google.protobuf.message.Message):
95
- """TODO: Figure out what to do here"""
96
-
97
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
98
-
99
- def __init__(
100
- self,
101
- ) -> None: ...
102
-
103
- global___SetAuthenticationRequest = SetAuthenticationRequest
104
-
105
- class SetAuthenticationReply(google.protobuf.message.Message):
106
- """TODO: Figure out what to do here"""
107
-
108
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
109
-
110
- def __init__(
111
- self,
112
- ) -> None: ...
113
-
114
- global___SetAuthenticationReply = SetAuthenticationReply
115
-
116
- class GetAuthenticationRequest(google.protobuf.message.Message):
117
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
118
-
119
- SESSION_FIELD_NUMBER: builtins.int
120
- session: builtins.str
121
- """JWT session key that identifies the user. Must be set."""
122
- def __init__(
123
- self,
124
- *,
125
- session: builtins.str = ...,
126
- ) -> None: ...
127
- def ClearField(self, field_name: typing_extensions.Literal["session", b"session"]) -> None: ...
128
-
129
- global___GetAuthenticationRequest = GetAuthenticationRequest
130
-
131
- class GetAuthenticationReply(google.protobuf.message.Message):
132
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
133
-
134
- AUTH_ACTIVE_FIELD_NUMBER: builtins.int
135
- auth_active: builtins.bool
136
- def __init__(
137
- self,
138
- *,
139
- auth_active: builtins.bool = ...,
140
- ) -> None: ...
141
- def ClearField(self, field_name: typing_extensions.Literal["auth_active", b"auth_active"]) -> None: ...
142
-
143
- global___GetAuthenticationReply = GetAuthenticationReply
144
-
145
- class ImportGeometryRequest(google.protobuf.message.Message):
146
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
147
-
148
- SESSION_FIELD_NUMBER: builtins.int
149
- PATH_FIELD_NUMBER: builtins.int
150
- PROJECT_ID_FIELD_NUMBER: builtins.int
151
- session: builtins.str
152
- """JWT session key that identifies the user. Must be set."""
153
- @property
154
- def path(self) -> global___OnshapePath: ...
155
- project_id: builtins.str
156
- def __init__(
157
- self,
158
- *,
159
- session: builtins.str = ...,
160
- path: global___OnshapePath | None = ...,
161
- project_id: builtins.str = ...,
162
- ) -> None: ...
163
- def HasField(self, field_name: typing_extensions.Literal["path", b"path"]) -> builtins.bool: ...
164
- def ClearField(self, field_name: typing_extensions.Literal["path", b"path", "project_id", b"project_id", "session", b"session"]) -> None: ...
165
-
166
- global___ImportGeometryRequest = ImportGeometryRequest
167
-
168
- class ImportGeometryReply(google.protobuf.message.Message):
169
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
170
-
171
- GEOMETRY_ID_FIELD_NUMBER: builtins.int
172
- @property
173
- def geometry_id(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
174
- def __init__(
175
- self,
176
- *,
177
- geometry_id: collections.abc.Iterable[builtins.str] | None = ...,
178
- ) -> None: ...
179
- def ClearField(self, field_name: typing_extensions.Literal["geometry_id", b"geometry_id"]) -> None: ...
180
-
181
- global___ImportGeometryReply = ImportGeometryReply
182
-
183
76
  class FetchVariablesRequest(google.protobuf.message.Message):
184
77
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
185
78
 
186
- SESSION_FIELD_NUMBER: builtins.int
187
79
  PATH_FIELD_NUMBER: builtins.int
188
- session: builtins.str
189
- """JWT session key that identifies the user. Must be set."""
190
80
  @property
191
81
  def path(self) -> global___OnshapePath: ...
192
82
  def __init__(
193
83
  self,
194
84
  *,
195
- session: builtins.str = ...,
196
85
  path: global___OnshapePath | None = ...,
197
86
  ) -> None: ...
198
87
  def HasField(self, field_name: typing_extensions.Literal["path", b"path"]) -> builtins.bool: ...
199
- def ClearField(self, field_name: typing_extensions.Literal["path", b"path", "session", b"session"]) -> None: ...
88
+ def ClearField(self, field_name: typing_extensions.Literal["path", b"path"]) -> None: ...
200
89
 
201
90
  global___FetchVariablesRequest = FetchVariablesRequest
202
91
 
@@ -214,41 +103,3 @@ class FetchVariablesReply(google.protobuf.message.Message):
214
103
  def ClearField(self, field_name: typing_extensions.Literal["names", b"names"]) -> None: ...
215
104
 
216
105
  global___FetchVariablesReply = FetchVariablesReply
217
-
218
- class SetVariablesRequest(google.protobuf.message.Message):
219
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
220
-
221
- SESSION_FIELD_NUMBER: builtins.int
222
- PATH_FIELD_NUMBER: builtins.int
223
- VARIABLES_FIELD_NUMBER: builtins.int
224
- session: builtins.str
225
- """JWT session key that identifies the user. Must be set."""
226
- @property
227
- def path(self) -> global___OnshapePath: ...
228
- @property
229
- def variables(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OnshapeVariable]: ...
230
- def __init__(
231
- self,
232
- *,
233
- session: builtins.str = ...,
234
- path: global___OnshapePath | None = ...,
235
- variables: collections.abc.Iterable[global___OnshapeVariable] | None = ...,
236
- ) -> None: ...
237
- def HasField(self, field_name: typing_extensions.Literal["path", b"path"]) -> builtins.bool: ...
238
- def ClearField(self, field_name: typing_extensions.Literal["path", b"path", "session", b"session", "variables", b"variables"]) -> None: ...
239
-
240
- global___SetVariablesRequest = SetVariablesRequest
241
-
242
- class SetVariablesReply(google.protobuf.message.Message):
243
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
244
-
245
- ERROR_FIELD_NUMBER: builtins.int
246
- error: builtins.str
247
- def __init__(
248
- self,
249
- *,
250
- error: builtins.str = ...,
251
- ) -> None: ...
252
- def ClearField(self, field_name: typing_extensions.Literal["error", b"error"]) -> None: ...
253
-
254
- global___SetVariablesReply = SetVariablesReply