wds-client 0.2.163__tar.gz → 0.3.0__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {wds_client-0.2.163 → wds_client-0.3.0}/PKG-INFO +1 -1
- {wds_client-0.2.163 → wds_client-0.3.0}/README.md +2 -1
- {wds_client-0.2.163 → wds_client-0.3.0}/setup.py +1 -1
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_record_query_response.py +10 -2
- wds_client-0.3.0/test/test_search_filter.py +54 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_search_request.py +5 -1
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/__init__.py +2 -1
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/api_client.py +1 -1
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/configuration.py +1 -1
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/__init__.py +1 -0
- wds_client-0.3.0/wds_client/models/search_filter.py +122 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/search_request.py +29 -3
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client.egg-info/PKG-INFO +1 -1
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client.egg-info/SOURCES.txt +2 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/setup.cfg +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_app.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_attribute_data_type.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_attribute_schema.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_attribute_schema_update.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_backup_job.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_backup_job_all_of.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_backup_response.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_backup_restore_request.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_batch_operation.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_batch_record_request.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_batch_response.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_build.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_capabilities.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_capabilities_api.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_clone_job.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_clone_job_all_of.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_clone_response.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_cloning_api.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_commit.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_component.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_components.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_db_component.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_db_validationcomponent.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_db_validationcomponent_details.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_disk_space_component.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_disk_space_component_details.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_error_response.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_general_wds_information_api.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_generic_job.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_generic_job_all_of.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_git.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_import_api.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_import_request.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_inline_object.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_instances_api.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_job.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_job_api.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_job_v1.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_record_request.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_record_response.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_record_type_schema.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_records_api.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_schema_api.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_search_sort_direction.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_status_response.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_tsv_upload_response.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/test/test_version_response.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/api/__init__.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/api/capabilities_api.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/api/cloning_api.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/api/general_wds_information_api.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/api/import_api.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/api/instances_api.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/api/job_api.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/api/records_api.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/api/schema_api.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/exceptions.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/app.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/attribute_data_type.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/attribute_schema.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/attribute_schema_update.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/backup_job.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/backup_job_all_of.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/backup_response.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/backup_restore_request.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/batch_operation.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/batch_record_request.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/batch_response.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/build.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/capabilities.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/clone_job.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/clone_job_all_of.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/clone_response.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/commit.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/component.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/components.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/db_component.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/db_validationcomponent.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/db_validationcomponent_details.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/disk_space_component.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/disk_space_component_details.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/error_response.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/generic_job.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/generic_job_all_of.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/git.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/import_request.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/inline_object.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/job.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/job_v1.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/record_query_response.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/record_request.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/record_response.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/record_type_schema.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/search_sort_direction.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/status_response.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/tsv_upload_response.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/models/version_response.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client/rest.py +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client.egg-info/dependency_links.txt +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client.egg-info/requires.txt +0 -0
- {wds_client-0.2.163 → wds_client-0.3.0}/wds_client.egg-info/top_level.txt +0 -0
@@ -6,7 +6,7 @@ As of v0.2, all APIs are subject to change without notice.
|
|
6
6
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
7
7
|
|
8
8
|
- API version: v0.2
|
9
|
-
- Package version: 0.
|
9
|
+
- Package version: 0.3.0
|
10
10
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
11
11
|
|
12
12
|
## Requirements.
|
@@ -147,6 +147,7 @@ Class | Method | HTTP request | Description
|
|
147
147
|
- [RecordRequest](docs/RecordRequest.md)
|
148
148
|
- [RecordResponse](docs/RecordResponse.md)
|
149
149
|
- [RecordTypeSchema](docs/RecordTypeSchema.md)
|
150
|
+
- [SearchFilter](docs/SearchFilter.md)
|
150
151
|
- [SearchRequest](docs/SearchRequest.md)
|
151
152
|
- [SearchSortDirection](docs/SearchSortDirection.md)
|
152
153
|
- [StatusResponse](docs/StatusResponse.md)
|
@@ -40,7 +40,11 @@ class TestRecordQueryResponse(unittest.TestCase):
|
|
40
40
|
offset = 0,
|
41
41
|
limit = 0,
|
42
42
|
sort = 'ASC',
|
43
|
-
sort_attribute = '0',
|
43
|
+
sort_attribute = '0',
|
44
|
+
filter = wds_client.models.search_filter.SearchFilter(
|
45
|
+
ids = [
|
46
|
+
'0'
|
47
|
+
], ), ),
|
44
48
|
total_records = 56,
|
45
49
|
records = [
|
46
50
|
wds_client.models.record_response.RecordResponse(
|
@@ -69,7 +73,11 @@ class TestRecordQueryResponse(unittest.TestCase):
|
|
69
73
|
offset = 0,
|
70
74
|
limit = 0,
|
71
75
|
sort = 'ASC',
|
72
|
-
sort_attribute = '0',
|
76
|
+
sort_attribute = '0',
|
77
|
+
filter = wds_client.models.search_filter.SearchFilter(
|
78
|
+
ids = [
|
79
|
+
'0'
|
80
|
+
], ), ),
|
73
81
|
total_records = 56,
|
74
82
|
records = [
|
75
83
|
wds_client.models.record_response.RecordResponse(
|
@@ -0,0 +1,54 @@
|
|
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
|
+
from __future__ import absolute_import
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
import datetime
|
17
|
+
|
18
|
+
import wds_client
|
19
|
+
from wds_client.models.search_filter import SearchFilter # noqa: E501
|
20
|
+
from wds_client.rest import ApiException
|
21
|
+
|
22
|
+
class TestSearchFilter(unittest.TestCase):
|
23
|
+
"""SearchFilter unit test stubs"""
|
24
|
+
|
25
|
+
def setUp(self):
|
26
|
+
pass
|
27
|
+
|
28
|
+
def tearDown(self):
|
29
|
+
pass
|
30
|
+
|
31
|
+
def make_instance(self, include_optional):
|
32
|
+
"""Test SearchFilter
|
33
|
+
include_option is a boolean, when False only required
|
34
|
+
params are included, when True both required and
|
35
|
+
optional params are included """
|
36
|
+
# model = wds_client.models.search_filter.SearchFilter() # noqa: E501
|
37
|
+
if include_optional :
|
38
|
+
return SearchFilter(
|
39
|
+
ids = [
|
40
|
+
'0'
|
41
|
+
]
|
42
|
+
)
|
43
|
+
else :
|
44
|
+
return SearchFilter(
|
45
|
+
)
|
46
|
+
|
47
|
+
def testSearchFilter(self):
|
48
|
+
"""Test SearchFilter"""
|
49
|
+
inst_req_only = self.make_instance(include_optional=False)
|
50
|
+
inst_req_and_optional = self.make_instance(include_optional=True)
|
51
|
+
|
52
|
+
|
53
|
+
if __name__ == '__main__':
|
54
|
+
unittest.main()
|
@@ -39,7 +39,11 @@ class TestSearchRequest(unittest.TestCase):
|
|
39
39
|
offset = 0,
|
40
40
|
limit = 0,
|
41
41
|
sort = 'ASC',
|
42
|
-
sort_attribute = '0'
|
42
|
+
sort_attribute = '0',
|
43
|
+
filter = wds_client.models.search_filter.SearchFilter(
|
44
|
+
ids = [
|
45
|
+
'0'
|
46
|
+
], )
|
43
47
|
)
|
44
48
|
else :
|
45
49
|
return SearchRequest(
|
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
from __future__ import absolute_import
|
16
16
|
|
17
|
-
__version__ = "0.
|
17
|
+
__version__ = "0.3.0"
|
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
|
@@ -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.
|
81
|
+
self.user_agent = 'wds-client/0.3.0/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.
|
339
|
+
"SDK Package Version: 0.3.0".\
|
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 = {}
|
@@ -45,6 +45,7 @@ test/test_record_response.py
|
|
45
45
|
test/test_record_type_schema.py
|
46
46
|
test/test_records_api.py
|
47
47
|
test/test_schema_api.py
|
48
|
+
test/test_search_filter.py
|
48
49
|
test/test_search_request.py
|
49
50
|
test/test_search_sort_direction.py
|
50
51
|
test/test_status_response.py
|
@@ -106,6 +107,7 @@ wds_client/models/record_query_response.py
|
|
106
107
|
wds_client/models/record_request.py
|
107
108
|
wds_client/models/record_response.py
|
108
109
|
wds_client/models/record_type_schema.py
|
110
|
+
wds_client/models/search_filter.py
|
109
111
|
wds_client/models/search_request.py
|
110
112
|
wds_client/models/search_sort_direction.py
|
111
113
|
wds_client/models/status_response.py
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|