huaweicloudsdkimagesearch 3.1.160__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.

Potentially problematic release.


This version of huaweicloudsdkimagesearch might be problematic. Click here for more details.

Files changed (44) 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 +202 -0
  7. huaweicloudsdkimagesearch/v2/model/add_data_param.py +342 -0
  8. huaweicloudsdkimagesearch/v2/model/add_data_rest_info.py +111 -0
  9. huaweicloudsdkimagesearch/v2/model/add_data_rest_info_image_info.py +115 -0
  10. huaweicloudsdkimagesearch/v2/model/add_data_rest_info_image_info_objects.py +173 -0
  11. huaweicloudsdkimagesearch/v2/model/check_info.py +169 -0
  12. huaweicloudsdkimagesearch/v2/model/check_param.py +227 -0
  13. huaweicloudsdkimagesearch/v2/model/check_rest_info.py +194 -0
  14. huaweicloudsdkimagesearch/v2/model/delete_info.py +144 -0
  15. huaweicloudsdkimagesearch/v2/model/delete_param.py +202 -0
  16. huaweicloudsdkimagesearch/v2/model/delete_rest_info.py +140 -0
  17. huaweicloudsdkimagesearch/v2/model/delete_rest_info_items.py +115 -0
  18. huaweicloudsdkimagesearch/v2/model/item_source.py +202 -0
  19. huaweicloudsdkimagesearch/v2/model/range_param.py +144 -0
  20. huaweicloudsdkimagesearch/v2/model/run_add_data_request.py +139 -0
  21. huaweicloudsdkimagesearch/v2/model/run_add_data_response.py +141 -0
  22. huaweicloudsdkimagesearch/v2/model/run_check_data_request.py +139 -0
  23. huaweicloudsdkimagesearch/v2/model/run_check_data_response.py +141 -0
  24. huaweicloudsdkimagesearch/v2/model/run_delete_data_request.py +139 -0
  25. huaweicloudsdkimagesearch/v2/model/run_delete_data_response.py +141 -0
  26. huaweicloudsdkimagesearch/v2/model/run_search_request.py +139 -0
  27. huaweicloudsdkimagesearch/v2/model/run_search_response.py +141 -0
  28. huaweicloudsdkimagesearch/v2/model/run_update_data_request.py +139 -0
  29. huaweicloudsdkimagesearch/v2/model/run_update_data_response.py +116 -0
  30. huaweicloudsdkimagesearch/v2/model/search_after_param.py +144 -0
  31. huaweicloudsdkimagesearch/v2/model/search_info.py +198 -0
  32. huaweicloudsdkimagesearch/v2/model/search_item.py +169 -0
  33. huaweicloudsdkimagesearch/v2/model/search_optional_param.py +318 -0
  34. huaweicloudsdkimagesearch/v2/model/search_param.py +425 -0
  35. huaweicloudsdkimagesearch/v2/model/search_rest_info.py +165 -0
  36. huaweicloudsdkimagesearch/v2/model/search_rest_info_image_info.py +202 -0
  37. huaweicloudsdkimagesearch/v2/model/update_param.py +201 -0
  38. huaweicloudsdkimagesearch/v2/region/__init__.py +0 -0
  39. huaweicloudsdkimagesearch/v2/region/imagesearch_region.py +32 -0
  40. huaweicloudsdkimagesearch-3.1.160.dist-info/LICENSE +13 -0
  41. huaweicloudsdkimagesearch-3.1.160.dist-info/METADATA +26 -0
  42. huaweicloudsdkimagesearch-3.1.160.dist-info/RECORD +44 -0
  43. huaweicloudsdkimagesearch-3.1.160.dist-info/WHEEL +5 -0
  44. huaweicloudsdkimagesearch-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class AddDataRestInfoImageInfoObjects:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'box': 'str',
21
+ 'category': 'int',
22
+ 'category_name': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'box': 'box',
27
+ 'category': 'category',
28
+ 'category_name': 'category_name'
29
+ }
30
+
31
+ def __init__(self, box=None, category=None, category_name=None):
32
+ r"""AddDataRestInfoImageInfoObjects
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param box: 主体目标框。
37
+ :type box: str
38
+ :param category: 主体类目序号。
39
+ :type category: int
40
+ :param category_name: 主体类目名称。
41
+ :type category_name: str
42
+ """
43
+
44
+
45
+
46
+ self._box = None
47
+ self._category = None
48
+ self._category_name = None
49
+ self.discriminator = None
50
+
51
+ if box is not None:
52
+ self.box = box
53
+ if category is not None:
54
+ self.category = category
55
+ if category_name is not None:
56
+ self.category_name = category_name
57
+
58
+ @property
59
+ def box(self):
60
+ r"""Gets the box of this AddDataRestInfoImageInfoObjects.
61
+
62
+ 主体目标框。
63
+
64
+ :return: The box of this AddDataRestInfoImageInfoObjects.
65
+ :rtype: str
66
+ """
67
+ return self._box
68
+
69
+ @box.setter
70
+ def box(self, box):
71
+ r"""Sets the box of this AddDataRestInfoImageInfoObjects.
72
+
73
+ 主体目标框。
74
+
75
+ :param box: The box of this AddDataRestInfoImageInfoObjects.
76
+ :type box: str
77
+ """
78
+ self._box = box
79
+
80
+ @property
81
+ def category(self):
82
+ r"""Gets the category of this AddDataRestInfoImageInfoObjects.
83
+
84
+ 主体类目序号。
85
+
86
+ :return: The category of this AddDataRestInfoImageInfoObjects.
87
+ :rtype: int
88
+ """
89
+ return self._category
90
+
91
+ @category.setter
92
+ def category(self, category):
93
+ r"""Sets the category of this AddDataRestInfoImageInfoObjects.
94
+
95
+ 主体类目序号。
96
+
97
+ :param category: The category of this AddDataRestInfoImageInfoObjects.
98
+ :type category: int
99
+ """
100
+ self._category = category
101
+
102
+ @property
103
+ def category_name(self):
104
+ r"""Gets the category_name of this AddDataRestInfoImageInfoObjects.
105
+
106
+ 主体类目名称。
107
+
108
+ :return: The category_name of this AddDataRestInfoImageInfoObjects.
109
+ :rtype: str
110
+ """
111
+ return self._category_name
112
+
113
+ @category_name.setter
114
+ def category_name(self, category_name):
115
+ r"""Sets the category_name of this AddDataRestInfoImageInfoObjects.
116
+
117
+ 主体类目名称。
118
+
119
+ :param category_name: The category_name of this AddDataRestInfoImageInfoObjects.
120
+ :type category_name: str
121
+ """
122
+ self._category_name = category_name
123
+
124
+ def to_dict(self):
125
+ """Returns the model properties as a dict"""
126
+ result = {}
127
+
128
+ for attr, _ in six.iteritems(self.openapi_types):
129
+ value = getattr(self, attr)
130
+ if isinstance(value, list):
131
+ result[attr] = list(map(
132
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133
+ value
134
+ ))
135
+ elif hasattr(value, "to_dict"):
136
+ result[attr] = value.to_dict()
137
+ elif isinstance(value, dict):
138
+ result[attr] = dict(map(
139
+ lambda item: (item[0], item[1].to_dict())
140
+ if hasattr(item[1], "to_dict") else item,
141
+ value.items()
142
+ ))
143
+ else:
144
+ if attr in self.sensitive_list:
145
+ result[attr] = "****"
146
+ else:
147
+ result[attr] = value
148
+
149
+ return result
150
+
151
+ def to_str(self):
152
+ """Returns the string representation of the model"""
153
+ import simplejson as json
154
+ if six.PY2:
155
+ import sys
156
+ reload(sys)
157
+ sys.setdefaultencoding("utf-8")
158
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
159
+
160
+ def __repr__(self):
161
+ """For `print`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, AddDataRestInfoImageInfoObjects):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other
@@ -0,0 +1,169 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CheckInfo:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'total_num': 'int',
21
+ 'return_num': 'int',
22
+ 'last_item': 'SearchAfterParam'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'total_num': 'total_num',
27
+ 'return_num': 'return_num',
28
+ 'last_item': 'last_item'
29
+ }
30
+
31
+ def __init__(self, total_num=None, return_num=None, last_item=None):
32
+ r"""CheckInfo
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param total_num: 符合条件的结果总数。
37
+ :type total_num: int
38
+ :param return_num: 返回的结果总数。
39
+ :type return_num: int
40
+ :param last_item:
41
+ :type last_item: :class:`huaweicloudsdkimagesearch.v2.SearchAfterParam`
42
+ """
43
+
44
+
45
+
46
+ self._total_num = None
47
+ self._return_num = None
48
+ self._last_item = None
49
+ self.discriminator = None
50
+
51
+ if total_num is not None:
52
+ self.total_num = total_num
53
+ if return_num is not None:
54
+ self.return_num = return_num
55
+ if last_item is not None:
56
+ self.last_item = last_item
57
+
58
+ @property
59
+ def total_num(self):
60
+ r"""Gets the total_num of this CheckInfo.
61
+
62
+ 符合条件的结果总数。
63
+
64
+ :return: The total_num of this CheckInfo.
65
+ :rtype: int
66
+ """
67
+ return self._total_num
68
+
69
+ @total_num.setter
70
+ def total_num(self, total_num):
71
+ r"""Sets the total_num of this CheckInfo.
72
+
73
+ 符合条件的结果总数。
74
+
75
+ :param total_num: The total_num of this CheckInfo.
76
+ :type total_num: int
77
+ """
78
+ self._total_num = total_num
79
+
80
+ @property
81
+ def return_num(self):
82
+ r"""Gets the return_num of this CheckInfo.
83
+
84
+ 返回的结果总数。
85
+
86
+ :return: The return_num of this CheckInfo.
87
+ :rtype: int
88
+ """
89
+ return self._return_num
90
+
91
+ @return_num.setter
92
+ def return_num(self, return_num):
93
+ r"""Sets the return_num of this CheckInfo.
94
+
95
+ 返回的结果总数。
96
+
97
+ :param return_num: The return_num of this CheckInfo.
98
+ :type return_num: int
99
+ """
100
+ self._return_num = return_num
101
+
102
+ @property
103
+ def last_item(self):
104
+ r"""Gets the last_item of this CheckInfo.
105
+
106
+ :return: The last_item of this CheckInfo.
107
+ :rtype: :class:`huaweicloudsdkimagesearch.v2.SearchAfterParam`
108
+ """
109
+ return self._last_item
110
+
111
+ @last_item.setter
112
+ def last_item(self, last_item):
113
+ r"""Sets the last_item of this CheckInfo.
114
+
115
+ :param last_item: The last_item of this CheckInfo.
116
+ :type last_item: :class:`huaweicloudsdkimagesearch.v2.SearchAfterParam`
117
+ """
118
+ self._last_item = last_item
119
+
120
+ def to_dict(self):
121
+ """Returns the model properties as a dict"""
122
+ result = {}
123
+
124
+ for attr, _ in six.iteritems(self.openapi_types):
125
+ value = getattr(self, attr)
126
+ if isinstance(value, list):
127
+ result[attr] = list(map(
128
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
129
+ value
130
+ ))
131
+ elif hasattr(value, "to_dict"):
132
+ result[attr] = value.to_dict()
133
+ elif isinstance(value, dict):
134
+ result[attr] = dict(map(
135
+ lambda item: (item[0], item[1].to_dict())
136
+ if hasattr(item[1], "to_dict") else item,
137
+ value.items()
138
+ ))
139
+ else:
140
+ if attr in self.sensitive_list:
141
+ result[attr] = "****"
142
+ else:
143
+ result[attr] = value
144
+
145
+ return result
146
+
147
+ def to_str(self):
148
+ """Returns the string representation of the model"""
149
+ import simplejson as json
150
+ if six.PY2:
151
+ import sys
152
+ reload(sys)
153
+ sys.setdefaultencoding("utf-8")
154
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
155
+
156
+ def __repr__(self):
157
+ """For `print`"""
158
+ return self.to_str()
159
+
160
+ def __eq__(self, other):
161
+ """Returns true if both objects are equal"""
162
+ if not isinstance(other, CheckInfo):
163
+ return False
164
+
165
+ return self.__dict__ == other.__dict__
166
+
167
+ def __ne__(self, other):
168
+ """Returns true if both objects are not equal"""
169
+ return not self == other
@@ -0,0 +1,227 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CheckParam:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'item_id': 'str',
21
+ 'limit': 'int',
22
+ 'last_item': 'SearchAfterParam',
23
+ 'custom_tags': 'dict(str, list[str])',
24
+ 'custom_num_tags': 'dict(str, RangeParam)'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'item_id': 'item_id',
29
+ 'limit': 'limit',
30
+ 'last_item': 'last_item',
31
+ 'custom_tags': 'custom_tags',
32
+ 'custom_num_tags': 'custom_num_tags'
33
+ }
34
+
35
+ def __init__(self, item_id=None, limit=None, last_item=None, custom_tags=None, custom_num_tags=None):
36
+ r"""CheckParam
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param item_id: 数据的服务实例级唯一标识,字符长度范围为[1, 256]。 - item_id/custom_tags/custom_num_tags中必须给定至少一个参数,以支持对服务实例中的数据进行指定ID检查或条件检查。 - 如给定item_id参数,则进行指定ID检查,否则进行条件检查。
41
+ :type item_id: str
42
+ :param limit: 返回检查结果的数量,默认为10,取值范围为[1, 100]。仅对条件检查生效。
43
+ :type limit: int
44
+ :param last_item:
45
+ :type last_item: :class:`huaweicloudsdkimagesearch.v2.SearchAfterParam`
46
+ :param custom_tags: 自定义字符标签,用于对服务实例中的数据进行条件查找。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 标签值列表,列表内多个标签值为“或”关系,即满足一个即可。列表长度范围为[1, 32],标签值类型为字符串,字符长度范围为[1, 64]。
47
+ :type custom_tags: dict(str, list[str])
48
+ :param custom_num_tags: 自定义数值标签,用于对服务实例中的数据进行条件查找。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。针对没有设置该数值标签的数据,会直接过滤。 - value: 标签值的取值范围,标签值在给定的取值范围内即视为符合条件。
49
+ :type custom_num_tags: dict(str, RangeParam)
50
+ """
51
+
52
+
53
+
54
+ self._item_id = None
55
+ self._limit = None
56
+ self._last_item = None
57
+ self._custom_tags = None
58
+ self._custom_num_tags = None
59
+ self.discriminator = None
60
+
61
+ if item_id is not None:
62
+ self.item_id = item_id
63
+ if limit is not None:
64
+ self.limit = limit
65
+ if last_item is not None:
66
+ self.last_item = last_item
67
+ if custom_tags is not None:
68
+ self.custom_tags = custom_tags
69
+ if custom_num_tags is not None:
70
+ self.custom_num_tags = custom_num_tags
71
+
72
+ @property
73
+ def item_id(self):
74
+ r"""Gets the item_id of this CheckParam.
75
+
76
+ 数据的服务实例级唯一标识,字符长度范围为[1, 256]。 - item_id/custom_tags/custom_num_tags中必须给定至少一个参数,以支持对服务实例中的数据进行指定ID检查或条件检查。 - 如给定item_id参数,则进行指定ID检查,否则进行条件检查。
77
+
78
+ :return: The item_id of this CheckParam.
79
+ :rtype: str
80
+ """
81
+ return self._item_id
82
+
83
+ @item_id.setter
84
+ def item_id(self, item_id):
85
+ r"""Sets the item_id of this CheckParam.
86
+
87
+ 数据的服务实例级唯一标识,字符长度范围为[1, 256]。 - item_id/custom_tags/custom_num_tags中必须给定至少一个参数,以支持对服务实例中的数据进行指定ID检查或条件检查。 - 如给定item_id参数,则进行指定ID检查,否则进行条件检查。
88
+
89
+ :param item_id: The item_id of this CheckParam.
90
+ :type item_id: str
91
+ """
92
+ self._item_id = item_id
93
+
94
+ @property
95
+ def limit(self):
96
+ r"""Gets the limit of this CheckParam.
97
+
98
+ 返回检查结果的数量,默认为10,取值范围为[1, 100]。仅对条件检查生效。
99
+
100
+ :return: The limit of this CheckParam.
101
+ :rtype: int
102
+ """
103
+ return self._limit
104
+
105
+ @limit.setter
106
+ def limit(self, limit):
107
+ r"""Sets the limit of this CheckParam.
108
+
109
+ 返回检查结果的数量,默认为10,取值范围为[1, 100]。仅对条件检查生效。
110
+
111
+ :param limit: The limit of this CheckParam.
112
+ :type limit: int
113
+ """
114
+ self._limit = limit
115
+
116
+ @property
117
+ def last_item(self):
118
+ r"""Gets the last_item of this CheckParam.
119
+
120
+ :return: The last_item of this CheckParam.
121
+ :rtype: :class:`huaweicloudsdkimagesearch.v2.SearchAfterParam`
122
+ """
123
+ return self._last_item
124
+
125
+ @last_item.setter
126
+ def last_item(self, last_item):
127
+ r"""Sets the last_item of this CheckParam.
128
+
129
+ :param last_item: The last_item of this CheckParam.
130
+ :type last_item: :class:`huaweicloudsdkimagesearch.v2.SearchAfterParam`
131
+ """
132
+ self._last_item = last_item
133
+
134
+ @property
135
+ def custom_tags(self):
136
+ r"""Gets the custom_tags of this CheckParam.
137
+
138
+ 自定义字符标签,用于对服务实例中的数据进行条件查找。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 标签值列表,列表内多个标签值为“或”关系,即满足一个即可。列表长度范围为[1, 32],标签值类型为字符串,字符长度范围为[1, 64]。
139
+
140
+ :return: The custom_tags of this CheckParam.
141
+ :rtype: dict(str, list[str])
142
+ """
143
+ return self._custom_tags
144
+
145
+ @custom_tags.setter
146
+ def custom_tags(self, custom_tags):
147
+ r"""Sets the custom_tags of this CheckParam.
148
+
149
+ 自定义字符标签,用于对服务实例中的数据进行条件查找。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 标签值列表,列表内多个标签值为“或”关系,即满足一个即可。列表长度范围为[1, 32],标签值类型为字符串,字符长度范围为[1, 64]。
150
+
151
+ :param custom_tags: The custom_tags of this CheckParam.
152
+ :type custom_tags: dict(str, list[str])
153
+ """
154
+ self._custom_tags = custom_tags
155
+
156
+ @property
157
+ def custom_num_tags(self):
158
+ r"""Gets the custom_num_tags of this CheckParam.
159
+
160
+ 自定义数值标签,用于对服务实例中的数据进行条件查找。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。针对没有设置该数值标签的数据,会直接过滤。 - value: 标签值的取值范围,标签值在给定的取值范围内即视为符合条件。
161
+
162
+ :return: The custom_num_tags of this CheckParam.
163
+ :rtype: dict(str, RangeParam)
164
+ """
165
+ return self._custom_num_tags
166
+
167
+ @custom_num_tags.setter
168
+ def custom_num_tags(self, custom_num_tags):
169
+ r"""Sets the custom_num_tags of this CheckParam.
170
+
171
+ 自定义数值标签,用于对服务实例中的数据进行条件查找。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。针对没有设置该数值标签的数据,会直接过滤。 - value: 标签值的取值范围,标签值在给定的取值范围内即视为符合条件。
172
+
173
+ :param custom_num_tags: The custom_num_tags of this CheckParam.
174
+ :type custom_num_tags: dict(str, RangeParam)
175
+ """
176
+ self._custom_num_tags = custom_num_tags
177
+
178
+ def to_dict(self):
179
+ """Returns the model properties as a dict"""
180
+ result = {}
181
+
182
+ for attr, _ in six.iteritems(self.openapi_types):
183
+ value = getattr(self, attr)
184
+ if isinstance(value, list):
185
+ result[attr] = list(map(
186
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
187
+ value
188
+ ))
189
+ elif hasattr(value, "to_dict"):
190
+ result[attr] = value.to_dict()
191
+ elif isinstance(value, dict):
192
+ result[attr] = dict(map(
193
+ lambda item: (item[0], item[1].to_dict())
194
+ if hasattr(item[1], "to_dict") else item,
195
+ value.items()
196
+ ))
197
+ else:
198
+ if attr in self.sensitive_list:
199
+ result[attr] = "****"
200
+ else:
201
+ result[attr] = value
202
+
203
+ return result
204
+
205
+ def to_str(self):
206
+ """Returns the string representation of the model"""
207
+ import simplejson as json
208
+ if six.PY2:
209
+ import sys
210
+ reload(sys)
211
+ sys.setdefaultencoding("utf-8")
212
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
213
+
214
+ def __repr__(self):
215
+ """For `print`"""
216
+ return self.to_str()
217
+
218
+ def __eq__(self, other):
219
+ """Returns true if both objects are equal"""
220
+ if not isinstance(other, CheckParam):
221
+ return False
222
+
223
+ return self.__dict__ == other.__dict__
224
+
225
+ def __ne__(self, other):
226
+ """Returns true if both objects are not equal"""
227
+ return not self == other