huaweicloudsdkcodeartsbuild 3.1.152__py2.py3-none-any.whl → 3.1.153__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 (55) hide show
  1. huaweicloudsdkcodeartsbuild/v3/__init__.py +42 -1
  2. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1095 -118
  3. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1095 -118
  4. huaweicloudsdkcodeartsbuild/v3/model/__init__.py +42 -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/delete_build_job_response.py +4 -4
  18. huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_permission_request.py +114 -0
  19. huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_permission_response.py +174 -0
  20. huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_request.py +114 -0
  21. huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_response.py +174 -0
  22. huaweicloudsdkcodeartsbuild/v3/model/delete_recycling_jobs_request.py +111 -0
  23. huaweicloudsdkcodeartsbuild/v3/model/delete_recycling_jobs_response.py +116 -0
  24. huaweicloudsdkcodeartsbuild/v3/model/delete_template_request.py +114 -0
  25. huaweicloudsdkcodeartsbuild/v3/model/delete_template_response.py +116 -0
  26. huaweicloudsdkcodeartsbuild/v3/model/delete_the_job_request.py +114 -0
  27. huaweicloudsdkcodeartsbuild/v3/model/delete_the_job_response.py +170 -0
  28. huaweicloudsdkcodeartsbuild/v3/model/{delete_build_job_response_body_result.py → delete_the_job_response_body_result.py} +11 -11
  29. huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_request.py +139 -0
  30. huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_request_body.py +143 -0
  31. huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_response.py +116 -0
  32. huaweicloudsdkcodeartsbuild/v3/model/execute_job_request.py +111 -0
  33. huaweicloudsdkcodeartsbuild/v3/model/execute_job_response.py +174 -0
  34. huaweicloudsdkcodeartsbuild/v3/model/job.py +264 -3
  35. huaweicloudsdkcodeartsbuild/v3/model/jobs_request_body.py +114 -0
  36. huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_request.py +143 -0
  37. huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_response.py +174 -0
  38. huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_response_body_result.py +144 -0
  39. huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_request.py +111 -0
  40. huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_request_body.py +173 -0
  41. huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_response.py +170 -0
  42. huaweicloudsdkcodeartsbuild/v3/model/restore_recycling_jobs_request.py +111 -0
  43. huaweicloudsdkcodeartsbuild/v3/model/restore_recycling_jobs_response.py +145 -0
  44. huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_request.py +111 -0
  45. huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_request_body.py +114 -0
  46. huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_response.py +170 -0
  47. huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_result.py +115 -0
  48. huaweicloudsdkcodeartsbuild/v3/model/trigger.py +142 -0
  49. huaweicloudsdkcodeartsbuild/v3/model/update_new_job_request.py +111 -0
  50. huaweicloudsdkcodeartsbuild/v3/model/update_new_job_response.py +170 -0
  51. {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/METADATA +2 -2
  52. {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/RECORD +55 -14
  53. {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/LICENSE +0 -0
  54. {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/WHEEL +0 -0
  55. {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/top_level.txt +0 -0
@@ -23,10 +23,14 @@ class CreateBuildJobRequestBody:
23
23
  'auto_update_sub_module': 'str',
24
24
  'flavor': 'str',
25
25
  'parameters': 'list[CreateBuildJobParameter]',
26
+ 'group_id': 'str',
27
+ 'timeout': 'CreateBuildTimeout',
26
28
  'scms': 'list[CreateBuildJobScm]',
27
29
  'steps': 'list[CreateBuildJobSteps]',
28
30
  'host_type': 'str',
29
- 'build_config_type': 'str'
31
+ 'build_config_type': 'str',
32
+ 'build_if_code_updated': 'bool',
33
+ 'triggers': 'list[Trigger]'
30
34
  }
31
35
 
32
36
  attribute_map = {
@@ -36,13 +40,17 @@ class CreateBuildJobRequestBody:
36
40
  'auto_update_sub_module': 'auto_update_sub_module',
37
41
  'flavor': 'flavor',
38
42
  'parameters': 'parameters',
43
+ 'group_id': 'group_id',
44
+ 'timeout': 'timeout',
39
45
  'scms': 'scms',
40
46
  'steps': 'steps',
41
47
  'host_type': 'host_type',
42
- 'build_config_type': 'build_config_type'
48
+ 'build_config_type': 'build_config_type',
49
+ 'build_if_code_updated': 'build_if_code_updated',
50
+ 'triggers': 'triggers'
43
51
  }
44
52
 
45
- def __init__(self, arch=None, project_id=None, job_name=None, auto_update_sub_module=None, flavor=None, parameters=None, scms=None, steps=None, host_type=None, build_config_type=None):
53
+ def __init__(self, arch=None, project_id=None, job_name=None, auto_update_sub_module=None, flavor=None, parameters=None, group_id=None, timeout=None, scms=None, steps=None, host_type=None, build_config_type=None, build_if_code_updated=None, triggers=None):
46
54
  r"""CreateBuildJobRequestBody
47
55
 
48
56
  The model defined in huaweicloud sdk
@@ -59,6 +67,10 @@ class CreateBuildJobRequestBody:
59
67
  :type flavor: str
60
68
  :param parameters: 构建执行参数列表
61
69
  :type parameters: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobParameter`]
70
+ :param group_id: 任务分组id
71
+ :type group_id: str
72
+ :param timeout:
73
+ :type timeout: :class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildTimeout`
62
74
  :param scms: 构建执行SCM
63
75
  :type scms: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobScm`]
64
76
  :param steps: 构建执行的步骤
@@ -67,6 +79,10 @@ class CreateBuildJobRequestBody:
67
79
  :type host_type: str
68
80
  :param build_config_type: 构建的配置类型
69
81
  :type build_config_type: str
82
+ :param build_if_code_updated: 提交代码触发构建开关
83
+ :type build_if_code_updated: bool
84
+ :param triggers: 定时任务触发器集合
85
+ :type triggers: list[:class:`huaweicloudsdkcodeartsbuild.v3.Trigger`]
70
86
  """
71
87
 
72
88
 
@@ -77,10 +93,14 @@ class CreateBuildJobRequestBody:
77
93
  self._auto_update_sub_module = None
78
94
  self._flavor = None
79
95
  self._parameters = None
96
+ self._group_id = None
97
+ self._timeout = None
80
98
  self._scms = None
81
99
  self._steps = None
82
100
  self._host_type = None
83
101
  self._build_config_type = None
102
+ self._build_if_code_updated = None
103
+ self._triggers = None
84
104
  self.discriminator = None
85
105
 
86
106
  self.arch = arch
@@ -92,6 +112,10 @@ class CreateBuildJobRequestBody:
92
112
  self.flavor = flavor
93
113
  if parameters is not None:
94
114
  self.parameters = parameters
115
+ if group_id is not None:
116
+ self.group_id = group_id
117
+ if timeout is not None:
118
+ self.timeout = timeout
95
119
  if scms is not None:
96
120
  self.scms = scms
97
121
  self.steps = steps
@@ -99,6 +123,10 @@ class CreateBuildJobRequestBody:
99
123
  self.host_type = host_type
100
124
  if build_config_type is not None:
101
125
  self.build_config_type = build_config_type
126
+ if build_if_code_updated is not None:
127
+ self.build_if_code_updated = build_if_code_updated
128
+ if triggers is not None:
129
+ self.triggers = triggers
102
130
 
103
131
  @property
104
132
  def arch(self):
@@ -232,6 +260,46 @@ class CreateBuildJobRequestBody:
232
260
  """
233
261
  self._parameters = parameters
234
262
 
263
+ @property
264
+ def group_id(self):
265
+ r"""Gets the group_id of this CreateBuildJobRequestBody.
266
+
267
+ 任务分组id
268
+
269
+ :return: The group_id of this CreateBuildJobRequestBody.
270
+ :rtype: str
271
+ """
272
+ return self._group_id
273
+
274
+ @group_id.setter
275
+ def group_id(self, group_id):
276
+ r"""Sets the group_id of this CreateBuildJobRequestBody.
277
+
278
+ 任务分组id
279
+
280
+ :param group_id: The group_id of this CreateBuildJobRequestBody.
281
+ :type group_id: str
282
+ """
283
+ self._group_id = group_id
284
+
285
+ @property
286
+ def timeout(self):
287
+ r"""Gets the timeout of this CreateBuildJobRequestBody.
288
+
289
+ :return: The timeout of this CreateBuildJobRequestBody.
290
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildTimeout`
291
+ """
292
+ return self._timeout
293
+
294
+ @timeout.setter
295
+ def timeout(self, timeout):
296
+ r"""Sets the timeout of this CreateBuildJobRequestBody.
297
+
298
+ :param timeout: The timeout of this CreateBuildJobRequestBody.
299
+ :type timeout: :class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildTimeout`
300
+ """
301
+ self._timeout = timeout
302
+
235
303
  @property
236
304
  def scms(self):
237
305
  r"""Gets the scms of this CreateBuildJobRequestBody.
@@ -320,6 +388,50 @@ class CreateBuildJobRequestBody:
320
388
  """
321
389
  self._build_config_type = build_config_type
322
390
 
391
+ @property
392
+ def build_if_code_updated(self):
393
+ r"""Gets the build_if_code_updated of this CreateBuildJobRequestBody.
394
+
395
+ 提交代码触发构建开关
396
+
397
+ :return: The build_if_code_updated of this CreateBuildJobRequestBody.
398
+ :rtype: bool
399
+ """
400
+ return self._build_if_code_updated
401
+
402
+ @build_if_code_updated.setter
403
+ def build_if_code_updated(self, build_if_code_updated):
404
+ r"""Sets the build_if_code_updated of this CreateBuildJobRequestBody.
405
+
406
+ 提交代码触发构建开关
407
+
408
+ :param build_if_code_updated: The build_if_code_updated of this CreateBuildJobRequestBody.
409
+ :type build_if_code_updated: bool
410
+ """
411
+ self._build_if_code_updated = build_if_code_updated
412
+
413
+ @property
414
+ def triggers(self):
415
+ r"""Gets the triggers of this CreateBuildJobRequestBody.
416
+
417
+ 定时任务触发器集合
418
+
419
+ :return: The triggers of this CreateBuildJobRequestBody.
420
+ :rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.Trigger`]
421
+ """
422
+ return self._triggers
423
+
424
+ @triggers.setter
425
+ def triggers(self, triggers):
426
+ r"""Sets the triggers of this CreateBuildJobRequestBody.
427
+
428
+ 定时任务触发器集合
429
+
430
+ :param triggers: The triggers of this CreateBuildJobRequestBody.
431
+ :type triggers: list[:class:`huaweicloudsdkcodeartsbuild.v3.Trigger`]
432
+ """
433
+ self._triggers = triggers
434
+
323
435
  def to_dict(self):
324
436
  """Returns the model properties as a dict"""
325
437
  result = {}
@@ -23,10 +23,13 @@ class CreateBuildJobScm:
23
23
  'web_url': 'str',
24
24
  'scm_type': 'str',
25
25
  'is_auto_build': 'bool',
26
+ 'enable_git_lfs': 'bool',
26
27
  'build_type': 'str',
27
28
  'depth': 'str',
28
29
  'end_point_id': 'str',
29
- 'source': 'str'
30
+ 'source': 'str',
31
+ 'group_name': 'str',
32
+ 'repo_name': 'str'
30
33
  }
31
34
 
32
35
  attribute_map = {
@@ -36,13 +39,16 @@ class CreateBuildJobScm:
36
39
  'web_url': 'web_url',
37
40
  'scm_type': 'scm_type',
38
41
  'is_auto_build': 'is_auto_build',
42
+ 'enable_git_lfs': 'enable_git_lfs',
39
43
  'build_type': 'build_type',
40
44
  'depth': 'depth',
41
45
  'end_point_id': 'end_point_id',
42
- 'source': 'source'
46
+ 'source': 'source',
47
+ 'group_name': 'group_name',
48
+ 'repo_name': 'repo_name'
43
49
  }
44
50
 
45
- def __init__(self, branch=None, url=None, repo_id=None, web_url=None, scm_type=None, is_auto_build=None, build_type=None, depth=None, end_point_id=None, source=None):
51
+ def __init__(self, branch=None, url=None, repo_id=None, web_url=None, scm_type=None, is_auto_build=None, enable_git_lfs=None, build_type=None, depth=None, end_point_id=None, source=None, group_name=None, repo_name=None):
46
52
  r"""CreateBuildJobScm
47
53
 
48
54
  The model defined in huaweicloud sdk
@@ -59,6 +65,8 @@ class CreateBuildJobScm:
59
65
  :type scm_type: str
60
66
  :param is_auto_build: 是否自动构建
61
67
  :type is_auto_build: bool
68
+ :param enable_git_lfs: 是否启用gitlfs
69
+ :type enable_git_lfs: bool
62
70
  :param build_type: 构建类别
63
71
  :type build_type: str
64
72
  :param depth: 克隆深度
@@ -67,6 +75,10 @@ class CreateBuildJobScm:
67
75
  :type end_point_id: str
68
76
  :param source: source
69
77
  :type source: str
78
+ :param group_name: 仓库分组
79
+ :type group_name: str
80
+ :param repo_name: 仓库名称
81
+ :type repo_name: str
70
82
  """
71
83
 
72
84
 
@@ -77,10 +89,13 @@ class CreateBuildJobScm:
77
89
  self._web_url = None
78
90
  self._scm_type = None
79
91
  self._is_auto_build = None
92
+ self._enable_git_lfs = None
80
93
  self._build_type = None
81
94
  self._depth = None
82
95
  self._end_point_id = None
83
96
  self._source = None
97
+ self._group_name = None
98
+ self._repo_name = None
84
99
  self.discriminator = None
85
100
 
86
101
  if branch is not None:
@@ -93,6 +108,8 @@ class CreateBuildJobScm:
93
108
  self.scm_type = scm_type
94
109
  if is_auto_build is not None:
95
110
  self.is_auto_build = is_auto_build
111
+ if enable_git_lfs is not None:
112
+ self.enable_git_lfs = enable_git_lfs
96
113
  if build_type is not None:
97
114
  self.build_type = build_type
98
115
  if depth is not None:
@@ -101,6 +118,10 @@ class CreateBuildJobScm:
101
118
  self.end_point_id = end_point_id
102
119
  if source is not None:
103
120
  self.source = source
121
+ if group_name is not None:
122
+ self.group_name = group_name
123
+ if repo_name is not None:
124
+ self.repo_name = repo_name
104
125
 
105
126
  @property
106
127
  def branch(self):
@@ -234,6 +255,28 @@ class CreateBuildJobScm:
234
255
  """
235
256
  self._is_auto_build = is_auto_build
236
257
 
258
+ @property
259
+ def enable_git_lfs(self):
260
+ r"""Gets the enable_git_lfs of this CreateBuildJobScm.
261
+
262
+ 是否启用gitlfs
263
+
264
+ :return: The enable_git_lfs of this CreateBuildJobScm.
265
+ :rtype: bool
266
+ """
267
+ return self._enable_git_lfs
268
+
269
+ @enable_git_lfs.setter
270
+ def enable_git_lfs(self, enable_git_lfs):
271
+ r"""Sets the enable_git_lfs of this CreateBuildJobScm.
272
+
273
+ 是否启用gitlfs
274
+
275
+ :param enable_git_lfs: The enable_git_lfs of this CreateBuildJobScm.
276
+ :type enable_git_lfs: bool
277
+ """
278
+ self._enable_git_lfs = enable_git_lfs
279
+
237
280
  @property
238
281
  def build_type(self):
239
282
  r"""Gets the build_type of this CreateBuildJobScm.
@@ -322,6 +365,50 @@ class CreateBuildJobScm:
322
365
  """
323
366
  self._source = source
324
367
 
368
+ @property
369
+ def group_name(self):
370
+ r"""Gets the group_name of this CreateBuildJobScm.
371
+
372
+ 仓库分组
373
+
374
+ :return: The group_name of this CreateBuildJobScm.
375
+ :rtype: str
376
+ """
377
+ return self._group_name
378
+
379
+ @group_name.setter
380
+ def group_name(self, group_name):
381
+ r"""Sets the group_name of this CreateBuildJobScm.
382
+
383
+ 仓库分组
384
+
385
+ :param group_name: The group_name of this CreateBuildJobScm.
386
+ :type group_name: str
387
+ """
388
+ self._group_name = group_name
389
+
390
+ @property
391
+ def repo_name(self):
392
+ r"""Gets the repo_name of this CreateBuildJobScm.
393
+
394
+ 仓库名称
395
+
396
+ :return: The repo_name of this CreateBuildJobScm.
397
+ :rtype: str
398
+ """
399
+ return self._repo_name
400
+
401
+ @repo_name.setter
402
+ def repo_name(self, repo_name):
403
+ r"""Sets the repo_name of this CreateBuildJobScm.
404
+
405
+ 仓库名称
406
+
407
+ :param repo_name: The repo_name of this CreateBuildJobScm.
408
+ :type repo_name: str
409
+ """
410
+ self._repo_name = repo_name
411
+
325
412
  def to_dict(self):
326
413
  """Returns the model properties as a dict"""
327
414
  result = {}
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateBuildTimeout:
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
+ 'limit': 'str',
21
+ 'unit': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'limit': 'limit',
26
+ 'unit': 'unit'
27
+ }
28
+
29
+ def __init__(self, limit=None, unit=None):
30
+ r"""CreateBuildTimeout
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param limit: 超时时间数值
35
+ :type limit: str
36
+ :param unit: 超时时间单位
37
+ :type unit: str
38
+ """
39
+
40
+
41
+
42
+ self._limit = None
43
+ self._unit = None
44
+ self.discriminator = None
45
+
46
+ if limit is not None:
47
+ self.limit = limit
48
+ if unit is not None:
49
+ self.unit = unit
50
+
51
+ @property
52
+ def limit(self):
53
+ r"""Gets the limit of this CreateBuildTimeout.
54
+
55
+ 超时时间数值
56
+
57
+ :return: The limit of this CreateBuildTimeout.
58
+ :rtype: str
59
+ """
60
+ return self._limit
61
+
62
+ @limit.setter
63
+ def limit(self, limit):
64
+ r"""Sets the limit of this CreateBuildTimeout.
65
+
66
+ 超时时间数值
67
+
68
+ :param limit: The limit of this CreateBuildTimeout.
69
+ :type limit: str
70
+ """
71
+ self._limit = limit
72
+
73
+ @property
74
+ def unit(self):
75
+ r"""Gets the unit of this CreateBuildTimeout.
76
+
77
+ 超时时间单位
78
+
79
+ :return: The unit of this CreateBuildTimeout.
80
+ :rtype: str
81
+ """
82
+ return self._unit
83
+
84
+ @unit.setter
85
+ def unit(self, unit):
86
+ r"""Sets the unit of this CreateBuildTimeout.
87
+
88
+ 超时时间单位
89
+
90
+ :param unit: The unit of this CreateBuildTimeout.
91
+ :type unit: str
92
+ """
93
+ self._unit = unit
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, CreateBuildTimeout):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other
@@ -18,7 +18,7 @@ class DeleteBuildJobResponse(SdkResponse):
18
18
  sensitive_list = []
19
19
 
20
20
  openapi_types = {
21
- 'result': 'DeleteBuildJobResponseBodyResult',
21
+ 'result': 'DeleteTheJobResponseBodyResult',
22
22
  'status': 'str'
23
23
  }
24
24
 
@@ -33,7 +33,7 @@ class DeleteBuildJobResponse(SdkResponse):
33
33
  The model defined in huaweicloud sdk
34
34
 
35
35
  :param result:
36
- :type result: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteBuildJobResponseBodyResult`
36
+ :type result: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteTheJobResponseBodyResult`
37
37
  :param status: 状态信息
38
38
  :type status: str
39
39
  """
@@ -54,7 +54,7 @@ class DeleteBuildJobResponse(SdkResponse):
54
54
  r"""Gets the result of this DeleteBuildJobResponse.
55
55
 
56
56
  :return: The result of this DeleteBuildJobResponse.
57
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteBuildJobResponseBodyResult`
57
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteTheJobResponseBodyResult`
58
58
  """
59
59
  return self._result
60
60
 
@@ -63,7 +63,7 @@ class DeleteBuildJobResponse(SdkResponse):
63
63
  r"""Sets the result of this DeleteBuildJobResponse.
64
64
 
65
65
  :param result: The result of this DeleteBuildJobResponse.
66
- :type result: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteBuildJobResponseBodyResult`
66
+ :type result: :class:`huaweicloudsdkcodeartsbuild.v3.DeleteTheJobResponseBodyResult`
67
67
  """
68
68
  self._result = result
69
69
 
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DeleteKeystorePermissionRequest:
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
+ 'permission_id': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'permission_id': 'permission_id'
25
+ }
26
+
27
+ def __init__(self, permission_id=None):
28
+ r"""DeleteKeystorePermissionRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param permission_id: 文件管理权限ID
33
+ :type permission_id: str
34
+ """
35
+
36
+
37
+
38
+ self._permission_id = None
39
+ self.discriminator = None
40
+
41
+ self.permission_id = permission_id
42
+
43
+ @property
44
+ def permission_id(self):
45
+ r"""Gets the permission_id of this DeleteKeystorePermissionRequest.
46
+
47
+ 文件管理权限ID
48
+
49
+ :return: The permission_id of this DeleteKeystorePermissionRequest.
50
+ :rtype: str
51
+ """
52
+ return self._permission_id
53
+
54
+ @permission_id.setter
55
+ def permission_id(self, permission_id):
56
+ r"""Sets the permission_id of this DeleteKeystorePermissionRequest.
57
+
58
+ 文件管理权限ID
59
+
60
+ :param permission_id: The permission_id of this DeleteKeystorePermissionRequest.
61
+ :type permission_id: str
62
+ """
63
+ self._permission_id = permission_id
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, DeleteKeystorePermissionRequest):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other