huaweicloudsdkeihealth 3.1.149__py2.py3-none-any.whl → 3.1.151__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.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/METADATA +2 -2
- {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/RECORD +55 -9
- {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/LICENSE +0 -0
- {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/WHEEL +0 -0
- {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.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 ListUserNotebookRequest:
|
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
|
+
'notebook_name': 'str',
|
21
|
+
'description': 'str',
|
22
|
+
'image_name': 'str',
|
23
|
+
'is_creator': 'bool',
|
24
|
+
'eihealth_project_names': 'list[str]',
|
25
|
+
'statuses': 'list[str]',
|
26
|
+
'start_create_time': 'int',
|
27
|
+
'end_create_time': 'int',
|
28
|
+
'start_update_time': 'int',
|
29
|
+
'end_update_time': 'int',
|
30
|
+
'sort_dir': 'str',
|
31
|
+
'sort_by': 'str',
|
32
|
+
'limit': 'int',
|
33
|
+
'offset': 'int'
|
34
|
+
}
|
35
|
+
|
36
|
+
attribute_map = {
|
37
|
+
'notebook_name': 'notebook_name',
|
38
|
+
'description': 'description',
|
39
|
+
'image_name': 'image_name',
|
40
|
+
'is_creator': 'is_creator',
|
41
|
+
'eihealth_project_names': 'eihealth_project_names',
|
42
|
+
'statuses': 'statuses',
|
43
|
+
'start_create_time': 'start_create_time',
|
44
|
+
'end_create_time': 'end_create_time',
|
45
|
+
'start_update_time': 'start_update_time',
|
46
|
+
'end_update_time': 'end_update_time',
|
47
|
+
'sort_dir': 'sort_dir',
|
48
|
+
'sort_by': 'sort_by',
|
49
|
+
'limit': 'limit',
|
50
|
+
'offset': 'offset'
|
51
|
+
}
|
52
|
+
|
53
|
+
def __init__(self, notebook_name=None, description=None, image_name=None, is_creator=None, eihealth_project_names=None, statuses=None, start_create_time=None, end_create_time=None, start_update_time=None, end_update_time=None, sort_dir=None, sort_by=None, limit=None, offset=None):
|
54
|
+
r"""ListUserNotebookRequest
|
55
|
+
|
56
|
+
The model defined in huaweicloud sdk
|
57
|
+
|
58
|
+
:param notebook_name: notebook名称。
|
59
|
+
:type notebook_name: str
|
60
|
+
:param description: 描述。
|
61
|
+
:type description: str
|
62
|
+
:param image_name: 镜像名称。
|
63
|
+
:type image_name: str
|
64
|
+
:param is_creator: 是否仅展示当前用户创建的notebook。
|
65
|
+
:type is_creator: bool
|
66
|
+
:param eihealth_project_names: 空间名称列表。
|
67
|
+
:type eihealth_project_names: list[str]
|
68
|
+
:param statuses: 作业运行状态列表,支持RUNNING|ABNORMAL|HIBERNATE|SUCCEEDED|CREATING|DELETING|UPDATING|CREATEDFAILED|DELETEDFAILED|UPDATEDFAILED|UNKNOWN。
|
69
|
+
:type statuses: 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_update_time: 最小更新时间。
|
75
|
+
:type start_update_time: int
|
76
|
+
:param end_update_time: 最大更新时间。
|
77
|
+
:type end_update_time: int
|
78
|
+
:param sort_dir: 排序规则,目前默认时间降序。
|
79
|
+
:type sort_dir: str
|
80
|
+
:param sort_by: 排序规则,默认更新时间降序,支持根据create_time|update_time排序。
|
81
|
+
:type sort_by: 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._notebook_name = None
|
91
|
+
self._description = None
|
92
|
+
self._image_name = None
|
93
|
+
self._is_creator = None
|
94
|
+
self._eihealth_project_names = None
|
95
|
+
self._statuses = None
|
96
|
+
self._start_create_time = None
|
97
|
+
self._end_create_time = None
|
98
|
+
self._start_update_time = None
|
99
|
+
self._end_update_time = None
|
100
|
+
self._sort_dir = None
|
101
|
+
self._sort_by = None
|
102
|
+
self._limit = None
|
103
|
+
self._offset = None
|
104
|
+
self.discriminator = None
|
105
|
+
|
106
|
+
if notebook_name is not None:
|
107
|
+
self.notebook_name = notebook_name
|
108
|
+
if description is not None:
|
109
|
+
self.description = description
|
110
|
+
if image_name is not None:
|
111
|
+
self.image_name = image_name
|
112
|
+
if is_creator is not None:
|
113
|
+
self.is_creator = is_creator
|
114
|
+
if eihealth_project_names is not None:
|
115
|
+
self.eihealth_project_names = eihealth_project_names
|
116
|
+
if statuses is not None:
|
117
|
+
self.statuses = statuses
|
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_update_time is not None:
|
123
|
+
self.start_update_time = start_update_time
|
124
|
+
if end_update_time is not None:
|
125
|
+
self.end_update_time = end_update_time
|
126
|
+
if sort_dir is not None:
|
127
|
+
self.sort_dir = sort_dir
|
128
|
+
if sort_by is not None:
|
129
|
+
self.sort_by = sort_by
|
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 notebook_name(self):
|
137
|
+
r"""Gets the notebook_name of this ListUserNotebookRequest.
|
138
|
+
|
139
|
+
notebook名称。
|
140
|
+
|
141
|
+
:return: The notebook_name of this ListUserNotebookRequest.
|
142
|
+
:rtype: str
|
143
|
+
"""
|
144
|
+
return self._notebook_name
|
145
|
+
|
146
|
+
@notebook_name.setter
|
147
|
+
def notebook_name(self, notebook_name):
|
148
|
+
r"""Sets the notebook_name of this ListUserNotebookRequest.
|
149
|
+
|
150
|
+
notebook名称。
|
151
|
+
|
152
|
+
:param notebook_name: The notebook_name of this ListUserNotebookRequest.
|
153
|
+
:type notebook_name: str
|
154
|
+
"""
|
155
|
+
self._notebook_name = notebook_name
|
156
|
+
|
157
|
+
@property
|
158
|
+
def description(self):
|
159
|
+
r"""Gets the description of this ListUserNotebookRequest.
|
160
|
+
|
161
|
+
描述。
|
162
|
+
|
163
|
+
:return: The description of this ListUserNotebookRequest.
|
164
|
+
:rtype: str
|
165
|
+
"""
|
166
|
+
return self._description
|
167
|
+
|
168
|
+
@description.setter
|
169
|
+
def description(self, description):
|
170
|
+
r"""Sets the description of this ListUserNotebookRequest.
|
171
|
+
|
172
|
+
描述。
|
173
|
+
|
174
|
+
:param description: The description of this ListUserNotebookRequest.
|
175
|
+
:type description: str
|
176
|
+
"""
|
177
|
+
self._description = description
|
178
|
+
|
179
|
+
@property
|
180
|
+
def image_name(self):
|
181
|
+
r"""Gets the image_name of this ListUserNotebookRequest.
|
182
|
+
|
183
|
+
镜像名称。
|
184
|
+
|
185
|
+
:return: The image_name of this ListUserNotebookRequest.
|
186
|
+
:rtype: str
|
187
|
+
"""
|
188
|
+
return self._image_name
|
189
|
+
|
190
|
+
@image_name.setter
|
191
|
+
def image_name(self, image_name):
|
192
|
+
r"""Sets the image_name of this ListUserNotebookRequest.
|
193
|
+
|
194
|
+
镜像名称。
|
195
|
+
|
196
|
+
:param image_name: The image_name of this ListUserNotebookRequest.
|
197
|
+
:type image_name: str
|
198
|
+
"""
|
199
|
+
self._image_name = image_name
|
200
|
+
|
201
|
+
@property
|
202
|
+
def is_creator(self):
|
203
|
+
r"""Gets the is_creator of this ListUserNotebookRequest.
|
204
|
+
|
205
|
+
是否仅展示当前用户创建的notebook。
|
206
|
+
|
207
|
+
:return: The is_creator of this ListUserNotebookRequest.
|
208
|
+
:rtype: bool
|
209
|
+
"""
|
210
|
+
return self._is_creator
|
211
|
+
|
212
|
+
@is_creator.setter
|
213
|
+
def is_creator(self, is_creator):
|
214
|
+
r"""Sets the is_creator of this ListUserNotebookRequest.
|
215
|
+
|
216
|
+
是否仅展示当前用户创建的notebook。
|
217
|
+
|
218
|
+
:param is_creator: The is_creator of this ListUserNotebookRequest.
|
219
|
+
:type is_creator: bool
|
220
|
+
"""
|
221
|
+
self._is_creator = is_creator
|
222
|
+
|
223
|
+
@property
|
224
|
+
def eihealth_project_names(self):
|
225
|
+
r"""Gets the eihealth_project_names of this ListUserNotebookRequest.
|
226
|
+
|
227
|
+
空间名称列表。
|
228
|
+
|
229
|
+
:return: The eihealth_project_names of this ListUserNotebookRequest.
|
230
|
+
:rtype: list[str]
|
231
|
+
"""
|
232
|
+
return self._eihealth_project_names
|
233
|
+
|
234
|
+
@eihealth_project_names.setter
|
235
|
+
def eihealth_project_names(self, eihealth_project_names):
|
236
|
+
r"""Sets the eihealth_project_names of this ListUserNotebookRequest.
|
237
|
+
|
238
|
+
空间名称列表。
|
239
|
+
|
240
|
+
:param eihealth_project_names: The eihealth_project_names of this ListUserNotebookRequest.
|
241
|
+
:type eihealth_project_names: list[str]
|
242
|
+
"""
|
243
|
+
self._eihealth_project_names = eihealth_project_names
|
244
|
+
|
245
|
+
@property
|
246
|
+
def statuses(self):
|
247
|
+
r"""Gets the statuses of this ListUserNotebookRequest.
|
248
|
+
|
249
|
+
作业运行状态列表,支持RUNNING|ABNORMAL|HIBERNATE|SUCCEEDED|CREATING|DELETING|UPDATING|CREATEDFAILED|DELETEDFAILED|UPDATEDFAILED|UNKNOWN。
|
250
|
+
|
251
|
+
:return: The statuses of this ListUserNotebookRequest.
|
252
|
+
:rtype: list[str]
|
253
|
+
"""
|
254
|
+
return self._statuses
|
255
|
+
|
256
|
+
@statuses.setter
|
257
|
+
def statuses(self, statuses):
|
258
|
+
r"""Sets the statuses of this ListUserNotebookRequest.
|
259
|
+
|
260
|
+
作业运行状态列表,支持RUNNING|ABNORMAL|HIBERNATE|SUCCEEDED|CREATING|DELETING|UPDATING|CREATEDFAILED|DELETEDFAILED|UPDATEDFAILED|UNKNOWN。
|
261
|
+
|
262
|
+
:param statuses: The statuses of this ListUserNotebookRequest.
|
263
|
+
:type statuses: list[str]
|
264
|
+
"""
|
265
|
+
self._statuses = statuses
|
266
|
+
|
267
|
+
@property
|
268
|
+
def start_create_time(self):
|
269
|
+
r"""Gets the start_create_time of this ListUserNotebookRequest.
|
270
|
+
|
271
|
+
最小创建时间。
|
272
|
+
|
273
|
+
:return: The start_create_time of this ListUserNotebookRequest.
|
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 ListUserNotebookRequest.
|
281
|
+
|
282
|
+
最小创建时间。
|
283
|
+
|
284
|
+
:param start_create_time: The start_create_time of this ListUserNotebookRequest.
|
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 ListUserNotebookRequest.
|
292
|
+
|
293
|
+
最大创建时间。
|
294
|
+
|
295
|
+
:return: The end_create_time of this ListUserNotebookRequest.
|
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 ListUserNotebookRequest.
|
303
|
+
|
304
|
+
最大创建时间。
|
305
|
+
|
306
|
+
:param end_create_time: The end_create_time of this ListUserNotebookRequest.
|
307
|
+
:type end_create_time: int
|
308
|
+
"""
|
309
|
+
self._end_create_time = end_create_time
|
310
|
+
|
311
|
+
@property
|
312
|
+
def start_update_time(self):
|
313
|
+
r"""Gets the start_update_time of this ListUserNotebookRequest.
|
314
|
+
|
315
|
+
最小更新时间。
|
316
|
+
|
317
|
+
:return: The start_update_time of this ListUserNotebookRequest.
|
318
|
+
:rtype: int
|
319
|
+
"""
|
320
|
+
return self._start_update_time
|
321
|
+
|
322
|
+
@start_update_time.setter
|
323
|
+
def start_update_time(self, start_update_time):
|
324
|
+
r"""Sets the start_update_time of this ListUserNotebookRequest.
|
325
|
+
|
326
|
+
最小更新时间。
|
327
|
+
|
328
|
+
:param start_update_time: The start_update_time of this ListUserNotebookRequest.
|
329
|
+
:type start_update_time: int
|
330
|
+
"""
|
331
|
+
self._start_update_time = start_update_time
|
332
|
+
|
333
|
+
@property
|
334
|
+
def end_update_time(self):
|
335
|
+
r"""Gets the end_update_time of this ListUserNotebookRequest.
|
336
|
+
|
337
|
+
最大更新时间。
|
338
|
+
|
339
|
+
:return: The end_update_time of this ListUserNotebookRequest.
|
340
|
+
:rtype: int
|
341
|
+
"""
|
342
|
+
return self._end_update_time
|
343
|
+
|
344
|
+
@end_update_time.setter
|
345
|
+
def end_update_time(self, end_update_time):
|
346
|
+
r"""Sets the end_update_time of this ListUserNotebookRequest.
|
347
|
+
|
348
|
+
最大更新时间。
|
349
|
+
|
350
|
+
:param end_update_time: The end_update_time of this ListUserNotebookRequest.
|
351
|
+
:type end_update_time: int
|
352
|
+
"""
|
353
|
+
self._end_update_time = end_update_time
|
354
|
+
|
355
|
+
@property
|
356
|
+
def sort_dir(self):
|
357
|
+
r"""Gets the sort_dir of this ListUserNotebookRequest.
|
358
|
+
|
359
|
+
排序规则,目前默认时间降序。
|
360
|
+
|
361
|
+
:return: The sort_dir of this ListUserNotebookRequest.
|
362
|
+
:rtype: str
|
363
|
+
"""
|
364
|
+
return self._sort_dir
|
365
|
+
|
366
|
+
@sort_dir.setter
|
367
|
+
def sort_dir(self, sort_dir):
|
368
|
+
r"""Sets the sort_dir of this ListUserNotebookRequest.
|
369
|
+
|
370
|
+
排序规则,目前默认时间降序。
|
371
|
+
|
372
|
+
:param sort_dir: The sort_dir of this ListUserNotebookRequest.
|
373
|
+
:type sort_dir: str
|
374
|
+
"""
|
375
|
+
self._sort_dir = sort_dir
|
376
|
+
|
377
|
+
@property
|
378
|
+
def sort_by(self):
|
379
|
+
r"""Gets the sort_by of this ListUserNotebookRequest.
|
380
|
+
|
381
|
+
排序规则,默认更新时间降序,支持根据create_time|update_time排序。
|
382
|
+
|
383
|
+
:return: The sort_by of this ListUserNotebookRequest.
|
384
|
+
:rtype: str
|
385
|
+
"""
|
386
|
+
return self._sort_by
|
387
|
+
|
388
|
+
@sort_by.setter
|
389
|
+
def sort_by(self, sort_by):
|
390
|
+
r"""Sets the sort_by of this ListUserNotebookRequest.
|
391
|
+
|
392
|
+
排序规则,默认更新时间降序,支持根据create_time|update_time排序。
|
393
|
+
|
394
|
+
:param sort_by: The sort_by of this ListUserNotebookRequest.
|
395
|
+
:type sort_by: str
|
396
|
+
"""
|
397
|
+
self._sort_by = sort_by
|
398
|
+
|
399
|
+
@property
|
400
|
+
def limit(self):
|
401
|
+
r"""Gets the limit of this ListUserNotebookRequest.
|
402
|
+
|
403
|
+
限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。
|
404
|
+
|
405
|
+
:return: The limit of this ListUserNotebookRequest.
|
406
|
+
:rtype: int
|
407
|
+
"""
|
408
|
+
return self._limit
|
409
|
+
|
410
|
+
@limit.setter
|
411
|
+
def limit(self, limit):
|
412
|
+
r"""Sets the limit of this ListUserNotebookRequest.
|
413
|
+
|
414
|
+
限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000]。
|
415
|
+
|
416
|
+
:param limit: The limit of this ListUserNotebookRequest.
|
417
|
+
:type limit: int
|
418
|
+
"""
|
419
|
+
self._limit = limit
|
420
|
+
|
421
|
+
@property
|
422
|
+
def offset(self):
|
423
|
+
r"""Gets the offset of this ListUserNotebookRequest.
|
424
|
+
|
425
|
+
偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。
|
426
|
+
|
427
|
+
:return: The offset of this ListUserNotebookRequest.
|
428
|
+
:rtype: int
|
429
|
+
"""
|
430
|
+
return self._offset
|
431
|
+
|
432
|
+
@offset.setter
|
433
|
+
def offset(self, offset):
|
434
|
+
r"""Sets the offset of this ListUserNotebookRequest.
|
435
|
+
|
436
|
+
偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]。
|
437
|
+
|
438
|
+
:param offset: The offset of this ListUserNotebookRequest.
|
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, ListUserNotebookRequest):
|
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,145 @@
|
|
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 ListUserNotebookResponse(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
|
+
'count': 'int',
|
22
|
+
'notebooks': 'list[NotebookEntity]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'count': 'count',
|
27
|
+
'notebooks': 'notebooks'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, count=None, notebooks=None):
|
31
|
+
r"""ListUserNotebookResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param count: notebook总数
|
36
|
+
:type count: int
|
37
|
+
:param notebooks: notebook详情列表
|
38
|
+
:type notebooks: list[:class:`huaweicloudsdkeihealth.v1.NotebookEntity`]
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListUserNotebookResponse, self).__init__()
|
42
|
+
|
43
|
+
self._count = None
|
44
|
+
self._notebooks = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if count is not None:
|
48
|
+
self.count = count
|
49
|
+
if notebooks is not None:
|
50
|
+
self.notebooks = notebooks
|
51
|
+
|
52
|
+
@property
|
53
|
+
def count(self):
|
54
|
+
r"""Gets the count of this ListUserNotebookResponse.
|
55
|
+
|
56
|
+
notebook总数
|
57
|
+
|
58
|
+
:return: The count of this ListUserNotebookResponse.
|
59
|
+
:rtype: int
|
60
|
+
"""
|
61
|
+
return self._count
|
62
|
+
|
63
|
+
@count.setter
|
64
|
+
def count(self, count):
|
65
|
+
r"""Sets the count of this ListUserNotebookResponse.
|
66
|
+
|
67
|
+
notebook总数
|
68
|
+
|
69
|
+
:param count: The count of this ListUserNotebookResponse.
|
70
|
+
:type count: int
|
71
|
+
"""
|
72
|
+
self._count = count
|
73
|
+
|
74
|
+
@property
|
75
|
+
def notebooks(self):
|
76
|
+
r"""Gets the notebooks of this ListUserNotebookResponse.
|
77
|
+
|
78
|
+
notebook详情列表
|
79
|
+
|
80
|
+
:return: The notebooks of this ListUserNotebookResponse.
|
81
|
+
:rtype: list[:class:`huaweicloudsdkeihealth.v1.NotebookEntity`]
|
82
|
+
"""
|
83
|
+
return self._notebooks
|
84
|
+
|
85
|
+
@notebooks.setter
|
86
|
+
def notebooks(self, notebooks):
|
87
|
+
r"""Sets the notebooks of this ListUserNotebookResponse.
|
88
|
+
|
89
|
+
notebook详情列表
|
90
|
+
|
91
|
+
:param notebooks: The notebooks of this ListUserNotebookResponse.
|
92
|
+
:type notebooks: list[:class:`huaweicloudsdkeihealth.v1.NotebookEntity`]
|
93
|
+
"""
|
94
|
+
self._notebooks = notebooks
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, ListUserNotebookResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not self == other
|