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