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,194 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CheckRestInfo:
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
+ 'existed': 'bool',
21
+ 'item_info': 'ItemSource',
22
+ 'items': 'list[SearchItem]',
23
+ 'check_info': 'CheckInfo'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'existed': 'existed',
28
+ 'item_info': 'item_info',
29
+ 'items': 'items',
30
+ 'check_info': 'check_info'
31
+ }
32
+
33
+ def __init__(self, existed=None, item_info=None, items=None, check_info=None):
34
+ r"""CheckRestInfo
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param existed: 数据是否存在,存在返回true,不存在返回false。仅在指定ID检查时包含该字段。
39
+ :type existed: bool
40
+ :param item_info:
41
+ :type item_info: :class:`huaweicloudsdkimagesearch.v2.ItemSource`
42
+ :param items: 检查结果列表,仅在条件检查时包含该字段。
43
+ :type items: list[:class:`huaweicloudsdkimagesearch.v2.SearchItem`]
44
+ :param check_info:
45
+ :type check_info: :class:`huaweicloudsdkimagesearch.v2.CheckInfo`
46
+ """
47
+
48
+
49
+
50
+ self._existed = None
51
+ self._item_info = None
52
+ self._items = None
53
+ self._check_info = None
54
+ self.discriminator = None
55
+
56
+ if existed is not None:
57
+ self.existed = existed
58
+ if item_info is not None:
59
+ self.item_info = item_info
60
+ if items is not None:
61
+ self.items = items
62
+ if check_info is not None:
63
+ self.check_info = check_info
64
+
65
+ @property
66
+ def existed(self):
67
+ r"""Gets the existed of this CheckRestInfo.
68
+
69
+ 数据是否存在,存在返回true,不存在返回false。仅在指定ID检查时包含该字段。
70
+
71
+ :return: The existed of this CheckRestInfo.
72
+ :rtype: bool
73
+ """
74
+ return self._existed
75
+
76
+ @existed.setter
77
+ def existed(self, existed):
78
+ r"""Sets the existed of this CheckRestInfo.
79
+
80
+ 数据是否存在,存在返回true,不存在返回false。仅在指定ID检查时包含该字段。
81
+
82
+ :param existed: The existed of this CheckRestInfo.
83
+ :type existed: bool
84
+ """
85
+ self._existed = existed
86
+
87
+ @property
88
+ def item_info(self):
89
+ r"""Gets the item_info of this CheckRestInfo.
90
+
91
+ :return: The item_info of this CheckRestInfo.
92
+ :rtype: :class:`huaweicloudsdkimagesearch.v2.ItemSource`
93
+ """
94
+ return self._item_info
95
+
96
+ @item_info.setter
97
+ def item_info(self, item_info):
98
+ r"""Sets the item_info of this CheckRestInfo.
99
+
100
+ :param item_info: The item_info of this CheckRestInfo.
101
+ :type item_info: :class:`huaweicloudsdkimagesearch.v2.ItemSource`
102
+ """
103
+ self._item_info = item_info
104
+
105
+ @property
106
+ def items(self):
107
+ r"""Gets the items of this CheckRestInfo.
108
+
109
+ 检查结果列表,仅在条件检查时包含该字段。
110
+
111
+ :return: The items of this CheckRestInfo.
112
+ :rtype: list[:class:`huaweicloudsdkimagesearch.v2.SearchItem`]
113
+ """
114
+ return self._items
115
+
116
+ @items.setter
117
+ def items(self, items):
118
+ r"""Sets the items of this CheckRestInfo.
119
+
120
+ 检查结果列表,仅在条件检查时包含该字段。
121
+
122
+ :param items: The items of this CheckRestInfo.
123
+ :type items: list[:class:`huaweicloudsdkimagesearch.v2.SearchItem`]
124
+ """
125
+ self._items = items
126
+
127
+ @property
128
+ def check_info(self):
129
+ r"""Gets the check_info of this CheckRestInfo.
130
+
131
+ :return: The check_info of this CheckRestInfo.
132
+ :rtype: :class:`huaweicloudsdkimagesearch.v2.CheckInfo`
133
+ """
134
+ return self._check_info
135
+
136
+ @check_info.setter
137
+ def check_info(self, check_info):
138
+ r"""Sets the check_info of this CheckRestInfo.
139
+
140
+ :param check_info: The check_info of this CheckRestInfo.
141
+ :type check_info: :class:`huaweicloudsdkimagesearch.v2.CheckInfo`
142
+ """
143
+ self._check_info = check_info
144
+
145
+ def to_dict(self):
146
+ """Returns the model properties as a dict"""
147
+ result = {}
148
+
149
+ for attr, _ in six.iteritems(self.openapi_types):
150
+ value = getattr(self, attr)
151
+ if isinstance(value, list):
152
+ result[attr] = list(map(
153
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
154
+ value
155
+ ))
156
+ elif hasattr(value, "to_dict"):
157
+ result[attr] = value.to_dict()
158
+ elif isinstance(value, dict):
159
+ result[attr] = dict(map(
160
+ lambda item: (item[0], item[1].to_dict())
161
+ if hasattr(item[1], "to_dict") else item,
162
+ value.items()
163
+ ))
164
+ else:
165
+ if attr in self.sensitive_list:
166
+ result[attr] = "****"
167
+ else:
168
+ result[attr] = value
169
+
170
+ return result
171
+
172
+ def to_str(self):
173
+ """Returns the string representation of the model"""
174
+ import simplejson as json
175
+ if six.PY2:
176
+ import sys
177
+ reload(sys)
178
+ sys.setdefaultencoding("utf-8")
179
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
180
+
181
+ def __repr__(self):
182
+ """For `print`"""
183
+ return self.to_str()
184
+
185
+ def __eq__(self, other):
186
+ """Returns true if both objects are equal"""
187
+ if not isinstance(other, CheckRestInfo):
188
+ return False
189
+
190
+ return self.__dict__ == other.__dict__
191
+
192
+ def __ne__(self, other):
193
+ """Returns true if both objects are not equal"""
194
+ return not self == other
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DeleteInfo:
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
+ 'delete_num': 'int'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'total_num': 'total_num',
26
+ 'delete_num': 'delete_num'
27
+ }
28
+
29
+ def __init__(self, total_num=None, delete_num=None):
30
+ r"""DeleteInfo
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param total_num: 符合条件的结果总数。
35
+ :type total_num: int
36
+ :param delete_num: 本次删除的结果总数,目前一次请求最多删除100条结果。
37
+ :type delete_num: int
38
+ """
39
+
40
+
41
+
42
+ self._total_num = None
43
+ self._delete_num = None
44
+ self.discriminator = None
45
+
46
+ if total_num is not None:
47
+ self.total_num = total_num
48
+ if delete_num is not None:
49
+ self.delete_num = delete_num
50
+
51
+ @property
52
+ def total_num(self):
53
+ r"""Gets the total_num of this DeleteInfo.
54
+
55
+ 符合条件的结果总数。
56
+
57
+ :return: The total_num of this DeleteInfo.
58
+ :rtype: int
59
+ """
60
+ return self._total_num
61
+
62
+ @total_num.setter
63
+ def total_num(self, total_num):
64
+ r"""Sets the total_num of this DeleteInfo.
65
+
66
+ 符合条件的结果总数。
67
+
68
+ :param total_num: The total_num of this DeleteInfo.
69
+ :type total_num: int
70
+ """
71
+ self._total_num = total_num
72
+
73
+ @property
74
+ def delete_num(self):
75
+ r"""Gets the delete_num of this DeleteInfo.
76
+
77
+ 本次删除的结果总数,目前一次请求最多删除100条结果。
78
+
79
+ :return: The delete_num of this DeleteInfo.
80
+ :rtype: int
81
+ """
82
+ return self._delete_num
83
+
84
+ @delete_num.setter
85
+ def delete_num(self, delete_num):
86
+ r"""Sets the delete_num of this DeleteInfo.
87
+
88
+ 本次删除的结果总数,目前一次请求最多删除100条结果。
89
+
90
+ :param delete_num: The delete_num of this DeleteInfo.
91
+ :type delete_num: int
92
+ """
93
+ self._delete_num = delete_num
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, DeleteInfo):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other
@@ -0,0 +1,202 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DeleteParam:
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
+ 'force': 'bool',
21
+ 'item_id': 'str',
22
+ 'custom_tags': 'dict(str, list[str])',
23
+ 'custom_num_tags': 'dict(str, RangeParam)'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'force': 'force',
28
+ 'item_id': 'item_id',
29
+ 'custom_tags': 'custom_tags',
30
+ 'custom_num_tags': 'custom_num_tags'
31
+ }
32
+
33
+ def __init__(self, force=None, item_id=None, custom_tags=None, custom_num_tags=None):
34
+ r"""DeleteParam
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param force: 是否幂等删除数据,默认为false。仅对指定ID删除生效。 - false: 数据不存在时返回错误信息。 - true: 数据不存在时返回成功,用于幂等删除场景。
39
+ :type force: bool
40
+ :param item_id: 数据的服务实例级唯一标识,字符长度范围为[1, 256]。 - item_id/custom_tags/custom_num_tags中必须给定至少一个参数,以支持对服务实例中的数据进行指定ID删除或条件删除。 - 如给定item_id参数,则进行指定ID删除,否则进行条件删除。
41
+ :type item_id: str
42
+ :param custom_tags: 自定义字符标签,用于对服务实例中的数据进行条件删除。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 标签值列表,列表内多个标签值为“或”关系,即满足一个即可。列表长度范围为[1, 32],标签值类型为字符串,字符长度范围为[1, 64]。
43
+ :type custom_tags: dict(str, list[str])
44
+ :param custom_num_tags: 自定义数值标签,用于对服务实例中的数据进行custom_num_tags条件删除。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。针对没有设置该数值标签的数据,会直接过滤。 - value: 标签值的取值范围,标签值在给定的取值范围内即视为符合条件。
45
+ :type custom_num_tags: dict(str, RangeParam)
46
+ """
47
+
48
+
49
+
50
+ self._force = None
51
+ self._item_id = None
52
+ self._custom_tags = None
53
+ self._custom_num_tags = None
54
+ self.discriminator = None
55
+
56
+ if force is not None:
57
+ self.force = force
58
+ if item_id is not None:
59
+ self.item_id = item_id
60
+ if custom_tags is not None:
61
+ self.custom_tags = custom_tags
62
+ if custom_num_tags is not None:
63
+ self.custom_num_tags = custom_num_tags
64
+
65
+ @property
66
+ def force(self):
67
+ r"""Gets the force of this DeleteParam.
68
+
69
+ 是否幂等删除数据,默认为false。仅对指定ID删除生效。 - false: 数据不存在时返回错误信息。 - true: 数据不存在时返回成功,用于幂等删除场景。
70
+
71
+ :return: The force of this DeleteParam.
72
+ :rtype: bool
73
+ """
74
+ return self._force
75
+
76
+ @force.setter
77
+ def force(self, force):
78
+ r"""Sets the force of this DeleteParam.
79
+
80
+ 是否幂等删除数据,默认为false。仅对指定ID删除生效。 - false: 数据不存在时返回错误信息。 - true: 数据不存在时返回成功,用于幂等删除场景。
81
+
82
+ :param force: The force of this DeleteParam.
83
+ :type force: bool
84
+ """
85
+ self._force = force
86
+
87
+ @property
88
+ def item_id(self):
89
+ r"""Gets the item_id of this DeleteParam.
90
+
91
+ 数据的服务实例级唯一标识,字符长度范围为[1, 256]。 - item_id/custom_tags/custom_num_tags中必须给定至少一个参数,以支持对服务实例中的数据进行指定ID删除或条件删除。 - 如给定item_id参数,则进行指定ID删除,否则进行条件删除。
92
+
93
+ :return: The item_id of this DeleteParam.
94
+ :rtype: str
95
+ """
96
+ return self._item_id
97
+
98
+ @item_id.setter
99
+ def item_id(self, item_id):
100
+ r"""Sets the item_id of this DeleteParam.
101
+
102
+ 数据的服务实例级唯一标识,字符长度范围为[1, 256]。 - item_id/custom_tags/custom_num_tags中必须给定至少一个参数,以支持对服务实例中的数据进行指定ID删除或条件删除。 - 如给定item_id参数,则进行指定ID删除,否则进行条件删除。
103
+
104
+ :param item_id: The item_id of this DeleteParam.
105
+ :type item_id: str
106
+ """
107
+ self._item_id = item_id
108
+
109
+ @property
110
+ def custom_tags(self):
111
+ r"""Gets the custom_tags of this DeleteParam.
112
+
113
+ 自定义字符标签,用于对服务实例中的数据进行条件删除。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 标签值列表,列表内多个标签值为“或”关系,即满足一个即可。列表长度范围为[1, 32],标签值类型为字符串,字符长度范围为[1, 64]。
114
+
115
+ :return: The custom_tags of this DeleteParam.
116
+ :rtype: dict(str, list[str])
117
+ """
118
+ return self._custom_tags
119
+
120
+ @custom_tags.setter
121
+ def custom_tags(self, custom_tags):
122
+ r"""Sets the custom_tags of this DeleteParam.
123
+
124
+ 自定义字符标签,用于对服务实例中的数据进行条件删除。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 标签值列表,列表内多个标签值为“或”关系,即满足一个即可。列表长度范围为[1, 32],标签值类型为字符串,字符长度范围为[1, 64]。
125
+
126
+ :param custom_tags: The custom_tags of this DeleteParam.
127
+ :type custom_tags: dict(str, list[str])
128
+ """
129
+ self._custom_tags = custom_tags
130
+
131
+ @property
132
+ def custom_num_tags(self):
133
+ r"""Gets the custom_num_tags of this DeleteParam.
134
+
135
+ 自定义数值标签,用于对服务实例中的数据进行custom_num_tags条件删除。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。针对没有设置该数值标签的数据,会直接过滤。 - value: 标签值的取值范围,标签值在给定的取值范围内即视为符合条件。
136
+
137
+ :return: The custom_num_tags of this DeleteParam.
138
+ :rtype: dict(str, RangeParam)
139
+ """
140
+ return self._custom_num_tags
141
+
142
+ @custom_num_tags.setter
143
+ def custom_num_tags(self, custom_num_tags):
144
+ r"""Sets the custom_num_tags of this DeleteParam.
145
+
146
+ 自定义数值标签,用于对服务实例中的数据进行custom_num_tags条件删除。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。针对没有设置该数值标签的数据,会直接过滤。 - value: 标签值的取值范围,标签值在给定的取值范围内即视为符合条件。
147
+
148
+ :param custom_num_tags: The custom_num_tags of this DeleteParam.
149
+ :type custom_num_tags: dict(str, RangeParam)
150
+ """
151
+ self._custom_num_tags = custom_num_tags
152
+
153
+ def to_dict(self):
154
+ """Returns the model properties as a dict"""
155
+ result = {}
156
+
157
+ for attr, _ in six.iteritems(self.openapi_types):
158
+ value = getattr(self, attr)
159
+ if isinstance(value, list):
160
+ result[attr] = list(map(
161
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
162
+ value
163
+ ))
164
+ elif hasattr(value, "to_dict"):
165
+ result[attr] = value.to_dict()
166
+ elif isinstance(value, dict):
167
+ result[attr] = dict(map(
168
+ lambda item: (item[0], item[1].to_dict())
169
+ if hasattr(item[1], "to_dict") else item,
170
+ value.items()
171
+ ))
172
+ else:
173
+ if attr in self.sensitive_list:
174
+ result[attr] = "****"
175
+ else:
176
+ result[attr] = value
177
+
178
+ return result
179
+
180
+ def to_str(self):
181
+ """Returns the string representation of the model"""
182
+ import simplejson as json
183
+ if six.PY2:
184
+ import sys
185
+ reload(sys)
186
+ sys.setdefaultencoding("utf-8")
187
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
188
+
189
+ def __repr__(self):
190
+ """For `print`"""
191
+ return self.to_str()
192
+
193
+ def __eq__(self, other):
194
+ """Returns true if both objects are equal"""
195
+ if not isinstance(other, DeleteParam):
196
+ return False
197
+
198
+ return self.__dict__ == other.__dict__
199
+
200
+ def __ne__(self, other):
201
+ """Returns true if both objects are not equal"""
202
+ return not self == other
@@ -0,0 +1,140 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DeleteRestInfo:
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
+ 'items': 'list[DeleteRestInfoItems]',
21
+ 'delete_info': 'DeleteInfo'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'items': 'items',
26
+ 'delete_info': 'delete_info'
27
+ }
28
+
29
+ def __init__(self, items=None, delete_info=None):
30
+ r"""DeleteRestInfo
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param items: 删除数据列表。
35
+ :type items: list[:class:`huaweicloudsdkimagesearch.v2.DeleteRestInfoItems`]
36
+ :param delete_info:
37
+ :type delete_info: :class:`huaweicloudsdkimagesearch.v2.DeleteInfo`
38
+ """
39
+
40
+
41
+
42
+ self._items = None
43
+ self._delete_info = None
44
+ self.discriminator = None
45
+
46
+ if items is not None:
47
+ self.items = items
48
+ if delete_info is not None:
49
+ self.delete_info = delete_info
50
+
51
+ @property
52
+ def items(self):
53
+ r"""Gets the items of this DeleteRestInfo.
54
+
55
+ 删除数据列表。
56
+
57
+ :return: The items of this DeleteRestInfo.
58
+ :rtype: list[:class:`huaweicloudsdkimagesearch.v2.DeleteRestInfoItems`]
59
+ """
60
+ return self._items
61
+
62
+ @items.setter
63
+ def items(self, items):
64
+ r"""Sets the items of this DeleteRestInfo.
65
+
66
+ 删除数据列表。
67
+
68
+ :param items: The items of this DeleteRestInfo.
69
+ :type items: list[:class:`huaweicloudsdkimagesearch.v2.DeleteRestInfoItems`]
70
+ """
71
+ self._items = items
72
+
73
+ @property
74
+ def delete_info(self):
75
+ r"""Gets the delete_info of this DeleteRestInfo.
76
+
77
+ :return: The delete_info of this DeleteRestInfo.
78
+ :rtype: :class:`huaweicloudsdkimagesearch.v2.DeleteInfo`
79
+ """
80
+ return self._delete_info
81
+
82
+ @delete_info.setter
83
+ def delete_info(self, delete_info):
84
+ r"""Sets the delete_info of this DeleteRestInfo.
85
+
86
+ :param delete_info: The delete_info of this DeleteRestInfo.
87
+ :type delete_info: :class:`huaweicloudsdkimagesearch.v2.DeleteInfo`
88
+ """
89
+ self._delete_info = delete_info
90
+
91
+ def to_dict(self):
92
+ """Returns the model properties as a dict"""
93
+ result = {}
94
+
95
+ for attr, _ in six.iteritems(self.openapi_types):
96
+ value = getattr(self, attr)
97
+ if isinstance(value, list):
98
+ result[attr] = list(map(
99
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
100
+ value
101
+ ))
102
+ elif hasattr(value, "to_dict"):
103
+ result[attr] = value.to_dict()
104
+ elif isinstance(value, dict):
105
+ result[attr] = dict(map(
106
+ lambda item: (item[0], item[1].to_dict())
107
+ if hasattr(item[1], "to_dict") else item,
108
+ value.items()
109
+ ))
110
+ else:
111
+ if attr in self.sensitive_list:
112
+ result[attr] = "****"
113
+ else:
114
+ result[attr] = value
115
+
116
+ return result
117
+
118
+ def to_str(self):
119
+ """Returns the string representation of the model"""
120
+ import simplejson as json
121
+ if six.PY2:
122
+ import sys
123
+ reload(sys)
124
+ sys.setdefaultencoding("utf-8")
125
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
126
+
127
+ def __repr__(self):
128
+ """For `print`"""
129
+ return self.to_str()
130
+
131
+ def __eq__(self, other):
132
+ """Returns true if both objects are equal"""
133
+ if not isinstance(other, DeleteRestInfo):
134
+ return False
135
+
136
+ return self.__dict__ == other.__dict__
137
+
138
+ def __ne__(self, other):
139
+ """Returns true if both objects are not equal"""
140
+ return not self == other