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
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
from functools import lru_cache
|
|
3
|
+
from typing import cast
|
|
4
|
+
|
|
5
|
+
from ..extensions import Enums
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DnaSequenceWithEntityTypeEntityType(Enums.KnownString):
|
|
9
|
+
DNA_SEQUENCE = "dna_sequence"
|
|
10
|
+
|
|
11
|
+
def __str__(self) -> str:
|
|
12
|
+
return str(self.value)
|
|
13
|
+
|
|
14
|
+
@staticmethod
|
|
15
|
+
@lru_cache(maxsize=None)
|
|
16
|
+
def of_unknown(val: str) -> "DnaSequenceWithEntityTypeEntityType":
|
|
17
|
+
if not isinstance(val, str):
|
|
18
|
+
raise ValueError(
|
|
19
|
+
f"Value of DnaSequenceWithEntityTypeEntityType must be a string (encountered: {val})"
|
|
20
|
+
)
|
|
21
|
+
newcls = Enum("DnaSequenceWithEntityTypeEntityType", {"_UNKNOWN": val}, type=Enums.UnknownString) # type: ignore
|
|
22
|
+
return cast(DnaSequenceWithEntityTypeEntityType, getattr(newcls, "_UNKNOWN"))
|
|
@@ -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"
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
from typing import Any,
|
|
1
|
+
from typing import Any, Dict, List, Optional, Type, TypeVar
|
|
2
2
|
|
|
3
3
|
import attr
|
|
4
4
|
|
|
5
|
-
from ..extensions import NotPresentError
|
|
6
|
-
from ..types import UNSET, Unset
|
|
7
|
-
|
|
8
5
|
T = TypeVar("T", bound="MixtureCreator")
|
|
9
6
|
|
|
10
7
|
|
|
@@ -12,33 +9,17 @@ T = TypeVar("T", bound="MixtureCreator")
|
|
|
12
9
|
class MixtureCreator:
|
|
13
10
|
""" """
|
|
14
11
|
|
|
15
|
-
_handle: Union[Unset, str] = UNSET
|
|
16
|
-
_id: Union[Unset, str] = UNSET
|
|
17
|
-
_name: Union[Unset, str] = UNSET
|
|
18
12
|
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
19
13
|
|
|
20
14
|
def __repr__(self):
|
|
21
15
|
fields = []
|
|
22
|
-
fields.append("handle={}".format(repr(self._handle)))
|
|
23
|
-
fields.append("id={}".format(repr(self._id)))
|
|
24
|
-
fields.append("name={}".format(repr(self._name)))
|
|
25
16
|
fields.append("additional_properties={}".format(repr(self.additional_properties)))
|
|
26
17
|
return "MixtureCreator({})".format(", ".join(fields))
|
|
27
18
|
|
|
28
19
|
def to_dict(self) -> Dict[str, Any]:
|
|
29
|
-
handle = self._handle
|
|
30
|
-
id = self._id
|
|
31
|
-
name = self._name
|
|
32
20
|
|
|
33
21
|
field_dict: Dict[str, Any] = {}
|
|
34
22
|
field_dict.update(self.additional_properties)
|
|
35
|
-
# Allow the model to serialize even if it was created outside of the constructor, circumventing validation
|
|
36
|
-
if handle is not UNSET:
|
|
37
|
-
field_dict["handle"] = handle
|
|
38
|
-
if id is not UNSET:
|
|
39
|
-
field_dict["id"] = id
|
|
40
|
-
if name is not UNSET:
|
|
41
|
-
field_dict["name"] = name
|
|
42
23
|
|
|
43
24
|
return field_dict
|
|
44
25
|
|
|
@@ -46,44 +27,7 @@ class MixtureCreator:
|
|
|
46
27
|
def from_dict(cls: Type[T], src_dict: Dict[str, Any], strict: bool = False) -> T:
|
|
47
28
|
d = src_dict.copy()
|
|
48
29
|
|
|
49
|
-
|
|
50
|
-
handle = d.pop("handle")
|
|
51
|
-
return handle
|
|
52
|
-
|
|
53
|
-
try:
|
|
54
|
-
handle = get_handle()
|
|
55
|
-
except KeyError:
|
|
56
|
-
if strict:
|
|
57
|
-
raise
|
|
58
|
-
handle = cast(Union[Unset, str], UNSET)
|
|
59
|
-
|
|
60
|
-
def get_id() -> Union[Unset, str]:
|
|
61
|
-
id = d.pop("id")
|
|
62
|
-
return id
|
|
63
|
-
|
|
64
|
-
try:
|
|
65
|
-
id = get_id()
|
|
66
|
-
except KeyError:
|
|
67
|
-
if strict:
|
|
68
|
-
raise
|
|
69
|
-
id = cast(Union[Unset, str], UNSET)
|
|
70
|
-
|
|
71
|
-
def get_name() -> Union[Unset, str]:
|
|
72
|
-
name = d.pop("name")
|
|
73
|
-
return name
|
|
74
|
-
|
|
75
|
-
try:
|
|
76
|
-
name = get_name()
|
|
77
|
-
except KeyError:
|
|
78
|
-
if strict:
|
|
79
|
-
raise
|
|
80
|
-
name = cast(Union[Unset, str], UNSET)
|
|
81
|
-
|
|
82
|
-
mixture_creator = cls(
|
|
83
|
-
handle=handle,
|
|
84
|
-
id=id,
|
|
85
|
-
name=name,
|
|
86
|
-
)
|
|
30
|
+
mixture_creator = cls()
|
|
87
31
|
|
|
88
32
|
mixture_creator.additional_properties = d
|
|
89
33
|
return mixture_creator
|
|
@@ -106,45 +50,3 @@ class MixtureCreator:
|
|
|
106
50
|
|
|
107
51
|
def get(self, key, default=None) -> Optional[Any]:
|
|
108
52
|
return self.additional_properties.get(key, default)
|
|
109
|
-
|
|
110
|
-
@property
|
|
111
|
-
def handle(self) -> str:
|
|
112
|
-
if isinstance(self._handle, Unset):
|
|
113
|
-
raise NotPresentError(self, "handle")
|
|
114
|
-
return self._handle
|
|
115
|
-
|
|
116
|
-
@handle.setter
|
|
117
|
-
def handle(self, value: str) -> None:
|
|
118
|
-
self._handle = value
|
|
119
|
-
|
|
120
|
-
@handle.deleter
|
|
121
|
-
def handle(self) -> None:
|
|
122
|
-
self._handle = UNSET
|
|
123
|
-
|
|
124
|
-
@property
|
|
125
|
-
def id(self) -> str:
|
|
126
|
-
if isinstance(self._id, Unset):
|
|
127
|
-
raise NotPresentError(self, "id")
|
|
128
|
-
return self._id
|
|
129
|
-
|
|
130
|
-
@id.setter
|
|
131
|
-
def id(self, value: str) -> None:
|
|
132
|
-
self._id = value
|
|
133
|
-
|
|
134
|
-
@id.deleter
|
|
135
|
-
def id(self) -> None:
|
|
136
|
-
self._id = UNSET
|
|
137
|
-
|
|
138
|
-
@property
|
|
139
|
-
def name(self) -> str:
|
|
140
|
-
if isinstance(self._name, Unset):
|
|
141
|
-
raise NotPresentError(self, "name")
|
|
142
|
-
return self._name
|
|
143
|
-
|
|
144
|
-
@name.setter
|
|
145
|
-
def name(self, value: str) -> None:
|
|
146
|
-
self._name = value
|
|
147
|
-
|
|
148
|
-
@name.deleter
|
|
149
|
-
def name(self) -> None:
|
|
150
|
-
self._name = UNSET
|