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.
- 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 +202 -0
- huaweicloudsdkimagesearch/v2/model/add_data_param.py +342 -0
- huaweicloudsdkimagesearch/v2/model/add_data_rest_info.py +111 -0
- huaweicloudsdkimagesearch/v2/model/add_data_rest_info_image_info.py +115 -0
- huaweicloudsdkimagesearch/v2/model/add_data_rest_info_image_info_objects.py +173 -0
- huaweicloudsdkimagesearch/v2/model/check_info.py +169 -0
- huaweicloudsdkimagesearch/v2/model/check_param.py +227 -0
- huaweicloudsdkimagesearch/v2/model/check_rest_info.py +194 -0
- huaweicloudsdkimagesearch/v2/model/delete_info.py +144 -0
- huaweicloudsdkimagesearch/v2/model/delete_param.py +202 -0
- huaweicloudsdkimagesearch/v2/model/delete_rest_info.py +140 -0
- huaweicloudsdkimagesearch/v2/model/delete_rest_info_items.py +115 -0
- huaweicloudsdkimagesearch/v2/model/item_source.py +202 -0
- huaweicloudsdkimagesearch/v2/model/range_param.py +144 -0
- huaweicloudsdkimagesearch/v2/model/run_add_data_request.py +139 -0
- huaweicloudsdkimagesearch/v2/model/run_add_data_response.py +141 -0
- huaweicloudsdkimagesearch/v2/model/run_check_data_request.py +139 -0
- huaweicloudsdkimagesearch/v2/model/run_check_data_response.py +141 -0
- huaweicloudsdkimagesearch/v2/model/run_delete_data_request.py +139 -0
- huaweicloudsdkimagesearch/v2/model/run_delete_data_response.py +141 -0
- huaweicloudsdkimagesearch/v2/model/run_search_request.py +139 -0
- huaweicloudsdkimagesearch/v2/model/run_search_response.py +141 -0
- huaweicloudsdkimagesearch/v2/model/run_update_data_request.py +139 -0
- huaweicloudsdkimagesearch/v2/model/run_update_data_response.py +116 -0
- huaweicloudsdkimagesearch/v2/model/search_after_param.py +144 -0
- huaweicloudsdkimagesearch/v2/model/search_info.py +198 -0
- huaweicloudsdkimagesearch/v2/model/search_item.py +169 -0
- huaweicloudsdkimagesearch/v2/model/search_optional_param.py +318 -0
- huaweicloudsdkimagesearch/v2/model/search_param.py +425 -0
- huaweicloudsdkimagesearch/v2/model/search_rest_info.py +165 -0
- huaweicloudsdkimagesearch/v2/model/search_rest_info_image_info.py +202 -0
- huaweicloudsdkimagesearch/v2/model/update_param.py +201 -0
- huaweicloudsdkimagesearch/v2/region/__init__.py +0 -0
- huaweicloudsdkimagesearch/v2/region/imagesearch_region.py +32 -0
- huaweicloudsdkimagesearch-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkimagesearch-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkimagesearch-3.1.160.dist-info/RECORD +44 -0
- huaweicloudsdkimagesearch-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkimagesearch-3.1.160.dist-info/top_level.txt +1 -0
|
@@ -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 RunSearchRequest:
|
|
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': 'SearchParam'
|
|
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"""RunSearchRequest
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param service_name: 服务实例的名称,用户创建服务实例时指定。
|
|
35
|
+
:type service_name: str
|
|
36
|
+
:param body: Body of the RunSearchRequest
|
|
37
|
+
:type body: :class:`huaweicloudsdkimagesearch.v2.SearchParam`
|
|
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 RunSearchRequest.
|
|
53
|
+
|
|
54
|
+
服务实例的名称,用户创建服务实例时指定。
|
|
55
|
+
|
|
56
|
+
:return: The service_name of this RunSearchRequest.
|
|
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 RunSearchRequest.
|
|
64
|
+
|
|
65
|
+
服务实例的名称,用户创建服务实例时指定。
|
|
66
|
+
|
|
67
|
+
:param service_name: The service_name of this RunSearchRequest.
|
|
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 RunSearchRequest.
|
|
75
|
+
|
|
76
|
+
:return: The body of this RunSearchRequest.
|
|
77
|
+
:rtype: :class:`huaweicloudsdkimagesearch.v2.SearchParam`
|
|
78
|
+
"""
|
|
79
|
+
return self._body
|
|
80
|
+
|
|
81
|
+
@body.setter
|
|
82
|
+
def body(self, body):
|
|
83
|
+
r"""Sets the body of this RunSearchRequest.
|
|
84
|
+
|
|
85
|
+
:param body: The body of this RunSearchRequest.
|
|
86
|
+
:type body: :class:`huaweicloudsdkimagesearch.v2.SearchParam`
|
|
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, RunSearchRequest):
|
|
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
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class RunSearchResponse(SdkResponse):
|
|
10
|
+
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
openapi_types (dict): The key is attribute name
|
|
14
|
+
and the value is attribute type.
|
|
15
|
+
attribute_map (dict): The key is attribute name
|
|
16
|
+
and the value is json key in definition.
|
|
17
|
+
"""
|
|
18
|
+
sensitive_list = []
|
|
19
|
+
|
|
20
|
+
openapi_types = {
|
|
21
|
+
'result': 'str',
|
|
22
|
+
'data': 'SearchRestInfo'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'result': 'result',
|
|
27
|
+
'data': 'data'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
def __init__(self, result=None, data=None):
|
|
31
|
+
r"""RunSearchResponse
|
|
32
|
+
|
|
33
|
+
The model defined in huaweicloud sdk
|
|
34
|
+
|
|
35
|
+
:param result: 搜索完成返回success。
|
|
36
|
+
:type result: str
|
|
37
|
+
:param data:
|
|
38
|
+
:type data: :class:`huaweicloudsdkimagesearch.v2.SearchRestInfo`
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
super(RunSearchResponse, self).__init__()
|
|
42
|
+
|
|
43
|
+
self._result = None
|
|
44
|
+
self._data = None
|
|
45
|
+
self.discriminator = None
|
|
46
|
+
|
|
47
|
+
if result is not None:
|
|
48
|
+
self.result = result
|
|
49
|
+
if data is not None:
|
|
50
|
+
self.data = data
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def result(self):
|
|
54
|
+
r"""Gets the result of this RunSearchResponse.
|
|
55
|
+
|
|
56
|
+
搜索完成返回success。
|
|
57
|
+
|
|
58
|
+
:return: The result of this RunSearchResponse.
|
|
59
|
+
:rtype: str
|
|
60
|
+
"""
|
|
61
|
+
return self._result
|
|
62
|
+
|
|
63
|
+
@result.setter
|
|
64
|
+
def result(self, result):
|
|
65
|
+
r"""Sets the result of this RunSearchResponse.
|
|
66
|
+
|
|
67
|
+
搜索完成返回success。
|
|
68
|
+
|
|
69
|
+
:param result: The result of this RunSearchResponse.
|
|
70
|
+
:type result: str
|
|
71
|
+
"""
|
|
72
|
+
self._result = result
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def data(self):
|
|
76
|
+
r"""Gets the data of this RunSearchResponse.
|
|
77
|
+
|
|
78
|
+
:return: The data of this RunSearchResponse.
|
|
79
|
+
:rtype: :class:`huaweicloudsdkimagesearch.v2.SearchRestInfo`
|
|
80
|
+
"""
|
|
81
|
+
return self._data
|
|
82
|
+
|
|
83
|
+
@data.setter
|
|
84
|
+
def data(self, data):
|
|
85
|
+
r"""Sets the data of this RunSearchResponse.
|
|
86
|
+
|
|
87
|
+
:param data: The data of this RunSearchResponse.
|
|
88
|
+
:type data: :class:`huaweicloudsdkimagesearch.v2.SearchRestInfo`
|
|
89
|
+
"""
|
|
90
|
+
self._data = data
|
|
91
|
+
|
|
92
|
+
def to_dict(self):
|
|
93
|
+
"""Returns the model properties as a dict"""
|
|
94
|
+
result = {}
|
|
95
|
+
|
|
96
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
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
|
+
if six.PY2:
|
|
123
|
+
import sys
|
|
124
|
+
reload(sys)
|
|
125
|
+
sys.setdefaultencoding("utf-8")
|
|
126
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
127
|
+
|
|
128
|
+
def __repr__(self):
|
|
129
|
+
"""For `print`"""
|
|
130
|
+
return self.to_str()
|
|
131
|
+
|
|
132
|
+
def __eq__(self, other):
|
|
133
|
+
"""Returns true if both objects are equal"""
|
|
134
|
+
if not isinstance(other, RunSearchResponse):
|
|
135
|
+
return False
|
|
136
|
+
|
|
137
|
+
return self.__dict__ == other.__dict__
|
|
138
|
+
|
|
139
|
+
def __ne__(self, other):
|
|
140
|
+
"""Returns true if both objects are not equal"""
|
|
141
|
+
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 RunUpdateDataRequest:
|
|
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': 'UpdateParam'
|
|
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"""RunUpdateDataRequest
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param service_name: 服务实例的名称,用户创建服务实例时指定。
|
|
35
|
+
:type service_name: str
|
|
36
|
+
:param body: Body of the RunUpdateDataRequest
|
|
37
|
+
:type body: :class:`huaweicloudsdkimagesearch.v2.UpdateParam`
|
|
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 RunUpdateDataRequest.
|
|
53
|
+
|
|
54
|
+
服务实例的名称,用户创建服务实例时指定。
|
|
55
|
+
|
|
56
|
+
:return: The service_name of this RunUpdateDataRequest.
|
|
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 RunUpdateDataRequest.
|
|
64
|
+
|
|
65
|
+
服务实例的名称,用户创建服务实例时指定。
|
|
66
|
+
|
|
67
|
+
:param service_name: The service_name of this RunUpdateDataRequest.
|
|
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 RunUpdateDataRequest.
|
|
75
|
+
|
|
76
|
+
:return: The body of this RunUpdateDataRequest.
|
|
77
|
+
:rtype: :class:`huaweicloudsdkimagesearch.v2.UpdateParam`
|
|
78
|
+
"""
|
|
79
|
+
return self._body
|
|
80
|
+
|
|
81
|
+
@body.setter
|
|
82
|
+
def body(self, body):
|
|
83
|
+
r"""Sets the body of this RunUpdateDataRequest.
|
|
84
|
+
|
|
85
|
+
:param body: The body of this RunUpdateDataRequest.
|
|
86
|
+
:type body: :class:`huaweicloudsdkimagesearch.v2.UpdateParam`
|
|
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, RunUpdateDataRequest):
|
|
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
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class RunUpdateDataResponse(SdkResponse):
|
|
10
|
+
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
openapi_types (dict): The key is attribute name
|
|
14
|
+
and the value is attribute type.
|
|
15
|
+
attribute_map (dict): The key is attribute name
|
|
16
|
+
and the value is json key in definition.
|
|
17
|
+
"""
|
|
18
|
+
sensitive_list = []
|
|
19
|
+
|
|
20
|
+
openapi_types = {
|
|
21
|
+
'result': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'result': 'result'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
def __init__(self, result=None):
|
|
29
|
+
r"""RunUpdateDataResponse
|
|
30
|
+
|
|
31
|
+
The model defined in huaweicloud sdk
|
|
32
|
+
|
|
33
|
+
:param result: 更新数据完成返回success。
|
|
34
|
+
:type result: str
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
super(RunUpdateDataResponse, self).__init__()
|
|
38
|
+
|
|
39
|
+
self._result = None
|
|
40
|
+
self.discriminator = None
|
|
41
|
+
|
|
42
|
+
if result is not None:
|
|
43
|
+
self.result = result
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def result(self):
|
|
47
|
+
r"""Gets the result of this RunUpdateDataResponse.
|
|
48
|
+
|
|
49
|
+
更新数据完成返回success。
|
|
50
|
+
|
|
51
|
+
:return: The result of this RunUpdateDataResponse.
|
|
52
|
+
:rtype: str
|
|
53
|
+
"""
|
|
54
|
+
return self._result
|
|
55
|
+
|
|
56
|
+
@result.setter
|
|
57
|
+
def result(self, result):
|
|
58
|
+
r"""Sets the result of this RunUpdateDataResponse.
|
|
59
|
+
|
|
60
|
+
更新数据完成返回success。
|
|
61
|
+
|
|
62
|
+
:param result: The result of this RunUpdateDataResponse.
|
|
63
|
+
:type result: str
|
|
64
|
+
"""
|
|
65
|
+
self._result = result
|
|
66
|
+
|
|
67
|
+
def to_dict(self):
|
|
68
|
+
"""Returns the model properties as a dict"""
|
|
69
|
+
result = {}
|
|
70
|
+
|
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
72
|
+
value = getattr(self, attr)
|
|
73
|
+
if isinstance(value, list):
|
|
74
|
+
result[attr] = list(map(
|
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
76
|
+
value
|
|
77
|
+
))
|
|
78
|
+
elif hasattr(value, "to_dict"):
|
|
79
|
+
result[attr] = value.to_dict()
|
|
80
|
+
elif isinstance(value, dict):
|
|
81
|
+
result[attr] = dict(map(
|
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
|
84
|
+
value.items()
|
|
85
|
+
))
|
|
86
|
+
else:
|
|
87
|
+
if attr in self.sensitive_list:
|
|
88
|
+
result[attr] = "****"
|
|
89
|
+
else:
|
|
90
|
+
result[attr] = value
|
|
91
|
+
|
|
92
|
+
return result
|
|
93
|
+
|
|
94
|
+
def to_str(self):
|
|
95
|
+
"""Returns the string representation of the model"""
|
|
96
|
+
import simplejson as json
|
|
97
|
+
if six.PY2:
|
|
98
|
+
import sys
|
|
99
|
+
reload(sys)
|
|
100
|
+
sys.setdefaultencoding("utf-8")
|
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
102
|
+
|
|
103
|
+
def __repr__(self):
|
|
104
|
+
"""For `print`"""
|
|
105
|
+
return self.to_str()
|
|
106
|
+
|
|
107
|
+
def __eq__(self, other):
|
|
108
|
+
"""Returns true if both objects are equal"""
|
|
109
|
+
if not isinstance(other, RunUpdateDataResponse):
|
|
110
|
+
return False
|
|
111
|
+
|
|
112
|
+
return self.__dict__ == other.__dict__
|
|
113
|
+
|
|
114
|
+
def __ne__(self, other):
|
|
115
|
+
"""Returns true if both objects are not equal"""
|
|
116
|
+
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 SearchAfterParam:
|
|
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
|
+
'score': 'float',
|
|
21
|
+
'id': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'score': 'score',
|
|
26
|
+
'id': 'id'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, score=None, id=None):
|
|
30
|
+
r"""SearchAfterParam
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param score: 结果的得分。
|
|
35
|
+
:type score: float
|
|
36
|
+
:param id: 结果的唯一ID。
|
|
37
|
+
:type id: str
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._score = None
|
|
43
|
+
self._id = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
if score is not None:
|
|
47
|
+
self.score = score
|
|
48
|
+
if id is not None:
|
|
49
|
+
self.id = id
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def score(self):
|
|
53
|
+
r"""Gets the score of this SearchAfterParam.
|
|
54
|
+
|
|
55
|
+
结果的得分。
|
|
56
|
+
|
|
57
|
+
:return: The score of this SearchAfterParam.
|
|
58
|
+
:rtype: float
|
|
59
|
+
"""
|
|
60
|
+
return self._score
|
|
61
|
+
|
|
62
|
+
@score.setter
|
|
63
|
+
def score(self, score):
|
|
64
|
+
r"""Sets the score of this SearchAfterParam.
|
|
65
|
+
|
|
66
|
+
结果的得分。
|
|
67
|
+
|
|
68
|
+
:param score: The score of this SearchAfterParam.
|
|
69
|
+
:type score: float
|
|
70
|
+
"""
|
|
71
|
+
self._score = score
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def id(self):
|
|
75
|
+
r"""Gets the id of this SearchAfterParam.
|
|
76
|
+
|
|
77
|
+
结果的唯一ID。
|
|
78
|
+
|
|
79
|
+
:return: The id of this SearchAfterParam.
|
|
80
|
+
:rtype: str
|
|
81
|
+
"""
|
|
82
|
+
return self._id
|
|
83
|
+
|
|
84
|
+
@id.setter
|
|
85
|
+
def id(self, id):
|
|
86
|
+
r"""Sets the id of this SearchAfterParam.
|
|
87
|
+
|
|
88
|
+
结果的唯一ID。
|
|
89
|
+
|
|
90
|
+
:param id: The id of this SearchAfterParam.
|
|
91
|
+
:type id: str
|
|
92
|
+
"""
|
|
93
|
+
self._id = id
|
|
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, SearchAfterParam):
|
|
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
|