huaweicloudsdkdwr 3.1.150__py2.py3-none-any.whl → 3.1.152__py2.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 huaweicloudsdkdwr might be problematic. Click here for more details.
- huaweicloudsdkdwr/v1/__init__.py +91 -0
- huaweicloudsdkdwr/v1/dwr_async_client.py +1519 -0
- huaweicloudsdkdwr/v1/dwr_client.py +1516 -0
- huaweicloudsdkdwr/v1/model/__init__.py +88 -0
- huaweicloudsdkdwr/v1/model/build_progress.py +231 -0
- huaweicloudsdkdwr/v1/model/charge_info.py +230 -0
- huaweicloudsdkdwr/v1/model/collection_base_info.py +142 -0
- huaweicloudsdkdwr/v1/model/create_collection_body.py +281 -0
- huaweicloudsdkdwr/v1/model/create_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/create_collection_response.py +145 -0
- huaweicloudsdkdwr/v1/model/create_index_body.py +166 -0
- huaweicloudsdkdwr/v1/model/create_index_request.py +111 -0
- huaweicloudsdkdwr/v1/model/create_index_response.py +145 -0
- huaweicloudsdkdwr/v1/model/create_store_body.py +248 -0
- huaweicloudsdkdwr/v1/model/create_store_data.py +335 -0
- huaweicloudsdkdwr/v1/model/create_store_request.py +111 -0
- huaweicloudsdkdwr/v1/model/create_store_response.py +170 -0
- huaweicloudsdkdwr/v1/model/decribe_collection_data.py +315 -0
- huaweicloudsdkdwr/v1/model/delete_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/delete_collection_response.py +145 -0
- huaweicloudsdkdwr/v1/model/delete_entities_body.py +170 -0
- huaweicloudsdkdwr/v1/model/delete_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/delete_entities_response.py +145 -0
- huaweicloudsdkdwr/v1/model/delete_index_body.py +170 -0
- huaweicloudsdkdwr/v1/model/delete_index_request.py +111 -0
- huaweicloudsdkdwr/v1/model/delete_index_response.py +145 -0
- huaweicloudsdkdwr/v1/model/delete_store_data.py +114 -0
- huaweicloudsdkdwr/v1/model/delete_store_request.py +111 -0
- huaweicloudsdkdwr/v1/model/delete_store_response.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/describe_collection_response.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_index_body.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_index_request.py +111 -0
- huaweicloudsdkdwr/v1/model/describe_index_response.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_index_respose_data.py +171 -0
- huaweicloudsdkdwr/v1/model/describe_job_body.py +114 -0
- huaweicloudsdkdwr/v1/model/describe_job_request.py +111 -0
- huaweicloudsdkdwr/v1/model/describe_job_response.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_store_data.py +364 -0
- huaweicloudsdkdwr/v1/model/describe_store_request.py +111 -0
- huaweicloudsdkdwr/v1/model/describe_store_response.py +170 -0
- huaweicloudsdkdwr/v1/model/field.py +229 -0
- huaweicloudsdkdwr/v1/model/field_data.py +198 -0
- huaweicloudsdkdwr/v1/model/flavor.py +142 -0
- huaweicloudsdkdwr/v1/model/get_index_progress_body.py +170 -0
- huaweicloudsdkdwr/v1/model/get_index_progress_response_data.py +167 -0
- huaweicloudsdkdwr/v1/model/get_progress_request.py +111 -0
- huaweicloudsdkdwr/v1/model/get_progress_response.py +170 -0
- huaweicloudsdkdwr/v1/model/hybrid_search_body.py +278 -0
- huaweicloudsdkdwr/v1/model/hybrid_search_request.py +111 -0
- huaweicloudsdkdwr/v1/model/hybrid_search_response.py +174 -0
- huaweicloudsdkdwr/v1/model/index_desc.py +200 -0
- huaweicloudsdkdwr/v1/model/index_params.py +171 -0
- huaweicloudsdkdwr/v1/model/insert_entities_body.py +170 -0
- huaweicloudsdkdwr/v1/model/insert_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/insert_entities_response.py +170 -0
- huaweicloudsdkdwr/v1/model/insert_entities_response_data.py +143 -0
- huaweicloudsdkdwr/v1/model/job_data.py +316 -0
- huaweicloudsdkdwr/v1/model/list_collection_data.py +143 -0
- huaweicloudsdkdwr/v1/model/list_collection_details.py +260 -0
- huaweicloudsdkdwr/v1/model/list_collections_body.py +143 -0
- huaweicloudsdkdwr/v1/model/list_collections_request.py +111 -0
- huaweicloudsdkdwr/v1/model/list_collections_response.py +170 -0
- huaweicloudsdkdwr/v1/model/list_jobs_data.py +115 -0
- huaweicloudsdkdwr/v1/model/list_jobs_request.py +231 -0
- huaweicloudsdkdwr/v1/model/list_jobs_response.py +170 -0
- huaweicloudsdkdwr/v1/model/list_stores_request.py +84 -0
- huaweicloudsdkdwr/v1/model/list_stores_response.py +174 -0
- huaweicloudsdkdwr/v1/model/load_collection_body.py +142 -0
- huaweicloudsdkdwr/v1/model/load_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/load_collection_response.py +145 -0
- huaweicloudsdkdwr/v1/model/primary_field.py +142 -0
- huaweicloudsdkdwr/v1/model/query_entities_body.py +257 -0
- huaweicloudsdkdwr/v1/model/query_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/query_entities_response.py +174 -0
- huaweicloudsdkdwr/v1/model/release_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/release_collection_response.py +145 -0
- huaweicloudsdkdwr/v1/model/rerank.py +143 -0
- huaweicloudsdkdwr/v1/model/search_entities_body.py +343 -0
- huaweicloudsdkdwr/v1/model/search_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/search_entities_response.py +174 -0
- huaweicloudsdkdwr/v1/model/store_info.py +114 -0
- huaweicloudsdkdwr/v1/model/sub_search.py +258 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_body.py +170 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_response.py +170 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_response_data.py +143 -0
- huaweicloudsdkdwr/v1/region/__init__.py +0 -0
- huaweicloudsdkdwr/v1/region/dwr_region.py +37 -0
- huaweicloudsdkdwr/v3/region/dwr_region.py +6 -0
- {huaweicloudsdkdwr-3.1.150.dist-info → huaweicloudsdkdwr-3.1.152.dist-info}/METADATA +2 -2
- huaweicloudsdkdwr-3.1.152.dist-info/RECORD +169 -0
- huaweicloudsdkdwr-3.1.150.dist-info/RECORD +0 -80
- {huaweicloudsdkdwr-3.1.150.dist-info → huaweicloudsdkdwr-3.1.152.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdwr-3.1.150.dist-info → huaweicloudsdkdwr-3.1.152.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdwr-3.1.150.dist-info → huaweicloudsdkdwr-3.1.152.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,170 @@
|
|
|
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 InsertEntitiesResponse(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
|
+
'code': 'str',
|
|
22
|
+
'message': 'str',
|
|
23
|
+
'data': 'InsertEntitiesResponseData'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
attribute_map = {
|
|
27
|
+
'code': 'code',
|
|
28
|
+
'message': 'message',
|
|
29
|
+
'data': 'data'
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
def __init__(self, code=None, message=None, data=None):
|
|
33
|
+
r"""InsertEntitiesResponse
|
|
34
|
+
|
|
35
|
+
The model defined in huaweicloud sdk
|
|
36
|
+
|
|
37
|
+
:param code: 返回码
|
|
38
|
+
:type code: str
|
|
39
|
+
:param message: 描述信息
|
|
40
|
+
:type message: str
|
|
41
|
+
:param data:
|
|
42
|
+
:type data: :class:`huaweicloudsdkdwr.v1.InsertEntitiesResponseData`
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
super(InsertEntitiesResponse, self).__init__()
|
|
46
|
+
|
|
47
|
+
self._code = None
|
|
48
|
+
self._message = None
|
|
49
|
+
self._data = None
|
|
50
|
+
self.discriminator = None
|
|
51
|
+
|
|
52
|
+
if code is not None:
|
|
53
|
+
self.code = code
|
|
54
|
+
if message is not None:
|
|
55
|
+
self.message = message
|
|
56
|
+
if data is not None:
|
|
57
|
+
self.data = data
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def code(self):
|
|
61
|
+
r"""Gets the code of this InsertEntitiesResponse.
|
|
62
|
+
|
|
63
|
+
返回码
|
|
64
|
+
|
|
65
|
+
:return: The code of this InsertEntitiesResponse.
|
|
66
|
+
:rtype: str
|
|
67
|
+
"""
|
|
68
|
+
return self._code
|
|
69
|
+
|
|
70
|
+
@code.setter
|
|
71
|
+
def code(self, code):
|
|
72
|
+
r"""Sets the code of this InsertEntitiesResponse.
|
|
73
|
+
|
|
74
|
+
返回码
|
|
75
|
+
|
|
76
|
+
:param code: The code of this InsertEntitiesResponse.
|
|
77
|
+
:type code: str
|
|
78
|
+
"""
|
|
79
|
+
self._code = code
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def message(self):
|
|
83
|
+
r"""Gets the message of this InsertEntitiesResponse.
|
|
84
|
+
|
|
85
|
+
描述信息
|
|
86
|
+
|
|
87
|
+
:return: The message of this InsertEntitiesResponse.
|
|
88
|
+
:rtype: str
|
|
89
|
+
"""
|
|
90
|
+
return self._message
|
|
91
|
+
|
|
92
|
+
@message.setter
|
|
93
|
+
def message(self, message):
|
|
94
|
+
r"""Sets the message of this InsertEntitiesResponse.
|
|
95
|
+
|
|
96
|
+
描述信息
|
|
97
|
+
|
|
98
|
+
:param message: The message of this InsertEntitiesResponse.
|
|
99
|
+
:type message: str
|
|
100
|
+
"""
|
|
101
|
+
self._message = message
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def data(self):
|
|
105
|
+
r"""Gets the data of this InsertEntitiesResponse.
|
|
106
|
+
|
|
107
|
+
:return: The data of this InsertEntitiesResponse.
|
|
108
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.InsertEntitiesResponseData`
|
|
109
|
+
"""
|
|
110
|
+
return self._data
|
|
111
|
+
|
|
112
|
+
@data.setter
|
|
113
|
+
def data(self, data):
|
|
114
|
+
r"""Sets the data of this InsertEntitiesResponse.
|
|
115
|
+
|
|
116
|
+
:param data: The data of this InsertEntitiesResponse.
|
|
117
|
+
:type data: :class:`huaweicloudsdkdwr.v1.InsertEntitiesResponseData`
|
|
118
|
+
"""
|
|
119
|
+
self._data = data
|
|
120
|
+
|
|
121
|
+
def to_dict(self):
|
|
122
|
+
"""Returns the model properties as a dict"""
|
|
123
|
+
result = {}
|
|
124
|
+
|
|
125
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
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
|
+
if six.PY2:
|
|
152
|
+
import sys
|
|
153
|
+
reload(sys)
|
|
154
|
+
sys.setdefaultencoding("utf-8")
|
|
155
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
156
|
+
|
|
157
|
+
def __repr__(self):
|
|
158
|
+
"""For `print`"""
|
|
159
|
+
return self.to_str()
|
|
160
|
+
|
|
161
|
+
def __eq__(self, other):
|
|
162
|
+
"""Returns true if both objects are equal"""
|
|
163
|
+
if not isinstance(other, InsertEntitiesResponse):
|
|
164
|
+
return False
|
|
165
|
+
|
|
166
|
+
return self.__dict__ == other.__dict__
|
|
167
|
+
|
|
168
|
+
def __ne__(self, other):
|
|
169
|
+
"""Returns true if both objects are not equal"""
|
|
170
|
+
return not self == other
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class InsertEntitiesResponseData:
|
|
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
|
+
'insert_count': 'int',
|
|
21
|
+
'insert_ids': 'list[object]'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'insert_count': 'insert_count',
|
|
26
|
+
'insert_ids': 'insert_ids'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, insert_count=None, insert_ids=None):
|
|
30
|
+
r"""InsertEntitiesResponseData
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param insert_count: 插入的entity数量。
|
|
35
|
+
:type insert_count: int
|
|
36
|
+
:param insert_ids: 插入成功的entity的primary_key
|
|
37
|
+
:type insert_ids: list[object]
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._insert_count = None
|
|
43
|
+
self._insert_ids = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
self.insert_count = insert_count
|
|
47
|
+
if insert_ids is not None:
|
|
48
|
+
self.insert_ids = insert_ids
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def insert_count(self):
|
|
52
|
+
r"""Gets the insert_count of this InsertEntitiesResponseData.
|
|
53
|
+
|
|
54
|
+
插入的entity数量。
|
|
55
|
+
|
|
56
|
+
:return: The insert_count of this InsertEntitiesResponseData.
|
|
57
|
+
:rtype: int
|
|
58
|
+
"""
|
|
59
|
+
return self._insert_count
|
|
60
|
+
|
|
61
|
+
@insert_count.setter
|
|
62
|
+
def insert_count(self, insert_count):
|
|
63
|
+
r"""Sets the insert_count of this InsertEntitiesResponseData.
|
|
64
|
+
|
|
65
|
+
插入的entity数量。
|
|
66
|
+
|
|
67
|
+
:param insert_count: The insert_count of this InsertEntitiesResponseData.
|
|
68
|
+
:type insert_count: int
|
|
69
|
+
"""
|
|
70
|
+
self._insert_count = insert_count
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def insert_ids(self):
|
|
74
|
+
r"""Gets the insert_ids of this InsertEntitiesResponseData.
|
|
75
|
+
|
|
76
|
+
插入成功的entity的primary_key
|
|
77
|
+
|
|
78
|
+
:return: The insert_ids of this InsertEntitiesResponseData.
|
|
79
|
+
:rtype: list[object]
|
|
80
|
+
"""
|
|
81
|
+
return self._insert_ids
|
|
82
|
+
|
|
83
|
+
@insert_ids.setter
|
|
84
|
+
def insert_ids(self, insert_ids):
|
|
85
|
+
r"""Sets the insert_ids of this InsertEntitiesResponseData.
|
|
86
|
+
|
|
87
|
+
插入成功的entity的primary_key
|
|
88
|
+
|
|
89
|
+
:param insert_ids: The insert_ids of this InsertEntitiesResponseData.
|
|
90
|
+
:type insert_ids: list[object]
|
|
91
|
+
"""
|
|
92
|
+
self._insert_ids = insert_ids
|
|
93
|
+
|
|
94
|
+
def to_dict(self):
|
|
95
|
+
"""Returns the model properties as a dict"""
|
|
96
|
+
result = {}
|
|
97
|
+
|
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
99
|
+
value = getattr(self, attr)
|
|
100
|
+
if isinstance(value, list):
|
|
101
|
+
result[attr] = list(map(
|
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
103
|
+
value
|
|
104
|
+
))
|
|
105
|
+
elif hasattr(value, "to_dict"):
|
|
106
|
+
result[attr] = value.to_dict()
|
|
107
|
+
elif isinstance(value, dict):
|
|
108
|
+
result[attr] = dict(map(
|
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
|
111
|
+
value.items()
|
|
112
|
+
))
|
|
113
|
+
else:
|
|
114
|
+
if attr in self.sensitive_list:
|
|
115
|
+
result[attr] = "****"
|
|
116
|
+
else:
|
|
117
|
+
result[attr] = value
|
|
118
|
+
|
|
119
|
+
return result
|
|
120
|
+
|
|
121
|
+
def to_str(self):
|
|
122
|
+
"""Returns the string representation of the model"""
|
|
123
|
+
import simplejson as json
|
|
124
|
+
if six.PY2:
|
|
125
|
+
import sys
|
|
126
|
+
reload(sys)
|
|
127
|
+
sys.setdefaultencoding("utf-8")
|
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
129
|
+
|
|
130
|
+
def __repr__(self):
|
|
131
|
+
"""For `print`"""
|
|
132
|
+
return self.to_str()
|
|
133
|
+
|
|
134
|
+
def __eq__(self, other):
|
|
135
|
+
"""Returns true if both objects are equal"""
|
|
136
|
+
if not isinstance(other, InsertEntitiesResponseData):
|
|
137
|
+
return False
|
|
138
|
+
|
|
139
|
+
return self.__dict__ == other.__dict__
|
|
140
|
+
|
|
141
|
+
def __ne__(self, other):
|
|
142
|
+
"""Returns true if both objects are not equal"""
|
|
143
|
+
return not self == other
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class JobData:
|
|
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
|
+
'job_id': 'str',
|
|
21
|
+
'status': 'str',
|
|
22
|
+
'name': 'str',
|
|
23
|
+
'create_time': 'str',
|
|
24
|
+
'end_time': 'str',
|
|
25
|
+
'progress': 'str',
|
|
26
|
+
'store_name': 'str',
|
|
27
|
+
'fail_reason': 'str'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
attribute_map = {
|
|
31
|
+
'job_id': 'job_id',
|
|
32
|
+
'status': 'status',
|
|
33
|
+
'name': 'name',
|
|
34
|
+
'create_time': 'create_time',
|
|
35
|
+
'end_time': 'end_time',
|
|
36
|
+
'progress': 'progress',
|
|
37
|
+
'store_name': 'store_name',
|
|
38
|
+
'fail_reason': 'fail_reason'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
def __init__(self, job_id=None, status=None, name=None, create_time=None, end_time=None, progress=None, store_name=None, fail_reason=None):
|
|
42
|
+
r"""JobData
|
|
43
|
+
|
|
44
|
+
The model defined in huaweicloud sdk
|
|
45
|
+
|
|
46
|
+
:param job_id: 任务ID。
|
|
47
|
+
:type job_id: str
|
|
48
|
+
:param status: 任务执行状态。取值: 值为“Running”,表示任务正在执行。 值为“Completed”,表示任务执行成功。 值为“Failed”,表示任务执行失败。
|
|
49
|
+
:type status: str
|
|
50
|
+
:param name: 任务名称
|
|
51
|
+
:type name: str
|
|
52
|
+
:param create_time: 创建时间,格式为“yyyy-mm-ddThh:mm:ssZ”。
|
|
53
|
+
:type create_time: str
|
|
54
|
+
:param end_time: 结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。
|
|
55
|
+
:type end_time: str
|
|
56
|
+
:param progress: 任务执行进度。运行中状态返回执行进度,例如“60%”,表示任务执行进度为60%。
|
|
57
|
+
:type progress: str
|
|
58
|
+
:param store_name: 知识仓实例名称
|
|
59
|
+
:type store_name: str
|
|
60
|
+
:param fail_reason: 任务执行失败时的错误信息。
|
|
61
|
+
:type fail_reason: str
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
self._job_id = None
|
|
67
|
+
self._status = None
|
|
68
|
+
self._name = None
|
|
69
|
+
self._create_time = None
|
|
70
|
+
self._end_time = None
|
|
71
|
+
self._progress = None
|
|
72
|
+
self._store_name = None
|
|
73
|
+
self._fail_reason = None
|
|
74
|
+
self.discriminator = None
|
|
75
|
+
|
|
76
|
+
self.job_id = job_id
|
|
77
|
+
self.status = status
|
|
78
|
+
if name is not None:
|
|
79
|
+
self.name = name
|
|
80
|
+
if create_time is not None:
|
|
81
|
+
self.create_time = create_time
|
|
82
|
+
if end_time is not None:
|
|
83
|
+
self.end_time = end_time
|
|
84
|
+
if progress is not None:
|
|
85
|
+
self.progress = progress
|
|
86
|
+
if store_name is not None:
|
|
87
|
+
self.store_name = store_name
|
|
88
|
+
if fail_reason is not None:
|
|
89
|
+
self.fail_reason = fail_reason
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def job_id(self):
|
|
93
|
+
r"""Gets the job_id of this JobData.
|
|
94
|
+
|
|
95
|
+
任务ID。
|
|
96
|
+
|
|
97
|
+
:return: The job_id of this JobData.
|
|
98
|
+
:rtype: str
|
|
99
|
+
"""
|
|
100
|
+
return self._job_id
|
|
101
|
+
|
|
102
|
+
@job_id.setter
|
|
103
|
+
def job_id(self, job_id):
|
|
104
|
+
r"""Sets the job_id of this JobData.
|
|
105
|
+
|
|
106
|
+
任务ID。
|
|
107
|
+
|
|
108
|
+
:param job_id: The job_id of this JobData.
|
|
109
|
+
:type job_id: str
|
|
110
|
+
"""
|
|
111
|
+
self._job_id = job_id
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
def status(self):
|
|
115
|
+
r"""Gets the status of this JobData.
|
|
116
|
+
|
|
117
|
+
任务执行状态。取值: 值为“Running”,表示任务正在执行。 值为“Completed”,表示任务执行成功。 值为“Failed”,表示任务执行失败。
|
|
118
|
+
|
|
119
|
+
:return: The status of this JobData.
|
|
120
|
+
:rtype: str
|
|
121
|
+
"""
|
|
122
|
+
return self._status
|
|
123
|
+
|
|
124
|
+
@status.setter
|
|
125
|
+
def status(self, status):
|
|
126
|
+
r"""Sets the status of this JobData.
|
|
127
|
+
|
|
128
|
+
任务执行状态。取值: 值为“Running”,表示任务正在执行。 值为“Completed”,表示任务执行成功。 值为“Failed”,表示任务执行失败。
|
|
129
|
+
|
|
130
|
+
:param status: The status of this JobData.
|
|
131
|
+
:type status: str
|
|
132
|
+
"""
|
|
133
|
+
self._status = status
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
def name(self):
|
|
137
|
+
r"""Gets the name of this JobData.
|
|
138
|
+
|
|
139
|
+
任务名称
|
|
140
|
+
|
|
141
|
+
:return: The name of this JobData.
|
|
142
|
+
:rtype: str
|
|
143
|
+
"""
|
|
144
|
+
return self._name
|
|
145
|
+
|
|
146
|
+
@name.setter
|
|
147
|
+
def name(self, name):
|
|
148
|
+
r"""Sets the name of this JobData.
|
|
149
|
+
|
|
150
|
+
任务名称
|
|
151
|
+
|
|
152
|
+
:param name: The name of this JobData.
|
|
153
|
+
:type name: str
|
|
154
|
+
"""
|
|
155
|
+
self._name = name
|
|
156
|
+
|
|
157
|
+
@property
|
|
158
|
+
def create_time(self):
|
|
159
|
+
r"""Gets the create_time of this JobData.
|
|
160
|
+
|
|
161
|
+
创建时间,格式为“yyyy-mm-ddThh:mm:ssZ”。
|
|
162
|
+
|
|
163
|
+
:return: The create_time of this JobData.
|
|
164
|
+
:rtype: str
|
|
165
|
+
"""
|
|
166
|
+
return self._create_time
|
|
167
|
+
|
|
168
|
+
@create_time.setter
|
|
169
|
+
def create_time(self, create_time):
|
|
170
|
+
r"""Sets the create_time of this JobData.
|
|
171
|
+
|
|
172
|
+
创建时间,格式为“yyyy-mm-ddThh:mm:ssZ”。
|
|
173
|
+
|
|
174
|
+
:param create_time: The create_time of this JobData.
|
|
175
|
+
:type create_time: str
|
|
176
|
+
"""
|
|
177
|
+
self._create_time = create_time
|
|
178
|
+
|
|
179
|
+
@property
|
|
180
|
+
def end_time(self):
|
|
181
|
+
r"""Gets the end_time of this JobData.
|
|
182
|
+
|
|
183
|
+
结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。
|
|
184
|
+
|
|
185
|
+
:return: The end_time of this JobData.
|
|
186
|
+
:rtype: str
|
|
187
|
+
"""
|
|
188
|
+
return self._end_time
|
|
189
|
+
|
|
190
|
+
@end_time.setter
|
|
191
|
+
def end_time(self, end_time):
|
|
192
|
+
r"""Sets the end_time of this JobData.
|
|
193
|
+
|
|
194
|
+
结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。
|
|
195
|
+
|
|
196
|
+
:param end_time: The end_time of this JobData.
|
|
197
|
+
:type end_time: str
|
|
198
|
+
"""
|
|
199
|
+
self._end_time = end_time
|
|
200
|
+
|
|
201
|
+
@property
|
|
202
|
+
def progress(self):
|
|
203
|
+
r"""Gets the progress of this JobData.
|
|
204
|
+
|
|
205
|
+
任务执行进度。运行中状态返回执行进度,例如“60%”,表示任务执行进度为60%。
|
|
206
|
+
|
|
207
|
+
:return: The progress of this JobData.
|
|
208
|
+
:rtype: str
|
|
209
|
+
"""
|
|
210
|
+
return self._progress
|
|
211
|
+
|
|
212
|
+
@progress.setter
|
|
213
|
+
def progress(self, progress):
|
|
214
|
+
r"""Sets the progress of this JobData.
|
|
215
|
+
|
|
216
|
+
任务执行进度。运行中状态返回执行进度,例如“60%”,表示任务执行进度为60%。
|
|
217
|
+
|
|
218
|
+
:param progress: The progress of this JobData.
|
|
219
|
+
:type progress: str
|
|
220
|
+
"""
|
|
221
|
+
self._progress = progress
|
|
222
|
+
|
|
223
|
+
@property
|
|
224
|
+
def store_name(self):
|
|
225
|
+
r"""Gets the store_name of this JobData.
|
|
226
|
+
|
|
227
|
+
知识仓实例名称
|
|
228
|
+
|
|
229
|
+
:return: The store_name of this JobData.
|
|
230
|
+
:rtype: str
|
|
231
|
+
"""
|
|
232
|
+
return self._store_name
|
|
233
|
+
|
|
234
|
+
@store_name.setter
|
|
235
|
+
def store_name(self, store_name):
|
|
236
|
+
r"""Sets the store_name of this JobData.
|
|
237
|
+
|
|
238
|
+
知识仓实例名称
|
|
239
|
+
|
|
240
|
+
:param store_name: The store_name of this JobData.
|
|
241
|
+
:type store_name: str
|
|
242
|
+
"""
|
|
243
|
+
self._store_name = store_name
|
|
244
|
+
|
|
245
|
+
@property
|
|
246
|
+
def fail_reason(self):
|
|
247
|
+
r"""Gets the fail_reason of this JobData.
|
|
248
|
+
|
|
249
|
+
任务执行失败时的错误信息。
|
|
250
|
+
|
|
251
|
+
:return: The fail_reason of this JobData.
|
|
252
|
+
:rtype: str
|
|
253
|
+
"""
|
|
254
|
+
return self._fail_reason
|
|
255
|
+
|
|
256
|
+
@fail_reason.setter
|
|
257
|
+
def fail_reason(self, fail_reason):
|
|
258
|
+
r"""Sets the fail_reason of this JobData.
|
|
259
|
+
|
|
260
|
+
任务执行失败时的错误信息。
|
|
261
|
+
|
|
262
|
+
:param fail_reason: The fail_reason of this JobData.
|
|
263
|
+
:type fail_reason: str
|
|
264
|
+
"""
|
|
265
|
+
self._fail_reason = fail_reason
|
|
266
|
+
|
|
267
|
+
def to_dict(self):
|
|
268
|
+
"""Returns the model properties as a dict"""
|
|
269
|
+
result = {}
|
|
270
|
+
|
|
271
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
272
|
+
value = getattr(self, attr)
|
|
273
|
+
if isinstance(value, list):
|
|
274
|
+
result[attr] = list(map(
|
|
275
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
276
|
+
value
|
|
277
|
+
))
|
|
278
|
+
elif hasattr(value, "to_dict"):
|
|
279
|
+
result[attr] = value.to_dict()
|
|
280
|
+
elif isinstance(value, dict):
|
|
281
|
+
result[attr] = dict(map(
|
|
282
|
+
lambda item: (item[0], item[1].to_dict())
|
|
283
|
+
if hasattr(item[1], "to_dict") else item,
|
|
284
|
+
value.items()
|
|
285
|
+
))
|
|
286
|
+
else:
|
|
287
|
+
if attr in self.sensitive_list:
|
|
288
|
+
result[attr] = "****"
|
|
289
|
+
else:
|
|
290
|
+
result[attr] = value
|
|
291
|
+
|
|
292
|
+
return result
|
|
293
|
+
|
|
294
|
+
def to_str(self):
|
|
295
|
+
"""Returns the string representation of the model"""
|
|
296
|
+
import simplejson as json
|
|
297
|
+
if six.PY2:
|
|
298
|
+
import sys
|
|
299
|
+
reload(sys)
|
|
300
|
+
sys.setdefaultencoding("utf-8")
|
|
301
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
302
|
+
|
|
303
|
+
def __repr__(self):
|
|
304
|
+
"""For `print`"""
|
|
305
|
+
return self.to_str()
|
|
306
|
+
|
|
307
|
+
def __eq__(self, other):
|
|
308
|
+
"""Returns true if both objects are equal"""
|
|
309
|
+
if not isinstance(other, JobData):
|
|
310
|
+
return False
|
|
311
|
+
|
|
312
|
+
return self.__dict__ == other.__dict__
|
|
313
|
+
|
|
314
|
+
def __ne__(self, other):
|
|
315
|
+
"""Returns true if both objects are not equal"""
|
|
316
|
+
return not self == other
|