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