huaweicloudsdkeihealth 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.
- huaweicloudsdkeihealth/v1/__init__.py +46 -0
- huaweicloudsdkeihealth/v1/eihealth_async_client.py +1323 -48
- huaweicloudsdkeihealth/v1/eihealth_client.py +1323 -48
- huaweicloudsdkeihealth/v1/model/__init__.py +46 -0
- huaweicloudsdkeihealth/v1/model/agency_dto.py +231 -0
- huaweicloudsdkeihealth/v1/model/app_dto.py +492 -0
- huaweicloudsdkeihealth/v1/model/cce_cluster_rsp.py +260 -0
- huaweicloudsdkeihealth/v1/model/computing_cluster_rsp.py +463 -0
- huaweicloudsdkeihealth/v1/model/create_computing_cluster_req.py +114 -0
- huaweicloudsdkeihealth/v1/model/create_computing_cluster_request.py +111 -0
- huaweicloudsdkeihealth/v1/model/create_computing_cluster_response.py +116 -0
- huaweicloudsdkeihealth/v1/model/delete_computing_cluster_request.py +114 -0
- huaweicloudsdkeihealth/v1/model/delete_computing_cluster_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/iam_role_dto.py +231 -0
- huaweicloudsdkeihealth/v1/model/initialize_platform_request.py +84 -0
- huaweicloudsdkeihealth/v1/model/initialize_platform_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/install_step.py +169 -0
- huaweicloudsdkeihealth/v1/model/list_cce_cluster_request.py +84 -0
- huaweicloudsdkeihealth/v1/model/list_cce_cluster_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_cluster_install_step_request.py +114 -0
- huaweicloudsdkeihealth/v1/model/list_cluster_install_step_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_computing_cluster_request.py +144 -0
- huaweicloudsdkeihealth/v1/model/list_computing_cluster_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_project_statistics_request.py +84 -0
- huaweicloudsdkeihealth/v1/model/list_project_statistics_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_sfs_turbos_request.py +144 -0
- huaweicloudsdkeihealth/v1/model/list_sfs_turbos_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_user_app_request.py +492 -0
- huaweicloudsdkeihealth/v1/model/list_user_app_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_user_drug_job_request.py +492 -0
- huaweicloudsdkeihealth/v1/model/list_user_drug_job_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_user_image_request.py +521 -0
- huaweicloudsdkeihealth/v1/model/list_user_image_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_user_job_request.py +492 -0
- huaweicloudsdkeihealth/v1/model/list_user_job_response.py +203 -0
- huaweicloudsdkeihealth/v1/model/list_user_notebook_request.py +492 -0
- huaweicloudsdkeihealth/v1/model/list_user_notebook_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/list_user_workflow_request.py +492 -0
- huaweicloudsdkeihealth/v1/model/list_user_workflow_response.py +145 -0
- huaweicloudsdkeihealth/v1/model/project_statistic.py +347 -0
- huaweicloudsdkeihealth/v1/model/sfs_turbo_rsp.py +231 -0
- huaweicloudsdkeihealth/v1/model/show_agency_request.py +84 -0
- huaweicloudsdkeihealth/v1/model/show_agency_response.py +174 -0
- huaweicloudsdkeihealth/v1/model/statistic_dto.py +144 -0
- huaweicloudsdkeihealth/v1/model/step_status.py +89 -0
- huaweicloudsdkeihealth/v1/model/update_agency_request.py +84 -0
- huaweicloudsdkeihealth/v1/model/update_agency_response.py +85 -0
- huaweicloudsdkeihealth/v1/model/update_top_project_req.py +114 -0
- huaweicloudsdkeihealth/v1/model/update_top_project_request.py +139 -0
- huaweicloudsdkeihealth/v1/model/update_top_project_response.py +85 -0
- {huaweicloudsdkeihealth-3.1.150.dist-info → huaweicloudsdkeihealth-3.1.152.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.150.dist-info → huaweicloudsdkeihealth-3.1.152.dist-info}/RECORD +55 -9
- {huaweicloudsdkeihealth-3.1.150.dist-info → huaweicloudsdkeihealth-3.1.152.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.150.dist-info → huaweicloudsdkeihealth-3.1.152.dist-info}/WHEEL +0 -0
- {huaweicloudsdkeihealth-3.1.150.dist-info → huaweicloudsdkeihealth-3.1.152.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,492 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListUserJobRequest:
|
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
|
+
'is_creator': 'bool',
|
21
|
+
'job_name': 'str',
|
22
|
+
'eihealth_project_names': 'list[str]',
|
23
|
+
'types': 'list[str]',
|
24
|
+
'status_list': 'list[str]',
|
25
|
+
'labels': 'list[str]',
|
26
|
+
'start_create_time': 'int',
|
27
|
+
'end_create_time': 'int',
|
28
|
+
'start_finish_time': 'int',
|
29
|
+
'end_finish_time': 'int',
|
30
|
+
'sort_key': 'str',
|
31
|
+
'sort_dir': 'str',
|
32
|
+
'limit': 'int',
|
33
|
+
'offset': 'int'
|
34
|
+
}
|
35
|
+
|
36
|
+
attribute_map = {
|
37
|
+
'is_creator': 'is_creator',
|
38
|
+
'job_name': 'job_name',
|
39
|
+
'eihealth_project_names': 'eihealth_project_names',
|
40
|
+
'types': 'types',
|
41
|
+
'status_list': 'status_list',
|
42
|
+
'labels': 'labels',
|
43
|
+
'start_create_time': 'start_create_time',
|
44
|
+
'end_create_time': 'end_create_time',
|
45
|
+
'start_finish_time': 'start_finish_time',
|
46
|
+
'end_finish_time': 'end_finish_time',
|
47
|
+
'sort_key': 'sort_key',
|
48
|
+
'sort_dir': 'sort_dir',
|
49
|
+
'limit': 'limit',
|
50
|
+
'offset': 'offset'
|
51
|
+
}
|
52
|
+
|
53
|
+
def __init__(self, is_creator=None, job_name=None, eihealth_project_names=None, types=None, status_list=None, labels=None, start_create_time=None, end_create_time=None, start_finish_time=None, end_finish_time=None, sort_key=None, sort_dir=None, limit=None, offset=None):
|
54
|
+
r"""ListUserJobRequest
|
55
|
+
|
56
|
+
The model defined in huaweicloud sdk
|
57
|
+
|
58
|
+
:param is_creator: 是否仅展示本人创建资源。
|
59
|
+
:type is_creator: bool
|
60
|
+
:param job_name: 作业名称,取值范围:长度为[1,63],以小写字母开头,允许出现中划线(-)、小写字母和数字,且必须以小写字母或数字结尾。
|
61
|
+
:type job_name: str
|
62
|
+
:param eihealth_project_names: 空间名称列表,多个值之间使用逗号分隔。
|
63
|
+
:type eihealth_project_names: list[str]
|
64
|
+
:param types: 作业类型列表,支持workflow|app。
|
65
|
+
:type types: list[str]
|
66
|
+
:param status_list: 作业运行状态列表,支持Succeeded|Running|Pending|Failed|Cancelling|Cancelled|Unknown。
|
67
|
+
:type status_list: list[str]
|
68
|
+
:param labels: 标签列表。
|
69
|
+
:type labels: list[str]
|
70
|
+
:param start_create_time: 开始创建时间。
|
71
|
+
:type start_create_time: int
|
72
|
+
:param end_create_time: 结束创建时间。
|
73
|
+
:type end_create_time: int
|
74
|
+
:param start_finish_time: 开始完成时间。
|
75
|
+
:type start_finish_time: int
|
76
|
+
:param end_finish_time: 结束完成时间。
|
77
|
+
:type end_finish_time: int
|
78
|
+
:param sort_key: 排序规则,默认根据创建时间降序,支持create_time|finish_time。
|
79
|
+
:type sort_key: str
|
80
|
+
:param sort_dir: 排序规则,目前默认时间降序。
|
81
|
+
:type sort_dir: str
|
82
|
+
:param limit: 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。
|
83
|
+
:type limit: int
|
84
|
+
:param offset: 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。
|
85
|
+
:type offset: int
|
86
|
+
"""
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
self._is_creator = None
|
91
|
+
self._job_name = None
|
92
|
+
self._eihealth_project_names = None
|
93
|
+
self._types = None
|
94
|
+
self._status_list = None
|
95
|
+
self._labels = None
|
96
|
+
self._start_create_time = None
|
97
|
+
self._end_create_time = None
|
98
|
+
self._start_finish_time = None
|
99
|
+
self._end_finish_time = None
|
100
|
+
self._sort_key = None
|
101
|
+
self._sort_dir = None
|
102
|
+
self._limit = None
|
103
|
+
self._offset = None
|
104
|
+
self.discriminator = None
|
105
|
+
|
106
|
+
if is_creator is not None:
|
107
|
+
self.is_creator = is_creator
|
108
|
+
if job_name is not None:
|
109
|
+
self.job_name = job_name
|
110
|
+
if eihealth_project_names is not None:
|
111
|
+
self.eihealth_project_names = eihealth_project_names
|
112
|
+
if types is not None:
|
113
|
+
self.types = types
|
114
|
+
if status_list is not None:
|
115
|
+
self.status_list = status_list
|
116
|
+
if labels is not None:
|
117
|
+
self.labels = labels
|
118
|
+
if start_create_time is not None:
|
119
|
+
self.start_create_time = start_create_time
|
120
|
+
if end_create_time is not None:
|
121
|
+
self.end_create_time = end_create_time
|
122
|
+
if start_finish_time is not None:
|
123
|
+
self.start_finish_time = start_finish_time
|
124
|
+
if end_finish_time is not None:
|
125
|
+
self.end_finish_time = end_finish_time
|
126
|
+
if sort_key is not None:
|
127
|
+
self.sort_key = sort_key
|
128
|
+
if sort_dir is not None:
|
129
|
+
self.sort_dir = sort_dir
|
130
|
+
if limit is not None:
|
131
|
+
self.limit = limit
|
132
|
+
if offset is not None:
|
133
|
+
self.offset = offset
|
134
|
+
|
135
|
+
@property
|
136
|
+
def is_creator(self):
|
137
|
+
r"""Gets the is_creator of this ListUserJobRequest.
|
138
|
+
|
139
|
+
是否仅展示本人创建资源。
|
140
|
+
|
141
|
+
:return: The is_creator of this ListUserJobRequest.
|
142
|
+
:rtype: bool
|
143
|
+
"""
|
144
|
+
return self._is_creator
|
145
|
+
|
146
|
+
@is_creator.setter
|
147
|
+
def is_creator(self, is_creator):
|
148
|
+
r"""Sets the is_creator of this ListUserJobRequest.
|
149
|
+
|
150
|
+
是否仅展示本人创建资源。
|
151
|
+
|
152
|
+
:param is_creator: The is_creator of this ListUserJobRequest.
|
153
|
+
:type is_creator: bool
|
154
|
+
"""
|
155
|
+
self._is_creator = is_creator
|
156
|
+
|
157
|
+
@property
|
158
|
+
def job_name(self):
|
159
|
+
r"""Gets the job_name of this ListUserJobRequest.
|
160
|
+
|
161
|
+
作业名称,取值范围:长度为[1,63],以小写字母开头,允许出现中划线(-)、小写字母和数字,且必须以小写字母或数字结尾。
|
162
|
+
|
163
|
+
:return: The job_name of this ListUserJobRequest.
|
164
|
+
:rtype: str
|
165
|
+
"""
|
166
|
+
return self._job_name
|
167
|
+
|
168
|
+
@job_name.setter
|
169
|
+
def job_name(self, job_name):
|
170
|
+
r"""Sets the job_name of this ListUserJobRequest.
|
171
|
+
|
172
|
+
作业名称,取值范围:长度为[1,63],以小写字母开头,允许出现中划线(-)、小写字母和数字,且必须以小写字母或数字结尾。
|
173
|
+
|
174
|
+
:param job_name: The job_name of this ListUserJobRequest.
|
175
|
+
:type job_name: str
|
176
|
+
"""
|
177
|
+
self._job_name = job_name
|
178
|
+
|
179
|
+
@property
|
180
|
+
def eihealth_project_names(self):
|
181
|
+
r"""Gets the eihealth_project_names of this ListUserJobRequest.
|
182
|
+
|
183
|
+
空间名称列表,多个值之间使用逗号分隔。
|
184
|
+
|
185
|
+
:return: The eihealth_project_names of this ListUserJobRequest.
|
186
|
+
:rtype: list[str]
|
187
|
+
"""
|
188
|
+
return self._eihealth_project_names
|
189
|
+
|
190
|
+
@eihealth_project_names.setter
|
191
|
+
def eihealth_project_names(self, eihealth_project_names):
|
192
|
+
r"""Sets the eihealth_project_names of this ListUserJobRequest.
|
193
|
+
|
194
|
+
空间名称列表,多个值之间使用逗号分隔。
|
195
|
+
|
196
|
+
:param eihealth_project_names: The eihealth_project_names of this ListUserJobRequest.
|
197
|
+
:type eihealth_project_names: list[str]
|
198
|
+
"""
|
199
|
+
self._eihealth_project_names = eihealth_project_names
|
200
|
+
|
201
|
+
@property
|
202
|
+
def types(self):
|
203
|
+
r"""Gets the types of this ListUserJobRequest.
|
204
|
+
|
205
|
+
作业类型列表,支持workflow|app。
|
206
|
+
|
207
|
+
:return: The types of this ListUserJobRequest.
|
208
|
+
:rtype: list[str]
|
209
|
+
"""
|
210
|
+
return self._types
|
211
|
+
|
212
|
+
@types.setter
|
213
|
+
def types(self, types):
|
214
|
+
r"""Sets the types of this ListUserJobRequest.
|
215
|
+
|
216
|
+
作业类型列表,支持workflow|app。
|
217
|
+
|
218
|
+
:param types: The types of this ListUserJobRequest.
|
219
|
+
:type types: list[str]
|
220
|
+
"""
|
221
|
+
self._types = types
|
222
|
+
|
223
|
+
@property
|
224
|
+
def status_list(self):
|
225
|
+
r"""Gets the status_list of this ListUserJobRequest.
|
226
|
+
|
227
|
+
作业运行状态列表,支持Succeeded|Running|Pending|Failed|Cancelling|Cancelled|Unknown。
|
228
|
+
|
229
|
+
:return: The status_list of this ListUserJobRequest.
|
230
|
+
:rtype: list[str]
|
231
|
+
"""
|
232
|
+
return self._status_list
|
233
|
+
|
234
|
+
@status_list.setter
|
235
|
+
def status_list(self, status_list):
|
236
|
+
r"""Sets the status_list of this ListUserJobRequest.
|
237
|
+
|
238
|
+
作业运行状态列表,支持Succeeded|Running|Pending|Failed|Cancelling|Cancelled|Unknown。
|
239
|
+
|
240
|
+
:param status_list: The status_list of this ListUserJobRequest.
|
241
|
+
:type status_list: list[str]
|
242
|
+
"""
|
243
|
+
self._status_list = status_list
|
244
|
+
|
245
|
+
@property
|
246
|
+
def labels(self):
|
247
|
+
r"""Gets the labels of this ListUserJobRequest.
|
248
|
+
|
249
|
+
标签列表。
|
250
|
+
|
251
|
+
:return: The labels of this ListUserJobRequest.
|
252
|
+
:rtype: list[str]
|
253
|
+
"""
|
254
|
+
return self._labels
|
255
|
+
|
256
|
+
@labels.setter
|
257
|
+
def labels(self, labels):
|
258
|
+
r"""Sets the labels of this ListUserJobRequest.
|
259
|
+
|
260
|
+
标签列表。
|
261
|
+
|
262
|
+
:param labels: The labels of this ListUserJobRequest.
|
263
|
+
:type labels: list[str]
|
264
|
+
"""
|
265
|
+
self._labels = labels
|
266
|
+
|
267
|
+
@property
|
268
|
+
def start_create_time(self):
|
269
|
+
r"""Gets the start_create_time of this ListUserJobRequest.
|
270
|
+
|
271
|
+
开始创建时间。
|
272
|
+
|
273
|
+
:return: The start_create_time of this ListUserJobRequest.
|
274
|
+
:rtype: int
|
275
|
+
"""
|
276
|
+
return self._start_create_time
|
277
|
+
|
278
|
+
@start_create_time.setter
|
279
|
+
def start_create_time(self, start_create_time):
|
280
|
+
r"""Sets the start_create_time of this ListUserJobRequest.
|
281
|
+
|
282
|
+
开始创建时间。
|
283
|
+
|
284
|
+
:param start_create_time: The start_create_time of this ListUserJobRequest.
|
285
|
+
:type start_create_time: int
|
286
|
+
"""
|
287
|
+
self._start_create_time = start_create_time
|
288
|
+
|
289
|
+
@property
|
290
|
+
def end_create_time(self):
|
291
|
+
r"""Gets the end_create_time of this ListUserJobRequest.
|
292
|
+
|
293
|
+
结束创建时间。
|
294
|
+
|
295
|
+
:return: The end_create_time of this ListUserJobRequest.
|
296
|
+
:rtype: int
|
297
|
+
"""
|
298
|
+
return self._end_create_time
|
299
|
+
|
300
|
+
@end_create_time.setter
|
301
|
+
def end_create_time(self, end_create_time):
|
302
|
+
r"""Sets the end_create_time of this ListUserJobRequest.
|
303
|
+
|
304
|
+
结束创建时间。
|
305
|
+
|
306
|
+
:param end_create_time: The end_create_time of this ListUserJobRequest.
|
307
|
+
:type end_create_time: int
|
308
|
+
"""
|
309
|
+
self._end_create_time = end_create_time
|
310
|
+
|
311
|
+
@property
|
312
|
+
def start_finish_time(self):
|
313
|
+
r"""Gets the start_finish_time of this ListUserJobRequest.
|
314
|
+
|
315
|
+
开始完成时间。
|
316
|
+
|
317
|
+
:return: The start_finish_time of this ListUserJobRequest.
|
318
|
+
:rtype: int
|
319
|
+
"""
|
320
|
+
return self._start_finish_time
|
321
|
+
|
322
|
+
@start_finish_time.setter
|
323
|
+
def start_finish_time(self, start_finish_time):
|
324
|
+
r"""Sets the start_finish_time of this ListUserJobRequest.
|
325
|
+
|
326
|
+
开始完成时间。
|
327
|
+
|
328
|
+
:param start_finish_time: The start_finish_time of this ListUserJobRequest.
|
329
|
+
:type start_finish_time: int
|
330
|
+
"""
|
331
|
+
self._start_finish_time = start_finish_time
|
332
|
+
|
333
|
+
@property
|
334
|
+
def end_finish_time(self):
|
335
|
+
r"""Gets the end_finish_time of this ListUserJobRequest.
|
336
|
+
|
337
|
+
结束完成时间。
|
338
|
+
|
339
|
+
:return: The end_finish_time of this ListUserJobRequest.
|
340
|
+
:rtype: int
|
341
|
+
"""
|
342
|
+
return self._end_finish_time
|
343
|
+
|
344
|
+
@end_finish_time.setter
|
345
|
+
def end_finish_time(self, end_finish_time):
|
346
|
+
r"""Sets the end_finish_time of this ListUserJobRequest.
|
347
|
+
|
348
|
+
结束完成时间。
|
349
|
+
|
350
|
+
:param end_finish_time: The end_finish_time of this ListUserJobRequest.
|
351
|
+
:type end_finish_time: int
|
352
|
+
"""
|
353
|
+
self._end_finish_time = end_finish_time
|
354
|
+
|
355
|
+
@property
|
356
|
+
def sort_key(self):
|
357
|
+
r"""Gets the sort_key of this ListUserJobRequest.
|
358
|
+
|
359
|
+
排序规则,默认根据创建时间降序,支持create_time|finish_time。
|
360
|
+
|
361
|
+
:return: The sort_key of this ListUserJobRequest.
|
362
|
+
:rtype: str
|
363
|
+
"""
|
364
|
+
return self._sort_key
|
365
|
+
|
366
|
+
@sort_key.setter
|
367
|
+
def sort_key(self, sort_key):
|
368
|
+
r"""Sets the sort_key of this ListUserJobRequest.
|
369
|
+
|
370
|
+
排序规则,默认根据创建时间降序,支持create_time|finish_time。
|
371
|
+
|
372
|
+
:param sort_key: The sort_key of this ListUserJobRequest.
|
373
|
+
:type sort_key: str
|
374
|
+
"""
|
375
|
+
self._sort_key = sort_key
|
376
|
+
|
377
|
+
@property
|
378
|
+
def sort_dir(self):
|
379
|
+
r"""Gets the sort_dir of this ListUserJobRequest.
|
380
|
+
|
381
|
+
排序规则,目前默认时间降序。
|
382
|
+
|
383
|
+
:return: The sort_dir of this ListUserJobRequest.
|
384
|
+
:rtype: str
|
385
|
+
"""
|
386
|
+
return self._sort_dir
|
387
|
+
|
388
|
+
@sort_dir.setter
|
389
|
+
def sort_dir(self, sort_dir):
|
390
|
+
r"""Sets the sort_dir of this ListUserJobRequest.
|
391
|
+
|
392
|
+
排序规则,目前默认时间降序。
|
393
|
+
|
394
|
+
:param sort_dir: The sort_dir of this ListUserJobRequest.
|
395
|
+
:type sort_dir: str
|
396
|
+
"""
|
397
|
+
self._sort_dir = sort_dir
|
398
|
+
|
399
|
+
@property
|
400
|
+
def limit(self):
|
401
|
+
r"""Gets the limit of this ListUserJobRequest.
|
402
|
+
|
403
|
+
限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。
|
404
|
+
|
405
|
+
:return: The limit of this ListUserJobRequest.
|
406
|
+
:rtype: int
|
407
|
+
"""
|
408
|
+
return self._limit
|
409
|
+
|
410
|
+
@limit.setter
|
411
|
+
def limit(self, limit):
|
412
|
+
r"""Sets the limit of this ListUserJobRequest.
|
413
|
+
|
414
|
+
限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。
|
415
|
+
|
416
|
+
:param limit: The limit of this ListUserJobRequest.
|
417
|
+
:type limit: int
|
418
|
+
"""
|
419
|
+
self._limit = limit
|
420
|
+
|
421
|
+
@property
|
422
|
+
def offset(self):
|
423
|
+
r"""Gets the offset of this ListUserJobRequest.
|
424
|
+
|
425
|
+
偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。
|
426
|
+
|
427
|
+
:return: The offset of this ListUserJobRequest.
|
428
|
+
:rtype: int
|
429
|
+
"""
|
430
|
+
return self._offset
|
431
|
+
|
432
|
+
@offset.setter
|
433
|
+
def offset(self, offset):
|
434
|
+
r"""Sets the offset of this ListUserJobRequest.
|
435
|
+
|
436
|
+
偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。
|
437
|
+
|
438
|
+
:param offset: The offset of this ListUserJobRequest.
|
439
|
+
:type offset: int
|
440
|
+
"""
|
441
|
+
self._offset = offset
|
442
|
+
|
443
|
+
def to_dict(self):
|
444
|
+
"""Returns the model properties as a dict"""
|
445
|
+
result = {}
|
446
|
+
|
447
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
448
|
+
value = getattr(self, attr)
|
449
|
+
if isinstance(value, list):
|
450
|
+
result[attr] = list(map(
|
451
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
452
|
+
value
|
453
|
+
))
|
454
|
+
elif hasattr(value, "to_dict"):
|
455
|
+
result[attr] = value.to_dict()
|
456
|
+
elif isinstance(value, dict):
|
457
|
+
result[attr] = dict(map(
|
458
|
+
lambda item: (item[0], item[1].to_dict())
|
459
|
+
if hasattr(item[1], "to_dict") else item,
|
460
|
+
value.items()
|
461
|
+
))
|
462
|
+
else:
|
463
|
+
if attr in self.sensitive_list:
|
464
|
+
result[attr] = "****"
|
465
|
+
else:
|
466
|
+
result[attr] = value
|
467
|
+
|
468
|
+
return result
|
469
|
+
|
470
|
+
def to_str(self):
|
471
|
+
"""Returns the string representation of the model"""
|
472
|
+
import simplejson as json
|
473
|
+
if six.PY2:
|
474
|
+
import sys
|
475
|
+
reload(sys)
|
476
|
+
sys.setdefaultencoding("utf-8")
|
477
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
478
|
+
|
479
|
+
def __repr__(self):
|
480
|
+
"""For `print`"""
|
481
|
+
return self.to_str()
|
482
|
+
|
483
|
+
def __eq__(self, other):
|
484
|
+
"""Returns true if both objects are equal"""
|
485
|
+
if not isinstance(other, ListUserJobRequest):
|
486
|
+
return False
|
487
|
+
|
488
|
+
return self.__dict__ == other.__dict__
|
489
|
+
|
490
|
+
def __ne__(self, other):
|
491
|
+
"""Returns true if both objects are not equal"""
|
492
|
+
return not self == other
|
@@ -0,0 +1,203 @@
|
|
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 ListUserJobResponse(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
|
+
'jobs': 'list[JobListDto]',
|
22
|
+
'count': 'int',
|
23
|
+
'running_count': 'int',
|
24
|
+
'waiting_count': 'int'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'jobs': 'jobs',
|
29
|
+
'count': 'count',
|
30
|
+
'running_count': 'running_count',
|
31
|
+
'waiting_count': 'waiting_count'
|
32
|
+
}
|
33
|
+
|
34
|
+
def __init__(self, jobs=None, count=None, running_count=None, waiting_count=None):
|
35
|
+
r"""ListUserJobResponse
|
36
|
+
|
37
|
+
The model defined in huaweicloud sdk
|
38
|
+
|
39
|
+
:param jobs: 作业列表。
|
40
|
+
:type jobs: list[:class:`huaweicloudsdkeihealth.v1.JobListDto`]
|
41
|
+
:param count: 作业总数。
|
42
|
+
:type count: int
|
43
|
+
:param running_count: 运行中作业总数。
|
44
|
+
:type running_count: int
|
45
|
+
:param waiting_count: 等待中作业总数。
|
46
|
+
:type waiting_count: int
|
47
|
+
"""
|
48
|
+
|
49
|
+
super(ListUserJobResponse, self).__init__()
|
50
|
+
|
51
|
+
self._jobs = None
|
52
|
+
self._count = None
|
53
|
+
self._running_count = None
|
54
|
+
self._waiting_count = None
|
55
|
+
self.discriminator = None
|
56
|
+
|
57
|
+
if jobs is not None:
|
58
|
+
self.jobs = jobs
|
59
|
+
if count is not None:
|
60
|
+
self.count = count
|
61
|
+
if running_count is not None:
|
62
|
+
self.running_count = running_count
|
63
|
+
if waiting_count is not None:
|
64
|
+
self.waiting_count = waiting_count
|
65
|
+
|
66
|
+
@property
|
67
|
+
def jobs(self):
|
68
|
+
r"""Gets the jobs of this ListUserJobResponse.
|
69
|
+
|
70
|
+
作业列表。
|
71
|
+
|
72
|
+
:return: The jobs of this ListUserJobResponse.
|
73
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.JobListDto`]
|
74
|
+
"""
|
75
|
+
return self._jobs
|
76
|
+
|
77
|
+
@jobs.setter
|
78
|
+
def jobs(self, jobs):
|
79
|
+
r"""Sets the jobs of this ListUserJobResponse.
|
80
|
+
|
81
|
+
作业列表。
|
82
|
+
|
83
|
+
:param jobs: The jobs of this ListUserJobResponse.
|
84
|
+
:type jobs: list[:class:`huaweicloudsdkeihealth.v1.JobListDto`]
|
85
|
+
"""
|
86
|
+
self._jobs = jobs
|
87
|
+
|
88
|
+
@property
|
89
|
+
def count(self):
|
90
|
+
r"""Gets the count of this ListUserJobResponse.
|
91
|
+
|
92
|
+
作业总数。
|
93
|
+
|
94
|
+
:return: The count of this ListUserJobResponse.
|
95
|
+
:rtype: int
|
96
|
+
"""
|
97
|
+
return self._count
|
98
|
+
|
99
|
+
@count.setter
|
100
|
+
def count(self, count):
|
101
|
+
r"""Sets the count of this ListUserJobResponse.
|
102
|
+
|
103
|
+
作业总数。
|
104
|
+
|
105
|
+
:param count: The count of this ListUserJobResponse.
|
106
|
+
:type count: int
|
107
|
+
"""
|
108
|
+
self._count = count
|
109
|
+
|
110
|
+
@property
|
111
|
+
def running_count(self):
|
112
|
+
r"""Gets the running_count of this ListUserJobResponse.
|
113
|
+
|
114
|
+
运行中作业总数。
|
115
|
+
|
116
|
+
:return: The running_count of this ListUserJobResponse.
|
117
|
+
:rtype: int
|
118
|
+
"""
|
119
|
+
return self._running_count
|
120
|
+
|
121
|
+
@running_count.setter
|
122
|
+
def running_count(self, running_count):
|
123
|
+
r"""Sets the running_count of this ListUserJobResponse.
|
124
|
+
|
125
|
+
运行中作业总数。
|
126
|
+
|
127
|
+
:param running_count: The running_count of this ListUserJobResponse.
|
128
|
+
:type running_count: int
|
129
|
+
"""
|
130
|
+
self._running_count = running_count
|
131
|
+
|
132
|
+
@property
|
133
|
+
def waiting_count(self):
|
134
|
+
r"""Gets the waiting_count of this ListUserJobResponse.
|
135
|
+
|
136
|
+
等待中作业总数。
|
137
|
+
|
138
|
+
:return: The waiting_count of this ListUserJobResponse.
|
139
|
+
:rtype: int
|
140
|
+
"""
|
141
|
+
return self._waiting_count
|
142
|
+
|
143
|
+
@waiting_count.setter
|
144
|
+
def waiting_count(self, waiting_count):
|
145
|
+
r"""Sets the waiting_count of this ListUserJobResponse.
|
146
|
+
|
147
|
+
等待中作业总数。
|
148
|
+
|
149
|
+
:param waiting_count: The waiting_count of this ListUserJobResponse.
|
150
|
+
:type waiting_count: int
|
151
|
+
"""
|
152
|
+
self._waiting_count = waiting_count
|
153
|
+
|
154
|
+
def to_dict(self):
|
155
|
+
"""Returns the model properties as a dict"""
|
156
|
+
result = {}
|
157
|
+
|
158
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
159
|
+
value = getattr(self, attr)
|
160
|
+
if isinstance(value, list):
|
161
|
+
result[attr] = list(map(
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
163
|
+
value
|
164
|
+
))
|
165
|
+
elif hasattr(value, "to_dict"):
|
166
|
+
result[attr] = value.to_dict()
|
167
|
+
elif isinstance(value, dict):
|
168
|
+
result[attr] = dict(map(
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
171
|
+
value.items()
|
172
|
+
))
|
173
|
+
else:
|
174
|
+
if attr in self.sensitive_list:
|
175
|
+
result[attr] = "****"
|
176
|
+
else:
|
177
|
+
result[attr] = value
|
178
|
+
|
179
|
+
return result
|
180
|
+
|
181
|
+
def to_str(self):
|
182
|
+
"""Returns the string representation of the model"""
|
183
|
+
import simplejson as json
|
184
|
+
if six.PY2:
|
185
|
+
import sys
|
186
|
+
reload(sys)
|
187
|
+
sys.setdefaultencoding("utf-8")
|
188
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
189
|
+
|
190
|
+
def __repr__(self):
|
191
|
+
"""For `print`"""
|
192
|
+
return self.to_str()
|
193
|
+
|
194
|
+
def __eq__(self, other):
|
195
|
+
"""Returns true if both objects are equal"""
|
196
|
+
if not isinstance(other, ListUserJobResponse):
|
197
|
+
return False
|
198
|
+
|
199
|
+
return self.__dict__ == other.__dict__
|
200
|
+
|
201
|
+
def __ne__(self, other):
|
202
|
+
"""Returns true if both objects are not equal"""
|
203
|
+
return not self == other
|