benchling-api-client 2.0.418__py3-none-any.whl → 2.0.420__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 (52) hide show
  1. benchling_api_client/models/box_creation_table_note_part.py +31 -0
  2. benchling_api_client/models/inventory_container_table_note_part.py +31 -0
  3. benchling_api_client/models/inventory_plate_table_note_part.py +31 -0
  4. benchling_api_client/models/lookup_table_note_part.py +32 -0
  5. benchling_api_client/models/mixture_prep_table_note_part.py +31 -0
  6. benchling_api_client/models/plate_creation_table_note_part.py +31 -0
  7. benchling_api_client/models/registration_table_note_part.py +31 -0
  8. benchling_api_client/models/results_table_note_part.py +31 -0
  9. benchling_api_client/models/structured_table_api_identifiers.py +32 -0
  10. benchling_api_client/v2/alpha/models/box_creation_table_note_part.py +31 -0
  11. benchling_api_client/v2/alpha/models/inventory_container_table_note_part.py +31 -0
  12. benchling_api_client/v2/alpha/models/inventory_plate_table_note_part.py +31 -0
  13. benchling_api_client/v2/alpha/models/lookup_table_note_part.py +32 -0
  14. benchling_api_client/v2/alpha/models/mixture_prep_table_note_part.py +31 -0
  15. benchling_api_client/v2/alpha/models/plate_creation_table_note_part.py +31 -0
  16. benchling_api_client/v2/alpha/models/registration_table_note_part.py +31 -0
  17. benchling_api_client/v2/alpha/models/results_table_note_part.py +31 -0
  18. benchling_api_client/v2/alpha/models/structured_table_api_identifiers.py +32 -0
  19. benchling_api_client/v2/alpha/openapi.yaml +2 -0
  20. benchling_api_client/v2/beta/models/box_creation_table_note_part.py +31 -0
  21. benchling_api_client/v2/beta/models/entry_beta_review_record.py +49 -0
  22. benchling_api_client/v2/beta/models/entry_review_process.py +252 -0
  23. benchling_api_client/v2/beta/models/entry_review_process_completion_status.py +27 -0
  24. benchling_api_client/v2/beta/models/entry_review_process_stages_item.py +211 -0
  25. benchling_api_client/v2/beta/models/entry_review_process_stages_item_action_label.py +27 -0
  26. benchling_api_client/v2/beta/models/entry_review_process_stages_item_reviewers_item.py +195 -0
  27. benchling_api_client/v2/beta/models/entry_review_process_stages_item_reviewers_item_status.py +25 -0
  28. benchling_api_client/v2/beta/models/entry_review_process_type.py +22 -0
  29. benchling_api_client/v2/beta/models/inventory_container_table_note_part.py +31 -0
  30. benchling_api_client/v2/beta/models/inventory_plate_table_note_part.py +31 -0
  31. benchling_api_client/v2/beta/models/lookup_table_note_part.py +32 -0
  32. benchling_api_client/v2/beta/models/mixture_prep_table_note_part.py +31 -0
  33. benchling_api_client/v2/beta/models/plate_creation_table_note_part.py +31 -0
  34. benchling_api_client/v2/beta/models/registration_table_note_part.py +31 -0
  35. benchling_api_client/v2/beta/models/results_table_note_part.py +31 -0
  36. benchling_api_client/v2/beta/models/structured_table_api_identifiers.py +32 -0
  37. benchling_api_client/v2/beta/models/worksheet_review_changes_review_record.py +49 -0
  38. benchling_api_client/v2/beta/openapi.yaml +78 -0
  39. benchling_api_client/v2/stable/models/box_creation_table_note_part.py +31 -0
  40. benchling_api_client/v2/stable/models/inventory_container_table_note_part.py +31 -0
  41. benchling_api_client/v2/stable/models/inventory_plate_table_note_part.py +31 -0
  42. benchling_api_client/v2/stable/models/lookup_table_note_part.py +32 -0
  43. benchling_api_client/v2/stable/models/mixture_prep_table_note_part.py +31 -0
  44. benchling_api_client/v2/stable/models/plate_creation_table_note_part.py +31 -0
  45. benchling_api_client/v2/stable/models/registration_table_note_part.py +31 -0
  46. benchling_api_client/v2/stable/models/results_table_note_part.py +31 -0
  47. benchling_api_client/v2/stable/models/structured_table_api_identifiers.py +32 -0
  48. benchling_api_client/v2/stable/openapi.yaml +2 -0
  49. {benchling_api_client-2.0.418.dist-info → benchling_api_client-2.0.420.dist-info}/METADATA +1 -1
  50. {benchling_api_client-2.0.418.dist-info → benchling_api_client-2.0.420.dist-info}/RECORD +52 -45
  51. {benchling_api_client-2.0.418.dist-info → benchling_api_client-2.0.420.dist-info}/LICENSE +0 -0
  52. {benchling_api_client-2.0.418.dist-info → benchling_api_client-2.0.420.dist-info}/WHEEL +0 -0
@@ -0,0 +1,27 @@
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 EntryReviewProcessStagesItemActionLabel(Enums.KnownString):
9
+ APPROVE = "APPROVE"
10
+ COMPLETE = "COMPLETE"
11
+ ACCEPT = "ACCEPT"
12
+ REVIEW = "REVIEW"
13
+ WITNESS = "WITNESS"
14
+ SELF_REVIEW = "SELF_REVIEW"
15
+
16
+ def __str__(self) -> str:
17
+ return str(self.value)
18
+
19
+ @staticmethod
20
+ @lru_cache(maxsize=None)
21
+ def of_unknown(val: str) -> "EntryReviewProcessStagesItemActionLabel":
22
+ if not isinstance(val, str):
23
+ raise ValueError(
24
+ f"Value of EntryReviewProcessStagesItemActionLabel must be a string (encountered: {val})"
25
+ )
26
+ newcls = Enum("EntryReviewProcessStagesItemActionLabel", {"_UNKNOWN": val}, type=Enums.UnknownString) # type: ignore
27
+ return cast(EntryReviewProcessStagesItemActionLabel, getattr(newcls, "_UNKNOWN"))
@@ -0,0 +1,195 @@
1
+ from typing import Any, cast, Dict, List, Optional, Type, TypeVar, Union
2
+
3
+ import attr
4
+
5
+ from ..extensions import NotPresentError
6
+ from ..models.entry_review_process_stages_item_reviewers_item_status import (
7
+ EntryReviewProcessStagesItemReviewersItemStatus,
8
+ )
9
+ from ..types import UNSET, Unset
10
+
11
+ T = TypeVar("T", bound="EntryReviewProcessStagesItemReviewersItem")
12
+
13
+
14
+ @attr.s(auto_attribs=True, repr=False)
15
+ class EntryReviewProcessStagesItemReviewersItem:
16
+ """ """
17
+
18
+ _status: Union[Unset, EntryReviewProcessStagesItemReviewersItemStatus] = UNSET
19
+ _handle: Union[Unset, str] = UNSET
20
+ _id: Union[Unset, str] = UNSET
21
+ _name: Union[Unset, str] = UNSET
22
+ additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
23
+
24
+ def __repr__(self):
25
+ fields = []
26
+ fields.append("status={}".format(repr(self._status)))
27
+ fields.append("handle={}".format(repr(self._handle)))
28
+ fields.append("id={}".format(repr(self._id)))
29
+ fields.append("name={}".format(repr(self._name)))
30
+ fields.append("additional_properties={}".format(repr(self.additional_properties)))
31
+ return "EntryReviewProcessStagesItemReviewersItem({})".format(", ".join(fields))
32
+
33
+ def to_dict(self) -> Dict[str, Any]:
34
+ status: Union[Unset, int] = UNSET
35
+ if not isinstance(self._status, Unset):
36
+ status = self._status.value
37
+
38
+ handle = self._handle
39
+ id = self._id
40
+ name = self._name
41
+
42
+ field_dict: Dict[str, Any] = {}
43
+ field_dict.update(self.additional_properties)
44
+ # Allow the model to serialize even if it was created outside of the constructor, circumventing validation
45
+ if status is not UNSET:
46
+ field_dict["status"] = status
47
+ if handle is not UNSET:
48
+ field_dict["handle"] = handle
49
+ if id is not UNSET:
50
+ field_dict["id"] = id
51
+ if name is not UNSET:
52
+ field_dict["name"] = name
53
+
54
+ return field_dict
55
+
56
+ @classmethod
57
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any], strict: bool = False) -> T:
58
+ d = src_dict.copy()
59
+
60
+ def get_status() -> Union[Unset, EntryReviewProcessStagesItemReviewersItemStatus]:
61
+ status = UNSET
62
+ _status = d.pop("status")
63
+ if _status is not None and _status is not UNSET:
64
+ try:
65
+ status = EntryReviewProcessStagesItemReviewersItemStatus(_status)
66
+ except ValueError:
67
+ status = EntryReviewProcessStagesItemReviewersItemStatus.of_unknown(_status)
68
+
69
+ return status
70
+
71
+ try:
72
+ status = get_status()
73
+ except KeyError:
74
+ if strict:
75
+ raise
76
+ status = cast(Union[Unset, EntryReviewProcessStagesItemReviewersItemStatus], UNSET)
77
+
78
+ def get_handle() -> Union[Unset, str]:
79
+ handle = d.pop("handle")
80
+ return handle
81
+
82
+ try:
83
+ handle = get_handle()
84
+ except KeyError:
85
+ if strict:
86
+ raise
87
+ handle = cast(Union[Unset, str], UNSET)
88
+
89
+ def get_id() -> Union[Unset, str]:
90
+ id = d.pop("id")
91
+ return id
92
+
93
+ try:
94
+ id = get_id()
95
+ except KeyError:
96
+ if strict:
97
+ raise
98
+ id = cast(Union[Unset, str], UNSET)
99
+
100
+ def get_name() -> Union[Unset, str]:
101
+ name = d.pop("name")
102
+ return name
103
+
104
+ try:
105
+ name = get_name()
106
+ except KeyError:
107
+ if strict:
108
+ raise
109
+ name = cast(Union[Unset, str], UNSET)
110
+
111
+ entry_review_process_stages_item_reviewers_item = cls(
112
+ status=status,
113
+ handle=handle,
114
+ id=id,
115
+ name=name,
116
+ )
117
+
118
+ entry_review_process_stages_item_reviewers_item.additional_properties = d
119
+ return entry_review_process_stages_item_reviewers_item
120
+
121
+ @property
122
+ def additional_keys(self) -> List[str]:
123
+ return list(self.additional_properties.keys())
124
+
125
+ def __getitem__(self, key: str) -> Any:
126
+ return self.additional_properties[key]
127
+
128
+ def __setitem__(self, key: str, value: Any) -> None:
129
+ self.additional_properties[key] = value
130
+
131
+ def __delitem__(self, key: str) -> None:
132
+ del self.additional_properties[key]
133
+
134
+ def __contains__(self, key: str) -> bool:
135
+ return key in self.additional_properties
136
+
137
+ def get(self, key, default=None) -> Optional[Any]:
138
+ return self.additional_properties.get(key, default)
139
+
140
+ @property
141
+ def status(self) -> EntryReviewProcessStagesItemReviewersItemStatus:
142
+ """ Status of the Reviewer """
143
+ if isinstance(self._status, Unset):
144
+ raise NotPresentError(self, "status")
145
+ return self._status
146
+
147
+ @status.setter
148
+ def status(self, value: EntryReviewProcessStagesItemReviewersItemStatus) -> None:
149
+ self._status = value
150
+
151
+ @status.deleter
152
+ def status(self) -> None:
153
+ self._status = UNSET
154
+
155
+ @property
156
+ def handle(self) -> str:
157
+ if isinstance(self._handle, Unset):
158
+ raise NotPresentError(self, "handle")
159
+ return self._handle
160
+
161
+ @handle.setter
162
+ def handle(self, value: str) -> None:
163
+ self._handle = value
164
+
165
+ @handle.deleter
166
+ def handle(self) -> None:
167
+ self._handle = UNSET
168
+
169
+ @property
170
+ def id(self) -> str:
171
+ if isinstance(self._id, Unset):
172
+ raise NotPresentError(self, "id")
173
+ return self._id
174
+
175
+ @id.setter
176
+ def id(self, value: str) -> None:
177
+ self._id = value
178
+
179
+ @id.deleter
180
+ def id(self) -> None:
181
+ self._id = UNSET
182
+
183
+ @property
184
+ def name(self) -> str:
185
+ if isinstance(self._name, Unset):
186
+ raise NotPresentError(self, "name")
187
+ return self._name
188
+
189
+ @name.setter
190
+ def name(self, value: str) -> None:
191
+ self._name = value
192
+
193
+ @name.deleter
194
+ def name(self) -> None:
195
+ self._name = UNSET
@@ -0,0 +1,25 @@
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 EntryReviewProcessStagesItemReviewersItemStatus(Enums.KnownString):
9
+ BLOCKED = "BLOCKED"
10
+ PENDING = "PENDING"
11
+ FINISHED = "FINISHED"
12
+ REJECTED = "REJECTED"
13
+
14
+ def __str__(self) -> str:
15
+ return str(self.value)
16
+
17
+ @staticmethod
18
+ @lru_cache(maxsize=None)
19
+ def of_unknown(val: str) -> "EntryReviewProcessStagesItemReviewersItemStatus":
20
+ if not isinstance(val, str):
21
+ raise ValueError(
22
+ f"Value of EntryReviewProcessStagesItemReviewersItemStatus must be a string (encountered: {val})"
23
+ )
24
+ newcls = Enum("EntryReviewProcessStagesItemReviewersItemStatus", {"_UNKNOWN": val}, type=Enums.UnknownString) # type: ignore
25
+ return cast(EntryReviewProcessStagesItemReviewersItemStatus, getattr(newcls, "_UNKNOWN"))
@@ -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 EntryReviewProcessType(Enums.KnownString):
9
+ SELF_REVIEW = "SELF_REVIEW"
10
+ SEQUENTIAL = "SEQUENTIAL"
11
+ PARALLEL = "PARALLEL"
12
+
13
+ def __str__(self) -> str:
14
+ return str(self.value)
15
+
16
+ @staticmethod
17
+ @lru_cache(maxsize=None)
18
+ def of_unknown(val: str) -> "EntryReviewProcessType":
19
+ if not isinstance(val, str):
20
+ raise ValueError(f"Value of EntryReviewProcessType must be a string (encountered: {val})")
21
+ newcls = Enum("EntryReviewProcessType", {"_UNKNOWN": val}, type=Enums.UnknownString) # type: ignore
22
+ return cast(EntryReviewProcessType, getattr(newcls, "_UNKNOWN"))
@@ -20,6 +20,7 @@ class InventoryContainerTableNotePart:
20
20
  _type: Union[Unset, InventoryContainerTableNotePartType] = UNSET
21
21
  _api_id: Union[Unset, str] = UNSET
22
22
  _columns: Union[Unset, List[StructuredTableColumnInfo]] = UNSET
23
+ _name: Union[Unset, str] = UNSET
23
24
  _indentation: Union[Unset, int] = 0
24
25
  additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
25
26
 
@@ -32,6 +33,7 @@ class InventoryContainerTableNotePart:
32
33
  fields.append("type={}".format(repr(self._type)))
33
34
  fields.append("api_id={}".format(repr(self._api_id)))
34
35
  fields.append("columns={}".format(repr(self._columns)))
36
+ fields.append("name={}".format(repr(self._name)))
35
37
  fields.append("indentation={}".format(repr(self._indentation)))
36
38
  fields.append("additional_properties={}".format(repr(self.additional_properties)))
37
39
  return "InventoryContainerTableNotePart({})".format(", ".join(fields))
@@ -55,6 +57,7 @@ class InventoryContainerTableNotePart:
55
57
 
56
58
  columns.append(columns_item)
57
59
 
60
+ name = self._name
58
61
  indentation = self._indentation
59
62
 
60
63
  field_dict: Dict[str, Any] = {}
@@ -70,6 +73,8 @@ class InventoryContainerTableNotePart:
70
73
  field_dict["apiId"] = api_id
71
74
  if columns is not UNSET:
72
75
  field_dict["columns"] = columns
76
+ if name is not UNSET:
77
+ field_dict["name"] = name
73
78
  if indentation is not UNSET:
74
79
  field_dict["indentation"] = indentation
75
80
 
@@ -154,6 +159,17 @@ class InventoryContainerTableNotePart:
154
159
  raise
155
160
  columns = cast(Union[Unset, List[StructuredTableColumnInfo]], UNSET)
156
161
 
162
+ def get_name() -> Union[Unset, str]:
163
+ name = d.pop("name")
164
+ return name
165
+
166
+ try:
167
+ name = get_name()
168
+ except KeyError:
169
+ if strict:
170
+ raise
171
+ name = cast(Union[Unset, str], UNSET)
172
+
157
173
  def get_indentation() -> Union[Unset, int]:
158
174
  indentation = d.pop("indentation")
159
175
  return indentation
@@ -171,6 +187,7 @@ class InventoryContainerTableNotePart:
171
187
  type=type,
172
188
  api_id=api_id,
173
189
  columns=columns,
190
+ name=name,
174
191
  indentation=indentation,
175
192
  )
176
193
 
@@ -266,6 +283,20 @@ class InventoryContainerTableNotePart:
266
283
  def columns(self) -> None:
267
284
  self._columns = UNSET
268
285
 
286
+ @property
287
+ def name(self) -> str:
288
+ if isinstance(self._name, Unset):
289
+ raise NotPresentError(self, "name")
290
+ return self._name
291
+
292
+ @name.setter
293
+ def name(self, value: str) -> None:
294
+ self._name = value
295
+
296
+ @name.deleter
297
+ def name(self) -> None:
298
+ self._name = UNSET
299
+
269
300
  @property
270
301
  def indentation(self) -> int:
271
302
  """All notes have an indentation level - the default is 0 for no indent. For lists, indentation gives notes hierarchy - a bulleted list with children is modeled as one note part with indentation 1 followed by note parts with indentation 2, for example."""
@@ -21,6 +21,7 @@ class InventoryPlateTableNotePart:
21
21
  _type: Union[Unset, InventoryPlateTableNotePartType] = UNSET
22
22
  _api_id: Union[Unset, str] = UNSET
23
23
  _columns: Union[Unset, List[StructuredTableColumnInfo]] = UNSET
24
+ _name: Union[Unset, str] = UNSET
24
25
  _indentation: Union[Unset, int] = 0
25
26
  additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
26
27
 
@@ -32,6 +33,7 @@ class InventoryPlateTableNotePart:
32
33
  fields.append("type={}".format(repr(self._type)))
33
34
  fields.append("api_id={}".format(repr(self._api_id)))
34
35
  fields.append("columns={}".format(repr(self._columns)))
36
+ fields.append("name={}".format(repr(self._name)))
35
37
  fields.append("indentation={}".format(repr(self._indentation)))
36
38
  fields.append("additional_properties={}".format(repr(self.additional_properties)))
37
39
  return "InventoryPlateTableNotePart({})".format(", ".join(fields))
@@ -56,6 +58,7 @@ class InventoryPlateTableNotePart:
56
58
 
57
59
  columns.append(columns_item)
58
60
 
61
+ name = self._name
59
62
  indentation = self._indentation
60
63
 
61
64
  field_dict: Dict[str, Any] = {}
@@ -73,6 +76,8 @@ class InventoryPlateTableNotePart:
73
76
  field_dict["apiId"] = api_id
74
77
  if columns is not UNSET:
75
78
  field_dict["columns"] = columns
79
+ if name is not UNSET:
80
+ field_dict["name"] = name
76
81
  if indentation is not UNSET:
77
82
  field_dict["indentation"] = indentation
78
83
 
@@ -168,6 +173,17 @@ class InventoryPlateTableNotePart:
168
173
  raise
169
174
  columns = cast(Union[Unset, List[StructuredTableColumnInfo]], UNSET)
170
175
 
176
+ def get_name() -> Union[Unset, str]:
177
+ name = d.pop("name")
178
+ return name
179
+
180
+ try:
181
+ name = get_name()
182
+ except KeyError:
183
+ if strict:
184
+ raise
185
+ name = cast(Union[Unset, str], UNSET)
186
+
171
187
  def get_indentation() -> Union[Unset, int]:
172
188
  indentation = d.pop("indentation")
173
189
  return indentation
@@ -186,6 +202,7 @@ class InventoryPlateTableNotePart:
186
202
  type=type,
187
203
  api_id=api_id,
188
204
  columns=columns,
205
+ name=name,
189
206
  indentation=indentation,
190
207
  )
191
208
 
@@ -295,6 +312,20 @@ class InventoryPlateTableNotePart:
295
312
  def columns(self) -> None:
296
313
  self._columns = UNSET
297
314
 
315
+ @property
316
+ def name(self) -> str:
317
+ if isinstance(self._name, Unset):
318
+ raise NotPresentError(self, "name")
319
+ return self._name
320
+
321
+ @name.setter
322
+ def name(self, value: str) -> None:
323
+ self._name = value
324
+
325
+ @name.deleter
326
+ def name(self) -> None:
327
+ self._name = UNSET
328
+
298
329
  @property
299
330
  def indentation(self) -> int:
300
331
  """All notes have an indentation level - the default is 0 for no indent. For lists, indentation gives notes hierarchy - a bulleted list with children is modeled as one note part with indentation 1 followed by note parts with indentation 2, for example."""
@@ -17,6 +17,7 @@ class LookupTableNotePart:
17
17
  _type: Union[Unset, LookupTableNotePartType] = UNSET
18
18
  _api_id: Union[Unset, str] = UNSET
19
19
  _columns: Union[Unset, List[StructuredTableColumnInfo]] = UNSET
20
+ _name: Union[Unset, str] = UNSET
20
21
  additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
21
22
 
22
23
  def __repr__(self):
@@ -24,6 +25,7 @@ class LookupTableNotePart:
24
25
  fields.append("type={}".format(repr(self._type)))
25
26
  fields.append("api_id={}".format(repr(self._api_id)))
26
27
  fields.append("columns={}".format(repr(self._columns)))
28
+ fields.append("name={}".format(repr(self._name)))
27
29
  fields.append("additional_properties={}".format(repr(self.additional_properties)))
28
30
  return "LookupTableNotePart({})".format(", ".join(fields))
29
31
 
@@ -41,6 +43,8 @@ class LookupTableNotePart:
41
43
 
42
44
  columns.append(columns_item)
43
45
 
46
+ name = self._name
47
+
44
48
  field_dict: Dict[str, Any] = {}
45
49
  field_dict.update(self.additional_properties)
46
50
  # Allow the model to serialize even if it was created outside of the constructor, circumventing validation
@@ -50,6 +54,8 @@ class LookupTableNotePart:
50
54
  field_dict["apiId"] = api_id
51
55
  if columns is not UNSET:
52
56
  field_dict["columns"] = columns
57
+ if name is not UNSET:
58
+ field_dict["name"] = name
53
59
 
54
60
  return field_dict
55
61
 
@@ -103,10 +109,22 @@ class LookupTableNotePart:
103
109
  raise
104
110
  columns = cast(Union[Unset, List[StructuredTableColumnInfo]], UNSET)
105
111
 
112
+ def get_name() -> Union[Unset, str]:
113
+ name = d.pop("name")
114
+ return name
115
+
116
+ try:
117
+ name = get_name()
118
+ except KeyError:
119
+ if strict:
120
+ raise
121
+ name = cast(Union[Unset, str], UNSET)
122
+
106
123
  lookup_table_note_part = cls(
107
124
  type=type,
108
125
  api_id=api_id,
109
126
  columns=columns,
127
+ name=name,
110
128
  )
111
129
 
112
130
  lookup_table_note_part.additional_properties = d
@@ -172,3 +190,17 @@ class LookupTableNotePart:
172
190
  @columns.deleter
173
191
  def columns(self) -> None:
174
192
  self._columns = UNSET
193
+
194
+ @property
195
+ def name(self) -> str:
196
+ if isinstance(self._name, Unset):
197
+ raise NotPresentError(self, "name")
198
+ return self._name
199
+
200
+ @name.setter
201
+ def name(self, value: str) -> None:
202
+ self._name = value
203
+
204
+ @name.deleter
205
+ def name(self) -> None:
206
+ self._name = UNSET
@@ -18,6 +18,7 @@ class MixturePrepTableNotePart:
18
18
  _type: Union[Unset, MixturePrepTableNotePartType] = UNSET
19
19
  _api_id: Union[Unset, str] = UNSET
20
20
  _columns: Union[Unset, List[StructuredTableColumnInfo]] = UNSET
21
+ _name: Union[Unset, str] = UNSET
21
22
  _indentation: Union[Unset, int] = 0
22
23
  additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
23
24
 
@@ -27,6 +28,7 @@ class MixturePrepTableNotePart:
27
28
  fields.append("type={}".format(repr(self._type)))
28
29
  fields.append("api_id={}".format(repr(self._api_id)))
29
30
  fields.append("columns={}".format(repr(self._columns)))
31
+ fields.append("name={}".format(repr(self._name)))
30
32
  fields.append("indentation={}".format(repr(self._indentation)))
31
33
  fields.append("additional_properties={}".format(repr(self.additional_properties)))
32
34
  return "MixturePrepTableNotePart({})".format(", ".join(fields))
@@ -46,6 +48,7 @@ class MixturePrepTableNotePart:
46
48
 
47
49
  columns.append(columns_item)
48
50
 
51
+ name = self._name
49
52
  indentation = self._indentation
50
53
 
51
54
  field_dict: Dict[str, Any] = {}
@@ -59,6 +62,8 @@ class MixturePrepTableNotePart:
59
62
  field_dict["apiId"] = api_id
60
63
  if columns is not UNSET:
61
64
  field_dict["columns"] = columns
65
+ if name is not UNSET:
66
+ field_dict["name"] = name
62
67
  if indentation is not UNSET:
63
68
  field_dict["indentation"] = indentation
64
69
 
@@ -125,6 +130,17 @@ class MixturePrepTableNotePart:
125
130
  raise
126
131
  columns = cast(Union[Unset, List[StructuredTableColumnInfo]], UNSET)
127
132
 
133
+ def get_name() -> Union[Unset, str]:
134
+ name = d.pop("name")
135
+ return name
136
+
137
+ try:
138
+ name = get_name()
139
+ except KeyError:
140
+ if strict:
141
+ raise
142
+ name = cast(Union[Unset, str], UNSET)
143
+
128
144
  def get_indentation() -> Union[Unset, int]:
129
145
  indentation = d.pop("indentation")
130
146
  return indentation
@@ -141,6 +157,7 @@ class MixturePrepTableNotePart:
141
157
  type=type,
142
158
  api_id=api_id,
143
159
  columns=columns,
160
+ name=name,
144
161
  indentation=indentation,
145
162
  )
146
163
 
@@ -222,6 +239,20 @@ class MixturePrepTableNotePart:
222
239
  def columns(self) -> None:
223
240
  self._columns = UNSET
224
241
 
242
+ @property
243
+ def name(self) -> str:
244
+ if isinstance(self._name, Unset):
245
+ raise NotPresentError(self, "name")
246
+ return self._name
247
+
248
+ @name.setter
249
+ def name(self, value: str) -> None:
250
+ self._name = value
251
+
252
+ @name.deleter
253
+ def name(self) -> None:
254
+ self._name = UNSET
255
+
225
256
  @property
226
257
  def indentation(self) -> int:
227
258
  """All notes have an indentation level - the default is 0 for no indent. For lists, indentation gives notes hierarchy - a bulleted list with children is modeled as one note part with indentation 1 followed by note parts with indentation 2, for example."""
@@ -18,6 +18,7 @@ class PlateCreationTableNotePart:
18
18
  _type: Union[Unset, PlateCreationTableNotePartType] = UNSET
19
19
  _api_id: Union[Unset, str] = UNSET
20
20
  _columns: Union[Unset, List[StructuredTableColumnInfo]] = UNSET
21
+ _name: Union[Unset, str] = UNSET
21
22
  _indentation: Union[Unset, int] = 0
22
23
  additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
23
24
 
@@ -27,6 +28,7 @@ class PlateCreationTableNotePart:
27
28
  fields.append("type={}".format(repr(self._type)))
28
29
  fields.append("api_id={}".format(repr(self._api_id)))
29
30
  fields.append("columns={}".format(repr(self._columns)))
31
+ fields.append("name={}".format(repr(self._name)))
30
32
  fields.append("indentation={}".format(repr(self._indentation)))
31
33
  fields.append("additional_properties={}".format(repr(self.additional_properties)))
32
34
  return "PlateCreationTableNotePart({})".format(", ".join(fields))
@@ -46,6 +48,7 @@ class PlateCreationTableNotePart:
46
48
 
47
49
  columns.append(columns_item)
48
50
 
51
+ name = self._name
49
52
  indentation = self._indentation
50
53
 
51
54
  field_dict: Dict[str, Any] = {}
@@ -59,6 +62,8 @@ class PlateCreationTableNotePart:
59
62
  field_dict["apiId"] = api_id
60
63
  if columns is not UNSET:
61
64
  field_dict["columns"] = columns
65
+ if name is not UNSET:
66
+ field_dict["name"] = name
62
67
  if indentation is not UNSET:
63
68
  field_dict["indentation"] = indentation
64
69
 
@@ -125,6 +130,17 @@ class PlateCreationTableNotePart:
125
130
  raise
126
131
  columns = cast(Union[Unset, List[StructuredTableColumnInfo]], UNSET)
127
132
 
133
+ def get_name() -> Union[Unset, str]:
134
+ name = d.pop("name")
135
+ return name
136
+
137
+ try:
138
+ name = get_name()
139
+ except KeyError:
140
+ if strict:
141
+ raise
142
+ name = cast(Union[Unset, str], UNSET)
143
+
128
144
  def get_indentation() -> Union[Unset, int]:
129
145
  indentation = d.pop("indentation")
130
146
  return indentation
@@ -141,6 +157,7 @@ class PlateCreationTableNotePart:
141
157
  type=type,
142
158
  api_id=api_id,
143
159
  columns=columns,
160
+ name=name,
144
161
  indentation=indentation,
145
162
  )
146
163
 
@@ -222,6 +239,20 @@ class PlateCreationTableNotePart:
222
239
  def columns(self) -> None:
223
240
  self._columns = UNSET
224
241
 
242
+ @property
243
+ def name(self) -> str:
244
+ if isinstance(self._name, Unset):
245
+ raise NotPresentError(self, "name")
246
+ return self._name
247
+
248
+ @name.setter
249
+ def name(self, value: str) -> None:
250
+ self._name = value
251
+
252
+ @name.deleter
253
+ def name(self) -> None:
254
+ self._name = UNSET
255
+
225
256
  @property
226
257
  def indentation(self) -> int:
227
258
  """All notes have an indentation level - the default is 0 for no indent. For lists, indentation gives notes hierarchy - a bulleted list with children is modeled as one note part with indentation 1 followed by note parts with indentation 2, for example."""