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,108 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class DeleteRestInfoItems:
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
+ 'id': 'str'
19
+ }
20
+
21
+ attribute_map = {
22
+ 'id': 'id'
23
+ }
24
+
25
+ def __init__(self, id=None):
26
+ r"""DeleteRestInfoItems
27
+
28
+ The model defined in huaweicloud sdk
29
+
30
+ :param id: 数据唯一ID。
31
+ :type id: str
32
+ """
33
+
34
+
35
+
36
+ self._id = None
37
+ self.discriminator = None
38
+
39
+ if id is not None:
40
+ self.id = id
41
+
42
+ @property
43
+ def id(self):
44
+ r"""Gets the id of this DeleteRestInfoItems.
45
+
46
+ 数据唯一ID。
47
+
48
+ :return: The id of this DeleteRestInfoItems.
49
+ :rtype: str
50
+ """
51
+ return self._id
52
+
53
+ @id.setter
54
+ def id(self, id):
55
+ r"""Sets the id of this DeleteRestInfoItems.
56
+
57
+ 数据唯一ID。
58
+
59
+ :param id: The id of this DeleteRestInfoItems.
60
+ :type id: str
61
+ """
62
+ self._id = id
63
+
64
+ def to_dict(self):
65
+ result = {}
66
+
67
+ for attr, _ in self.openapi_types.items():
68
+ value = getattr(self, attr)
69
+ if isinstance(value, list):
70
+ result[attr] = list(map(
71
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
72
+ value
73
+ ))
74
+ elif hasattr(value, "to_dict"):
75
+ result[attr] = value.to_dict()
76
+ elif isinstance(value, dict):
77
+ result[attr] = dict(map(
78
+ lambda item: (item[0], item[1].to_dict())
79
+ if hasattr(item[1], "to_dict") else item,
80
+ value.items()
81
+ ))
82
+ else:
83
+ if attr in self.sensitive_list:
84
+ result[attr] = "****"
85
+ else:
86
+ result[attr] = value
87
+
88
+ return result
89
+
90
+ def to_str(self):
91
+ """Returns the string representation of the model"""
92
+ import simplejson as json
93
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
94
+
95
+ def __repr__(self):
96
+ """For `print`"""
97
+ return self.to_str()
98
+
99
+ def __eq__(self, other):
100
+ """Returns true if both objects are equal"""
101
+ if not isinstance(other, DeleteRestInfoItems):
102
+ return False
103
+
104
+ return self.__dict__ == other.__dict__
105
+
106
+ def __ne__(self, other):
107
+ """Returns true if both objects are not equal"""
108
+ return not self == other
@@ -0,0 +1,195 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class ItemSource:
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
+ 'desc': 'str',
19
+ 'custom_tags': 'dict(str, str)',
20
+ 'custom_num_tags': 'dict(str, float)',
21
+ 'keywords': 'list[str]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'desc': 'desc',
26
+ 'custom_tags': 'custom_tags',
27
+ 'custom_num_tags': 'custom_num_tags',
28
+ 'keywords': 'keywords'
29
+ }
30
+
31
+ def __init__(self, desc=None, custom_tags=None, custom_num_tags=None, keywords=None):
32
+ r"""ItemSource
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param desc: 数据描述信息。
37
+ :type desc: str
38
+ :param custom_tags: 数据自定义字符标签。
39
+ :type custom_tags: dict(str, str)
40
+ :param custom_num_tags: 数据自定义数值标签。
41
+ :type custom_num_tags: dict(str, float)
42
+ :param keywords: 数据关键词列表。
43
+ :type keywords: list[str]
44
+ """
45
+
46
+
47
+
48
+ self._desc = None
49
+ self._custom_tags = None
50
+ self._custom_num_tags = None
51
+ self._keywords = None
52
+ self.discriminator = None
53
+
54
+ if desc is not None:
55
+ self.desc = desc
56
+ if custom_tags is not None:
57
+ self.custom_tags = custom_tags
58
+ if custom_num_tags is not None:
59
+ self.custom_num_tags = custom_num_tags
60
+ if keywords is not None:
61
+ self.keywords = keywords
62
+
63
+ @property
64
+ def desc(self):
65
+ r"""Gets the desc of this ItemSource.
66
+
67
+ 数据描述信息。
68
+
69
+ :return: The desc of this ItemSource.
70
+ :rtype: str
71
+ """
72
+ return self._desc
73
+
74
+ @desc.setter
75
+ def desc(self, desc):
76
+ r"""Sets the desc of this ItemSource.
77
+
78
+ 数据描述信息。
79
+
80
+ :param desc: The desc of this ItemSource.
81
+ :type desc: str
82
+ """
83
+ self._desc = desc
84
+
85
+ @property
86
+ def custom_tags(self):
87
+ r"""Gets the custom_tags of this ItemSource.
88
+
89
+ 数据自定义字符标签。
90
+
91
+ :return: The custom_tags of this ItemSource.
92
+ :rtype: dict(str, str)
93
+ """
94
+ return self._custom_tags
95
+
96
+ @custom_tags.setter
97
+ def custom_tags(self, custom_tags):
98
+ r"""Sets the custom_tags of this ItemSource.
99
+
100
+ 数据自定义字符标签。
101
+
102
+ :param custom_tags: The custom_tags of this ItemSource.
103
+ :type custom_tags: dict(str, str)
104
+ """
105
+ self._custom_tags = custom_tags
106
+
107
+ @property
108
+ def custom_num_tags(self):
109
+ r"""Gets the custom_num_tags of this ItemSource.
110
+
111
+ 数据自定义数值标签。
112
+
113
+ :return: The custom_num_tags of this ItemSource.
114
+ :rtype: dict(str, float)
115
+ """
116
+ return self._custom_num_tags
117
+
118
+ @custom_num_tags.setter
119
+ def custom_num_tags(self, custom_num_tags):
120
+ r"""Sets the custom_num_tags of this ItemSource.
121
+
122
+ 数据自定义数值标签。
123
+
124
+ :param custom_num_tags: The custom_num_tags of this ItemSource.
125
+ :type custom_num_tags: dict(str, float)
126
+ """
127
+ self._custom_num_tags = custom_num_tags
128
+
129
+ @property
130
+ def keywords(self):
131
+ r"""Gets the keywords of this ItemSource.
132
+
133
+ 数据关键词列表。
134
+
135
+ :return: The keywords of this ItemSource.
136
+ :rtype: list[str]
137
+ """
138
+ return self._keywords
139
+
140
+ @keywords.setter
141
+ def keywords(self, keywords):
142
+ r"""Sets the keywords of this ItemSource.
143
+
144
+ 数据关键词列表。
145
+
146
+ :param keywords: The keywords of this ItemSource.
147
+ :type keywords: list[str]
148
+ """
149
+ self._keywords = keywords
150
+
151
+ def to_dict(self):
152
+ result = {}
153
+
154
+ for attr, _ in self.openapi_types.items():
155
+ value = getattr(self, attr)
156
+ if isinstance(value, list):
157
+ result[attr] = list(map(
158
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
159
+ value
160
+ ))
161
+ elif hasattr(value, "to_dict"):
162
+ result[attr] = value.to_dict()
163
+ elif isinstance(value, dict):
164
+ result[attr] = dict(map(
165
+ lambda item: (item[0], item[1].to_dict())
166
+ if hasattr(item[1], "to_dict") else item,
167
+ value.items()
168
+ ))
169
+ else:
170
+ if attr in self.sensitive_list:
171
+ result[attr] = "****"
172
+ else:
173
+ result[attr] = value
174
+
175
+ return result
176
+
177
+ def to_str(self):
178
+ """Returns the string representation of the model"""
179
+ import simplejson as json
180
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
181
+
182
+ def __repr__(self):
183
+ """For `print`"""
184
+ return self.to_str()
185
+
186
+ def __eq__(self, other):
187
+ """Returns true if both objects are equal"""
188
+ if not isinstance(other, ItemSource):
189
+ return False
190
+
191
+ return self.__dict__ == other.__dict__
192
+
193
+ def __ne__(self, other):
194
+ """Returns true if both objects are not equal"""
195
+ return not self == other
@@ -0,0 +1,137 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class RangeParam:
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
+ '_from': 'float',
19
+ 'to': 'float'
20
+ }
21
+
22
+ attribute_map = {
23
+ '_from': 'from',
24
+ 'to': 'to'
25
+ }
26
+
27
+ def __init__(self, _from=None, to=None):
28
+ r"""RangeParam
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param _from: 数值下界,默认包含该下界。
33
+ :type _from: float
34
+ :param to: 数值上界,默认包含该上界。
35
+ :type to: float
36
+ """
37
+
38
+
39
+
40
+ self.__from = None
41
+ self._to = None
42
+ self.discriminator = None
43
+
44
+ if _from is not None:
45
+ self._from = _from
46
+ if to is not None:
47
+ self.to = to
48
+
49
+ @property
50
+ def _from(self):
51
+ r"""Gets the _from of this RangeParam.
52
+
53
+ 数值下界,默认包含该下界。
54
+
55
+ :return: The _from of this RangeParam.
56
+ :rtype: float
57
+ """
58
+ return self.__from
59
+
60
+ @_from.setter
61
+ def _from(self, _from):
62
+ r"""Sets the _from of this RangeParam.
63
+
64
+ 数值下界,默认包含该下界。
65
+
66
+ :param _from: The _from of this RangeParam.
67
+ :type _from: float
68
+ """
69
+ self.__from = _from
70
+
71
+ @property
72
+ def to(self):
73
+ r"""Gets the to of this RangeParam.
74
+
75
+ 数值上界,默认包含该上界。
76
+
77
+ :return: The to of this RangeParam.
78
+ :rtype: float
79
+ """
80
+ return self._to
81
+
82
+ @to.setter
83
+ def to(self, to):
84
+ r"""Sets the to of this RangeParam.
85
+
86
+ 数值上界,默认包含该上界。
87
+
88
+ :param to: The to of this RangeParam.
89
+ :type to: float
90
+ """
91
+ self._to = to
92
+
93
+ def to_dict(self):
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, RangeParam):
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 RunAddDataRequest:
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': 'AddDataParam'
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"""RunAddDataRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param service_name: 服务实例的名称,用户创建服务实例时指定。
33
+ :type service_name: str
34
+ :param body: Body of the RunAddDataRequest
35
+ :type body: :class:`huaweicloudsdkimagesearch.v2.AddDataParam`
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 RunAddDataRequest.
51
+
52
+ 服务实例的名称,用户创建服务实例时指定。
53
+
54
+ :return: The service_name of this RunAddDataRequest.
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 RunAddDataRequest.
62
+
63
+ 服务实例的名称,用户创建服务实例时指定。
64
+
65
+ :param service_name: The service_name of this RunAddDataRequest.
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 RunAddDataRequest.
73
+
74
+ :return: The body of this RunAddDataRequest.
75
+ :rtype: :class:`huaweicloudsdkimagesearch.v2.AddDataParam`
76
+ """
77
+ return self._body
78
+
79
+ @body.setter
80
+ def body(self, body):
81
+ r"""Sets the body of this RunAddDataRequest.
82
+
83
+ :param body: The body of this RunAddDataRequest.
84
+ :type body: :class:`huaweicloudsdkimagesearch.v2.AddDataParam`
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, RunAddDataRequest):
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 RunAddDataResponse(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': 'AddDataRestInfo'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'result': 'result',
25
+ 'data': 'data'
26
+ }
27
+
28
+ def __init__(self, result=None, data=None):
29
+ r"""RunAddDataResponse
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.AddDataRestInfo`
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 RunAddDataResponse.
53
+
54
+ 添加数据完成返回success。
55
+
56
+ :return: The result of this RunAddDataResponse.
57
+ :rtype: str
58
+ """
59
+ return self._result
60
+
61
+ @result.setter
62
+ def result(self, result):
63
+ r"""Sets the result of this RunAddDataResponse.
64
+
65
+ 添加数据完成返回success。
66
+
67
+ :param result: The result of this RunAddDataResponse.
68
+ :type result: str
69
+ """
70
+ self._result = result
71
+
72
+ @property
73
+ def data(self):
74
+ r"""Gets the data of this RunAddDataResponse.
75
+
76
+ :return: The data of this RunAddDataResponse.
77
+ :rtype: :class:`huaweicloudsdkimagesearch.v2.AddDataRestInfo`
78
+ """
79
+ return self._data
80
+
81
+ @data.setter
82
+ def data(self, data):
83
+ r"""Sets the data of this RunAddDataResponse.
84
+
85
+ :param data: The data of this RunAddDataResponse.
86
+ :type data: :class:`huaweicloudsdkimagesearch.v2.AddDataRestInfo`
87
+ """
88
+ self._data = data
89
+
90
+ def to_dict(self):
91
+ import warnings
92
+ warnings.warn("RunAddDataResponse.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, RunAddDataResponse):
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