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.
- huaweicloudsdkimagesearch/__init__.py +0 -0
- huaweicloudsdkimagesearch/v2/__init__.py +40 -0
- huaweicloudsdkimagesearch/v2/imagesearch_async_client.py +418 -0
- huaweicloudsdkimagesearch/v2/imagesearch_client.py +415 -0
- huaweicloudsdkimagesearch/v2/model/__init__.py +37 -0
- huaweicloudsdkimagesearch/v2/model/add_data_optional_param.py +195 -0
- huaweicloudsdkimagesearch/v2/model/add_data_param.py +335 -0
- huaweicloudsdkimagesearch/v2/model/add_data_rest_info.py +104 -0
- huaweicloudsdkimagesearch/v2/model/add_data_rest_info_image_info.py +108 -0
- huaweicloudsdkimagesearch/v2/model/add_data_rest_info_image_info_objects.py +166 -0
- huaweicloudsdkimagesearch/v2/model/check_info.py +162 -0
- huaweicloudsdkimagesearch/v2/model/check_param.py +220 -0
- huaweicloudsdkimagesearch/v2/model/check_rest_info.py +187 -0
- huaweicloudsdkimagesearch/v2/model/delete_info.py +137 -0
- huaweicloudsdkimagesearch/v2/model/delete_param.py +195 -0
- huaweicloudsdkimagesearch/v2/model/delete_rest_info.py +133 -0
- huaweicloudsdkimagesearch/v2/model/delete_rest_info_items.py +108 -0
- huaweicloudsdkimagesearch/v2/model/item_source.py +195 -0
- huaweicloudsdkimagesearch/v2/model/range_param.py +137 -0
- huaweicloudsdkimagesearch/v2/model/run_add_data_request.py +132 -0
- huaweicloudsdkimagesearch/v2/model/run_add_data_response.py +137 -0
- huaweicloudsdkimagesearch/v2/model/run_check_data_request.py +132 -0
- huaweicloudsdkimagesearch/v2/model/run_check_data_response.py +137 -0
- huaweicloudsdkimagesearch/v2/model/run_delete_data_request.py +132 -0
- huaweicloudsdkimagesearch/v2/model/run_delete_data_response.py +137 -0
- huaweicloudsdkimagesearch/v2/model/run_search_request.py +132 -0
- huaweicloudsdkimagesearch/v2/model/run_search_response.py +137 -0
- huaweicloudsdkimagesearch/v2/model/run_update_data_request.py +132 -0
- huaweicloudsdkimagesearch/v2/model/run_update_data_response.py +112 -0
- huaweicloudsdkimagesearch/v2/model/search_after_param.py +137 -0
- huaweicloudsdkimagesearch/v2/model/search_info.py +191 -0
- huaweicloudsdkimagesearch/v2/model/search_item.py +162 -0
- huaweicloudsdkimagesearch/v2/model/search_optional_param.py +311 -0
- huaweicloudsdkimagesearch/v2/model/search_param.py +418 -0
- huaweicloudsdkimagesearch/v2/model/search_rest_info.py +158 -0
- huaweicloudsdkimagesearch/v2/model/search_rest_info_image_info.py +195 -0
- huaweicloudsdkimagesearch/v2/model/update_param.py +194 -0
- huaweicloudsdkimagesearch/v2/region/__init__.py +0 -0
- huaweicloudsdkimagesearch/v2/region/imagesearch_region.py +32 -0
- huaweicloudsdkimagesearch-3.1.183.dist-info/METADATA +25 -0
- huaweicloudsdkimagesearch-3.1.183.dist-info/RECORD +43 -0
- huaweicloudsdkimagesearch-3.1.183.dist-info/WHEEL +4 -0
- huaweicloudsdkimagesearch-3.1.183.dist-info/licenses/LICENSE +13 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class SearchRestInfoImageInfo:
|
|
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
|
+
'box': 'str',
|
|
19
|
+
'category': 'int',
|
|
20
|
+
'category_name': 'str',
|
|
21
|
+
'objects': 'list[AddDataRestInfoImageInfoObjects]'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'box': 'box',
|
|
26
|
+
'category': 'category',
|
|
27
|
+
'category_name': 'category_name',
|
|
28
|
+
'objects': 'objects'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, box=None, category=None, category_name=None, objects=None):
|
|
32
|
+
r"""SearchRestInfoImageInfo
|
|
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
|
+
:param objects: 搜索图像中的所有主体列表。
|
|
43
|
+
:type objects: list[:class:`huaweicloudsdkimagesearch.v2.AddDataRestInfoImageInfoObjects`]
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
self._box = None
|
|
49
|
+
self._category = None
|
|
50
|
+
self._category_name = None
|
|
51
|
+
self._objects = None
|
|
52
|
+
self.discriminator = None
|
|
53
|
+
|
|
54
|
+
if box is not None:
|
|
55
|
+
self.box = box
|
|
56
|
+
if category is not None:
|
|
57
|
+
self.category = category
|
|
58
|
+
if category_name is not None:
|
|
59
|
+
self.category_name = category_name
|
|
60
|
+
if objects is not None:
|
|
61
|
+
self.objects = objects
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def box(self):
|
|
65
|
+
r"""Gets the box of this SearchRestInfoImageInfo.
|
|
66
|
+
|
|
67
|
+
用于搜索的主体目标框。
|
|
68
|
+
|
|
69
|
+
:return: The box of this SearchRestInfoImageInfo.
|
|
70
|
+
:rtype: str
|
|
71
|
+
"""
|
|
72
|
+
return self._box
|
|
73
|
+
|
|
74
|
+
@box.setter
|
|
75
|
+
def box(self, box):
|
|
76
|
+
r"""Sets the box of this SearchRestInfoImageInfo.
|
|
77
|
+
|
|
78
|
+
用于搜索的主体目标框。
|
|
79
|
+
|
|
80
|
+
:param box: The box of this SearchRestInfoImageInfo.
|
|
81
|
+
:type box: str
|
|
82
|
+
"""
|
|
83
|
+
self._box = box
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def category(self):
|
|
87
|
+
r"""Gets the category of this SearchRestInfoImageInfo.
|
|
88
|
+
|
|
89
|
+
用于搜索的主体类目序号。
|
|
90
|
+
|
|
91
|
+
:return: The category of this SearchRestInfoImageInfo.
|
|
92
|
+
:rtype: int
|
|
93
|
+
"""
|
|
94
|
+
return self._category
|
|
95
|
+
|
|
96
|
+
@category.setter
|
|
97
|
+
def category(self, category):
|
|
98
|
+
r"""Sets the category of this SearchRestInfoImageInfo.
|
|
99
|
+
|
|
100
|
+
用于搜索的主体类目序号。
|
|
101
|
+
|
|
102
|
+
:param category: The category of this SearchRestInfoImageInfo.
|
|
103
|
+
:type category: int
|
|
104
|
+
"""
|
|
105
|
+
self._category = category
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def category_name(self):
|
|
109
|
+
r"""Gets the category_name of this SearchRestInfoImageInfo.
|
|
110
|
+
|
|
111
|
+
用于搜索的主体类目名称。
|
|
112
|
+
|
|
113
|
+
:return: The category_name of this SearchRestInfoImageInfo.
|
|
114
|
+
:rtype: str
|
|
115
|
+
"""
|
|
116
|
+
return self._category_name
|
|
117
|
+
|
|
118
|
+
@category_name.setter
|
|
119
|
+
def category_name(self, category_name):
|
|
120
|
+
r"""Sets the category_name of this SearchRestInfoImageInfo.
|
|
121
|
+
|
|
122
|
+
用于搜索的主体类目名称。
|
|
123
|
+
|
|
124
|
+
:param category_name: The category_name of this SearchRestInfoImageInfo.
|
|
125
|
+
:type category_name: str
|
|
126
|
+
"""
|
|
127
|
+
self._category_name = category_name
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
def objects(self):
|
|
131
|
+
r"""Gets the objects of this SearchRestInfoImageInfo.
|
|
132
|
+
|
|
133
|
+
搜索图像中的所有主体列表。
|
|
134
|
+
|
|
135
|
+
:return: The objects of this SearchRestInfoImageInfo.
|
|
136
|
+
:rtype: list[:class:`huaweicloudsdkimagesearch.v2.AddDataRestInfoImageInfoObjects`]
|
|
137
|
+
"""
|
|
138
|
+
return self._objects
|
|
139
|
+
|
|
140
|
+
@objects.setter
|
|
141
|
+
def objects(self, objects):
|
|
142
|
+
r"""Sets the objects of this SearchRestInfoImageInfo.
|
|
143
|
+
|
|
144
|
+
搜索图像中的所有主体列表。
|
|
145
|
+
|
|
146
|
+
:param objects: The objects of this SearchRestInfoImageInfo.
|
|
147
|
+
:type objects: list[:class:`huaweicloudsdkimagesearch.v2.AddDataRestInfoImageInfoObjects`]
|
|
148
|
+
"""
|
|
149
|
+
self._objects = objects
|
|
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, SearchRestInfoImageInfo):
|
|
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,194 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class UpdateParam:
|
|
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
|
+
'item_id': 'str',
|
|
19
|
+
'desc': 'str',
|
|
20
|
+
'custom_tags': 'dict(str, str)',
|
|
21
|
+
'custom_num_tags': 'dict(str, float)'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'item_id': 'item_id',
|
|
26
|
+
'desc': 'desc',
|
|
27
|
+
'custom_tags': 'custom_tags',
|
|
28
|
+
'custom_num_tags': 'custom_num_tags'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, item_id=None, desc=None, custom_tags=None, custom_num_tags=None):
|
|
32
|
+
r"""UpdateParam
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param item_id: 数据的服务实例级唯一标识,字符长度范围为[1, 256]。
|
|
37
|
+
:type item_id: str
|
|
38
|
+
:param desc: 数据的描述信息,字符长度范围为[1, 2048]。
|
|
39
|
+
:type desc: str
|
|
40
|
+
:param custom_tags: 数据的自定义字符标签,用于进行条件过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 类型为字符串,字符长度范围为[1, 64]。
|
|
41
|
+
:type custom_tags: dict(str, str)
|
|
42
|
+
:param custom_num_tags: 数据的自定义数值标签,用于进行条件过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 类型为数值,格式为double。
|
|
43
|
+
:type custom_num_tags: dict(str, float)
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
self._item_id = None
|
|
49
|
+
self._desc = None
|
|
50
|
+
self._custom_tags = None
|
|
51
|
+
self._custom_num_tags = None
|
|
52
|
+
self.discriminator = None
|
|
53
|
+
|
|
54
|
+
self.item_id = item_id
|
|
55
|
+
if desc is not None:
|
|
56
|
+
self.desc = desc
|
|
57
|
+
if custom_tags is not None:
|
|
58
|
+
self.custom_tags = custom_tags
|
|
59
|
+
if custom_num_tags is not None:
|
|
60
|
+
self.custom_num_tags = custom_num_tags
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
def item_id(self):
|
|
64
|
+
r"""Gets the item_id of this UpdateParam.
|
|
65
|
+
|
|
66
|
+
数据的服务实例级唯一标识,字符长度范围为[1, 256]。
|
|
67
|
+
|
|
68
|
+
:return: The item_id of this UpdateParam.
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._item_id
|
|
72
|
+
|
|
73
|
+
@item_id.setter
|
|
74
|
+
def item_id(self, item_id):
|
|
75
|
+
r"""Sets the item_id of this UpdateParam.
|
|
76
|
+
|
|
77
|
+
数据的服务实例级唯一标识,字符长度范围为[1, 256]。
|
|
78
|
+
|
|
79
|
+
:param item_id: The item_id of this UpdateParam.
|
|
80
|
+
:type item_id: str
|
|
81
|
+
"""
|
|
82
|
+
self._item_id = item_id
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def desc(self):
|
|
86
|
+
r"""Gets the desc of this UpdateParam.
|
|
87
|
+
|
|
88
|
+
数据的描述信息,字符长度范围为[1, 2048]。
|
|
89
|
+
|
|
90
|
+
:return: The desc of this UpdateParam.
|
|
91
|
+
:rtype: str
|
|
92
|
+
"""
|
|
93
|
+
return self._desc
|
|
94
|
+
|
|
95
|
+
@desc.setter
|
|
96
|
+
def desc(self, desc):
|
|
97
|
+
r"""Sets the desc of this UpdateParam.
|
|
98
|
+
|
|
99
|
+
数据的描述信息,字符长度范围为[1, 2048]。
|
|
100
|
+
|
|
101
|
+
:param desc: The desc of this UpdateParam.
|
|
102
|
+
:type desc: str
|
|
103
|
+
"""
|
|
104
|
+
self._desc = desc
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
def custom_tags(self):
|
|
108
|
+
r"""Gets the custom_tags of this UpdateParam.
|
|
109
|
+
|
|
110
|
+
数据的自定义字符标签,用于进行条件过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 类型为字符串,字符长度范围为[1, 64]。
|
|
111
|
+
|
|
112
|
+
:return: The custom_tags of this UpdateParam.
|
|
113
|
+
:rtype: dict(str, str)
|
|
114
|
+
"""
|
|
115
|
+
return self._custom_tags
|
|
116
|
+
|
|
117
|
+
@custom_tags.setter
|
|
118
|
+
def custom_tags(self, custom_tags):
|
|
119
|
+
r"""Sets the custom_tags of this UpdateParam.
|
|
120
|
+
|
|
121
|
+
数据的自定义字符标签,用于进行条件过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 类型为字符串,字符长度范围为[1, 64]。
|
|
122
|
+
|
|
123
|
+
:param custom_tags: The custom_tags of this UpdateParam.
|
|
124
|
+
:type custom_tags: dict(str, str)
|
|
125
|
+
"""
|
|
126
|
+
self._custom_tags = custom_tags
|
|
127
|
+
|
|
128
|
+
@property
|
|
129
|
+
def custom_num_tags(self):
|
|
130
|
+
r"""Gets the custom_num_tags of this UpdateParam.
|
|
131
|
+
|
|
132
|
+
数据的自定义数值标签,用于进行条件过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 类型为数值,格式为double。
|
|
133
|
+
|
|
134
|
+
:return: The custom_num_tags of this UpdateParam.
|
|
135
|
+
:rtype: dict(str, float)
|
|
136
|
+
"""
|
|
137
|
+
return self._custom_num_tags
|
|
138
|
+
|
|
139
|
+
@custom_num_tags.setter
|
|
140
|
+
def custom_num_tags(self, custom_num_tags):
|
|
141
|
+
r"""Sets the custom_num_tags of this UpdateParam.
|
|
142
|
+
|
|
143
|
+
数据的自定义数值标签,用于进行条件过滤。格式为键值对{key:value}。 - key: 必须为服务实例custom_num_tags中已存在的key,可在创建服务实例时进行配置,或在更新服务实例时进行新增。 - value: 类型为数值,格式为double。
|
|
144
|
+
|
|
145
|
+
:param custom_num_tags: The custom_num_tags of this UpdateParam.
|
|
146
|
+
:type custom_num_tags: dict(str, float)
|
|
147
|
+
"""
|
|
148
|
+
self._custom_num_tags = custom_num_tags
|
|
149
|
+
|
|
150
|
+
def to_dict(self):
|
|
151
|
+
result = {}
|
|
152
|
+
|
|
153
|
+
for attr, _ in self.openapi_types.items():
|
|
154
|
+
value = getattr(self, attr)
|
|
155
|
+
if isinstance(value, list):
|
|
156
|
+
result[attr] = list(map(
|
|
157
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
158
|
+
value
|
|
159
|
+
))
|
|
160
|
+
elif hasattr(value, "to_dict"):
|
|
161
|
+
result[attr] = value.to_dict()
|
|
162
|
+
elif isinstance(value, dict):
|
|
163
|
+
result[attr] = dict(map(
|
|
164
|
+
lambda item: (item[0], item[1].to_dict())
|
|
165
|
+
if hasattr(item[1], "to_dict") else item,
|
|
166
|
+
value.items()
|
|
167
|
+
))
|
|
168
|
+
else:
|
|
169
|
+
if attr in self.sensitive_list:
|
|
170
|
+
result[attr] = "****"
|
|
171
|
+
else:
|
|
172
|
+
result[attr] = value
|
|
173
|
+
|
|
174
|
+
return result
|
|
175
|
+
|
|
176
|
+
def to_str(self):
|
|
177
|
+
"""Returns the string representation of the model"""
|
|
178
|
+
import simplejson as json
|
|
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, UpdateParam):
|
|
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
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.region.region import Region
|
|
4
|
+
from huaweicloudsdkcore.region.provider import RegionProviderChain
|
|
5
|
+
|
|
6
|
+
class ImageSearchRegion:
|
|
7
|
+
_PROVIDER = RegionProviderChain.get_default_region_provider_chain("IMAGESEARCH")
|
|
8
|
+
|
|
9
|
+
CN_NORTH_4 = Region("cn-north-4",
|
|
10
|
+
"https://mms.cn-north-4.myhuaweicloud.com",
|
|
11
|
+
"https://mms.cn-north-4.myhuaweicloud.cn")
|
|
12
|
+
|
|
13
|
+
static_fields = {
|
|
14
|
+
"cn-north-4": CN_NORTH_4,
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@classmethod
|
|
18
|
+
def value_of(cls, region_id, static_fields=None):
|
|
19
|
+
if not region_id:
|
|
20
|
+
raise KeyError("Unexpected empty parameter: region_id")
|
|
21
|
+
|
|
22
|
+
fields = static_fields or cls.static_fields
|
|
23
|
+
|
|
24
|
+
region = cls._PROVIDER.get_region(region_id)
|
|
25
|
+
if region:
|
|
26
|
+
return region
|
|
27
|
+
|
|
28
|
+
if region_id in fields:
|
|
29
|
+
return fields.get(region_id)
|
|
30
|
+
|
|
31
|
+
raise KeyError("region_id '%s' is not in the following supported regions of service 'ImageSearch': [%s]" % (
|
|
32
|
+
region_id, ", ".join(sorted(fields.keys()))))
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: huaweicloudsdkimagesearch
|
|
3
|
+
Version: 3.1.183
|
|
4
|
+
Summary: ImageSearch
|
|
5
|
+
Project-URL: Homepage, https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
|
6
|
+
Author-email: HuaweiCloud SDK <hwcloudsdk@huawei.com>
|
|
7
|
+
License-Expression: Apache-2.0
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Keywords: ImageSearch,huaweicloud,sdk
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Topic :: Software Development
|
|
21
|
+
Requires-Python: >=3.6
|
|
22
|
+
Requires-Dist: huaweicloudsdkcore>=3.1.183
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
|
|
25
|
+
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
huaweicloudsdkimagesearch/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
huaweicloudsdkimagesearch/v2/__init__.py,sha256=NrU_nFyzdcmjEWrCJxDpbMm1oNevEncxY0JfxHkqRtE,2890
|
|
3
|
+
huaweicloudsdkimagesearch/v2/imagesearch_async_client.py,sha256=J2bYU489L7wgLzu5Awj7Abcfw-fg2q_PoerGPFo1cBk,14206
|
|
4
|
+
huaweicloudsdkimagesearch/v2/imagesearch_client.py,sha256=f63ubcPdtisNZ50iEu0aVt0mea0KcW_hkosxz15EOD0,14116
|
|
5
|
+
huaweicloudsdkimagesearch/v2/model/__init__.py,sha256=vd7Q2pDzMKI_wtiLlMptQfgR44kdkhqakKfWs4VecBQ,2756
|
|
6
|
+
huaweicloudsdkimagesearch/v2/model/add_data_optional_param.py,sha256=QTI6rccqc9ziLiRQ3oQfFhKN9EeQ7_nY7f6lXJceY1I,6806
|
|
7
|
+
huaweicloudsdkimagesearch/v2/model/add_data_param.py,sha256=FbcTnhpjn81__Jr1HYOohlRT-liaWpMc9J9wEiNPC9I,13856
|
|
8
|
+
huaweicloudsdkimagesearch/v2/model/add_data_rest_info.py,sha256=dZ7pF3eztcpZleU8PNKZzFwPU9u4CqJAHvp-70yxQ_0,3054
|
|
9
|
+
huaweicloudsdkimagesearch/v2/model/add_data_rest_info_image_info.py,sha256=KUIwcmSpWb1IE2BH00QtTiAQDikL6qLLY0vvSLbvyn0,3192
|
|
10
|
+
huaweicloudsdkimagesearch/v2/model/add_data_rest_info_image_info_objects.py,sha256=hoVVRyPvAWe6C6YJUFt2msz9k5YQj7iA2pybYF21lzA,4668
|
|
11
|
+
huaweicloudsdkimagesearch/v2/model/check_info.py,sha256=uJSSujY-CSNYlEZcSzbr86KKjUsqGxV7yvqd35aIqfk,4558
|
|
12
|
+
huaweicloudsdkimagesearch/v2/model/check_param.py,sha256=xMp0dvOT-HLANy3oSnHKOLZSTJgL71ECrtBzvyDNzI8,9778
|
|
13
|
+
huaweicloudsdkimagesearch/v2/model/check_rest_info.py,sha256=W7j8nzYa0gViaKHdI8Dod9g_-CetmD304za0KCfZYCo,5798
|
|
14
|
+
huaweicloudsdkimagesearch/v2/model/delete_info.py,sha256=ySmEEwRQuHgeVY_VWimhI9NTsGVTqb17_KPALsPWa8U,3868
|
|
15
|
+
huaweicloudsdkimagesearch/v2/model/delete_param.py,sha256=lx9NcvtOOWkmX5IvAnCqYXqRBo39sIga8gzGQq8qETo,9270
|
|
16
|
+
huaweicloudsdkimagesearch/v2/model/delete_rest_info.py,sha256=C3wo5cp7oNUzYR1rTk1nColry5PeftdtisiF0BWkDHA,3915
|
|
17
|
+
huaweicloudsdkimagesearch/v2/model/delete_rest_info_items.py,sha256=bIclzwf5snW3gUHqUZOOf15c0t8w3qQOVj2c9PMQPKs,2771
|
|
18
|
+
huaweicloudsdkimagesearch/v2/model/item_source.py,sha256=5vM0xyFJiDynwAvTsSnDlYefmKZrfP1BRRRerVSjAPE,5435
|
|
19
|
+
huaweicloudsdkimagesearch/v2/model/range_param.py,sha256=Lj37YGvOnOAaHVMLTh1dcRJru56XJ7Y4RCkx2sEkUAI,3526
|
|
20
|
+
huaweicloudsdkimagesearch/v2/model/run_add_data_request.py,sha256=2AAmbHNamAJTJPf1VyDVBJJAj3aVo68kaRisSju8V4c,3859
|
|
21
|
+
huaweicloudsdkimagesearch/v2/model/run_add_data_response.py,sha256=OEv0E932rM-Ql-e4ww8v08ocGJVo08wAOjGkRDJ7vF0,3978
|
|
22
|
+
huaweicloudsdkimagesearch/v2/model/run_check_data_request.py,sha256=f9EVUgtVszTbJSIvTixo-6_m5cqR2-ybcW3RIRNQF7Y,3875
|
|
23
|
+
huaweicloudsdkimagesearch/v2/model/run_check_data_response.py,sha256=WQASXfBcRPezupbXw2cews6NYZG2qyLbsHGs0FCDFtg,3994
|
|
24
|
+
huaweicloudsdkimagesearch/v2/model/run_delete_data_request.py,sha256=qPzGtDOZg_bazEr6glkGAp978ScVQReTHweHFy9Rnzg,3891
|
|
25
|
+
huaweicloudsdkimagesearch/v2/model/run_delete_data_response.py,sha256=U6vPSMXwgdRPyTH6rxPH6jjtNLD1frLtsRR7xSTRM34,4010
|
|
26
|
+
huaweicloudsdkimagesearch/v2/model/run_search_request.py,sha256=A-bLsGO_uiSx8ojAqZnswFJHQPAWxCL0WpyIHKeU2B8,3843
|
|
27
|
+
huaweicloudsdkimagesearch/v2/model/run_search_response.py,sha256=nNd5Mq6x3qTQYZEI17KhKteNYntWj9YY4VGVh-XYKBY,3944
|
|
28
|
+
huaweicloudsdkimagesearch/v2/model/run_update_data_request.py,sha256=-cKiBz3ZGSz7-FevKRxaxDuBuRO0QgS5RAmT0cpVHIQ,3891
|
|
29
|
+
huaweicloudsdkimagesearch/v2/model/run_update_data_response.py,sha256=a5-DH5Q7I8Nu-2e_KdB6dCygaSGLsV-MCra_ugeFRvc,3231
|
|
30
|
+
huaweicloudsdkimagesearch/v2/model/search_after_param.py,sha256=f0sbNUO-syJqxw8fNcKP2CKU4r-U-kBU50tWjxRwvu0,3465
|
|
31
|
+
huaweicloudsdkimagesearch/v2/model/search_info.py,sha256=Rb4kHdAkKGuqQvDvMeGjBni6cpTZiJSXMVz0pLX-5O0,5412
|
|
32
|
+
huaweicloudsdkimagesearch/v2/model/search_item.py,sha256=XYsG83qi-cSLq9tCwKbX6lB263owra7lNRd2je_XP1Q,4164
|
|
33
|
+
huaweicloudsdkimagesearch/v2/model/search_optional_param.py,sha256=-CTU-O-O4DxOka_vBvOBL2B5Ji-Y-mW42cHa3zQ4ke8,11207
|
|
34
|
+
huaweicloudsdkimagesearch/v2/model/search_param.py,sha256=DyMJTF9eVV6WgxOJWE-KhsuABsr2CTZG-bH8Q-qlqrY,18300
|
|
35
|
+
huaweicloudsdkimagesearch/v2/model/search_rest_info.py,sha256=LfZDW3RWc2xlWLZ-aTnsLHfWbMKMWQxlgJ4-XnhDgmM,4804
|
|
36
|
+
huaweicloudsdkimagesearch/v2/model/search_rest_info_image_info.py,sha256=9d6ezT0RCWeiV8nqcpJYD9GaY6LcQTiKBsOLHp06ULk,5768
|
|
37
|
+
huaweicloudsdkimagesearch/v2/model/update_param.py,sha256=yCgojIQeZ0XRABz0COg-bQUahSPCzqgrjzruiKEzZ28,7198
|
|
38
|
+
huaweicloudsdkimagesearch/v2/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
39
|
+
huaweicloudsdkimagesearch/v2/region/imagesearch_region.py,sha256=OexympI67g0rbVe6eCF_6eTsMD8AZCAs8gUIwagcLoU,1052
|
|
40
|
+
huaweicloudsdkimagesearch-3.1.183.dist-info/METADATA,sha256=pXr6CYELu6t5aGY4eKX9AS6OLYbNe716xfOa8GF_uko,1096
|
|
41
|
+
huaweicloudsdkimagesearch-3.1.183.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
42
|
+
huaweicloudsdkimagesearch-3.1.183.dist-info/licenses/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
|
43
|
+
huaweicloudsdkimagesearch-3.1.183.dist-info/RECORD,,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright (c) Huawei Technologies Co., Ltd. 2020-present. All rights reserved.
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
See the License for the specific language governing permissions and
|
|
13
|
+
limitations under the License.
|