huaweicloudsdkdwr 3.1.151__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.151.dist-info → huaweicloudsdkdwr-3.1.152.dist-info}/METADATA +2 -2
- huaweicloudsdkdwr-3.1.152.dist-info/RECORD +169 -0
- huaweicloudsdkdwr-3.1.151.dist-info/RECORD +0 -80
- {huaweicloudsdkdwr-3.1.151.dist-info → huaweicloudsdkdwr-3.1.152.dist-info}/LICENSE +0 -0
- {huaweicloudsdkdwr-3.1.151.dist-info → huaweicloudsdkdwr-3.1.152.dist-info}/WHEEL +0 -0
- {huaweicloudsdkdwr-3.1.151.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 ListCollectionsResponse(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': 'ListCollectionData'
|
|
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"""ListCollectionsResponse
|
|
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.ListCollectionData`
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
super(ListCollectionsResponse, 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 ListCollectionsResponse.
|
|
62
|
+
|
|
63
|
+
返回码
|
|
64
|
+
|
|
65
|
+
:return: The code of this ListCollectionsResponse.
|
|
66
|
+
:rtype: str
|
|
67
|
+
"""
|
|
68
|
+
return self._code
|
|
69
|
+
|
|
70
|
+
@code.setter
|
|
71
|
+
def code(self, code):
|
|
72
|
+
r"""Sets the code of this ListCollectionsResponse.
|
|
73
|
+
|
|
74
|
+
返回码
|
|
75
|
+
|
|
76
|
+
:param code: The code of this ListCollectionsResponse.
|
|
77
|
+
:type code: str
|
|
78
|
+
"""
|
|
79
|
+
self._code = code
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def message(self):
|
|
83
|
+
r"""Gets the message of this ListCollectionsResponse.
|
|
84
|
+
|
|
85
|
+
描述信息
|
|
86
|
+
|
|
87
|
+
:return: The message of this ListCollectionsResponse.
|
|
88
|
+
:rtype: str
|
|
89
|
+
"""
|
|
90
|
+
return self._message
|
|
91
|
+
|
|
92
|
+
@message.setter
|
|
93
|
+
def message(self, message):
|
|
94
|
+
r"""Sets the message of this ListCollectionsResponse.
|
|
95
|
+
|
|
96
|
+
描述信息
|
|
97
|
+
|
|
98
|
+
:param message: The message of this ListCollectionsResponse.
|
|
99
|
+
:type message: str
|
|
100
|
+
"""
|
|
101
|
+
self._message = message
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def data(self):
|
|
105
|
+
r"""Gets the data of this ListCollectionsResponse.
|
|
106
|
+
|
|
107
|
+
:return: The data of this ListCollectionsResponse.
|
|
108
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.ListCollectionData`
|
|
109
|
+
"""
|
|
110
|
+
return self._data
|
|
111
|
+
|
|
112
|
+
@data.setter
|
|
113
|
+
def data(self, data):
|
|
114
|
+
r"""Sets the data of this ListCollectionsResponse.
|
|
115
|
+
|
|
116
|
+
:param data: The data of this ListCollectionsResponse.
|
|
117
|
+
:type data: :class:`huaweicloudsdkdwr.v1.ListCollectionData`
|
|
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, ListCollectionsResponse):
|
|
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,115 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ListJobsData:
|
|
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
|
+
'jobs': 'list[JobData]'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'jobs': 'jobs'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, jobs=None):
|
|
28
|
+
r"""ListJobsData
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param jobs: 任务列表
|
|
33
|
+
:type jobs: list[:class:`huaweicloudsdkdwr.v1.JobData`]
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
self._jobs = None
|
|
39
|
+
self.discriminator = None
|
|
40
|
+
|
|
41
|
+
if jobs is not None:
|
|
42
|
+
self.jobs = jobs
|
|
43
|
+
|
|
44
|
+
@property
|
|
45
|
+
def jobs(self):
|
|
46
|
+
r"""Gets the jobs of this ListJobsData.
|
|
47
|
+
|
|
48
|
+
任务列表
|
|
49
|
+
|
|
50
|
+
:return: The jobs of this ListJobsData.
|
|
51
|
+
:rtype: list[:class:`huaweicloudsdkdwr.v1.JobData`]
|
|
52
|
+
"""
|
|
53
|
+
return self._jobs
|
|
54
|
+
|
|
55
|
+
@jobs.setter
|
|
56
|
+
def jobs(self, jobs):
|
|
57
|
+
r"""Sets the jobs of this ListJobsData.
|
|
58
|
+
|
|
59
|
+
任务列表
|
|
60
|
+
|
|
61
|
+
:param jobs: The jobs of this ListJobsData.
|
|
62
|
+
:type jobs: list[:class:`huaweicloudsdkdwr.v1.JobData`]
|
|
63
|
+
"""
|
|
64
|
+
self._jobs = jobs
|
|
65
|
+
|
|
66
|
+
def to_dict(self):
|
|
67
|
+
"""Returns the model properties as a dict"""
|
|
68
|
+
result = {}
|
|
69
|
+
|
|
70
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
71
|
+
value = getattr(self, attr)
|
|
72
|
+
if isinstance(value, list):
|
|
73
|
+
result[attr] = list(map(
|
|
74
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
75
|
+
value
|
|
76
|
+
))
|
|
77
|
+
elif hasattr(value, "to_dict"):
|
|
78
|
+
result[attr] = value.to_dict()
|
|
79
|
+
elif isinstance(value, dict):
|
|
80
|
+
result[attr] = dict(map(
|
|
81
|
+
lambda item: (item[0], item[1].to_dict())
|
|
82
|
+
if hasattr(item[1], "to_dict") else item,
|
|
83
|
+
value.items()
|
|
84
|
+
))
|
|
85
|
+
else:
|
|
86
|
+
if attr in self.sensitive_list:
|
|
87
|
+
result[attr] = "****"
|
|
88
|
+
else:
|
|
89
|
+
result[attr] = value
|
|
90
|
+
|
|
91
|
+
return result
|
|
92
|
+
|
|
93
|
+
def to_str(self):
|
|
94
|
+
"""Returns the string representation of the model"""
|
|
95
|
+
import simplejson as json
|
|
96
|
+
if six.PY2:
|
|
97
|
+
import sys
|
|
98
|
+
reload(sys)
|
|
99
|
+
sys.setdefaultencoding("utf-8")
|
|
100
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
101
|
+
|
|
102
|
+
def __repr__(self):
|
|
103
|
+
"""For `print`"""
|
|
104
|
+
return self.to_str()
|
|
105
|
+
|
|
106
|
+
def __eq__(self, other):
|
|
107
|
+
"""Returns true if both objects are equal"""
|
|
108
|
+
if not isinstance(other, ListJobsData):
|
|
109
|
+
return False
|
|
110
|
+
|
|
111
|
+
return self.__dict__ == other.__dict__
|
|
112
|
+
|
|
113
|
+
def __ne__(self, other):
|
|
114
|
+
"""Returns true if both objects are not equal"""
|
|
115
|
+
return not self == other
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ListJobsRequest:
|
|
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
|
+
'start_time': 'str',
|
|
21
|
+
'end_time': 'str',
|
|
22
|
+
'status': 'str',
|
|
23
|
+
'offset': 'int',
|
|
24
|
+
'limit': 'str'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'start_time': 'start_time',
|
|
29
|
+
'end_time': 'end_time',
|
|
30
|
+
'status': 'status',
|
|
31
|
+
'offset': 'offset',
|
|
32
|
+
'limit': 'limit'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
def __init__(self, start_time=None, end_time=None, status=None, offset=None, limit=None):
|
|
36
|
+
r"""ListJobsRequest
|
|
37
|
+
|
|
38
|
+
The model defined in huaweicloud sdk
|
|
39
|
+
|
|
40
|
+
:param start_time: 查询开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。
|
|
41
|
+
:type start_time: str
|
|
42
|
+
:param end_time: 查询结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。
|
|
43
|
+
:type end_time: str
|
|
44
|
+
:param status: 任务状态:取值为“Running”为执行中;取值为“Completed”为完成;取值为“Failed”为失败。
|
|
45
|
+
:type status: str
|
|
46
|
+
:param offset: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
|
47
|
+
:type offset: int
|
|
48
|
+
:param limit: 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
|
|
49
|
+
:type limit: str
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
self._start_time = None
|
|
55
|
+
self._end_time = None
|
|
56
|
+
self._status = None
|
|
57
|
+
self._offset = None
|
|
58
|
+
self._limit = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if start_time is not None:
|
|
62
|
+
self.start_time = start_time
|
|
63
|
+
if end_time is not None:
|
|
64
|
+
self.end_time = end_time
|
|
65
|
+
if status is not None:
|
|
66
|
+
self.status = status
|
|
67
|
+
if offset is not None:
|
|
68
|
+
self.offset = offset
|
|
69
|
+
if limit is not None:
|
|
70
|
+
self.limit = limit
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def start_time(self):
|
|
74
|
+
r"""Gets the start_time of this ListJobsRequest.
|
|
75
|
+
|
|
76
|
+
查询开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。
|
|
77
|
+
|
|
78
|
+
:return: The start_time of this ListJobsRequest.
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._start_time
|
|
82
|
+
|
|
83
|
+
@start_time.setter
|
|
84
|
+
def start_time(self, start_time):
|
|
85
|
+
r"""Sets the start_time of this ListJobsRequest.
|
|
86
|
+
|
|
87
|
+
查询开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。
|
|
88
|
+
|
|
89
|
+
:param start_time: The start_time of this ListJobsRequest.
|
|
90
|
+
:type start_time: str
|
|
91
|
+
"""
|
|
92
|
+
self._start_time = start_time
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def end_time(self):
|
|
96
|
+
r"""Gets the end_time of this ListJobsRequest.
|
|
97
|
+
|
|
98
|
+
查询结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。
|
|
99
|
+
|
|
100
|
+
:return: The end_time of this ListJobsRequest.
|
|
101
|
+
:rtype: str
|
|
102
|
+
"""
|
|
103
|
+
return self._end_time
|
|
104
|
+
|
|
105
|
+
@end_time.setter
|
|
106
|
+
def end_time(self, end_time):
|
|
107
|
+
r"""Sets the end_time of this ListJobsRequest.
|
|
108
|
+
|
|
109
|
+
查询结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。
|
|
110
|
+
|
|
111
|
+
:param end_time: The end_time of this ListJobsRequest.
|
|
112
|
+
:type end_time: str
|
|
113
|
+
"""
|
|
114
|
+
self._end_time = end_time
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def status(self):
|
|
118
|
+
r"""Gets the status of this ListJobsRequest.
|
|
119
|
+
|
|
120
|
+
任务状态:取值为“Running”为执行中;取值为“Completed”为完成;取值为“Failed”为失败。
|
|
121
|
+
|
|
122
|
+
:return: The status of this ListJobsRequest.
|
|
123
|
+
:rtype: str
|
|
124
|
+
"""
|
|
125
|
+
return self._status
|
|
126
|
+
|
|
127
|
+
@status.setter
|
|
128
|
+
def status(self, status):
|
|
129
|
+
r"""Sets the status of this ListJobsRequest.
|
|
130
|
+
|
|
131
|
+
任务状态:取值为“Running”为执行中;取值为“Completed”为完成;取值为“Failed”为失败。
|
|
132
|
+
|
|
133
|
+
:param status: The status of this ListJobsRequest.
|
|
134
|
+
:type status: str
|
|
135
|
+
"""
|
|
136
|
+
self._status = status
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
def offset(self):
|
|
140
|
+
r"""Gets the offset of this ListJobsRequest.
|
|
141
|
+
|
|
142
|
+
索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
|
143
|
+
|
|
144
|
+
:return: The offset of this ListJobsRequest.
|
|
145
|
+
:rtype: int
|
|
146
|
+
"""
|
|
147
|
+
return self._offset
|
|
148
|
+
|
|
149
|
+
@offset.setter
|
|
150
|
+
def offset(self, offset):
|
|
151
|
+
r"""Sets the offset of this ListJobsRequest.
|
|
152
|
+
|
|
153
|
+
索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
|
|
154
|
+
|
|
155
|
+
:param offset: The offset of this ListJobsRequest.
|
|
156
|
+
:type offset: int
|
|
157
|
+
"""
|
|
158
|
+
self._offset = offset
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
def limit(self):
|
|
162
|
+
r"""Gets the limit of this ListJobsRequest.
|
|
163
|
+
|
|
164
|
+
查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
|
|
165
|
+
|
|
166
|
+
:return: The limit of this ListJobsRequest.
|
|
167
|
+
:rtype: str
|
|
168
|
+
"""
|
|
169
|
+
return self._limit
|
|
170
|
+
|
|
171
|
+
@limit.setter
|
|
172
|
+
def limit(self, limit):
|
|
173
|
+
r"""Sets the limit of this ListJobsRequest.
|
|
174
|
+
|
|
175
|
+
查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
|
|
176
|
+
|
|
177
|
+
:param limit: The limit of this ListJobsRequest.
|
|
178
|
+
:type limit: str
|
|
179
|
+
"""
|
|
180
|
+
self._limit = limit
|
|
181
|
+
|
|
182
|
+
def to_dict(self):
|
|
183
|
+
"""Returns the model properties as a dict"""
|
|
184
|
+
result = {}
|
|
185
|
+
|
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
187
|
+
value = getattr(self, attr)
|
|
188
|
+
if isinstance(value, list):
|
|
189
|
+
result[attr] = list(map(
|
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
191
|
+
value
|
|
192
|
+
))
|
|
193
|
+
elif hasattr(value, "to_dict"):
|
|
194
|
+
result[attr] = value.to_dict()
|
|
195
|
+
elif isinstance(value, dict):
|
|
196
|
+
result[attr] = dict(map(
|
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
|
199
|
+
value.items()
|
|
200
|
+
))
|
|
201
|
+
else:
|
|
202
|
+
if attr in self.sensitive_list:
|
|
203
|
+
result[attr] = "****"
|
|
204
|
+
else:
|
|
205
|
+
result[attr] = value
|
|
206
|
+
|
|
207
|
+
return result
|
|
208
|
+
|
|
209
|
+
def to_str(self):
|
|
210
|
+
"""Returns the string representation of the model"""
|
|
211
|
+
import simplejson as json
|
|
212
|
+
if six.PY2:
|
|
213
|
+
import sys
|
|
214
|
+
reload(sys)
|
|
215
|
+
sys.setdefaultencoding("utf-8")
|
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
217
|
+
|
|
218
|
+
def __repr__(self):
|
|
219
|
+
"""For `print`"""
|
|
220
|
+
return self.to_str()
|
|
221
|
+
|
|
222
|
+
def __eq__(self, other):
|
|
223
|
+
"""Returns true if both objects are equal"""
|
|
224
|
+
if not isinstance(other, ListJobsRequest):
|
|
225
|
+
return False
|
|
226
|
+
|
|
227
|
+
return self.__dict__ == other.__dict__
|
|
228
|
+
|
|
229
|
+
def __ne__(self, other):
|
|
230
|
+
"""Returns true if both objects are not equal"""
|
|
231
|
+
return not self == other
|
|
@@ -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 ListJobsResponse(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': 'ListJobsData'
|
|
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"""ListJobsResponse
|
|
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.ListJobsData`
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
super(ListJobsResponse, 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 ListJobsResponse.
|
|
62
|
+
|
|
63
|
+
返回码
|
|
64
|
+
|
|
65
|
+
:return: The code of this ListJobsResponse.
|
|
66
|
+
:rtype: str
|
|
67
|
+
"""
|
|
68
|
+
return self._code
|
|
69
|
+
|
|
70
|
+
@code.setter
|
|
71
|
+
def code(self, code):
|
|
72
|
+
r"""Sets the code of this ListJobsResponse.
|
|
73
|
+
|
|
74
|
+
返回码
|
|
75
|
+
|
|
76
|
+
:param code: The code of this ListJobsResponse.
|
|
77
|
+
:type code: str
|
|
78
|
+
"""
|
|
79
|
+
self._code = code
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def message(self):
|
|
83
|
+
r"""Gets the message of this ListJobsResponse.
|
|
84
|
+
|
|
85
|
+
描述信息
|
|
86
|
+
|
|
87
|
+
:return: The message of this ListJobsResponse.
|
|
88
|
+
:rtype: str
|
|
89
|
+
"""
|
|
90
|
+
return self._message
|
|
91
|
+
|
|
92
|
+
@message.setter
|
|
93
|
+
def message(self, message):
|
|
94
|
+
r"""Sets the message of this ListJobsResponse.
|
|
95
|
+
|
|
96
|
+
描述信息
|
|
97
|
+
|
|
98
|
+
:param message: The message of this ListJobsResponse.
|
|
99
|
+
:type message: str
|
|
100
|
+
"""
|
|
101
|
+
self._message = message
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def data(self):
|
|
105
|
+
r"""Gets the data of this ListJobsResponse.
|
|
106
|
+
|
|
107
|
+
:return: The data of this ListJobsResponse.
|
|
108
|
+
:rtype: :class:`huaweicloudsdkdwr.v1.ListJobsData`
|
|
109
|
+
"""
|
|
110
|
+
return self._data
|
|
111
|
+
|
|
112
|
+
@data.setter
|
|
113
|
+
def data(self, data):
|
|
114
|
+
r"""Sets the data of this ListJobsResponse.
|
|
115
|
+
|
|
116
|
+
:param data: The data of this ListJobsResponse.
|
|
117
|
+
:type data: :class:`huaweicloudsdkdwr.v1.ListJobsData`
|
|
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, ListJobsResponse):
|
|
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
|