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
@@ -3,146 +3,87 @@
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
- """
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 six
17
-
18
- from wds_client.configuration import Configuration
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
- Attributes:
30
- openapi_types (dict): The key is attribute name
31
- and the value is attribute type.
32
- attribute_map (dict): The key is attribute name
33
- and the value is json key in definition.
34
- """
35
- openapi_types = {
36
- 'message': 'str',
37
- 'records_modified': 'int'
38
- }
39
-
40
- attribute_map = {
41
- 'message': 'message',
42
- 'records_modified': 'recordsModified'
43
- }
44
-
45
- def __init__(self, message=None, records_modified=None, local_vars_configuration=None): # noqa: E501
46
- """BatchResponse - a model defined in OpenAPI""" # noqa: E501
47
- if local_vars_configuration is None:
48
- local_vars_configuration = Configuration()
49
- self.local_vars_configuration = local_vars_configuration
50
-
51
- self._message = None
52
- self._records_modified = None
53
- self.discriminator = None
54
-
55
- self.message = message
56
- self.records_modified = records_modified
57
-
58
- @property
59
- def message(self):
60
- """Gets the message of this BatchResponse. # noqa: E501
61
-
62
-
63
- :return: The message of this BatchResponse. # noqa: E501
64
- :rtype: str
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
- if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501
77
- raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501
64
+ excluded_fields: Set[str] = set([
65
+ ])
78
66
 
79
- self._message = message
67
+ _dict = self.model_dump(
68
+ by_alias=True,
69
+ exclude=excluded_fields,
70
+ exclude_none=True,
71
+ )
72
+ return _dict
80
73
 
81
- @property
82
- def records_modified(self):
83
- """Gets the records_modified of this BatchResponse. # noqa: E501
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
- :return: The records_modified of this BatchResponse. # noqa: E501
87
- :rtype: int
88
- """
89
- return self._records_modified
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()
@@ -3,222 +3,94 @@
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
- """
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 six
17
-
18
- from wds_client.configuration import Configuration
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
- Attributes:
30
- openapi_types (dict): The key is attribute name
31
- and the value is attribute type.
32
- attribute_map (dict): The key is attribute name
33
- and the value is json key in definition.
34
- """
35
- openapi_types = {
36
- 'artifact': 'str',
37
- 'name': 'str',
38
- 'time': 'datetime',
39
- 'version': 'str',
40
- 'group': 'str'
41
- }
42
-
43
- attribute_map = {
44
- 'artifact': 'artifact',
45
- 'name': 'name',
46
- 'time': 'time',
47
- 'version': 'version',
48
- 'group': 'group'
49
- }
50
-
51
- def __init__(self, artifact=None, name=None, time=None, version=None, group=None, local_vars_configuration=None): # noqa: E501
52
- """Build - a model defined in OpenAPI""" # noqa: E501
53
- if local_vars_configuration is None:
54
- local_vars_configuration = Configuration()
55
- self.local_vars_configuration = local_vars_configuration
56
-
57
- self._artifact = None
58
- self._name = None
59
- self._time = None
60
- self._version = None
61
- self._group = None
62
- self.discriminator = None
63
-
64
- if artifact is not None:
65
- self.artifact = artifact
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
- return self._artifact
84
-
85
- @artifact.setter
86
- def artifact(self, artifact):
87
- """Sets the artifact of this Build.
88
-
89
-
90
- :param artifact: The artifact of this Build. # noqa: E501
91
- :type: str
92
- """
93
-
94
- self._artifact = artifact
95
-
96
- @property
97
- def name(self):
98
- """Gets the name of this Build. # noqa: E501
99
-
100
-
101
- :return: The name of this Build. # noqa: E501
102
- :rtype: str
103
- """
104
- return self._name
105
-
106
- @name.setter
107
- def name(self, name):
108
- """Sets the name of this Build.
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()