wds-client 0.2.163__py3-none-any.whl → 0.2.167__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
wds_client/__init__.py CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  from __future__ import absolute_import
16
16
 
17
- __version__ = "0.2.163"
17
+ __version__ = "0.2.167"
18
18
 
19
19
  # import apis into sdk package
20
20
  from wds_client.api.capabilities_api import CapabilitiesApi
@@ -71,6 +71,7 @@ from wds_client.models.record_query_response import RecordQueryResponse
71
71
  from wds_client.models.record_request import RecordRequest
72
72
  from wds_client.models.record_response import RecordResponse
73
73
  from wds_client.models.record_type_schema import RecordTypeSchema
74
+ from wds_client.models.search_filter import SearchFilter
74
75
  from wds_client.models.search_request import SearchRequest
75
76
  from wds_client.models.search_sort_direction import SearchSortDirection
76
77
  from wds_client.models.status_response import StatusResponse
wds_client/api_client.py CHANGED
@@ -78,7 +78,7 @@ class ApiClient(object):
78
78
  self.default_headers[header_name] = header_value
79
79
  self.cookie = cookie
80
80
  # Set default User-Agent.
81
- self.user_agent = 'wds-client/0.2.163/python'
81
+ self.user_agent = 'wds-client/0.2.167/python'
82
82
  self.client_side_validation = configuration.client_side_validation
83
83
 
84
84
  def __enter__(self):
@@ -336,7 +336,7 @@ class Configuration(object):
336
336
  "OS: {env}\n"\
337
337
  "Python Version: {pyversion}\n"\
338
338
  "Version of the API: v0.2\n"\
339
- "SDK Package Version: 0.2.163".\
339
+ "SDK Package Version: 0.2.167".\
340
340
  format(env=sys.platform, pyversion=sys.version)
341
341
 
342
342
  def get_host_settings(self):
@@ -50,6 +50,7 @@ from wds_client.models.record_query_response import RecordQueryResponse
50
50
  from wds_client.models.record_request import RecordRequest
51
51
  from wds_client.models.record_response import RecordResponse
52
52
  from wds_client.models.record_type_schema import RecordTypeSchema
53
+ from wds_client.models.search_filter import SearchFilter
53
54
  from wds_client.models.search_request import SearchRequest
54
55
  from wds_client.models.search_sort_direction import SearchSortDirection
55
56
  from wds_client.models.status_response import StatusResponse
@@ -0,0 +1,122 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Workspace Data Service
5
+
6
+ This page lists current APIs. As of v0.2, all APIs are subject to change without notice. # noqa: E501
7
+
8
+ The version of the OpenAPI document: v0.2
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ from wds_client.configuration import Configuration
19
+
20
+
21
+ class SearchFilter(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
+ """
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
+ 'ids': 'list[str]'
37
+ }
38
+
39
+ attribute_map = {
40
+ 'ids': 'ids'
41
+ }
42
+
43
+ def __init__(self, ids=None, local_vars_configuration=None): # noqa: E501
44
+ """SearchFilter - a model defined in OpenAPI""" # noqa: E501
45
+ if local_vars_configuration is None:
46
+ local_vars_configuration = Configuration()
47
+ self.local_vars_configuration = local_vars_configuration
48
+
49
+ self._ids = None
50
+ self.discriminator = None
51
+
52
+ if ids is not None:
53
+ self.ids = ids
54
+
55
+ @property
56
+ def ids(self):
57
+ """Gets the ids of this SearchFilter. # noqa: E501
58
+
59
+ Record ids by which to filter the query # noqa: E501
60
+
61
+ :return: The ids of this SearchFilter. # noqa: E501
62
+ :rtype: list[str]
63
+ """
64
+ return self._ids
65
+
66
+ @ids.setter
67
+ def ids(self, ids):
68
+ """Sets the ids of this SearchFilter.
69
+
70
+ Record ids by which to filter the query # noqa: E501
71
+
72
+ :param ids: The ids of this SearchFilter. # noqa: E501
73
+ :type: list[str]
74
+ """
75
+
76
+ self._ids = ids
77
+
78
+ def to_dict(self):
79
+ """Returns the model properties as a dict"""
80
+ result = {}
81
+
82
+ for attr, _ in six.iteritems(self.openapi_types):
83
+ value = getattr(self, attr)
84
+ if isinstance(value, list):
85
+ result[attr] = list(map(
86
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
87
+ value
88
+ ))
89
+ elif hasattr(value, "to_dict"):
90
+ result[attr] = value.to_dict()
91
+ elif isinstance(value, dict):
92
+ result[attr] = dict(map(
93
+ lambda item: (item[0], item[1].to_dict())
94
+ if hasattr(item[1], "to_dict") else item,
95
+ value.items()
96
+ ))
97
+ else:
98
+ result[attr] = value
99
+
100
+ return result
101
+
102
+ def to_str(self):
103
+ """Returns the string representation of the model"""
104
+ return pprint.pformat(self.to_dict())
105
+
106
+ def __repr__(self):
107
+ """For `print` and `pprint`"""
108
+ return self.to_str()
109
+
110
+ def __eq__(self, other):
111
+ """Returns true if both objects are equal"""
112
+ if not isinstance(other, SearchFilter):
113
+ return False
114
+
115
+ return self.to_dict() == other.to_dict()
116
+
117
+ def __ne__(self, other):
118
+ """Returns true if both objects are not equal"""
119
+ if not isinstance(other, SearchFilter):
120
+ return True
121
+
122
+ return self.to_dict() != other.to_dict()
@@ -36,17 +36,19 @@ class SearchRequest(object):
36
36
  'offset': 'int',
37
37
  'limit': 'int',
38
38
  'sort': 'SearchSortDirection',
39
- 'sort_attribute': 'str'
39
+ 'sort_attribute': 'str',
40
+ 'filter': 'SearchFilter'
40
41
  }
41
42
 
42
43
  attribute_map = {
43
44
  'offset': 'offset',
44
45
  'limit': 'limit',
45
46
  'sort': 'sort',
46
- 'sort_attribute': 'sortAttribute'
47
+ 'sort_attribute': 'sortAttribute',
48
+ 'filter': 'filter'
47
49
  }
48
50
 
49
- def __init__(self, offset=0, limit=10, sort=None, sort_attribute=None, local_vars_configuration=None): # noqa: E501
51
+ def __init__(self, offset=0, limit=10, sort=None, sort_attribute=None, filter=None, local_vars_configuration=None): # noqa: E501
50
52
  """SearchRequest - a model defined in OpenAPI""" # noqa: E501
51
53
  if local_vars_configuration is None:
52
54
  local_vars_configuration = Configuration()
@@ -56,6 +58,7 @@ class SearchRequest(object):
56
58
  self._limit = None
57
59
  self._sort = None
58
60
  self._sort_attribute = None
61
+ self._filter = None
59
62
  self.discriminator = None
60
63
 
61
64
  if offset is not None:
@@ -66,6 +69,8 @@ class SearchRequest(object):
66
69
  self.sort = sort
67
70
  if sort_attribute is not None:
68
71
  self.sort_attribute = sort_attribute
72
+ if filter is not None:
73
+ self.filter = filter
69
74
 
70
75
  @property
71
76
  def offset(self):
@@ -164,6 +169,27 @@ class SearchRequest(object):
164
169
 
165
170
  self._sort_attribute = sort_attribute
166
171
 
172
+ @property
173
+ def filter(self):
174
+ """Gets the filter of this SearchRequest. # noqa: E501
175
+
176
+
177
+ :return: The filter of this SearchRequest. # noqa: E501
178
+ :rtype: SearchFilter
179
+ """
180
+ return self._filter
181
+
182
+ @filter.setter
183
+ def filter(self, filter):
184
+ """Sets the filter of this SearchRequest.
185
+
186
+
187
+ :param filter: The filter of this SearchRequest. # noqa: E501
188
+ :type: SearchFilter
189
+ """
190
+
191
+ self._filter = filter
192
+
167
193
  def to_dict(self):
168
194
  """Returns the model properties as a dict"""
169
195
  result = {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wds-client
3
- Version: 0.2.163
3
+ Version: 0.2.167
4
4
  Summary: Workspace Data Service
5
5
  Home-page:
6
6
  Author: OpenAPI Generator community
@@ -1,6 +1,6 @@
1
- wds_client/__init__.py,sha256=RdFyuvWDjalhevHRxYiQmzbD95pJow6NMPhikvwlVGU,3656
2
- wds_client/api_client.py,sha256=73rvp4L_ha-VVOusQ9p5K-1_sdR1BeclV8IMdRqtYR8,26211
3
- wds_client/configuration.py,sha256=JxJHnmLtludh81kKpMmwQlIrPGvnw5RoM0twEHv1Azk,12788
1
+ wds_client/__init__.py,sha256=G8ik5JvO9-wxjeQmSAKiaZ_5nCOg1rnDCaYUSoYk_do,3713
2
+ wds_client/api_client.py,sha256=_H-xpj2M9lyTnFshuM7J6WUNjineqa70S1rRyOGtMQ8,26211
3
+ wds_client/configuration.py,sha256=i1PiTpM6T2bFqra0aKG4GCNi8Hvxe0fJYisCRH6U7Gs,12788
4
4
  wds_client/exceptions.py,sha256=0mEseFMbvxS5JfgkbPg14sxBI7bW0Gt0Ftxs96_LCyg,3781
5
5
  wds_client/rest.py,sha256=v-8FIxQfUQ7bkeKfe9qsi9en8uQa5Zf5uSqhrui_cRw,12309
6
6
  wds_client/api/__init__.py,sha256=T7qJbog9E_rDanluvSZAqM71AaSKcg2AUsmzEtz_MOg,519
@@ -12,7 +12,7 @@ wds_client/api/instances_api.py,sha256=EtBqCzB6HETQ5GDh7_LHNeoPR4vqR4ScP-uyNDAxm
12
12
  wds_client/api/job_api.py,sha256=yR0rFpBKf5W1dqwzeKMEGjOfP9JrRQ8HM4gxhzKWskM,11209
13
13
  wds_client/api/records_api.py,sha256=kH_DklhEdBFbyCAOBfsy82J_kD7t-dfhJDTeI9PmeZ8,61562
14
14
  wds_client/api/schema_api.py,sha256=p2cgKPW7qAYNir0S7-AY67hE0xejkubFSOTBv6Pq-aQ,34758
15
- wds_client/models/__init__.py,sha256=bvrzSnwfo0lIgniBOaHzXd6SncXclD6n7Vr_ERmMtB4,2814
15
+ wds_client/models/__init__.py,sha256=UvRvdnamg4UsFugpiXygs2PsrU095a0xFfyYx_d_g3o,2871
16
16
  wds_client/models/app.py,sha256=3sIUtT5T8VXBcNvD07QVOQHOxD_8dp0QSMeWcvCflCQ,3917
17
17
  wds_client/models/attribute_data_type.py,sha256=naNblQZsE5NirXqB9-EPRTRzgHPSu_b3pNrqOzEW7XY,3416
18
18
  wds_client/models/attribute_schema.py,sha256=2wMwqiaETuJb9sk8Wa0Yy_PPijQH348bveD8w3Dsouk,5323
@@ -49,12 +49,13 @@ wds_client/models/record_query_response.py,sha256=1Z697LJ_zCbgzg2l1YRikJRirWV1-B
49
49
  wds_client/models/record_request.py,sha256=ni69oyvVQWMcC62eMzPDSB06TNCiqeNpSmwottDm1C0,3882
50
50
  wds_client/models/record_response.py,sha256=c29gawF9y0ePjZ9aRiR66u-x_GGXjK6ik_N30t1gtVQ,5458
51
51
  wds_client/models/record_type_schema.py,sha256=cPbDQH0kvz91z1IZ_s3Zbrpqx_hrWYfG96bhjOrtaM0,6722
52
- wds_client/models/search_request.py,sha256=NkwtPyTVFwe9kJL5PUIeRFd0bORb6-lErw5c-Djy96c,6218
52
+ wds_client/models/search_filter.py,sha256=Y4uD_N2qoXBke8nKxszr2ZfcPXGOqZKTGUxTMHAwEig,3370
53
+ wds_client/models/search_request.py,sha256=ig__yYlNP1m10ODvCDC700zeAHYMpUWKU1u5kf92EhU,6866
53
54
  wds_client/models/search_sort_direction.py,sha256=qR4x09JH9HLuTwvBL8OJrJrw5DwI_KwcTU8I-vjNYO8,2824
54
55
  wds_client/models/status_response.py,sha256=TjCfqrE5KFZ-3DmEePndQUOD-GWGVtdpAzOw-d8QEPk,4030
55
56
  wds_client/models/tsv_upload_response.py,sha256=JdEs9hwyH264eLhQYj9d7p9B4cCP5-wkpgMg6qk8GNI,4507
56
57
  wds_client/models/version_response.py,sha256=rHOAaXFPx0CjAe3hJ_2TzYUrhaTY5yfxA3rlf5XcytM,4436
57
- wds_client-0.2.163.dist-info/METADATA,sha256=5qPEWRkgCsMzig8GX5r1Ra8mE10oujwDdF6-QfQ9bto,468
58
- wds_client-0.2.163.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
59
- wds_client-0.2.163.dist-info/top_level.txt,sha256=hU2h533r5-3FzApV8ps3zXmQJKy74SPT3sYR8-uZhp8,11
60
- wds_client-0.2.163.dist-info/RECORD,,
58
+ wds_client-0.2.167.dist-info/METADATA,sha256=uIKe3bayBJ5lw-qItvaGuCrK6lC7PXXQy0fMb1R6ETE,468
59
+ wds_client-0.2.167.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
60
+ wds_client-0.2.167.dist-info/top_level.txt,sha256=hU2h533r5-3FzApV8ps3zXmQJKy74SPT3sYR8-uZhp8,11
61
+ wds_client-0.2.167.dist-info/RECORD,,