huaweicloudsdkcodeartsbuild 3.1.152__py2.py3-none-any.whl → 3.1.154__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 (73) hide show
  1. huaweicloudsdkcodeartsbuild/v3/__init__.py +60 -1
  2. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1466 -89
  3. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1466 -89
  4. huaweicloudsdkcodeartsbuild/v3/model/__init__.py +60 -1
  5. huaweicloudsdkcodeartsbuild/v3/model/brief_record_items.py +550 -0
  6. huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_request.py +111 -0
  7. huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_request_body.py +170 -0
  8. huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_response.py +145 -0
  9. huaweicloudsdkcodeartsbuild/v3/model/clear_recycling_jobs_request.py +84 -0
  10. huaweicloudsdkcodeartsbuild/v3/model/clear_recycling_jobs_response.py +145 -0
  11. huaweicloudsdkcodeartsbuild/v3/model/copy_build_job_request_body.py +429 -0
  12. huaweicloudsdkcodeartsbuild/v3/model/copy_job_request.py +111 -0
  13. huaweicloudsdkcodeartsbuild/v3/model/copy_job_response.py +170 -0
  14. huaweicloudsdkcodeartsbuild/v3/model/create_build_job_request_body.py +115 -3
  15. huaweicloudsdkcodeartsbuild/v3/model/create_build_job_scm.py +90 -3
  16. huaweicloudsdkcodeartsbuild/v3/model/create_build_timeout.py +144 -0
  17. huaweicloudsdkcodeartsbuild/v3/model/create_new_job_request.py +111 -0
  18. huaweicloudsdkcodeartsbuild/v3/model/create_new_job_response.py +170 -0
  19. huaweicloudsdkcodeartsbuild/v3/model/create_template_request.py +111 -0
  20. huaweicloudsdkcodeartsbuild/v3/model/create_template_response.py +141 -0
  21. huaweicloudsdkcodeartsbuild/v3/model/delete_build_job_response.py +4 -4
  22. huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_permission_request.py +114 -0
  23. huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_permission_response.py +174 -0
  24. huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_request.py +114 -0
  25. huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_response.py +174 -0
  26. huaweicloudsdkcodeartsbuild/v3/model/delete_recycling_jobs_request.py +111 -0
  27. huaweicloudsdkcodeartsbuild/v3/model/delete_recycling_jobs_response.py +116 -0
  28. huaweicloudsdkcodeartsbuild/v3/model/delete_template_request.py +114 -0
  29. huaweicloudsdkcodeartsbuild/v3/model/delete_template_response.py +116 -0
  30. huaweicloudsdkcodeartsbuild/v3/model/delete_the_job_request.py +114 -0
  31. huaweicloudsdkcodeartsbuild/v3/model/delete_the_job_response.py +170 -0
  32. huaweicloudsdkcodeartsbuild/v3/model/{delete_build_job_response_body_result.py → delete_the_job_response_body_result.py} +11 -11
  33. huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_request.py +139 -0
  34. huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_request_body.py +143 -0
  35. huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_response.py +116 -0
  36. huaweicloudsdkcodeartsbuild/v3/model/execute_job_request.py +111 -0
  37. huaweicloudsdkcodeartsbuild/v3/model/execute_job_response.py +174 -0
  38. huaweicloudsdkcodeartsbuild/v3/model/job.py +264 -3
  39. huaweicloudsdkcodeartsbuild/v3/model/jobs_request_body.py +114 -0
  40. huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_request.py +143 -0
  41. huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_response.py +174 -0
  42. huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_response_body_result.py +144 -0
  43. huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_request.py +111 -0
  44. huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_request_body.py +173 -0
  45. huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_response.py +170 -0
  46. huaweicloudsdkcodeartsbuild/v3/model/restore_recycling_jobs_request.py +111 -0
  47. huaweicloudsdkcodeartsbuild/v3/model/restore_recycling_jobs_response.py +145 -0
  48. huaweicloudsdkcodeartsbuild/v3/model/save_template_used_info_request.py +111 -0
  49. huaweicloudsdkcodeartsbuild/v3/model/save_template_used_info_request_body.py +142 -0
  50. huaweicloudsdkcodeartsbuild/v3/model/save_template_used_info_response.py +174 -0
  51. huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_request.py +111 -0
  52. huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_request_body.py +114 -0
  53. huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_response.py +170 -0
  54. huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_result.py +115 -0
  55. huaweicloudsdkcodeartsbuild/v3/model/show_job_permission_result.py +434 -0
  56. huaweicloudsdkcodeartsbuild/v3/model/show_project_job_permission_request.py +142 -0
  57. huaweicloudsdkcodeartsbuild/v3/model/show_project_job_permission_response.py +141 -0
  58. huaweicloudsdkcodeartsbuild/v3/model/status_success_result_with_uuid_result.py +115 -0
  59. huaweicloudsdkcodeartsbuild/v3/model/trigger.py +142 -0
  60. huaweicloudsdkcodeartsbuild/v3/model/update_keystore_request.py +139 -0
  61. huaweicloudsdkcodeartsbuild/v3/model/update_keystore_request_body.py +198 -0
  62. huaweicloudsdkcodeartsbuild/v3/model/update_keystore_response.py +145 -0
  63. huaweicloudsdkcodeartsbuild/v3/model/update_new_job_request.py +111 -0
  64. huaweicloudsdkcodeartsbuild/v3/model/update_new_job_response.py +170 -0
  65. huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_request.py +111 -0
  66. huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_request_body.py +171 -0
  67. huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_response.py +170 -0
  68. huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_result.py +115 -0
  69. {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/METADATA +2 -2
  70. {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/RECORD +73 -14
  71. {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/LICENSE +0 -0
  72. {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/WHEEL +0 -0
  73. {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,434 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowJobPermissionResult:
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
+ 'role_id': 'int',
21
+ 'job_id': 'str',
22
+ 'is_modify': 'bool',
23
+ 'is_delete': 'bool',
24
+ 'is_view': 'bool',
25
+ 'is_execute': 'bool',
26
+ 'is_copy': 'bool',
27
+ 'is_forbidden': 'bool',
28
+ 'is_manager': 'bool',
29
+ 'create_time': 'str',
30
+ 'last_update_time': 'str',
31
+ 'count': 'int'
32
+ }
33
+
34
+ attribute_map = {
35
+ 'role_id': 'role_id',
36
+ 'job_id': 'job_id',
37
+ 'is_modify': 'is_modify',
38
+ 'is_delete': 'is_delete',
39
+ 'is_view': 'is_view',
40
+ 'is_execute': 'is_execute',
41
+ 'is_copy': 'is_copy',
42
+ 'is_forbidden': 'is_forbidden',
43
+ 'is_manager': 'is_manager',
44
+ 'create_time': 'create_time',
45
+ 'last_update_time': 'last_update_time',
46
+ 'count': 'count'
47
+ }
48
+
49
+ def __init__(self, role_id=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):
50
+ r"""ShowJobPermissionResult
51
+
52
+ The model defined in huaweicloud sdk
53
+
54
+ :param role_id: 角色ID
55
+ :type role_id: int
56
+ :param job_id: 任务ID
57
+ :type job_id: str
58
+ :param is_modify: 是否有修改任务权限
59
+ :type is_modify: bool
60
+ :param is_delete: 是否有删除任务权限
61
+ :type is_delete: bool
62
+ :param is_view: 是否有查看任务权限
63
+ :type is_view: bool
64
+ :param is_execute: 是否有执行任务权限
65
+ :type is_execute: bool
66
+ :param is_copy: 是否有复制任务权限
67
+ :type is_copy: bool
68
+ :param is_forbidden: 是否有禁用任务权限
69
+ :type is_forbidden: bool
70
+ :param is_manager: 是否有管理任务权限
71
+ :type is_manager: bool
72
+ :param create_time: 任务创建时间
73
+ :type create_time: str
74
+ :param last_update_time: 任务最后修改时间
75
+ :type last_update_time: str
76
+ :param count: 次数
77
+ :type count: int
78
+ """
79
+
80
+
81
+
82
+ self._role_id = None
83
+ self._job_id = None
84
+ self._is_modify = None
85
+ self._is_delete = None
86
+ self._is_view = None
87
+ self._is_execute = None
88
+ self._is_copy = None
89
+ self._is_forbidden = None
90
+ self._is_manager = None
91
+ self._create_time = None
92
+ self._last_update_time = None
93
+ self._count = None
94
+ self.discriminator = None
95
+
96
+ if role_id is not None:
97
+ self.role_id = role_id
98
+ if job_id is not None:
99
+ self.job_id = job_id
100
+ if is_modify is not None:
101
+ self.is_modify = is_modify
102
+ if is_delete is not None:
103
+ self.is_delete = is_delete
104
+ if is_view is not None:
105
+ self.is_view = is_view
106
+ if is_execute is not None:
107
+ self.is_execute = is_execute
108
+ if is_copy is not None:
109
+ self.is_copy = is_copy
110
+ if is_forbidden is not None:
111
+ self.is_forbidden = is_forbidden
112
+ if is_manager is not None:
113
+ self.is_manager = is_manager
114
+ if create_time is not None:
115
+ self.create_time = create_time
116
+ if last_update_time is not None:
117
+ self.last_update_time = last_update_time
118
+ if count is not None:
119
+ self.count = count
120
+
121
+ @property
122
+ def role_id(self):
123
+ r"""Gets the role_id of this ShowJobPermissionResult.
124
+
125
+ 角色ID
126
+
127
+ :return: The role_id of this ShowJobPermissionResult.
128
+ :rtype: int
129
+ """
130
+ return self._role_id
131
+
132
+ @role_id.setter
133
+ def role_id(self, role_id):
134
+ r"""Sets the role_id of this ShowJobPermissionResult.
135
+
136
+ 角色ID
137
+
138
+ :param role_id: The role_id of this ShowJobPermissionResult.
139
+ :type role_id: int
140
+ """
141
+ self._role_id = role_id
142
+
143
+ @property
144
+ def job_id(self):
145
+ r"""Gets the job_id of this ShowJobPermissionResult.
146
+
147
+ 任务ID
148
+
149
+ :return: The job_id of this ShowJobPermissionResult.
150
+ :rtype: str
151
+ """
152
+ return self._job_id
153
+
154
+ @job_id.setter
155
+ def job_id(self, job_id):
156
+ r"""Sets the job_id of this ShowJobPermissionResult.
157
+
158
+ 任务ID
159
+
160
+ :param job_id: The job_id of this ShowJobPermissionResult.
161
+ :type job_id: str
162
+ """
163
+ self._job_id = job_id
164
+
165
+ @property
166
+ def is_modify(self):
167
+ r"""Gets the is_modify of this ShowJobPermissionResult.
168
+
169
+ 是否有修改任务权限
170
+
171
+ :return: The is_modify of this ShowJobPermissionResult.
172
+ :rtype: bool
173
+ """
174
+ return self._is_modify
175
+
176
+ @is_modify.setter
177
+ def is_modify(self, is_modify):
178
+ r"""Sets the is_modify of this ShowJobPermissionResult.
179
+
180
+ 是否有修改任务权限
181
+
182
+ :param is_modify: The is_modify of this ShowJobPermissionResult.
183
+ :type is_modify: bool
184
+ """
185
+ self._is_modify = is_modify
186
+
187
+ @property
188
+ def is_delete(self):
189
+ r"""Gets the is_delete of this ShowJobPermissionResult.
190
+
191
+ 是否有删除任务权限
192
+
193
+ :return: The is_delete of this ShowJobPermissionResult.
194
+ :rtype: bool
195
+ """
196
+ return self._is_delete
197
+
198
+ @is_delete.setter
199
+ def is_delete(self, is_delete):
200
+ r"""Sets the is_delete of this ShowJobPermissionResult.
201
+
202
+ 是否有删除任务权限
203
+
204
+ :param is_delete: The is_delete of this ShowJobPermissionResult.
205
+ :type is_delete: bool
206
+ """
207
+ self._is_delete = is_delete
208
+
209
+ @property
210
+ def is_view(self):
211
+ r"""Gets the is_view of this ShowJobPermissionResult.
212
+
213
+ 是否有查看任务权限
214
+
215
+ :return: The is_view of this ShowJobPermissionResult.
216
+ :rtype: bool
217
+ """
218
+ return self._is_view
219
+
220
+ @is_view.setter
221
+ def is_view(self, is_view):
222
+ r"""Sets the is_view of this ShowJobPermissionResult.
223
+
224
+ 是否有查看任务权限
225
+
226
+ :param is_view: The is_view of this ShowJobPermissionResult.
227
+ :type is_view: bool
228
+ """
229
+ self._is_view = is_view
230
+
231
+ @property
232
+ def is_execute(self):
233
+ r"""Gets the is_execute of this ShowJobPermissionResult.
234
+
235
+ 是否有执行任务权限
236
+
237
+ :return: The is_execute of this ShowJobPermissionResult.
238
+ :rtype: bool
239
+ """
240
+ return self._is_execute
241
+
242
+ @is_execute.setter
243
+ def is_execute(self, is_execute):
244
+ r"""Sets the is_execute of this ShowJobPermissionResult.
245
+
246
+ 是否有执行任务权限
247
+
248
+ :param is_execute: The is_execute of this ShowJobPermissionResult.
249
+ :type is_execute: bool
250
+ """
251
+ self._is_execute = is_execute
252
+
253
+ @property
254
+ def is_copy(self):
255
+ r"""Gets the is_copy of this ShowJobPermissionResult.
256
+
257
+ 是否有复制任务权限
258
+
259
+ :return: The is_copy of this ShowJobPermissionResult.
260
+ :rtype: bool
261
+ """
262
+ return self._is_copy
263
+
264
+ @is_copy.setter
265
+ def is_copy(self, is_copy):
266
+ r"""Sets the is_copy of this ShowJobPermissionResult.
267
+
268
+ 是否有复制任务权限
269
+
270
+ :param is_copy: The is_copy of this ShowJobPermissionResult.
271
+ :type is_copy: bool
272
+ """
273
+ self._is_copy = is_copy
274
+
275
+ @property
276
+ def is_forbidden(self):
277
+ r"""Gets the is_forbidden of this ShowJobPermissionResult.
278
+
279
+ 是否有禁用任务权限
280
+
281
+ :return: The is_forbidden of this ShowJobPermissionResult.
282
+ :rtype: bool
283
+ """
284
+ return self._is_forbidden
285
+
286
+ @is_forbidden.setter
287
+ def is_forbidden(self, is_forbidden):
288
+ r"""Sets the is_forbidden of this ShowJobPermissionResult.
289
+
290
+ 是否有禁用任务权限
291
+
292
+ :param is_forbidden: The is_forbidden of this ShowJobPermissionResult.
293
+ :type is_forbidden: bool
294
+ """
295
+ self._is_forbidden = is_forbidden
296
+
297
+ @property
298
+ def is_manager(self):
299
+ r"""Gets the is_manager of this ShowJobPermissionResult.
300
+
301
+ 是否有管理任务权限
302
+
303
+ :return: The is_manager of this ShowJobPermissionResult.
304
+ :rtype: bool
305
+ """
306
+ return self._is_manager
307
+
308
+ @is_manager.setter
309
+ def is_manager(self, is_manager):
310
+ r"""Sets the is_manager of this ShowJobPermissionResult.
311
+
312
+ 是否有管理任务权限
313
+
314
+ :param is_manager: The is_manager of this ShowJobPermissionResult.
315
+ :type is_manager: bool
316
+ """
317
+ self._is_manager = is_manager
318
+
319
+ @property
320
+ def create_time(self):
321
+ r"""Gets the create_time of this ShowJobPermissionResult.
322
+
323
+ 任务创建时间
324
+
325
+ :return: The create_time of this ShowJobPermissionResult.
326
+ :rtype: str
327
+ """
328
+ return self._create_time
329
+
330
+ @create_time.setter
331
+ def create_time(self, create_time):
332
+ r"""Sets the create_time of this ShowJobPermissionResult.
333
+
334
+ 任务创建时间
335
+
336
+ :param create_time: The create_time of this ShowJobPermissionResult.
337
+ :type create_time: str
338
+ """
339
+ self._create_time = create_time
340
+
341
+ @property
342
+ def last_update_time(self):
343
+ r"""Gets the last_update_time of this ShowJobPermissionResult.
344
+
345
+ 任务最后修改时间
346
+
347
+ :return: The last_update_time of this ShowJobPermissionResult.
348
+ :rtype: str
349
+ """
350
+ return self._last_update_time
351
+
352
+ @last_update_time.setter
353
+ def last_update_time(self, last_update_time):
354
+ r"""Sets the last_update_time of this ShowJobPermissionResult.
355
+
356
+ 任务最后修改时间
357
+
358
+ :param last_update_time: The last_update_time of this ShowJobPermissionResult.
359
+ :type last_update_time: str
360
+ """
361
+ self._last_update_time = last_update_time
362
+
363
+ @property
364
+ def count(self):
365
+ r"""Gets the count of this ShowJobPermissionResult.
366
+
367
+ 次数
368
+
369
+ :return: The count of this ShowJobPermissionResult.
370
+ :rtype: int
371
+ """
372
+ return self._count
373
+
374
+ @count.setter
375
+ def count(self, count):
376
+ r"""Sets the count of this ShowJobPermissionResult.
377
+
378
+ 次数
379
+
380
+ :param count: The count of this ShowJobPermissionResult.
381
+ :type count: int
382
+ """
383
+ self._count = count
384
+
385
+ def to_dict(self):
386
+ """Returns the model properties as a dict"""
387
+ result = {}
388
+
389
+ for attr, _ in six.iteritems(self.openapi_types):
390
+ value = getattr(self, attr)
391
+ if isinstance(value, list):
392
+ result[attr] = list(map(
393
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
394
+ value
395
+ ))
396
+ elif hasattr(value, "to_dict"):
397
+ result[attr] = value.to_dict()
398
+ elif isinstance(value, dict):
399
+ result[attr] = dict(map(
400
+ lambda item: (item[0], item[1].to_dict())
401
+ if hasattr(item[1], "to_dict") else item,
402
+ value.items()
403
+ ))
404
+ else:
405
+ if attr in self.sensitive_list:
406
+ result[attr] = "****"
407
+ else:
408
+ result[attr] = value
409
+
410
+ return result
411
+
412
+ def to_str(self):
413
+ """Returns the string representation of the model"""
414
+ import simplejson as json
415
+ if six.PY2:
416
+ import sys
417
+ reload(sys)
418
+ sys.setdefaultencoding("utf-8")
419
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
420
+
421
+ def __repr__(self):
422
+ """For `print`"""
423
+ return self.to_str()
424
+
425
+ def __eq__(self, other):
426
+ """Returns true if both objects are equal"""
427
+ if not isinstance(other, ShowJobPermissionResult):
428
+ return False
429
+
430
+ return self.__dict__ == other.__dict__
431
+
432
+ def __ne__(self, other):
433
+ """Returns true if both objects are not equal"""
434
+ return not self == other
@@ -0,0 +1,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowProjectJobPermissionRequest:
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
+ 'project_id': 'str',
21
+ 'job_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'project_id': 'project_id',
26
+ 'job_id': 'job_id'
27
+ }
28
+
29
+ def __init__(self, project_id=None, job_id=None):
30
+ r"""ShowProjectJobPermissionRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param project_id: CodeArts项目ID,32位数字、小写字母组合。
35
+ :type project_id: str
36
+ :param job_id: 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
37
+ :type job_id: str
38
+ """
39
+
40
+
41
+
42
+ self._project_id = None
43
+ self._job_id = None
44
+ self.discriminator = None
45
+
46
+ self.project_id = project_id
47
+ self.job_id = job_id
48
+
49
+ @property
50
+ def project_id(self):
51
+ r"""Gets the project_id of this ShowProjectJobPermissionRequest.
52
+
53
+ CodeArts项目ID,32位数字、小写字母组合。
54
+
55
+ :return: The project_id of this ShowProjectJobPermissionRequest.
56
+ :rtype: str
57
+ """
58
+ return self._project_id
59
+
60
+ @project_id.setter
61
+ def project_id(self, project_id):
62
+ r"""Sets the project_id of this ShowProjectJobPermissionRequest.
63
+
64
+ CodeArts项目ID,32位数字、小写字母组合。
65
+
66
+ :param project_id: The project_id of this ShowProjectJobPermissionRequest.
67
+ :type project_id: str
68
+ """
69
+ self._project_id = project_id
70
+
71
+ @property
72
+ def job_id(self):
73
+ r"""Gets the job_id of this ShowProjectJobPermissionRequest.
74
+
75
+ 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
76
+
77
+ :return: The job_id of this ShowProjectJobPermissionRequest.
78
+ :rtype: str
79
+ """
80
+ return self._job_id
81
+
82
+ @job_id.setter
83
+ def job_id(self, job_id):
84
+ r"""Sets the job_id of this ShowProjectJobPermissionRequest.
85
+
86
+ 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
87
+
88
+ :param job_id: The job_id of this ShowProjectJobPermissionRequest.
89
+ :type job_id: str
90
+ """
91
+ self._job_id = job_id
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, ShowProjectJobPermissionRequest):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other
@@ -0,0 +1,141 @@
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 ShowProjectJobPermissionResponse(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
+ 'result': 'ShowJobPermissionResult',
22
+ 'status': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'result': 'result',
27
+ 'status': 'status'
28
+ }
29
+
30
+ def __init__(self, result=None, status=None):
31
+ r"""ShowProjectJobPermissionResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param result:
36
+ :type result: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobPermissionResult`
37
+ :param status: 返回状态信息
38
+ :type status: str
39
+ """
40
+
41
+ super(ShowProjectJobPermissionResponse, self).__init__()
42
+
43
+ self._result = None
44
+ self._status = None
45
+ self.discriminator = None
46
+
47
+ if result is not None:
48
+ self.result = result
49
+ if status is not None:
50
+ self.status = status
51
+
52
+ @property
53
+ def result(self):
54
+ r"""Gets the result of this ShowProjectJobPermissionResponse.
55
+
56
+ :return: The result of this ShowProjectJobPermissionResponse.
57
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobPermissionResult`
58
+ """
59
+ return self._result
60
+
61
+ @result.setter
62
+ def result(self, result):
63
+ r"""Sets the result of this ShowProjectJobPermissionResponse.
64
+
65
+ :param result: The result of this ShowProjectJobPermissionResponse.
66
+ :type result: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobPermissionResult`
67
+ """
68
+ self._result = result
69
+
70
+ @property
71
+ def status(self):
72
+ r"""Gets the status of this ShowProjectJobPermissionResponse.
73
+
74
+ 返回状态信息
75
+
76
+ :return: The status of this ShowProjectJobPermissionResponse.
77
+ :rtype: str
78
+ """
79
+ return self._status
80
+
81
+ @status.setter
82
+ def status(self, status):
83
+ r"""Sets the status of this ShowProjectJobPermissionResponse.
84
+
85
+ 返回状态信息
86
+
87
+ :param status: The status of this ShowProjectJobPermissionResponse.
88
+ :type status: str
89
+ """
90
+ self._status = status
91
+
92
+ def to_dict(self):
93
+ """Returns the model properties as a dict"""
94
+ result = {}
95
+
96
+ for attr, _ in six.iteritems(self.openapi_types):
97
+ value = getattr(self, attr)
98
+ if isinstance(value, list):
99
+ result[attr] = list(map(
100
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
101
+ value
102
+ ))
103
+ elif hasattr(value, "to_dict"):
104
+ result[attr] = value.to_dict()
105
+ elif isinstance(value, dict):
106
+ result[attr] = dict(map(
107
+ lambda item: (item[0], item[1].to_dict())
108
+ if hasattr(item[1], "to_dict") else item,
109
+ value.items()
110
+ ))
111
+ else:
112
+ if attr in self.sensitive_list:
113
+ result[attr] = "****"
114
+ else:
115
+ result[attr] = value
116
+
117
+ return result
118
+
119
+ def to_str(self):
120
+ """Returns the string representation of the model"""
121
+ import simplejson as json
122
+ if six.PY2:
123
+ import sys
124
+ reload(sys)
125
+ sys.setdefaultencoding("utf-8")
126
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
127
+
128
+ def __repr__(self):
129
+ """For `print`"""
130
+ return self.to_str()
131
+
132
+ def __eq__(self, other):
133
+ """Returns true if both objects are equal"""
134
+ if not isinstance(other, ShowProjectJobPermissionResponse):
135
+ return False
136
+
137
+ return self.__dict__ == other.__dict__
138
+
139
+ def __ne__(self, other):
140
+ """Returns true if both objects are not equal"""
141
+ return not self == other