benchling-api-client 2.0.415__py3-none-any.whl → 2.0.417__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 (53) hide show
  1. benchling_api_client/models/aa_sequence.py +1 -1
  2. benchling_api_client/models/aa_sequence_with_entity_type.py +1 -1
  3. benchling_api_client/models/container_content.py +183 -26
  4. benchling_api_client/models/entity.py +19 -7
  5. benchling_api_client/models/entity_or_inaccessible_resource.py +19 -7
  6. benchling_api_client/models/molecule_with_entity_type.py +787 -0
  7. benchling_api_client/models/molecule_with_entity_type_entity_type.py +22 -0
  8. benchling_api_client/models/registered_entities_list.py +89 -32
  9. benchling_api_client/models/request_response_samples_item_entity.py +216 -74
  10. benchling_api_client/models/rna_sequence_with_entity_type.py +1151 -0
  11. benchling_api_client/models/rna_sequence_with_entity_type_entity_type.py +22 -0
  12. benchling_api_client/v2/alpha/openapi.yaml +2 -2
  13. benchling_api_client/v2/beta/models/aa_sequence.py +1 -1
  14. benchling_api_client/v2/beta/models/aa_sequence_with_entity_type.py +865 -0
  15. benchling_api_client/v2/beta/models/aa_sequence_with_entity_type_entity_type.py +22 -0
  16. benchling_api_client/v2/beta/models/container_content.py +183 -26
  17. benchling_api_client/v2/beta/models/custom_entity_creator.py +2 -100
  18. benchling_api_client/v2/beta/models/custom_entity_with_entity_type.py +747 -0
  19. benchling_api_client/v2/beta/models/custom_entity_with_entity_type_entity_type.py +22 -0
  20. benchling_api_client/v2/beta/models/dna_oligo_with_entity_type.py +972 -0
  21. benchling_api_client/v2/beta/models/dna_oligo_with_entity_type_entity_type.py +22 -0
  22. benchling_api_client/v2/beta/models/dna_sequence_with_entity_type.py +1102 -0
  23. benchling_api_client/v2/beta/models/dna_sequence_with_entity_type_entity_type.py +22 -0
  24. benchling_api_client/v2/beta/models/entity.py +19 -7
  25. benchling_api_client/v2/beta/models/entity_or_inaccessible_resource.py +19 -7
  26. benchling_api_client/v2/beta/models/mixture_creator.py +2 -100
  27. benchling_api_client/v2/beta/models/mixture_with_entity_type.py +867 -0
  28. benchling_api_client/v2/beta/models/mixture_with_entity_type_entity_type.py +22 -0
  29. benchling_api_client/v2/beta/models/molecule_with_entity_type.py +787 -0
  30. benchling_api_client/v2/beta/models/molecule_with_entity_type_entity_type.py +22 -0
  31. benchling_api_client/v2/beta/models/rna_oligo_with_entity_type.py +972 -0
  32. benchling_api_client/v2/beta/models/rna_oligo_with_entity_type_entity_type.py +22 -0
  33. benchling_api_client/v2/beta/models/rna_sequence.py +1109 -0
  34. benchling_api_client/v2/beta/models/rna_sequence_part.py +183 -0
  35. benchling_api_client/v2/beta/models/rna_sequence_with_entity_type.py +1151 -0
  36. benchling_api_client/v2/beta/models/rna_sequence_with_entity_type_entity_type.py +22 -0
  37. benchling_api_client/v2/beta/openapi.yaml +219 -9
  38. benchling_api_client/v2/stable/models/aa_sequence.py +1 -1
  39. benchling_api_client/v2/stable/models/aa_sequence_with_entity_type.py +1 -1
  40. benchling_api_client/v2/stable/models/container_content.py +183 -26
  41. benchling_api_client/v2/stable/models/entity.py +19 -7
  42. benchling_api_client/v2/stable/models/entity_or_inaccessible_resource.py +19 -7
  43. benchling_api_client/v2/stable/models/molecule_with_entity_type.py +787 -0
  44. benchling_api_client/v2/stable/models/molecule_with_entity_type_entity_type.py +22 -0
  45. benchling_api_client/v2/stable/models/registered_entities_list.py +89 -32
  46. benchling_api_client/v2/stable/models/request_response_samples_item_entity.py +216 -74
  47. benchling_api_client/v2/stable/models/rna_sequence_with_entity_type.py +1151 -0
  48. benchling_api_client/v2/stable/models/rna_sequence_with_entity_type_entity_type.py +22 -0
  49. benchling_api_client/v2/stable/openapi.yaml +43 -25
  50. {benchling_api_client-2.0.415.dist-info → benchling_api_client-2.0.417.dist-info}/METADATA +1 -1
  51. {benchling_api_client-2.0.415.dist-info → benchling_api_client-2.0.417.dist-info}/RECORD +53 -27
  52. {benchling_api_client-2.0.415.dist-info → benchling_api_client-2.0.417.dist-info}/LICENSE +0 -0
  53. {benchling_api_client-2.0.415.dist-info → benchling_api_client-2.0.417.dist-info}/WHEEL +0 -0
@@ -0,0 +1,747 @@
1
+ import datetime
2
+ from typing import Any, cast, Dict, List, Optional, Type, TypeVar, Union
3
+
4
+ import attr
5
+ from dateutil.parser import isoparse
6
+
7
+ from ..extensions import NotPresentError
8
+ from ..models.archive_record import ArchiveRecord
9
+ from ..models.custom_entity_creator import CustomEntityCreator
10
+ from ..models.custom_entity_with_entity_type_entity_type import CustomEntityWithEntityTypeEntityType
11
+ from ..models.custom_fields import CustomFields
12
+ from ..models.fields import Fields
13
+ from ..models.registration_origin import RegistrationOrigin
14
+ from ..models.schema_summary import SchemaSummary
15
+ from ..models.user_summary import UserSummary
16
+ from ..types import UNSET, Unset
17
+
18
+ T = TypeVar("T", bound="CustomEntityWithEntityType")
19
+
20
+
21
+ @attr.s(auto_attribs=True, repr=False)
22
+ class CustomEntityWithEntityType:
23
+ """ """
24
+
25
+ _entity_type: Union[Unset, CustomEntityWithEntityTypeEntityType] = UNSET
26
+ _aliases: Union[Unset, List[str]] = UNSET
27
+ _api_url: Union[Unset, str] = UNSET
28
+ _archive_record: Union[Unset, None, ArchiveRecord] = UNSET
29
+ _authors: Union[Unset, List[UserSummary]] = UNSET
30
+ _created_at: Union[Unset, datetime.datetime] = UNSET
31
+ _creator: Union[Unset, CustomEntityCreator] = UNSET
32
+ _custom_fields: Union[Unset, CustomFields] = UNSET
33
+ _entity_registry_id: Union[Unset, None, str] = UNSET
34
+ _fields: Union[Unset, Fields] = UNSET
35
+ _folder_id: Union[Unset, None, str] = UNSET
36
+ _id: Union[Unset, str] = UNSET
37
+ _modified_at: Union[Unset, datetime.datetime] = UNSET
38
+ _name: Union[Unset, str] = UNSET
39
+ _registration_origin: Union[Unset, None, RegistrationOrigin] = UNSET
40
+ _registry_id: Union[Unset, None, str] = UNSET
41
+ _schema: Union[Unset, None, SchemaSummary] = UNSET
42
+ _url: Union[Unset, str] = UNSET
43
+ _web_url: Union[Unset, str] = UNSET
44
+ additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
45
+
46
+ def __repr__(self):
47
+ fields = []
48
+ fields.append("entity_type={}".format(repr(self._entity_type)))
49
+ fields.append("aliases={}".format(repr(self._aliases)))
50
+ fields.append("api_url={}".format(repr(self._api_url)))
51
+ fields.append("archive_record={}".format(repr(self._archive_record)))
52
+ fields.append("authors={}".format(repr(self._authors)))
53
+ fields.append("created_at={}".format(repr(self._created_at)))
54
+ fields.append("creator={}".format(repr(self._creator)))
55
+ fields.append("custom_fields={}".format(repr(self._custom_fields)))
56
+ fields.append("entity_registry_id={}".format(repr(self._entity_registry_id)))
57
+ fields.append("fields={}".format(repr(self._fields)))
58
+ fields.append("folder_id={}".format(repr(self._folder_id)))
59
+ fields.append("id={}".format(repr(self._id)))
60
+ fields.append("modified_at={}".format(repr(self._modified_at)))
61
+ fields.append("name={}".format(repr(self._name)))
62
+ fields.append("registration_origin={}".format(repr(self._registration_origin)))
63
+ fields.append("registry_id={}".format(repr(self._registry_id)))
64
+ fields.append("schema={}".format(repr(self._schema)))
65
+ fields.append("url={}".format(repr(self._url)))
66
+ fields.append("web_url={}".format(repr(self._web_url)))
67
+ fields.append("additional_properties={}".format(repr(self.additional_properties)))
68
+ return "CustomEntityWithEntityType({})".format(", ".join(fields))
69
+
70
+ def to_dict(self) -> Dict[str, Any]:
71
+ entity_type: Union[Unset, int] = UNSET
72
+ if not isinstance(self._entity_type, Unset):
73
+ entity_type = self._entity_type.value
74
+
75
+ aliases: Union[Unset, List[Any]] = UNSET
76
+ if not isinstance(self._aliases, Unset):
77
+ aliases = self._aliases
78
+
79
+ api_url = self._api_url
80
+ archive_record: Union[Unset, None, Dict[str, Any]] = UNSET
81
+ if not isinstance(self._archive_record, Unset):
82
+ archive_record = self._archive_record.to_dict() if self._archive_record else None
83
+
84
+ authors: Union[Unset, List[Any]] = UNSET
85
+ if not isinstance(self._authors, Unset):
86
+ authors = []
87
+ for authors_item_data in self._authors:
88
+ authors_item = authors_item_data.to_dict()
89
+
90
+ authors.append(authors_item)
91
+
92
+ created_at: Union[Unset, str] = UNSET
93
+ if not isinstance(self._created_at, Unset):
94
+ created_at = self._created_at.isoformat()
95
+
96
+ creator: Union[Unset, Dict[str, Any]] = UNSET
97
+ if not isinstance(self._creator, Unset):
98
+ creator = self._creator.to_dict()
99
+
100
+ custom_fields: Union[Unset, Dict[str, Any]] = UNSET
101
+ if not isinstance(self._custom_fields, Unset):
102
+ custom_fields = self._custom_fields.to_dict()
103
+
104
+ entity_registry_id = self._entity_registry_id
105
+ fields: Union[Unset, Dict[str, Any]] = UNSET
106
+ if not isinstance(self._fields, Unset):
107
+ fields = self._fields.to_dict()
108
+
109
+ folder_id = self._folder_id
110
+ id = self._id
111
+ modified_at: Union[Unset, str] = UNSET
112
+ if not isinstance(self._modified_at, Unset):
113
+ modified_at = self._modified_at.isoformat()
114
+
115
+ name = self._name
116
+ registration_origin: Union[Unset, None, Dict[str, Any]] = UNSET
117
+ if not isinstance(self._registration_origin, Unset):
118
+ registration_origin = self._registration_origin.to_dict() if self._registration_origin else None
119
+
120
+ registry_id = self._registry_id
121
+ schema: Union[Unset, None, Dict[str, Any]] = UNSET
122
+ if not isinstance(self._schema, Unset):
123
+ schema = self._schema.to_dict() if self._schema else None
124
+
125
+ url = self._url
126
+ web_url = self._web_url
127
+
128
+ field_dict: Dict[str, Any] = {}
129
+ field_dict.update(self.additional_properties)
130
+ # Allow the model to serialize even if it was created outside of the constructor, circumventing validation
131
+ if entity_type is not UNSET:
132
+ field_dict["entityType"] = entity_type
133
+ if aliases is not UNSET:
134
+ field_dict["aliases"] = aliases
135
+ if api_url is not UNSET:
136
+ field_dict["apiURL"] = api_url
137
+ if archive_record is not UNSET:
138
+ field_dict["archiveRecord"] = archive_record
139
+ if authors is not UNSET:
140
+ field_dict["authors"] = authors
141
+ if created_at is not UNSET:
142
+ field_dict["createdAt"] = created_at
143
+ if creator is not UNSET:
144
+ field_dict["creator"] = creator
145
+ if custom_fields is not UNSET:
146
+ field_dict["customFields"] = custom_fields
147
+ if entity_registry_id is not UNSET:
148
+ field_dict["entityRegistryId"] = entity_registry_id
149
+ if fields is not UNSET:
150
+ field_dict["fields"] = fields
151
+ if folder_id is not UNSET:
152
+ field_dict["folderId"] = folder_id
153
+ if id is not UNSET:
154
+ field_dict["id"] = id
155
+ if modified_at is not UNSET:
156
+ field_dict["modifiedAt"] = modified_at
157
+ if name is not UNSET:
158
+ field_dict["name"] = name
159
+ if registration_origin is not UNSET:
160
+ field_dict["registrationOrigin"] = registration_origin
161
+ if registry_id is not UNSET:
162
+ field_dict["registryId"] = registry_id
163
+ if schema is not UNSET:
164
+ field_dict["schema"] = schema
165
+ if url is not UNSET:
166
+ field_dict["url"] = url
167
+ if web_url is not UNSET:
168
+ field_dict["webURL"] = web_url
169
+
170
+ return field_dict
171
+
172
+ @classmethod
173
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any], strict: bool = False) -> T:
174
+ d = src_dict.copy()
175
+
176
+ def get_entity_type() -> Union[Unset, CustomEntityWithEntityTypeEntityType]:
177
+ entity_type = UNSET
178
+ _entity_type = d.pop("entityType")
179
+ if _entity_type is not None and _entity_type is not UNSET:
180
+ try:
181
+ entity_type = CustomEntityWithEntityTypeEntityType(_entity_type)
182
+ except ValueError:
183
+ entity_type = CustomEntityWithEntityTypeEntityType.of_unknown(_entity_type)
184
+
185
+ return entity_type
186
+
187
+ try:
188
+ entity_type = get_entity_type()
189
+ except KeyError:
190
+ if strict:
191
+ raise
192
+ entity_type = cast(Union[Unset, CustomEntityWithEntityTypeEntityType], UNSET)
193
+
194
+ def get_aliases() -> Union[Unset, List[str]]:
195
+ aliases = cast(List[str], d.pop("aliases"))
196
+
197
+ return aliases
198
+
199
+ try:
200
+ aliases = get_aliases()
201
+ except KeyError:
202
+ if strict:
203
+ raise
204
+ aliases = cast(Union[Unset, List[str]], UNSET)
205
+
206
+ def get_api_url() -> Union[Unset, str]:
207
+ api_url = d.pop("apiURL")
208
+ return api_url
209
+
210
+ try:
211
+ api_url = get_api_url()
212
+ except KeyError:
213
+ if strict:
214
+ raise
215
+ api_url = cast(Union[Unset, str], UNSET)
216
+
217
+ def get_archive_record() -> Union[Unset, None, ArchiveRecord]:
218
+ archive_record = None
219
+ _archive_record = d.pop("archiveRecord")
220
+
221
+ if _archive_record is not None and not isinstance(_archive_record, Unset):
222
+ archive_record = ArchiveRecord.from_dict(_archive_record)
223
+
224
+ return archive_record
225
+
226
+ try:
227
+ archive_record = get_archive_record()
228
+ except KeyError:
229
+ if strict:
230
+ raise
231
+ archive_record = cast(Union[Unset, None, ArchiveRecord], UNSET)
232
+
233
+ def get_authors() -> Union[Unset, List[UserSummary]]:
234
+ authors = []
235
+ _authors = d.pop("authors")
236
+ for authors_item_data in _authors or []:
237
+ authors_item = UserSummary.from_dict(authors_item_data, strict=False)
238
+
239
+ authors.append(authors_item)
240
+
241
+ return authors
242
+
243
+ try:
244
+ authors = get_authors()
245
+ except KeyError:
246
+ if strict:
247
+ raise
248
+ authors = cast(Union[Unset, List[UserSummary]], UNSET)
249
+
250
+ def get_created_at() -> Union[Unset, datetime.datetime]:
251
+ created_at: Union[Unset, datetime.datetime] = UNSET
252
+ _created_at = d.pop("createdAt")
253
+ if _created_at is not None and not isinstance(_created_at, Unset):
254
+ created_at = isoparse(cast(str, _created_at))
255
+
256
+ return created_at
257
+
258
+ try:
259
+ created_at = get_created_at()
260
+ except KeyError:
261
+ if strict:
262
+ raise
263
+ created_at = cast(Union[Unset, datetime.datetime], UNSET)
264
+
265
+ def get_creator() -> Union[Unset, CustomEntityCreator]:
266
+ creator: Union[Unset, Union[Unset, CustomEntityCreator]] = UNSET
267
+ _creator = d.pop("creator")
268
+
269
+ if not isinstance(_creator, Unset):
270
+ creator = CustomEntityCreator.from_dict(_creator)
271
+
272
+ return creator
273
+
274
+ try:
275
+ creator = get_creator()
276
+ except KeyError:
277
+ if strict:
278
+ raise
279
+ creator = cast(Union[Unset, CustomEntityCreator], UNSET)
280
+
281
+ def get_custom_fields() -> Union[Unset, CustomFields]:
282
+ custom_fields: Union[Unset, Union[Unset, CustomFields]] = UNSET
283
+ _custom_fields = d.pop("customFields")
284
+
285
+ if not isinstance(_custom_fields, Unset):
286
+ custom_fields = CustomFields.from_dict(_custom_fields)
287
+
288
+ return custom_fields
289
+
290
+ try:
291
+ custom_fields = get_custom_fields()
292
+ except KeyError:
293
+ if strict:
294
+ raise
295
+ custom_fields = cast(Union[Unset, CustomFields], UNSET)
296
+
297
+ def get_entity_registry_id() -> Union[Unset, None, str]:
298
+ entity_registry_id = d.pop("entityRegistryId")
299
+ return entity_registry_id
300
+
301
+ try:
302
+ entity_registry_id = get_entity_registry_id()
303
+ except KeyError:
304
+ if strict:
305
+ raise
306
+ entity_registry_id = cast(Union[Unset, None, str], UNSET)
307
+
308
+ def get_fields() -> Union[Unset, Fields]:
309
+ fields: Union[Unset, Union[Unset, Fields]] = UNSET
310
+ _fields = d.pop("fields")
311
+
312
+ if not isinstance(_fields, Unset):
313
+ fields = Fields.from_dict(_fields)
314
+
315
+ return fields
316
+
317
+ try:
318
+ fields = get_fields()
319
+ except KeyError:
320
+ if strict:
321
+ raise
322
+ fields = cast(Union[Unset, Fields], UNSET)
323
+
324
+ def get_folder_id() -> Union[Unset, None, str]:
325
+ folder_id = d.pop("folderId")
326
+ return folder_id
327
+
328
+ try:
329
+ folder_id = get_folder_id()
330
+ except KeyError:
331
+ if strict:
332
+ raise
333
+ folder_id = cast(Union[Unset, None, str], UNSET)
334
+
335
+ def get_id() -> Union[Unset, str]:
336
+ id = d.pop("id")
337
+ return id
338
+
339
+ try:
340
+ id = get_id()
341
+ except KeyError:
342
+ if strict:
343
+ raise
344
+ id = cast(Union[Unset, str], UNSET)
345
+
346
+ def get_modified_at() -> Union[Unset, datetime.datetime]:
347
+ modified_at: Union[Unset, datetime.datetime] = UNSET
348
+ _modified_at = d.pop("modifiedAt")
349
+ if _modified_at is not None and not isinstance(_modified_at, Unset):
350
+ modified_at = isoparse(cast(str, _modified_at))
351
+
352
+ return modified_at
353
+
354
+ try:
355
+ modified_at = get_modified_at()
356
+ except KeyError:
357
+ if strict:
358
+ raise
359
+ modified_at = cast(Union[Unset, datetime.datetime], UNSET)
360
+
361
+ def get_name() -> Union[Unset, str]:
362
+ name = d.pop("name")
363
+ return name
364
+
365
+ try:
366
+ name = get_name()
367
+ except KeyError:
368
+ if strict:
369
+ raise
370
+ name = cast(Union[Unset, str], UNSET)
371
+
372
+ def get_registration_origin() -> Union[Unset, None, RegistrationOrigin]:
373
+ registration_origin = None
374
+ _registration_origin = d.pop("registrationOrigin")
375
+
376
+ if _registration_origin is not None and not isinstance(_registration_origin, Unset):
377
+ registration_origin = RegistrationOrigin.from_dict(_registration_origin)
378
+
379
+ return registration_origin
380
+
381
+ try:
382
+ registration_origin = get_registration_origin()
383
+ except KeyError:
384
+ if strict:
385
+ raise
386
+ registration_origin = cast(Union[Unset, None, RegistrationOrigin], UNSET)
387
+
388
+ def get_registry_id() -> Union[Unset, None, str]:
389
+ registry_id = d.pop("registryId")
390
+ return registry_id
391
+
392
+ try:
393
+ registry_id = get_registry_id()
394
+ except KeyError:
395
+ if strict:
396
+ raise
397
+ registry_id = cast(Union[Unset, None, str], UNSET)
398
+
399
+ def get_schema() -> Union[Unset, None, SchemaSummary]:
400
+ schema = None
401
+ _schema = d.pop("schema")
402
+
403
+ if _schema is not None and not isinstance(_schema, Unset):
404
+ schema = SchemaSummary.from_dict(_schema)
405
+
406
+ return schema
407
+
408
+ try:
409
+ schema = get_schema()
410
+ except KeyError:
411
+ if strict:
412
+ raise
413
+ schema = cast(Union[Unset, None, SchemaSummary], UNSET)
414
+
415
+ def get_url() -> Union[Unset, str]:
416
+ url = d.pop("url")
417
+ return url
418
+
419
+ try:
420
+ url = get_url()
421
+ except KeyError:
422
+ if strict:
423
+ raise
424
+ url = cast(Union[Unset, str], UNSET)
425
+
426
+ def get_web_url() -> Union[Unset, str]:
427
+ web_url = d.pop("webURL")
428
+ return web_url
429
+
430
+ try:
431
+ web_url = get_web_url()
432
+ except KeyError:
433
+ if strict:
434
+ raise
435
+ web_url = cast(Union[Unset, str], UNSET)
436
+
437
+ custom_entity_with_entity_type = cls(
438
+ entity_type=entity_type,
439
+ aliases=aliases,
440
+ api_url=api_url,
441
+ archive_record=archive_record,
442
+ authors=authors,
443
+ created_at=created_at,
444
+ creator=creator,
445
+ custom_fields=custom_fields,
446
+ entity_registry_id=entity_registry_id,
447
+ fields=fields,
448
+ folder_id=folder_id,
449
+ id=id,
450
+ modified_at=modified_at,
451
+ name=name,
452
+ registration_origin=registration_origin,
453
+ registry_id=registry_id,
454
+ schema=schema,
455
+ url=url,
456
+ web_url=web_url,
457
+ )
458
+
459
+ custom_entity_with_entity_type.additional_properties = d
460
+ return custom_entity_with_entity_type
461
+
462
+ @property
463
+ def additional_keys(self) -> List[str]:
464
+ return list(self.additional_properties.keys())
465
+
466
+ def __getitem__(self, key: str) -> Any:
467
+ return self.additional_properties[key]
468
+
469
+ def __setitem__(self, key: str, value: Any) -> None:
470
+ self.additional_properties[key] = value
471
+
472
+ def __delitem__(self, key: str) -> None:
473
+ del self.additional_properties[key]
474
+
475
+ def __contains__(self, key: str) -> bool:
476
+ return key in self.additional_properties
477
+
478
+ def get(self, key, default=None) -> Optional[Any]:
479
+ return self.additional_properties.get(key, default)
480
+
481
+ @property
482
+ def entity_type(self) -> CustomEntityWithEntityTypeEntityType:
483
+ if isinstance(self._entity_type, Unset):
484
+ raise NotPresentError(self, "entity_type")
485
+ return self._entity_type
486
+
487
+ @entity_type.setter
488
+ def entity_type(self, value: CustomEntityWithEntityTypeEntityType) -> None:
489
+ self._entity_type = value
490
+
491
+ @entity_type.deleter
492
+ def entity_type(self) -> None:
493
+ self._entity_type = UNSET
494
+
495
+ @property
496
+ def aliases(self) -> List[str]:
497
+ if isinstance(self._aliases, Unset):
498
+ raise NotPresentError(self, "aliases")
499
+ return self._aliases
500
+
501
+ @aliases.setter
502
+ def aliases(self, value: List[str]) -> None:
503
+ self._aliases = value
504
+
505
+ @aliases.deleter
506
+ def aliases(self) -> None:
507
+ self._aliases = UNSET
508
+
509
+ @property
510
+ def api_url(self) -> str:
511
+ """ The canonical url of the Custom Entity in the API. """
512
+ if isinstance(self._api_url, Unset):
513
+ raise NotPresentError(self, "api_url")
514
+ return self._api_url
515
+
516
+ @api_url.setter
517
+ def api_url(self, value: str) -> None:
518
+ self._api_url = value
519
+
520
+ @api_url.deleter
521
+ def api_url(self) -> None:
522
+ self._api_url = UNSET
523
+
524
+ @property
525
+ def archive_record(self) -> Optional[ArchiveRecord]:
526
+ if isinstance(self._archive_record, Unset):
527
+ raise NotPresentError(self, "archive_record")
528
+ return self._archive_record
529
+
530
+ @archive_record.setter
531
+ def archive_record(self, value: Optional[ArchiveRecord]) -> None:
532
+ self._archive_record = value
533
+
534
+ @archive_record.deleter
535
+ def archive_record(self) -> None:
536
+ self._archive_record = UNSET
537
+
538
+ @property
539
+ def authors(self) -> List[UserSummary]:
540
+ if isinstance(self._authors, Unset):
541
+ raise NotPresentError(self, "authors")
542
+ return self._authors
543
+
544
+ @authors.setter
545
+ def authors(self, value: List[UserSummary]) -> None:
546
+ self._authors = value
547
+
548
+ @authors.deleter
549
+ def authors(self) -> None:
550
+ self._authors = UNSET
551
+
552
+ @property
553
+ def created_at(self) -> datetime.datetime:
554
+ if isinstance(self._created_at, Unset):
555
+ raise NotPresentError(self, "created_at")
556
+ return self._created_at
557
+
558
+ @created_at.setter
559
+ def created_at(self, value: datetime.datetime) -> None:
560
+ self._created_at = value
561
+
562
+ @created_at.deleter
563
+ def created_at(self) -> None:
564
+ self._created_at = UNSET
565
+
566
+ @property
567
+ def creator(self) -> CustomEntityCreator:
568
+ if isinstance(self._creator, Unset):
569
+ raise NotPresentError(self, "creator")
570
+ return self._creator
571
+
572
+ @creator.setter
573
+ def creator(self, value: CustomEntityCreator) -> None:
574
+ self._creator = value
575
+
576
+ @creator.deleter
577
+ def creator(self) -> None:
578
+ self._creator = UNSET
579
+
580
+ @property
581
+ def custom_fields(self) -> CustomFields:
582
+ if isinstance(self._custom_fields, Unset):
583
+ raise NotPresentError(self, "custom_fields")
584
+ return self._custom_fields
585
+
586
+ @custom_fields.setter
587
+ def custom_fields(self, value: CustomFields) -> None:
588
+ self._custom_fields = value
589
+
590
+ @custom_fields.deleter
591
+ def custom_fields(self) -> None:
592
+ self._custom_fields = UNSET
593
+
594
+ @property
595
+ def entity_registry_id(self) -> Optional[str]:
596
+ if isinstance(self._entity_registry_id, Unset):
597
+ raise NotPresentError(self, "entity_registry_id")
598
+ return self._entity_registry_id
599
+
600
+ @entity_registry_id.setter
601
+ def entity_registry_id(self, value: Optional[str]) -> None:
602
+ self._entity_registry_id = value
603
+
604
+ @entity_registry_id.deleter
605
+ def entity_registry_id(self) -> None:
606
+ self._entity_registry_id = UNSET
607
+
608
+ @property
609
+ def fields(self) -> Fields:
610
+ if isinstance(self._fields, Unset):
611
+ raise NotPresentError(self, "fields")
612
+ return self._fields
613
+
614
+ @fields.setter
615
+ def fields(self, value: Fields) -> None:
616
+ self._fields = value
617
+
618
+ @fields.deleter
619
+ def fields(self) -> None:
620
+ self._fields = UNSET
621
+
622
+ @property
623
+ def folder_id(self) -> Optional[str]:
624
+ if isinstance(self._folder_id, Unset):
625
+ raise NotPresentError(self, "folder_id")
626
+ return self._folder_id
627
+
628
+ @folder_id.setter
629
+ def folder_id(self, value: Optional[str]) -> None:
630
+ self._folder_id = value
631
+
632
+ @folder_id.deleter
633
+ def folder_id(self) -> None:
634
+ self._folder_id = UNSET
635
+
636
+ @property
637
+ def id(self) -> str:
638
+ if isinstance(self._id, Unset):
639
+ raise NotPresentError(self, "id")
640
+ return self._id
641
+
642
+ @id.setter
643
+ def id(self, value: str) -> None:
644
+ self._id = value
645
+
646
+ @id.deleter
647
+ def id(self) -> None:
648
+ self._id = UNSET
649
+
650
+ @property
651
+ def modified_at(self) -> datetime.datetime:
652
+ if isinstance(self._modified_at, Unset):
653
+ raise NotPresentError(self, "modified_at")
654
+ return self._modified_at
655
+
656
+ @modified_at.setter
657
+ def modified_at(self, value: datetime.datetime) -> None:
658
+ self._modified_at = value
659
+
660
+ @modified_at.deleter
661
+ def modified_at(self) -> None:
662
+ self._modified_at = UNSET
663
+
664
+ @property
665
+ def name(self) -> str:
666
+ if isinstance(self._name, Unset):
667
+ raise NotPresentError(self, "name")
668
+ return self._name
669
+
670
+ @name.setter
671
+ def name(self, value: str) -> None:
672
+ self._name = value
673
+
674
+ @name.deleter
675
+ def name(self) -> None:
676
+ self._name = UNSET
677
+
678
+ @property
679
+ def registration_origin(self) -> Optional[RegistrationOrigin]:
680
+ if isinstance(self._registration_origin, Unset):
681
+ raise NotPresentError(self, "registration_origin")
682
+ return self._registration_origin
683
+
684
+ @registration_origin.setter
685
+ def registration_origin(self, value: Optional[RegistrationOrigin]) -> None:
686
+ self._registration_origin = value
687
+
688
+ @registration_origin.deleter
689
+ def registration_origin(self) -> None:
690
+ self._registration_origin = UNSET
691
+
692
+ @property
693
+ def registry_id(self) -> Optional[str]:
694
+ if isinstance(self._registry_id, Unset):
695
+ raise NotPresentError(self, "registry_id")
696
+ return self._registry_id
697
+
698
+ @registry_id.setter
699
+ def registry_id(self, value: Optional[str]) -> None:
700
+ self._registry_id = value
701
+
702
+ @registry_id.deleter
703
+ def registry_id(self) -> None:
704
+ self._registry_id = UNSET
705
+
706
+ @property
707
+ def schema(self) -> Optional[SchemaSummary]:
708
+ if isinstance(self._schema, Unset):
709
+ raise NotPresentError(self, "schema")
710
+ return self._schema
711
+
712
+ @schema.setter
713
+ def schema(self, value: Optional[SchemaSummary]) -> None:
714
+ self._schema = value
715
+
716
+ @schema.deleter
717
+ def schema(self) -> None:
718
+ self._schema = UNSET
719
+
720
+ @property
721
+ def url(self) -> str:
722
+ """ The path of the web URL, omitting the tenant domain """
723
+ if isinstance(self._url, Unset):
724
+ raise NotPresentError(self, "url")
725
+ return self._url
726
+
727
+ @url.setter
728
+ def url(self, value: str) -> None:
729
+ self._url = value
730
+
731
+ @url.deleter
732
+ def url(self) -> None:
733
+ self._url = UNSET
734
+
735
+ @property
736
+ def web_url(self) -> str:
737
+ if isinstance(self._web_url, Unset):
738
+ raise NotPresentError(self, "web_url")
739
+ return self._web_url
740
+
741
+ @web_url.setter
742
+ def web_url(self, value: str) -> None:
743
+ self._web_url = value
744
+
745
+ @web_url.deleter
746
+ def web_url(self) -> None:
747
+ self._web_url = UNSET