benchling-sdk 1.13.0a2__tar.gz → 1.14.0a1__tar.gz

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 (118) hide show
  1. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/PKG-INFO +2 -2
  2. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/benchling.py +4 -6
  3. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/models/__init__.py +52 -44
  4. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/models/webhooks/v0/__init__.py +4 -0
  5. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/base_service.py +7 -0
  6. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/aa_sequence_service.py +14 -0
  7. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/dna_sequence_service.py +14 -0
  8. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/entry_service.py +23 -0
  9. benchling_sdk-1.14.0a1/benchling_sdk/services/v2/v2_alpha_service.py +53 -0
  10. benchling_sdk-1.14.0a1/benchling_sdk/services/v2/v2_beta_service.py +137 -0
  11. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/v2_stable_service.py +135 -335
  12. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2_service.py +17 -11
  13. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/pyproject.toml +2 -2
  14. benchling_sdk-1.13.0a2/benchling_sdk/services/v2/alpha/v2_alpha_dna_sequence_service.py +0 -32
  15. benchling_sdk-1.13.0a2/benchling_sdk/services/v2/beta/v2_beta_aa_sequence_service.py +0 -33
  16. benchling_sdk-1.13.0a2/benchling_sdk/services/v2/v2_alpha_service.py +0 -73
  17. benchling_sdk-1.13.0a2/benchling_sdk/services/v2/v2_beta_service.py +0 -182
  18. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/LICENSE +0 -0
  19. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/README.md +0 -0
  20. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/__init__.py +0 -0
  21. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/__init__.py +0 -0
  22. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/canvas/__init__.py +0 -0
  23. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/canvas/errors.py +0 -0
  24. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/canvas/framework.py +0 -0
  25. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/canvas/types.py +0 -0
  26. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/config/__init__.py +0 -0
  27. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/config/cryptography_helpers.py +0 -0
  28. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/config/decryption_provider.py +0 -0
  29. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/config/errors.py +0 -0
  30. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/config/framework.py +0 -0
  31. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/config/helpers.py +0 -0
  32. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/config/mock_config.py +0 -0
  33. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/config/types.py +0 -0
  34. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/framework.py +0 -0
  35. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/helpers/__init__.py +0 -0
  36. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/helpers/manifest_helpers.py +0 -0
  37. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/helpers/webhook_helpers.py +0 -0
  38. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/status/__init__.py +0 -0
  39. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/status/errors.py +0 -0
  40. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/status/framework.py +0 -0
  41. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/status/helpers.py +0 -0
  42. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/status/types.py +0 -0
  43. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/apps/types.py +0 -0
  44. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/auth/__init__.py +0 -0
  45. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/auth/api_key_auth.py +0 -0
  46. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/auth/bearer_token_auth.py +0 -0
  47. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/auth/client_credentials_oauth2.py +0 -0
  48. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/docs/__init__.py +0 -0
  49. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/docs/__main__.py +0 -0
  50. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/errors.py +0 -0
  51. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/helpers/__init__.py +0 -0
  52. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/helpers/client_helpers.py +0 -0
  53. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/helpers/constants.py +0 -0
  54. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/helpers/decorators.py +0 -0
  55. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/helpers/file_helpers.py +0 -0
  56. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/helpers/logging_helpers.py +0 -0
  57. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/helpers/package_helpers.py +0 -0
  58. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/helpers/pagination_helpers.py +0 -0
  59. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/helpers/response_helpers.py +0 -0
  60. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/helpers/retry_helpers.py +0 -0
  61. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/helpers/serialization_helpers.py +0 -0
  62. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/helpers/transaction_manager.py +0 -0
  63. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/models/webhooks/__init__.py +0 -0
  64. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/py.typed +0 -0
  65. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/__init__.py +0 -0
  66. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/__init__.py +0 -0
  67. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/alpha/__init__.py +0 -0
  68. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/alpha/v2_alpha_app_service.py +0 -0
  69. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/beta/__init__.py +0 -0
  70. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/beta/v2_beta_app_service.py +0 -0
  71. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/beta/v2_beta_collaboration_service.py +0 -0
  72. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/beta/v2_beta_data_frame_service.py +0 -0
  73. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/beta/v2_beta_entry_service.py +0 -0
  74. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/beta/v2_beta_folder_service.py +0 -0
  75. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/beta/v2_beta_project_service.py +0 -0
  76. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/beta/v2_beta_worklist_service.py +0 -0
  77. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/__init__.py +0 -0
  78. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/api_service.py +0 -0
  79. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/app_service.py +0 -0
  80. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/assay_result_service.py +0 -0
  81. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/assay_run_service.py +0 -0
  82. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/blob_service.py +0 -0
  83. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/box_service.py +0 -0
  84. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/container_service.py +0 -0
  85. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/custom_entity_service.py +0 -0
  86. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/custom_notation_service.py +0 -0
  87. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/dna_alignments_service.py +0 -0
  88. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/dna_oligo_service.py +0 -0
  89. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/dropdown_service.py +0 -0
  90. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/entity_service.py +0 -0
  91. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/event_service.py +0 -0
  92. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/export_service.py +0 -0
  93. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/feature_library_service.py +0 -0
  94. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/folder_service.py +0 -0
  95. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/inventory_service.py +0 -0
  96. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/lab_automation_service.py +0 -0
  97. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/label_template_service.py +0 -0
  98. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/location_service.py +0 -0
  99. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/mixture_service.py +0 -0
  100. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/molecule_service.py +0 -0
  101. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/nucleotide_alignments_service.py +0 -0
  102. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/oligo_service.py +0 -0
  103. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/organization_service.py +0 -0
  104. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/plate_service.py +0 -0
  105. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/printer_service.py +0 -0
  106. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/project_service.py +0 -0
  107. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/registry_service.py +0 -0
  108. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/request_service.py +0 -0
  109. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/rna_oligo_service.py +0 -0
  110. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/rna_sequence_service.py +0 -0
  111. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/schema_service.py +0 -0
  112. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/task_service.py +0 -0
  113. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/team_service.py +0 -0
  114. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/user_service.py +0 -0
  115. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/warehouse_service.py +0 -0
  116. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/workflow_output_service.py +0 -0
  117. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/workflow_task_group_service.py +0 -0
  118. {benchling_sdk-1.13.0a2 → benchling_sdk-1.14.0a1}/benchling_sdk/services/v2/stable/workflow_task_service.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: benchling-sdk
3
- Version: 1.13.0a2
3
+ Version: 1.14.0a1
4
4
  Summary: SDK for interacting with the Benchling Platform.
5
5
  License: Apache-2.0
6
6
  Author: Benchling Support
@@ -17,7 +17,7 @@ Provides-Extra: python-jose
17
17
  Requires-Dist: PyYAML (>=6.0,<7.0)
18
18
  Requires-Dist: attrs (>=20.1.0,<23)
19
19
  Requires-Dist: backoff (>=1.10.0,<2.0.0)
20
- Requires-Dist: benchling-api-client (==2.0.303)
20
+ Requires-Dist: benchling-api-client (==2.0.305)
21
21
  Requires-Dist: certifi (>=2022.12.7)
22
22
  Requires-Dist: cryptography (>=42.0.0) ; extra == "cryptography"
23
23
  Requires-Dist: dataclasses-json (>=0.5.2,<0.6.0)
@@ -1,6 +1,7 @@
1
1
  """Provides the Benchling class, which is the main interface for accessing Benchling's API functionality."""
2
2
  from __future__ import annotations
3
3
 
4
+ from functools import cached_property
4
5
  import re
5
6
  from typing import Optional, Protocol, TYPE_CHECKING
6
7
  import urllib.parse
@@ -154,19 +155,16 @@ class Benchling(object):
154
155
  """
155
156
  return self._client
156
157
 
157
- @property
158
+ @cached_property
158
159
  def v2(self) -> V2Service:
159
160
  """
160
161
  V2.
161
162
 
162
163
  Namespace containing support for the V2 Benchling API.
163
164
  """
164
- if self._v2_service is None:
165
- from benchling_sdk.services.v2_service import V2Service
166
-
167
- self._v2_service = V2Service(self._client, retry_strategy=self._retry_strategy)
165
+ from benchling_sdk.services.v2_service import V2Service
168
166
 
169
- return self._v2_service
167
+ return V2Service(self._client, retry_strategy=self._retry_strategy)
170
168
 
171
169
  # ------------------------------------------------------------------------------------
172
170
  # Kept for compatibility and ease of access. New services should be added in services.v2.stable and
@@ -218,18 +218,10 @@ __all__ = [
218
218
  "BaseSearchInputUIBlock",
219
219
  "BaseSelectorInputUIBlock",
220
220
  "Batch",
221
- "BatchCreate",
222
221
  "BatchOrInaccessibleResource",
223
222
  "BatchSchema",
224
223
  "BatchSchemasList",
225
224
  "BatchSchemasPaginatedList",
226
- "BatchUpdate",
227
- "BatchesArchivalChange",
228
- "BatchesArchive",
229
- "BatchesArchiveReason",
230
- "BatchesBulkGet",
231
- "BatchesPaginatedList",
232
- "BatchesUnarchive",
233
225
  "BenchlingApp",
234
226
  "BenchlingAppCreate",
235
227
  "BenchlingAppDefinitionSummary",
@@ -305,6 +297,9 @@ __all__ = [
305
297
  "ButtonUiBlockCreate",
306
298
  "ButtonUiBlockType",
307
299
  "ButtonUiBlockUpdate",
300
+ "ChartNotePart",
301
+ "ChartNotePartChart",
302
+ "ChartNotePartType",
308
303
  "CheckboxNotePart",
309
304
  "CheckboxNotePartType",
310
305
  "CheckoutRecord",
@@ -385,7 +380,6 @@ __all__ = [
385
380
  "DateAppConfigItemType",
386
381
  "DatetimeAppConfigItem",
387
382
  "DatetimeAppConfigItemType",
388
- "DefaultConcentrationSummary",
389
383
  "DeprecatedAutomationOutputProcessorsPaginatedList",
390
384
  "DeprecatedContainerVolumeForInput",
391
385
  "DeprecatedContainerVolumeForInputUnits",
@@ -509,6 +503,7 @@ __all__ = [
509
503
  "EntryTableRow",
510
504
  "EntryTemplate",
511
505
  "EntryTemplateDay",
506
+ "EntryTemplateUpdate",
512
507
  "EntryTemplatesPaginatedList",
513
508
  "EntryUpdate",
514
509
  "EntryUpdatedFieldsEvent",
@@ -592,6 +587,12 @@ __all__ = [
592
587
  "IntegerFieldDefinition",
593
588
  "IntegerFieldDefinitionType",
594
589
  "InteractiveUiBlock",
590
+ "InventoryContainerTableNotePart",
591
+ "InventoryContainerTableNotePartMode",
592
+ "InventoryContainerTableNotePartType",
593
+ "InventoryPlateTableNotePart",
594
+ "InventoryPlateTableNotePartMode",
595
+ "InventoryPlateTableNotePartType",
595
596
  "JsonAppConfigItem",
596
597
  "JsonAppConfigItemType",
597
598
  "LabAutomationBenchlingAppError",
@@ -621,7 +622,6 @@ __all__ = [
621
622
  "ListAppConfigurationItemsSort",
622
623
  "ListAppSessionsSort",
623
624
  "ListAssayResultsSort",
624
- "ListBatchesSort",
625
625
  "ListBenchlingAppsSort",
626
626
  "ListBoxesSort",
627
627
  "ListCodonUsageTablesSort",
@@ -1284,18 +1284,10 @@ if TYPE_CHECKING:
1284
1284
  import benchling_api_client.v2.stable.models.base_search_input_ui_block
1285
1285
  import benchling_api_client.v2.stable.models.base_selector_input_ui_block
1286
1286
  import benchling_api_client.v2.stable.models.batch
1287
- import benchling_api_client.v2.stable.models.batch_create
1288
1287
  import benchling_api_client.v2.stable.models.batch_or_inaccessible_resource
1289
1288
  import benchling_api_client.v2.stable.models.batch_schema
1290
1289
  import benchling_api_client.v2.stable.models.batch_schemas_list
1291
1290
  import benchling_api_client.v2.stable.models.batch_schemas_paginated_list
1292
- import benchling_api_client.v2.stable.models.batch_update
1293
- import benchling_api_client.v2.stable.models.batches_archival_change
1294
- import benchling_api_client.v2.stable.models.batches_archive
1295
- import benchling_api_client.v2.stable.models.batches_archive_reason
1296
- import benchling_api_client.v2.stable.models.batches_bulk_get
1297
- import benchling_api_client.v2.stable.models.batches_paginated_list
1298
- import benchling_api_client.v2.stable.models.batches_unarchive
1299
1291
  import benchling_api_client.v2.stable.models.benchling_app
1300
1292
  import benchling_api_client.v2.stable.models.benchling_app_create
1301
1293
  import benchling_api_client.v2.stable.models.benchling_app_definition_summary
@@ -1371,6 +1363,9 @@ if TYPE_CHECKING:
1371
1363
  import benchling_api_client.v2.stable.models.button_ui_block_create
1372
1364
  import benchling_api_client.v2.stable.models.button_ui_block_type
1373
1365
  import benchling_api_client.v2.stable.models.button_ui_block_update
1366
+ import benchling_api_client.v2.stable.models.chart_note_part
1367
+ import benchling_api_client.v2.stable.models.chart_note_part_chart
1368
+ import benchling_api_client.v2.stable.models.chart_note_part_type
1374
1369
  import benchling_api_client.v2.stable.models.checkbox_note_part
1375
1370
  import benchling_api_client.v2.stable.models.checkbox_note_part_type
1376
1371
  import benchling_api_client.v2.stable.models.checkout_record
@@ -1451,7 +1446,6 @@ if TYPE_CHECKING:
1451
1446
  import benchling_api_client.v2.stable.models.date_app_config_item_type
1452
1447
  import benchling_api_client.v2.stable.models.datetime_app_config_item
1453
1448
  import benchling_api_client.v2.stable.models.datetime_app_config_item_type
1454
- import benchling_api_client.v2.stable.models.default_concentration_summary
1455
1449
  import benchling_api_client.v2.stable.models.deprecated_automation_output_processors_paginated_list
1456
1450
  import benchling_api_client.v2.stable.models.deprecated_container_volume_for_input
1457
1451
  import benchling_api_client.v2.stable.models.deprecated_container_volume_for_input_units
@@ -1575,6 +1569,7 @@ if TYPE_CHECKING:
1575
1569
  import benchling_api_client.v2.stable.models.entry_table_row
1576
1570
  import benchling_api_client.v2.stable.models.entry_template
1577
1571
  import benchling_api_client.v2.stable.models.entry_template_day
1572
+ import benchling_api_client.v2.stable.models.entry_template_update
1578
1573
  import benchling_api_client.v2.stable.models.entry_templates_paginated_list
1579
1574
  import benchling_api_client.v2.stable.models.entry_update
1580
1575
  import benchling_api_client.v2.stable.models.entry_updated_fields_event
@@ -1658,6 +1653,12 @@ if TYPE_CHECKING:
1658
1653
  import benchling_api_client.v2.stable.models.integer_field_definition
1659
1654
  import benchling_api_client.v2.stable.models.integer_field_definition_type
1660
1655
  import benchling_api_client.v2.stable.models.interactive_ui_block
1656
+ import benchling_api_client.v2.stable.models.inventory_container_table_note_part
1657
+ import benchling_api_client.v2.stable.models.inventory_container_table_note_part_mode
1658
+ import benchling_api_client.v2.stable.models.inventory_container_table_note_part_type
1659
+ import benchling_api_client.v2.stable.models.inventory_plate_table_note_part
1660
+ import benchling_api_client.v2.stable.models.inventory_plate_table_note_part_mode
1661
+ import benchling_api_client.v2.stable.models.inventory_plate_table_note_part_type
1661
1662
  import benchling_api_client.v2.stable.models.json_app_config_item
1662
1663
  import benchling_api_client.v2.stable.models.json_app_config_item_type
1663
1664
  import benchling_api_client.v2.stable.models.lab_automation_benchling_app_error
@@ -1687,7 +1688,6 @@ if TYPE_CHECKING:
1687
1688
  import benchling_api_client.v2.stable.models.list_app_configuration_items_sort
1688
1689
  import benchling_api_client.v2.stable.models.list_app_sessions_sort
1689
1690
  import benchling_api_client.v2.stable.models.list_assay_results_sort
1690
- import benchling_api_client.v2.stable.models.list_batches_sort
1691
1691
  import benchling_api_client.v2.stable.models.list_benchling_apps_sort
1692
1692
  import benchling_api_client.v2.stable.models.list_boxes_sort
1693
1693
  import benchling_api_client.v2.stable.models.list_codon_usage_tables_sort
@@ -2622,7 +2622,6 @@ if TYPE_CHECKING:
2622
2622
  benchling_api_client.v2.stable.models.base_selector_input_ui_block.BaseSelectorInputUIBlock
2623
2623
  )
2624
2624
  Batch = benchling_api_client.v2.stable.models.batch.Batch
2625
- BatchCreate = benchling_api_client.v2.stable.models.batch_create.BatchCreate
2626
2625
  BatchOrInaccessibleResource = (
2627
2626
  benchling_api_client.v2.stable.models.batch_or_inaccessible_resource.BatchOrInaccessibleResource
2628
2627
  )
@@ -2631,15 +2630,6 @@ if TYPE_CHECKING:
2631
2630
  BatchSchemasPaginatedList = (
2632
2631
  benchling_api_client.v2.stable.models.batch_schemas_paginated_list.BatchSchemasPaginatedList
2633
2632
  )
2634
- BatchUpdate = benchling_api_client.v2.stable.models.batch_update.BatchUpdate
2635
- BatchesArchivalChange = (
2636
- benchling_api_client.v2.stable.models.batches_archival_change.BatchesArchivalChange
2637
- )
2638
- BatchesArchive = benchling_api_client.v2.stable.models.batches_archive.BatchesArchive
2639
- BatchesArchiveReason = benchling_api_client.v2.stable.models.batches_archive_reason.BatchesArchiveReason
2640
- BatchesBulkGet = benchling_api_client.v2.stable.models.batches_bulk_get.BatchesBulkGet
2641
- BatchesPaginatedList = benchling_api_client.v2.stable.models.batches_paginated_list.BatchesPaginatedList
2642
- BatchesUnarchive = benchling_api_client.v2.stable.models.batches_unarchive.BatchesUnarchive
2643
2633
  BenchlingApp = benchling_api_client.v2.stable.models.benchling_app.BenchlingApp
2644
2634
  BenchlingAppCreate = benchling_api_client.v2.stable.models.benchling_app_create.BenchlingAppCreate
2645
2635
  BenchlingAppDefinitionSummary = (
@@ -2801,6 +2791,9 @@ if TYPE_CHECKING:
2801
2791
  ButtonUiBlockCreate = benchling_api_client.v2.stable.models.button_ui_block_create.ButtonUiBlockCreate
2802
2792
  ButtonUiBlockType = benchling_api_client.v2.stable.models.button_ui_block_type.ButtonUiBlockType
2803
2793
  ButtonUiBlockUpdate = benchling_api_client.v2.stable.models.button_ui_block_update.ButtonUiBlockUpdate
2794
+ ChartNotePart = benchling_api_client.v2.stable.models.chart_note_part.ChartNotePart
2795
+ ChartNotePartChart = benchling_api_client.v2.stable.models.chart_note_part_chart.ChartNotePartChart
2796
+ ChartNotePartType = benchling_api_client.v2.stable.models.chart_note_part_type.ChartNotePartType
2804
2797
  CheckboxNotePart = benchling_api_client.v2.stable.models.checkbox_note_part.CheckboxNotePart
2805
2798
  CheckboxNotePartType = benchling_api_client.v2.stable.models.checkbox_note_part_type.CheckboxNotePartType
2806
2799
  CheckoutRecord = benchling_api_client.v2.stable.models.checkout_record.CheckoutRecord
@@ -2965,9 +2958,6 @@ if TYPE_CHECKING:
2965
2958
  DatetimeAppConfigItemType = (
2966
2959
  benchling_api_client.v2.stable.models.datetime_app_config_item_type.DatetimeAppConfigItemType
2967
2960
  )
2968
- DefaultConcentrationSummary = (
2969
- benchling_api_client.v2.stable.models.default_concentration_summary.DefaultConcentrationSummary
2970
- )
2971
2961
  DeprecatedAutomationOutputProcessorsPaginatedList = (
2972
2962
  benchling_api_client.v2.stable.models.deprecated_automation_output_processors_paginated_list.DeprecatedAutomationOutputProcessorsPaginatedList
2973
2963
  )
@@ -3229,6 +3219,7 @@ if TYPE_CHECKING:
3229
3219
  EntryTableRow = benchling_api_client.v2.stable.models.entry_table_row.EntryTableRow
3230
3220
  EntryTemplate = benchling_api_client.v2.stable.models.entry_template.EntryTemplate
3231
3221
  EntryTemplateDay = benchling_api_client.v2.stable.models.entry_template_day.EntryTemplateDay
3222
+ EntryTemplateUpdate = benchling_api_client.v2.stable.models.entry_template_update.EntryTemplateUpdate
3232
3223
  EntryTemplatesPaginatedList = (
3233
3224
  benchling_api_client.v2.stable.models.entry_templates_paginated_list.EntryTemplatesPaginatedList
3234
3225
  )
@@ -3386,6 +3377,24 @@ if TYPE_CHECKING:
3386
3377
  benchling_api_client.v2.stable.models.integer_field_definition_type.IntegerFieldDefinitionType
3387
3378
  )
3388
3379
  InteractiveUiBlock = benchling_api_client.v2.stable.models.interactive_ui_block.InteractiveUiBlock
3380
+ InventoryContainerTableNotePart = (
3381
+ benchling_api_client.v2.stable.models.inventory_container_table_note_part.InventoryContainerTableNotePart
3382
+ )
3383
+ InventoryContainerTableNotePartMode = (
3384
+ benchling_api_client.v2.stable.models.inventory_container_table_note_part_mode.InventoryContainerTableNotePartMode
3385
+ )
3386
+ InventoryContainerTableNotePartType = (
3387
+ benchling_api_client.v2.stable.models.inventory_container_table_note_part_type.InventoryContainerTableNotePartType
3388
+ )
3389
+ InventoryPlateTableNotePart = (
3390
+ benchling_api_client.v2.stable.models.inventory_plate_table_note_part.InventoryPlateTableNotePart
3391
+ )
3392
+ InventoryPlateTableNotePartMode = (
3393
+ benchling_api_client.v2.stable.models.inventory_plate_table_note_part_mode.InventoryPlateTableNotePartMode
3394
+ )
3395
+ InventoryPlateTableNotePartType = (
3396
+ benchling_api_client.v2.stable.models.inventory_plate_table_note_part_type.InventoryPlateTableNotePartType
3397
+ )
3389
3398
  JsonAppConfigItem = benchling_api_client.v2.stable.models.json_app_config_item.JsonAppConfigItem
3390
3399
  JsonAppConfigItemType = (
3391
3400
  benchling_api_client.v2.stable.models.json_app_config_item_type.JsonAppConfigItemType
@@ -3449,7 +3458,6 @@ if TYPE_CHECKING:
3449
3458
  )
3450
3459
  ListAppSessionsSort = benchling_api_client.v2.stable.models.list_app_sessions_sort.ListAppSessionsSort
3451
3460
  ListAssayResultsSort = benchling_api_client.v2.stable.models.list_assay_results_sort.ListAssayResultsSort
3452
- ListBatchesSort = benchling_api_client.v2.stable.models.list_batches_sort.ListBatchesSort
3453
3461
  ListBenchlingAppsSort = (
3454
3462
  benchling_api_client.v2.stable.models.list_benchling_apps_sort.ListBenchlingAppsSort
3455
3463
  )
@@ -4590,18 +4598,10 @@ else:
4590
4598
  "BaseSearchInputUIBlock": "benchling_api_client.v2.stable.models.base_search_input_ui_block",
4591
4599
  "BaseSelectorInputUIBlock": "benchling_api_client.v2.stable.models.base_selector_input_ui_block",
4592
4600
  "Batch": "benchling_api_client.v2.stable.models.batch",
4593
- "BatchCreate": "benchling_api_client.v2.stable.models.batch_create",
4594
4601
  "BatchOrInaccessibleResource": "benchling_api_client.v2.stable.models.batch_or_inaccessible_resource",
4595
4602
  "BatchSchema": "benchling_api_client.v2.stable.models.batch_schema",
4596
4603
  "BatchSchemasList": "benchling_api_client.v2.stable.models.batch_schemas_list",
4597
4604
  "BatchSchemasPaginatedList": "benchling_api_client.v2.stable.models.batch_schemas_paginated_list",
4598
- "BatchUpdate": "benchling_api_client.v2.stable.models.batch_update",
4599
- "BatchesArchivalChange": "benchling_api_client.v2.stable.models.batches_archival_change",
4600
- "BatchesArchive": "benchling_api_client.v2.stable.models.batches_archive",
4601
- "BatchesArchiveReason": "benchling_api_client.v2.stable.models.batches_archive_reason",
4602
- "BatchesBulkGet": "benchling_api_client.v2.stable.models.batches_bulk_get",
4603
- "BatchesPaginatedList": "benchling_api_client.v2.stable.models.batches_paginated_list",
4604
- "BatchesUnarchive": "benchling_api_client.v2.stable.models.batches_unarchive",
4605
4605
  "BenchlingApp": "benchling_api_client.v2.stable.models.benchling_app",
4606
4606
  "BenchlingAppCreate": "benchling_api_client.v2.stable.models.benchling_app_create",
4607
4607
  "BenchlingAppDefinitionSummary": "benchling_api_client.v2.stable.models.benchling_app_definition_summary",
@@ -4677,6 +4677,9 @@ else:
4677
4677
  "ButtonUiBlockCreate": "benchling_api_client.v2.stable.models.button_ui_block_create",
4678
4678
  "ButtonUiBlockType": "benchling_api_client.v2.stable.models.button_ui_block_type",
4679
4679
  "ButtonUiBlockUpdate": "benchling_api_client.v2.stable.models.button_ui_block_update",
4680
+ "ChartNotePart": "benchling_api_client.v2.stable.models.chart_note_part",
4681
+ "ChartNotePartChart": "benchling_api_client.v2.stable.models.chart_note_part_chart",
4682
+ "ChartNotePartType": "benchling_api_client.v2.stable.models.chart_note_part_type",
4680
4683
  "CheckboxNotePart": "benchling_api_client.v2.stable.models.checkbox_note_part",
4681
4684
  "CheckboxNotePartType": "benchling_api_client.v2.stable.models.checkbox_note_part_type",
4682
4685
  "CheckoutRecord": "benchling_api_client.v2.stable.models.checkout_record",
@@ -4757,7 +4760,6 @@ else:
4757
4760
  "DateAppConfigItemType": "benchling_api_client.v2.stable.models.date_app_config_item_type",
4758
4761
  "DatetimeAppConfigItem": "benchling_api_client.v2.stable.models.datetime_app_config_item",
4759
4762
  "DatetimeAppConfigItemType": "benchling_api_client.v2.stable.models.datetime_app_config_item_type",
4760
- "DefaultConcentrationSummary": "benchling_api_client.v2.stable.models.default_concentration_summary",
4761
4763
  "DeprecatedAutomationOutputProcessorsPaginatedList": "benchling_api_client.v2.stable.models.deprecated_automation_output_processors_paginated_list",
4762
4764
  "DeprecatedContainerVolumeForInput": "benchling_api_client.v2.stable.models.deprecated_container_volume_for_input",
4763
4765
  "DeprecatedContainerVolumeForInputUnits": "benchling_api_client.v2.stable.models.deprecated_container_volume_for_input_units",
@@ -4881,6 +4883,7 @@ else:
4881
4883
  "EntryTableRow": "benchling_api_client.v2.stable.models.entry_table_row",
4882
4884
  "EntryTemplate": "benchling_api_client.v2.stable.models.entry_template",
4883
4885
  "EntryTemplateDay": "benchling_api_client.v2.stable.models.entry_template_day",
4886
+ "EntryTemplateUpdate": "benchling_api_client.v2.stable.models.entry_template_update",
4884
4887
  "EntryTemplatesPaginatedList": "benchling_api_client.v2.stable.models.entry_templates_paginated_list",
4885
4888
  "EntryUpdate": "benchling_api_client.v2.stable.models.entry_update",
4886
4889
  "EntryUpdatedFieldsEvent": "benchling_api_client.v2.stable.models.entry_updated_fields_event",
@@ -4964,6 +4967,12 @@ else:
4964
4967
  "IntegerFieldDefinition": "benchling_api_client.v2.stable.models.integer_field_definition",
4965
4968
  "IntegerFieldDefinitionType": "benchling_api_client.v2.stable.models.integer_field_definition_type",
4966
4969
  "InteractiveUiBlock": "benchling_api_client.v2.stable.models.interactive_ui_block",
4970
+ "InventoryContainerTableNotePart": "benchling_api_client.v2.stable.models.inventory_container_table_note_part",
4971
+ "InventoryContainerTableNotePartMode": "benchling_api_client.v2.stable.models.inventory_container_table_note_part_mode",
4972
+ "InventoryContainerTableNotePartType": "benchling_api_client.v2.stable.models.inventory_container_table_note_part_type",
4973
+ "InventoryPlateTableNotePart": "benchling_api_client.v2.stable.models.inventory_plate_table_note_part",
4974
+ "InventoryPlateTableNotePartMode": "benchling_api_client.v2.stable.models.inventory_plate_table_note_part_mode",
4975
+ "InventoryPlateTableNotePartType": "benchling_api_client.v2.stable.models.inventory_plate_table_note_part_type",
4967
4976
  "JsonAppConfigItem": "benchling_api_client.v2.stable.models.json_app_config_item",
4968
4977
  "JsonAppConfigItemType": "benchling_api_client.v2.stable.models.json_app_config_item_type",
4969
4978
  "LabAutomationBenchlingAppError": "benchling_api_client.v2.stable.models.lab_automation_benchling_app_error",
@@ -4993,7 +5002,6 @@ else:
4993
5002
  "ListAppConfigurationItemsSort": "benchling_api_client.v2.stable.models.list_app_configuration_items_sort",
4994
5003
  "ListAppSessionsSort": "benchling_api_client.v2.stable.models.list_app_sessions_sort",
4995
5004
  "ListAssayResultsSort": "benchling_api_client.v2.stable.models.list_assay_results_sort",
4996
- "ListBatchesSort": "benchling_api_client.v2.stable.models.list_batches_sort",
4997
5005
  "ListBenchlingAppsSort": "benchling_api_client.v2.stable.models.list_benchling_apps_sort",
4998
5006
  "ListBoxesSort": "benchling_api_client.v2.stable.models.list_boxes_sort",
4999
5007
  "ListCodonUsageTablesSort": "benchling_api_client.v2.stable.models.list_codon_usage_tables_sort",
@@ -50,6 +50,7 @@ __all__ = [
50
50
  "LifecycleDeactivateWebhookV0Beta",
51
51
  "LifecycleDeactivateWebhookV0BetaType",
52
52
  "LifecycleDeactivateWebhookV0Type",
53
+ "MessageBase",
53
54
  "MessageBaseV0",
54
55
  "RequestCreatedWebhookV2",
55
56
  "RequestCreatedWebhookV2Type",
@@ -162,6 +163,7 @@ if TYPE_CHECKING:
162
163
  import benchling_api_client.webhooks.v0.stable.models.lifecycle_deactivate_webhook_v0_beta
163
164
  import benchling_api_client.webhooks.v0.stable.models.lifecycle_deactivate_webhook_v0_beta_type
164
165
  import benchling_api_client.webhooks.v0.stable.models.lifecycle_deactivate_webhook_v0_type
166
+ import benchling_api_client.webhooks.v0.stable.models.message_base
165
167
  import benchling_api_client.webhooks.v0.stable.models.message_base_v0
166
168
  import benchling_api_client.webhooks.v0.stable.models.request_created_webhook_v2
167
169
  import benchling_api_client.webhooks.v0.stable.models.request_created_webhook_v2_type
@@ -354,6 +356,7 @@ if TYPE_CHECKING:
354
356
  LifecycleDeactivateWebhookV0Type = (
355
357
  benchling_api_client.webhooks.v0.stable.models.lifecycle_deactivate_webhook_v0_type.LifecycleDeactivateWebhookV0Type
356
358
  )
359
+ MessageBase = benchling_api_client.webhooks.v0.stable.models.message_base.MessageBase
357
360
  MessageBaseV0 = benchling_api_client.webhooks.v0.stable.models.message_base_v0.MessageBaseV0
358
361
  RequestCreatedWebhookV2 = (
359
362
  benchling_api_client.webhooks.v0.stable.models.request_created_webhook_v2.RequestCreatedWebhookV2
@@ -596,6 +599,7 @@ else:
596
599
  "LifecycleDeactivateWebhookV0Beta": "benchling_api_client.webhooks.v0.stable.models.lifecycle_deactivate_webhook_v0_beta",
597
600
  "LifecycleDeactivateWebhookV0BetaType": "benchling_api_client.webhooks.v0.stable.models.lifecycle_deactivate_webhook_v0_beta_type",
598
601
  "LifecycleDeactivateWebhookV0Type": "benchling_api_client.webhooks.v0.stable.models.lifecycle_deactivate_webhook_v0_type",
602
+ "MessageBase": "benchling_api_client.webhooks.v0.stable.models.message_base",
599
603
  "MessageBaseV0": "benchling_api_client.webhooks.v0.stable.models.message_base_v0",
600
604
  "RequestCreatedWebhookV2": "benchling_api_client.webhooks.v0.stable.models.request_created_webhook_v2",
601
605
  "RequestCreatedWebhookV2Type": "benchling_api_client.webhooks.v0.stable.models.request_created_webhook_v2_type",
@@ -30,3 +30,10 @@ class BaseService(ABC):
30
30
  def retry_strategy(self) -> RetryStrategy:
31
31
  """Provide access to the underlying user-specified RetryStrategy."""
32
32
  return self._retry_strategy
33
+
34
+ def _create_service(self, cls):
35
+ """Instantiate a service that derives from BaseService, with the same properties as this service.
36
+
37
+ Override this in alpha and beta services that use a client other than self._client.
38
+ """
39
+ return cls(self._client, self._retry_strategy)
@@ -8,6 +8,7 @@ from benchling_api_client.v2.stable.api.aa_sequences import (
8
8
  bulk_update_aa_sequences,
9
9
  bulk_upsert_aa_sequences,
10
10
  create_aa_sequence,
11
+ find_matching_regions_aa_sequences,
11
12
  get_aa_sequence,
12
13
  list_aa_sequences,
13
14
  unarchive_aa_sequences,
@@ -37,6 +38,7 @@ from benchling_sdk.models import (
37
38
  AaSequencesBulkCreateRequest,
38
39
  AaSequencesBulkUpdateRequest,
39
40
  AaSequencesBulkUpsertRequest,
41
+ AaSequencesFindMatchingRegion,
40
42
  AaSequencesPaginatedList,
41
43
  AaSequencesUnarchive,
42
44
  AaSequenceUpdate,
@@ -312,3 +314,15 @@ class AaSequenceService(BaseService):
312
314
  client=self.client, json_body=body, returning=none_as_unset(returning_string)
313
315
  )
314
316
  return model_from_detailed(response)
317
+
318
+ @api_method
319
+ def find_matching_regions(self, find_matching_region: AaSequencesFindMatchingRegion) -> AsyncTaskLink:
320
+ """
321
+ Find matching regions for AA sequences.
322
+
323
+ See https://benchling.com/api/v2/reference#/AA%20Sequences/findMatchingRegionsAaSequences
324
+ """
325
+ response = find_matching_regions_aa_sequences.sync_detailed(
326
+ client=self.client, json_body=find_matching_region
327
+ )
328
+ return model_from_detailed(response)
@@ -11,6 +11,7 @@ from benchling_api_client.v2.stable.api.dna_sequences import (
11
11
  bulk_update_dna_sequences,
12
12
  bulk_upsert_dna_sequences,
13
13
  create_dna_sequence,
14
+ find_matching_regions_dna_sequences,
14
15
  get_dna_sequence,
15
16
  list_dna_sequences,
16
17
  match_bases_dna_sequences,
@@ -45,6 +46,7 @@ from benchling_sdk.models import (
45
46
  DnaSequencesBulkCreateRequest,
46
47
  DnaSequencesBulkUpdateRequest,
47
48
  DnaSequencesBulkUpsertRequest,
49
+ DnaSequencesFindMatchingRegion,
48
50
  DnaSequencesPaginatedList,
49
51
  DnaSequencesUnarchive,
50
52
  DnaSequenceUpdate,
@@ -384,3 +386,15 @@ class DnaSequenceService(BaseService):
384
386
  json_body=search_bases_request,
385
387
  )
386
388
  return model_from_detailed(response)
389
+
390
+ @api_method
391
+ def find_matching_regions(self, find_matching_region: DnaSequencesFindMatchingRegion) -> AsyncTaskLink:
392
+ """
393
+ Find matching regions for DNA sequences.
394
+
395
+ See https://benchling.com/api/v2/reference#/DNA%20Sequences/findMatchingRegionsDnaSequences
396
+ """
397
+ response = find_matching_regions_dna_sequences.sync_detailed(
398
+ client=self.client, json_body=find_matching_region
399
+ )
400
+ return model_from_detailed(response)
@@ -11,6 +11,7 @@ from benchling_api_client.v2.stable.api.entries import (
11
11
  list_entry_templates,
12
12
  unarchive_entries,
13
13
  update_entry,
14
+ update_entry_template,
14
15
  )
15
16
  from benchling_api_client.v2.types import Response
16
17
 
@@ -31,6 +32,7 @@ from benchling_sdk.models import (
31
32
  EntryExternalFile,
32
33
  EntryTemplate,
33
34
  EntryTemplatesPaginatedList,
35
+ EntryTemplateUpdate,
34
36
  EntryUpdate,
35
37
  ListEntriesReviewStatus,
36
38
  ListEntriesSort,
@@ -332,3 +334,24 @@ class EntryService(BaseService):
332
334
  client=self.client, entry_template_id=entry_template_id, returning=none_as_unset(returning_string)
333
335
  )
334
336
  return model_from_detailed(response)
337
+
338
+ @api_method
339
+ def update_entry_template(
340
+ self,
341
+ entry_template_id: str,
342
+ entry_template: EntryTemplateUpdate,
343
+ returning: Optional[Iterable[str]] = None,
344
+ ) -> EntryTemplate:
345
+ """
346
+ Update a notebook entry template's metadata.
347
+
348
+ See https://benchling.com/api/reference#/Entries/updateEntryTemplate
349
+ """
350
+ returning_string = optional_array_query_param(returning)
351
+ response = update_entry_template.sync_detailed(
352
+ client=self.client,
353
+ entry_template_id=entry_template_id,
354
+ json_body=entry_template,
355
+ returning=none_as_unset(returning_string),
356
+ )
357
+ return model_from_detailed(response)
@@ -0,0 +1,53 @@
1
+ from __future__ import annotations
2
+
3
+ from functools import cached_property
4
+ from typing import TYPE_CHECKING
5
+
6
+ from benchling_api_client.v2.stable.client import Client
7
+
8
+ from benchling_sdk.helpers.client_helpers import v2_alpha_client
9
+ from benchling_sdk.helpers.retry_helpers import RetryStrategy
10
+
11
+ if TYPE_CHECKING:
12
+ from benchling_sdk.services.v2.alpha.v2_alpha_app_service import V2AlphaAppService
13
+
14
+ from benchling_sdk.services.v2.base_service import BaseService
15
+
16
+
17
+ class V2AlphaService(BaseService):
18
+ """
19
+ V2-alpha.
20
+
21
+ Alpha endpoints have different stability guidelines than other stable endpoints.
22
+
23
+ See https://benchling.com/api/v2-alpha/reference
24
+ """
25
+
26
+ _alpha_client: Client
27
+
28
+ def __init__(self, client: Client, retry_strategy: RetryStrategy = RetryStrategy()):
29
+ """
30
+ Initialize a v2-alpha service.
31
+
32
+ :param client: Underlying generated Client.
33
+ :param retry_strategy: Retry strategy for failed HTTP calls
34
+ """
35
+ super().__init__(client, retry_strategy)
36
+ self._alpha_client = v2_alpha_client(self.client)
37
+
38
+ @cached_property
39
+ def apps(self) -> V2AlphaAppService:
40
+ """
41
+ V2-Alpha Apps.
42
+
43
+ Create and manage Apps on your tenant.
44
+
45
+ https://benchling.com/api/v2-alpha/reference?stability=not-available#/Apps
46
+ """
47
+ from .alpha.v2_alpha_app_service import V2AlphaAppService
48
+
49
+ return self._create_service(V2AlphaAppService)
50
+
51
+ def _create_service(self, cls):
52
+ """Instantiate a service using the alpha client."""
53
+ return cls(self._alpha_client, self._retry_strategy)
@@ -0,0 +1,137 @@
1
+ from __future__ import annotations
2
+
3
+ from functools import cached_property
4
+ from typing import TYPE_CHECKING
5
+
6
+ from benchling_api_client.v2.stable.client import Client
7
+
8
+ from benchling_sdk.helpers.client_helpers import v2_beta_client
9
+ from benchling_sdk.helpers.retry_helpers import RetryStrategy
10
+ from benchling_sdk.services.v2.base_service import BaseService
11
+ from benchling_sdk.services.v2.beta.v2_beta_data_frame_service import V2BetaDataFrameService
12
+
13
+ if TYPE_CHECKING:
14
+ from benchling_sdk.services.v2.beta.v2_beta_app_service import V2BetaAppService
15
+ from benchling_sdk.services.v2.beta.v2_beta_collaboration_service import V2BetaCollaborationService
16
+ from benchling_sdk.services.v2.beta.v2_beta_entry_service import V2BetaEntryService
17
+ from benchling_sdk.services.v2.beta.v2_beta_folder_service import V2BetaFolderService
18
+ from benchling_sdk.services.v2.beta.v2_beta_project_service import V2BetaProjectService
19
+ from benchling_sdk.services.v2.beta.v2_beta_worklist_service import V2BetaWorklistService
20
+
21
+
22
+ class V2BetaService(BaseService):
23
+ """
24
+ V2-beta.
25
+
26
+ Beta endpoints have different stability guidelines than other stable endpoints.
27
+
28
+ See https://benchling.com/api/v2-beta/reference
29
+ """
30
+
31
+ _beta_client: Client
32
+
33
+ def __init__(self, client: Client, retry_strategy: RetryStrategy = RetryStrategy()):
34
+ """
35
+ Initialize a v2-beta service.
36
+
37
+ :param client: Underlying generated Client.
38
+ :param retry_strategy: Retry strategy for failed HTTP calls
39
+ """
40
+ super().__init__(client, retry_strategy)
41
+ self._beta_client = v2_beta_client(self.client)
42
+
43
+ @cached_property
44
+ def apps(self) -> V2BetaAppService:
45
+ """
46
+ V2-Beta Apps.
47
+
48
+ Create and manage Apps on your tenant.
49
+
50
+ https://benchling.com/api/v2-beta/reference?stability=not-available#/Apps
51
+ """
52
+ from .beta.v2_beta_app_service import V2BetaAppService
53
+
54
+ return self._create_service(V2BetaAppService)
55
+
56
+ @cached_property
57
+ def collaborations(self) -> V2BetaCollaborationService:
58
+ """
59
+ V2-Beta Collaborations.
60
+
61
+ Collaborations represent which user or group has which access policies.
62
+
63
+ See https://benchling.com/api/v2-beta/reference?showLA=true#/Collaborations
64
+ """
65
+ from .beta.v2_beta_collaboration_service import V2BetaCollaborationService
66
+
67
+ return self._create_service(V2BetaCollaborationService)
68
+
69
+ @cached_property
70
+ def data_frames(self) -> V2BetaDataFrameService:
71
+ """
72
+ V2-Beta DataFrames.
73
+
74
+ DataFrames are Benchling objects that represent tabular data with typed columns and rows of data.
75
+
76
+ See https://benchling.com/api/v2-beta/reference#/Data%20Frames
77
+ """
78
+ from .beta.v2_beta_data_frame_service import V2BetaDataFrameService
79
+
80
+ return self._create_service(V2BetaDataFrameService)
81
+
82
+ @cached_property
83
+ def entries(self) -> V2BetaEntryService:
84
+ """
85
+ V2-Beta Entries.
86
+
87
+ Entries are rich text documents that allow you to capture all of your experimental data in one place.
88
+
89
+ https://benchling.com/api/v2-beta/reference#/Entries
90
+ """
91
+ from .beta.v2_beta_entry_service import V2BetaEntryService
92
+
93
+ return self._create_service(V2BetaEntryService)
94
+
95
+ @cached_property
96
+ def folders(self) -> V2BetaFolderService:
97
+ """
98
+ V2-Beta Folders.
99
+
100
+ Folders are nested within projects to provide additional organization.
101
+
102
+ https://benchling.com/api/v2-beta/reference?showLA=true#/Folders
103
+ """
104
+ from .beta.v2_beta_folder_service import V2BetaFolderService
105
+
106
+ return self._create_service(V2BetaFolderService)
107
+
108
+ @cached_property
109
+ def projects(self) -> V2BetaProjectService:
110
+ """
111
+ V2-Beta Projects.
112
+
113
+ Manage project objects.
114
+
115
+ See https://benchling.com/api/v2-beta/reference?#/Projects
116
+ """
117
+ from .beta.v2_beta_project_service import V2BetaProjectService
118
+
119
+ return self._create_service(V2BetaProjectService)
120
+
121
+ @cached_property
122
+ def worklists(self) -> V2BetaWorklistService:
123
+ """
124
+ V2-Beta Worklists.
125
+
126
+ Worklists are a convenient way to organize items for bulk actions, and are complementary to folders and
127
+ projects.
128
+
129
+ See https://benchling.com/api/v2-beta/reference#/Worklists
130
+ """
131
+ from .beta.v2_beta_worklist_service import V2BetaWorklistService
132
+
133
+ return self._create_service(V2BetaWorklistService)
134
+
135
+ def _create_service(self, cls):
136
+ """Instantiate a service using the beta client."""
137
+ return cls(self._beta_client, self._retry_strategy)