benchling-api-client 2.0.415__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/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/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/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/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 +216 -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/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/openapi.yaml +40 -22
- {benchling_api_client-2.0.415.dist-info → benchling_api_client-2.0.416.dist-info}/METADATA +1 -1
- {benchling_api_client-2.0.415.dist-info → benchling_api_client-2.0.416.dist-info}/RECORD +47 -21
- {benchling_api_client-2.0.415.dist-info → benchling_api_client-2.0.416.dist-info}/LICENSE +0 -0
- {benchling_api_client-2.0.415.dist-info → benchling_api_client-2.0.416.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
from typing import Any, cast, Dict, List, Optional, Type, TypeVar, Union
|
|
2
|
+
|
|
3
|
+
import attr
|
|
4
|
+
|
|
5
|
+
from ..extensions import NotPresentError
|
|
6
|
+
from ..types import UNSET, Unset
|
|
7
|
+
|
|
8
|
+
T = TypeVar("T", bound="RnaSequencePart")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@attr.s(auto_attribs=True, repr=False)
|
|
12
|
+
class RnaSequencePart:
|
|
13
|
+
""" """
|
|
14
|
+
|
|
15
|
+
_strand: Union[Unset, int] = UNSET
|
|
16
|
+
_end: Union[Unset, int] = UNSET
|
|
17
|
+
_sequence_id: Union[Unset, str] = UNSET
|
|
18
|
+
_start: Union[Unset, int] = UNSET
|
|
19
|
+
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
20
|
+
|
|
21
|
+
def __repr__(self):
|
|
22
|
+
fields = []
|
|
23
|
+
fields.append("strand={}".format(repr(self._strand)))
|
|
24
|
+
fields.append("end={}".format(repr(self._end)))
|
|
25
|
+
fields.append("sequence_id={}".format(repr(self._sequence_id)))
|
|
26
|
+
fields.append("start={}".format(repr(self._start)))
|
|
27
|
+
fields.append("additional_properties={}".format(repr(self.additional_properties)))
|
|
28
|
+
return "RnaSequencePart({})".format(", ".join(fields))
|
|
29
|
+
|
|
30
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
31
|
+
strand = self._strand
|
|
32
|
+
end = self._end
|
|
33
|
+
sequence_id = self._sequence_id
|
|
34
|
+
start = self._start
|
|
35
|
+
|
|
36
|
+
field_dict: Dict[str, Any] = {}
|
|
37
|
+
field_dict.update(self.additional_properties)
|
|
38
|
+
# Allow the model to serialize even if it was created outside of the constructor, circumventing validation
|
|
39
|
+
if strand is not UNSET:
|
|
40
|
+
field_dict["strand"] = strand
|
|
41
|
+
if end is not UNSET:
|
|
42
|
+
field_dict["end"] = end
|
|
43
|
+
if sequence_id is not UNSET:
|
|
44
|
+
field_dict["sequenceId"] = sequence_id
|
|
45
|
+
if start is not UNSET:
|
|
46
|
+
field_dict["start"] = start
|
|
47
|
+
|
|
48
|
+
return field_dict
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any], strict: bool = False) -> T:
|
|
52
|
+
d = src_dict.copy()
|
|
53
|
+
|
|
54
|
+
def get_strand() -> Union[Unset, int]:
|
|
55
|
+
strand = d.pop("strand")
|
|
56
|
+
return strand
|
|
57
|
+
|
|
58
|
+
try:
|
|
59
|
+
strand = get_strand()
|
|
60
|
+
except KeyError:
|
|
61
|
+
if strict:
|
|
62
|
+
raise
|
|
63
|
+
strand = cast(Union[Unset, int], UNSET)
|
|
64
|
+
|
|
65
|
+
def get_end() -> Union[Unset, int]:
|
|
66
|
+
end = d.pop("end")
|
|
67
|
+
return end
|
|
68
|
+
|
|
69
|
+
try:
|
|
70
|
+
end = get_end()
|
|
71
|
+
except KeyError:
|
|
72
|
+
if strict:
|
|
73
|
+
raise
|
|
74
|
+
end = cast(Union[Unset, int], UNSET)
|
|
75
|
+
|
|
76
|
+
def get_sequence_id() -> Union[Unset, str]:
|
|
77
|
+
sequence_id = d.pop("sequenceId")
|
|
78
|
+
return sequence_id
|
|
79
|
+
|
|
80
|
+
try:
|
|
81
|
+
sequence_id = get_sequence_id()
|
|
82
|
+
except KeyError:
|
|
83
|
+
if strict:
|
|
84
|
+
raise
|
|
85
|
+
sequence_id = cast(Union[Unset, str], UNSET)
|
|
86
|
+
|
|
87
|
+
def get_start() -> Union[Unset, int]:
|
|
88
|
+
start = d.pop("start")
|
|
89
|
+
return start
|
|
90
|
+
|
|
91
|
+
try:
|
|
92
|
+
start = get_start()
|
|
93
|
+
except KeyError:
|
|
94
|
+
if strict:
|
|
95
|
+
raise
|
|
96
|
+
start = cast(Union[Unset, int], UNSET)
|
|
97
|
+
|
|
98
|
+
rna_sequence_part = cls(
|
|
99
|
+
strand=strand,
|
|
100
|
+
end=end,
|
|
101
|
+
sequence_id=sequence_id,
|
|
102
|
+
start=start,
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
rna_sequence_part.additional_properties = d
|
|
106
|
+
return rna_sequence_part
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def additional_keys(self) -> List[str]:
|
|
110
|
+
return list(self.additional_properties.keys())
|
|
111
|
+
|
|
112
|
+
def __getitem__(self, key: str) -> Any:
|
|
113
|
+
return self.additional_properties[key]
|
|
114
|
+
|
|
115
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
116
|
+
self.additional_properties[key] = value
|
|
117
|
+
|
|
118
|
+
def __delitem__(self, key: str) -> None:
|
|
119
|
+
del self.additional_properties[key]
|
|
120
|
+
|
|
121
|
+
def __contains__(self, key: str) -> bool:
|
|
122
|
+
return key in self.additional_properties
|
|
123
|
+
|
|
124
|
+
def get(self, key, default=None) -> Optional[Any]:
|
|
125
|
+
return self.additional_properties.get(key, default)
|
|
126
|
+
|
|
127
|
+
@property
|
|
128
|
+
def strand(self) -> int:
|
|
129
|
+
if isinstance(self._strand, Unset):
|
|
130
|
+
raise NotPresentError(self, "strand")
|
|
131
|
+
return self._strand
|
|
132
|
+
|
|
133
|
+
@strand.setter
|
|
134
|
+
def strand(self, value: int) -> None:
|
|
135
|
+
self._strand = value
|
|
136
|
+
|
|
137
|
+
@strand.deleter
|
|
138
|
+
def strand(self) -> None:
|
|
139
|
+
self._strand = UNSET
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
def end(self) -> int:
|
|
143
|
+
""" 0-based exclusive end index. The end of the sequence is always represented as 0. """
|
|
144
|
+
if isinstance(self._end, Unset):
|
|
145
|
+
raise NotPresentError(self, "end")
|
|
146
|
+
return self._end
|
|
147
|
+
|
|
148
|
+
@end.setter
|
|
149
|
+
def end(self, value: int) -> None:
|
|
150
|
+
self._end = value
|
|
151
|
+
|
|
152
|
+
@end.deleter
|
|
153
|
+
def end(self) -> None:
|
|
154
|
+
self._end = UNSET
|
|
155
|
+
|
|
156
|
+
@property
|
|
157
|
+
def sequence_id(self) -> str:
|
|
158
|
+
if isinstance(self._sequence_id, Unset):
|
|
159
|
+
raise NotPresentError(self, "sequence_id")
|
|
160
|
+
return self._sequence_id
|
|
161
|
+
|
|
162
|
+
@sequence_id.setter
|
|
163
|
+
def sequence_id(self, value: str) -> None:
|
|
164
|
+
self._sequence_id = value
|
|
165
|
+
|
|
166
|
+
@sequence_id.deleter
|
|
167
|
+
def sequence_id(self) -> None:
|
|
168
|
+
self._sequence_id = UNSET
|
|
169
|
+
|
|
170
|
+
@property
|
|
171
|
+
def start(self) -> int:
|
|
172
|
+
""" 0-based inclusive start index. """
|
|
173
|
+
if isinstance(self._start, Unset):
|
|
174
|
+
raise NotPresentError(self, "start")
|
|
175
|
+
return self._start
|
|
176
|
+
|
|
177
|
+
@start.setter
|
|
178
|
+
def start(self, value: int) -> None:
|
|
179
|
+
self._start = value
|
|
180
|
+
|
|
181
|
+
@start.deleter
|
|
182
|
+
def start(self) -> None:
|
|
183
|
+
self._start = UNSET
|