wds-client 0.17.0__tar.gz → 0.18.0__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {wds_client-0.17.0 → wds_client-0.18.0}/PKG-INFO +1 -1
- {wds_client-0.17.0 → wds_client-0.18.0}/README.md +2 -2
- {wds_client-0.17.0 → wds_client-0.18.0}/pyproject.toml +1 -1
- {wds_client-0.17.0 → wds_client-0.18.0}/setup.py +1 -1
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/__init__.py +1 -1
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api_client.py +8 -1
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/configuration.py +1 -1
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/generic_job.py +2 -2
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/job_v1.py +2 -2
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/record_query_response.py +3 -3
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/record_type_schema.py +3 -3
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client.egg-info/PKG-INFO +1 -1
- {wds_client-0.17.0 → wds_client-0.18.0}/setup.cfg +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_app.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_attribute_data_type.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_attribute_schema.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_attribute_schema_update.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_backup_job.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_backup_response.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_backup_restore_request.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_batch_operation.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_batch_record_request.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_batch_response.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_build.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_capabilities.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_capabilities_api.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_clone_job.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_clone_response.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_cloning_api.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_collection.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_collection_api.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_collection_request.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_commit.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_error_response.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_general_wds_information_api.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_generic_job.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_git.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_import_api.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_import_request.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_instances_api.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_job.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_job_api.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_job_v1.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_record_query_response.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_record_request.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_record_response.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_record_type_schema.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_records_api.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_schema_api.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_search_filter.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_search_request.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_search_sort_direction.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_status_response.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_tsv_upload_response.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_version_response.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_workspace_api.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_workspace_init.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/test/test_workspace_init_clone.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api/__init__.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api/capabilities_api.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api/cloning_api.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api/collection_api.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api/general_wds_information_api.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api/import_api.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api/instances_api.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api/job_api.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api/records_api.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api/schema_api.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api/workspace_api.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api_response.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/exceptions.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/__init__.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/app.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/attribute_data_type.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/attribute_schema.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/attribute_schema_update.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/backup_job.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/backup_response.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/backup_restore_request.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/batch_operation.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/batch_record_request.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/batch_response.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/build.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/capabilities.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/clone_job.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/clone_response.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/collection.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/collection_request.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/commit.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/error_response.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/git.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/import_request.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/job.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/record_request.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/record_response.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/search_filter.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/search_request.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/search_sort_direction.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/status_response.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/tsv_upload_response.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/version_response.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/workspace_init.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/workspace_init_clone.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/py.typed +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/rest.py +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client.egg-info/SOURCES.txt +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client.egg-info/dependency_links.txt +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client.egg-info/requires.txt +0 -0
- {wds_client-0.17.0 → wds_client-0.18.0}/wds_client.egg-info/top_level.txt +0 -0
@@ -9,8 +9,8 @@ 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.
|
13
|
-
- Generator version: 7.
|
12
|
+
- Package version: 0.18.0
|
13
|
+
- Generator version: 7.8.0
|
14
14
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
15
15
|
|
16
16
|
## Requirements.
|
@@ -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.18.0"
|
25
25
|
PYTHON_REQUIRES = ">=3.7"
|
26
26
|
REQUIRES = [
|
27
27
|
"urllib3 >= 1.25.3, < 2.1.0",
|
@@ -15,6 +15,7 @@
|
|
15
15
|
import datetime
|
16
16
|
from dateutil.parser import parse
|
17
17
|
from enum import Enum
|
18
|
+
import decimal
|
18
19
|
import json
|
19
20
|
import mimetypes
|
20
21
|
import os
|
@@ -66,6 +67,7 @@ class ApiClient:
|
|
66
67
|
'bool': bool,
|
67
68
|
'date': datetime.date,
|
68
69
|
'datetime': datetime.datetime,
|
70
|
+
'decimal': decimal.Decimal,
|
69
71
|
'object': object,
|
70
72
|
}
|
71
73
|
_pool = None
|
@@ -88,7 +90,7 @@ class ApiClient:
|
|
88
90
|
self.default_headers[header_name] = header_value
|
89
91
|
self.cookie = cookie
|
90
92
|
# Set default User-Agent.
|
91
|
-
self.user_agent = 'wds-client/0.
|
93
|
+
self.user_agent = 'wds-client/0.18.0/python'
|
92
94
|
self.client_side_validation = configuration.client_side_validation
|
93
95
|
|
94
96
|
def __enter__(self):
|
@@ -338,6 +340,7 @@ class ApiClient:
|
|
338
340
|
If obj is str, int, long, float, bool, return directly.
|
339
341
|
If obj is datetime.datetime, datetime.date
|
340
342
|
convert to string in iso8601 format.
|
343
|
+
If obj is decimal.Decimal return string representation.
|
341
344
|
If obj is list, sanitize each element in the list.
|
342
345
|
If obj is dict, return the dict.
|
343
346
|
If obj is OpenAPI model, return the properties dict.
|
@@ -363,6 +366,8 @@ class ApiClient:
|
|
363
366
|
)
|
364
367
|
elif isinstance(obj, (datetime.datetime, datetime.date)):
|
365
368
|
return obj.isoformat()
|
369
|
+
elif isinstance(obj, decimal.Decimal):
|
370
|
+
return str(obj)
|
366
371
|
|
367
372
|
elif isinstance(obj, dict):
|
368
373
|
obj_dict = obj
|
@@ -454,6 +459,8 @@ class ApiClient:
|
|
454
459
|
return self.__deserialize_date(data)
|
455
460
|
elif klass == datetime.datetime:
|
456
461
|
return self.__deserialize_datetime(data)
|
462
|
+
elif klass == decimal.Decimal:
|
463
|
+
return decimal.Decimal(data)
|
457
464
|
elif issubclass(klass, Enum):
|
458
465
|
return self.__deserialize_enum(data, klass)
|
459
466
|
else:
|
@@ -392,7 +392,7 @@ class Configuration:
|
|
392
392
|
"OS: {env}\n"\
|
393
393
|
"Python Version: {pyversion}\n"\
|
394
394
|
"Version of the API: v0.2\n"\
|
395
|
-
"SDK Package Version: 0.
|
395
|
+
"SDK Package Version: 0.18.0".\
|
396
396
|
format(env=sys.platform, pyversion=sys.version)
|
397
397
|
|
398
398
|
def get_host_settings(self):
|
@@ -41,8 +41,8 @@ class GenericJob(BaseModel):
|
|
41
41
|
@field_validator('job_type')
|
42
42
|
def job_type_validate_enum(cls, value):
|
43
43
|
"""Validates the enum"""
|
44
|
-
if value not in set(['DATA_IMPORT', 'UNKNOWN']):
|
45
|
-
raise ValueError("must be one of enum values ('DATA_IMPORT', 'UNKNOWN')")
|
44
|
+
if value not in set(['DATA_IMPORT', 'WORKSPACE_INIT', 'UNKNOWN']):
|
45
|
+
raise ValueError("must be one of enum values ('DATA_IMPORT', 'WORKSPACE_INIT', 'UNKNOWN')")
|
46
46
|
return value
|
47
47
|
|
48
48
|
@field_validator('status')
|
@@ -39,8 +39,8 @@ class JobV1(BaseModel):
|
|
39
39
|
@field_validator('job_type')
|
40
40
|
def job_type_validate_enum(cls, value):
|
41
41
|
"""Validates the enum"""
|
42
|
-
if value not in set(['DATA_IMPORT', 'UNKNOWN']):
|
43
|
-
raise ValueError("must be one of enum values ('DATA_IMPORT', 'UNKNOWN')")
|
42
|
+
if value not in set(['DATA_IMPORT', 'WORKSPACE_INIT', 'UNKNOWN']):
|
43
|
+
raise ValueError("must be one of enum values ('DATA_IMPORT', 'WORKSPACE_INIT', 'UNKNOWN')")
|
44
44
|
return value
|
45
45
|
|
46
46
|
@field_validator('status')
|
@@ -78,9 +78,9 @@ class RecordQueryResponse(BaseModel):
|
|
78
78
|
# override the default output from pydantic by calling `to_dict()` of each item in records (list)
|
79
79
|
_items = []
|
80
80
|
if self.records:
|
81
|
-
for
|
82
|
-
if
|
83
|
-
_items.append(
|
81
|
+
for _item_records in self.records:
|
82
|
+
if _item_records:
|
83
|
+
_items.append(_item_records.to_dict())
|
84
84
|
_dict['records'] = _items
|
85
85
|
return _dict
|
86
86
|
|
@@ -75,9 +75,9 @@ class RecordTypeSchema(BaseModel):
|
|
75
75
|
# override the default output from pydantic by calling `to_dict()` of each item in attributes (list)
|
76
76
|
_items = []
|
77
77
|
if self.attributes:
|
78
|
-
for
|
79
|
-
if
|
80
|
-
_items.append(
|
78
|
+
for _item_attributes in self.attributes:
|
79
|
+
if _item_attributes:
|
80
|
+
_items.append(_item_attributes.to_dict())
|
81
81
|
_dict['attributes'] = _items
|
82
82
|
return _dict
|
83
83
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|