wds-client 0.7.0__py3-none-any.whl → 0.8.0__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 (58) hide show
  1. wds_client/__init__.py +8 -10
  2. wds_client/api/__init__.py +1 -2
  3. wds_client/api/capabilities_api.py +237 -102
  4. wds_client/api/cloning_api.py +782 -329
  5. wds_client/api/general_wds_information_api.py +463 -191
  6. wds_client/api/import_api.py +288 -127
  7. wds_client/api/instances_api.py +783 -333
  8. wds_client/api/job_api.py +518 -215
  9. wds_client/api/records_api.py +2512 -1089
  10. wds_client/api/schema_api.py +1450 -626
  11. wds_client/api_client.py +414 -310
  12. wds_client/api_response.py +21 -0
  13. wds_client/configuration.py +110 -53
  14. wds_client/exceptions.py +99 -20
  15. wds_client/models/__init__.py +4 -8
  16. wds_client/models/app.py +68 -125
  17. wds_client/models/attribute_data_type.py +31 -94
  18. wds_client/models/attribute_schema.py +71 -157
  19. wds_client/models/attribute_schema_update.py +69 -127
  20. wds_client/models/backup_job.py +96 -298
  21. wds_client/models/backup_response.py +70 -157
  22. wds_client/models/backup_restore_request.py +68 -129
  23. wds_client/models/batch_operation.py +83 -137
  24. wds_client/models/batch_record_request.py +70 -160
  25. wds_client/models/batch_response.py +68 -127
  26. wds_client/models/build.py +79 -207
  27. wds_client/models/capabilities.py +83 -103
  28. wds_client/models/clone_job.py +96 -298
  29. wds_client/models/clone_response.py +68 -129
  30. wds_client/models/commit.py +69 -125
  31. wds_client/models/error_response.py +78 -222
  32. wds_client/models/generic_job.py +102 -334
  33. wds_client/models/git.py +76 -129
  34. wds_client/models/import_request.py +77 -165
  35. wds_client/models/job.py +87 -243
  36. wds_client/models/job_v1.py +97 -277
  37. wds_client/models/record_query_response.py +86 -162
  38. wds_client/models/record_request.py +60 -96
  39. wds_client/models/record_response.py +70 -160
  40. wds_client/models/record_type_schema.py +84 -191
  41. wds_client/models/search_filter.py +60 -95
  42. wds_client/models/search_request.py +84 -220
  43. wds_client/models/search_sort_direction.py +17 -80
  44. wds_client/models/status_response.py +68 -125
  45. wds_client/models/tsv_upload_response.py +68 -127
  46. wds_client/models/version_response.py +86 -155
  47. wds_client/py.typed +0 -0
  48. wds_client/rest.py +136 -170
  49. wds_client-0.8.0.dist-info/METADATA +17 -0
  50. wds_client-0.8.0.dist-info/RECORD +52 -0
  51. wds_client/models/backup_job_all_of.py +0 -148
  52. wds_client/models/clone_job_all_of.py +0 -148
  53. wds_client/models/generic_job_all_of.py +0 -150
  54. wds_client/models/inline_object.py +0 -123
  55. wds_client-0.7.0.dist-info/METADATA +0 -16
  56. wds_client-0.7.0.dist-info/RECORD +0 -54
  57. {wds_client-0.7.0.dist-info → wds_client-0.8.0.dist-info}/WHEEL +0 -0
  58. {wds_client-0.7.0.dist-info → wds_client-0.8.0.dist-info}/top_level.txt +0 -0
wds_client/__init__.py CHANGED
@@ -5,16 +5,16 @@
5
5
  """
6
6
  Workspace Data Service
7
7
 
8
- This page lists current APIs. As of v0.2, all APIs are subject to change without notice. # noqa: E501
8
+ 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)
9
9
 
10
10
  The version of the OpenAPI document: v0.2
11
- Generated by: https://openapi-generator.tech
12
- """
11
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
13
12
 
13
+ Do not edit the class manually.
14
+ """ # noqa: E501
14
15
 
15
- from __future__ import absolute_import
16
16
 
17
- __version__ = "0.7.0"
17
+ __version__ = "0.8.0"
18
18
 
19
19
  # import apis into sdk package
20
20
  from wds_client.api.capabilities_api import CapabilitiesApi
@@ -27,20 +27,22 @@ from wds_client.api.records_api import RecordsApi
27
27
  from wds_client.api.schema_api import SchemaApi
28
28
 
29
29
  # import ApiClient
30
+ from wds_client.api_response import ApiResponse
30
31
  from wds_client.api_client import ApiClient
31
32
  from wds_client.configuration import Configuration
32
33
  from wds_client.exceptions import OpenApiException
33
34
  from wds_client.exceptions import ApiTypeError
34
35
  from wds_client.exceptions import ApiValueError
35
36
  from wds_client.exceptions import ApiKeyError
37
+ from wds_client.exceptions import ApiAttributeError
36
38
  from wds_client.exceptions import ApiException
39
+
37
40
  # import models into sdk package
38
41
  from wds_client.models.app import App
39
42
  from wds_client.models.attribute_data_type import AttributeDataType
40
43
  from wds_client.models.attribute_schema import AttributeSchema
41
44
  from wds_client.models.attribute_schema_update import AttributeSchemaUpdate
42
45
  from wds_client.models.backup_job import BackupJob
43
- from wds_client.models.backup_job_all_of import BackupJobAllOf
44
46
  from wds_client.models.backup_response import BackupResponse
45
47
  from wds_client.models.backup_restore_request import BackupRestoreRequest
46
48
  from wds_client.models.batch_operation import BatchOperation
@@ -49,15 +51,12 @@ from wds_client.models.batch_response import BatchResponse
49
51
  from wds_client.models.build import Build
50
52
  from wds_client.models.capabilities import Capabilities
51
53
  from wds_client.models.clone_job import CloneJob
52
- from wds_client.models.clone_job_all_of import CloneJobAllOf
53
54
  from wds_client.models.clone_response import CloneResponse
54
55
  from wds_client.models.commit import Commit
55
56
  from wds_client.models.error_response import ErrorResponse
56
57
  from wds_client.models.generic_job import GenericJob
57
- from wds_client.models.generic_job_all_of import GenericJobAllOf
58
58
  from wds_client.models.git import Git
59
59
  from wds_client.models.import_request import ImportRequest
60
- from wds_client.models.inline_object import InlineObject
61
60
  from wds_client.models.job import Job
62
61
  from wds_client.models.job_v1 import JobV1
63
62
  from wds_client.models.record_query_response import RecordQueryResponse
@@ -70,4 +69,3 @@ from wds_client.models.search_sort_direction import SearchSortDirection
70
69
  from wds_client.models.status_response import StatusResponse
71
70
  from wds_client.models.tsv_upload_response import TsvUploadResponse
72
71
  from wds_client.models.version_response import VersionResponse
73
-
@@ -1,5 +1,3 @@
1
- from __future__ import absolute_import
2
-
3
1
  # flake8: noqa
4
2
 
5
3
  # import apis into api package
@@ -11,3 +9,4 @@ from wds_client.api.instances_api import InstancesApi
11
9
  from wds_client.api.job_api import JobApi
12
10
  from wds_client.api.records_api import RecordsApi
13
11
  from wds_client.api.schema_api import SchemaApi
12
+
@@ -3,138 +3,273 @@
3
3
  """
4
4
  Workspace Data Service
5
5
 
6
- This page lists current APIs. As of v0.2, all APIs are subject to change without notice. # noqa: E501
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
7
 
8
8
  The version of the OpenAPI document: v0.2
9
- Generated by: https://openapi-generator.tech
10
- """
11
-
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
12
10
 
13
- from __future__ import absolute_import
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
14
13
 
15
- import re # noqa: F401
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
16
18
 
17
- # python 2 and python 3 compatibility library
18
- import six
19
+ from wds_client.models.capabilities import Capabilities
19
20
 
20
- from wds_client.api_client import ApiClient
21
- from wds_client.exceptions import ( # noqa: F401
22
- ApiTypeError,
23
- ApiValueError
24
- )
21
+ from wds_client.api_client import ApiClient, RequestSerialized
22
+ from wds_client.api_response import ApiResponse
23
+ from wds_client.rest import RESTResponseType
25
24
 
26
25
 
27
- class CapabilitiesApi(object):
26
+ class CapabilitiesApi:
28
27
  """NOTE: This class is auto generated by OpenAPI Generator
29
28
  Ref: https://openapi-generator.tech
30
29
 
31
30
  Do not edit the class manually.
32
31
  """
33
32
 
34
- def __init__(self, api_client=None):
33
+ def __init__(self, api_client=None) -> None:
35
34
  if api_client is None:
36
- api_client = ApiClient()
35
+ api_client = ApiClient.get_default()
37
36
  self.api_client = api_client
38
37
 
39
- def capabilities(self, **kwargs): # noqa: E501
40
- """Describes the capabilities of this WDS version. # noqa: E501
41
38
 
42
- This method makes a synchronous HTTP request by default. To make an
43
- asynchronous HTTP request, please pass async_req=True
44
- >>> thread = api.capabilities(async_req=True)
45
- >>> result = thread.get()
39
+ @validate_call
40
+ def capabilities(
41
+ self,
42
+ _request_timeout: Union[
43
+ None,
44
+ Annotated[StrictFloat, Field(gt=0)],
45
+ Tuple[
46
+ Annotated[StrictFloat, Field(gt=0)],
47
+ Annotated[StrictFloat, Field(gt=0)]
48
+ ]
49
+ ] = None,
50
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
51
+ _content_type: Optional[StrictStr] = None,
52
+ _headers: Optional[Dict[StrictStr, Any]] = None,
53
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
54
+ ) -> Capabilities:
55
+ """Describes the capabilities of this WDS version.
56
+
46
57
 
47
- :param async_req bool: execute request asynchronously
48
- :param _preload_content: if False, the urllib3.HTTPResponse object will
49
- be returned without reading/decoding response
50
- data. Default is True.
51
58
  :param _request_timeout: timeout setting for this request. If one
52
59
  number provided, it will be total request
53
60
  timeout. It can also be a pair (tuple) of
54
61
  (connection, read) timeouts.
55
- :return: Capabilities
56
- If the method is called asynchronously,
57
- returns the request thread.
58
- """
59
- kwargs['_return_http_data_only'] = True
60
- return self.capabilities_with_http_info(**kwargs) # noqa: E501
61
-
62
- def capabilities_with_http_info(self, **kwargs): # noqa: E501
63
- """Describes the capabilities of this WDS version. # noqa: E501
64
-
65
- This method makes a synchronous HTTP request by default. To make an
66
- asynchronous HTTP request, please pass async_req=True
67
- >>> thread = api.capabilities_with_http_info(async_req=True)
68
- >>> result = thread.get()
69
-
70
- :param async_req bool: execute request asynchronously
71
- :param _return_http_data_only: response data without head status code
72
- and headers
73
- :param _preload_content: if False, the urllib3.HTTPResponse object will
74
- be returned without reading/decoding response
75
- data. Default is True.
62
+ :type _request_timeout: int, tuple(int, int), optional
63
+ :param _request_auth: set to override the auth_settings for an a single
64
+ request; this effectively ignores the
65
+ authentication in the spec for a single request.
66
+ :type _request_auth: dict, optional
67
+ :param _content_type: force content-type for the request.
68
+ :type _content_type: str, Optional
69
+ :param _headers: set to override the headers for a single
70
+ request; this effectively ignores the headers
71
+ in the spec for a single request.
72
+ :type _headers: dict, optional
73
+ :param _host_index: set to override the host_index for a single
74
+ request; this effectively ignores the host_index
75
+ in the spec for a single request.
76
+ :type _host_index: int, optional
77
+ :return: Returns the result object.
78
+ """ # noqa: E501
79
+
80
+ _param = self._capabilities_serialize(
81
+ _request_auth=_request_auth,
82
+ _content_type=_content_type,
83
+ _headers=_headers,
84
+ _host_index=_host_index
85
+ )
86
+
87
+ _response_types_map: Dict[str, Optional[str]] = {
88
+ '200': "Capabilities",
89
+ }
90
+ response_data = self.api_client.call_api(
91
+ *_param,
92
+ _request_timeout=_request_timeout
93
+ )
94
+ response_data.read()
95
+ return self.api_client.response_deserialize(
96
+ response_data=response_data,
97
+ response_types_map=_response_types_map,
98
+ ).data
99
+
100
+
101
+ @validate_call
102
+ def capabilities_with_http_info(
103
+ self,
104
+ _request_timeout: Union[
105
+ None,
106
+ Annotated[StrictFloat, Field(gt=0)],
107
+ Tuple[
108
+ Annotated[StrictFloat, Field(gt=0)],
109
+ Annotated[StrictFloat, Field(gt=0)]
110
+ ]
111
+ ] = None,
112
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
113
+ _content_type: Optional[StrictStr] = None,
114
+ _headers: Optional[Dict[StrictStr, Any]] = None,
115
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
116
+ ) -> ApiResponse[Capabilities]:
117
+ """Describes the capabilities of this WDS version.
118
+
119
+
76
120
  :param _request_timeout: timeout setting for this request. If one
77
121
  number provided, it will be total request
78
122
  timeout. It can also be a pair (tuple) of
79
123
  (connection, read) timeouts.
80
- :return: tuple(Capabilities, status_code(int), headers(HTTPHeaderDict))
81
- If the method is called asynchronously,
82
- returns the request thread.
83
- """
124
+ :type _request_timeout: int, tuple(int, int), optional
125
+ :param _request_auth: set to override the auth_settings for an a single
126
+ request; this effectively ignores the
127
+ authentication in the spec for a single request.
128
+ :type _request_auth: dict, optional
129
+ :param _content_type: force content-type for the request.
130
+ :type _content_type: str, Optional
131
+ :param _headers: set to override the headers for a single
132
+ request; this effectively ignores the headers
133
+ in the spec for a single request.
134
+ :type _headers: dict, optional
135
+ :param _host_index: set to override the host_index for a single
136
+ request; this effectively ignores the host_index
137
+ in the spec for a single request.
138
+ :type _host_index: int, optional
139
+ :return: Returns the result object.
140
+ """ # noqa: E501
84
141
 
85
- local_var_params = locals()
142
+ _param = self._capabilities_serialize(
143
+ _request_auth=_request_auth,
144
+ _content_type=_content_type,
145
+ _headers=_headers,
146
+ _host_index=_host_index
147
+ )
86
148
 
87
- all_params = [
88
- ]
89
- all_params.extend(
149
+ _response_types_map: Dict[str, Optional[str]] = {
150
+ '200': "Capabilities",
151
+ }
152
+ response_data = self.api_client.call_api(
153
+ *_param,
154
+ _request_timeout=_request_timeout
155
+ )
156
+ response_data.read()
157
+ return self.api_client.response_deserialize(
158
+ response_data=response_data,
159
+ response_types_map=_response_types_map,
160
+ )
161
+
162
+
163
+ @validate_call
164
+ def capabilities_without_preload_content(
165
+ self,
166
+ _request_timeout: Union[
167
+ None,
168
+ Annotated[StrictFloat, Field(gt=0)],
169
+ Tuple[
170
+ Annotated[StrictFloat, Field(gt=0)],
171
+ Annotated[StrictFloat, Field(gt=0)]
172
+ ]
173
+ ] = None,
174
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
175
+ _content_type: Optional[StrictStr] = None,
176
+ _headers: Optional[Dict[StrictStr, Any]] = None,
177
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
178
+ ) -> RESTResponseType:
179
+ """Describes the capabilities of this WDS version.
180
+
181
+
182
+ :param _request_timeout: timeout setting for this request. If one
183
+ number provided, it will be total request
184
+ timeout. It can also be a pair (tuple) of
185
+ (connection, read) timeouts.
186
+ :type _request_timeout: int, tuple(int, int), optional
187
+ :param _request_auth: set to override the auth_settings for an a single
188
+ request; this effectively ignores the
189
+ authentication in the spec for a single request.
190
+ :type _request_auth: dict, optional
191
+ :param _content_type: force content-type for the request.
192
+ :type _content_type: str, Optional
193
+ :param _headers: set to override the headers for a single
194
+ request; this effectively ignores the headers
195
+ in the spec for a single request.
196
+ :type _headers: dict, optional
197
+ :param _host_index: set to override the host_index for a single
198
+ request; this effectively ignores the host_index
199
+ in the spec for a single request.
200
+ :type _host_index: int, optional
201
+ :return: Returns the result object.
202
+ """ # noqa: E501
203
+
204
+ _param = self._capabilities_serialize(
205
+ _request_auth=_request_auth,
206
+ _content_type=_content_type,
207
+ _headers=_headers,
208
+ _host_index=_host_index
209
+ )
210
+
211
+ _response_types_map: Dict[str, Optional[str]] = {
212
+ '200': "Capabilities",
213
+ }
214
+ response_data = self.api_client.call_api(
215
+ *_param,
216
+ _request_timeout=_request_timeout
217
+ )
218
+ return response_data.response
219
+
220
+
221
+ def _capabilities_serialize(
222
+ self,
223
+ _request_auth,
224
+ _content_type,
225
+ _headers,
226
+ _host_index,
227
+ ) -> RequestSerialized:
228
+
229
+ _host = None
230
+
231
+ _collection_formats: Dict[str, str] = {
232
+ }
233
+
234
+ _path_params: Dict[str, str] = {}
235
+ _query_params: List[Tuple[str, str]] = []
236
+ _header_params: Dict[str, Optional[str]] = _headers or {}
237
+ _form_params: List[Tuple[str, str]] = []
238
+ _files: Dict[str, Union[str, bytes]] = {}
239
+ _body_params: Optional[bytes] = None
240
+
241
+ # process the path parameters
242
+ # process the query parameters
243
+ # process the header parameters
244
+ # process the form parameters
245
+ # process the body parameter
246
+
247
+
248
+ # set the HTTP header `Accept`
249
+ _header_params['Accept'] = self.api_client.select_header_accept(
90
250
  [
91
- 'async_req',
92
- '_return_http_data_only',
93
- '_preload_content',
94
- '_request_timeout'
251
+ 'application/json'
95
252
  ]
96
253
  )
97
254
 
98
- for key, val in six.iteritems(local_var_params['kwargs']):
99
- if key not in all_params:
100
- raise ApiTypeError(
101
- "Got an unexpected keyword argument '%s'"
102
- " to method capabilities" % key
103
- )
104
- local_var_params[key] = val
105
- del local_var_params['kwargs']
106
-
107
- collection_formats = {}
108
-
109
- path_params = {}
110
-
111
- query_params = []
112
-
113
- header_params = {}
114
-
115
- form_params = []
116
- local_var_files = {}
117
-
118
- body_params = None
119
- # HTTP header `Accept`
120
- header_params['Accept'] = self.api_client.select_header_accept(
121
- ['application/json']) # noqa: E501
122
-
123
- # Authentication setting
124
- auth_settings = [] # noqa: E501
125
-
126
- return self.api_client.call_api(
127
- '/capabilities/v1', 'GET',
128
- path_params,
129
- query_params,
130
- header_params,
131
- body=body_params,
132
- post_params=form_params,
133
- files=local_var_files,
134
- response_type='Capabilities', # noqa: E501
135
- auth_settings=auth_settings,
136
- async_req=local_var_params.get('async_req'),
137
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
138
- _preload_content=local_var_params.get('_preload_content', True),
139
- _request_timeout=local_var_params.get('_request_timeout'),
140
- collection_formats=collection_formats)
255
+
256
+ # authentication setting
257
+ _auth_settings: List[str] = [
258
+ ]
259
+
260
+ return self.api_client.param_serialize(
261
+ method='GET',
262
+ resource_path='/capabilities/v1',
263
+ path_params=_path_params,
264
+ query_params=_query_params,
265
+ header_params=_header_params,
266
+ body=_body_params,
267
+ post_params=_form_params,
268
+ files=_files,
269
+ auth_settings=_auth_settings,
270
+ collection_formats=_collection_formats,
271
+ _host=_host,
272
+ _request_auth=_request_auth
273
+ )
274
+
275
+