huaweicloudsdkcodeartsbuild 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.
Files changed (92) hide show
  1. huaweicloudsdkcodeartsbuild/v3/__init__.py +83 -0
  2. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1885 -128
  3. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1885 -128
  4. huaweicloudsdkcodeartsbuild/v3/model/__init__.py +83 -0
  5. huaweicloudsdkcodeartsbuild/v3/model/add_keystore_permission_response_body.py +347 -0
  6. huaweicloudsdkcodeartsbuild/v3/model/build_params.py +173 -0
  7. huaweicloudsdkcodeartsbuild/v3/model/build_params_body_result.py +115 -0
  8. huaweicloudsdkcodeartsbuild/v3/model/build_record.py +981 -0
  9. huaweicloudsdkcodeartsbuild/v3/model/build_record_build_record_type.py +202 -0
  10. huaweicloudsdkcodeartsbuild/v3/model/build_record_parameters.py +202 -0
  11. huaweicloudsdkcodeartsbuild/v3/model/check_job_name_is_exists_request.py +142 -0
  12. huaweicloudsdkcodeartsbuild/v3/model/check_job_name_is_exists_response.py +145 -0
  13. huaweicloudsdkcodeartsbuild/v3/model/constraints.py +173 -0
  14. huaweicloudsdkcodeartsbuild/v3/model/download_keystore_by_name_request.py +170 -0
  15. huaweicloudsdkcodeartsbuild/v3/model/download_keystore_by_name_response.py +85 -0
  16. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_request.py +228 -0
  17. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_response.py +170 -0
  18. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_request.py +84 -0
  19. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_response.py +145 -0
  20. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_result.py +144 -0
  21. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_request.py +173 -0
  22. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_response.py +170 -0
  23. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_result.py +144 -0
  24. huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_request.py +373 -0
  25. huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_response.py +145 -0
  26. huaweicloudsdkcodeartsbuild/v3/model/list_records_request.py +317 -0
  27. huaweicloudsdkcodeartsbuild/v3/model/list_records_response.py +170 -0
  28. huaweicloudsdkcodeartsbuild/v3/model/list_records_result.py +140 -0
  29. huaweicloudsdkcodeartsbuild/v3/model/list_records_result_pagination.py +173 -0
  30. huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_request.py +173 -0
  31. huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_response.py +228 -0
  32. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_request.py +173 -0
  33. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_response.py +170 -0
  34. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_result.py +144 -0
  35. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_result_project_info_list.py +231 -0
  36. huaweicloudsdkcodeartsbuild/v3/model/parameter.py +144 -0
  37. huaweicloudsdkcodeartsbuild/v3/model/params.py +289 -0
  38. huaweicloudsdkcodeartsbuild/v3/model/recycling_job.py +347 -0
  39. huaweicloudsdkcodeartsbuild/v3/model/recycling_jobs_result.py +173 -0
  40. huaweicloudsdkcodeartsbuild/v3/model/show_build_info_record_request.py +142 -0
  41. huaweicloudsdkcodeartsbuild/v3/model/show_build_info_record_response.py +170 -0
  42. huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_request.py +84 -0
  43. huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_response.py +170 -0
  44. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_request.py +114 -0
  45. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_response.py +174 -0
  46. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_request.py +114 -0
  47. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_response.py +170 -0
  48. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_params.py +144 -0
  49. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_request.py +84 -0
  50. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_response.py +145 -0
  51. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_result.py +144 -0
  52. huaweicloudsdkcodeartsbuild/v3/model/show_dockerfile_template_request.py +114 -0
  53. huaweicloudsdkcodeartsbuild/v3/model/show_dockerfile_template_response.py +85 -0
  54. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_request.py +84 -0
  55. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response.py +170 -0
  56. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result.py +115 -0
  57. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result_image_templates.py +318 -0
  58. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_request.py +199 -0
  59. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_response.py +141 -0
  60. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result.py +231 -0
  61. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result_chart.py +202 -0
  62. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_request.py +170 -0
  63. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_response.py +145 -0
  64. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_request.py +143 -0
  65. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_response.py +170 -0
  66. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_request.py +114 -0
  67. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_response.py +170 -0
  68. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_result.py +724 -0
  69. huaweicloudsdkcodeartsbuild/v3/model/show_job_notice_config_info_request.py +114 -0
  70. huaweicloudsdkcodeartsbuild/v3/model/show_job_notice_config_info_response.py +174 -0
  71. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_request.py +114 -0
  72. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_response.py +145 -0
  73. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_result.py +492 -0
  74. huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_request.py +84 -0
  75. huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_response.py +174 -0
  76. huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_request.py +170 -0
  77. huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_response.py +170 -0
  78. huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_response_body_result.py +144 -0
  79. huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_request.py +114 -0
  80. huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_response.py +170 -0
  81. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_request.py +84 -0
  82. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_response.py +170 -0
  83. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_result.py +144 -0
  84. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_result_project_info_list.py +231 -0
  85. huaweicloudsdkcodeartsbuild/v3/model/show_user_project_permission_result.py +260 -0
  86. huaweicloudsdkcodeartsbuild/v3/model/system_parameters_result.py +173 -0
  87. huaweicloudsdkcodeartsbuild/v3/model/template_list.py +459 -0
  88. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/METADATA +2 -2
  89. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/RECORD +92 -9
  90. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/LICENSE +0 -0
  91. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/WHEEL +0 -0
  92. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-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 ShowJobRolePermissionResult:
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
+ 'id': 'int',
21
+ 'role_id': 'int',
22
+ 'role_name': 'str',
23
+ 'job_id': 'str',
24
+ 'is_modify': 'bool',
25
+ 'is_delete': 'bool',
26
+ 'is_view': 'bool',
27
+ 'is_execute': 'bool',
28
+ 'is_copy': 'bool',
29
+ 'is_forbidden': 'bool',
30
+ 'is_manager': 'bool',
31
+ 'create_time': 'str',
32
+ 'last_update_time': 'str',
33
+ 'count': 'int'
34
+ }
35
+
36
+ attribute_map = {
37
+ 'id': 'id',
38
+ 'role_id': 'role_id',
39
+ 'role_name': 'role_name',
40
+ 'job_id': 'job_id',
41
+ 'is_modify': 'is_modify',
42
+ 'is_delete': 'is_delete',
43
+ 'is_view': 'is_view',
44
+ 'is_execute': 'is_execute',
45
+ 'is_copy': 'is_copy',
46
+ 'is_forbidden': 'is_forbidden',
47
+ 'is_manager': 'is_manager',
48
+ 'create_time': 'create_time',
49
+ 'last_update_time': 'last_update_time',
50
+ 'count': 'count'
51
+ }
52
+
53
+ def __init__(self, id=None, role_id=None, role_name=None, job_id=None, is_modify=None, is_delete=None, is_view=None, is_execute=None, is_copy=None, is_forbidden=None, is_manager=None, create_time=None, last_update_time=None, count=None):
54
+ r"""ShowJobRolePermissionResult
55
+
56
+ The model defined in huaweicloud sdk
57
+
58
+ :param id: 数据库中ID
59
+ :type id: int
60
+ :param role_id: 角色ID
61
+ :type role_id: int
62
+ :param role_name: 角色名
63
+ :type role_name: str
64
+ :param job_id: 任务ID
65
+ :type job_id: str
66
+ :param is_modify: 是否有修改任务权限
67
+ :type is_modify: bool
68
+ :param is_delete: 是否有删除任务权限
69
+ :type is_delete: bool
70
+ :param is_view: 是否有查看任务权限
71
+ :type is_view: bool
72
+ :param is_execute: 是否有执行任务权限
73
+ :type is_execute: bool
74
+ :param is_copy: 是否有复制任务权限
75
+ :type is_copy: bool
76
+ :param is_forbidden: 是否有禁用任务权限
77
+ :type is_forbidden: bool
78
+ :param is_manager: 是否有管理任务权限
79
+ :type is_manager: bool
80
+ :param create_time: 任务创建时间
81
+ :type create_time: str
82
+ :param last_update_time: 任务最后修改时间
83
+ :type last_update_time: str
84
+ :param count: 次数
85
+ :type count: int
86
+ """
87
+
88
+
89
+
90
+ self._id = None
91
+ self._role_id = None
92
+ self._role_name = None
93
+ self._job_id = None
94
+ self._is_modify = None
95
+ self._is_delete = None
96
+ self._is_view = None
97
+ self._is_execute = None
98
+ self._is_copy = None
99
+ self._is_forbidden = None
100
+ self._is_manager = None
101
+ self._create_time = None
102
+ self._last_update_time = None
103
+ self._count = None
104
+ self.discriminator = None
105
+
106
+ if id is not None:
107
+ self.id = id
108
+ if role_id is not None:
109
+ self.role_id = role_id
110
+ if role_name is not None:
111
+ self.role_name = role_name
112
+ if job_id is not None:
113
+ self.job_id = job_id
114
+ if is_modify is not None:
115
+ self.is_modify = is_modify
116
+ if is_delete is not None:
117
+ self.is_delete = is_delete
118
+ if is_view is not None:
119
+ self.is_view = is_view
120
+ if is_execute is not None:
121
+ self.is_execute = is_execute
122
+ if is_copy is not None:
123
+ self.is_copy = is_copy
124
+ if is_forbidden is not None:
125
+ self.is_forbidden = is_forbidden
126
+ if is_manager is not None:
127
+ self.is_manager = is_manager
128
+ if create_time is not None:
129
+ self.create_time = create_time
130
+ if last_update_time is not None:
131
+ self.last_update_time = last_update_time
132
+ if count is not None:
133
+ self.count = count
134
+
135
+ @property
136
+ def id(self):
137
+ r"""Gets the id of this ShowJobRolePermissionResult.
138
+
139
+ 数据库中ID
140
+
141
+ :return: The id of this ShowJobRolePermissionResult.
142
+ :rtype: int
143
+ """
144
+ return self._id
145
+
146
+ @id.setter
147
+ def id(self, id):
148
+ r"""Sets the id of this ShowJobRolePermissionResult.
149
+
150
+ 数据库中ID
151
+
152
+ :param id: The id of this ShowJobRolePermissionResult.
153
+ :type id: int
154
+ """
155
+ self._id = id
156
+
157
+ @property
158
+ def role_id(self):
159
+ r"""Gets the role_id of this ShowJobRolePermissionResult.
160
+
161
+ 角色ID
162
+
163
+ :return: The role_id of this ShowJobRolePermissionResult.
164
+ :rtype: int
165
+ """
166
+ return self._role_id
167
+
168
+ @role_id.setter
169
+ def role_id(self, role_id):
170
+ r"""Sets the role_id of this ShowJobRolePermissionResult.
171
+
172
+ 角色ID
173
+
174
+ :param role_id: The role_id of this ShowJobRolePermissionResult.
175
+ :type role_id: int
176
+ """
177
+ self._role_id = role_id
178
+
179
+ @property
180
+ def role_name(self):
181
+ r"""Gets the role_name of this ShowJobRolePermissionResult.
182
+
183
+ 角色名
184
+
185
+ :return: The role_name of this ShowJobRolePermissionResult.
186
+ :rtype: str
187
+ """
188
+ return self._role_name
189
+
190
+ @role_name.setter
191
+ def role_name(self, role_name):
192
+ r"""Sets the role_name of this ShowJobRolePermissionResult.
193
+
194
+ 角色名
195
+
196
+ :param role_name: The role_name of this ShowJobRolePermissionResult.
197
+ :type role_name: str
198
+ """
199
+ self._role_name = role_name
200
+
201
+ @property
202
+ def job_id(self):
203
+ r"""Gets the job_id of this ShowJobRolePermissionResult.
204
+
205
+ 任务ID
206
+
207
+ :return: The job_id of this ShowJobRolePermissionResult.
208
+ :rtype: str
209
+ """
210
+ return self._job_id
211
+
212
+ @job_id.setter
213
+ def job_id(self, job_id):
214
+ r"""Sets the job_id of this ShowJobRolePermissionResult.
215
+
216
+ 任务ID
217
+
218
+ :param job_id: The job_id of this ShowJobRolePermissionResult.
219
+ :type job_id: str
220
+ """
221
+ self._job_id = job_id
222
+
223
+ @property
224
+ def is_modify(self):
225
+ r"""Gets the is_modify of this ShowJobRolePermissionResult.
226
+
227
+ 是否有修改任务权限
228
+
229
+ :return: The is_modify of this ShowJobRolePermissionResult.
230
+ :rtype: bool
231
+ """
232
+ return self._is_modify
233
+
234
+ @is_modify.setter
235
+ def is_modify(self, is_modify):
236
+ r"""Sets the is_modify of this ShowJobRolePermissionResult.
237
+
238
+ 是否有修改任务权限
239
+
240
+ :param is_modify: The is_modify of this ShowJobRolePermissionResult.
241
+ :type is_modify: bool
242
+ """
243
+ self._is_modify = is_modify
244
+
245
+ @property
246
+ def is_delete(self):
247
+ r"""Gets the is_delete of this ShowJobRolePermissionResult.
248
+
249
+ 是否有删除任务权限
250
+
251
+ :return: The is_delete of this ShowJobRolePermissionResult.
252
+ :rtype: bool
253
+ """
254
+ return self._is_delete
255
+
256
+ @is_delete.setter
257
+ def is_delete(self, is_delete):
258
+ r"""Sets the is_delete of this ShowJobRolePermissionResult.
259
+
260
+ 是否有删除任务权限
261
+
262
+ :param is_delete: The is_delete of this ShowJobRolePermissionResult.
263
+ :type is_delete: bool
264
+ """
265
+ self._is_delete = is_delete
266
+
267
+ @property
268
+ def is_view(self):
269
+ r"""Gets the is_view of this ShowJobRolePermissionResult.
270
+
271
+ 是否有查看任务权限
272
+
273
+ :return: The is_view of this ShowJobRolePermissionResult.
274
+ :rtype: bool
275
+ """
276
+ return self._is_view
277
+
278
+ @is_view.setter
279
+ def is_view(self, is_view):
280
+ r"""Sets the is_view of this ShowJobRolePermissionResult.
281
+
282
+ 是否有查看任务权限
283
+
284
+ :param is_view: The is_view of this ShowJobRolePermissionResult.
285
+ :type is_view: bool
286
+ """
287
+ self._is_view = is_view
288
+
289
+ @property
290
+ def is_execute(self):
291
+ r"""Gets the is_execute of this ShowJobRolePermissionResult.
292
+
293
+ 是否有执行任务权限
294
+
295
+ :return: The is_execute of this ShowJobRolePermissionResult.
296
+ :rtype: bool
297
+ """
298
+ return self._is_execute
299
+
300
+ @is_execute.setter
301
+ def is_execute(self, is_execute):
302
+ r"""Sets the is_execute of this ShowJobRolePermissionResult.
303
+
304
+ 是否有执行任务权限
305
+
306
+ :param is_execute: The is_execute of this ShowJobRolePermissionResult.
307
+ :type is_execute: bool
308
+ """
309
+ self._is_execute = is_execute
310
+
311
+ @property
312
+ def is_copy(self):
313
+ r"""Gets the is_copy of this ShowJobRolePermissionResult.
314
+
315
+ 是否有复制任务权限
316
+
317
+ :return: The is_copy of this ShowJobRolePermissionResult.
318
+ :rtype: bool
319
+ """
320
+ return self._is_copy
321
+
322
+ @is_copy.setter
323
+ def is_copy(self, is_copy):
324
+ r"""Sets the is_copy of this ShowJobRolePermissionResult.
325
+
326
+ 是否有复制任务权限
327
+
328
+ :param is_copy: The is_copy of this ShowJobRolePermissionResult.
329
+ :type is_copy: bool
330
+ """
331
+ self._is_copy = is_copy
332
+
333
+ @property
334
+ def is_forbidden(self):
335
+ r"""Gets the is_forbidden of this ShowJobRolePermissionResult.
336
+
337
+ 是否有禁用任务权限
338
+
339
+ :return: The is_forbidden of this ShowJobRolePermissionResult.
340
+ :rtype: bool
341
+ """
342
+ return self._is_forbidden
343
+
344
+ @is_forbidden.setter
345
+ def is_forbidden(self, is_forbidden):
346
+ r"""Sets the is_forbidden of this ShowJobRolePermissionResult.
347
+
348
+ 是否有禁用任务权限
349
+
350
+ :param is_forbidden: The is_forbidden of this ShowJobRolePermissionResult.
351
+ :type is_forbidden: bool
352
+ """
353
+ self._is_forbidden = is_forbidden
354
+
355
+ @property
356
+ def is_manager(self):
357
+ r"""Gets the is_manager of this ShowJobRolePermissionResult.
358
+
359
+ 是否有管理任务权限
360
+
361
+ :return: The is_manager of this ShowJobRolePermissionResult.
362
+ :rtype: bool
363
+ """
364
+ return self._is_manager
365
+
366
+ @is_manager.setter
367
+ def is_manager(self, is_manager):
368
+ r"""Sets the is_manager of this ShowJobRolePermissionResult.
369
+
370
+ 是否有管理任务权限
371
+
372
+ :param is_manager: The is_manager of this ShowJobRolePermissionResult.
373
+ :type is_manager: bool
374
+ """
375
+ self._is_manager = is_manager
376
+
377
+ @property
378
+ def create_time(self):
379
+ r"""Gets the create_time of this ShowJobRolePermissionResult.
380
+
381
+ 任务创建时间
382
+
383
+ :return: The create_time of this ShowJobRolePermissionResult.
384
+ :rtype: str
385
+ """
386
+ return self._create_time
387
+
388
+ @create_time.setter
389
+ def create_time(self, create_time):
390
+ r"""Sets the create_time of this ShowJobRolePermissionResult.
391
+
392
+ 任务创建时间
393
+
394
+ :param create_time: The create_time of this ShowJobRolePermissionResult.
395
+ :type create_time: str
396
+ """
397
+ self._create_time = create_time
398
+
399
+ @property
400
+ def last_update_time(self):
401
+ r"""Gets the last_update_time of this ShowJobRolePermissionResult.
402
+
403
+ 任务最后修改时间
404
+
405
+ :return: The last_update_time of this ShowJobRolePermissionResult.
406
+ :rtype: str
407
+ """
408
+ return self._last_update_time
409
+
410
+ @last_update_time.setter
411
+ def last_update_time(self, last_update_time):
412
+ r"""Sets the last_update_time of this ShowJobRolePermissionResult.
413
+
414
+ 任务最后修改时间
415
+
416
+ :param last_update_time: The last_update_time of this ShowJobRolePermissionResult.
417
+ :type last_update_time: str
418
+ """
419
+ self._last_update_time = last_update_time
420
+
421
+ @property
422
+ def count(self):
423
+ r"""Gets the count of this ShowJobRolePermissionResult.
424
+
425
+ 次数
426
+
427
+ :return: The count of this ShowJobRolePermissionResult.
428
+ :rtype: int
429
+ """
430
+ return self._count
431
+
432
+ @count.setter
433
+ def count(self, count):
434
+ r"""Sets the count of this ShowJobRolePermissionResult.
435
+
436
+ 次数
437
+
438
+ :param count: The count of this ShowJobRolePermissionResult.
439
+ :type count: int
440
+ """
441
+ self._count = count
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, ShowJobRolePermissionResult):
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,84 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowJobSystemParametersRequest:
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
+ }
21
+
22
+ attribute_map = {
23
+ }
24
+
25
+ def __init__(self):
26
+ r"""ShowJobSystemParametersRequest
27
+
28
+ The model defined in huaweicloud sdk
29
+
30
+ """
31
+
32
+
33
+ self.discriminator = None
34
+
35
+ def to_dict(self):
36
+ """Returns the model properties as a dict"""
37
+ result = {}
38
+
39
+ for attr, _ in six.iteritems(self.openapi_types):
40
+ value = getattr(self, attr)
41
+ if isinstance(value, list):
42
+ result[attr] = list(map(
43
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
44
+ value
45
+ ))
46
+ elif hasattr(value, "to_dict"):
47
+ result[attr] = value.to_dict()
48
+ elif isinstance(value, dict):
49
+ result[attr] = dict(map(
50
+ lambda item: (item[0], item[1].to_dict())
51
+ if hasattr(item[1], "to_dict") else item,
52
+ value.items()
53
+ ))
54
+ else:
55
+ if attr in self.sensitive_list:
56
+ result[attr] = "****"
57
+ else:
58
+ result[attr] = value
59
+
60
+ return result
61
+
62
+ def to_str(self):
63
+ """Returns the string representation of the model"""
64
+ import simplejson as json
65
+ if six.PY2:
66
+ import sys
67
+ reload(sys)
68
+ sys.setdefaultencoding("utf-8")
69
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
70
+
71
+ def __repr__(self):
72
+ """For `print`"""
73
+ return self.to_str()
74
+
75
+ def __eq__(self, other):
76
+ """Returns true if both objects are equal"""
77
+ if not isinstance(other, ShowJobSystemParametersRequest):
78
+ return False
79
+
80
+ return self.__dict__ == other.__dict__
81
+
82
+ def __ne__(self, other):
83
+ """Returns true if both objects are not equal"""
84
+ return not self == other