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.
Files changed (109) hide show
  1. {wds_client-0.17.0 → wds_client-0.18.0}/PKG-INFO +1 -1
  2. {wds_client-0.17.0 → wds_client-0.18.0}/README.md +2 -2
  3. {wds_client-0.17.0 → wds_client-0.18.0}/pyproject.toml +1 -1
  4. {wds_client-0.17.0 → wds_client-0.18.0}/setup.py +1 -1
  5. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/__init__.py +1 -1
  6. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api_client.py +8 -1
  7. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/configuration.py +1 -1
  8. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/generic_job.py +2 -2
  9. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/job_v1.py +2 -2
  10. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/record_query_response.py +3 -3
  11. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/record_type_schema.py +3 -3
  12. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client.egg-info/PKG-INFO +1 -1
  13. {wds_client-0.17.0 → wds_client-0.18.0}/setup.cfg +0 -0
  14. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_app.py +0 -0
  15. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_attribute_data_type.py +0 -0
  16. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_attribute_schema.py +0 -0
  17. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_attribute_schema_update.py +0 -0
  18. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_backup_job.py +0 -0
  19. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_backup_response.py +0 -0
  20. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_backup_restore_request.py +0 -0
  21. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_batch_operation.py +0 -0
  22. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_batch_record_request.py +0 -0
  23. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_batch_response.py +0 -0
  24. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_build.py +0 -0
  25. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_capabilities.py +0 -0
  26. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_capabilities_api.py +0 -0
  27. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_clone_job.py +0 -0
  28. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_clone_response.py +0 -0
  29. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_cloning_api.py +0 -0
  30. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_collection.py +0 -0
  31. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_collection_api.py +0 -0
  32. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_collection_request.py +0 -0
  33. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_commit.py +0 -0
  34. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_error_response.py +0 -0
  35. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_general_wds_information_api.py +0 -0
  36. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_generic_job.py +0 -0
  37. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_git.py +0 -0
  38. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_import_api.py +0 -0
  39. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_import_request.py +0 -0
  40. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_instances_api.py +0 -0
  41. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_job.py +0 -0
  42. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_job_api.py +0 -0
  43. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_job_v1.py +0 -0
  44. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_record_query_response.py +0 -0
  45. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_record_request.py +0 -0
  46. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_record_response.py +0 -0
  47. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_record_type_schema.py +0 -0
  48. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_records_api.py +0 -0
  49. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_schema_api.py +0 -0
  50. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_search_filter.py +0 -0
  51. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_search_request.py +0 -0
  52. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_search_sort_direction.py +0 -0
  53. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_status_response.py +0 -0
  54. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_tsv_upload_response.py +0 -0
  55. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_version_response.py +0 -0
  56. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_workspace_api.py +0 -0
  57. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_workspace_init.py +0 -0
  58. {wds_client-0.17.0 → wds_client-0.18.0}/test/test_workspace_init_clone.py +0 -0
  59. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api/__init__.py +0 -0
  60. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api/capabilities_api.py +0 -0
  61. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api/cloning_api.py +0 -0
  62. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api/collection_api.py +0 -0
  63. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api/general_wds_information_api.py +0 -0
  64. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api/import_api.py +0 -0
  65. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api/instances_api.py +0 -0
  66. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api/job_api.py +0 -0
  67. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api/records_api.py +0 -0
  68. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api/schema_api.py +0 -0
  69. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api/workspace_api.py +0 -0
  70. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/api_response.py +0 -0
  71. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/exceptions.py +0 -0
  72. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/__init__.py +0 -0
  73. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/app.py +0 -0
  74. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/attribute_data_type.py +0 -0
  75. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/attribute_schema.py +0 -0
  76. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/attribute_schema_update.py +0 -0
  77. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/backup_job.py +0 -0
  78. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/backup_response.py +0 -0
  79. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/backup_restore_request.py +0 -0
  80. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/batch_operation.py +0 -0
  81. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/batch_record_request.py +0 -0
  82. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/batch_response.py +0 -0
  83. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/build.py +0 -0
  84. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/capabilities.py +0 -0
  85. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/clone_job.py +0 -0
  86. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/clone_response.py +0 -0
  87. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/collection.py +0 -0
  88. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/collection_request.py +0 -0
  89. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/commit.py +0 -0
  90. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/error_response.py +0 -0
  91. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/git.py +0 -0
  92. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/import_request.py +0 -0
  93. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/job.py +0 -0
  94. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/record_request.py +0 -0
  95. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/record_response.py +0 -0
  96. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/search_filter.py +0 -0
  97. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/search_request.py +0 -0
  98. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/search_sort_direction.py +0 -0
  99. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/status_response.py +0 -0
  100. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/tsv_upload_response.py +0 -0
  101. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/version_response.py +0 -0
  102. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/workspace_init.py +0 -0
  103. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/models/workspace_init_clone.py +0 -0
  104. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/py.typed +0 -0
  105. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client/rest.py +0 -0
  106. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client.egg-info/SOURCES.txt +0 -0
  107. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client.egg-info/dependency_links.txt +0 -0
  108. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client.egg-info/requires.txt +0 -0
  109. {wds_client-0.17.0 → wds_client-0.18.0}/wds_client.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wds-client
3
- Version: 0.17.0
3
+ Version: 0.18.0
4
4
  Summary: Workspace Data Service
5
5
  Home-page:
6
6
  Author: OpenAPI Generator community
@@ -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.17.0
13
- - Generator version: 7.7.0
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.
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "wds_client"
3
- version = "0.17.0"
3
+ version = "0.18.0"
4
4
  description = "Workspace Data Service"
5
5
  authors = ["OpenAPI Generator Community <team@openapitools.org>"]
6
6
  license = "BSD"
@@ -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.17.0"
24
+ VERSION = "0.18.0"
25
25
  PYTHON_REQUIRES = ">=3.7"
26
26
  REQUIRES = [
27
27
  "urllib3 >= 1.25.3, < 2.1.0",
@@ -14,7 +14,7 @@
14
14
  """ # noqa: E501
15
15
 
16
16
 
17
- __version__ = "0.17.0"
17
+ __version__ = "0.18.0"
18
18
 
19
19
  # import apis into sdk package
20
20
  from wds_client.api.capabilities_api import CapabilitiesApi
@@ -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.17.0/python'
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.17.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 _item in self.records:
82
- if _item:
83
- _items.append(_item.to_dict())
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 _item in self.attributes:
79
- if _item:
80
- _items.append(_item.to_dict())
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wds-client
3
- Version: 0.17.0
3
+ Version: 0.18.0
4
4
  Summary: Workspace Data Service
5
5
  Home-page:
6
6
  Author: OpenAPI Generator community
File without changes