benchling-api-client 2.0.410__py3-none-any.whl → 2.0.412__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/aa_sequence.py +32 -0
- benchling_api_client/models/aa_sequence_with_entity_type.py +32 -0
- benchling_api_client/models/benchling_app.py +4 -4
- benchling_api_client/models/box_schema.py +41 -0
- benchling_api_client/models/custom_entity.py +32 -0
- benchling_api_client/models/custom_entity_with_entity_type.py +32 -0
- benchling_api_client/models/dna_sequence.py +68 -0
- benchling_api_client/models/dna_sequence_with_entity_type.py +68 -0
- benchling_api_client/models/entry_schema_detailed.py +41 -0
- benchling_api_client/models/location_schema.py +41 -0
- benchling_api_client/models/monomer.py +32 -0
- benchling_api_client/models/plate_schema.py +41 -0
- benchling_api_client/models/request_response_samples_item_entity.py +68 -0
- benchling_api_client/models/rna_sequence.py +68 -0
- benchling_api_client/models/workflow_output.py +40 -0
- benchling_api_client/models/workflow_task.py +87 -0
- benchling_api_client/models/workflow_task_base.py +40 -0
- benchling_api_client/models/workflow_task_group.py +87 -0
- benchling_api_client/models/workflow_task_group_base.py +40 -0
- benchling_api_client/models/workflow_task_schema.py +41 -0
- benchling_api_client/v2/alpha/openapi.yaml +0 -1
- benchling_api_client/v2/beta/models/aa_sequence.py +32 -0
- benchling_api_client/v2/beta/models/custom_entity.py +32 -0
- benchling_api_client/v2/beta/models/dna_sequence.py +68 -0
- benchling_api_client/v2/beta/openapi.yaml +14 -1
- benchling_api_client/v2/stable/models/aa_sequence.py +32 -0
- benchling_api_client/v2/stable/models/aa_sequence_with_entity_type.py +32 -0
- benchling_api_client/v2/stable/models/benchling_app.py +4 -4
- benchling_api_client/v2/stable/models/box_schema.py +41 -0
- benchling_api_client/v2/stable/models/custom_entity.py +32 -0
- benchling_api_client/v2/stable/models/custom_entity_with_entity_type.py +32 -0
- benchling_api_client/v2/stable/models/dna_sequence.py +68 -0
- benchling_api_client/v2/stable/models/dna_sequence_with_entity_type.py +68 -0
- benchling_api_client/v2/stable/models/entry_schema_detailed.py +41 -0
- benchling_api_client/v2/stable/models/location_schema.py +41 -0
- benchling_api_client/v2/stable/models/monomer.py +32 -0
- benchling_api_client/v2/stable/models/plate_schema.py +41 -0
- benchling_api_client/v2/stable/models/request_response_samples_item_entity.py +68 -0
- benchling_api_client/v2/stable/models/rna_sequence.py +68 -0
- benchling_api_client/v2/stable/models/workflow_output.py +40 -0
- benchling_api_client/v2/stable/models/workflow_task.py +87 -0
- benchling_api_client/v2/stable/models/workflow_task_base.py +40 -0
- benchling_api_client/v2/stable/models/workflow_task_group.py +87 -0
- benchling_api_client/v2/stable/models/workflow_task_group_base.py +40 -0
- benchling_api_client/v2/stable/models/workflow_task_schema.py +41 -0
- benchling_api_client/v2/stable/openapi.yaml +78 -3
- {benchling_api_client-2.0.410.dist-info → benchling_api_client-2.0.412.dist-info}/METADATA +1 -1
- {benchling_api_client-2.0.410.dist-info → benchling_api_client-2.0.412.dist-info}/RECORD +50 -50
- {benchling_api_client-2.0.410.dist-info → benchling_api_client-2.0.412.dist-info}/LICENSE +0 -0
- {benchling_api_client-2.0.410.dist-info → benchling_api_client-2.0.412.dist-info}/WHEEL +0 -0
|
@@ -40,6 +40,7 @@ class AaSequence:
|
|
|
40
40
|
_registration_origin: Union[Unset, None, RegistrationOrigin] = UNSET
|
|
41
41
|
_registry_id: Union[Unset, None, str] = UNSET
|
|
42
42
|
_schema: Union[Unset, None, SchemaSummary] = UNSET
|
|
43
|
+
_url: Union[Unset, str] = UNSET
|
|
43
44
|
_web_url: Union[Unset, str] = UNSET
|
|
44
45
|
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
45
46
|
|
|
@@ -64,6 +65,7 @@ class AaSequence:
|
|
|
64
65
|
fields.append("registration_origin={}".format(repr(self._registration_origin)))
|
|
65
66
|
fields.append("registry_id={}".format(repr(self._registry_id)))
|
|
66
67
|
fields.append("schema={}".format(repr(self._schema)))
|
|
68
|
+
fields.append("url={}".format(repr(self._url)))
|
|
67
69
|
fields.append("web_url={}".format(repr(self._web_url)))
|
|
68
70
|
fields.append("additional_properties={}".format(repr(self.additional_properties)))
|
|
69
71
|
return "AaSequence({})".format(", ".join(fields))
|
|
@@ -129,6 +131,7 @@ class AaSequence:
|
|
|
129
131
|
if not isinstance(self._schema, Unset):
|
|
130
132
|
schema = self._schema.to_dict() if self._schema else None
|
|
131
133
|
|
|
134
|
+
url = self._url
|
|
132
135
|
web_url = self._web_url
|
|
133
136
|
|
|
134
137
|
field_dict: Dict[str, Any] = {}
|
|
@@ -172,6 +175,8 @@ class AaSequence:
|
|
|
172
175
|
field_dict["registryId"] = registry_id
|
|
173
176
|
if schema is not UNSET:
|
|
174
177
|
field_dict["schema"] = schema
|
|
178
|
+
if url is not UNSET:
|
|
179
|
+
field_dict["url"] = url
|
|
175
180
|
if web_url is not UNSET:
|
|
176
181
|
field_dict["webURL"] = web_url
|
|
177
182
|
|
|
@@ -441,6 +446,17 @@ class AaSequence:
|
|
|
441
446
|
raise
|
|
442
447
|
schema = cast(Union[Unset, None, SchemaSummary], UNSET)
|
|
443
448
|
|
|
449
|
+
def get_url() -> Union[Unset, str]:
|
|
450
|
+
url = d.pop("url")
|
|
451
|
+
return url
|
|
452
|
+
|
|
453
|
+
try:
|
|
454
|
+
url = get_url()
|
|
455
|
+
except KeyError:
|
|
456
|
+
if strict:
|
|
457
|
+
raise
|
|
458
|
+
url = cast(Union[Unset, str], UNSET)
|
|
459
|
+
|
|
444
460
|
def get_web_url() -> Union[Unset, str]:
|
|
445
461
|
web_url = d.pop("webURL")
|
|
446
462
|
return web_url
|
|
@@ -472,6 +488,7 @@ class AaSequence:
|
|
|
472
488
|
registration_origin=registration_origin,
|
|
473
489
|
registry_id=registry_id,
|
|
474
490
|
schema=schema,
|
|
491
|
+
url=url,
|
|
475
492
|
web_url=web_url,
|
|
476
493
|
)
|
|
477
494
|
|
|
@@ -775,6 +792,21 @@ class AaSequence:
|
|
|
775
792
|
def schema(self) -> None:
|
|
776
793
|
self._schema = UNSET
|
|
777
794
|
|
|
795
|
+
@property
|
|
796
|
+
def url(self) -> str:
|
|
797
|
+
""" The path of the web URL, omitting the tenant domain """
|
|
798
|
+
if isinstance(self._url, Unset):
|
|
799
|
+
raise NotPresentError(self, "url")
|
|
800
|
+
return self._url
|
|
801
|
+
|
|
802
|
+
@url.setter
|
|
803
|
+
def url(self, value: str) -> None:
|
|
804
|
+
self._url = value
|
|
805
|
+
|
|
806
|
+
@url.deleter
|
|
807
|
+
def url(self) -> None:
|
|
808
|
+
self._url = UNSET
|
|
809
|
+
|
|
778
810
|
@property
|
|
779
811
|
def web_url(self) -> str:
|
|
780
812
|
""" URL of the protein. """
|
|
@@ -42,6 +42,7 @@ class AaSequenceWithEntityType:
|
|
|
42
42
|
_registration_origin: Union[Unset, None, RegistrationOrigin] = UNSET
|
|
43
43
|
_registry_id: Union[Unset, None, str] = UNSET
|
|
44
44
|
_schema: Union[Unset, None, SchemaSummary] = UNSET
|
|
45
|
+
_url: Union[Unset, str] = UNSET
|
|
45
46
|
_web_url: Union[Unset, str] = UNSET
|
|
46
47
|
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
47
48
|
|
|
@@ -67,6 +68,7 @@ class AaSequenceWithEntityType:
|
|
|
67
68
|
fields.append("registration_origin={}".format(repr(self._registration_origin)))
|
|
68
69
|
fields.append("registry_id={}".format(repr(self._registry_id)))
|
|
69
70
|
fields.append("schema={}".format(repr(self._schema)))
|
|
71
|
+
fields.append("url={}".format(repr(self._url)))
|
|
70
72
|
fields.append("web_url={}".format(repr(self._web_url)))
|
|
71
73
|
fields.append("additional_properties={}".format(repr(self.additional_properties)))
|
|
72
74
|
return "AaSequenceWithEntityType({})".format(", ".join(fields))
|
|
@@ -136,6 +138,7 @@ class AaSequenceWithEntityType:
|
|
|
136
138
|
if not isinstance(self._schema, Unset):
|
|
137
139
|
schema = self._schema.to_dict() if self._schema else None
|
|
138
140
|
|
|
141
|
+
url = self._url
|
|
139
142
|
web_url = self._web_url
|
|
140
143
|
|
|
141
144
|
field_dict: Dict[str, Any] = {}
|
|
@@ -181,6 +184,8 @@ class AaSequenceWithEntityType:
|
|
|
181
184
|
field_dict["registryId"] = registry_id
|
|
182
185
|
if schema is not UNSET:
|
|
183
186
|
field_dict["schema"] = schema
|
|
187
|
+
if url is not UNSET:
|
|
188
|
+
field_dict["url"] = url
|
|
184
189
|
if web_url is not UNSET:
|
|
185
190
|
field_dict["webURL"] = web_url
|
|
186
191
|
|
|
@@ -468,6 +473,17 @@ class AaSequenceWithEntityType:
|
|
|
468
473
|
raise
|
|
469
474
|
schema = cast(Union[Unset, None, SchemaSummary], UNSET)
|
|
470
475
|
|
|
476
|
+
def get_url() -> Union[Unset, str]:
|
|
477
|
+
url = d.pop("url")
|
|
478
|
+
return url
|
|
479
|
+
|
|
480
|
+
try:
|
|
481
|
+
url = get_url()
|
|
482
|
+
except KeyError:
|
|
483
|
+
if strict:
|
|
484
|
+
raise
|
|
485
|
+
url = cast(Union[Unset, str], UNSET)
|
|
486
|
+
|
|
471
487
|
def get_web_url() -> Union[Unset, str]:
|
|
472
488
|
web_url = d.pop("webURL")
|
|
473
489
|
return web_url
|
|
@@ -500,6 +516,7 @@ class AaSequenceWithEntityType:
|
|
|
500
516
|
registration_origin=registration_origin,
|
|
501
517
|
registry_id=registry_id,
|
|
502
518
|
schema=schema,
|
|
519
|
+
url=url,
|
|
503
520
|
web_url=web_url,
|
|
504
521
|
)
|
|
505
522
|
|
|
@@ -817,6 +834,21 @@ class AaSequenceWithEntityType:
|
|
|
817
834
|
def schema(self) -> None:
|
|
818
835
|
self._schema = UNSET
|
|
819
836
|
|
|
837
|
+
@property
|
|
838
|
+
def url(self) -> str:
|
|
839
|
+
""" The path of the web URL, omitting the tenant domain """
|
|
840
|
+
if isinstance(self._url, Unset):
|
|
841
|
+
raise NotPresentError(self, "url")
|
|
842
|
+
return self._url
|
|
843
|
+
|
|
844
|
+
@url.setter
|
|
845
|
+
def url(self, value: str) -> None:
|
|
846
|
+
self._url = value
|
|
847
|
+
|
|
848
|
+
@url.deleter
|
|
849
|
+
def url(self) -> None:
|
|
850
|
+
self._url = UNSET
|
|
851
|
+
|
|
820
852
|
@property
|
|
821
853
|
def web_url(self) -> str:
|
|
822
854
|
""" URL of the protein. """
|
|
@@ -72,7 +72,7 @@ class BenchlingApp:
|
|
|
72
72
|
field_dict: Dict[str, Any] = {}
|
|
73
73
|
# Allow the model to serialize even if it was created outside of the constructor, circumventing validation
|
|
74
74
|
if api_url is not UNSET:
|
|
75
|
-
field_dict["
|
|
75
|
+
field_dict["apiURL"] = api_url
|
|
76
76
|
if app_definition is not UNSET:
|
|
77
77
|
field_dict["appDefinition"] = app_definition
|
|
78
78
|
if archive_record is not UNSET:
|
|
@@ -86,7 +86,7 @@ class BenchlingApp:
|
|
|
86
86
|
if modified_at is not UNSET:
|
|
87
87
|
field_dict["modifiedAt"] = modified_at
|
|
88
88
|
if web_url is not UNSET:
|
|
89
|
-
field_dict["
|
|
89
|
+
field_dict["webURL"] = web_url
|
|
90
90
|
if description is not UNSET:
|
|
91
91
|
field_dict["description"] = description
|
|
92
92
|
if name is not UNSET:
|
|
@@ -99,7 +99,7 @@ class BenchlingApp:
|
|
|
99
99
|
d = src_dict.copy()
|
|
100
100
|
|
|
101
101
|
def get_api_url() -> Union[Unset, str]:
|
|
102
|
-
api_url = d.pop("
|
|
102
|
+
api_url = d.pop("apiURL")
|
|
103
103
|
return api_url
|
|
104
104
|
|
|
105
105
|
try:
|
|
@@ -199,7 +199,7 @@ class BenchlingApp:
|
|
|
199
199
|
modified_at = cast(Union[Unset, datetime.datetime], UNSET)
|
|
200
200
|
|
|
201
201
|
def get_web_url() -> Union[Unset, str]:
|
|
202
|
-
web_url = d.pop("
|
|
202
|
+
web_url = d.pop("webURL")
|
|
203
203
|
return web_url
|
|
204
204
|
|
|
205
205
|
try:
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import datetime
|
|
1
2
|
from typing import Any, cast, Dict, List, Optional, Type, TypeVar, Union
|
|
2
3
|
|
|
3
4
|
import attr
|
|
5
|
+
from dateutil.parser import isoparse
|
|
4
6
|
|
|
5
7
|
from ..extensions import NotPresentError, UnknownType
|
|
6
8
|
from ..models.archive_record import ArchiveRecord
|
|
@@ -22,6 +24,7 @@ class BoxSchema:
|
|
|
22
24
|
|
|
23
25
|
_container_schema: Union[Unset, None, BoxSchemaContainerSchema] = UNSET
|
|
24
26
|
_height: Union[Unset, float] = UNSET
|
|
27
|
+
_modified_at: Union[Unset, datetime.datetime] = UNSET
|
|
25
28
|
_type: Union[Unset, BoxSchemaType] = UNSET
|
|
26
29
|
_width: Union[Unset, float] = UNSET
|
|
27
30
|
_prefix: Union[Unset, str] = UNSET
|
|
@@ -48,6 +51,7 @@ class BoxSchema:
|
|
|
48
51
|
fields = []
|
|
49
52
|
fields.append("container_schema={}".format(repr(self._container_schema)))
|
|
50
53
|
fields.append("height={}".format(repr(self._height)))
|
|
54
|
+
fields.append("modified_at={}".format(repr(self._modified_at)))
|
|
51
55
|
fields.append("type={}".format(repr(self._type)))
|
|
52
56
|
fields.append("width={}".format(repr(self._width)))
|
|
53
57
|
fields.append("prefix={}".format(repr(self._prefix)))
|
|
@@ -65,6 +69,10 @@ class BoxSchema:
|
|
|
65
69
|
container_schema = self._container_schema.to_dict() if self._container_schema else None
|
|
66
70
|
|
|
67
71
|
height = self._height
|
|
72
|
+
modified_at: Union[Unset, str] = UNSET
|
|
73
|
+
if not isinstance(self._modified_at, Unset):
|
|
74
|
+
modified_at = self._modified_at.isoformat()
|
|
75
|
+
|
|
68
76
|
type: Union[Unset, int] = UNSET
|
|
69
77
|
if not isinstance(self._type, Unset):
|
|
70
78
|
type = self._type.value
|
|
@@ -109,6 +117,8 @@ class BoxSchema:
|
|
|
109
117
|
field_dict["containerSchema"] = container_schema
|
|
110
118
|
if height is not UNSET:
|
|
111
119
|
field_dict["height"] = height
|
|
120
|
+
if modified_at is not UNSET:
|
|
121
|
+
field_dict["modifiedAt"] = modified_at
|
|
112
122
|
if type is not UNSET:
|
|
113
123
|
field_dict["type"] = type
|
|
114
124
|
if width is not UNSET:
|
|
@@ -159,6 +169,21 @@ class BoxSchema:
|
|
|
159
169
|
raise
|
|
160
170
|
height = cast(Union[Unset, float], UNSET)
|
|
161
171
|
|
|
172
|
+
def get_modified_at() -> Union[Unset, datetime.datetime]:
|
|
173
|
+
modified_at: Union[Unset, datetime.datetime] = UNSET
|
|
174
|
+
_modified_at = d.pop("modifiedAt")
|
|
175
|
+
if _modified_at is not None and not isinstance(_modified_at, Unset):
|
|
176
|
+
modified_at = isoparse(cast(str, _modified_at))
|
|
177
|
+
|
|
178
|
+
return modified_at
|
|
179
|
+
|
|
180
|
+
try:
|
|
181
|
+
modified_at = get_modified_at()
|
|
182
|
+
except KeyError:
|
|
183
|
+
if strict:
|
|
184
|
+
raise
|
|
185
|
+
modified_at = cast(Union[Unset, datetime.datetime], UNSET)
|
|
186
|
+
|
|
162
187
|
def get_type() -> Union[Unset, BoxSchemaType]:
|
|
163
188
|
type = UNSET
|
|
164
189
|
_type = d.pop("type")
|
|
@@ -356,6 +381,7 @@ class BoxSchema:
|
|
|
356
381
|
box_schema = cls(
|
|
357
382
|
container_schema=container_schema,
|
|
358
383
|
height=height,
|
|
384
|
+
modified_at=modified_at,
|
|
359
385
|
type=type,
|
|
360
386
|
width=width,
|
|
361
387
|
prefix=prefix,
|
|
@@ -416,6 +442,21 @@ class BoxSchema:
|
|
|
416
442
|
def height(self) -> None:
|
|
417
443
|
self._height = UNSET
|
|
418
444
|
|
|
445
|
+
@property
|
|
446
|
+
def modified_at(self) -> datetime.datetime:
|
|
447
|
+
""" DateTime the Box Schema was last modified """
|
|
448
|
+
if isinstance(self._modified_at, Unset):
|
|
449
|
+
raise NotPresentError(self, "modified_at")
|
|
450
|
+
return self._modified_at
|
|
451
|
+
|
|
452
|
+
@modified_at.setter
|
|
453
|
+
def modified_at(self, value: datetime.datetime) -> None:
|
|
454
|
+
self._modified_at = value
|
|
455
|
+
|
|
456
|
+
@modified_at.deleter
|
|
457
|
+
def modified_at(self) -> None:
|
|
458
|
+
self._modified_at = UNSET
|
|
459
|
+
|
|
419
460
|
@property
|
|
420
461
|
def type(self) -> BoxSchemaType:
|
|
421
462
|
if isinstance(self._type, Unset):
|
|
@@ -37,6 +37,7 @@ class CustomEntity:
|
|
|
37
37
|
_registration_origin: Union[Unset, None, RegistrationOrigin] = UNSET
|
|
38
38
|
_registry_id: Union[Unset, None, str] = UNSET
|
|
39
39
|
_schema: Union[Unset, None, SchemaSummary] = UNSET
|
|
40
|
+
_url: Union[Unset, str] = UNSET
|
|
40
41
|
_web_url: Union[Unset, str] = UNSET
|
|
41
42
|
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
42
43
|
|
|
@@ -58,6 +59,7 @@ class CustomEntity:
|
|
|
58
59
|
fields.append("registration_origin={}".format(repr(self._registration_origin)))
|
|
59
60
|
fields.append("registry_id={}".format(repr(self._registry_id)))
|
|
60
61
|
fields.append("schema={}".format(repr(self._schema)))
|
|
62
|
+
fields.append("url={}".format(repr(self._url)))
|
|
61
63
|
fields.append("web_url={}".format(repr(self._web_url)))
|
|
62
64
|
fields.append("additional_properties={}".format(repr(self.additional_properties)))
|
|
63
65
|
return "CustomEntity({})".format(", ".join(fields))
|
|
@@ -113,6 +115,7 @@ class CustomEntity:
|
|
|
113
115
|
if not isinstance(self._schema, Unset):
|
|
114
116
|
schema = self._schema.to_dict() if self._schema else None
|
|
115
117
|
|
|
118
|
+
url = self._url
|
|
116
119
|
web_url = self._web_url
|
|
117
120
|
|
|
118
121
|
field_dict: Dict[str, Any] = {}
|
|
@@ -150,6 +153,8 @@ class CustomEntity:
|
|
|
150
153
|
field_dict["registryId"] = registry_id
|
|
151
154
|
if schema is not UNSET:
|
|
152
155
|
field_dict["schema"] = schema
|
|
156
|
+
if url is not UNSET:
|
|
157
|
+
field_dict["url"] = url
|
|
153
158
|
if web_url is not UNSET:
|
|
154
159
|
field_dict["webURL"] = web_url
|
|
155
160
|
|
|
@@ -380,6 +385,17 @@ class CustomEntity:
|
|
|
380
385
|
raise
|
|
381
386
|
schema = cast(Union[Unset, None, SchemaSummary], UNSET)
|
|
382
387
|
|
|
388
|
+
def get_url() -> Union[Unset, str]:
|
|
389
|
+
url = d.pop("url")
|
|
390
|
+
return url
|
|
391
|
+
|
|
392
|
+
try:
|
|
393
|
+
url = get_url()
|
|
394
|
+
except KeyError:
|
|
395
|
+
if strict:
|
|
396
|
+
raise
|
|
397
|
+
url = cast(Union[Unset, str], UNSET)
|
|
398
|
+
|
|
383
399
|
def get_web_url() -> Union[Unset, str]:
|
|
384
400
|
web_url = d.pop("webURL")
|
|
385
401
|
return web_url
|
|
@@ -408,6 +424,7 @@ class CustomEntity:
|
|
|
408
424
|
registration_origin=registration_origin,
|
|
409
425
|
registry_id=registry_id,
|
|
410
426
|
schema=schema,
|
|
427
|
+
url=url,
|
|
411
428
|
web_url=web_url,
|
|
412
429
|
)
|
|
413
430
|
|
|
@@ -658,6 +675,21 @@ class CustomEntity:
|
|
|
658
675
|
def schema(self) -> None:
|
|
659
676
|
self._schema = UNSET
|
|
660
677
|
|
|
678
|
+
@property
|
|
679
|
+
def url(self) -> str:
|
|
680
|
+
""" The path of the web URL, omitting the tenant domain """
|
|
681
|
+
if isinstance(self._url, Unset):
|
|
682
|
+
raise NotPresentError(self, "url")
|
|
683
|
+
return self._url
|
|
684
|
+
|
|
685
|
+
@url.setter
|
|
686
|
+
def url(self, value: str) -> None:
|
|
687
|
+
self._url = value
|
|
688
|
+
|
|
689
|
+
@url.deleter
|
|
690
|
+
def url(self) -> None:
|
|
691
|
+
self._url = UNSET
|
|
692
|
+
|
|
661
693
|
@property
|
|
662
694
|
def web_url(self) -> str:
|
|
663
695
|
if isinstance(self._web_url, Unset):
|
|
@@ -39,6 +39,7 @@ class CustomEntityWithEntityType:
|
|
|
39
39
|
_registration_origin: Union[Unset, None, RegistrationOrigin] = UNSET
|
|
40
40
|
_registry_id: Union[Unset, None, str] = UNSET
|
|
41
41
|
_schema: Union[Unset, None, SchemaSummary] = UNSET
|
|
42
|
+
_url: Union[Unset, str] = UNSET
|
|
42
43
|
_web_url: Union[Unset, str] = UNSET
|
|
43
44
|
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
44
45
|
|
|
@@ -61,6 +62,7 @@ class CustomEntityWithEntityType:
|
|
|
61
62
|
fields.append("registration_origin={}".format(repr(self._registration_origin)))
|
|
62
63
|
fields.append("registry_id={}".format(repr(self._registry_id)))
|
|
63
64
|
fields.append("schema={}".format(repr(self._schema)))
|
|
65
|
+
fields.append("url={}".format(repr(self._url)))
|
|
64
66
|
fields.append("web_url={}".format(repr(self._web_url)))
|
|
65
67
|
fields.append("additional_properties={}".format(repr(self.additional_properties)))
|
|
66
68
|
return "CustomEntityWithEntityType({})".format(", ".join(fields))
|
|
@@ -120,6 +122,7 @@ class CustomEntityWithEntityType:
|
|
|
120
122
|
if not isinstance(self._schema, Unset):
|
|
121
123
|
schema = self._schema.to_dict() if self._schema else None
|
|
122
124
|
|
|
125
|
+
url = self._url
|
|
123
126
|
web_url = self._web_url
|
|
124
127
|
|
|
125
128
|
field_dict: Dict[str, Any] = {}
|
|
@@ -159,6 +162,8 @@ class CustomEntityWithEntityType:
|
|
|
159
162
|
field_dict["registryId"] = registry_id
|
|
160
163
|
if schema is not UNSET:
|
|
161
164
|
field_dict["schema"] = schema
|
|
165
|
+
if url is not UNSET:
|
|
166
|
+
field_dict["url"] = url
|
|
162
167
|
if web_url is not UNSET:
|
|
163
168
|
field_dict["webURL"] = web_url
|
|
164
169
|
|
|
@@ -407,6 +412,17 @@ class CustomEntityWithEntityType:
|
|
|
407
412
|
raise
|
|
408
413
|
schema = cast(Union[Unset, None, SchemaSummary], UNSET)
|
|
409
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
|
+
|
|
410
426
|
def get_web_url() -> Union[Unset, str]:
|
|
411
427
|
web_url = d.pop("webURL")
|
|
412
428
|
return web_url
|
|
@@ -436,6 +452,7 @@ class CustomEntityWithEntityType:
|
|
|
436
452
|
registration_origin=registration_origin,
|
|
437
453
|
registry_id=registry_id,
|
|
438
454
|
schema=schema,
|
|
455
|
+
url=url,
|
|
439
456
|
web_url=web_url,
|
|
440
457
|
)
|
|
441
458
|
|
|
@@ -700,6 +717,21 @@ class CustomEntityWithEntityType:
|
|
|
700
717
|
def schema(self) -> None:
|
|
701
718
|
self._schema = UNSET
|
|
702
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
|
+
|
|
703
735
|
@property
|
|
704
736
|
def web_url(self) -> str:
|
|
705
737
|
if isinstance(self._web_url, Unset):
|
|
@@ -34,6 +34,7 @@ class DnaSequence:
|
|
|
34
34
|
_created_at: Union[Unset, datetime.datetime] = UNSET
|
|
35
35
|
_creator: Union[Unset, UserSummary] = UNSET
|
|
36
36
|
_custom_fields: Union[Unset, CustomFields] = UNSET
|
|
37
|
+
_dna_alignment_ids: Union[Unset, List[str]] = UNSET
|
|
37
38
|
_entity_registry_id: Union[Unset, None, str] = UNSET
|
|
38
39
|
_fields: Union[Unset, Fields] = UNSET
|
|
39
40
|
_folder_id: Union[Unset, None, str] = UNSET
|
|
@@ -49,6 +50,7 @@ class DnaSequence:
|
|
|
49
50
|
_schema: Union[Unset, None, SchemaSummary] = UNSET
|
|
50
51
|
_transcriptions: Union[Unset, List[DnaSequenceTranscription]] = UNSET
|
|
51
52
|
_translations: Union[Unset, List[Translation]] = UNSET
|
|
53
|
+
_url: Union[Unset, str] = UNSET
|
|
52
54
|
_web_url: Union[Unset, str] = UNSET
|
|
53
55
|
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
|
54
56
|
|
|
@@ -63,6 +65,7 @@ class DnaSequence:
|
|
|
63
65
|
fields.append("created_at={}".format(repr(self._created_at)))
|
|
64
66
|
fields.append("creator={}".format(repr(self._creator)))
|
|
65
67
|
fields.append("custom_fields={}".format(repr(self._custom_fields)))
|
|
68
|
+
fields.append("dna_alignment_ids={}".format(repr(self._dna_alignment_ids)))
|
|
66
69
|
fields.append("entity_registry_id={}".format(repr(self._entity_registry_id)))
|
|
67
70
|
fields.append("fields={}".format(repr(self._fields)))
|
|
68
71
|
fields.append("folder_id={}".format(repr(self._folder_id)))
|
|
@@ -78,6 +81,7 @@ class DnaSequence:
|
|
|
78
81
|
fields.append("schema={}".format(repr(self._schema)))
|
|
79
82
|
fields.append("transcriptions={}".format(repr(self._transcriptions)))
|
|
80
83
|
fields.append("translations={}".format(repr(self._translations)))
|
|
84
|
+
fields.append("url={}".format(repr(self._url)))
|
|
81
85
|
fields.append("web_url={}".format(repr(self._web_url)))
|
|
82
86
|
fields.append("additional_properties={}".format(repr(self.additional_properties)))
|
|
83
87
|
return "DnaSequence({})".format(", ".join(fields))
|
|
@@ -121,6 +125,10 @@ class DnaSequence:
|
|
|
121
125
|
if not isinstance(self._custom_fields, Unset):
|
|
122
126
|
custom_fields = self._custom_fields.to_dict()
|
|
123
127
|
|
|
128
|
+
dna_alignment_ids: Union[Unset, List[Any]] = UNSET
|
|
129
|
+
if not isinstance(self._dna_alignment_ids, Unset):
|
|
130
|
+
dna_alignment_ids = self._dna_alignment_ids
|
|
131
|
+
|
|
124
132
|
entity_registry_id = self._entity_registry_id
|
|
125
133
|
fields: Union[Unset, Dict[str, Any]] = UNSET
|
|
126
134
|
if not isinstance(self._fields, Unset):
|
|
@@ -176,6 +184,7 @@ class DnaSequence:
|
|
|
176
184
|
|
|
177
185
|
translations.append(translations_item)
|
|
178
186
|
|
|
187
|
+
url = self._url
|
|
179
188
|
web_url = self._web_url
|
|
180
189
|
|
|
181
190
|
field_dict: Dict[str, Any] = {}
|
|
@@ -199,6 +208,8 @@ class DnaSequence:
|
|
|
199
208
|
field_dict["creator"] = creator
|
|
200
209
|
if custom_fields is not UNSET:
|
|
201
210
|
field_dict["customFields"] = custom_fields
|
|
211
|
+
if dna_alignment_ids is not UNSET:
|
|
212
|
+
field_dict["dnaAlignmentIds"] = dna_alignment_ids
|
|
202
213
|
if entity_registry_id is not UNSET:
|
|
203
214
|
field_dict["entityRegistryId"] = entity_registry_id
|
|
204
215
|
if fields is not UNSET:
|
|
@@ -229,6 +240,8 @@ class DnaSequence:
|
|
|
229
240
|
field_dict["transcriptions"] = transcriptions
|
|
230
241
|
if translations is not UNSET:
|
|
231
242
|
field_dict["translations"] = translations
|
|
243
|
+
if url is not UNSET:
|
|
244
|
+
field_dict["url"] = url
|
|
232
245
|
if web_url is not UNSET:
|
|
233
246
|
field_dict["webURL"] = web_url
|
|
234
247
|
|
|
@@ -369,6 +382,18 @@ class DnaSequence:
|
|
|
369
382
|
raise
|
|
370
383
|
custom_fields = cast(Union[Unset, CustomFields], UNSET)
|
|
371
384
|
|
|
385
|
+
def get_dna_alignment_ids() -> Union[Unset, List[str]]:
|
|
386
|
+
dna_alignment_ids = cast(List[str], d.pop("dnaAlignmentIds"))
|
|
387
|
+
|
|
388
|
+
return dna_alignment_ids
|
|
389
|
+
|
|
390
|
+
try:
|
|
391
|
+
dna_alignment_ids = get_dna_alignment_ids()
|
|
392
|
+
except KeyError:
|
|
393
|
+
if strict:
|
|
394
|
+
raise
|
|
395
|
+
dna_alignment_ids = cast(Union[Unset, List[str]], UNSET)
|
|
396
|
+
|
|
372
397
|
def get_entity_registry_id() -> Union[Unset, None, str]:
|
|
373
398
|
entity_registry_id = d.pop("entityRegistryId")
|
|
374
399
|
return entity_registry_id
|
|
@@ -579,6 +604,17 @@ class DnaSequence:
|
|
|
579
604
|
raise
|
|
580
605
|
translations = cast(Union[Unset, List[Translation]], UNSET)
|
|
581
606
|
|
|
607
|
+
def get_url() -> Union[Unset, str]:
|
|
608
|
+
url = d.pop("url")
|
|
609
|
+
return url
|
|
610
|
+
|
|
611
|
+
try:
|
|
612
|
+
url = get_url()
|
|
613
|
+
except KeyError:
|
|
614
|
+
if strict:
|
|
615
|
+
raise
|
|
616
|
+
url = cast(Union[Unset, str], UNSET)
|
|
617
|
+
|
|
582
618
|
def get_web_url() -> Union[Unset, str]:
|
|
583
619
|
web_url = d.pop("webURL")
|
|
584
620
|
return web_url
|
|
@@ -600,6 +636,7 @@ class DnaSequence:
|
|
|
600
636
|
created_at=created_at,
|
|
601
637
|
creator=creator,
|
|
602
638
|
custom_fields=custom_fields,
|
|
639
|
+
dna_alignment_ids=dna_alignment_ids,
|
|
603
640
|
entity_registry_id=entity_registry_id,
|
|
604
641
|
fields=fields,
|
|
605
642
|
folder_id=folder_id,
|
|
@@ -615,6 +652,7 @@ class DnaSequence:
|
|
|
615
652
|
schema=schema,
|
|
616
653
|
transcriptions=transcriptions,
|
|
617
654
|
translations=translations,
|
|
655
|
+
url=url,
|
|
618
656
|
web_url=web_url,
|
|
619
657
|
)
|
|
620
658
|
|
|
@@ -767,6 +805,21 @@ class DnaSequence:
|
|
|
767
805
|
def custom_fields(self) -> None:
|
|
768
806
|
self._custom_fields = UNSET
|
|
769
807
|
|
|
808
|
+
@property
|
|
809
|
+
def dna_alignment_ids(self) -> List[str]:
|
|
810
|
+
""" API IDs of Nucleotide Alignments involving the RNA sequence """
|
|
811
|
+
if isinstance(self._dna_alignment_ids, Unset):
|
|
812
|
+
raise NotPresentError(self, "dna_alignment_ids")
|
|
813
|
+
return self._dna_alignment_ids
|
|
814
|
+
|
|
815
|
+
@dna_alignment_ids.setter
|
|
816
|
+
def dna_alignment_ids(self, value: List[str]) -> None:
|
|
817
|
+
self._dna_alignment_ids = value
|
|
818
|
+
|
|
819
|
+
@dna_alignment_ids.deleter
|
|
820
|
+
def dna_alignment_ids(self) -> None:
|
|
821
|
+
self._dna_alignment_ids = UNSET
|
|
822
|
+
|
|
770
823
|
@property
|
|
771
824
|
def entity_registry_id(self) -> Optional[str]:
|
|
772
825
|
if isinstance(self._entity_registry_id, Unset):
|
|
@@ -977,6 +1030,21 @@ class DnaSequence:
|
|
|
977
1030
|
def translations(self) -> None:
|
|
978
1031
|
self._translations = UNSET
|
|
979
1032
|
|
|
1033
|
+
@property
|
|
1034
|
+
def url(self) -> str:
|
|
1035
|
+
""" The path of the web URL, omitting the tenant domain """
|
|
1036
|
+
if isinstance(self._url, Unset):
|
|
1037
|
+
raise NotPresentError(self, "url")
|
|
1038
|
+
return self._url
|
|
1039
|
+
|
|
1040
|
+
@url.setter
|
|
1041
|
+
def url(self, value: str) -> None:
|
|
1042
|
+
self._url = value
|
|
1043
|
+
|
|
1044
|
+
@url.deleter
|
|
1045
|
+
def url(self) -> None:
|
|
1046
|
+
self._url = UNSET
|
|
1047
|
+
|
|
980
1048
|
@property
|
|
981
1049
|
def web_url(self) -> str:
|
|
982
1050
|
if isinstance(self._web_url, Unset):
|