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,550 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BriefRecordItems:
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': 'str',
21
+ 'status': 'str',
22
+ 'duration': 'int',
23
+ 'create_time': 'str',
24
+ 'schedule_time': 'str',
25
+ 'queued_time': 'str',
26
+ 'start_time': 'str',
27
+ 'finish_time': 'str',
28
+ 'build_duration': 'int',
29
+ 'pending_duration': 'int',
30
+ 'project_id': 'str',
31
+ 'build_no': 'int',
32
+ 'branch': 'str',
33
+ 'revision': 'str',
34
+ 'trigger_name': 'str',
35
+ 'daily_build_number': 'str'
36
+ }
37
+
38
+ attribute_map = {
39
+ 'id': 'id',
40
+ 'status': 'status',
41
+ 'duration': 'duration',
42
+ 'create_time': 'create_time',
43
+ 'schedule_time': 'schedule_time',
44
+ 'queued_time': 'queued_time',
45
+ 'start_time': 'start_time',
46
+ 'finish_time': 'finish_time',
47
+ 'build_duration': 'build_duration',
48
+ 'pending_duration': 'pending_duration',
49
+ 'project_id': 'project_id',
50
+ 'build_no': 'build_no',
51
+ 'branch': 'branch',
52
+ 'revision': 'revision',
53
+ 'trigger_name': 'trigger_name',
54
+ 'daily_build_number': 'daily_build_number'
55
+ }
56
+
57
+ def __init__(self, id=None, status=None, duration=None, create_time=None, schedule_time=None, queued_time=None, start_time=None, finish_time=None, build_duration=None, pending_duration=None, project_id=None, build_no=None, branch=None, revision=None, trigger_name=None, daily_build_number=None):
58
+ r"""BriefRecordItems
59
+
60
+ The model defined in huaweicloud sdk
61
+
62
+ :param id: 构建任务的ID
63
+ :type id: str
64
+ :param status: 状态
65
+ :type status: str
66
+ :param duration: 构建时长
67
+ :type duration: int
68
+ :param create_time: 创建时间
69
+ :type create_time: str
70
+ :param schedule_time: 构建下发时间
71
+ :type schedule_time: str
72
+ :param queued_time: 构建排队耗时
73
+ :type queued_time: str
74
+ :param start_time: 开始时间
75
+ :type start_time: str
76
+ :param finish_time: 结束时间
77
+ :type finish_time: str
78
+ :param build_duration: 子任务构建耗时
79
+ :type build_duration: int
80
+ :param pending_duration: 等待时间
81
+ :type pending_duration: int
82
+ :param project_id: 所属的项目ID
83
+ :type project_id: str
84
+ :param build_no: 构建任务的构建编号,从1开始,每次构建递增1
85
+ :type build_no: int
86
+ :param branch: 代码分支
87
+ :type branch: str
88
+ :param revision: commitId
89
+ :type revision: str
90
+ :param trigger_name: 触发者名称
91
+ :type trigger_name: str
92
+ :param daily_build_number: 构建编号,每日从1开始
93
+ :type daily_build_number: str
94
+ """
95
+
96
+
97
+
98
+ self._id = None
99
+ self._status = None
100
+ self._duration = None
101
+ self._create_time = None
102
+ self._schedule_time = None
103
+ self._queued_time = None
104
+ self._start_time = None
105
+ self._finish_time = None
106
+ self._build_duration = None
107
+ self._pending_duration = None
108
+ self._project_id = None
109
+ self._build_no = None
110
+ self._branch = None
111
+ self._revision = None
112
+ self._trigger_name = None
113
+ self._daily_build_number = None
114
+ self.discriminator = None
115
+
116
+ if id is not None:
117
+ self.id = id
118
+ if status is not None:
119
+ self.status = status
120
+ if duration is not None:
121
+ self.duration = duration
122
+ if create_time is not None:
123
+ self.create_time = create_time
124
+ if schedule_time is not None:
125
+ self.schedule_time = schedule_time
126
+ if queued_time is not None:
127
+ self.queued_time = queued_time
128
+ if start_time is not None:
129
+ self.start_time = start_time
130
+ if finish_time is not None:
131
+ self.finish_time = finish_time
132
+ if build_duration is not None:
133
+ self.build_duration = build_duration
134
+ if pending_duration is not None:
135
+ self.pending_duration = pending_duration
136
+ if project_id is not None:
137
+ self.project_id = project_id
138
+ if build_no is not None:
139
+ self.build_no = build_no
140
+ if branch is not None:
141
+ self.branch = branch
142
+ if revision is not None:
143
+ self.revision = revision
144
+ if trigger_name is not None:
145
+ self.trigger_name = trigger_name
146
+ if daily_build_number is not None:
147
+ self.daily_build_number = daily_build_number
148
+
149
+ @property
150
+ def id(self):
151
+ r"""Gets the id of this BriefRecordItems.
152
+
153
+ 构建任务的ID
154
+
155
+ :return: The id of this BriefRecordItems.
156
+ :rtype: str
157
+ """
158
+ return self._id
159
+
160
+ @id.setter
161
+ def id(self, id):
162
+ r"""Sets the id of this BriefRecordItems.
163
+
164
+ 构建任务的ID
165
+
166
+ :param id: The id of this BriefRecordItems.
167
+ :type id: str
168
+ """
169
+ self._id = id
170
+
171
+ @property
172
+ def status(self):
173
+ r"""Gets the status of this BriefRecordItems.
174
+
175
+ 状态
176
+
177
+ :return: The status of this BriefRecordItems.
178
+ :rtype: str
179
+ """
180
+ return self._status
181
+
182
+ @status.setter
183
+ def status(self, status):
184
+ r"""Sets the status of this BriefRecordItems.
185
+
186
+ 状态
187
+
188
+ :param status: The status of this BriefRecordItems.
189
+ :type status: str
190
+ """
191
+ self._status = status
192
+
193
+ @property
194
+ def duration(self):
195
+ r"""Gets the duration of this BriefRecordItems.
196
+
197
+ 构建时长
198
+
199
+ :return: The duration of this BriefRecordItems.
200
+ :rtype: int
201
+ """
202
+ return self._duration
203
+
204
+ @duration.setter
205
+ def duration(self, duration):
206
+ r"""Sets the duration of this BriefRecordItems.
207
+
208
+ 构建时长
209
+
210
+ :param duration: The duration of this BriefRecordItems.
211
+ :type duration: int
212
+ """
213
+ self._duration = duration
214
+
215
+ @property
216
+ def create_time(self):
217
+ r"""Gets the create_time of this BriefRecordItems.
218
+
219
+ 创建时间
220
+
221
+ :return: The create_time of this BriefRecordItems.
222
+ :rtype: str
223
+ """
224
+ return self._create_time
225
+
226
+ @create_time.setter
227
+ def create_time(self, create_time):
228
+ r"""Sets the create_time of this BriefRecordItems.
229
+
230
+ 创建时间
231
+
232
+ :param create_time: The create_time of this BriefRecordItems.
233
+ :type create_time: str
234
+ """
235
+ self._create_time = create_time
236
+
237
+ @property
238
+ def schedule_time(self):
239
+ r"""Gets the schedule_time of this BriefRecordItems.
240
+
241
+ 构建下发时间
242
+
243
+ :return: The schedule_time of this BriefRecordItems.
244
+ :rtype: str
245
+ """
246
+ return self._schedule_time
247
+
248
+ @schedule_time.setter
249
+ def schedule_time(self, schedule_time):
250
+ r"""Sets the schedule_time of this BriefRecordItems.
251
+
252
+ 构建下发时间
253
+
254
+ :param schedule_time: The schedule_time of this BriefRecordItems.
255
+ :type schedule_time: str
256
+ """
257
+ self._schedule_time = schedule_time
258
+
259
+ @property
260
+ def queued_time(self):
261
+ r"""Gets the queued_time of this BriefRecordItems.
262
+
263
+ 构建排队耗时
264
+
265
+ :return: The queued_time of this BriefRecordItems.
266
+ :rtype: str
267
+ """
268
+ return self._queued_time
269
+
270
+ @queued_time.setter
271
+ def queued_time(self, queued_time):
272
+ r"""Sets the queued_time of this BriefRecordItems.
273
+
274
+ 构建排队耗时
275
+
276
+ :param queued_time: The queued_time of this BriefRecordItems.
277
+ :type queued_time: str
278
+ """
279
+ self._queued_time = queued_time
280
+
281
+ @property
282
+ def start_time(self):
283
+ r"""Gets the start_time of this BriefRecordItems.
284
+
285
+ 开始时间
286
+
287
+ :return: The start_time of this BriefRecordItems.
288
+ :rtype: str
289
+ """
290
+ return self._start_time
291
+
292
+ @start_time.setter
293
+ def start_time(self, start_time):
294
+ r"""Sets the start_time of this BriefRecordItems.
295
+
296
+ 开始时间
297
+
298
+ :param start_time: The start_time of this BriefRecordItems.
299
+ :type start_time: str
300
+ """
301
+ self._start_time = start_time
302
+
303
+ @property
304
+ def finish_time(self):
305
+ r"""Gets the finish_time of this BriefRecordItems.
306
+
307
+ 结束时间
308
+
309
+ :return: The finish_time of this BriefRecordItems.
310
+ :rtype: str
311
+ """
312
+ return self._finish_time
313
+
314
+ @finish_time.setter
315
+ def finish_time(self, finish_time):
316
+ r"""Sets the finish_time of this BriefRecordItems.
317
+
318
+ 结束时间
319
+
320
+ :param finish_time: The finish_time of this BriefRecordItems.
321
+ :type finish_time: str
322
+ """
323
+ self._finish_time = finish_time
324
+
325
+ @property
326
+ def build_duration(self):
327
+ r"""Gets the build_duration of this BriefRecordItems.
328
+
329
+ 子任务构建耗时
330
+
331
+ :return: The build_duration of this BriefRecordItems.
332
+ :rtype: int
333
+ """
334
+ return self._build_duration
335
+
336
+ @build_duration.setter
337
+ def build_duration(self, build_duration):
338
+ r"""Sets the build_duration of this BriefRecordItems.
339
+
340
+ 子任务构建耗时
341
+
342
+ :param build_duration: The build_duration of this BriefRecordItems.
343
+ :type build_duration: int
344
+ """
345
+ self._build_duration = build_duration
346
+
347
+ @property
348
+ def pending_duration(self):
349
+ r"""Gets the pending_duration of this BriefRecordItems.
350
+
351
+ 等待时间
352
+
353
+ :return: The pending_duration of this BriefRecordItems.
354
+ :rtype: int
355
+ """
356
+ return self._pending_duration
357
+
358
+ @pending_duration.setter
359
+ def pending_duration(self, pending_duration):
360
+ r"""Sets the pending_duration of this BriefRecordItems.
361
+
362
+ 等待时间
363
+
364
+ :param pending_duration: The pending_duration of this BriefRecordItems.
365
+ :type pending_duration: int
366
+ """
367
+ self._pending_duration = pending_duration
368
+
369
+ @property
370
+ def project_id(self):
371
+ r"""Gets the project_id of this BriefRecordItems.
372
+
373
+ 所属的项目ID
374
+
375
+ :return: The project_id of this BriefRecordItems.
376
+ :rtype: str
377
+ """
378
+ return self._project_id
379
+
380
+ @project_id.setter
381
+ def project_id(self, project_id):
382
+ r"""Sets the project_id of this BriefRecordItems.
383
+
384
+ 所属的项目ID
385
+
386
+ :param project_id: The project_id of this BriefRecordItems.
387
+ :type project_id: str
388
+ """
389
+ self._project_id = project_id
390
+
391
+ @property
392
+ def build_no(self):
393
+ r"""Gets the build_no of this BriefRecordItems.
394
+
395
+ 构建任务的构建编号,从1开始,每次构建递增1
396
+
397
+ :return: The build_no of this BriefRecordItems.
398
+ :rtype: int
399
+ """
400
+ return self._build_no
401
+
402
+ @build_no.setter
403
+ def build_no(self, build_no):
404
+ r"""Sets the build_no of this BriefRecordItems.
405
+
406
+ 构建任务的构建编号,从1开始,每次构建递增1
407
+
408
+ :param build_no: The build_no of this BriefRecordItems.
409
+ :type build_no: int
410
+ """
411
+ self._build_no = build_no
412
+
413
+ @property
414
+ def branch(self):
415
+ r"""Gets the branch of this BriefRecordItems.
416
+
417
+ 代码分支
418
+
419
+ :return: The branch of this BriefRecordItems.
420
+ :rtype: str
421
+ """
422
+ return self._branch
423
+
424
+ @branch.setter
425
+ def branch(self, branch):
426
+ r"""Sets the branch of this BriefRecordItems.
427
+
428
+ 代码分支
429
+
430
+ :param branch: The branch of this BriefRecordItems.
431
+ :type branch: str
432
+ """
433
+ self._branch = branch
434
+
435
+ @property
436
+ def revision(self):
437
+ r"""Gets the revision of this BriefRecordItems.
438
+
439
+ commitId
440
+
441
+ :return: The revision of this BriefRecordItems.
442
+ :rtype: str
443
+ """
444
+ return self._revision
445
+
446
+ @revision.setter
447
+ def revision(self, revision):
448
+ r"""Sets the revision of this BriefRecordItems.
449
+
450
+ commitId
451
+
452
+ :param revision: The revision of this BriefRecordItems.
453
+ :type revision: str
454
+ """
455
+ self._revision = revision
456
+
457
+ @property
458
+ def trigger_name(self):
459
+ r"""Gets the trigger_name of this BriefRecordItems.
460
+
461
+ 触发者名称
462
+
463
+ :return: The trigger_name of this BriefRecordItems.
464
+ :rtype: str
465
+ """
466
+ return self._trigger_name
467
+
468
+ @trigger_name.setter
469
+ def trigger_name(self, trigger_name):
470
+ r"""Sets the trigger_name of this BriefRecordItems.
471
+
472
+ 触发者名称
473
+
474
+ :param trigger_name: The trigger_name of this BriefRecordItems.
475
+ :type trigger_name: str
476
+ """
477
+ self._trigger_name = trigger_name
478
+
479
+ @property
480
+ def daily_build_number(self):
481
+ r"""Gets the daily_build_number of this BriefRecordItems.
482
+
483
+ 构建编号,每日从1开始
484
+
485
+ :return: The daily_build_number of this BriefRecordItems.
486
+ :rtype: str
487
+ """
488
+ return self._daily_build_number
489
+
490
+ @daily_build_number.setter
491
+ def daily_build_number(self, daily_build_number):
492
+ r"""Sets the daily_build_number of this BriefRecordItems.
493
+
494
+ 构建编号,每日从1开始
495
+
496
+ :param daily_build_number: The daily_build_number of this BriefRecordItems.
497
+ :type daily_build_number: str
498
+ """
499
+ self._daily_build_number = daily_build_number
500
+
501
+ def to_dict(self):
502
+ """Returns the model properties as a dict"""
503
+ result = {}
504
+
505
+ for attr, _ in six.iteritems(self.openapi_types):
506
+ value = getattr(self, attr)
507
+ if isinstance(value, list):
508
+ result[attr] = list(map(
509
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
510
+ value
511
+ ))
512
+ elif hasattr(value, "to_dict"):
513
+ result[attr] = value.to_dict()
514
+ elif isinstance(value, dict):
515
+ result[attr] = dict(map(
516
+ lambda item: (item[0], item[1].to_dict())
517
+ if hasattr(item[1], "to_dict") else item,
518
+ value.items()
519
+ ))
520
+ else:
521
+ if attr in self.sensitive_list:
522
+ result[attr] = "****"
523
+ else:
524
+ result[attr] = value
525
+
526
+ return result
527
+
528
+ def to_str(self):
529
+ """Returns the string representation of the model"""
530
+ import simplejson as json
531
+ if six.PY2:
532
+ import sys
533
+ reload(sys)
534
+ sys.setdefaultencoding("utf-8")
535
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
536
+
537
+ def __repr__(self):
538
+ """For `print`"""
539
+ return self.to_str()
540
+
541
+ def __eq__(self, other):
542
+ """Returns true if both objects are equal"""
543
+ if not isinstance(other, BriefRecordItems):
544
+ return False
545
+
546
+ return self.__dict__ == other.__dict__
547
+
548
+ def __ne__(self, other):
549
+ """Returns true if both objects are not equal"""
550
+ return not self == other
@@ -0,0 +1,111 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CheckWebhookUrlRequest:
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
+ 'body': 'CheckWebhookUrlRequestBody'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'body': 'body'
25
+ }
26
+
27
+ def __init__(self, body=None):
28
+ r"""CheckWebhookUrlRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param body: Body of the CheckWebhookUrlRequest
33
+ :type body: :class:`huaweicloudsdkcodeartsbuild.v3.CheckWebhookUrlRequestBody`
34
+ """
35
+
36
+
37
+
38
+ self._body = None
39
+ self.discriminator = None
40
+
41
+ if body is not None:
42
+ self.body = body
43
+
44
+ @property
45
+ def body(self):
46
+ r"""Gets the body of this CheckWebhookUrlRequest.
47
+
48
+ :return: The body of this CheckWebhookUrlRequest.
49
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckWebhookUrlRequestBody`
50
+ """
51
+ return self._body
52
+
53
+ @body.setter
54
+ def body(self, body):
55
+ r"""Sets the body of this CheckWebhookUrlRequest.
56
+
57
+ :param body: The body of this CheckWebhookUrlRequest.
58
+ :type body: :class:`huaweicloudsdkcodeartsbuild.v3.CheckWebhookUrlRequestBody`
59
+ """
60
+ self._body = body
61
+
62
+ def to_dict(self):
63
+ """Returns the model properties as a dict"""
64
+ result = {}
65
+
66
+ for attr, _ in six.iteritems(self.openapi_types):
67
+ value = getattr(self, attr)
68
+ if isinstance(value, list):
69
+ result[attr] = list(map(
70
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
71
+ value
72
+ ))
73
+ elif hasattr(value, "to_dict"):
74
+ result[attr] = value.to_dict()
75
+ elif isinstance(value, dict):
76
+ result[attr] = dict(map(
77
+ lambda item: (item[0], item[1].to_dict())
78
+ if hasattr(item[1], "to_dict") else item,
79
+ value.items()
80
+ ))
81
+ else:
82
+ if attr in self.sensitive_list:
83
+ result[attr] = "****"
84
+ else:
85
+ result[attr] = value
86
+
87
+ return result
88
+
89
+ def to_str(self):
90
+ """Returns the string representation of the model"""
91
+ import simplejson as json
92
+ if six.PY2:
93
+ import sys
94
+ reload(sys)
95
+ sys.setdefaultencoding("utf-8")
96
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
97
+
98
+ def __repr__(self):
99
+ """For `print`"""
100
+ return self.to_str()
101
+
102
+ def __eq__(self, other):
103
+ """Returns true if both objects are equal"""
104
+ if not isinstance(other, CheckWebhookUrlRequest):
105
+ return False
106
+
107
+ return self.__dict__ == other.__dict__
108
+
109
+ def __ne__(self, other):
110
+ """Returns true if both objects are not equal"""
111
+ return not self == other