wds-client 0.7.0__py3-none-any.whl → 0.9.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.
- wds_client/__init__.py +8 -10
- wds_client/api/__init__.py +1 -2
- wds_client/api/capabilities_api.py +237 -102
- wds_client/api/cloning_api.py +782 -329
- wds_client/api/general_wds_information_api.py +463 -191
- wds_client/api/import_api.py +288 -127
- wds_client/api/instances_api.py +783 -333
- wds_client/api/job_api.py +518 -215
- wds_client/api/records_api.py +2512 -1089
- wds_client/api/schema_api.py +1450 -626
- wds_client/api_client.py +414 -310
- wds_client/api_response.py +21 -0
- wds_client/configuration.py +110 -53
- wds_client/exceptions.py +99 -20
- wds_client/models/__init__.py +4 -8
- wds_client/models/app.py +68 -125
- wds_client/models/attribute_data_type.py +31 -94
- wds_client/models/attribute_schema.py +71 -157
- wds_client/models/attribute_schema_update.py +69 -127
- wds_client/models/backup_job.py +96 -298
- wds_client/models/backup_response.py +70 -157
- wds_client/models/backup_restore_request.py +68 -129
- wds_client/models/batch_operation.py +83 -137
- wds_client/models/batch_record_request.py +70 -160
- wds_client/models/batch_response.py +68 -127
- wds_client/models/build.py +79 -207
- wds_client/models/capabilities.py +83 -103
- wds_client/models/clone_job.py +96 -298
- wds_client/models/clone_response.py +68 -129
- wds_client/models/commit.py +69 -125
- wds_client/models/error_response.py +78 -222
- wds_client/models/generic_job.py +102 -334
- wds_client/models/git.py +76 -129
- wds_client/models/import_request.py +77 -165
- wds_client/models/job.py +87 -243
- wds_client/models/job_v1.py +97 -277
- wds_client/models/record_query_response.py +86 -162
- wds_client/models/record_request.py +60 -96
- wds_client/models/record_response.py +70 -160
- wds_client/models/record_type_schema.py +84 -191
- wds_client/models/search_filter.py +60 -95
- wds_client/models/search_request.py +84 -220
- wds_client/models/search_sort_direction.py +17 -80
- wds_client/models/status_response.py +68 -125
- wds_client/models/tsv_upload_response.py +68 -127
- wds_client/models/version_response.py +86 -155
- wds_client/py.typed +0 -0
- wds_client/rest.py +136 -170
- wds_client-0.9.0.dist-info/METADATA +17 -0
- wds_client-0.9.0.dist-info/RECORD +52 -0
- {wds_client-0.7.0.dist-info → wds_client-0.9.0.dist-info}/WHEEL +1 -1
- wds_client/models/backup_job_all_of.py +0 -148
- wds_client/models/clone_job_all_of.py +0 -148
- wds_client/models/generic_job_all_of.py +0 -150
- wds_client/models/inline_object.py +0 -123
- wds_client-0.7.0.dist-info/METADATA +0 -16
- wds_client-0.7.0.dist-info/RECORD +0 -54
- {wds_client-0.7.0.dist-info → wds_client-0.9.0.dist-info}/top_level.txt +0 -0
@@ -3,146 +3,87 @@
|
|
3
3
|
"""
|
4
4
|
Workspace Data Service
|
5
5
|
|
6
|
-
This page lists current APIs.
|
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
|
10
|
-
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
11
13
|
|
12
14
|
|
15
|
+
from __future__ import annotations
|
13
16
|
import pprint
|
14
17
|
import re # noqa: F401
|
18
|
+
import json
|
15
19
|
|
16
|
-
import
|
17
|
-
|
18
|
-
from
|
19
|
-
|
20
|
-
|
21
|
-
class BatchResponse(object):
|
22
|
-
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
|
-
Ref: https://openapi-generator.tech
|
24
|
-
|
25
|
-
Do not edit the class manually.
|
26
|
-
"""
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
22
|
+
from typing import Optional, Set
|
23
|
+
from typing_extensions import Self
|
27
24
|
|
25
|
+
class BatchResponse(BaseModel):
|
28
26
|
"""
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
self.
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
"""
|
66
|
-
return self._message
|
67
|
-
|
68
|
-
@message.setter
|
69
|
-
def message(self, message):
|
70
|
-
"""Sets the message of this BatchResponse.
|
71
|
-
|
72
|
-
|
73
|
-
:param message: The message of this BatchResponse. # noqa: E501
|
74
|
-
:type: str
|
27
|
+
BatchResponse
|
28
|
+
""" # noqa: E501
|
29
|
+
message: StrictStr
|
30
|
+
records_modified: StrictInt = Field(alias="recordsModified")
|
31
|
+
__properties: ClassVar[List[str]] = ["message", "recordsModified"]
|
32
|
+
|
33
|
+
model_config = ConfigDict(
|
34
|
+
populate_by_name=True,
|
35
|
+
validate_assignment=True,
|
36
|
+
protected_namespaces=(),
|
37
|
+
)
|
38
|
+
|
39
|
+
|
40
|
+
def to_str(self) -> str:
|
41
|
+
"""Returns the string representation of the model using alias"""
|
42
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
43
|
+
|
44
|
+
def to_json(self) -> str:
|
45
|
+
"""Returns the JSON representation of the model using alias"""
|
46
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
47
|
+
return json.dumps(self.to_dict())
|
48
|
+
|
49
|
+
@classmethod
|
50
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
51
|
+
"""Create an instance of BatchResponse from a JSON string"""
|
52
|
+
return cls.from_dict(json.loads(json_str))
|
53
|
+
|
54
|
+
def to_dict(self) -> Dict[str, Any]:
|
55
|
+
"""Return the dictionary representation of the model using alias.
|
56
|
+
|
57
|
+
This has the following differences from calling pydantic's
|
58
|
+
`self.model_dump(by_alias=True)`:
|
59
|
+
|
60
|
+
* `None` is only added to the output dict for nullable fields that
|
61
|
+
were set at model initialization. Other fields with value `None`
|
62
|
+
are ignored.
|
75
63
|
"""
|
76
|
-
|
77
|
-
|
64
|
+
excluded_fields: Set[str] = set([
|
65
|
+
])
|
78
66
|
|
79
|
-
|
67
|
+
_dict = self.model_dump(
|
68
|
+
by_alias=True,
|
69
|
+
exclude=excluded_fields,
|
70
|
+
exclude_none=True,
|
71
|
+
)
|
72
|
+
return _dict
|
80
73
|
|
81
|
-
@
|
82
|
-
def
|
83
|
-
"""
|
74
|
+
@classmethod
|
75
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
76
|
+
"""Create an instance of BatchResponse from a dict"""
|
77
|
+
if obj is None:
|
78
|
+
return None
|
84
79
|
|
80
|
+
if not isinstance(obj, dict):
|
81
|
+
return cls.model_validate(obj)
|
85
82
|
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
@records_modified.setter
|
92
|
-
def records_modified(self, records_modified):
|
93
|
-
"""Sets the records_modified of this BatchResponse.
|
83
|
+
_obj = cls.model_validate({
|
84
|
+
"message": obj.get("message"),
|
85
|
+
"recordsModified": obj.get("recordsModified")
|
86
|
+
})
|
87
|
+
return _obj
|
94
88
|
|
95
89
|
|
96
|
-
:param records_modified: The records_modified of this BatchResponse. # noqa: E501
|
97
|
-
:type: int
|
98
|
-
"""
|
99
|
-
if self.local_vars_configuration.client_side_validation and records_modified is None: # noqa: E501
|
100
|
-
raise ValueError("Invalid value for `records_modified`, must not be `None`") # noqa: E501
|
101
|
-
|
102
|
-
self._records_modified = records_modified
|
103
|
-
|
104
|
-
def to_dict(self):
|
105
|
-
"""Returns the model properties as a dict"""
|
106
|
-
result = {}
|
107
|
-
|
108
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
109
|
-
value = getattr(self, attr)
|
110
|
-
if isinstance(value, list):
|
111
|
-
result[attr] = list(map(
|
112
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
113
|
-
value
|
114
|
-
))
|
115
|
-
elif hasattr(value, "to_dict"):
|
116
|
-
result[attr] = value.to_dict()
|
117
|
-
elif isinstance(value, dict):
|
118
|
-
result[attr] = dict(map(
|
119
|
-
lambda item: (item[0], item[1].to_dict())
|
120
|
-
if hasattr(item[1], "to_dict") else item,
|
121
|
-
value.items()
|
122
|
-
))
|
123
|
-
else:
|
124
|
-
result[attr] = value
|
125
|
-
|
126
|
-
return result
|
127
|
-
|
128
|
-
def to_str(self):
|
129
|
-
"""Returns the string representation of the model"""
|
130
|
-
return pprint.pformat(self.to_dict())
|
131
|
-
|
132
|
-
def __repr__(self):
|
133
|
-
"""For `print` and `pprint`"""
|
134
|
-
return self.to_str()
|
135
|
-
|
136
|
-
def __eq__(self, other):
|
137
|
-
"""Returns true if both objects are equal"""
|
138
|
-
if not isinstance(other, BatchResponse):
|
139
|
-
return False
|
140
|
-
|
141
|
-
return self.to_dict() == other.to_dict()
|
142
|
-
|
143
|
-
def __ne__(self, other):
|
144
|
-
"""Returns true if both objects are not equal"""
|
145
|
-
if not isinstance(other, BatchResponse):
|
146
|
-
return True
|
147
|
-
|
148
|
-
return self.to_dict() != other.to_dict()
|
wds_client/models/build.py
CHANGED
@@ -3,222 +3,94 @@
|
|
3
3
|
"""
|
4
4
|
Workspace Data Service
|
5
5
|
|
6
|
-
This page lists current APIs.
|
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
|
10
|
-
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
11
13
|
|
12
14
|
|
15
|
+
from __future__ import annotations
|
13
16
|
import pprint
|
14
17
|
import re # noqa: F401
|
18
|
+
import json
|
15
19
|
|
16
|
-
import
|
17
|
-
|
18
|
-
from
|
20
|
+
from datetime import datetime
|
21
|
+
from pydantic import BaseModel, ConfigDict, StrictStr
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
23
|
+
from typing import Optional, Set
|
24
|
+
from typing_extensions import Self
|
19
25
|
|
20
|
-
|
21
|
-
class Build(object):
|
22
|
-
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
|
-
Ref: https://openapi-generator.tech
|
24
|
-
|
25
|
-
Do not edit the class manually.
|
26
|
+
class Build(BaseModel):
|
26
27
|
"""
|
27
|
-
|
28
|
-
"""
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
"""
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
self.
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
if name is not None:
|
67
|
-
self.name = name
|
68
|
-
if time is not None:
|
69
|
-
self.time = time
|
70
|
-
if version is not None:
|
71
|
-
self.version = version
|
72
|
-
if group is not None:
|
73
|
-
self.group = group
|
74
|
-
|
75
|
-
@property
|
76
|
-
def artifact(self):
|
77
|
-
"""Gets the artifact of this Build. # noqa: E501
|
78
|
-
|
79
|
-
|
80
|
-
:return: The artifact of this Build. # noqa: E501
|
81
|
-
:rtype: str
|
28
|
+
Build
|
29
|
+
""" # noqa: E501
|
30
|
+
artifact: Optional[StrictStr] = None
|
31
|
+
name: Optional[StrictStr] = None
|
32
|
+
time: Optional[datetime] = None
|
33
|
+
version: Optional[StrictStr] = None
|
34
|
+
group: Optional[StrictStr] = None
|
35
|
+
__properties: ClassVar[List[str]] = ["artifact", "name", "time", "version", "group"]
|
36
|
+
|
37
|
+
model_config = ConfigDict(
|
38
|
+
populate_by_name=True,
|
39
|
+
validate_assignment=True,
|
40
|
+
protected_namespaces=(),
|
41
|
+
)
|
42
|
+
|
43
|
+
|
44
|
+
def to_str(self) -> str:
|
45
|
+
"""Returns the string representation of the model using alias"""
|
46
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
47
|
+
|
48
|
+
def to_json(self) -> str:
|
49
|
+
"""Returns the JSON representation of the model using alias"""
|
50
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
51
|
+
return json.dumps(self.to_dict())
|
52
|
+
|
53
|
+
@classmethod
|
54
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
55
|
+
"""Create an instance of Build from a JSON string"""
|
56
|
+
return cls.from_dict(json.loads(json_str))
|
57
|
+
|
58
|
+
def to_dict(self) -> Dict[str, Any]:
|
59
|
+
"""Return the dictionary representation of the model using alias.
|
60
|
+
|
61
|
+
This has the following differences from calling pydantic's
|
62
|
+
`self.model_dump(by_alias=True)`:
|
63
|
+
|
64
|
+
* `None` is only added to the output dict for nullable fields that
|
65
|
+
were set at model initialization. Other fields with value `None`
|
66
|
+
are ignored.
|
82
67
|
"""
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
:param name: The name of this Build. # noqa: E501
|
112
|
-
:type: str
|
113
|
-
"""
|
114
|
-
|
115
|
-
self._name = name
|
116
|
-
|
117
|
-
@property
|
118
|
-
def time(self):
|
119
|
-
"""Gets the time of this Build. # noqa: E501
|
68
|
+
excluded_fields: Set[str] = set([
|
69
|
+
])
|
70
|
+
|
71
|
+
_dict = self.model_dump(
|
72
|
+
by_alias=True,
|
73
|
+
exclude=excluded_fields,
|
74
|
+
exclude_none=True,
|
75
|
+
)
|
76
|
+
return _dict
|
77
|
+
|
78
|
+
@classmethod
|
79
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
80
|
+
"""Create an instance of Build from a dict"""
|
81
|
+
if obj is None:
|
82
|
+
return None
|
83
|
+
|
84
|
+
if not isinstance(obj, dict):
|
85
|
+
return cls.model_validate(obj)
|
86
|
+
|
87
|
+
_obj = cls.model_validate({
|
88
|
+
"artifact": obj.get("artifact"),
|
89
|
+
"name": obj.get("name"),
|
90
|
+
"time": obj.get("time"),
|
91
|
+
"version": obj.get("version"),
|
92
|
+
"group": obj.get("group")
|
93
|
+
})
|
94
|
+
return _obj
|
120
95
|
|
121
96
|
|
122
|
-
:return: The time of this Build. # noqa: E501
|
123
|
-
:rtype: datetime
|
124
|
-
"""
|
125
|
-
return self._time
|
126
|
-
|
127
|
-
@time.setter
|
128
|
-
def time(self, time):
|
129
|
-
"""Sets the time of this Build.
|
130
|
-
|
131
|
-
|
132
|
-
:param time: The time of this Build. # noqa: E501
|
133
|
-
:type: datetime
|
134
|
-
"""
|
135
|
-
|
136
|
-
self._time = time
|
137
|
-
|
138
|
-
@property
|
139
|
-
def version(self):
|
140
|
-
"""Gets the version of this Build. # noqa: E501
|
141
|
-
|
142
|
-
|
143
|
-
:return: The version of this Build. # noqa: E501
|
144
|
-
:rtype: str
|
145
|
-
"""
|
146
|
-
return self._version
|
147
|
-
|
148
|
-
@version.setter
|
149
|
-
def version(self, version):
|
150
|
-
"""Sets the version of this Build.
|
151
|
-
|
152
|
-
|
153
|
-
:param version: The version of this Build. # noqa: E501
|
154
|
-
:type: str
|
155
|
-
"""
|
156
|
-
|
157
|
-
self._version = version
|
158
|
-
|
159
|
-
@property
|
160
|
-
def group(self):
|
161
|
-
"""Gets the group of this Build. # noqa: E501
|
162
|
-
|
163
|
-
|
164
|
-
:return: The group of this Build. # noqa: E501
|
165
|
-
:rtype: str
|
166
|
-
"""
|
167
|
-
return self._group
|
168
|
-
|
169
|
-
@group.setter
|
170
|
-
def group(self, group):
|
171
|
-
"""Sets the group of this Build.
|
172
|
-
|
173
|
-
|
174
|
-
:param group: The group of this Build. # noqa: E501
|
175
|
-
:type: str
|
176
|
-
"""
|
177
|
-
|
178
|
-
self._group = group
|
179
|
-
|
180
|
-
def to_dict(self):
|
181
|
-
"""Returns the model properties as a dict"""
|
182
|
-
result = {}
|
183
|
-
|
184
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
185
|
-
value = getattr(self, attr)
|
186
|
-
if isinstance(value, list):
|
187
|
-
result[attr] = list(map(
|
188
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
189
|
-
value
|
190
|
-
))
|
191
|
-
elif hasattr(value, "to_dict"):
|
192
|
-
result[attr] = value.to_dict()
|
193
|
-
elif isinstance(value, dict):
|
194
|
-
result[attr] = dict(map(
|
195
|
-
lambda item: (item[0], item[1].to_dict())
|
196
|
-
if hasattr(item[1], "to_dict") else item,
|
197
|
-
value.items()
|
198
|
-
))
|
199
|
-
else:
|
200
|
-
result[attr] = value
|
201
|
-
|
202
|
-
return result
|
203
|
-
|
204
|
-
def to_str(self):
|
205
|
-
"""Returns the string representation of the model"""
|
206
|
-
return pprint.pformat(self.to_dict())
|
207
|
-
|
208
|
-
def __repr__(self):
|
209
|
-
"""For `print` and `pprint`"""
|
210
|
-
return self.to_str()
|
211
|
-
|
212
|
-
def __eq__(self, other):
|
213
|
-
"""Returns true if both objects are equal"""
|
214
|
-
if not isinstance(other, Build):
|
215
|
-
return False
|
216
|
-
|
217
|
-
return self.to_dict() == other.to_dict()
|
218
|
-
|
219
|
-
def __ne__(self, other):
|
220
|
-
"""Returns true if both objects are not equal"""
|
221
|
-
if not isinstance(other, Build):
|
222
|
-
return True
|
223
|
-
|
224
|
-
return self.to_dict() != other.to_dict()
|