wds-client 0.15.0__tar.gz → 0.17.0__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {wds_client-0.15.0 → wds_client-0.17.0}/PKG-INFO +1 -1
- {wds_client-0.15.0 → wds_client-0.17.0}/README.md +5 -1
- {wds_client-0.15.0 → wds_client-0.17.0}/pyproject.toml +1 -1
- {wds_client-0.15.0 → wds_client-0.17.0}/setup.py +1 -1
- wds_client-0.17.0/test/test_collection_request.py +54 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_record_query_response.py +4 -2
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_search_filter.py +2 -1
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_search_request.py +2 -1
- wds_client-0.17.0/test/test_workspace_api.py +38 -0
- wds_client-0.17.0/test/test_workspace_init.py +52 -0
- wds_client-0.17.0/test/test_workspace_init_clone.py +52 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/__init__.py +5 -1
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/api/__init__.py +1 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/api/collection_api.py +31 -36
- wds_client-0.17.0/wds_client/api/workspace_api.py +326 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/api_client.py +1 -1
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/configuration.py +1 -1
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/__init__.py +3 -0
- wds_client-0.17.0/wds_client/models/collection_request.py +97 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/search_filter.py +4 -2
- wds_client-0.17.0/wds_client/models/workspace_init.py +91 -0
- wds_client-0.17.0/wds_client/models/workspace_init_clone.py +87 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client.egg-info/PKG-INFO +1 -1
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client.egg-info/SOURCES.txt +9 -1
- {wds_client-0.15.0 → wds_client-0.17.0}/setup.cfg +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_app.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_attribute_data_type.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_attribute_schema.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_attribute_schema_update.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_backup_job.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_backup_response.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_backup_restore_request.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_batch_operation.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_batch_record_request.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_batch_response.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_build.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_capabilities.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_capabilities_api.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_clone_job.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_clone_response.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_cloning_api.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_collection.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_collection_api.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_commit.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_error_response.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_general_wds_information_api.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_generic_job.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_git.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_import_api.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_import_request.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_instances_api.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_job.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_job_api.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_job_v1.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_record_request.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_record_response.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_record_type_schema.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_records_api.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_schema_api.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_search_sort_direction.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_status_response.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_tsv_upload_response.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/test/test_version_response.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/api/capabilities_api.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/api/cloning_api.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/api/general_wds_information_api.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/api/import_api.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/api/instances_api.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/api/job_api.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/api/records_api.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/api/schema_api.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/api_response.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/exceptions.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/app.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/attribute_data_type.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/attribute_schema.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/attribute_schema_update.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/backup_job.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/backup_response.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/backup_restore_request.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/batch_operation.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/batch_record_request.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/batch_response.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/build.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/capabilities.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/clone_job.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/clone_response.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/collection.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/commit.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/error_response.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/generic_job.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/git.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/import_request.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/job.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/job_v1.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/record_query_response.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/record_request.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/record_response.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/record_type_schema.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/search_request.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/search_sort_direction.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/status_response.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/tsv_upload_response.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/models/version_response.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/py.typed +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client/rest.py +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client.egg-info/dependency_links.txt +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client.egg-info/requires.txt +0 -0
- {wds_client-0.15.0 → wds_client-0.17.0}/wds_client.egg-info/top_level.txt +0 -0
@@ -9,7 +9,7 @@ Changelog at [https://github.com/DataBiosphere/terra-workspace-data-service/rele
|
|
9
9
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
10
10
|
|
11
11
|
- API version: v0.2
|
12
|
-
- Package version: 0.
|
12
|
+
- Package version: 0.17.0
|
13
13
|
- Generator version: 7.7.0
|
14
14
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
15
15
|
|
@@ -119,6 +119,7 @@ Class | Method | HTTP request | Description
|
|
119
119
|
*SchemaApi* | [**describe_all_record_types**](docs/SchemaApi.md#describe_all_record_types) | **GET** /{instanceid}/types/{v} | Describe all record types
|
120
120
|
*SchemaApi* | [**describe_record_type**](docs/SchemaApi.md#describe_record_type) | **GET** /{instanceid}/types/{v}/{type} | Describe record type
|
121
121
|
*SchemaApi* | [**update_attribute**](docs/SchemaApi.md#update_attribute) | **PATCH** /{instanceid}/types/{v}/{type}/{attribute} | Update an attribute
|
122
|
+
*WorkspaceApi* | [**init_workspace_v1**](docs/WorkspaceApi.md#init_workspace_v1) | **POST** /workspaces/v1/{workspaceId} | Initialize WDS for a given workspace.
|
122
123
|
|
123
124
|
|
124
125
|
## Documentation For Models
|
@@ -138,6 +139,7 @@ Class | Method | HTTP request | Description
|
|
138
139
|
- [CloneJob](docs/CloneJob.md)
|
139
140
|
- [CloneResponse](docs/CloneResponse.md)
|
140
141
|
- [Collection](docs/Collection.md)
|
142
|
+
- [CollectionRequest](docs/CollectionRequest.md)
|
141
143
|
- [Commit](docs/Commit.md)
|
142
144
|
- [ErrorResponse](docs/ErrorResponse.md)
|
143
145
|
- [GenericJob](docs/GenericJob.md)
|
@@ -155,6 +157,8 @@ Class | Method | HTTP request | Description
|
|
155
157
|
- [StatusResponse](docs/StatusResponse.md)
|
156
158
|
- [TsvUploadResponse](docs/TsvUploadResponse.md)
|
157
159
|
- [VersionResponse](docs/VersionResponse.md)
|
160
|
+
- [WorkspaceInit](docs/WorkspaceInit.md)
|
161
|
+
- [WorkspaceInitClone](docs/WorkspaceInitClone.md)
|
158
162
|
|
159
163
|
|
160
164
|
<a id="documentation-for-authorization"></a>
|
@@ -21,7 +21,7 @@ from setuptools import setup, find_packages # noqa: H301
|
|
21
21
|
# prerequisite: setuptools
|
22
22
|
# http://pypi.python.org/pypi/setuptools
|
23
23
|
NAME = "wds-client"
|
24
|
-
VERSION = "0.
|
24
|
+
VERSION = "0.17.0"
|
25
25
|
PYTHON_REQUIRES = ">=3.7"
|
26
26
|
REQUIRES = [
|
27
27
|
"urllib3 >= 1.25.3, < 2.1.0",
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Workspace Data Service
|
5
|
+
|
6
|
+
This page lists current APIs. All v0.2 APIs are subject to change without notice. Changelog at [https://github.com/DataBiosphere/terra-workspace-data-service/releases](https://github.com/DataBiosphere/terra-workspace-data-service/releases)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: v0.2
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
|
17
|
+
from wds_client.models.collection_request import CollectionRequest
|
18
|
+
|
19
|
+
class TestCollectionRequest(unittest.TestCase):
|
20
|
+
"""CollectionRequest unit test stubs"""
|
21
|
+
|
22
|
+
def setUp(self):
|
23
|
+
pass
|
24
|
+
|
25
|
+
def tearDown(self):
|
26
|
+
pass
|
27
|
+
|
28
|
+
def make_instance(self, include_optional) -> CollectionRequest:
|
29
|
+
"""Test CollectionRequest
|
30
|
+
include_optional is a boolean, when False only required
|
31
|
+
params are included, when True both required and
|
32
|
+
optional params are included """
|
33
|
+
# uncomment below to create an instance of `CollectionRequest`
|
34
|
+
"""
|
35
|
+
model = CollectionRequest()
|
36
|
+
if include_optional:
|
37
|
+
return CollectionRequest(
|
38
|
+
name = 'zBAMDTMv2D2ylmgd10Z3UB6UkJSISSB512iz2DiJykO4IVP7YNsKQHh9BsaMPOiOuo3_QLOpkBmKIPOf2Flbsh1TpRS00P',
|
39
|
+
description = ''
|
40
|
+
)
|
41
|
+
else:
|
42
|
+
return CollectionRequest(
|
43
|
+
name = 'zBAMDTMv2D2ylmgd10Z3UB6UkJSISSB512iz2DiJykO4IVP7YNsKQHh9BsaMPOiOuo3_QLOpkBmKIPOf2Flbsh1TpRS00P',
|
44
|
+
description = '',
|
45
|
+
)
|
46
|
+
"""
|
47
|
+
|
48
|
+
def testCollectionRequest(self):
|
49
|
+
"""Test CollectionRequest"""
|
50
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
51
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
52
|
+
|
53
|
+
if __name__ == '__main__':
|
54
|
+
unittest.main()
|
@@ -43,7 +43,8 @@ class TestRecordQueryResponse(unittest.TestCase):
|
|
43
43
|
filter = wds_client.models.search_filter.SearchFilter(
|
44
44
|
ids = [
|
45
45
|
''
|
46
|
-
],
|
46
|
+
],
|
47
|
+
query = 'sample_id:12345', ), ),
|
47
48
|
total_records = 56,
|
48
49
|
records = [
|
49
50
|
wds_client.models.record_response.RecordResponse(
|
@@ -76,7 +77,8 @@ class TestRecordQueryResponse(unittest.TestCase):
|
|
76
77
|
filter = wds_client.models.search_filter.SearchFilter(
|
77
78
|
ids = [
|
78
79
|
''
|
79
|
-
],
|
80
|
+
],
|
81
|
+
query = 'sample_id:12345', ), ),
|
80
82
|
total_records = 56,
|
81
83
|
records = [
|
82
84
|
wds_client.models.record_response.RecordResponse(
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Workspace Data Service
|
5
|
+
|
6
|
+
This page lists current APIs. All v0.2 APIs are subject to change without notice. Changelog at [https://github.com/DataBiosphere/terra-workspace-data-service/releases](https://github.com/DataBiosphere/terra-workspace-data-service/releases)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: v0.2
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
|
17
|
+
from wds_client.api.workspace_api import WorkspaceApi
|
18
|
+
|
19
|
+
|
20
|
+
class TestWorkspaceApi(unittest.TestCase):
|
21
|
+
"""WorkspaceApi unit test stubs"""
|
22
|
+
|
23
|
+
def setUp(self) -> None:
|
24
|
+
self.api = WorkspaceApi()
|
25
|
+
|
26
|
+
def tearDown(self) -> None:
|
27
|
+
pass
|
28
|
+
|
29
|
+
def test_init_workspace_v1(self) -> None:
|
30
|
+
"""Test case for init_workspace_v1
|
31
|
+
|
32
|
+
Initialize WDS for a given workspace.
|
33
|
+
"""
|
34
|
+
pass
|
35
|
+
|
36
|
+
|
37
|
+
if __name__ == '__main__':
|
38
|
+
unittest.main()
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Workspace Data Service
|
5
|
+
|
6
|
+
This page lists current APIs. All v0.2 APIs are subject to change without notice. Changelog at [https://github.com/DataBiosphere/terra-workspace-data-service/releases](https://github.com/DataBiosphere/terra-workspace-data-service/releases)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: v0.2
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
|
17
|
+
from wds_client.models.workspace_init import WorkspaceInit
|
18
|
+
|
19
|
+
class TestWorkspaceInit(unittest.TestCase):
|
20
|
+
"""WorkspaceInit unit test stubs"""
|
21
|
+
|
22
|
+
def setUp(self):
|
23
|
+
pass
|
24
|
+
|
25
|
+
def tearDown(self):
|
26
|
+
pass
|
27
|
+
|
28
|
+
def make_instance(self, include_optional) -> WorkspaceInit:
|
29
|
+
"""Test WorkspaceInit
|
30
|
+
include_optional is a boolean, when False only required
|
31
|
+
params are included, when True both required and
|
32
|
+
optional params are included """
|
33
|
+
# uncomment below to create an instance of `WorkspaceInit`
|
34
|
+
"""
|
35
|
+
model = WorkspaceInit()
|
36
|
+
if include_optional:
|
37
|
+
return WorkspaceInit(
|
38
|
+
clone = wds_client.models.workspace_init_clone.WorkspaceInitClone(
|
39
|
+
source_workspace_id = '', )
|
40
|
+
)
|
41
|
+
else:
|
42
|
+
return WorkspaceInit(
|
43
|
+
)
|
44
|
+
"""
|
45
|
+
|
46
|
+
def testWorkspaceInit(self):
|
47
|
+
"""Test WorkspaceInit"""
|
48
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
49
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
50
|
+
|
51
|
+
if __name__ == '__main__':
|
52
|
+
unittest.main()
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Workspace Data Service
|
5
|
+
|
6
|
+
This page lists current APIs. All v0.2 APIs are subject to change without notice. Changelog at [https://github.com/DataBiosphere/terra-workspace-data-service/releases](https://github.com/DataBiosphere/terra-workspace-data-service/releases)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: v0.2
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
|
17
|
+
from wds_client.models.workspace_init_clone import WorkspaceInitClone
|
18
|
+
|
19
|
+
class TestWorkspaceInitClone(unittest.TestCase):
|
20
|
+
"""WorkspaceInitClone unit test stubs"""
|
21
|
+
|
22
|
+
def setUp(self):
|
23
|
+
pass
|
24
|
+
|
25
|
+
def tearDown(self):
|
26
|
+
pass
|
27
|
+
|
28
|
+
def make_instance(self, include_optional) -> WorkspaceInitClone:
|
29
|
+
"""Test WorkspaceInitClone
|
30
|
+
include_optional is a boolean, when False only required
|
31
|
+
params are included, when True both required and
|
32
|
+
optional params are included """
|
33
|
+
# uncomment below to create an instance of `WorkspaceInitClone`
|
34
|
+
"""
|
35
|
+
model = WorkspaceInitClone()
|
36
|
+
if include_optional:
|
37
|
+
return WorkspaceInitClone(
|
38
|
+
source_workspace_id = ''
|
39
|
+
)
|
40
|
+
else:
|
41
|
+
return WorkspaceInitClone(
|
42
|
+
source_workspace_id = '',
|
43
|
+
)
|
44
|
+
"""
|
45
|
+
|
46
|
+
def testWorkspaceInitClone(self):
|
47
|
+
"""Test WorkspaceInitClone"""
|
48
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
49
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
50
|
+
|
51
|
+
if __name__ == '__main__':
|
52
|
+
unittest.main()
|
@@ -14,7 +14,7 @@
|
|
14
14
|
""" # noqa: E501
|
15
15
|
|
16
16
|
|
17
|
-
__version__ = "0.
|
17
|
+
__version__ = "0.17.0"
|
18
18
|
|
19
19
|
# import apis into sdk package
|
20
20
|
from wds_client.api.capabilities_api import CapabilitiesApi
|
@@ -26,6 +26,7 @@ from wds_client.api.instances_api import InstancesApi
|
|
26
26
|
from wds_client.api.job_api import JobApi
|
27
27
|
from wds_client.api.records_api import RecordsApi
|
28
28
|
from wds_client.api.schema_api import SchemaApi
|
29
|
+
from wds_client.api.workspace_api import WorkspaceApi
|
29
30
|
|
30
31
|
# import ApiClient
|
31
32
|
from wds_client.api_response import ApiResponse
|
@@ -54,6 +55,7 @@ from wds_client.models.capabilities import Capabilities
|
|
54
55
|
from wds_client.models.clone_job import CloneJob
|
55
56
|
from wds_client.models.clone_response import CloneResponse
|
56
57
|
from wds_client.models.collection import Collection
|
58
|
+
from wds_client.models.collection_request import CollectionRequest
|
57
59
|
from wds_client.models.commit import Commit
|
58
60
|
from wds_client.models.error_response import ErrorResponse
|
59
61
|
from wds_client.models.generic_job import GenericJob
|
@@ -71,3 +73,5 @@ from wds_client.models.search_sort_direction import SearchSortDirection
|
|
71
73
|
from wds_client.models.status_response import StatusResponse
|
72
74
|
from wds_client.models.tsv_upload_response import TsvUploadResponse
|
73
75
|
from wds_client.models.version_response import VersionResponse
|
76
|
+
from wds_client.models.workspace_init import WorkspaceInit
|
77
|
+
from wds_client.models.workspace_init_clone import WorkspaceInitClone
|
@@ -20,6 +20,7 @@ from pydantic import Field, StrictStr
|
|
20
20
|
from typing import List
|
21
21
|
from typing_extensions import Annotated
|
22
22
|
from wds_client.models.collection import Collection
|
23
|
+
from wds_client.models.collection_request import CollectionRequest
|
23
24
|
|
24
25
|
from wds_client.api_client import ApiClient, RequestSerialized
|
25
26
|
from wds_client.api_response import ApiResponse
|
@@ -43,7 +44,7 @@ class CollectionApi:
|
|
43
44
|
def create_collection_v1(
|
44
45
|
self,
|
45
46
|
workspace_id: Annotated[StrictStr, Field(description="Workspace id")],
|
46
|
-
|
47
|
+
collection_request: Annotated[CollectionRequest, Field(description="The collection to create")],
|
47
48
|
_request_timeout: Union[
|
48
49
|
None,
|
49
50
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -59,12 +60,11 @@ class CollectionApi:
|
|
59
60
|
) -> Collection:
|
60
61
|
"""Create a collection in this workspace.
|
61
62
|
|
62
|
-
If collection id is specified in the request body, it must be a valid UUID. If omitted, the system will generate an id.
|
63
63
|
|
64
64
|
:param workspace_id: Workspace id (required)
|
65
65
|
:type workspace_id: str
|
66
|
-
:param
|
67
|
-
:type
|
66
|
+
:param collection_request: The collection to create (required)
|
67
|
+
:type collection_request: CollectionRequest
|
68
68
|
:param _request_timeout: timeout setting for this request. If one
|
69
69
|
number provided, it will be total request
|
70
70
|
timeout. It can also be a pair (tuple) of
|
@@ -89,7 +89,7 @@ class CollectionApi:
|
|
89
89
|
|
90
90
|
_param = self._create_collection_v1_serialize(
|
91
91
|
workspace_id=workspace_id,
|
92
|
-
|
92
|
+
collection_request=collection_request,
|
93
93
|
_request_auth=_request_auth,
|
94
94
|
_content_type=_content_type,
|
95
95
|
_headers=_headers,
|
@@ -114,7 +114,7 @@ class CollectionApi:
|
|
114
114
|
def create_collection_v1_with_http_info(
|
115
115
|
self,
|
116
116
|
workspace_id: Annotated[StrictStr, Field(description="Workspace id")],
|
117
|
-
|
117
|
+
collection_request: Annotated[CollectionRequest, Field(description="The collection to create")],
|
118
118
|
_request_timeout: Union[
|
119
119
|
None,
|
120
120
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -130,12 +130,11 @@ class CollectionApi:
|
|
130
130
|
) -> ApiResponse[Collection]:
|
131
131
|
"""Create a collection in this workspace.
|
132
132
|
|
133
|
-
If collection id is specified in the request body, it must be a valid UUID. If omitted, the system will generate an id.
|
134
133
|
|
135
134
|
:param workspace_id: Workspace id (required)
|
136
135
|
:type workspace_id: str
|
137
|
-
:param
|
138
|
-
:type
|
136
|
+
:param collection_request: The collection to create (required)
|
137
|
+
:type collection_request: CollectionRequest
|
139
138
|
:param _request_timeout: timeout setting for this request. If one
|
140
139
|
number provided, it will be total request
|
141
140
|
timeout. It can also be a pair (tuple) of
|
@@ -160,7 +159,7 @@ class CollectionApi:
|
|
160
159
|
|
161
160
|
_param = self._create_collection_v1_serialize(
|
162
161
|
workspace_id=workspace_id,
|
163
|
-
|
162
|
+
collection_request=collection_request,
|
164
163
|
_request_auth=_request_auth,
|
165
164
|
_content_type=_content_type,
|
166
165
|
_headers=_headers,
|
@@ -185,7 +184,7 @@ class CollectionApi:
|
|
185
184
|
def create_collection_v1_without_preload_content(
|
186
185
|
self,
|
187
186
|
workspace_id: Annotated[StrictStr, Field(description="Workspace id")],
|
188
|
-
|
187
|
+
collection_request: Annotated[CollectionRequest, Field(description="The collection to create")],
|
189
188
|
_request_timeout: Union[
|
190
189
|
None,
|
191
190
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -201,12 +200,11 @@ class CollectionApi:
|
|
201
200
|
) -> RESTResponseType:
|
202
201
|
"""Create a collection in this workspace.
|
203
202
|
|
204
|
-
If collection id is specified in the request body, it must be a valid UUID. If omitted, the system will generate an id.
|
205
203
|
|
206
204
|
:param workspace_id: Workspace id (required)
|
207
205
|
:type workspace_id: str
|
208
|
-
:param
|
209
|
-
:type
|
206
|
+
:param collection_request: The collection to create (required)
|
207
|
+
:type collection_request: CollectionRequest
|
210
208
|
:param _request_timeout: timeout setting for this request. If one
|
211
209
|
number provided, it will be total request
|
212
210
|
timeout. It can also be a pair (tuple) of
|
@@ -231,7 +229,7 @@ class CollectionApi:
|
|
231
229
|
|
232
230
|
_param = self._create_collection_v1_serialize(
|
233
231
|
workspace_id=workspace_id,
|
234
|
-
|
232
|
+
collection_request=collection_request,
|
235
233
|
_request_auth=_request_auth,
|
236
234
|
_content_type=_content_type,
|
237
235
|
_headers=_headers,
|
@@ -251,7 +249,7 @@ class CollectionApi:
|
|
251
249
|
def _create_collection_v1_serialize(
|
252
250
|
self,
|
253
251
|
workspace_id,
|
254
|
-
|
252
|
+
collection_request,
|
255
253
|
_request_auth,
|
256
254
|
_content_type,
|
257
255
|
_headers,
|
@@ -277,8 +275,8 @@ class CollectionApi:
|
|
277
275
|
# process the header parameters
|
278
276
|
# process the form parameters
|
279
277
|
# process the body parameter
|
280
|
-
if
|
281
|
-
_body_params =
|
278
|
+
if collection_request is not None:
|
279
|
+
_body_params = collection_request
|
282
280
|
|
283
281
|
|
284
282
|
# set the HTTP header `Accept`
|
@@ -1122,7 +1120,7 @@ class CollectionApi:
|
|
1122
1120
|
self,
|
1123
1121
|
workspace_id: Annotated[StrictStr, Field(description="Workspace id")],
|
1124
1122
|
collection_id: Annotated[StrictStr, Field(description="Collection id")],
|
1125
|
-
|
1123
|
+
collection_request: Annotated[CollectionRequest, Field(description="The collection to update")],
|
1126
1124
|
_request_timeout: Union[
|
1127
1125
|
None,
|
1128
1126
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1138,14 +1136,13 @@ class CollectionApi:
|
|
1138
1136
|
) -> Collection:
|
1139
1137
|
"""Update the specified collection.
|
1140
1138
|
|
1141
|
-
Collection id is optional in the request body. If specified, it must match the collection id specified in the url.
|
1142
1139
|
|
1143
1140
|
:param workspace_id: Workspace id (required)
|
1144
1141
|
:type workspace_id: str
|
1145
1142
|
:param collection_id: Collection id (required)
|
1146
1143
|
:type collection_id: str
|
1147
|
-
:param
|
1148
|
-
:type
|
1144
|
+
:param collection_request: The collection to update (required)
|
1145
|
+
:type collection_request: CollectionRequest
|
1149
1146
|
:param _request_timeout: timeout setting for this request. If one
|
1150
1147
|
number provided, it will be total request
|
1151
1148
|
timeout. It can also be a pair (tuple) of
|
@@ -1171,7 +1168,7 @@ class CollectionApi:
|
|
1171
1168
|
_param = self._update_collection_v1_serialize(
|
1172
1169
|
workspace_id=workspace_id,
|
1173
1170
|
collection_id=collection_id,
|
1174
|
-
|
1171
|
+
collection_request=collection_request,
|
1175
1172
|
_request_auth=_request_auth,
|
1176
1173
|
_content_type=_content_type,
|
1177
1174
|
_headers=_headers,
|
@@ -1197,7 +1194,7 @@ class CollectionApi:
|
|
1197
1194
|
self,
|
1198
1195
|
workspace_id: Annotated[StrictStr, Field(description="Workspace id")],
|
1199
1196
|
collection_id: Annotated[StrictStr, Field(description="Collection id")],
|
1200
|
-
|
1197
|
+
collection_request: Annotated[CollectionRequest, Field(description="The collection to update")],
|
1201
1198
|
_request_timeout: Union[
|
1202
1199
|
None,
|
1203
1200
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1213,14 +1210,13 @@ class CollectionApi:
|
|
1213
1210
|
) -> ApiResponse[Collection]:
|
1214
1211
|
"""Update the specified collection.
|
1215
1212
|
|
1216
|
-
Collection id is optional in the request body. If specified, it must match the collection id specified in the url.
|
1217
1213
|
|
1218
1214
|
:param workspace_id: Workspace id (required)
|
1219
1215
|
:type workspace_id: str
|
1220
1216
|
:param collection_id: Collection id (required)
|
1221
1217
|
:type collection_id: str
|
1222
|
-
:param
|
1223
|
-
:type
|
1218
|
+
:param collection_request: The collection to update (required)
|
1219
|
+
:type collection_request: CollectionRequest
|
1224
1220
|
:param _request_timeout: timeout setting for this request. If one
|
1225
1221
|
number provided, it will be total request
|
1226
1222
|
timeout. It can also be a pair (tuple) of
|
@@ -1246,7 +1242,7 @@ class CollectionApi:
|
|
1246
1242
|
_param = self._update_collection_v1_serialize(
|
1247
1243
|
workspace_id=workspace_id,
|
1248
1244
|
collection_id=collection_id,
|
1249
|
-
|
1245
|
+
collection_request=collection_request,
|
1250
1246
|
_request_auth=_request_auth,
|
1251
1247
|
_content_type=_content_type,
|
1252
1248
|
_headers=_headers,
|
@@ -1272,7 +1268,7 @@ class CollectionApi:
|
|
1272
1268
|
self,
|
1273
1269
|
workspace_id: Annotated[StrictStr, Field(description="Workspace id")],
|
1274
1270
|
collection_id: Annotated[StrictStr, Field(description="Collection id")],
|
1275
|
-
|
1271
|
+
collection_request: Annotated[CollectionRequest, Field(description="The collection to update")],
|
1276
1272
|
_request_timeout: Union[
|
1277
1273
|
None,
|
1278
1274
|
Annotated[StrictFloat, Field(gt=0)],
|
@@ -1288,14 +1284,13 @@ class CollectionApi:
|
|
1288
1284
|
) -> RESTResponseType:
|
1289
1285
|
"""Update the specified collection.
|
1290
1286
|
|
1291
|
-
Collection id is optional in the request body. If specified, it must match the collection id specified in the url.
|
1292
1287
|
|
1293
1288
|
:param workspace_id: Workspace id (required)
|
1294
1289
|
:type workspace_id: str
|
1295
1290
|
:param collection_id: Collection id (required)
|
1296
1291
|
:type collection_id: str
|
1297
|
-
:param
|
1298
|
-
:type
|
1292
|
+
:param collection_request: The collection to update (required)
|
1293
|
+
:type collection_request: CollectionRequest
|
1299
1294
|
:param _request_timeout: timeout setting for this request. If one
|
1300
1295
|
number provided, it will be total request
|
1301
1296
|
timeout. It can also be a pair (tuple) of
|
@@ -1321,7 +1316,7 @@ class CollectionApi:
|
|
1321
1316
|
_param = self._update_collection_v1_serialize(
|
1322
1317
|
workspace_id=workspace_id,
|
1323
1318
|
collection_id=collection_id,
|
1324
|
-
|
1319
|
+
collection_request=collection_request,
|
1325
1320
|
_request_auth=_request_auth,
|
1326
1321
|
_content_type=_content_type,
|
1327
1322
|
_headers=_headers,
|
@@ -1342,7 +1337,7 @@ class CollectionApi:
|
|
1342
1337
|
self,
|
1343
1338
|
workspace_id,
|
1344
1339
|
collection_id,
|
1345
|
-
|
1340
|
+
collection_request,
|
1346
1341
|
_request_auth,
|
1347
1342
|
_content_type,
|
1348
1343
|
_headers,
|
@@ -1370,8 +1365,8 @@ class CollectionApi:
|
|
1370
1365
|
# process the header parameters
|
1371
1366
|
# process the form parameters
|
1372
1367
|
# process the body parameter
|
1373
|
-
if
|
1374
|
-
_body_params =
|
1368
|
+
if collection_request is not None:
|
1369
|
+
_body_params = collection_request
|
1375
1370
|
|
1376
1371
|
|
1377
1372
|
# set the HTTP header `Accept`
|