huaweicloudsdkcodeartsbuild 3.1.150__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 (42) hide show
  1. huaweicloudsdkcodeartsbuild/v3/__init__.py +33 -0
  2. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +802 -60
  3. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +802 -60
  4. huaweicloudsdkcodeartsbuild/v3/model/__init__.py +33 -0
  5. huaweicloudsdkcodeartsbuild/v3/model/add_keystore_permission_response_body.py +347 -0
  6. huaweicloudsdkcodeartsbuild/v3/model/check_job_name_is_exists_request.py +142 -0
  7. huaweicloudsdkcodeartsbuild/v3/model/check_job_name_is_exists_response.py +145 -0
  8. huaweicloudsdkcodeartsbuild/v3/model/download_keystore_by_name_request.py +170 -0
  9. huaweicloudsdkcodeartsbuild/v3/model/download_keystore_by_name_response.py +85 -0
  10. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_request.py +84 -0
  11. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_response.py +145 -0
  12. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_result.py +144 -0
  13. huaweicloudsdkcodeartsbuild/v3/model/list_records_request.py +317 -0
  14. huaweicloudsdkcodeartsbuild/v3/model/list_records_response.py +170 -0
  15. huaweicloudsdkcodeartsbuild/v3/model/list_records_result.py +140 -0
  16. huaweicloudsdkcodeartsbuild/v3/model/list_records_result_pagination.py +173 -0
  17. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_request.py +173 -0
  18. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_response.py +170 -0
  19. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_result.py +144 -0
  20. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_result_project_info_list.py +231 -0
  21. huaweicloudsdkcodeartsbuild/v3/model/show_build_info_record_request.py +142 -0
  22. huaweicloudsdkcodeartsbuild/v3/model/show_build_info_record_response.py +170 -0
  23. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_params.py +144 -0
  24. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_request.py +84 -0
  25. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_response.py +145 -0
  26. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_result.py +144 -0
  27. huaweicloudsdkcodeartsbuild/v3/model/show_dockerfile_template_request.py +114 -0
  28. huaweicloudsdkcodeartsbuild/v3/model/show_dockerfile_template_response.py +85 -0
  29. huaweicloudsdkcodeartsbuild/v3/model/show_job_notice_config_info_request.py +114 -0
  30. huaweicloudsdkcodeartsbuild/v3/model/show_job_notice_config_info_response.py +174 -0
  31. huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_request.py +170 -0
  32. huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_response.py +170 -0
  33. huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_response_body_result.py +144 -0
  34. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_request.py +84 -0
  35. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_response.py +170 -0
  36. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_result.py +144 -0
  37. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_result_project_info_list.py +231 -0
  38. {huaweicloudsdkcodeartsbuild-3.1.150.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/METADATA +2 -2
  39. {huaweicloudsdkcodeartsbuild-3.1.150.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/RECORD +42 -9
  40. {huaweicloudsdkcodeartsbuild-3.1.150.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/LICENSE +0 -0
  41. {huaweicloudsdkcodeartsbuild-3.1.150.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/WHEEL +0 -0
  42. {huaweicloudsdkcodeartsbuild-3.1.150.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/top_level.txt +0 -0
@@ -33,6 +33,73 @@ class CodeArtsBuildClient(Client):
33
33
 
34
34
  return client_builder
35
35
 
36
+ def check_job_name_is_exists(self, request):
37
+ r"""查看项目下任务名是否存在
38
+
39
+ 查看项目下任务名是否存在
40
+
41
+ Please refer to HUAWEI cloud API Explorer for details.
42
+
43
+ :param request: Request instance for CheckJobNameIsExists
44
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobNameIsExistsRequest`
45
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobNameIsExistsResponse`
46
+ """
47
+ http_info = self._check_job_name_is_exists_http_info(request)
48
+ return self._call_api(**http_info)
49
+
50
+ def check_job_name_is_exists_invoker(self, request):
51
+ http_info = self._check_job_name_is_exists_http_info(request)
52
+ return SyncInvoker(self, http_info)
53
+
54
+ @classmethod
55
+ def _check_job_name_is_exists_http_info(cls, request):
56
+ http_info = {
57
+ "method": "GET",
58
+ "resource_path": "/v1/job/check/exist",
59
+ "request_type": request.__class__.__name__,
60
+ "response_type": "CheckJobNameIsExistsResponse"
61
+ }
62
+
63
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
64
+
65
+ cname = None
66
+
67
+ collection_formats = {}
68
+
69
+ path_params = {}
70
+
71
+ query_params = []
72
+ if 'project_id' in local_var_params:
73
+ query_params.append(('project_id', local_var_params['project_id']))
74
+ if 'job_name' in local_var_params:
75
+ query_params.append(('job_name', local_var_params['job_name']))
76
+
77
+ header_params = {}
78
+
79
+ form_params = {}
80
+
81
+ body = None
82
+ if isinstance(request, SdkStreamRequest):
83
+ body = request.get_file_stream()
84
+
85
+ response_headers = []
86
+
87
+ header_params['Content-Type'] = http_utils.select_header_content_type(
88
+ ['application/json'])
89
+
90
+ auth_settings = ['apig-auth-iam']
91
+
92
+ http_info["cname"] = cname
93
+ http_info["collection_formats"] = collection_formats
94
+ http_info["path_params"] = path_params
95
+ http_info["query_params"] = query_params
96
+ http_info["header_params"] = header_params
97
+ http_info["post_params"] = form_params
98
+ http_info["body"] = body
99
+ http_info["response_headers"] = response_headers
100
+
101
+ return http_info
102
+
36
103
  def create_build_job(self, request):
37
104
  r"""创建构建任务
38
105
 
@@ -559,6 +626,75 @@ class CodeArtsBuildClient(Client):
559
626
 
560
627
  return http_info
561
628
 
629
+ def download_keystore_by_name(self, request):
630
+ r"""文件管理文件下载
631
+
632
+ 文件管理文件下载
633
+
634
+ Please refer to HUAWEI cloud API Explorer for details.
635
+
636
+ :param request: Request instance for DownloadKeystoreByName
637
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadKeystoreByNameRequest`
638
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadKeystoreByNameResponse`
639
+ """
640
+ http_info = self._download_keystore_by_name_http_info(request)
641
+ return self._call_api(**http_info)
642
+
643
+ def download_keystore_by_name_invoker(self, request):
644
+ http_info = self._download_keystore_by_name_http_info(request)
645
+ return SyncInvoker(self, http_info)
646
+
647
+ @classmethod
648
+ def _download_keystore_by_name_http_info(cls, request):
649
+ http_info = {
650
+ "method": "GET",
651
+ "resource_path": "/v2/keystore/download",
652
+ "request_type": request.__class__.__name__,
653
+ "response_type": "DownloadKeystoreByNameResponse"
654
+ }
655
+
656
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
657
+
658
+ cname = None
659
+
660
+ collection_formats = {}
661
+
662
+ path_params = {}
663
+
664
+ query_params = []
665
+ if 'name' in local_var_params:
666
+ query_params.append(('name', local_var_params['name']))
667
+ if 'domain_id' in local_var_params:
668
+ query_params.append(('domain_id', local_var_params['domain_id']))
669
+ if 'id' in local_var_params:
670
+ query_params.append(('id', local_var_params['id']))
671
+
672
+ header_params = {}
673
+
674
+ form_params = {}
675
+
676
+ body = None
677
+ if isinstance(request, SdkStreamRequest):
678
+ body = request.get_file_stream()
679
+
680
+ response_headers = []
681
+
682
+ header_params['Content-Type'] = http_utils.select_header_content_type(
683
+ ['application/json'])
684
+
685
+ auth_settings = ['apig-auth-iam']
686
+
687
+ http_info["cname"] = cname
688
+ http_info["collection_formats"] = collection_formats
689
+ http_info["path_params"] = path_params
690
+ http_info["query_params"] = query_params
691
+ http_info["header_params"] = header_params
692
+ http_info["post_params"] = form_params
693
+ http_info["body"] = body
694
+ http_info["response_headers"] = response_headers
695
+
696
+ return http_info
697
+
562
698
  def download_real_time_log(self, request):
563
699
  r"""下载构建实时日志
564
700
 
@@ -977,6 +1113,69 @@ class CodeArtsBuildClient(Client):
977
1113
 
978
1114
  return http_info
979
1115
 
1116
+ def list_keystore(self, request):
1117
+ r"""查询用户可使用文件
1118
+
1119
+ 查询用户可使用文件
1120
+
1121
+ Please refer to HUAWEI cloud API Explorer for details.
1122
+
1123
+ :param request: Request instance for ListKeystore
1124
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListKeystoreRequest`
1125
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListKeystoreResponse`
1126
+ """
1127
+ http_info = self._list_keystore_http_info(request)
1128
+ return self._call_api(**http_info)
1129
+
1130
+ def list_keystore_invoker(self, request):
1131
+ http_info = self._list_keystore_http_info(request)
1132
+ return SyncInvoker(self, http_info)
1133
+
1134
+ @classmethod
1135
+ def _list_keystore_http_info(cls, request):
1136
+ http_info = {
1137
+ "method": "GET",
1138
+ "resource_path": "/v2/keystore/name",
1139
+ "request_type": request.__class__.__name__,
1140
+ "response_type": "ListKeystoreResponse"
1141
+ }
1142
+
1143
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1144
+
1145
+ cname = None
1146
+
1147
+ collection_formats = {}
1148
+
1149
+ path_params = {}
1150
+
1151
+ query_params = []
1152
+
1153
+ header_params = {}
1154
+
1155
+ form_params = {}
1156
+
1157
+ body = None
1158
+ if isinstance(request, SdkStreamRequest):
1159
+ body = request.get_file_stream()
1160
+
1161
+ response_headers = []
1162
+
1163
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1164
+ ['application/json'])
1165
+
1166
+ auth_settings = ['apig-auth-iam']
1167
+
1168
+ http_info["cname"] = cname
1169
+ http_info["collection_formats"] = collection_formats
1170
+ http_info["path_params"] = path_params
1171
+ http_info["query_params"] = query_params
1172
+ http_info["header_params"] = header_params
1173
+ http_info["post_params"] = form_params
1174
+ http_info["body"] = body
1175
+ http_info["response_headers"] = response_headers
1176
+
1177
+ return http_info
1178
+
980
1179
  def list_notice(self, request):
981
1180
  r"""查询通知
982
1181
 
@@ -1194,6 +1393,88 @@ class CodeArtsBuildClient(Client):
1194
1393
 
1195
1394
  return http_info
1196
1395
 
1396
+ def list_records(self, request):
1397
+ r"""获取指定工程的构建记录列表
1398
+
1399
+ 获取指定工程的构建记录列表
1400
+
1401
+ Please refer to HUAWEI cloud API Explorer for details.
1402
+
1403
+ :param request: Request instance for ListRecords
1404
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecordsRequest`
1405
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecordsResponse`
1406
+ """
1407
+ http_info = self._list_records_http_info(request)
1408
+ return self._call_api(**http_info)
1409
+
1410
+ def list_records_invoker(self, request):
1411
+ http_info = self._list_records_http_info(request)
1412
+ return SyncInvoker(self, http_info)
1413
+
1414
+ @classmethod
1415
+ def _list_records_http_info(cls, request):
1416
+ http_info = {
1417
+ "method": "GET",
1418
+ "resource_path": "/v1/record/{build_project_id}/records",
1419
+ "request_type": request.__class__.__name__,
1420
+ "response_type": "ListRecordsResponse"
1421
+ }
1422
+
1423
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1424
+
1425
+ cname = None
1426
+
1427
+ collection_formats = {}
1428
+
1429
+ path_params = {}
1430
+ if 'build_project_id' in local_var_params:
1431
+ path_params['build_project_id'] = local_var_params['build_project_id']
1432
+
1433
+ query_params = []
1434
+ if 'page' in local_var_params:
1435
+ query_params.append(('page', local_var_params['page']))
1436
+ if 'limit' in local_var_params:
1437
+ query_params.append(('limit', local_var_params['limit']))
1438
+ if 'triggers' in local_var_params:
1439
+ query_params.append(('triggers', local_var_params['triggers']))
1440
+ collection_formats['triggers'] = 'csv'
1441
+ if 'branches' in local_var_params:
1442
+ query_params.append(('branches', local_var_params['branches']))
1443
+ collection_formats['branches'] = 'csv'
1444
+ if 'tags' in local_var_params:
1445
+ query_params.append(('tags', local_var_params['tags']))
1446
+ collection_formats['tags'] = 'csv'
1447
+ if 'from_date' in local_var_params:
1448
+ query_params.append(('from_date', local_var_params['from_date']))
1449
+ if 'to_date' in local_var_params:
1450
+ query_params.append(('to_date', local_var_params['to_date']))
1451
+
1452
+ header_params = {}
1453
+
1454
+ form_params = {}
1455
+
1456
+ body = None
1457
+ if isinstance(request, SdkStreamRequest):
1458
+ body = request.get_file_stream()
1459
+
1460
+ response_headers = []
1461
+
1462
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1463
+ ['application/json'])
1464
+
1465
+ auth_settings = ['apig-auth-iam']
1466
+
1467
+ http_info["cname"] = cname
1468
+ http_info["collection_formats"] = collection_formats
1469
+ http_info["path_params"] = path_params
1470
+ http_info["query_params"] = query_params
1471
+ http_info["header_params"] = header_params
1472
+ http_info["post_params"] = form_params
1473
+ http_info["body"] = body
1474
+ http_info["response_headers"] = response_headers
1475
+
1476
+ return http_info
1477
+
1197
1478
  def list_recycling_job(self, request):
1198
1479
  r"""查看回收站中删除的构建任务列表
1199
1480
 
@@ -1263,6 +1544,75 @@ class CodeArtsBuildClient(Client):
1263
1544
 
1264
1545
  return http_info
1265
1546
 
1547
+ def list_related_project_info(self, request):
1548
+ r"""获取项目列表
1549
+
1550
+ 获取项目列表
1551
+
1552
+ Please refer to HUAWEI cloud API Explorer for details.
1553
+
1554
+ :param request: Request instance for ListRelatedProjectInfo
1555
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRelatedProjectInfoRequest`
1556
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRelatedProjectInfoResponse`
1557
+ """
1558
+ http_info = self._list_related_project_info_http_info(request)
1559
+ return self._call_api(**http_info)
1560
+
1561
+ def list_related_project_info_invoker(self, request):
1562
+ http_info = self._list_related_project_info_http_info(request)
1563
+ return SyncInvoker(self, http_info)
1564
+
1565
+ @classmethod
1566
+ def _list_related_project_info_http_info(cls, request):
1567
+ http_info = {
1568
+ "method": "GET",
1569
+ "resource_path": "/v1/domain/project/related-page",
1570
+ "request_type": request.__class__.__name__,
1571
+ "response_type": "ListRelatedProjectInfoResponse"
1572
+ }
1573
+
1574
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1575
+
1576
+ cname = None
1577
+
1578
+ collection_formats = {}
1579
+
1580
+ path_params = {}
1581
+
1582
+ query_params = []
1583
+ if 'page_size' in local_var_params:
1584
+ query_params.append(('page_size', local_var_params['page_size']))
1585
+ if 'page_no' in local_var_params:
1586
+ query_params.append(('page_no', local_var_params['page_no']))
1587
+ if 'search' in local_var_params:
1588
+ query_params.append(('search', local_var_params['search']))
1589
+
1590
+ header_params = {}
1591
+
1592
+ form_params = {}
1593
+
1594
+ body = None
1595
+ if isinstance(request, SdkStreamRequest):
1596
+ body = request.get_file_stream()
1597
+
1598
+ response_headers = []
1599
+
1600
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1601
+ ['application/json'])
1602
+
1603
+ auth_settings = ['apig-auth-iam']
1604
+
1605
+ http_info["cname"] = cname
1606
+ http_info["collection_formats"] = collection_formats
1607
+ http_info["path_params"] = path_params
1608
+ http_info["query_params"] = query_params
1609
+ http_info["header_params"] = header_params
1610
+ http_info["post_params"] = form_params
1611
+ http_info["body"] = body
1612
+ http_info["response_headers"] = response_headers
1613
+
1614
+ return http_info
1615
+
1266
1616
  def list_templates(self, request):
1267
1617
  r"""查询构建模板
1268
1618
 
@@ -1351,12 +1701,207 @@ class CodeArtsBuildClient(Client):
1351
1701
  return SyncInvoker(self, http_info)
1352
1702
 
1353
1703
  @classmethod
1354
- def _run_job_http_info(cls, request):
1704
+ def _run_job_http_info(cls, request):
1705
+ http_info = {
1706
+ "method": "POST",
1707
+ "resource_path": "/v3/jobs/build",
1708
+ "request_type": request.__class__.__name__,
1709
+ "response_type": "RunJobResponse"
1710
+ }
1711
+
1712
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1713
+
1714
+ cname = None
1715
+
1716
+ collection_formats = {}
1717
+
1718
+ path_params = {}
1719
+
1720
+ query_params = []
1721
+
1722
+ header_params = {}
1723
+
1724
+ form_params = {}
1725
+
1726
+ body = None
1727
+ if 'body' in local_var_params:
1728
+ body = local_var_params['body']
1729
+ if isinstance(request, SdkStreamRequest):
1730
+ body = request.get_file_stream()
1731
+
1732
+ response_headers = []
1733
+
1734
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1735
+ ['application/json'])
1736
+
1737
+ auth_settings = ['apig-auth-iam']
1738
+
1739
+ http_info["cname"] = cname
1740
+ http_info["collection_formats"] = collection_formats
1741
+ http_info["path_params"] = path_params
1742
+ http_info["query_params"] = query_params
1743
+ http_info["header_params"] = header_params
1744
+ http_info["post_params"] = form_params
1745
+ http_info["body"] = body
1746
+ http_info["response_headers"] = response_headers
1747
+
1748
+ return http_info
1749
+
1750
+ def show_build_info_record(self, request):
1751
+ r"""获取任务构建记录列表
1752
+
1753
+ 获取任务构建记录列表
1754
+
1755
+ Please refer to HUAWEI cloud API Explorer for details.
1756
+
1757
+ :param request: Request instance for ShowBuildInfoRecord
1758
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildInfoRecordRequest`
1759
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildInfoRecordResponse`
1760
+ """
1761
+ http_info = self._show_build_info_record_http_info(request)
1762
+ return self._call_api(**http_info)
1763
+
1764
+ def show_build_info_record_invoker(self, request):
1765
+ http_info = self._show_build_info_record_http_info(request)
1766
+ return SyncInvoker(self, http_info)
1767
+
1768
+ @classmethod
1769
+ def _show_build_info_record_http_info(cls, request):
1770
+ http_info = {
1771
+ "method": "GET",
1772
+ "resource_path": "/v1/record/{job_id}/{build_no}/build-info-record",
1773
+ "request_type": request.__class__.__name__,
1774
+ "response_type": "ShowBuildInfoRecordResponse"
1775
+ }
1776
+
1777
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1778
+
1779
+ cname = None
1780
+
1781
+ collection_formats = {}
1782
+
1783
+ path_params = {}
1784
+ if 'job_id' in local_var_params:
1785
+ path_params['job_id'] = local_var_params['job_id']
1786
+ if 'build_no' in local_var_params:
1787
+ path_params['build_no'] = local_var_params['build_no']
1788
+
1789
+ query_params = []
1790
+
1791
+ header_params = {}
1792
+
1793
+ form_params = {}
1794
+
1795
+ body = None
1796
+ if isinstance(request, SdkStreamRequest):
1797
+ body = request.get_file_stream()
1798
+
1799
+ response_headers = []
1800
+
1801
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1802
+ ['application/json'])
1803
+
1804
+ auth_settings = ['apig-auth-iam']
1805
+
1806
+ http_info["cname"] = cname
1807
+ http_info["collection_formats"] = collection_formats
1808
+ http_info["path_params"] = path_params
1809
+ http_info["query_params"] = query_params
1810
+ http_info["header_params"] = header_params
1811
+ http_info["post_params"] = form_params
1812
+ http_info["body"] = body
1813
+ http_info["response_headers"] = response_headers
1814
+
1815
+ return http_info
1816
+
1817
+ def show_build_params_list(self, request):
1818
+ r"""编辑页获取参数类型的接口
1819
+
1820
+ 编辑页获取参数类型的接口
1821
+
1822
+ Please refer to HUAWEI cloud API Explorer for details.
1823
+
1824
+ :param request: Request instance for ShowBuildParamsList
1825
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildParamsListRequest`
1826
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildParamsListResponse`
1827
+ """
1828
+ http_info = self._show_build_params_list_http_info(request)
1829
+ return self._call_api(**http_info)
1830
+
1831
+ def show_build_params_list_invoker(self, request):
1832
+ http_info = self._show_build_params_list_http_info(request)
1833
+ return SyncInvoker(self, http_info)
1834
+
1835
+ @classmethod
1836
+ def _show_build_params_list_http_info(cls, request):
1837
+ http_info = {
1838
+ "method": "GET",
1839
+ "resource_path": "/v1/job/build-params",
1840
+ "request_type": request.__class__.__name__,
1841
+ "response_type": "ShowBuildParamsListResponse"
1842
+ }
1843
+
1844
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1845
+
1846
+ cname = None
1847
+
1848
+ collection_formats = {}
1849
+
1850
+ path_params = {}
1851
+
1852
+ query_params = []
1853
+
1854
+ header_params = {}
1855
+
1856
+ form_params = {}
1857
+
1858
+ body = None
1859
+ if isinstance(request, SdkStreamRequest):
1860
+ body = request.get_file_stream()
1861
+
1862
+ response_headers = []
1863
+
1864
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1865
+ ['application/json'])
1866
+
1867
+ auth_settings = ['apig-auth-iam']
1868
+
1869
+ http_info["cname"] = cname
1870
+ http_info["collection_formats"] = collection_formats
1871
+ http_info["path_params"] = path_params
1872
+ http_info["query_params"] = query_params
1873
+ http_info["header_params"] = header_params
1874
+ http_info["post_params"] = form_params
1875
+ http_info["body"] = body
1876
+ http_info["response_headers"] = response_headers
1877
+
1878
+ return http_info
1879
+
1880
+ def show_build_record(self, request):
1881
+ r"""查询指定构建记录详情
1882
+
1883
+ 查询指定构建记录详情
1884
+
1885
+ Please refer to HUAWEI cloud API Explorer for details.
1886
+
1887
+ :param request: Request instance for ShowBuildRecord
1888
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordRequest`
1889
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordResponse`
1890
+ """
1891
+ http_info = self._show_build_record_http_info(request)
1892
+ return self._call_api(**http_info)
1893
+
1894
+ def show_build_record_invoker(self, request):
1895
+ http_info = self._show_build_record_http_info(request)
1896
+ return SyncInvoker(self, http_info)
1897
+
1898
+ @classmethod
1899
+ def _show_build_record_http_info(cls, request):
1355
1900
  http_info = {
1356
- "method": "POST",
1357
- "resource_path": "/v3/jobs/build",
1901
+ "method": "GET",
1902
+ "resource_path": "/v1/record/{record_id}/info",
1358
1903
  "request_type": request.__class__.__name__,
1359
- "response_type": "RunJobResponse"
1904
+ "response_type": "ShowBuildRecordResponse"
1360
1905
  }
1361
1906
 
1362
1907
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1366,6 +1911,8 @@ class CodeArtsBuildClient(Client):
1366
1911
  collection_formats = {}
1367
1912
 
1368
1913
  path_params = {}
1914
+ if 'record_id' in local_var_params:
1915
+ path_params['record_id'] = local_var_params['record_id']
1369
1916
 
1370
1917
  query_params = []
1371
1918
 
@@ -1374,8 +1921,6 @@ class CodeArtsBuildClient(Client):
1374
1921
  form_params = {}
1375
1922
 
1376
1923
  body = None
1377
- if 'body' in local_var_params:
1378
- body = local_var_params['body']
1379
1924
  if isinstance(request, SdkStreamRequest):
1380
1925
  body = request.get_file_stream()
1381
1926
 
@@ -1397,31 +1942,31 @@ class CodeArtsBuildClient(Client):
1397
1942
 
1398
1943
  return http_info
1399
1944
 
1400
- def show_build_params_list(self, request):
1401
- r"""编辑页获取参数类型的接口
1945
+ def show_build_record_build_script(self, request):
1946
+ r"""获取构建记录的构建脚本
1402
1947
 
1403
- 编辑页获取参数类型的接口
1948
+ 获取构建记录的构建脚本
1404
1949
 
1405
1950
  Please refer to HUAWEI cloud API Explorer for details.
1406
1951
 
1407
- :param request: Request instance for ShowBuildParamsList
1408
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildParamsListRequest`
1409
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildParamsListResponse`
1952
+ :param request: Request instance for ShowBuildRecordBuildScript
1953
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordBuildScriptRequest`
1954
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordBuildScriptResponse`
1410
1955
  """
1411
- http_info = self._show_build_params_list_http_info(request)
1956
+ http_info = self._show_build_record_build_script_http_info(request)
1412
1957
  return self._call_api(**http_info)
1413
1958
 
1414
- def show_build_params_list_invoker(self, request):
1415
- http_info = self._show_build_params_list_http_info(request)
1959
+ def show_build_record_build_script_invoker(self, request):
1960
+ http_info = self._show_build_record_build_script_http_info(request)
1416
1961
  return SyncInvoker(self, http_info)
1417
1962
 
1418
1963
  @classmethod
1419
- def _show_build_params_list_http_info(cls, request):
1964
+ def _show_build_record_build_script_http_info(cls, request):
1420
1965
  http_info = {
1421
1966
  "method": "GET",
1422
- "resource_path": "/v1/job/build-params",
1967
+ "resource_path": "/v1/record/{record_id}/build-script",
1423
1968
  "request_type": request.__class__.__name__,
1424
- "response_type": "ShowBuildParamsListResponse"
1969
+ "response_type": "ShowBuildRecordBuildScriptResponse"
1425
1970
  }
1426
1971
 
1427
1972
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1431,6 +1976,8 @@ class CodeArtsBuildClient(Client):
1431
1976
  collection_formats = {}
1432
1977
 
1433
1978
  path_params = {}
1979
+ if 'record_id' in local_var_params:
1980
+ path_params['record_id'] = local_var_params['record_id']
1434
1981
 
1435
1982
  query_params = []
1436
1983
 
@@ -1460,31 +2007,31 @@ class CodeArtsBuildClient(Client):
1460
2007
 
1461
2008
  return http_info
1462
2009
 
1463
- def show_build_record(self, request):
1464
- r"""查询指定构建记录详情
2010
+ def show_build_record_full_stages(self, request):
2011
+ r"""获取任务各阶段信息
1465
2012
 
1466
- 查询指定构建记录详情
2013
+ 获取任务各阶段信息
1467
2014
 
1468
2015
  Please refer to HUAWEI cloud API Explorer for details.
1469
2016
 
1470
- :param request: Request instance for ShowBuildRecord
1471
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordRequest`
1472
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordResponse`
2017
+ :param request: Request instance for ShowBuildRecordFullStages
2018
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesRequest`
2019
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesResponse`
1473
2020
  """
1474
- http_info = self._show_build_record_http_info(request)
2021
+ http_info = self._show_build_record_full_stages_http_info(request)
1475
2022
  return self._call_api(**http_info)
1476
2023
 
1477
- def show_build_record_invoker(self, request):
1478
- http_info = self._show_build_record_http_info(request)
2024
+ def show_build_record_full_stages_invoker(self, request):
2025
+ http_info = self._show_build_record_full_stages_http_info(request)
1479
2026
  return SyncInvoker(self, http_info)
1480
2027
 
1481
2028
  @classmethod
1482
- def _show_build_record_http_info(cls, request):
2029
+ def _show_build_record_full_stages_http_info(cls, request):
1483
2030
  http_info = {
1484
2031
  "method": "GET",
1485
- "resource_path": "/v1/record/{record_id}/info",
2032
+ "resource_path": "/v1/record/{record_id}/full-stages",
1486
2033
  "request_type": request.__class__.__name__,
1487
- "response_type": "ShowBuildRecordResponse"
2034
+ "response_type": "ShowBuildRecordFullStagesResponse"
1488
2035
  }
1489
2036
 
1490
2037
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1498,6 +2045,8 @@ class CodeArtsBuildClient(Client):
1498
2045
  path_params['record_id'] = local_var_params['record_id']
1499
2046
 
1500
2047
  query_params = []
2048
+ if 'cascade' in local_var_params:
2049
+ query_params.append(('cascade', local_var_params['cascade']))
1501
2050
 
1502
2051
  header_params = {}
1503
2052
 
@@ -1525,31 +2074,31 @@ class CodeArtsBuildClient(Client):
1525
2074
 
1526
2075
  return http_info
1527
2076
 
1528
- def show_build_record_build_script(self, request):
1529
- r"""获取构建记录的构建脚本
2077
+ def show_default_build_parameters(self, request):
2078
+ r"""获取编译构建默认参数
1530
2079
 
1531
- 获取构建记录的构建脚本
2080
+ 获取编译构建默认参数
1532
2081
 
1533
2082
  Please refer to HUAWEI cloud API Explorer for details.
1534
2083
 
1535
- :param request: Request instance for ShowBuildRecordBuildScript
1536
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordBuildScriptRequest`
1537
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordBuildScriptResponse`
2084
+ :param request: Request instance for ShowDefaultBuildParameters
2085
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultBuildParametersRequest`
2086
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultBuildParametersResponse`
1538
2087
  """
1539
- http_info = self._show_build_record_build_script_http_info(request)
2088
+ http_info = self._show_default_build_parameters_http_info(request)
1540
2089
  return self._call_api(**http_info)
1541
2090
 
1542
- def show_build_record_build_script_invoker(self, request):
1543
- http_info = self._show_build_record_build_script_http_info(request)
2091
+ def show_default_build_parameters_invoker(self, request):
2092
+ http_info = self._show_default_build_parameters_http_info(request)
1544
2093
  return SyncInvoker(self, http_info)
1545
2094
 
1546
2095
  @classmethod
1547
- def _show_build_record_build_script_http_info(cls, request):
2096
+ def _show_default_build_parameters_http_info(cls, request):
1548
2097
  http_info = {
1549
2098
  "method": "GET",
1550
- "resource_path": "/v1/record/{record_id}/build-script",
2099
+ "resource_path": "/v1/job/default-parameters",
1551
2100
  "request_type": request.__class__.__name__,
1552
- "response_type": "ShowBuildRecordBuildScriptResponse"
2101
+ "response_type": "ShowDefaultBuildParametersResponse"
1553
2102
  }
1554
2103
 
1555
2104
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1559,8 +2108,6 @@ class CodeArtsBuildClient(Client):
1559
2108
  collection_formats = {}
1560
2109
 
1561
2110
  path_params = {}
1562
- if 'record_id' in local_var_params:
1563
- path_params['record_id'] = local_var_params['record_id']
1564
2111
 
1565
2112
  query_params = []
1566
2113
 
@@ -1590,31 +2137,31 @@ class CodeArtsBuildClient(Client):
1590
2137
 
1591
2138
  return http_info
1592
2139
 
1593
- def show_build_record_full_stages(self, request):
1594
- r"""获取任务各阶段信息
2140
+ def show_dockerfile_template(self, request):
2141
+ r"""获取dockerfileTemplate
1595
2142
 
1596
- 获取任务各阶段信息
2143
+ 获取dockerfileTemplate
1597
2144
 
1598
2145
  Please refer to HUAWEI cloud API Explorer for details.
1599
2146
 
1600
- :param request: Request instance for ShowBuildRecordFullStages
1601
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesRequest`
1602
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesResponse`
2147
+ :param request: Request instance for ShowDockerfileTemplate
2148
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDockerfileTemplateRequest`
2149
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDockerfileTemplateResponse`
1603
2150
  """
1604
- http_info = self._show_build_record_full_stages_http_info(request)
2151
+ http_info = self._show_dockerfile_template_http_info(request)
1605
2152
  return self._call_api(**http_info)
1606
2153
 
1607
- def show_build_record_full_stages_invoker(self, request):
1608
- http_info = self._show_build_record_full_stages_http_info(request)
2154
+ def show_dockerfile_template_invoker(self, request):
2155
+ http_info = self._show_dockerfile_template_http_info(request)
1609
2156
  return SyncInvoker(self, http_info)
1610
2157
 
1611
2158
  @classmethod
1612
- def _show_build_record_full_stages_http_info(cls, request):
2159
+ def _show_dockerfile_template_http_info(cls, request):
1613
2160
  http_info = {
1614
2161
  "method": "GET",
1615
- "resource_path": "/v1/record/{record_id}/full-stages",
2162
+ "resource_path": "/v1/image/dockerfile-template",
1616
2163
  "request_type": request.__class__.__name__,
1617
- "response_type": "ShowBuildRecordFullStagesResponse"
2164
+ "response_type": "ShowDockerfileTemplateResponse"
1618
2165
  }
1619
2166
 
1620
2167
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1624,12 +2171,10 @@ class CodeArtsBuildClient(Client):
1624
2171
  collection_formats = {}
1625
2172
 
1626
2173
  path_params = {}
1627
- if 'record_id' in local_var_params:
1628
- path_params['record_id'] = local_var_params['record_id']
1629
2174
 
1630
2175
  query_params = []
1631
- if 'cascade' in local_var_params:
1632
- query_params.append(('cascade', local_var_params['cascade']))
2176
+ if 'image_id' in local_var_params:
2177
+ query_params.append(('image_id', local_var_params['image_id']))
1633
2178
 
1634
2179
  header_params = {}
1635
2180
 
@@ -2199,6 +2744,71 @@ class CodeArtsBuildClient(Client):
2199
2744
 
2200
2745
  return http_info
2201
2746
 
2747
+ def show_job_notice_config_info(self, request):
2748
+ r"""获取通知信息
2749
+
2750
+ 获取通知信息
2751
+
2752
+ Please refer to HUAWEI cloud API Explorer for details.
2753
+
2754
+ :param request: Request instance for ShowJobNoticeConfigInfo
2755
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobNoticeConfigInfoRequest`
2756
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobNoticeConfigInfoResponse`
2757
+ """
2758
+ http_info = self._show_job_notice_config_info_http_info(request)
2759
+ return self._call_api(**http_info)
2760
+
2761
+ def show_job_notice_config_info_invoker(self, request):
2762
+ http_info = self._show_job_notice_config_info_http_info(request)
2763
+ return SyncInvoker(self, http_info)
2764
+
2765
+ @classmethod
2766
+ def _show_job_notice_config_info_http_info(cls, request):
2767
+ http_info = {
2768
+ "method": "GET",
2769
+ "resource_path": "/v1/job/{job_id}/notice",
2770
+ "request_type": request.__class__.__name__,
2771
+ "response_type": "ShowJobNoticeConfigInfoResponse"
2772
+ }
2773
+
2774
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2775
+
2776
+ cname = None
2777
+
2778
+ collection_formats = {}
2779
+
2780
+ path_params = {}
2781
+ if 'job_id' in local_var_params:
2782
+ path_params['job_id'] = local_var_params['job_id']
2783
+
2784
+ query_params = []
2785
+
2786
+ header_params = {}
2787
+
2788
+ form_params = {}
2789
+
2790
+ body = None
2791
+ if isinstance(request, SdkStreamRequest):
2792
+ body = request.get_file_stream()
2793
+
2794
+ response_headers = []
2795
+
2796
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2797
+ ['application/json'])
2798
+
2799
+ auth_settings = ['apig-auth-iam']
2800
+
2801
+ http_info["cname"] = cname
2802
+ http_info["collection_formats"] = collection_formats
2803
+ http_info["path_params"] = path_params
2804
+ http_info["query_params"] = query_params
2805
+ http_info["header_params"] = header_params
2806
+ http_info["post_params"] = form_params
2807
+ http_info["body"] = body
2808
+ http_info["response_headers"] = response_headers
2809
+
2810
+ return http_info
2811
+
2202
2812
  def show_job_role_permission(self, request):
2203
2813
  r"""获取构建任务的角色权限矩阵信息
2204
2814
 
@@ -2461,6 +3071,75 @@ class CodeArtsBuildClient(Client):
2461
3071
 
2462
3072
  return http_info
2463
3073
 
3074
+ def show_keystore_permission(self, request):
3075
+ r"""文件管理查询权限
3076
+
3077
+ 文件管理查询权限
3078
+
3079
+ Please refer to HUAWEI cloud API Explorer for details.
3080
+
3081
+ :param request: Request instance for ShowKeystorePermission
3082
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowKeystorePermissionRequest`
3083
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowKeystorePermissionResponse`
3084
+ """
3085
+ http_info = self._show_keystore_permission_http_info(request)
3086
+ return self._call_api(**http_info)
3087
+
3088
+ def show_keystore_permission_invoker(self, request):
3089
+ http_info = self._show_keystore_permission_http_info(request)
3090
+ return SyncInvoker(self, http_info)
3091
+
3092
+ @classmethod
3093
+ def _show_keystore_permission_http_info(cls, request):
3094
+ http_info = {
3095
+ "method": "GET",
3096
+ "resource_path": "/v2/keystore/permission/{keystore_id}/query",
3097
+ "request_type": request.__class__.__name__,
3098
+ "response_type": "ShowKeystorePermissionResponse"
3099
+ }
3100
+
3101
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3102
+
3103
+ cname = None
3104
+
3105
+ collection_formats = {}
3106
+
3107
+ path_params = {}
3108
+ if 'keystore_id' in local_var_params:
3109
+ path_params['keystore_id'] = local_var_params['keystore_id']
3110
+
3111
+ query_params = []
3112
+ if 'page_size' in local_var_params:
3113
+ query_params.append(('page_size', local_var_params['page_size']))
3114
+ if 'page' in local_var_params:
3115
+ query_params.append(('page', local_var_params['page']))
3116
+
3117
+ header_params = {}
3118
+
3119
+ form_params = {}
3120
+
3121
+ body = None
3122
+ if isinstance(request, SdkStreamRequest):
3123
+ body = request.get_file_stream()
3124
+
3125
+ response_headers = []
3126
+
3127
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3128
+ ['application/json'])
3129
+
3130
+ auth_settings = ['apig-auth-iam']
3131
+
3132
+ http_info["cname"] = cname
3133
+ http_info["collection_formats"] = collection_formats
3134
+ http_info["path_params"] = path_params
3135
+ http_info["query_params"] = query_params
3136
+ http_info["header_params"] = header_params
3137
+ http_info["post_params"] = form_params
3138
+ http_info["body"] = body
3139
+ http_info["response_headers"] = response_headers
3140
+
3141
+ return http_info
3142
+
2464
3143
  def show_last_history(self, request):
2465
3144
  r"""查询指定代码仓库最近一次成功的构建历史
2466
3145
 
@@ -2871,6 +3550,69 @@ class CodeArtsBuildClient(Client):
2871
3550
 
2872
3551
  return http_info
2873
3552
 
3553
+ def show_related_project(self, request):
3554
+ r"""获取当前用户的项目信息列表
3555
+
3556
+ 获取当前用户的项目信息列表
3557
+
3558
+ Please refer to HUAWEI cloud API Explorer for details.
3559
+
3560
+ :param request: Request instance for ShowRelatedProject
3561
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRelatedProjectRequest`
3562
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRelatedProjectResponse`
3563
+ """
3564
+ http_info = self._show_related_project_http_info(request)
3565
+ return self._call_api(**http_info)
3566
+
3567
+ def show_related_project_invoker(self, request):
3568
+ http_info = self._show_related_project_http_info(request)
3569
+ return SyncInvoker(self, http_info)
3570
+
3571
+ @classmethod
3572
+ def _show_related_project_http_info(cls, request):
3573
+ http_info = {
3574
+ "method": "GET",
3575
+ "resource_path": "/v1/domain/project/related",
3576
+ "request_type": request.__class__.__name__,
3577
+ "response_type": "ShowRelatedProjectResponse"
3578
+ }
3579
+
3580
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3581
+
3582
+ cname = None
3583
+
3584
+ collection_formats = {}
3585
+
3586
+ path_params = {}
3587
+
3588
+ query_params = []
3589
+
3590
+ header_params = {}
3591
+
3592
+ form_params = {}
3593
+
3594
+ body = None
3595
+ if isinstance(request, SdkStreamRequest):
3596
+ body = request.get_file_stream()
3597
+
3598
+ response_headers = []
3599
+
3600
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3601
+ ['application/json'])
3602
+
3603
+ auth_settings = ['apig-auth-iam']
3604
+
3605
+ http_info["cname"] = cname
3606
+ http_info["collection_formats"] = collection_formats
3607
+ http_info["path_params"] = path_params
3608
+ http_info["query_params"] = query_params
3609
+ http_info["header_params"] = header_params
3610
+ http_info["post_params"] = form_params
3611
+ http_info["body"] = body
3612
+ http_info["response_headers"] = response_headers
3613
+
3614
+ return http_info
3615
+
2874
3616
  def show_report_summary(self, request):
2875
3617
  r"""获取覆盖率接口
2876
3618