huaweicloudsdkimagesearch 3.1.183__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 (43) hide show
  1. huaweicloudsdkimagesearch/__init__.py +0 -0
  2. huaweicloudsdkimagesearch/v2/__init__.py +40 -0
  3. huaweicloudsdkimagesearch/v2/imagesearch_async_client.py +418 -0
  4. huaweicloudsdkimagesearch/v2/imagesearch_client.py +415 -0
  5. huaweicloudsdkimagesearch/v2/model/__init__.py +37 -0
  6. huaweicloudsdkimagesearch/v2/model/add_data_optional_param.py +195 -0
  7. huaweicloudsdkimagesearch/v2/model/add_data_param.py +335 -0
  8. huaweicloudsdkimagesearch/v2/model/add_data_rest_info.py +104 -0
  9. huaweicloudsdkimagesearch/v2/model/add_data_rest_info_image_info.py +108 -0
  10. huaweicloudsdkimagesearch/v2/model/add_data_rest_info_image_info_objects.py +166 -0
  11. huaweicloudsdkimagesearch/v2/model/check_info.py +162 -0
  12. huaweicloudsdkimagesearch/v2/model/check_param.py +220 -0
  13. huaweicloudsdkimagesearch/v2/model/check_rest_info.py +187 -0
  14. huaweicloudsdkimagesearch/v2/model/delete_info.py +137 -0
  15. huaweicloudsdkimagesearch/v2/model/delete_param.py +195 -0
  16. huaweicloudsdkimagesearch/v2/model/delete_rest_info.py +133 -0
  17. huaweicloudsdkimagesearch/v2/model/delete_rest_info_items.py +108 -0
  18. huaweicloudsdkimagesearch/v2/model/item_source.py +195 -0
  19. huaweicloudsdkimagesearch/v2/model/range_param.py +137 -0
  20. huaweicloudsdkimagesearch/v2/model/run_add_data_request.py +132 -0
  21. huaweicloudsdkimagesearch/v2/model/run_add_data_response.py +137 -0
  22. huaweicloudsdkimagesearch/v2/model/run_check_data_request.py +132 -0
  23. huaweicloudsdkimagesearch/v2/model/run_check_data_response.py +137 -0
  24. huaweicloudsdkimagesearch/v2/model/run_delete_data_request.py +132 -0
  25. huaweicloudsdkimagesearch/v2/model/run_delete_data_response.py +137 -0
  26. huaweicloudsdkimagesearch/v2/model/run_search_request.py +132 -0
  27. huaweicloudsdkimagesearch/v2/model/run_search_response.py +137 -0
  28. huaweicloudsdkimagesearch/v2/model/run_update_data_request.py +132 -0
  29. huaweicloudsdkimagesearch/v2/model/run_update_data_response.py +112 -0
  30. huaweicloudsdkimagesearch/v2/model/search_after_param.py +137 -0
  31. huaweicloudsdkimagesearch/v2/model/search_info.py +191 -0
  32. huaweicloudsdkimagesearch/v2/model/search_item.py +162 -0
  33. huaweicloudsdkimagesearch/v2/model/search_optional_param.py +311 -0
  34. huaweicloudsdkimagesearch/v2/model/search_param.py +418 -0
  35. huaweicloudsdkimagesearch/v2/model/search_rest_info.py +158 -0
  36. huaweicloudsdkimagesearch/v2/model/search_rest_info_image_info.py +195 -0
  37. huaweicloudsdkimagesearch/v2/model/update_param.py +194 -0
  38. huaweicloudsdkimagesearch/v2/region/__init__.py +0 -0
  39. huaweicloudsdkimagesearch/v2/region/imagesearch_region.py +32 -0
  40. huaweicloudsdkimagesearch-3.1.183.dist-info/METADATA +25 -0
  41. huaweicloudsdkimagesearch-3.1.183.dist-info/RECORD +43 -0
  42. huaweicloudsdkimagesearch-3.1.183.dist-info/WHEEL +4 -0
  43. huaweicloudsdkimagesearch-3.1.183.dist-info/licenses/LICENSE +13 -0
@@ -0,0 +1,132 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class RunCheckDataRequest:
7
+
8
+ """
9
+ Attributes:
10
+ openapi_types (dict): The key is attribute name
11
+ and the value is attribute type.
12
+ attribute_map (dict): The key is attribute name
13
+ and the value is json key in definition.
14
+ """
15
+ sensitive_list = []
16
+
17
+ openapi_types = {
18
+ 'service_name': 'str',
19
+ 'body': 'CheckParam'
20
+ }
21
+
22
+ attribute_map = {
23
+ 'service_name': 'service_name',
24
+ 'body': 'body'
25
+ }
26
+
27
+ def __init__(self, service_name=None, body=None):
28
+ r"""RunCheckDataRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param service_name: 服务实例的名称,用户创建服务实例时指定。
33
+ :type service_name: str
34
+ :param body: Body of the RunCheckDataRequest
35
+ :type body: :class:`huaweicloudsdkimagesearch.v2.CheckParam`
36
+ """
37
+
38
+
39
+
40
+ self._service_name = None
41
+ self._body = None
42
+ self.discriminator = None
43
+
44
+ self.service_name = service_name
45
+ if body is not None:
46
+ self.body = body
47
+
48
+ @property
49
+ def service_name(self):
50
+ r"""Gets the service_name of this RunCheckDataRequest.
51
+
52
+ 服务实例的名称,用户创建服务实例时指定。
53
+
54
+ :return: The service_name of this RunCheckDataRequest.
55
+ :rtype: str
56
+ """
57
+ return self._service_name
58
+
59
+ @service_name.setter
60
+ def service_name(self, service_name):
61
+ r"""Sets the service_name of this RunCheckDataRequest.
62
+
63
+ 服务实例的名称,用户创建服务实例时指定。
64
+
65
+ :param service_name: The service_name of this RunCheckDataRequest.
66
+ :type service_name: str
67
+ """
68
+ self._service_name = service_name
69
+
70
+ @property
71
+ def body(self):
72
+ r"""Gets the body of this RunCheckDataRequest.
73
+
74
+ :return: The body of this RunCheckDataRequest.
75
+ :rtype: :class:`huaweicloudsdkimagesearch.v2.CheckParam`
76
+ """
77
+ return self._body
78
+
79
+ @body.setter
80
+ def body(self, body):
81
+ r"""Sets the body of this RunCheckDataRequest.
82
+
83
+ :param body: The body of this RunCheckDataRequest.
84
+ :type body: :class:`huaweicloudsdkimagesearch.v2.CheckParam`
85
+ """
86
+ self._body = body
87
+
88
+ def to_dict(self):
89
+ result = {}
90
+
91
+ for attr, _ in self.openapi_types.items():
92
+ value = getattr(self, attr)
93
+ if isinstance(value, list):
94
+ result[attr] = list(map(
95
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
96
+ value
97
+ ))
98
+ elif hasattr(value, "to_dict"):
99
+ result[attr] = value.to_dict()
100
+ elif isinstance(value, dict):
101
+ result[attr] = dict(map(
102
+ lambda item: (item[0], item[1].to_dict())
103
+ if hasattr(item[1], "to_dict") else item,
104
+ value.items()
105
+ ))
106
+ else:
107
+ if attr in self.sensitive_list:
108
+ result[attr] = "****"
109
+ else:
110
+ result[attr] = value
111
+
112
+ return result
113
+
114
+ def to_str(self):
115
+ """Returns the string representation of the model"""
116
+ import simplejson as json
117
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
118
+
119
+ def __repr__(self):
120
+ """For `print`"""
121
+ return self.to_str()
122
+
123
+ def __eq__(self, other):
124
+ """Returns true if both objects are equal"""
125
+ if not isinstance(other, RunCheckDataRequest):
126
+ return False
127
+
128
+ return self.__dict__ == other.__dict__
129
+
130
+ def __ne__(self, other):
131
+ """Returns true if both objects are not equal"""
132
+ return not self == other
@@ -0,0 +1,137 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.sdk_response import SdkResponse
4
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
5
+
6
+
7
+ class RunCheckDataResponse(SdkResponse):
8
+
9
+ """
10
+ Attributes:
11
+ openapi_types (dict): The key is attribute name
12
+ and the value is attribute type.
13
+ attribute_map (dict): The key is attribute name
14
+ and the value is json key in definition.
15
+ """
16
+ sensitive_list = []
17
+
18
+ openapi_types = {
19
+ 'result': 'str',
20
+ 'data': 'CheckRestInfo'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'result': 'result',
25
+ 'data': 'data'
26
+ }
27
+
28
+ def __init__(self, result=None, data=None):
29
+ r"""RunCheckDataResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param result: 检查数据完成返回success。
34
+ :type result: str
35
+ :param data:
36
+ :type data: :class:`huaweicloudsdkimagesearch.v2.CheckRestInfo`
37
+ """
38
+
39
+ super().__init__()
40
+
41
+ self._result = None
42
+ self._data = None
43
+ self.discriminator = None
44
+
45
+ if result is not None:
46
+ self.result = result
47
+ if data is not None:
48
+ self.data = data
49
+
50
+ @property
51
+ def result(self):
52
+ r"""Gets the result of this RunCheckDataResponse.
53
+
54
+ 检查数据完成返回success。
55
+
56
+ :return: The result of this RunCheckDataResponse.
57
+ :rtype: str
58
+ """
59
+ return self._result
60
+
61
+ @result.setter
62
+ def result(self, result):
63
+ r"""Sets the result of this RunCheckDataResponse.
64
+
65
+ 检查数据完成返回success。
66
+
67
+ :param result: The result of this RunCheckDataResponse.
68
+ :type result: str
69
+ """
70
+ self._result = result
71
+
72
+ @property
73
+ def data(self):
74
+ r"""Gets the data of this RunCheckDataResponse.
75
+
76
+ :return: The data of this RunCheckDataResponse.
77
+ :rtype: :class:`huaweicloudsdkimagesearch.v2.CheckRestInfo`
78
+ """
79
+ return self._data
80
+
81
+ @data.setter
82
+ def data(self, data):
83
+ r"""Sets the data of this RunCheckDataResponse.
84
+
85
+ :param data: The data of this RunCheckDataResponse.
86
+ :type data: :class:`huaweicloudsdkimagesearch.v2.CheckRestInfo`
87
+ """
88
+ self._data = data
89
+
90
+ def to_dict(self):
91
+ import warnings
92
+ warnings.warn("RunCheckDataResponse.to_dict() is deprecated and no longer maintained, "
93
+ "use to_json_object() to get the response content.", DeprecationWarning)
94
+ result = {}
95
+
96
+ for attr, _ in self.openapi_types.items():
97
+ value = getattr(self, attr)
98
+ if isinstance(value, list):
99
+ result[attr] = list(map(
100
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
101
+ value
102
+ ))
103
+ elif hasattr(value, "to_dict"):
104
+ result[attr] = value.to_dict()
105
+ elif isinstance(value, dict):
106
+ result[attr] = dict(map(
107
+ lambda item: (item[0], item[1].to_dict())
108
+ if hasattr(item[1], "to_dict") else item,
109
+ value.items()
110
+ ))
111
+ else:
112
+ if attr in self.sensitive_list:
113
+ result[attr] = "****"
114
+ else:
115
+ result[attr] = value
116
+
117
+ return result
118
+
119
+ def to_str(self):
120
+ """Returns the string representation of the model"""
121
+ import simplejson as json
122
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
123
+
124
+ def __repr__(self):
125
+ """For `print`"""
126
+ return self.to_str()
127
+
128
+ def __eq__(self, other):
129
+ """Returns true if both objects are equal"""
130
+ if not isinstance(other, RunCheckDataResponse):
131
+ return False
132
+
133
+ return self.__dict__ == other.__dict__
134
+
135
+ def __ne__(self, other):
136
+ """Returns true if both objects are not equal"""
137
+ return not self == other
@@ -0,0 +1,132 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class RunDeleteDataRequest:
7
+
8
+ """
9
+ Attributes:
10
+ openapi_types (dict): The key is attribute name
11
+ and the value is attribute type.
12
+ attribute_map (dict): The key is attribute name
13
+ and the value is json key in definition.
14
+ """
15
+ sensitive_list = []
16
+
17
+ openapi_types = {
18
+ 'service_name': 'str',
19
+ 'body': 'DeleteParam'
20
+ }
21
+
22
+ attribute_map = {
23
+ 'service_name': 'service_name',
24
+ 'body': 'body'
25
+ }
26
+
27
+ def __init__(self, service_name=None, body=None):
28
+ r"""RunDeleteDataRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param service_name: 服务实例的名称,用户创建服务实例时指定。
33
+ :type service_name: str
34
+ :param body: Body of the RunDeleteDataRequest
35
+ :type body: :class:`huaweicloudsdkimagesearch.v2.DeleteParam`
36
+ """
37
+
38
+
39
+
40
+ self._service_name = None
41
+ self._body = None
42
+ self.discriminator = None
43
+
44
+ self.service_name = service_name
45
+ if body is not None:
46
+ self.body = body
47
+
48
+ @property
49
+ def service_name(self):
50
+ r"""Gets the service_name of this RunDeleteDataRequest.
51
+
52
+ 服务实例的名称,用户创建服务实例时指定。
53
+
54
+ :return: The service_name of this RunDeleteDataRequest.
55
+ :rtype: str
56
+ """
57
+ return self._service_name
58
+
59
+ @service_name.setter
60
+ def service_name(self, service_name):
61
+ r"""Sets the service_name of this RunDeleteDataRequest.
62
+
63
+ 服务实例的名称,用户创建服务实例时指定。
64
+
65
+ :param service_name: The service_name of this RunDeleteDataRequest.
66
+ :type service_name: str
67
+ """
68
+ self._service_name = service_name
69
+
70
+ @property
71
+ def body(self):
72
+ r"""Gets the body of this RunDeleteDataRequest.
73
+
74
+ :return: The body of this RunDeleteDataRequest.
75
+ :rtype: :class:`huaweicloudsdkimagesearch.v2.DeleteParam`
76
+ """
77
+ return self._body
78
+
79
+ @body.setter
80
+ def body(self, body):
81
+ r"""Sets the body of this RunDeleteDataRequest.
82
+
83
+ :param body: The body of this RunDeleteDataRequest.
84
+ :type body: :class:`huaweicloudsdkimagesearch.v2.DeleteParam`
85
+ """
86
+ self._body = body
87
+
88
+ def to_dict(self):
89
+ result = {}
90
+
91
+ for attr, _ in self.openapi_types.items():
92
+ value = getattr(self, attr)
93
+ if isinstance(value, list):
94
+ result[attr] = list(map(
95
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
96
+ value
97
+ ))
98
+ elif hasattr(value, "to_dict"):
99
+ result[attr] = value.to_dict()
100
+ elif isinstance(value, dict):
101
+ result[attr] = dict(map(
102
+ lambda item: (item[0], item[1].to_dict())
103
+ if hasattr(item[1], "to_dict") else item,
104
+ value.items()
105
+ ))
106
+ else:
107
+ if attr in self.sensitive_list:
108
+ result[attr] = "****"
109
+ else:
110
+ result[attr] = value
111
+
112
+ return result
113
+
114
+ def to_str(self):
115
+ """Returns the string representation of the model"""
116
+ import simplejson as json
117
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
118
+
119
+ def __repr__(self):
120
+ """For `print`"""
121
+ return self.to_str()
122
+
123
+ def __eq__(self, other):
124
+ """Returns true if both objects are equal"""
125
+ if not isinstance(other, RunDeleteDataRequest):
126
+ return False
127
+
128
+ return self.__dict__ == other.__dict__
129
+
130
+ def __ne__(self, other):
131
+ """Returns true if both objects are not equal"""
132
+ return not self == other
@@ -0,0 +1,137 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.sdk_response import SdkResponse
4
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
5
+
6
+
7
+ class RunDeleteDataResponse(SdkResponse):
8
+
9
+ """
10
+ Attributes:
11
+ openapi_types (dict): The key is attribute name
12
+ and the value is attribute type.
13
+ attribute_map (dict): The key is attribute name
14
+ and the value is json key in definition.
15
+ """
16
+ sensitive_list = []
17
+
18
+ openapi_types = {
19
+ 'result': 'str',
20
+ 'data': 'DeleteRestInfo'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'result': 'result',
25
+ 'data': 'data'
26
+ }
27
+
28
+ def __init__(self, result=None, data=None):
29
+ r"""RunDeleteDataResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param result: 删除数据完成返回success。
34
+ :type result: str
35
+ :param data:
36
+ :type data: :class:`huaweicloudsdkimagesearch.v2.DeleteRestInfo`
37
+ """
38
+
39
+ super().__init__()
40
+
41
+ self._result = None
42
+ self._data = None
43
+ self.discriminator = None
44
+
45
+ if result is not None:
46
+ self.result = result
47
+ if data is not None:
48
+ self.data = data
49
+
50
+ @property
51
+ def result(self):
52
+ r"""Gets the result of this RunDeleteDataResponse.
53
+
54
+ 删除数据完成返回success。
55
+
56
+ :return: The result of this RunDeleteDataResponse.
57
+ :rtype: str
58
+ """
59
+ return self._result
60
+
61
+ @result.setter
62
+ def result(self, result):
63
+ r"""Sets the result of this RunDeleteDataResponse.
64
+
65
+ 删除数据完成返回success。
66
+
67
+ :param result: The result of this RunDeleteDataResponse.
68
+ :type result: str
69
+ """
70
+ self._result = result
71
+
72
+ @property
73
+ def data(self):
74
+ r"""Gets the data of this RunDeleteDataResponse.
75
+
76
+ :return: The data of this RunDeleteDataResponse.
77
+ :rtype: :class:`huaweicloudsdkimagesearch.v2.DeleteRestInfo`
78
+ """
79
+ return self._data
80
+
81
+ @data.setter
82
+ def data(self, data):
83
+ r"""Sets the data of this RunDeleteDataResponse.
84
+
85
+ :param data: The data of this RunDeleteDataResponse.
86
+ :type data: :class:`huaweicloudsdkimagesearch.v2.DeleteRestInfo`
87
+ """
88
+ self._data = data
89
+
90
+ def to_dict(self):
91
+ import warnings
92
+ warnings.warn("RunDeleteDataResponse.to_dict() is deprecated and no longer maintained, "
93
+ "use to_json_object() to get the response content.", DeprecationWarning)
94
+ result = {}
95
+
96
+ for attr, _ in self.openapi_types.items():
97
+ value = getattr(self, attr)
98
+ if isinstance(value, list):
99
+ result[attr] = list(map(
100
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
101
+ value
102
+ ))
103
+ elif hasattr(value, "to_dict"):
104
+ result[attr] = value.to_dict()
105
+ elif isinstance(value, dict):
106
+ result[attr] = dict(map(
107
+ lambda item: (item[0], item[1].to_dict())
108
+ if hasattr(item[1], "to_dict") else item,
109
+ value.items()
110
+ ))
111
+ else:
112
+ if attr in self.sensitive_list:
113
+ result[attr] = "****"
114
+ else:
115
+ result[attr] = value
116
+
117
+ return result
118
+
119
+ def to_str(self):
120
+ """Returns the string representation of the model"""
121
+ import simplejson as json
122
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
123
+
124
+ def __repr__(self):
125
+ """For `print`"""
126
+ return self.to_str()
127
+
128
+ def __eq__(self, other):
129
+ """Returns true if both objects are equal"""
130
+ if not isinstance(other, RunDeleteDataResponse):
131
+ return False
132
+
133
+ return self.__dict__ == other.__dict__
134
+
135
+ def __ne__(self, other):
136
+ """Returns true if both objects are not equal"""
137
+ return not self == other
@@ -0,0 +1,132 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class RunSearchRequest:
7
+
8
+ """
9
+ Attributes:
10
+ openapi_types (dict): The key is attribute name
11
+ and the value is attribute type.
12
+ attribute_map (dict): The key is attribute name
13
+ and the value is json key in definition.
14
+ """
15
+ sensitive_list = []
16
+
17
+ openapi_types = {
18
+ 'service_name': 'str',
19
+ 'body': 'SearchParam'
20
+ }
21
+
22
+ attribute_map = {
23
+ 'service_name': 'service_name',
24
+ 'body': 'body'
25
+ }
26
+
27
+ def __init__(self, service_name=None, body=None):
28
+ r"""RunSearchRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param service_name: 服务实例的名称,用户创建服务实例时指定。
33
+ :type service_name: str
34
+ :param body: Body of the RunSearchRequest
35
+ :type body: :class:`huaweicloudsdkimagesearch.v2.SearchParam`
36
+ """
37
+
38
+
39
+
40
+ self._service_name = None
41
+ self._body = None
42
+ self.discriminator = None
43
+
44
+ self.service_name = service_name
45
+ if body is not None:
46
+ self.body = body
47
+
48
+ @property
49
+ def service_name(self):
50
+ r"""Gets the service_name of this RunSearchRequest.
51
+
52
+ 服务实例的名称,用户创建服务实例时指定。
53
+
54
+ :return: The service_name of this RunSearchRequest.
55
+ :rtype: str
56
+ """
57
+ return self._service_name
58
+
59
+ @service_name.setter
60
+ def service_name(self, service_name):
61
+ r"""Sets the service_name of this RunSearchRequest.
62
+
63
+ 服务实例的名称,用户创建服务实例时指定。
64
+
65
+ :param service_name: The service_name of this RunSearchRequest.
66
+ :type service_name: str
67
+ """
68
+ self._service_name = service_name
69
+
70
+ @property
71
+ def body(self):
72
+ r"""Gets the body of this RunSearchRequest.
73
+
74
+ :return: The body of this RunSearchRequest.
75
+ :rtype: :class:`huaweicloudsdkimagesearch.v2.SearchParam`
76
+ """
77
+ return self._body
78
+
79
+ @body.setter
80
+ def body(self, body):
81
+ r"""Sets the body of this RunSearchRequest.
82
+
83
+ :param body: The body of this RunSearchRequest.
84
+ :type body: :class:`huaweicloudsdkimagesearch.v2.SearchParam`
85
+ """
86
+ self._body = body
87
+
88
+ def to_dict(self):
89
+ result = {}
90
+
91
+ for attr, _ in self.openapi_types.items():
92
+ value = getattr(self, attr)
93
+ if isinstance(value, list):
94
+ result[attr] = list(map(
95
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
96
+ value
97
+ ))
98
+ elif hasattr(value, "to_dict"):
99
+ result[attr] = value.to_dict()
100
+ elif isinstance(value, dict):
101
+ result[attr] = dict(map(
102
+ lambda item: (item[0], item[1].to_dict())
103
+ if hasattr(item[1], "to_dict") else item,
104
+ value.items()
105
+ ))
106
+ else:
107
+ if attr in self.sensitive_list:
108
+ result[attr] = "****"
109
+ else:
110
+ result[attr] = value
111
+
112
+ return result
113
+
114
+ def to_str(self):
115
+ """Returns the string representation of the model"""
116
+ import simplejson as json
117
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
118
+
119
+ def __repr__(self):
120
+ """For `print`"""
121
+ return self.to_str()
122
+
123
+ def __eq__(self, other):
124
+ """Returns true if both objects are equal"""
125
+ if not isinstance(other, RunSearchRequest):
126
+ return False
127
+
128
+ return self.__dict__ == other.__dict__
129
+
130
+ def __ne__(self, other):
131
+ """Returns true if both objects are not equal"""
132
+ return not self == other