benchling-api-client 2.0.414__py3-none-any.whl → 2.0.416__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.
- benchling_api_client/models/container_content.py +183 -26
- benchling_api_client/models/entity.py +19 -7
- benchling_api_client/models/entity_or_inaccessible_resource.py +19 -7
- benchling_api_client/models/field_type.py +1 -0
- benchling_api_client/models/molecule_with_entity_type.py +787 -0
- benchling_api_client/models/molecule_with_entity_type_entity_type.py +22 -0
- benchling_api_client/models/registered_entities_list.py +89 -32
- benchling_api_client/models/request_response_samples_item_entity.py +216 -74
- benchling_api_client/models/rna_sequence_with_entity_type.py +1151 -0
- benchling_api_client/models/rna_sequence_with_entity_type_entity_type.py +22 -0
- benchling_api_client/models/simple_field_definition_type.py +1 -0
- benchling_api_client/v2/alpha/models/app_config_field_type.py +1 -0
- benchling_api_client/v2/alpha/models/field_type.py +1 -0
- benchling_api_client/v2/alpha/openapi.yaml +2 -0
- benchling_api_client/v2/beta/models/aa_sequence_with_entity_type.py +865 -0
- benchling_api_client/v2/beta/models/aa_sequence_with_entity_type_entity_type.py +22 -0
- benchling_api_client/v2/beta/models/app_config_field_type.py +1 -0
- benchling_api_client/v2/beta/models/container_content.py +183 -26
- benchling_api_client/v2/beta/models/custom_entity_creator.py +2 -100
- benchling_api_client/v2/beta/models/custom_entity_with_entity_type.py +747 -0
- benchling_api_client/v2/beta/models/custom_entity_with_entity_type_entity_type.py +22 -0
- benchling_api_client/v2/beta/models/dna_oligo_with_entity_type.py +972 -0
- benchling_api_client/v2/beta/models/dna_oligo_with_entity_type_entity_type.py +22 -0
- benchling_api_client/v2/beta/models/dna_sequence_with_entity_type.py +1102 -0
- benchling_api_client/v2/beta/models/dna_sequence_with_entity_type_entity_type.py +22 -0
- benchling_api_client/v2/beta/models/entity.py +19 -7
- benchling_api_client/v2/beta/models/entity_or_inaccessible_resource.py +19 -7
- benchling_api_client/v2/beta/models/field_type.py +1 -0
- benchling_api_client/v2/beta/models/mixture_creator.py +2 -100
- benchling_api_client/v2/beta/models/mixture_with_entity_type.py +867 -0
- benchling_api_client/v2/beta/models/mixture_with_entity_type_entity_type.py +22 -0
- benchling_api_client/v2/beta/models/molecule_with_entity_type.py +787 -0
- benchling_api_client/v2/beta/models/molecule_with_entity_type_entity_type.py +22 -0
- benchling_api_client/v2/beta/models/rna_oligo_with_entity_type.py +972 -0
- benchling_api_client/v2/beta/models/rna_oligo_with_entity_type_entity_type.py +22 -0
- benchling_api_client/v2/beta/models/rna_sequence.py +1109 -0
- benchling_api_client/v2/beta/models/rna_sequence_part.py +183 -0
- benchling_api_client/v2/beta/models/rna_sequence_with_entity_type.py +1151 -0
- benchling_api_client/v2/beta/models/rna_sequence_with_entity_type_entity_type.py +22 -0
- benchling_api_client/v2/beta/openapi.yaml +218 -6
- benchling_api_client/v2/stable/models/container_content.py +183 -26
- benchling_api_client/v2/stable/models/entity.py +19 -7
- benchling_api_client/v2/stable/models/entity_or_inaccessible_resource.py +19 -7
- benchling_api_client/v2/stable/models/field_type.py +1 -0
- benchling_api_client/v2/stable/models/molecule_with_entity_type.py +787 -0
- benchling_api_client/v2/stable/models/molecule_with_entity_type_entity_type.py +22 -0
- benchling_api_client/v2/stable/models/registered_entities_list.py +89 -32
- benchling_api_client/v2/stable/models/request_response_samples_item_entity.py +216 -74
- benchling_api_client/v2/stable/models/rna_sequence_with_entity_type.py +1151 -0
- benchling_api_client/v2/stable/models/rna_sequence_with_entity_type_entity_type.py +22 -0
- benchling_api_client/v2/stable/models/simple_field_definition_type.py +1 -0
- benchling_api_client/v2/stable/openapi.yaml +42 -22
- {benchling_api_client-2.0.414.dist-info → benchling_api_client-2.0.416.dist-info}/METADATA +1 -1
- {benchling_api_client-2.0.414.dist-info → benchling_api_client-2.0.416.dist-info}/RECORD +56 -30
- {benchling_api_client-2.0.414.dist-info → benchling_api_client-2.0.416.dist-info}/LICENSE +0 -0
- {benchling_api_client-2.0.414.dist-info → benchling_api_client-2.0.416.dist-info}/WHEEL +0 -0
|
@@ -3,15 +3,17 @@ from typing import Any, cast, Dict, List, Optional, Type, TypeVar, Union
|
|
|
3
3
|
import attr
|
|
4
4
|
|
|
5
5
|
from ..extensions import NotPresentError, UnknownType
|
|
6
|
-
from ..models.
|
|
6
|
+
from ..models.aa_sequence_with_entity_type import AaSequenceWithEntityType
|
|
7
7
|
from ..models.batch import Batch
|
|
8
|
-
from ..models.
|
|
9
|
-
from ..models.
|
|
10
|
-
from ..models.
|
|
8
|
+
from ..models.custom_entity_with_entity_type import CustomEntityWithEntityType
|
|
9
|
+
from ..models.dna_oligo_with_entity_type import DnaOligoWithEntityType
|
|
10
|
+
from ..models.dna_sequence_with_entity_type import DnaSequenceWithEntityType
|
|
11
11
|
from ..models.inaccessible_resource import InaccessibleResource
|
|
12
12
|
from ..models.measurement import Measurement
|
|
13
|
-
from ..models.
|
|
14
|
-
from ..models.
|
|
13
|
+
from ..models.mixture_with_entity_type import MixtureWithEntityType
|
|
14
|
+
from ..models.molecule_with_entity_type import MoleculeWithEntityType
|
|
15
|
+
from ..models.rna_oligo_with_entity_type import RnaOligoWithEntityType
|
|
16
|
+
from ..models.rna_sequence_with_entity_type import RnaSequenceWithEntityType
|
|
15
17
|
from ..types import UNSET, Unset
|
|
16
18
|
|
|
17
19
|
T = TypeVar("T", bound="ContainerContent")
|
|
@@ -26,7 +28,17 @@ class ContainerContent:
|
|
|
26
28
|
_entity: Union[
|
|
27
29
|
Unset,
|
|
28
30
|
None,
|
|
29
|
-
Union[
|
|
31
|
+
Union[
|
|
32
|
+
DnaSequenceWithEntityType,
|
|
33
|
+
RnaSequenceWithEntityType,
|
|
34
|
+
AaSequenceWithEntityType,
|
|
35
|
+
MixtureWithEntityType,
|
|
36
|
+
DnaOligoWithEntityType,
|
|
37
|
+
RnaOligoWithEntityType,
|
|
38
|
+
MoleculeWithEntityType,
|
|
39
|
+
CustomEntityWithEntityType,
|
|
40
|
+
UnknownType,
|
|
41
|
+
],
|
|
30
42
|
InaccessibleResource,
|
|
31
43
|
UnknownType,
|
|
32
44
|
] = UNSET
|
|
@@ -68,19 +80,25 @@ class ContainerContent:
|
|
|
68
80
|
elif isinstance(self._entity, object):
|
|
69
81
|
if isinstance(self._entity, UnknownType):
|
|
70
82
|
entity = self._entity.value
|
|
71
|
-
elif isinstance(self._entity,
|
|
83
|
+
elif isinstance(self._entity, DnaSequenceWithEntityType):
|
|
84
|
+
entity = self._entity.to_dict()
|
|
85
|
+
|
|
86
|
+
elif isinstance(self._entity, RnaSequenceWithEntityType):
|
|
87
|
+
entity = self._entity.to_dict()
|
|
88
|
+
|
|
89
|
+
elif isinstance(self._entity, AaSequenceWithEntityType):
|
|
72
90
|
entity = self._entity.to_dict()
|
|
73
91
|
|
|
74
|
-
elif isinstance(self._entity,
|
|
92
|
+
elif isinstance(self._entity, MixtureWithEntityType):
|
|
75
93
|
entity = self._entity.to_dict()
|
|
76
94
|
|
|
77
|
-
elif isinstance(self._entity,
|
|
95
|
+
elif isinstance(self._entity, DnaOligoWithEntityType):
|
|
78
96
|
entity = self._entity.to_dict()
|
|
79
97
|
|
|
80
|
-
elif isinstance(self._entity,
|
|
98
|
+
elif isinstance(self._entity, RnaOligoWithEntityType):
|
|
81
99
|
entity = self._entity.to_dict()
|
|
82
100
|
|
|
83
|
-
elif isinstance(self._entity,
|
|
101
|
+
elif isinstance(self._entity, MoleculeWithEntityType):
|
|
84
102
|
entity = self._entity.to_dict()
|
|
85
103
|
|
|
86
104
|
else:
|
|
@@ -162,7 +180,17 @@ class ContainerContent:
|
|
|
162
180
|
def get_entity() -> Union[
|
|
163
181
|
Unset,
|
|
164
182
|
None,
|
|
165
|
-
Union[
|
|
183
|
+
Union[
|
|
184
|
+
DnaSequenceWithEntityType,
|
|
185
|
+
RnaSequenceWithEntityType,
|
|
186
|
+
AaSequenceWithEntityType,
|
|
187
|
+
MixtureWithEntityType,
|
|
188
|
+
DnaOligoWithEntityType,
|
|
189
|
+
RnaOligoWithEntityType,
|
|
190
|
+
MoleculeWithEntityType,
|
|
191
|
+
CustomEntityWithEntityType,
|
|
192
|
+
UnknownType,
|
|
193
|
+
],
|
|
166
194
|
InaccessibleResource,
|
|
167
195
|
UnknownType,
|
|
168
196
|
]:
|
|
@@ -171,14 +199,34 @@ class ContainerContent:
|
|
|
171
199
|
) -> Union[
|
|
172
200
|
Unset,
|
|
173
201
|
None,
|
|
174
|
-
Union[
|
|
202
|
+
Union[
|
|
203
|
+
DnaSequenceWithEntityType,
|
|
204
|
+
RnaSequenceWithEntityType,
|
|
205
|
+
AaSequenceWithEntityType,
|
|
206
|
+
MixtureWithEntityType,
|
|
207
|
+
DnaOligoWithEntityType,
|
|
208
|
+
RnaOligoWithEntityType,
|
|
209
|
+
MoleculeWithEntityType,
|
|
210
|
+
CustomEntityWithEntityType,
|
|
211
|
+
UnknownType,
|
|
212
|
+
],
|
|
175
213
|
InaccessibleResource,
|
|
176
214
|
UnknownType,
|
|
177
215
|
]:
|
|
178
216
|
entity: Union[
|
|
179
217
|
Unset,
|
|
180
218
|
None,
|
|
181
|
-
Union[
|
|
219
|
+
Union[
|
|
220
|
+
DnaSequenceWithEntityType,
|
|
221
|
+
RnaSequenceWithEntityType,
|
|
222
|
+
AaSequenceWithEntityType,
|
|
223
|
+
MixtureWithEntityType,
|
|
224
|
+
DnaOligoWithEntityType,
|
|
225
|
+
RnaOligoWithEntityType,
|
|
226
|
+
MoleculeWithEntityType,
|
|
227
|
+
CustomEntityWithEntityType,
|
|
228
|
+
UnknownType,
|
|
229
|
+
],
|
|
182
230
|
InaccessibleResource,
|
|
183
231
|
UnknownType,
|
|
184
232
|
]
|
|
@@ -191,15 +239,78 @@ class ContainerContent:
|
|
|
191
239
|
def _parse_entity_or_inaccessible_resource(
|
|
192
240
|
data: Union[Dict[str, Any]]
|
|
193
241
|
) -> Union[
|
|
194
|
-
|
|
242
|
+
DnaSequenceWithEntityType,
|
|
243
|
+
RnaSequenceWithEntityType,
|
|
244
|
+
AaSequenceWithEntityType,
|
|
245
|
+
MixtureWithEntityType,
|
|
246
|
+
DnaOligoWithEntityType,
|
|
247
|
+
RnaOligoWithEntityType,
|
|
248
|
+
MoleculeWithEntityType,
|
|
249
|
+
CustomEntityWithEntityType,
|
|
250
|
+
UnknownType,
|
|
195
251
|
]:
|
|
196
252
|
entity_or_inaccessible_resource: Union[
|
|
197
|
-
|
|
253
|
+
DnaSequenceWithEntityType,
|
|
254
|
+
RnaSequenceWithEntityType,
|
|
255
|
+
AaSequenceWithEntityType,
|
|
256
|
+
MixtureWithEntityType,
|
|
257
|
+
DnaOligoWithEntityType,
|
|
258
|
+
RnaOligoWithEntityType,
|
|
259
|
+
MoleculeWithEntityType,
|
|
260
|
+
CustomEntityWithEntityType,
|
|
261
|
+
UnknownType,
|
|
198
262
|
]
|
|
263
|
+
discriminator_value: str = cast(str, data.get("entityType"))
|
|
264
|
+
if discriminator_value is not None:
|
|
265
|
+
entity: Union[
|
|
266
|
+
DnaSequenceWithEntityType,
|
|
267
|
+
RnaSequenceWithEntityType,
|
|
268
|
+
AaSequenceWithEntityType,
|
|
269
|
+
MixtureWithEntityType,
|
|
270
|
+
DnaOligoWithEntityType,
|
|
271
|
+
RnaOligoWithEntityType,
|
|
272
|
+
MoleculeWithEntityType,
|
|
273
|
+
CustomEntityWithEntityType,
|
|
274
|
+
UnknownType,
|
|
275
|
+
]
|
|
276
|
+
if discriminator_value == "aa_sequence":
|
|
277
|
+
entity = AaSequenceWithEntityType.from_dict(data, strict=False)
|
|
278
|
+
|
|
279
|
+
return entity
|
|
280
|
+
if discriminator_value == "custom_entity":
|
|
281
|
+
entity = CustomEntityWithEntityType.from_dict(data, strict=False)
|
|
282
|
+
|
|
283
|
+
return entity
|
|
284
|
+
if discriminator_value == "dna_oligo":
|
|
285
|
+
entity = DnaOligoWithEntityType.from_dict(data, strict=False)
|
|
286
|
+
|
|
287
|
+
return entity
|
|
288
|
+
if discriminator_value == "dna_sequence":
|
|
289
|
+
entity = DnaSequenceWithEntityType.from_dict(data, strict=False)
|
|
290
|
+
|
|
291
|
+
return entity
|
|
292
|
+
if discriminator_value == "mixture":
|
|
293
|
+
entity = MixtureWithEntityType.from_dict(data, strict=False)
|
|
294
|
+
|
|
295
|
+
return entity
|
|
296
|
+
if discriminator_value == "molecule":
|
|
297
|
+
entity = MoleculeWithEntityType.from_dict(data, strict=False)
|
|
298
|
+
|
|
299
|
+
return entity
|
|
300
|
+
if discriminator_value == "rna_oligo":
|
|
301
|
+
entity = RnaOligoWithEntityType.from_dict(data, strict=False)
|
|
302
|
+
|
|
303
|
+
return entity
|
|
304
|
+
if discriminator_value == "rna_sequence":
|
|
305
|
+
entity = RnaSequenceWithEntityType.from_dict(data, strict=False)
|
|
306
|
+
|
|
307
|
+
return entity
|
|
308
|
+
|
|
309
|
+
return UnknownType(value=data)
|
|
199
310
|
try:
|
|
200
311
|
if not isinstance(data, dict):
|
|
201
312
|
raise TypeError()
|
|
202
|
-
entity =
|
|
313
|
+
entity = DnaSequenceWithEntityType.from_dict(data, strict=True)
|
|
203
314
|
|
|
204
315
|
return entity
|
|
205
316
|
except: # noqa: E722
|
|
@@ -207,7 +318,7 @@ class ContainerContent:
|
|
|
207
318
|
try:
|
|
208
319
|
if not isinstance(data, dict):
|
|
209
320
|
raise TypeError()
|
|
210
|
-
entity =
|
|
321
|
+
entity = RnaSequenceWithEntityType.from_dict(data, strict=True)
|
|
211
322
|
|
|
212
323
|
return entity
|
|
213
324
|
except: # noqa: E722
|
|
@@ -215,7 +326,7 @@ class ContainerContent:
|
|
|
215
326
|
try:
|
|
216
327
|
if not isinstance(data, dict):
|
|
217
328
|
raise TypeError()
|
|
218
|
-
entity =
|
|
329
|
+
entity = AaSequenceWithEntityType.from_dict(data, strict=True)
|
|
219
330
|
|
|
220
331
|
return entity
|
|
221
332
|
except: # noqa: E722
|
|
@@ -223,7 +334,7 @@ class ContainerContent:
|
|
|
223
334
|
try:
|
|
224
335
|
if not isinstance(data, dict):
|
|
225
336
|
raise TypeError()
|
|
226
|
-
entity =
|
|
337
|
+
entity = MixtureWithEntityType.from_dict(data, strict=True)
|
|
227
338
|
|
|
228
339
|
return entity
|
|
229
340
|
except: # noqa: E722
|
|
@@ -231,7 +342,7 @@ class ContainerContent:
|
|
|
231
342
|
try:
|
|
232
343
|
if not isinstance(data, dict):
|
|
233
344
|
raise TypeError()
|
|
234
|
-
entity =
|
|
345
|
+
entity = DnaOligoWithEntityType.from_dict(data, strict=True)
|
|
235
346
|
|
|
236
347
|
return entity
|
|
237
348
|
except: # noqa: E722
|
|
@@ -239,7 +350,23 @@ class ContainerContent:
|
|
|
239
350
|
try:
|
|
240
351
|
if not isinstance(data, dict):
|
|
241
352
|
raise TypeError()
|
|
242
|
-
entity =
|
|
353
|
+
entity = RnaOligoWithEntityType.from_dict(data, strict=True)
|
|
354
|
+
|
|
355
|
+
return entity
|
|
356
|
+
except: # noqa: E722
|
|
357
|
+
pass
|
|
358
|
+
try:
|
|
359
|
+
if not isinstance(data, dict):
|
|
360
|
+
raise TypeError()
|
|
361
|
+
entity = MoleculeWithEntityType.from_dict(data, strict=True)
|
|
362
|
+
|
|
363
|
+
return entity
|
|
364
|
+
except: # noqa: E722
|
|
365
|
+
pass
|
|
366
|
+
try:
|
|
367
|
+
if not isinstance(data, dict):
|
|
368
|
+
raise TypeError()
|
|
369
|
+
entity = CustomEntityWithEntityType.from_dict(data, strict=True)
|
|
243
370
|
|
|
244
371
|
return entity
|
|
245
372
|
except: # noqa: E722
|
|
@@ -274,7 +401,17 @@ class ContainerContent:
|
|
|
274
401
|
Union[
|
|
275
402
|
Unset,
|
|
276
403
|
None,
|
|
277
|
-
Union[
|
|
404
|
+
Union[
|
|
405
|
+
DnaSequenceWithEntityType,
|
|
406
|
+
RnaSequenceWithEntityType,
|
|
407
|
+
AaSequenceWithEntityType,
|
|
408
|
+
MixtureWithEntityType,
|
|
409
|
+
DnaOligoWithEntityType,
|
|
410
|
+
RnaOligoWithEntityType,
|
|
411
|
+
MoleculeWithEntityType,
|
|
412
|
+
CustomEntityWithEntityType,
|
|
413
|
+
UnknownType,
|
|
414
|
+
],
|
|
278
415
|
InaccessibleResource,
|
|
279
416
|
UnknownType,
|
|
280
417
|
],
|
|
@@ -342,7 +479,17 @@ class ContainerContent:
|
|
|
342
479
|
self,
|
|
343
480
|
) -> Optional[
|
|
344
481
|
Union[
|
|
345
|
-
Union[
|
|
482
|
+
Union[
|
|
483
|
+
DnaSequenceWithEntityType,
|
|
484
|
+
RnaSequenceWithEntityType,
|
|
485
|
+
AaSequenceWithEntityType,
|
|
486
|
+
MixtureWithEntityType,
|
|
487
|
+
DnaOligoWithEntityType,
|
|
488
|
+
RnaOligoWithEntityType,
|
|
489
|
+
MoleculeWithEntityType,
|
|
490
|
+
CustomEntityWithEntityType,
|
|
491
|
+
UnknownType,
|
|
492
|
+
],
|
|
346
493
|
InaccessibleResource,
|
|
347
494
|
UnknownType,
|
|
348
495
|
]
|
|
@@ -356,7 +503,17 @@ class ContainerContent:
|
|
|
356
503
|
self,
|
|
357
504
|
value: Optional[
|
|
358
505
|
Union[
|
|
359
|
-
Union[
|
|
506
|
+
Union[
|
|
507
|
+
DnaSequenceWithEntityType,
|
|
508
|
+
RnaSequenceWithEntityType,
|
|
509
|
+
AaSequenceWithEntityType,
|
|
510
|
+
MixtureWithEntityType,
|
|
511
|
+
DnaOligoWithEntityType,
|
|
512
|
+
RnaOligoWithEntityType,
|
|
513
|
+
MoleculeWithEntityType,
|
|
514
|
+
CustomEntityWithEntityType,
|
|
515
|
+
UnknownType,
|
|
516
|
+
],
|
|
360
517
|
InaccessibleResource,
|
|
361
518
|
UnknownType,
|
|
362
519
|
]
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
from typing import Union
|
|
2
2
|
|
|
3
3
|
from ..extensions import UnknownType
|
|
4
|
-
from ..models.
|
|
5
|
-
from ..models.
|
|
6
|
-
from ..models.
|
|
7
|
-
from ..models.
|
|
8
|
-
from ..models.
|
|
9
|
-
from ..models.
|
|
4
|
+
from ..models.aa_sequence_with_entity_type import AaSequenceWithEntityType
|
|
5
|
+
from ..models.custom_entity_with_entity_type import CustomEntityWithEntityType
|
|
6
|
+
from ..models.dna_oligo_with_entity_type import DnaOligoWithEntityType
|
|
7
|
+
from ..models.dna_sequence_with_entity_type import DnaSequenceWithEntityType
|
|
8
|
+
from ..models.mixture_with_entity_type import MixtureWithEntityType
|
|
9
|
+
from ..models.molecule_with_entity_type import MoleculeWithEntityType
|
|
10
|
+
from ..models.rna_oligo_with_entity_type import RnaOligoWithEntityType
|
|
11
|
+
from ..models.rna_sequence_with_entity_type import RnaSequenceWithEntityType
|
|
10
12
|
|
|
11
|
-
Entity = Union[
|
|
13
|
+
Entity = Union[
|
|
14
|
+
DnaSequenceWithEntityType,
|
|
15
|
+
RnaSequenceWithEntityType,
|
|
16
|
+
AaSequenceWithEntityType,
|
|
17
|
+
MixtureWithEntityType,
|
|
18
|
+
DnaOligoWithEntityType,
|
|
19
|
+
RnaOligoWithEntityType,
|
|
20
|
+
MoleculeWithEntityType,
|
|
21
|
+
CustomEntityWithEntityType,
|
|
22
|
+
UnknownType,
|
|
23
|
+
]
|
|
@@ -1,16 +1,28 @@
|
|
|
1
1
|
from typing import Union
|
|
2
2
|
|
|
3
3
|
from ..extensions import UnknownType
|
|
4
|
-
from ..models.
|
|
5
|
-
from ..models.
|
|
6
|
-
from ..models.
|
|
7
|
-
from ..models.
|
|
4
|
+
from ..models.aa_sequence_with_entity_type import AaSequenceWithEntityType
|
|
5
|
+
from ..models.custom_entity_with_entity_type import CustomEntityWithEntityType
|
|
6
|
+
from ..models.dna_oligo_with_entity_type import DnaOligoWithEntityType
|
|
7
|
+
from ..models.dna_sequence_with_entity_type import DnaSequenceWithEntityType
|
|
8
8
|
from ..models.inaccessible_resource import InaccessibleResource
|
|
9
|
-
from ..models.
|
|
10
|
-
from ..models.
|
|
9
|
+
from ..models.mixture_with_entity_type import MixtureWithEntityType
|
|
10
|
+
from ..models.molecule_with_entity_type import MoleculeWithEntityType
|
|
11
|
+
from ..models.rna_oligo_with_entity_type import RnaOligoWithEntityType
|
|
12
|
+
from ..models.rna_sequence_with_entity_type import RnaSequenceWithEntityType
|
|
11
13
|
|
|
12
14
|
EntityOrInaccessibleResource = Union[
|
|
13
|
-
Union[
|
|
15
|
+
Union[
|
|
16
|
+
DnaSequenceWithEntityType,
|
|
17
|
+
RnaSequenceWithEntityType,
|
|
18
|
+
AaSequenceWithEntityType,
|
|
19
|
+
MixtureWithEntityType,
|
|
20
|
+
DnaOligoWithEntityType,
|
|
21
|
+
RnaOligoWithEntityType,
|
|
22
|
+
MoleculeWithEntityType,
|
|
23
|
+
CustomEntityWithEntityType,
|
|
24
|
+
UnknownType,
|
|
25
|
+
],
|
|
14
26
|
InaccessibleResource,
|
|
15
27
|
UnknownType,
|
|
16
28
|
]
|
|
@@ -11,6 +11,7 @@ class FieldType(Enums.KnownString):
|
|
|
11
11
|
CUSTOM_ENTITY_LINK = "custom_entity_link"
|
|
12
12
|
ENTITY_LINK = "entity_link"
|
|
13
13
|
MIXTURE_LINK = "mixture_link"
|
|
14
|
+
MOLECULE_LINK = "molecule_link"
|
|
14
15
|
DROPDOWN = "dropdown"
|
|
15
16
|
PART_LINK = "part_link"
|
|
16
17
|
TRANSLATION_LINK = "translation_link"
|