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