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.
Files changed (56) hide show
  1. benchling_api_client/models/container_content.py +183 -26
  2. benchling_api_client/models/entity.py +19 -7
  3. benchling_api_client/models/entity_or_inaccessible_resource.py +19 -7
  4. benchling_api_client/models/field_type.py +1 -0
  5. benchling_api_client/models/molecule_with_entity_type.py +787 -0
  6. benchling_api_client/models/molecule_with_entity_type_entity_type.py +22 -0
  7. benchling_api_client/models/registered_entities_list.py +89 -32
  8. benchling_api_client/models/request_response_samples_item_entity.py +216 -74
  9. benchling_api_client/models/rna_sequence_with_entity_type.py +1151 -0
  10. benchling_api_client/models/rna_sequence_with_entity_type_entity_type.py +22 -0
  11. benchling_api_client/models/simple_field_definition_type.py +1 -0
  12. benchling_api_client/v2/alpha/models/app_config_field_type.py +1 -0
  13. benchling_api_client/v2/alpha/models/field_type.py +1 -0
  14. benchling_api_client/v2/alpha/openapi.yaml +2 -0
  15. benchling_api_client/v2/beta/models/aa_sequence_with_entity_type.py +865 -0
  16. benchling_api_client/v2/beta/models/aa_sequence_with_entity_type_entity_type.py +22 -0
  17. benchling_api_client/v2/beta/models/app_config_field_type.py +1 -0
  18. benchling_api_client/v2/beta/models/container_content.py +183 -26
  19. benchling_api_client/v2/beta/models/custom_entity_creator.py +2 -100
  20. benchling_api_client/v2/beta/models/custom_entity_with_entity_type.py +747 -0
  21. benchling_api_client/v2/beta/models/custom_entity_with_entity_type_entity_type.py +22 -0
  22. benchling_api_client/v2/beta/models/dna_oligo_with_entity_type.py +972 -0
  23. benchling_api_client/v2/beta/models/dna_oligo_with_entity_type_entity_type.py +22 -0
  24. benchling_api_client/v2/beta/models/dna_sequence_with_entity_type.py +1102 -0
  25. benchling_api_client/v2/beta/models/dna_sequence_with_entity_type_entity_type.py +22 -0
  26. benchling_api_client/v2/beta/models/entity.py +19 -7
  27. benchling_api_client/v2/beta/models/entity_or_inaccessible_resource.py +19 -7
  28. benchling_api_client/v2/beta/models/field_type.py +1 -0
  29. benchling_api_client/v2/beta/models/mixture_creator.py +2 -100
  30. benchling_api_client/v2/beta/models/mixture_with_entity_type.py +867 -0
  31. benchling_api_client/v2/beta/models/mixture_with_entity_type_entity_type.py +22 -0
  32. benchling_api_client/v2/beta/models/molecule_with_entity_type.py +787 -0
  33. benchling_api_client/v2/beta/models/molecule_with_entity_type_entity_type.py +22 -0
  34. benchling_api_client/v2/beta/models/rna_oligo_with_entity_type.py +972 -0
  35. benchling_api_client/v2/beta/models/rna_oligo_with_entity_type_entity_type.py +22 -0
  36. benchling_api_client/v2/beta/models/rna_sequence.py +1109 -0
  37. benchling_api_client/v2/beta/models/rna_sequence_part.py +183 -0
  38. benchling_api_client/v2/beta/models/rna_sequence_with_entity_type.py +1151 -0
  39. benchling_api_client/v2/beta/models/rna_sequence_with_entity_type_entity_type.py +22 -0
  40. benchling_api_client/v2/beta/openapi.yaml +218 -6
  41. benchling_api_client/v2/stable/models/container_content.py +183 -26
  42. benchling_api_client/v2/stable/models/entity.py +19 -7
  43. benchling_api_client/v2/stable/models/entity_or_inaccessible_resource.py +19 -7
  44. benchling_api_client/v2/stable/models/field_type.py +1 -0
  45. benchling_api_client/v2/stable/models/molecule_with_entity_type.py +787 -0
  46. benchling_api_client/v2/stable/models/molecule_with_entity_type_entity_type.py +22 -0
  47. benchling_api_client/v2/stable/models/registered_entities_list.py +89 -32
  48. benchling_api_client/v2/stable/models/request_response_samples_item_entity.py +216 -74
  49. benchling_api_client/v2/stable/models/rna_sequence_with_entity_type.py +1151 -0
  50. benchling_api_client/v2/stable/models/rna_sequence_with_entity_type_entity_type.py +22 -0
  51. benchling_api_client/v2/stable/models/simple_field_definition_type.py +1 -0
  52. benchling_api_client/v2/stable/openapi.yaml +42 -22
  53. {benchling_api_client-2.0.414.dist-info → benchling_api_client-2.0.416.dist-info}/METADATA +1 -1
  54. {benchling_api_client-2.0.414.dist-info → benchling_api_client-2.0.416.dist-info}/RECORD +56 -30
  55. {benchling_api_client-2.0.414.dist-info → benchling_api_client-2.0.416.dist-info}/LICENSE +0 -0
  56. {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 AaSequenceWithEntityTypeEntityType(Enums.KnownString):
9
+ AA_SEQUENCE = "aa_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) -> "AaSequenceWithEntityTypeEntityType":
17
+ if not isinstance(val, str):
18
+ raise ValueError(
19
+ f"Value of AaSequenceWithEntityTypeEntityType must be a string (encountered: {val})"
20
+ )
21
+ newcls = Enum("AaSequenceWithEntityTypeEntityType", {"_UNKNOWN": val}, type=Enums.UnknownString) # type: ignore
22
+ return cast(AaSequenceWithEntityTypeEntityType, getattr(newcls, "_UNKNOWN"))
@@ -11,6 +11,7 @@ class AppConfigFieldType(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"
@@ -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.aa_sequence import AaSequence
6
+ from ..models.aa_sequence_with_entity_type import AaSequenceWithEntityType
7
7
  from ..models.batch import Batch
8
- from ..models.custom_entity import CustomEntity
9
- from ..models.dna_oligo import DnaOligo
10
- from ..models.dna_sequence import DnaSequence
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.mixture import Mixture
14
- from ..models.rna_oligo import RnaOligo
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[DnaSequence, AaSequence, Mixture, DnaOligo, RnaOligo, CustomEntity, UnknownType],
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, DnaSequence):
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, AaSequence):
92
+ elif isinstance(self._entity, MixtureWithEntityType):
75
93
  entity = self._entity.to_dict()
76
94
 
77
- elif isinstance(self._entity, Mixture):
95
+ elif isinstance(self._entity, DnaOligoWithEntityType):
78
96
  entity = self._entity.to_dict()
79
97
 
80
- elif isinstance(self._entity, DnaOligo):
98
+ elif isinstance(self._entity, RnaOligoWithEntityType):
81
99
  entity = self._entity.to_dict()
82
100
 
83
- elif isinstance(self._entity, RnaOligo):
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[DnaSequence, AaSequence, Mixture, DnaOligo, RnaOligo, CustomEntity, UnknownType],
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[DnaSequence, AaSequence, Mixture, DnaOligo, RnaOligo, CustomEntity, UnknownType],
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[DnaSequence, AaSequence, Mixture, DnaOligo, RnaOligo, CustomEntity, UnknownType],
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
- DnaSequence, AaSequence, Mixture, DnaOligo, RnaOligo, CustomEntity, UnknownType
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
- DnaSequence, AaSequence, Mixture, DnaOligo, RnaOligo, CustomEntity, UnknownType
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 = DnaSequence.from_dict(data, strict=True)
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 = AaSequence.from_dict(data, strict=True)
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 = Mixture.from_dict(data, strict=True)
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 = DnaOligo.from_dict(data, strict=True)
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 = RnaOligo.from_dict(data, strict=True)
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 = CustomEntity.from_dict(data, strict=True)
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[DnaSequence, AaSequence, Mixture, DnaOligo, RnaOligo, CustomEntity, UnknownType],
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[DnaSequence, AaSequence, Mixture, DnaOligo, RnaOligo, CustomEntity, UnknownType],
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[DnaSequence, AaSequence, Mixture, DnaOligo, RnaOligo, CustomEntity, UnknownType],
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,10 +1,7 @@
1
- from typing import Any, cast, Dict, List, Optional, Type, TypeVar, Union
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="CustomEntityCreator")
9
6
 
10
7
 
@@ -12,33 +9,17 @@ T = TypeVar("T", bound="CustomEntityCreator")
12
9
  class CustomEntityCreator:
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 "CustomEntityCreator({})".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 CustomEntityCreator:
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
- def get_handle() -> Union[Unset, str]:
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
- custom_entity_creator = cls(
83
- handle=handle,
84
- id=id,
85
- name=name,
86
- )
30
+ custom_entity_creator = cls()
87
31
 
88
32
  custom_entity_creator.additional_properties = d
89
33
  return custom_entity_creator
@@ -106,45 +50,3 @@ class CustomEntityCreator:
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