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.
Files changed (47) 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/molecule_with_entity_type.py +787 -0
  5. benchling_api_client/models/molecule_with_entity_type_entity_type.py +22 -0
  6. benchling_api_client/models/registered_entities_list.py +89 -32
  7. benchling_api_client/models/request_response_samples_item_entity.py +216 -74
  8. benchling_api_client/models/rna_sequence_with_entity_type.py +1151 -0
  9. benchling_api_client/models/rna_sequence_with_entity_type_entity_type.py +22 -0
  10. benchling_api_client/v2/beta/models/aa_sequence_with_entity_type.py +865 -0
  11. benchling_api_client/v2/beta/models/aa_sequence_with_entity_type_entity_type.py +22 -0
  12. benchling_api_client/v2/beta/models/container_content.py +183 -26
  13. benchling_api_client/v2/beta/models/custom_entity_creator.py +2 -100
  14. benchling_api_client/v2/beta/models/custom_entity_with_entity_type.py +747 -0
  15. benchling_api_client/v2/beta/models/custom_entity_with_entity_type_entity_type.py +22 -0
  16. benchling_api_client/v2/beta/models/dna_oligo_with_entity_type.py +972 -0
  17. benchling_api_client/v2/beta/models/dna_oligo_with_entity_type_entity_type.py +22 -0
  18. benchling_api_client/v2/beta/models/dna_sequence_with_entity_type.py +1102 -0
  19. benchling_api_client/v2/beta/models/dna_sequence_with_entity_type_entity_type.py +22 -0
  20. benchling_api_client/v2/beta/models/entity.py +19 -7
  21. benchling_api_client/v2/beta/models/entity_or_inaccessible_resource.py +19 -7
  22. benchling_api_client/v2/beta/models/mixture_creator.py +2 -100
  23. benchling_api_client/v2/beta/models/mixture_with_entity_type.py +867 -0
  24. benchling_api_client/v2/beta/models/mixture_with_entity_type_entity_type.py +22 -0
  25. benchling_api_client/v2/beta/models/molecule_with_entity_type.py +787 -0
  26. benchling_api_client/v2/beta/models/molecule_with_entity_type_entity_type.py +22 -0
  27. benchling_api_client/v2/beta/models/rna_oligo_with_entity_type.py +972 -0
  28. benchling_api_client/v2/beta/models/rna_oligo_with_entity_type_entity_type.py +22 -0
  29. benchling_api_client/v2/beta/models/rna_sequence.py +1109 -0
  30. benchling_api_client/v2/beta/models/rna_sequence_part.py +183 -0
  31. benchling_api_client/v2/beta/models/rna_sequence_with_entity_type.py +1151 -0
  32. benchling_api_client/v2/beta/models/rna_sequence_with_entity_type_entity_type.py +22 -0
  33. benchling_api_client/v2/beta/openapi.yaml +216 -6
  34. benchling_api_client/v2/stable/models/container_content.py +183 -26
  35. benchling_api_client/v2/stable/models/entity.py +19 -7
  36. benchling_api_client/v2/stable/models/entity_or_inaccessible_resource.py +19 -7
  37. benchling_api_client/v2/stable/models/molecule_with_entity_type.py +787 -0
  38. benchling_api_client/v2/stable/models/molecule_with_entity_type_entity_type.py +22 -0
  39. benchling_api_client/v2/stable/models/registered_entities_list.py +89 -32
  40. benchling_api_client/v2/stable/models/request_response_samples_item_entity.py +216 -74
  41. benchling_api_client/v2/stable/models/rna_sequence_with_entity_type.py +1151 -0
  42. benchling_api_client/v2/stable/models/rna_sequence_with_entity_type_entity_type.py +22 -0
  43. benchling_api_client/v2/stable/openapi.yaml +40 -22
  44. {benchling_api_client-2.0.415.dist-info → benchling_api_client-2.0.416.dist-info}/METADATA +1 -1
  45. {benchling_api_client-2.0.415.dist-info → benchling_api_client-2.0.416.dist-info}/RECORD +47 -21
  46. {benchling_api_client-2.0.415.dist-info → benchling_api_client-2.0.416.dist-info}/LICENSE +0 -0
  47. {benchling_api_client-2.0.415.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 DnaOligoWithEntityTypeEntityType(Enums.KnownString):
9
+ DNA_OLIGO = "dna_oligo"
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) -> "DnaOligoWithEntityTypeEntityType":
17
+ if not isinstance(val, str):
18
+ raise ValueError(
19
+ f"Value of DnaOligoWithEntityTypeEntityType must be a string (encountered: {val})"
20
+ )
21
+ newcls = Enum("DnaOligoWithEntityTypeEntityType", {"_UNKNOWN": val}, type=Enums.UnknownString) # type: ignore
22
+ return cast(DnaOligoWithEntityTypeEntityType, getattr(newcls, "_UNKNOWN"))