huaweicloudsdkcodeartsbuild 3.1.151__py2.py3-none-any.whl → 3.1.152__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.
- huaweicloudsdkcodeartsbuild/v3/__init__.py +57 -0
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +2171 -906
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +2171 -906
- huaweicloudsdkcodeartsbuild/v3/model/__init__.py +57 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_parameter.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_job_count_is_top_limit_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_job_count_is_top_limit_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/download_junit_coverage_zip_request.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/download_junit_coverage_zip_response.py +85 -0
- huaweicloudsdkcodeartsbuild/v3/model/is_disable_result.py +260 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_status_body.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_summary.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_summary_body_result.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_update_record_list_vo_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_update_record_list_vo_result_job_update_records.py +289 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_parameter_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_parameter_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_custom_template_request.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_custom_template_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_job_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_job_response.py +141 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_job_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_job_result_job_list.py +1217 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_junit_coverage_summary_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_junit_coverage_summary_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_junit_coverage_summary_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_junit_coverage_summary_result_unit_summary_list.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_keystore_search_request.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_keystore_search_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_keystore_search_response_body_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_keystore_search_response_body_result_keystore_list.py +517 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_keystore_search_response_body_result_permission.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_repo_branch_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_repo_branch_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_repository_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_repository_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_update_job_history_request.py +172 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_update_job_history_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/query_custom_templates_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/repositories_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_flow_graph_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_flow_graph_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_copy_name_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_copy_name_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_default_project_permission_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_default_project_permission_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_default_project_permission_response_body_result.py +347 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_disable_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_disable_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_record_detail_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_record_detail_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_step_status_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_step_status_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_total_request.py +172 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_total_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_summary_build_job_info_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_summary_build_job_info_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_over_package_quota_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_over_package_quota_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_over_package_quota_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/total_response_body_result.py +115 -0
- {huaweicloudsdkcodeartsbuild-3.1.151.dist-info → huaweicloudsdkcodeartsbuild-3.1.152.dist-info}/METADATA +2 -2
- {huaweicloudsdkcodeartsbuild-3.1.151.dist-info → huaweicloudsdkcodeartsbuild-3.1.152.dist-info}/RECORD +66 -9
- {huaweicloudsdkcodeartsbuild-3.1.151.dist-info → huaweicloudsdkcodeartsbuild-3.1.152.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.151.dist-info → huaweicloudsdkcodeartsbuild-3.1.152.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.151.dist-info → huaweicloudsdkcodeartsbuild-3.1.152.dist-info}/top_level.txt +0 -0
@@ -33,73 +33,6 @@ 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
|
-
|
103
36
|
def create_build_job(self, request):
|
104
37
|
r"""创建构建任务
|
105
38
|
|
@@ -626,75 +559,6 @@ class CodeArtsBuildClient(Client):
|
|
626
559
|
|
627
560
|
return http_info
|
628
561
|
|
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
|
-
|
698
562
|
def download_real_time_log(self, request):
|
699
563
|
r"""下载构建实时日志
|
700
564
|
|
@@ -973,31 +837,31 @@ class CodeArtsBuildClient(Client):
|
|
973
837
|
|
974
838
|
return http_info
|
975
839
|
|
976
|
-
def
|
977
|
-
r"""
|
840
|
+
def list_job_config(self, request):
|
841
|
+
r"""获取构建任务详情
|
978
842
|
|
979
|
-
|
843
|
+
获取构建任务详情
|
980
844
|
|
981
845
|
Please refer to HUAWEI cloud API Explorer for details.
|
982
846
|
|
983
|
-
:param request: Request instance for
|
984
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
985
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
847
|
+
:param request: Request instance for ListJobConfig
|
848
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobConfigRequest`
|
849
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobConfigResponse`
|
986
850
|
"""
|
987
|
-
http_info = self.
|
851
|
+
http_info = self._list_job_config_http_info(request)
|
988
852
|
return self._call_api(**http_info)
|
989
853
|
|
990
|
-
def
|
991
|
-
http_info = self.
|
854
|
+
def list_job_config_invoker(self, request):
|
855
|
+
http_info = self._list_job_config_http_info(request)
|
992
856
|
return SyncInvoker(self, http_info)
|
993
857
|
|
994
858
|
@classmethod
|
995
|
-
def
|
859
|
+
def _list_job_config_http_info(cls, request):
|
996
860
|
http_info = {
|
997
861
|
"method": "GET",
|
998
|
-
"resource_path": "/
|
862
|
+
"resource_path": "/v3/jobs/{job_id}/query",
|
999
863
|
"request_type": request.__class__.__name__,
|
1000
|
-
"response_type": "
|
864
|
+
"response_type": "ListJobConfigResponse"
|
1001
865
|
}
|
1002
866
|
|
1003
867
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1011,14 +875,8 @@ class CodeArtsBuildClient(Client):
|
|
1011
875
|
path_params['job_id'] = local_var_params['job_id']
|
1012
876
|
|
1013
877
|
query_params = []
|
1014
|
-
if '
|
1015
|
-
query_params.append(('
|
1016
|
-
if 'end_time' in local_var_params:
|
1017
|
-
query_params.append(('end_time', local_var_params['end_time']))
|
1018
|
-
if 'page_index' in local_var_params:
|
1019
|
-
query_params.append(('page_index', local_var_params['page_index']))
|
1020
|
-
if 'page_size' in local_var_params:
|
1021
|
-
query_params.append(('page_size', local_var_params['page_size']))
|
878
|
+
if 'get_all_params' in local_var_params:
|
879
|
+
query_params.append(('get_all_params', local_var_params['get_all_params']))
|
1022
880
|
|
1023
881
|
header_params = {}
|
1024
882
|
|
@@ -1046,31 +904,31 @@ class CodeArtsBuildClient(Client):
|
|
1046
904
|
|
1047
905
|
return http_info
|
1048
906
|
|
1049
|
-
def
|
1050
|
-
r"""
|
907
|
+
def list_notice(self, request):
|
908
|
+
r"""查询通知
|
1051
909
|
|
1052
|
-
|
910
|
+
查询通知
|
1053
911
|
|
1054
912
|
Please refer to HUAWEI cloud API Explorer for details.
|
1055
913
|
|
1056
|
-
:param request: Request instance for
|
1057
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1058
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
914
|
+
:param request: Request instance for ListNotice
|
915
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListNoticeRequest`
|
916
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListNoticeResponse`
|
1059
917
|
"""
|
1060
|
-
http_info = self.
|
918
|
+
http_info = self._list_notice_http_info(request)
|
1061
919
|
return self._call_api(**http_info)
|
1062
920
|
|
1063
|
-
def
|
1064
|
-
http_info = self.
|
921
|
+
def list_notice_invoker(self, request):
|
922
|
+
http_info = self._list_notice_http_info(request)
|
1065
923
|
return SyncInvoker(self, http_info)
|
1066
924
|
|
1067
925
|
@classmethod
|
1068
|
-
def
|
926
|
+
def _list_notice_http_info(cls, request):
|
1069
927
|
http_info = {
|
1070
928
|
"method": "GET",
|
1071
|
-
"resource_path": "/v3/jobs/{job_id}/query",
|
929
|
+
"resource_path": "/v3/jobs/notice/{job_id}/query",
|
1072
930
|
"request_type": request.__class__.__name__,
|
1073
|
-
"response_type": "
|
931
|
+
"response_type": "ListNoticeResponse"
|
1074
932
|
}
|
1075
933
|
|
1076
934
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1084,8 +942,6 @@ class CodeArtsBuildClient(Client):
|
|
1084
942
|
path_params['job_id'] = local_var_params['job_id']
|
1085
943
|
|
1086
944
|
query_params = []
|
1087
|
-
if 'get_all_params' in local_var_params:
|
1088
|
-
query_params.append(('get_all_params', local_var_params['get_all_params']))
|
1089
945
|
|
1090
946
|
header_params = {}
|
1091
947
|
|
@@ -1113,31 +969,31 @@ class CodeArtsBuildClient(Client):
|
|
1113
969
|
|
1114
970
|
return http_info
|
1115
971
|
|
1116
|
-
def
|
1117
|
-
r"""
|
972
|
+
def list_templates(self, request):
|
973
|
+
r"""查询构建模板
|
1118
974
|
|
1119
|
-
|
975
|
+
查询构建模板
|
1120
976
|
|
1121
977
|
Please refer to HUAWEI cloud API Explorer for details.
|
1122
978
|
|
1123
|
-
:param request: Request instance for
|
1124
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1125
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
979
|
+
:param request: Request instance for ListTemplates
|
980
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesRequest`
|
981
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesResponse`
|
1126
982
|
"""
|
1127
|
-
http_info = self.
|
983
|
+
http_info = self._list_templates_http_info(request)
|
1128
984
|
return self._call_api(**http_info)
|
1129
985
|
|
1130
|
-
def
|
1131
|
-
http_info = self.
|
986
|
+
def list_templates_invoker(self, request):
|
987
|
+
http_info = self._list_templates_http_info(request)
|
1132
988
|
return SyncInvoker(self, http_info)
|
1133
989
|
|
1134
990
|
@classmethod
|
1135
|
-
def
|
991
|
+
def _list_templates_http_info(cls, request):
|
1136
992
|
http_info = {
|
1137
993
|
"method": "GET",
|
1138
|
-
"resource_path": "/
|
994
|
+
"resource_path": "/v3/templates/query",
|
1139
995
|
"request_type": request.__class__.__name__,
|
1140
|
-
"response_type": "
|
996
|
+
"response_type": "ListTemplatesResponse"
|
1141
997
|
}
|
1142
998
|
|
1143
999
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1149,6 +1005,12 @@ class CodeArtsBuildClient(Client):
|
|
1149
1005
|
path_params = {}
|
1150
1006
|
|
1151
1007
|
query_params = []
|
1008
|
+
if 'name' in local_var_params:
|
1009
|
+
query_params.append(('name', local_var_params['name']))
|
1010
|
+
if 'page' in local_var_params:
|
1011
|
+
query_params.append(('page', local_var_params['page']))
|
1012
|
+
if 'page_size' in local_var_params:
|
1013
|
+
query_params.append(('page_size', local_var_params['page_size']))
|
1152
1014
|
|
1153
1015
|
header_params = {}
|
1154
1016
|
|
@@ -1176,31 +1038,31 @@ class CodeArtsBuildClient(Client):
|
|
1176
1038
|
|
1177
1039
|
return http_info
|
1178
1040
|
|
1179
|
-
def
|
1180
|
-
r"""
|
1041
|
+
def run_job(self, request):
|
1042
|
+
r"""执行构建任务
|
1181
1043
|
|
1182
|
-
|
1044
|
+
执行构建任务,可传自定义参数
|
1183
1045
|
|
1184
1046
|
Please refer to HUAWEI cloud API Explorer for details.
|
1185
1047
|
|
1186
|
-
:param request: Request instance for
|
1187
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1188
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1048
|
+
:param request: Request instance for RunJob
|
1049
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobRequest`
|
1050
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobResponse`
|
1189
1051
|
"""
|
1190
|
-
http_info = self.
|
1052
|
+
http_info = self._run_job_http_info(request)
|
1191
1053
|
return self._call_api(**http_info)
|
1192
1054
|
|
1193
|
-
def
|
1194
|
-
http_info = self.
|
1055
|
+
def run_job_invoker(self, request):
|
1056
|
+
http_info = self._run_job_http_info(request)
|
1195
1057
|
return SyncInvoker(self, http_info)
|
1196
1058
|
|
1197
1059
|
@classmethod
|
1198
|
-
def
|
1060
|
+
def _run_job_http_info(cls, request):
|
1199
1061
|
http_info = {
|
1200
|
-
"method": "
|
1201
|
-
"resource_path": "/v3/jobs/
|
1062
|
+
"method": "POST",
|
1063
|
+
"resource_path": "/v3/jobs/build",
|
1202
1064
|
"request_type": request.__class__.__name__,
|
1203
|
-
"response_type": "
|
1065
|
+
"response_type": "RunJobResponse"
|
1204
1066
|
}
|
1205
1067
|
|
1206
1068
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1210,8 +1072,6 @@ class CodeArtsBuildClient(Client):
|
|
1210
1072
|
collection_formats = {}
|
1211
1073
|
|
1212
1074
|
path_params = {}
|
1213
|
-
if 'job_id' in local_var_params:
|
1214
|
-
path_params['job_id'] = local_var_params['job_id']
|
1215
1075
|
|
1216
1076
|
query_params = []
|
1217
1077
|
|
@@ -1220,6 +1080,8 @@ class CodeArtsBuildClient(Client):
|
|
1220
1080
|
form_params = {}
|
1221
1081
|
|
1222
1082
|
body = None
|
1083
|
+
if 'body' in local_var_params:
|
1084
|
+
body = local_var_params['body']
|
1223
1085
|
if isinstance(request, SdkStreamRequest):
|
1224
1086
|
body = request.get_file_stream()
|
1225
1087
|
|
@@ -1241,31 +1103,1428 @@ class CodeArtsBuildClient(Client):
|
|
1241
1103
|
|
1242
1104
|
return http_info
|
1243
1105
|
|
1244
|
-
def
|
1245
|
-
r"""
|
1106
|
+
def show_history_details(self, request):
|
1107
|
+
r"""获取构建历史详情信息接口
|
1108
|
+
|
1109
|
+
获取构建历史详情信息接口
|
1110
|
+
|
1111
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1112
|
+
|
1113
|
+
:param request: Request instance for ShowHistoryDetails
|
1114
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsRequest`
|
1115
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsResponse`
|
1116
|
+
"""
|
1117
|
+
http_info = self._show_history_details_http_info(request)
|
1118
|
+
return self._call_api(**http_info)
|
1119
|
+
|
1120
|
+
def show_history_details_invoker(self, request):
|
1121
|
+
http_info = self._show_history_details_http_info(request)
|
1122
|
+
return SyncInvoker(self, http_info)
|
1123
|
+
|
1124
|
+
@classmethod
|
1125
|
+
def _show_history_details_http_info(cls, request):
|
1126
|
+
http_info = {
|
1127
|
+
"method": "GET",
|
1128
|
+
"resource_path": "/v3/jobs/{job_id}/{build_number}/history-details",
|
1129
|
+
"request_type": request.__class__.__name__,
|
1130
|
+
"response_type": "ShowHistoryDetailsResponse"
|
1131
|
+
}
|
1132
|
+
|
1133
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1134
|
+
|
1135
|
+
cname = None
|
1136
|
+
|
1137
|
+
collection_formats = {}
|
1138
|
+
|
1139
|
+
path_params = {}
|
1140
|
+
if 'job_id' in local_var_params:
|
1141
|
+
path_params['job_id'] = local_var_params['job_id']
|
1142
|
+
if 'build_number' in local_var_params:
|
1143
|
+
path_params['build_number'] = local_var_params['build_number']
|
1144
|
+
|
1145
|
+
query_params = []
|
1146
|
+
|
1147
|
+
header_params = {}
|
1148
|
+
|
1149
|
+
form_params = {}
|
1150
|
+
|
1151
|
+
body = None
|
1152
|
+
if isinstance(request, SdkStreamRequest):
|
1153
|
+
body = request.get_file_stream()
|
1154
|
+
|
1155
|
+
response_headers = []
|
1156
|
+
|
1157
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1158
|
+
['application/json'])
|
1159
|
+
|
1160
|
+
auth_settings = ['apig-auth-iam']
|
1161
|
+
|
1162
|
+
http_info["cname"] = cname
|
1163
|
+
http_info["collection_formats"] = collection_formats
|
1164
|
+
http_info["path_params"] = path_params
|
1165
|
+
http_info["query_params"] = query_params
|
1166
|
+
http_info["header_params"] = header_params
|
1167
|
+
http_info["post_params"] = form_params
|
1168
|
+
http_info["body"] = body
|
1169
|
+
http_info["response_headers"] = response_headers
|
1170
|
+
|
1171
|
+
return http_info
|
1172
|
+
|
1173
|
+
def show_job_list_by_project_id(self, request):
|
1174
|
+
r"""查看项目下用户的构建任务列表
|
1175
|
+
|
1176
|
+
查看项目下用户的构建任务列表
|
1177
|
+
|
1178
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1179
|
+
|
1180
|
+
:param request: Request instance for ShowJobListByProjectId
|
1181
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdRequest`
|
1182
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdResponse`
|
1183
|
+
"""
|
1184
|
+
http_info = self._show_job_list_by_project_id_http_info(request)
|
1185
|
+
return self._call_api(**http_info)
|
1186
|
+
|
1187
|
+
def show_job_list_by_project_id_invoker(self, request):
|
1188
|
+
http_info = self._show_job_list_by_project_id_http_info(request)
|
1189
|
+
return SyncInvoker(self, http_info)
|
1190
|
+
|
1191
|
+
@classmethod
|
1192
|
+
def _show_job_list_by_project_id_http_info(cls, request):
|
1193
|
+
http_info = {
|
1194
|
+
"method": "GET",
|
1195
|
+
"resource_path": "/v3/{project_id}/jobs",
|
1196
|
+
"request_type": request.__class__.__name__,
|
1197
|
+
"response_type": "ShowJobListByProjectIdResponse"
|
1198
|
+
}
|
1199
|
+
|
1200
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1201
|
+
|
1202
|
+
cname = None
|
1203
|
+
|
1204
|
+
collection_formats = {}
|
1205
|
+
|
1206
|
+
path_params = {}
|
1207
|
+
if 'project_id' in local_var_params:
|
1208
|
+
path_params['project_id'] = local_var_params['project_id']
|
1209
|
+
|
1210
|
+
query_params = []
|
1211
|
+
if 'page_index' in local_var_params:
|
1212
|
+
query_params.append(('page_index', local_var_params['page_index']))
|
1213
|
+
if 'page_size' in local_var_params:
|
1214
|
+
query_params.append(('page_size', local_var_params['page_size']))
|
1215
|
+
|
1216
|
+
header_params = {}
|
1217
|
+
|
1218
|
+
form_params = {}
|
1219
|
+
|
1220
|
+
body = None
|
1221
|
+
if isinstance(request, SdkStreamRequest):
|
1222
|
+
body = request.get_file_stream()
|
1223
|
+
|
1224
|
+
response_headers = []
|
1225
|
+
|
1226
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1227
|
+
['application/json'])
|
1228
|
+
|
1229
|
+
auth_settings = ['apig-auth-iam']
|
1230
|
+
|
1231
|
+
http_info["cname"] = cname
|
1232
|
+
http_info["collection_formats"] = collection_formats
|
1233
|
+
http_info["path_params"] = path_params
|
1234
|
+
http_info["query_params"] = query_params
|
1235
|
+
http_info["header_params"] = header_params
|
1236
|
+
http_info["post_params"] = form_params
|
1237
|
+
http_info["body"] = body
|
1238
|
+
http_info["response_headers"] = response_headers
|
1239
|
+
|
1240
|
+
return http_info
|
1241
|
+
|
1242
|
+
def show_job_status(self, request):
|
1243
|
+
r"""查看任务运行状态
|
1244
|
+
|
1245
|
+
查看任务运行状态
|
1246
|
+
|
1247
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1248
|
+
|
1249
|
+
:param request: Request instance for ShowJobStatus
|
1250
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStatusRequest`
|
1251
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStatusResponse`
|
1252
|
+
"""
|
1253
|
+
http_info = self._show_job_status_http_info(request)
|
1254
|
+
return self._call_api(**http_info)
|
1255
|
+
|
1256
|
+
def show_job_status_invoker(self, request):
|
1257
|
+
http_info = self._show_job_status_http_info(request)
|
1258
|
+
return SyncInvoker(self, http_info)
|
1259
|
+
|
1260
|
+
@classmethod
|
1261
|
+
def _show_job_status_http_info(cls, request):
|
1262
|
+
http_info = {
|
1263
|
+
"method": "GET",
|
1264
|
+
"resource_path": "/v3/jobs/{job_id}/status",
|
1265
|
+
"request_type": request.__class__.__name__,
|
1266
|
+
"response_type": "ShowJobStatusResponse"
|
1267
|
+
}
|
1268
|
+
|
1269
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1270
|
+
|
1271
|
+
cname = None
|
1272
|
+
|
1273
|
+
collection_formats = {}
|
1274
|
+
|
1275
|
+
path_params = {}
|
1276
|
+
if 'job_id' in local_var_params:
|
1277
|
+
path_params['job_id'] = local_var_params['job_id']
|
1278
|
+
|
1279
|
+
query_params = []
|
1280
|
+
|
1281
|
+
header_params = {}
|
1282
|
+
|
1283
|
+
form_params = {}
|
1284
|
+
|
1285
|
+
body = None
|
1286
|
+
if isinstance(request, SdkStreamRequest):
|
1287
|
+
body = request.get_file_stream()
|
1288
|
+
|
1289
|
+
response_headers = []
|
1290
|
+
|
1291
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1292
|
+
['application/json'])
|
1293
|
+
|
1294
|
+
auth_settings = ['apig-auth-iam']
|
1295
|
+
|
1296
|
+
http_info["cname"] = cname
|
1297
|
+
http_info["collection_formats"] = collection_formats
|
1298
|
+
http_info["path_params"] = path_params
|
1299
|
+
http_info["query_params"] = query_params
|
1300
|
+
http_info["header_params"] = header_params
|
1301
|
+
http_info["post_params"] = form_params
|
1302
|
+
http_info["body"] = body
|
1303
|
+
http_info["response_headers"] = response_headers
|
1304
|
+
|
1305
|
+
return http_info
|
1306
|
+
|
1307
|
+
def show_job_success_ratio(self, request):
|
1308
|
+
r"""根据开始时间和结束时间查看构建任务的构建成功率
|
1309
|
+
|
1310
|
+
根据开始时间和结束时间查看构建任务的构建成功率
|
1311
|
+
|
1312
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1313
|
+
|
1314
|
+
:param request: Request instance for ShowJobSuccessRatio
|
1315
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSuccessRatioRequest`
|
1316
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSuccessRatioResponse`
|
1317
|
+
"""
|
1318
|
+
http_info = self._show_job_success_ratio_http_info(request)
|
1319
|
+
return self._call_api(**http_info)
|
1320
|
+
|
1321
|
+
def show_job_success_ratio_invoker(self, request):
|
1322
|
+
http_info = self._show_job_success_ratio_http_info(request)
|
1323
|
+
return SyncInvoker(self, http_info)
|
1324
|
+
|
1325
|
+
@classmethod
|
1326
|
+
def _show_job_success_ratio_http_info(cls, request):
|
1327
|
+
http_info = {
|
1328
|
+
"method": "GET",
|
1329
|
+
"resource_path": "/v3/jobs/{job_id}/success-ratio",
|
1330
|
+
"request_type": request.__class__.__name__,
|
1331
|
+
"response_type": "ShowJobSuccessRatioResponse"
|
1332
|
+
}
|
1333
|
+
|
1334
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1335
|
+
|
1336
|
+
cname = None
|
1337
|
+
|
1338
|
+
collection_formats = {}
|
1339
|
+
|
1340
|
+
path_params = {}
|
1341
|
+
if 'job_id' in local_var_params:
|
1342
|
+
path_params['job_id'] = local_var_params['job_id']
|
1343
|
+
|
1344
|
+
query_params = []
|
1345
|
+
if 'start_time' in local_var_params:
|
1346
|
+
query_params.append(('start_time', local_var_params['start_time']))
|
1347
|
+
if 'end_time' in local_var_params:
|
1348
|
+
query_params.append(('end_time', local_var_params['end_time']))
|
1349
|
+
|
1350
|
+
header_params = {}
|
1351
|
+
|
1352
|
+
form_params = {}
|
1353
|
+
|
1354
|
+
body = None
|
1355
|
+
if isinstance(request, SdkStreamRequest):
|
1356
|
+
body = request.get_file_stream()
|
1357
|
+
|
1358
|
+
response_headers = []
|
1359
|
+
|
1360
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1361
|
+
['application/json'])
|
1362
|
+
|
1363
|
+
auth_settings = ['apig-auth-iam']
|
1364
|
+
|
1365
|
+
http_info["cname"] = cname
|
1366
|
+
http_info["collection_formats"] = collection_formats
|
1367
|
+
http_info["path_params"] = path_params
|
1368
|
+
http_info["query_params"] = query_params
|
1369
|
+
http_info["header_params"] = header_params
|
1370
|
+
http_info["post_params"] = form_params
|
1371
|
+
http_info["body"] = body
|
1372
|
+
http_info["response_headers"] = response_headers
|
1373
|
+
|
1374
|
+
return http_info
|
1375
|
+
|
1376
|
+
def show_last_history(self, request):
|
1377
|
+
r"""查询指定代码仓库最近一次成功的构建历史
|
1378
|
+
|
1379
|
+
查询指定代码仓库最近一次成功的构建历史
|
1380
|
+
|
1381
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1382
|
+
|
1383
|
+
:param request: Request instance for ShowLastHistory
|
1384
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowLastHistoryRequest`
|
1385
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowLastHistoryResponse`
|
1386
|
+
"""
|
1387
|
+
http_info = self._show_last_history_http_info(request)
|
1388
|
+
return self._call_api(**http_info)
|
1389
|
+
|
1390
|
+
def show_last_history_invoker(self, request):
|
1391
|
+
http_info = self._show_last_history_http_info(request)
|
1392
|
+
return SyncInvoker(self, http_info)
|
1393
|
+
|
1394
|
+
@classmethod
|
1395
|
+
def _show_last_history_http_info(cls, request):
|
1396
|
+
http_info = {
|
1397
|
+
"method": "GET",
|
1398
|
+
"resource_path": "/v3/jobs/{project_id}/last-history",
|
1399
|
+
"request_type": request.__class__.__name__,
|
1400
|
+
"response_type": "ShowLastHistoryResponse"
|
1401
|
+
}
|
1402
|
+
|
1403
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1404
|
+
|
1405
|
+
cname = None
|
1406
|
+
|
1407
|
+
collection_formats = {}
|
1408
|
+
|
1409
|
+
path_params = {}
|
1410
|
+
if 'project_id' in local_var_params:
|
1411
|
+
path_params['project_id'] = local_var_params['project_id']
|
1412
|
+
|
1413
|
+
query_params = []
|
1414
|
+
if 'repository_name' in local_var_params:
|
1415
|
+
query_params.append(('repository_name', local_var_params['repository_name']))
|
1416
|
+
|
1417
|
+
header_params = {}
|
1418
|
+
|
1419
|
+
form_params = {}
|
1420
|
+
|
1421
|
+
body = None
|
1422
|
+
if isinstance(request, SdkStreamRequest):
|
1423
|
+
body = request.get_file_stream()
|
1424
|
+
|
1425
|
+
response_headers = []
|
1426
|
+
|
1427
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1428
|
+
['application/json'])
|
1429
|
+
|
1430
|
+
auth_settings = ['apig-auth-iam']
|
1431
|
+
|
1432
|
+
http_info["cname"] = cname
|
1433
|
+
http_info["collection_formats"] = collection_formats
|
1434
|
+
http_info["path_params"] = path_params
|
1435
|
+
http_info["query_params"] = query_params
|
1436
|
+
http_info["header_params"] = header_params
|
1437
|
+
http_info["post_params"] = form_params
|
1438
|
+
http_info["body"] = body
|
1439
|
+
http_info["response_headers"] = response_headers
|
1440
|
+
|
1441
|
+
return http_info
|
1442
|
+
|
1443
|
+
def show_list_history(self, request):
|
1444
|
+
r"""查看构建任务的构建历史列表
|
1445
|
+
|
1446
|
+
查看构建任务的构建历史列表
|
1447
|
+
|
1448
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1449
|
+
|
1450
|
+
:param request: Request instance for ShowListHistory
|
1451
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowListHistoryRequest`
|
1452
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowListHistoryResponse`
|
1453
|
+
"""
|
1454
|
+
http_info = self._show_list_history_http_info(request)
|
1455
|
+
return self._call_api(**http_info)
|
1456
|
+
|
1457
|
+
def show_list_history_invoker(self, request):
|
1458
|
+
http_info = self._show_list_history_http_info(request)
|
1459
|
+
return SyncInvoker(self, http_info)
|
1460
|
+
|
1461
|
+
@classmethod
|
1462
|
+
def _show_list_history_http_info(cls, request):
|
1463
|
+
http_info = {
|
1464
|
+
"method": "GET",
|
1465
|
+
"resource_path": "/v3/jobs/{job_id}/history",
|
1466
|
+
"request_type": request.__class__.__name__,
|
1467
|
+
"response_type": "ShowListHistoryResponse"
|
1468
|
+
}
|
1469
|
+
|
1470
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1471
|
+
|
1472
|
+
cname = None
|
1473
|
+
|
1474
|
+
collection_formats = {}
|
1475
|
+
|
1476
|
+
path_params = {}
|
1477
|
+
if 'job_id' in local_var_params:
|
1478
|
+
path_params['job_id'] = local_var_params['job_id']
|
1479
|
+
|
1480
|
+
query_params = []
|
1481
|
+
if 'offset' in local_var_params:
|
1482
|
+
query_params.append(('offset', local_var_params['offset']))
|
1483
|
+
if 'limit' in local_var_params:
|
1484
|
+
query_params.append(('limit', local_var_params['limit']))
|
1485
|
+
if 'interval' in local_var_params:
|
1486
|
+
query_params.append(('interval', local_var_params['interval']))
|
1487
|
+
|
1488
|
+
header_params = {}
|
1489
|
+
|
1490
|
+
form_params = {}
|
1491
|
+
|
1492
|
+
body = None
|
1493
|
+
if isinstance(request, SdkStreamRequest):
|
1494
|
+
body = request.get_file_stream()
|
1495
|
+
|
1496
|
+
response_headers = []
|
1497
|
+
|
1498
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1499
|
+
['application/json'])
|
1500
|
+
|
1501
|
+
auth_settings = ['apig-auth-iam']
|
1502
|
+
|
1503
|
+
http_info["cname"] = cname
|
1504
|
+
http_info["collection_formats"] = collection_formats
|
1505
|
+
http_info["path_params"] = path_params
|
1506
|
+
http_info["query_params"] = query_params
|
1507
|
+
http_info["header_params"] = header_params
|
1508
|
+
http_info["post_params"] = form_params
|
1509
|
+
http_info["body"] = body
|
1510
|
+
http_info["response_headers"] = response_headers
|
1511
|
+
|
1512
|
+
return http_info
|
1513
|
+
|
1514
|
+
def show_list_period_history(self, request):
|
1515
|
+
r"""根据开始时间和结束时间查看构建任务的构建历史列表
|
1516
|
+
|
1517
|
+
根据开始时间和结束时间查看构建任务的构建历史列表
|
1518
|
+
|
1519
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1520
|
+
|
1521
|
+
:param request: Request instance for ShowListPeriodHistory
|
1522
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowListPeriodHistoryRequest`
|
1523
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowListPeriodHistoryResponse`
|
1524
|
+
"""
|
1525
|
+
http_info = self._show_list_period_history_http_info(request)
|
1526
|
+
return self._call_api(**http_info)
|
1527
|
+
|
1528
|
+
def show_list_period_history_invoker(self, request):
|
1529
|
+
http_info = self._show_list_period_history_http_info(request)
|
1530
|
+
return SyncInvoker(self, http_info)
|
1531
|
+
|
1532
|
+
@classmethod
|
1533
|
+
def _show_list_period_history_http_info(cls, request):
|
1534
|
+
http_info = {
|
1535
|
+
"method": "GET",
|
1536
|
+
"resource_path": "/v3/jobs/{job_id}/period-history",
|
1537
|
+
"request_type": request.__class__.__name__,
|
1538
|
+
"response_type": "ShowListPeriodHistoryResponse"
|
1539
|
+
}
|
1540
|
+
|
1541
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1542
|
+
|
1543
|
+
cname = None
|
1544
|
+
|
1545
|
+
collection_formats = {}
|
1546
|
+
|
1547
|
+
path_params = {}
|
1548
|
+
if 'job_id' in local_var_params:
|
1549
|
+
path_params['job_id'] = local_var_params['job_id']
|
1550
|
+
|
1551
|
+
query_params = []
|
1552
|
+
if 'offset' in local_var_params:
|
1553
|
+
query_params.append(('offset', local_var_params['offset']))
|
1554
|
+
if 'limit' in local_var_params:
|
1555
|
+
query_params.append(('limit', local_var_params['limit']))
|
1556
|
+
if 'start_time' in local_var_params:
|
1557
|
+
query_params.append(('start_time', local_var_params['start_time']))
|
1558
|
+
if 'end_time' in local_var_params:
|
1559
|
+
query_params.append(('end_time', local_var_params['end_time']))
|
1560
|
+
|
1561
|
+
header_params = {}
|
1562
|
+
|
1563
|
+
form_params = {}
|
1564
|
+
|
1565
|
+
body = None
|
1566
|
+
if isinstance(request, SdkStreamRequest):
|
1567
|
+
body = request.get_file_stream()
|
1568
|
+
|
1569
|
+
response_headers = []
|
1570
|
+
|
1571
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1572
|
+
['application/json'])
|
1573
|
+
|
1574
|
+
auth_settings = ['apig-auth-iam']
|
1575
|
+
|
1576
|
+
http_info["cname"] = cname
|
1577
|
+
http_info["collection_formats"] = collection_formats
|
1578
|
+
http_info["path_params"] = path_params
|
1579
|
+
http_info["query_params"] = query_params
|
1580
|
+
http_info["header_params"] = header_params
|
1581
|
+
http_info["post_params"] = form_params
|
1582
|
+
http_info["body"] = body
|
1583
|
+
http_info["response_headers"] = response_headers
|
1584
|
+
|
1585
|
+
return http_info
|
1586
|
+
|
1587
|
+
def show_output_info(self, request):
|
1588
|
+
r"""获取构建产物详情信息
|
1589
|
+
|
1590
|
+
获取构建产物详情信息
|
1591
|
+
|
1592
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1593
|
+
|
1594
|
+
:param request: Request instance for ShowOutputInfo
|
1595
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowOutputInfoRequest`
|
1596
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowOutputInfoResponse`
|
1597
|
+
"""
|
1598
|
+
http_info = self._show_output_info_http_info(request)
|
1599
|
+
return self._call_api(**http_info)
|
1600
|
+
|
1601
|
+
def show_output_info_invoker(self, request):
|
1602
|
+
http_info = self._show_output_info_http_info(request)
|
1603
|
+
return SyncInvoker(self, http_info)
|
1604
|
+
|
1605
|
+
@classmethod
|
1606
|
+
def _show_output_info_http_info(cls, request):
|
1607
|
+
http_info = {
|
1608
|
+
"method": "GET",
|
1609
|
+
"resource_path": "/v3/jobs/{job_id}/{build_no}/output-info",
|
1610
|
+
"request_type": request.__class__.__name__,
|
1611
|
+
"response_type": "ShowOutputInfoResponse"
|
1612
|
+
}
|
1613
|
+
|
1614
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1615
|
+
|
1616
|
+
cname = None
|
1617
|
+
|
1618
|
+
collection_formats = {}
|
1619
|
+
|
1620
|
+
path_params = {}
|
1621
|
+
if 'job_id' in local_var_params:
|
1622
|
+
path_params['job_id'] = local_var_params['job_id']
|
1623
|
+
if 'build_no' in local_var_params:
|
1624
|
+
path_params['build_no'] = local_var_params['build_no']
|
1625
|
+
|
1626
|
+
query_params = []
|
1627
|
+
|
1628
|
+
header_params = {}
|
1629
|
+
|
1630
|
+
form_params = {}
|
1631
|
+
|
1632
|
+
body = None
|
1633
|
+
if isinstance(request, SdkStreamRequest):
|
1634
|
+
body = request.get_file_stream()
|
1635
|
+
|
1636
|
+
response_headers = []
|
1637
|
+
|
1638
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1639
|
+
['application/json'])
|
1640
|
+
|
1641
|
+
auth_settings = ['apig-auth-iam']
|
1642
|
+
|
1643
|
+
http_info["cname"] = cname
|
1644
|
+
http_info["collection_formats"] = collection_formats
|
1645
|
+
http_info["path_params"] = path_params
|
1646
|
+
http_info["query_params"] = query_params
|
1647
|
+
http_info["header_params"] = header_params
|
1648
|
+
http_info["post_params"] = form_params
|
1649
|
+
http_info["body"] = body
|
1650
|
+
http_info["response_headers"] = response_headers
|
1651
|
+
|
1652
|
+
return http_info
|
1653
|
+
|
1654
|
+
def show_record_detail(self, request):
|
1655
|
+
r"""获取构建记录信息
|
1656
|
+
|
1657
|
+
获取构建记录信息
|
1658
|
+
|
1659
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1660
|
+
|
1661
|
+
:param request: Request instance for ShowRecordDetail
|
1662
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRecordDetailRequest`
|
1663
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRecordDetailResponse`
|
1664
|
+
"""
|
1665
|
+
http_info = self._show_record_detail_http_info(request)
|
1666
|
+
return self._call_api(**http_info)
|
1667
|
+
|
1668
|
+
def show_record_detail_invoker(self, request):
|
1669
|
+
http_info = self._show_record_detail_http_info(request)
|
1670
|
+
return SyncInvoker(self, http_info)
|
1671
|
+
|
1672
|
+
@classmethod
|
1673
|
+
def _show_record_detail_http_info(cls, request):
|
1674
|
+
http_info = {
|
1675
|
+
"method": "GET",
|
1676
|
+
"resource_path": "/v4/jobs/{job_id}/{build_no}/record-info",
|
1677
|
+
"request_type": request.__class__.__name__,
|
1678
|
+
"response_type": "ShowRecordDetailResponse"
|
1679
|
+
}
|
1680
|
+
|
1681
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1682
|
+
|
1683
|
+
cname = None
|
1684
|
+
|
1685
|
+
collection_formats = {}
|
1686
|
+
|
1687
|
+
path_params = {}
|
1688
|
+
if 'job_id' in local_var_params:
|
1689
|
+
path_params['job_id'] = local_var_params['job_id']
|
1690
|
+
if 'build_no' in local_var_params:
|
1691
|
+
path_params['build_no'] = local_var_params['build_no']
|
1692
|
+
|
1693
|
+
query_params = []
|
1694
|
+
|
1695
|
+
header_params = {}
|
1696
|
+
|
1697
|
+
form_params = {}
|
1698
|
+
|
1699
|
+
body = None
|
1700
|
+
if isinstance(request, SdkStreamRequest):
|
1701
|
+
body = request.get_file_stream()
|
1702
|
+
|
1703
|
+
response_headers = []
|
1704
|
+
|
1705
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1706
|
+
['application/json'])
|
1707
|
+
|
1708
|
+
auth_settings = ['apig-auth-iam']
|
1709
|
+
|
1710
|
+
http_info["cname"] = cname
|
1711
|
+
http_info["collection_formats"] = collection_formats
|
1712
|
+
http_info["path_params"] = path_params
|
1713
|
+
http_info["query_params"] = query_params
|
1714
|
+
http_info["header_params"] = header_params
|
1715
|
+
http_info["post_params"] = form_params
|
1716
|
+
http_info["body"] = body
|
1717
|
+
http_info["response_headers"] = response_headers
|
1718
|
+
|
1719
|
+
return http_info
|
1720
|
+
|
1721
|
+
def stop_build_job(self, request):
|
1722
|
+
r"""停止构建任务
|
1723
|
+
|
1724
|
+
停止构建任务
|
1725
|
+
|
1726
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1727
|
+
|
1728
|
+
:param request: Request instance for StopBuildJob
|
1729
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.StopBuildJobRequest`
|
1730
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.StopBuildJobResponse`
|
1731
|
+
"""
|
1732
|
+
http_info = self._stop_build_job_http_info(request)
|
1733
|
+
return self._call_api(**http_info)
|
1734
|
+
|
1735
|
+
def stop_build_job_invoker(self, request):
|
1736
|
+
http_info = self._stop_build_job_http_info(request)
|
1737
|
+
return SyncInvoker(self, http_info)
|
1738
|
+
|
1739
|
+
@classmethod
|
1740
|
+
def _stop_build_job_http_info(cls, request):
|
1741
|
+
http_info = {
|
1742
|
+
"method": "POST",
|
1743
|
+
"resource_path": "/v3/jobs/{job_id}/{build_no}/stop",
|
1744
|
+
"request_type": request.__class__.__name__,
|
1745
|
+
"response_type": "StopBuildJobResponse"
|
1746
|
+
}
|
1747
|
+
|
1748
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1749
|
+
|
1750
|
+
cname = None
|
1751
|
+
|
1752
|
+
collection_formats = {}
|
1753
|
+
|
1754
|
+
path_params = {}
|
1755
|
+
if 'job_id' in local_var_params:
|
1756
|
+
path_params['job_id'] = local_var_params['job_id']
|
1757
|
+
if 'build_no' in local_var_params:
|
1758
|
+
path_params['build_no'] = local_var_params['build_no']
|
1759
|
+
|
1760
|
+
query_params = []
|
1761
|
+
|
1762
|
+
header_params = {}
|
1763
|
+
|
1764
|
+
form_params = {}
|
1765
|
+
|
1766
|
+
body = None
|
1767
|
+
if isinstance(request, SdkStreamRequest):
|
1768
|
+
body = request.get_file_stream()
|
1769
|
+
|
1770
|
+
response_headers = []
|
1771
|
+
|
1772
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1773
|
+
['application/json'])
|
1774
|
+
|
1775
|
+
auth_settings = ['apig-auth-iam']
|
1776
|
+
|
1777
|
+
http_info["cname"] = cname
|
1778
|
+
http_info["collection_formats"] = collection_formats
|
1779
|
+
http_info["path_params"] = path_params
|
1780
|
+
http_info["query_params"] = query_params
|
1781
|
+
http_info["header_params"] = header_params
|
1782
|
+
http_info["post_params"] = form_params
|
1783
|
+
http_info["body"] = body
|
1784
|
+
http_info["response_headers"] = response_headers
|
1785
|
+
|
1786
|
+
return http_info
|
1787
|
+
|
1788
|
+
def update_build_job(self, request):
|
1789
|
+
r"""更新构建任务
|
1790
|
+
|
1791
|
+
更新构建任务
|
1792
|
+
|
1793
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1794
|
+
|
1795
|
+
:param request: Request instance for UpdateBuildJob
|
1796
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateBuildJobRequest`
|
1797
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateBuildJobResponse`
|
1798
|
+
"""
|
1799
|
+
http_info = self._update_build_job_http_info(request)
|
1800
|
+
return self._call_api(**http_info)
|
1801
|
+
|
1802
|
+
def update_build_job_invoker(self, request):
|
1803
|
+
http_info = self._update_build_job_http_info(request)
|
1804
|
+
return SyncInvoker(self, http_info)
|
1805
|
+
|
1806
|
+
@classmethod
|
1807
|
+
def _update_build_job_http_info(cls, request):
|
1808
|
+
http_info = {
|
1809
|
+
"method": "POST",
|
1810
|
+
"resource_path": "/v3/jobs/update",
|
1811
|
+
"request_type": request.__class__.__name__,
|
1812
|
+
"response_type": "UpdateBuildJobResponse"
|
1813
|
+
}
|
1814
|
+
|
1815
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1816
|
+
|
1817
|
+
cname = None
|
1818
|
+
|
1819
|
+
collection_formats = {}
|
1820
|
+
|
1821
|
+
path_params = {}
|
1822
|
+
|
1823
|
+
query_params = []
|
1824
|
+
|
1825
|
+
header_params = {}
|
1826
|
+
|
1827
|
+
form_params = {}
|
1828
|
+
|
1829
|
+
body = None
|
1830
|
+
if 'body' in local_var_params:
|
1831
|
+
body = local_var_params['body']
|
1832
|
+
if isinstance(request, SdkStreamRequest):
|
1833
|
+
body = request.get_file_stream()
|
1834
|
+
|
1835
|
+
response_headers = []
|
1836
|
+
|
1837
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1838
|
+
['application/json'])
|
1839
|
+
|
1840
|
+
auth_settings = ['apig-auth-iam']
|
1841
|
+
|
1842
|
+
http_info["cname"] = cname
|
1843
|
+
http_info["collection_formats"] = collection_formats
|
1844
|
+
http_info["path_params"] = path_params
|
1845
|
+
http_info["query_params"] = query_params
|
1846
|
+
http_info["header_params"] = header_params
|
1847
|
+
http_info["post_params"] = form_params
|
1848
|
+
http_info["body"] = body
|
1849
|
+
http_info["response_headers"] = response_headers
|
1850
|
+
|
1851
|
+
return http_info
|
1852
|
+
|
1853
|
+
def update_notice(self, request):
|
1854
|
+
r"""更新通知
|
1855
|
+
|
1856
|
+
更新通知
|
1857
|
+
|
1858
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1859
|
+
|
1860
|
+
:param request: Request instance for UpdateNotice
|
1861
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateNoticeRequest`
|
1862
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateNoticeResponse`
|
1863
|
+
"""
|
1864
|
+
http_info = self._update_notice_http_info(request)
|
1865
|
+
return self._call_api(**http_info)
|
1866
|
+
|
1867
|
+
def update_notice_invoker(self, request):
|
1868
|
+
http_info = self._update_notice_http_info(request)
|
1869
|
+
return SyncInvoker(self, http_info)
|
1870
|
+
|
1871
|
+
@classmethod
|
1872
|
+
def _update_notice_http_info(cls, request):
|
1873
|
+
http_info = {
|
1874
|
+
"method": "POST",
|
1875
|
+
"resource_path": "/v3/jobs/notice/{job_id}/update",
|
1876
|
+
"request_type": request.__class__.__name__,
|
1877
|
+
"response_type": "UpdateNoticeResponse"
|
1878
|
+
}
|
1879
|
+
|
1880
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1881
|
+
|
1882
|
+
cname = None
|
1883
|
+
|
1884
|
+
collection_formats = {}
|
1885
|
+
|
1886
|
+
path_params = {}
|
1887
|
+
if 'job_id' in local_var_params:
|
1888
|
+
path_params['job_id'] = local_var_params['job_id']
|
1889
|
+
|
1890
|
+
query_params = []
|
1891
|
+
|
1892
|
+
header_params = {}
|
1893
|
+
|
1894
|
+
form_params = {}
|
1895
|
+
|
1896
|
+
body = None
|
1897
|
+
if 'body' in local_var_params:
|
1898
|
+
body = local_var_params['body']
|
1899
|
+
if isinstance(request, SdkStreamRequest):
|
1900
|
+
body = request.get_file_stream()
|
1901
|
+
|
1902
|
+
response_headers = []
|
1903
|
+
|
1904
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1905
|
+
['application/json'])
|
1906
|
+
|
1907
|
+
auth_settings = ['apig-auth-iam']
|
1908
|
+
|
1909
|
+
http_info["cname"] = cname
|
1910
|
+
http_info["collection_formats"] = collection_formats
|
1911
|
+
http_info["path_params"] = path_params
|
1912
|
+
http_info["query_params"] = query_params
|
1913
|
+
http_info["header_params"] = header_params
|
1914
|
+
http_info["post_params"] = form_params
|
1915
|
+
http_info["body"] = body
|
1916
|
+
http_info["response_headers"] = response_headers
|
1917
|
+
|
1918
|
+
return http_info
|
1919
|
+
|
1920
|
+
def list_related_project_info(self, request):
|
1921
|
+
r"""获取项目列表
|
1922
|
+
|
1923
|
+
获取项目列表
|
1924
|
+
|
1925
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1926
|
+
|
1927
|
+
:param request: Request instance for ListRelatedProjectInfo
|
1928
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRelatedProjectInfoRequest`
|
1929
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRelatedProjectInfoResponse`
|
1930
|
+
"""
|
1931
|
+
http_info = self._list_related_project_info_http_info(request)
|
1932
|
+
return self._call_api(**http_info)
|
1933
|
+
|
1934
|
+
def list_related_project_info_invoker(self, request):
|
1935
|
+
http_info = self._list_related_project_info_http_info(request)
|
1936
|
+
return SyncInvoker(self, http_info)
|
1937
|
+
|
1938
|
+
@classmethod
|
1939
|
+
def _list_related_project_info_http_info(cls, request):
|
1940
|
+
http_info = {
|
1941
|
+
"method": "GET",
|
1942
|
+
"resource_path": "/v1/domain/project/related-page",
|
1943
|
+
"request_type": request.__class__.__name__,
|
1944
|
+
"response_type": "ListRelatedProjectInfoResponse"
|
1945
|
+
}
|
1946
|
+
|
1947
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
1948
|
+
|
1949
|
+
cname = None
|
1950
|
+
|
1951
|
+
collection_formats = {}
|
1952
|
+
|
1953
|
+
path_params = {}
|
1954
|
+
|
1955
|
+
query_params = []
|
1956
|
+
if 'page_size' in local_var_params:
|
1957
|
+
query_params.append(('page_size', local_var_params['page_size']))
|
1958
|
+
if 'page_no' in local_var_params:
|
1959
|
+
query_params.append(('page_no', local_var_params['page_no']))
|
1960
|
+
if 'search' in local_var_params:
|
1961
|
+
query_params.append(('search', local_var_params['search']))
|
1962
|
+
|
1963
|
+
header_params = {}
|
1964
|
+
|
1965
|
+
form_params = {}
|
1966
|
+
|
1967
|
+
body = None
|
1968
|
+
if isinstance(request, SdkStreamRequest):
|
1969
|
+
body = request.get_file_stream()
|
1970
|
+
|
1971
|
+
response_headers = []
|
1972
|
+
|
1973
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
1974
|
+
['application/json'])
|
1975
|
+
|
1976
|
+
auth_settings = ['apig-auth-iam']
|
1977
|
+
|
1978
|
+
http_info["cname"] = cname
|
1979
|
+
http_info["collection_formats"] = collection_formats
|
1980
|
+
http_info["path_params"] = path_params
|
1981
|
+
http_info["query_params"] = query_params
|
1982
|
+
http_info["header_params"] = header_params
|
1983
|
+
http_info["post_params"] = form_params
|
1984
|
+
http_info["body"] = body
|
1985
|
+
http_info["response_headers"] = response_headers
|
1986
|
+
|
1987
|
+
return http_info
|
1988
|
+
|
1989
|
+
def show_project_permission(self, request):
|
1990
|
+
r"""获取用户权限
|
1991
|
+
|
1992
|
+
获取用户权限
|
1993
|
+
|
1994
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1995
|
+
|
1996
|
+
:param request: Request instance for ShowProjectPermission
|
1997
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionRequest`
|
1998
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionResponse`
|
1999
|
+
"""
|
2000
|
+
http_info = self._show_project_permission_http_info(request)
|
2001
|
+
return self._call_api(**http_info)
|
2002
|
+
|
2003
|
+
def show_project_permission_invoker(self, request):
|
2004
|
+
http_info = self._show_project_permission_http_info(request)
|
2005
|
+
return SyncInvoker(self, http_info)
|
2006
|
+
|
2007
|
+
@classmethod
|
2008
|
+
def _show_project_permission_http_info(cls, request):
|
2009
|
+
http_info = {
|
2010
|
+
"method": "GET",
|
2011
|
+
"resource_path": "/v1/domain/user-permission",
|
2012
|
+
"request_type": request.__class__.__name__,
|
2013
|
+
"response_type": "ShowProjectPermissionResponse"
|
2014
|
+
}
|
2015
|
+
|
2016
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2017
|
+
|
2018
|
+
cname = None
|
2019
|
+
|
2020
|
+
collection_formats = {}
|
2021
|
+
|
2022
|
+
path_params = {}
|
2023
|
+
|
2024
|
+
query_params = []
|
2025
|
+
if 'project_id' in local_var_params:
|
2026
|
+
query_params.append(('project_id', local_var_params['project_id']))
|
2027
|
+
|
2028
|
+
header_params = {}
|
2029
|
+
|
2030
|
+
form_params = {}
|
2031
|
+
|
2032
|
+
body = None
|
2033
|
+
if isinstance(request, SdkStreamRequest):
|
2034
|
+
body = request.get_file_stream()
|
2035
|
+
|
2036
|
+
response_headers = []
|
2037
|
+
|
2038
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2039
|
+
['application/json'])
|
2040
|
+
|
2041
|
+
auth_settings = ['apig-auth-iam']
|
2042
|
+
|
2043
|
+
http_info["cname"] = cname
|
2044
|
+
http_info["collection_formats"] = collection_formats
|
2045
|
+
http_info["path_params"] = path_params
|
2046
|
+
http_info["query_params"] = query_params
|
2047
|
+
http_info["header_params"] = header_params
|
2048
|
+
http_info["post_params"] = form_params
|
2049
|
+
http_info["body"] = body
|
2050
|
+
http_info["response_headers"] = response_headers
|
2051
|
+
|
2052
|
+
return http_info
|
2053
|
+
|
2054
|
+
def show_related_project(self, request):
|
2055
|
+
r"""获取当前用户的项目信息列表
|
2056
|
+
|
2057
|
+
获取当前用户的项目信息列表
|
2058
|
+
|
2059
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2060
|
+
|
2061
|
+
:param request: Request instance for ShowRelatedProject
|
2062
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRelatedProjectRequest`
|
2063
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRelatedProjectResponse`
|
2064
|
+
"""
|
2065
|
+
http_info = self._show_related_project_http_info(request)
|
2066
|
+
return self._call_api(**http_info)
|
2067
|
+
|
2068
|
+
def show_related_project_invoker(self, request):
|
2069
|
+
http_info = self._show_related_project_http_info(request)
|
2070
|
+
return SyncInvoker(self, http_info)
|
2071
|
+
|
2072
|
+
@classmethod
|
2073
|
+
def _show_related_project_http_info(cls, request):
|
2074
|
+
http_info = {
|
2075
|
+
"method": "GET",
|
2076
|
+
"resource_path": "/v1/domain/project/related",
|
2077
|
+
"request_type": request.__class__.__name__,
|
2078
|
+
"response_type": "ShowRelatedProjectResponse"
|
2079
|
+
}
|
2080
|
+
|
2081
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2082
|
+
|
2083
|
+
cname = None
|
2084
|
+
|
2085
|
+
collection_formats = {}
|
2086
|
+
|
2087
|
+
path_params = {}
|
2088
|
+
|
2089
|
+
query_params = []
|
2090
|
+
|
2091
|
+
header_params = {}
|
2092
|
+
|
2093
|
+
form_params = {}
|
2094
|
+
|
2095
|
+
body = None
|
2096
|
+
if isinstance(request, SdkStreamRequest):
|
2097
|
+
body = request.get_file_stream()
|
2098
|
+
|
2099
|
+
response_headers = []
|
2100
|
+
|
2101
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2102
|
+
['application/json'])
|
2103
|
+
|
2104
|
+
auth_settings = ['apig-auth-iam']
|
2105
|
+
|
2106
|
+
http_info["cname"] = cname
|
2107
|
+
http_info["collection_formats"] = collection_formats
|
2108
|
+
http_info["path_params"] = path_params
|
2109
|
+
http_info["query_params"] = query_params
|
2110
|
+
http_info["header_params"] = header_params
|
2111
|
+
http_info["post_params"] = form_params
|
2112
|
+
http_info["body"] = body
|
2113
|
+
http_info["response_headers"] = response_headers
|
2114
|
+
|
2115
|
+
return http_info
|
2116
|
+
|
2117
|
+
def show_summary_build_job_info(self, request):
|
2118
|
+
r"""获取租户任务总数和成功率接口
|
2119
|
+
|
2120
|
+
获取租户任务总数和成功率接口
|
2121
|
+
|
2122
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2123
|
+
|
2124
|
+
:param request: Request instance for ShowSummaryBuildJobInfo
|
2125
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowSummaryBuildJobInfoRequest`
|
2126
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowSummaryBuildJobInfoResponse`
|
2127
|
+
"""
|
2128
|
+
http_info = self._show_summary_build_job_info_http_info(request)
|
2129
|
+
return self._call_api(**http_info)
|
2130
|
+
|
2131
|
+
def show_summary_build_job_info_invoker(self, request):
|
2132
|
+
http_info = self._show_summary_build_job_info_http_info(request)
|
2133
|
+
return SyncInvoker(self, http_info)
|
2134
|
+
|
2135
|
+
@classmethod
|
2136
|
+
def _show_summary_build_job_info_http_info(cls, request):
|
2137
|
+
http_info = {
|
2138
|
+
"method": "GET",
|
2139
|
+
"resource_path": "/v1/domain/job-summary",
|
2140
|
+
"request_type": request.__class__.__name__,
|
2141
|
+
"response_type": "ShowSummaryBuildJobInfoResponse"
|
2142
|
+
}
|
2143
|
+
|
2144
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2145
|
+
|
2146
|
+
cname = None
|
2147
|
+
|
2148
|
+
collection_formats = {}
|
2149
|
+
|
2150
|
+
path_params = {}
|
2151
|
+
|
2152
|
+
query_params = []
|
2153
|
+
|
2154
|
+
header_params = {}
|
2155
|
+
|
2156
|
+
form_params = {}
|
2157
|
+
|
2158
|
+
body = None
|
2159
|
+
if isinstance(request, SdkStreamRequest):
|
2160
|
+
body = request.get_file_stream()
|
2161
|
+
|
2162
|
+
response_headers = []
|
2163
|
+
|
2164
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2165
|
+
['application/json'])
|
2166
|
+
|
2167
|
+
auth_settings = ['apig-auth-iam']
|
2168
|
+
|
2169
|
+
http_info["cname"] = cname
|
2170
|
+
http_info["collection_formats"] = collection_formats
|
2171
|
+
http_info["path_params"] = path_params
|
2172
|
+
http_info["query_params"] = query_params
|
2173
|
+
http_info["header_params"] = header_params
|
2174
|
+
http_info["post_params"] = form_params
|
2175
|
+
http_info["body"] = body
|
2176
|
+
http_info["response_headers"] = response_headers
|
2177
|
+
|
2178
|
+
return http_info
|
2179
|
+
|
2180
|
+
def show_user_over_package_quota(self, request):
|
2181
|
+
r"""当前用户所在项目所属租户的包周期每月时长是否超额
|
2182
|
+
|
2183
|
+
当前用户所在项目所属租户的包周期每月时长是否超额
|
2184
|
+
|
2185
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2186
|
+
|
2187
|
+
:param request: Request instance for ShowUserOverPackageQuota
|
2188
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowUserOverPackageQuotaRequest`
|
2189
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowUserOverPackageQuotaResponse`
|
2190
|
+
"""
|
2191
|
+
http_info = self._show_user_over_package_quota_http_info(request)
|
2192
|
+
return self._call_api(**http_info)
|
2193
|
+
|
2194
|
+
def show_user_over_package_quota_invoker(self, request):
|
2195
|
+
http_info = self._show_user_over_package_quota_http_info(request)
|
2196
|
+
return SyncInvoker(self, http_info)
|
2197
|
+
|
2198
|
+
@classmethod
|
2199
|
+
def _show_user_over_package_quota_http_info(cls, request):
|
2200
|
+
http_info = {
|
2201
|
+
"method": "GET",
|
2202
|
+
"resource_path": "/v1/domain/package/quota",
|
2203
|
+
"request_type": request.__class__.__name__,
|
2204
|
+
"response_type": "ShowUserOverPackageQuotaResponse"
|
2205
|
+
}
|
2206
|
+
|
2207
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2208
|
+
|
2209
|
+
cname = None
|
2210
|
+
|
2211
|
+
collection_formats = {}
|
2212
|
+
|
2213
|
+
path_params = {}
|
2214
|
+
|
2215
|
+
query_params = []
|
2216
|
+
if 'project_id' in local_var_params:
|
2217
|
+
query_params.append(('project_id', local_var_params['project_id']))
|
2218
|
+
|
2219
|
+
header_params = {}
|
2220
|
+
|
2221
|
+
form_params = {}
|
2222
|
+
|
2223
|
+
body = None
|
2224
|
+
if isinstance(request, SdkStreamRequest):
|
2225
|
+
body = request.get_file_stream()
|
2226
|
+
|
2227
|
+
response_headers = []
|
2228
|
+
|
2229
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2230
|
+
['application/json'])
|
2231
|
+
|
2232
|
+
auth_settings = ['apig-auth-iam']
|
2233
|
+
|
2234
|
+
http_info["cname"] = cname
|
2235
|
+
http_info["collection_formats"] = collection_formats
|
2236
|
+
http_info["path_params"] = path_params
|
2237
|
+
http_info["query_params"] = query_params
|
2238
|
+
http_info["header_params"] = header_params
|
2239
|
+
http_info["post_params"] = form_params
|
2240
|
+
http_info["body"] = body
|
2241
|
+
http_info["response_headers"] = response_headers
|
2242
|
+
|
2243
|
+
return http_info
|
2244
|
+
|
2245
|
+
def show_dockerfile_template(self, request):
|
2246
|
+
r"""获取dockerfileTemplate
|
2247
|
+
|
2248
|
+
获取dockerfileTemplate
|
2249
|
+
|
2250
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2251
|
+
|
2252
|
+
:param request: Request instance for ShowDockerfileTemplate
|
2253
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDockerfileTemplateRequest`
|
2254
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDockerfileTemplateResponse`
|
2255
|
+
"""
|
2256
|
+
http_info = self._show_dockerfile_template_http_info(request)
|
2257
|
+
return self._call_api(**http_info)
|
2258
|
+
|
2259
|
+
def show_dockerfile_template_invoker(self, request):
|
2260
|
+
http_info = self._show_dockerfile_template_http_info(request)
|
2261
|
+
return SyncInvoker(self, http_info)
|
2262
|
+
|
2263
|
+
@classmethod
|
2264
|
+
def _show_dockerfile_template_http_info(cls, request):
|
2265
|
+
http_info = {
|
2266
|
+
"method": "GET",
|
2267
|
+
"resource_path": "/v1/image/dockerfile-template",
|
2268
|
+
"request_type": request.__class__.__name__,
|
2269
|
+
"response_type": "ShowDockerfileTemplateResponse"
|
2270
|
+
}
|
2271
|
+
|
2272
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2273
|
+
|
2274
|
+
cname = None
|
2275
|
+
|
2276
|
+
collection_formats = {}
|
2277
|
+
|
2278
|
+
path_params = {}
|
2279
|
+
|
2280
|
+
query_params = []
|
2281
|
+
if 'image_id' in local_var_params:
|
2282
|
+
query_params.append(('image_id', local_var_params['image_id']))
|
2283
|
+
|
2284
|
+
header_params = {}
|
2285
|
+
|
2286
|
+
form_params = {}
|
2287
|
+
|
2288
|
+
body = None
|
2289
|
+
if isinstance(request, SdkStreamRequest):
|
2290
|
+
body = request.get_file_stream()
|
2291
|
+
|
2292
|
+
response_headers = []
|
2293
|
+
|
2294
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2295
|
+
['application/json'])
|
2296
|
+
|
2297
|
+
auth_settings = ['apig-auth-iam']
|
2298
|
+
|
2299
|
+
http_info["cname"] = cname
|
2300
|
+
http_info["collection_formats"] = collection_formats
|
2301
|
+
http_info["path_params"] = path_params
|
2302
|
+
http_info["query_params"] = query_params
|
2303
|
+
http_info["header_params"] = header_params
|
2304
|
+
http_info["post_params"] = form_params
|
2305
|
+
http_info["body"] = body
|
2306
|
+
http_info["response_headers"] = response_headers
|
2307
|
+
|
2308
|
+
return http_info
|
2309
|
+
|
2310
|
+
def show_image_template_list(self, request):
|
2311
|
+
r"""获取镜像模板列表
|
2312
|
+
|
2313
|
+
获取镜像模板列表
|
2314
|
+
|
2315
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2316
|
+
|
2317
|
+
:param request: Request instance for ShowImageTemplateList
|
2318
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListRequest`
|
2319
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListResponse`
|
2320
|
+
"""
|
2321
|
+
http_info = self._show_image_template_list_http_info(request)
|
2322
|
+
return self._call_api(**http_info)
|
2323
|
+
|
2324
|
+
def show_image_template_list_invoker(self, request):
|
2325
|
+
http_info = self._show_image_template_list_http_info(request)
|
2326
|
+
return SyncInvoker(self, http_info)
|
2327
|
+
|
2328
|
+
@classmethod
|
2329
|
+
def _show_image_template_list_http_info(cls, request):
|
2330
|
+
http_info = {
|
2331
|
+
"method": "GET",
|
2332
|
+
"resource_path": "/v1/image/templates",
|
2333
|
+
"request_type": request.__class__.__name__,
|
2334
|
+
"response_type": "ShowImageTemplateListResponse"
|
2335
|
+
}
|
2336
|
+
|
2337
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2338
|
+
|
2339
|
+
cname = None
|
2340
|
+
|
2341
|
+
collection_formats = {}
|
2342
|
+
|
2343
|
+
path_params = {}
|
2344
|
+
|
2345
|
+
query_params = []
|
2346
|
+
|
2347
|
+
header_params = {}
|
2348
|
+
|
2349
|
+
form_params = {}
|
2350
|
+
|
2351
|
+
body = None
|
2352
|
+
if isinstance(request, SdkStreamRequest):
|
2353
|
+
body = request.get_file_stream()
|
2354
|
+
|
2355
|
+
response_headers = []
|
2356
|
+
|
2357
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2358
|
+
['application/json'])
|
2359
|
+
|
2360
|
+
auth_settings = ['apig-auth-iam']
|
2361
|
+
|
2362
|
+
http_info["cname"] = cname
|
2363
|
+
http_info["collection_formats"] = collection_formats
|
2364
|
+
http_info["path_params"] = path_params
|
2365
|
+
http_info["query_params"] = query_params
|
2366
|
+
http_info["header_params"] = header_params
|
2367
|
+
http_info["post_params"] = form_params
|
2368
|
+
http_info["body"] = body
|
2369
|
+
http_info["response_headers"] = response_headers
|
2370
|
+
|
2371
|
+
return http_info
|
2372
|
+
|
2373
|
+
def check_job_count_is_top_limit(self, request):
|
2374
|
+
r"""检查任务数量是否上限
|
2375
|
+
|
2376
|
+
检查任务数量是否上限
|
2377
|
+
|
2378
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2379
|
+
|
2380
|
+
:param request: Request instance for CheckJobCountIsTopLimit
|
2381
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobCountIsTopLimitRequest`
|
2382
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobCountIsTopLimitResponse`
|
2383
|
+
"""
|
2384
|
+
http_info = self._check_job_count_is_top_limit_http_info(request)
|
2385
|
+
return self._call_api(**http_info)
|
2386
|
+
|
2387
|
+
def check_job_count_is_top_limit_invoker(self, request):
|
2388
|
+
http_info = self._check_job_count_is_top_limit_http_info(request)
|
2389
|
+
return SyncInvoker(self, http_info)
|
2390
|
+
|
2391
|
+
@classmethod
|
2392
|
+
def _check_job_count_is_top_limit_http_info(cls, request):
|
2393
|
+
http_info = {
|
2394
|
+
"method": "GET",
|
2395
|
+
"resource_path": "/v1/job/check/count",
|
2396
|
+
"request_type": request.__class__.__name__,
|
2397
|
+
"response_type": "CheckJobCountIsTopLimitResponse"
|
2398
|
+
}
|
2399
|
+
|
2400
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2401
|
+
|
2402
|
+
cname = None
|
2403
|
+
|
2404
|
+
collection_formats = {}
|
2405
|
+
|
2406
|
+
path_params = {}
|
2407
|
+
|
2408
|
+
query_params = []
|
2409
|
+
|
2410
|
+
header_params = {}
|
2411
|
+
|
2412
|
+
form_params = {}
|
2413
|
+
|
2414
|
+
body = None
|
2415
|
+
if isinstance(request, SdkStreamRequest):
|
2416
|
+
body = request.get_file_stream()
|
2417
|
+
|
2418
|
+
response_headers = []
|
2419
|
+
|
2420
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2421
|
+
['application/json'])
|
2422
|
+
|
2423
|
+
auth_settings = ['apig-auth-iam']
|
2424
|
+
|
2425
|
+
http_info["cname"] = cname
|
2426
|
+
http_info["collection_formats"] = collection_formats
|
2427
|
+
http_info["path_params"] = path_params
|
2428
|
+
http_info["query_params"] = query_params
|
2429
|
+
http_info["header_params"] = header_params
|
2430
|
+
http_info["post_params"] = form_params
|
2431
|
+
http_info["body"] = body
|
2432
|
+
http_info["response_headers"] = response_headers
|
2433
|
+
|
2434
|
+
return http_info
|
2435
|
+
|
2436
|
+
def check_job_name_is_exists(self, request):
|
2437
|
+
r"""查看项目下任务名是否存在
|
2438
|
+
|
2439
|
+
查看项目下任务名是否存在
|
2440
|
+
|
2441
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2442
|
+
|
2443
|
+
:param request: Request instance for CheckJobNameIsExists
|
2444
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobNameIsExistsRequest`
|
2445
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobNameIsExistsResponse`
|
2446
|
+
"""
|
2447
|
+
http_info = self._check_job_name_is_exists_http_info(request)
|
2448
|
+
return self._call_api(**http_info)
|
2449
|
+
|
2450
|
+
def check_job_name_is_exists_invoker(self, request):
|
2451
|
+
http_info = self._check_job_name_is_exists_http_info(request)
|
2452
|
+
return SyncInvoker(self, http_info)
|
1246
2453
|
|
1247
|
-
|
2454
|
+
@classmethod
|
2455
|
+
def _check_job_name_is_exists_http_info(cls, request):
|
2456
|
+
http_info = {
|
2457
|
+
"method": "GET",
|
2458
|
+
"resource_path": "/v1/job/check/exist",
|
2459
|
+
"request_type": request.__class__.__name__,
|
2460
|
+
"response_type": "CheckJobNameIsExistsResponse"
|
2461
|
+
}
|
2462
|
+
|
2463
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
2464
|
+
|
2465
|
+
cname = None
|
2466
|
+
|
2467
|
+
collection_formats = {}
|
2468
|
+
|
2469
|
+
path_params = {}
|
2470
|
+
|
2471
|
+
query_params = []
|
2472
|
+
if 'project_id' in local_var_params:
|
2473
|
+
query_params.append(('project_id', local_var_params['project_id']))
|
2474
|
+
if 'job_name' in local_var_params:
|
2475
|
+
query_params.append(('job_name', local_var_params['job_name']))
|
2476
|
+
|
2477
|
+
header_params = {}
|
2478
|
+
|
2479
|
+
form_params = {}
|
2480
|
+
|
2481
|
+
body = None
|
2482
|
+
if isinstance(request, SdkStreamRequest):
|
2483
|
+
body = request.get_file_stream()
|
2484
|
+
|
2485
|
+
response_headers = []
|
2486
|
+
|
2487
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
2488
|
+
['application/json'])
|
2489
|
+
|
2490
|
+
auth_settings = ['apig-auth-iam']
|
2491
|
+
|
2492
|
+
http_info["cname"] = cname
|
2493
|
+
http_info["collection_formats"] = collection_formats
|
2494
|
+
http_info["path_params"] = path_params
|
2495
|
+
http_info["query_params"] = query_params
|
2496
|
+
http_info["header_params"] = header_params
|
2497
|
+
http_info["post_params"] = form_params
|
2498
|
+
http_info["body"] = body
|
2499
|
+
http_info["response_headers"] = response_headers
|
2500
|
+
|
2501
|
+
return http_info
|
2502
|
+
|
2503
|
+
def list_build_parameter(self, request):
|
2504
|
+
r"""详情页获取构建参数
|
2505
|
+
|
2506
|
+
详情页获取构建参数
|
1248
2507
|
|
1249
2508
|
Please refer to HUAWEI cloud API Explorer for details.
|
1250
2509
|
|
1251
|
-
:param request: Request instance for
|
1252
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1253
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2510
|
+
:param request: Request instance for ListBuildParameter
|
2511
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildParameterRequest`
|
2512
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildParameterResponse`
|
1254
2513
|
"""
|
1255
|
-
http_info = self.
|
2514
|
+
http_info = self._list_build_parameter_http_info(request)
|
1256
2515
|
return self._call_api(**http_info)
|
1257
2516
|
|
1258
|
-
def
|
1259
|
-
http_info = self.
|
2517
|
+
def list_build_parameter_invoker(self, request):
|
2518
|
+
http_info = self._list_build_parameter_http_info(request)
|
1260
2519
|
return SyncInvoker(self, http_info)
|
1261
2520
|
|
1262
2521
|
@classmethod
|
1263
|
-
def
|
2522
|
+
def _list_build_parameter_http_info(cls, request):
|
1264
2523
|
http_info = {
|
1265
2524
|
"method": "GET",
|
1266
|
-
"resource_path": "/v1/
|
2525
|
+
"resource_path": "/v1/job/{job_id}/{build_no}/history-parameters",
|
1267
2526
|
"request_type": request.__class__.__name__,
|
1268
|
-
"response_type": "
|
2527
|
+
"response_type": "ListBuildParameterResponse"
|
1269
2528
|
}
|
1270
2529
|
|
1271
2530
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1275,14 +2534,12 @@ class CodeArtsBuildClient(Client):
|
|
1275
2534
|
collection_formats = {}
|
1276
2535
|
|
1277
2536
|
path_params = {}
|
2537
|
+
if 'job_id' in local_var_params:
|
2538
|
+
path_params['job_id'] = local_var_params['job_id']
|
2539
|
+
if 'build_no' in local_var_params:
|
2540
|
+
path_params['build_no'] = local_var_params['build_no']
|
1278
2541
|
|
1279
2542
|
query_params = []
|
1280
|
-
if 'name' in local_var_params:
|
1281
|
-
query_params.append(('name', local_var_params['name']))
|
1282
|
-
if 'page' in local_var_params:
|
1283
|
-
query_params.append(('page', local_var_params['page']))
|
1284
|
-
if 'page_size' in local_var_params:
|
1285
|
-
query_params.append(('page_size', local_var_params['page_size']))
|
1286
2543
|
|
1287
2544
|
header_params = {}
|
1288
2545
|
|
@@ -1310,31 +2567,31 @@ class CodeArtsBuildClient(Client):
|
|
1310
2567
|
|
1311
2568
|
return http_info
|
1312
2569
|
|
1313
|
-
def
|
1314
|
-
r"""
|
2570
|
+
def list_job(self, request):
|
2571
|
+
r"""查看用户全部的构建任务列表
|
1315
2572
|
|
1316
|
-
|
2573
|
+
查看用户全部的构建任务列表
|
1317
2574
|
|
1318
2575
|
Please refer to HUAWEI cloud API Explorer for details.
|
1319
2576
|
|
1320
|
-
:param request: Request instance for
|
1321
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1322
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2577
|
+
:param request: Request instance for ListJob
|
2578
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobRequest`
|
2579
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobResponse`
|
1323
2580
|
"""
|
1324
|
-
http_info = self.
|
2581
|
+
http_info = self._list_job_http_info(request)
|
1325
2582
|
return self._call_api(**http_info)
|
1326
2583
|
|
1327
|
-
def
|
1328
|
-
http_info = self.
|
2584
|
+
def list_job_invoker(self, request):
|
2585
|
+
http_info = self._list_job_http_info(request)
|
1329
2586
|
return SyncInvoker(self, http_info)
|
1330
2587
|
|
1331
2588
|
@classmethod
|
1332
|
-
def
|
2589
|
+
def _list_job_http_info(cls, request):
|
1333
2590
|
http_info = {
|
1334
2591
|
"method": "GET",
|
1335
|
-
"resource_path": "/v1/job/
|
2592
|
+
"resource_path": "/v1/job/list",
|
1336
2593
|
"request_type": request.__class__.__name__,
|
1337
|
-
"response_type": "
|
2594
|
+
"response_type": "ListJobResponse"
|
1338
2595
|
}
|
1339
2596
|
|
1340
2597
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1344,28 +2601,8 @@ class CodeArtsBuildClient(Client):
|
|
1344
2601
|
collection_formats = {}
|
1345
2602
|
|
1346
2603
|
path_params = {}
|
1347
|
-
if 'project_id' in local_var_params:
|
1348
|
-
path_params['project_id'] = local_var_params['project_id']
|
1349
2604
|
|
1350
2605
|
query_params = []
|
1351
|
-
if 'page_index' in local_var_params:
|
1352
|
-
query_params.append(('page_index', local_var_params['page_index']))
|
1353
|
-
if 'page_size' in local_var_params:
|
1354
|
-
query_params.append(('page_size', local_var_params['page_size']))
|
1355
|
-
if 'search' in local_var_params:
|
1356
|
-
query_params.append(('search', local_var_params['search']))
|
1357
|
-
if 'sort_field' in local_var_params:
|
1358
|
-
query_params.append(('sort_field', local_var_params['sort_field']))
|
1359
|
-
if 'sort_order' in local_var_params:
|
1360
|
-
query_params.append(('sort_order', local_var_params['sort_order']))
|
1361
|
-
if 'creator_id' in local_var_params:
|
1362
|
-
query_params.append(('creator_id', local_var_params['creator_id']))
|
1363
|
-
if 'build_status' in local_var_params:
|
1364
|
-
query_params.append(('build_status', local_var_params['build_status']))
|
1365
|
-
if 'by_group' in local_var_params:
|
1366
|
-
query_params.append(('by_group', local_var_params['by_group']))
|
1367
|
-
if 'group_path_id' in local_var_params:
|
1368
|
-
query_params.append(('group_path_id', local_var_params['group_path_id']))
|
1369
2606
|
|
1370
2607
|
header_params = {}
|
1371
2608
|
|
@@ -1393,31 +2630,31 @@ class CodeArtsBuildClient(Client):
|
|
1393
2630
|
|
1394
2631
|
return http_info
|
1395
2632
|
|
1396
|
-
def
|
1397
|
-
r"""
|
2633
|
+
def list_project_jobs(self, request):
|
2634
|
+
r"""查询项目任务列表
|
1398
2635
|
|
1399
|
-
|
2636
|
+
查询项目任务列表
|
1400
2637
|
|
1401
2638
|
Please refer to HUAWEI cloud API Explorer for details.
|
1402
2639
|
|
1403
|
-
:param request: Request instance for
|
1404
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1405
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2640
|
+
:param request: Request instance for ListProjectJobs
|
2641
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListProjectJobsRequest`
|
2642
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListProjectJobsResponse`
|
1406
2643
|
"""
|
1407
|
-
http_info = self.
|
2644
|
+
http_info = self._list_project_jobs_http_info(request)
|
1408
2645
|
return self._call_api(**http_info)
|
1409
2646
|
|
1410
|
-
def
|
1411
|
-
http_info = self.
|
2647
|
+
def list_project_jobs_invoker(self, request):
|
2648
|
+
http_info = self._list_project_jobs_http_info(request)
|
1412
2649
|
return SyncInvoker(self, http_info)
|
1413
2650
|
|
1414
2651
|
@classmethod
|
1415
|
-
def
|
2652
|
+
def _list_project_jobs_http_info(cls, request):
|
1416
2653
|
http_info = {
|
1417
2654
|
"method": "GET",
|
1418
|
-
"resource_path": "/v1/
|
2655
|
+
"resource_path": "/v1/job/{project_id}/list",
|
1419
2656
|
"request_type": request.__class__.__name__,
|
1420
|
-
"response_type": "
|
2657
|
+
"response_type": "ListProjectJobsResponse"
|
1421
2658
|
}
|
1422
2659
|
|
1423
2660
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1427,27 +2664,28 @@ class CodeArtsBuildClient(Client):
|
|
1427
2664
|
collection_formats = {}
|
1428
2665
|
|
1429
2666
|
path_params = {}
|
1430
|
-
if '
|
1431
|
-
path_params['
|
2667
|
+
if 'project_id' in local_var_params:
|
2668
|
+
path_params['project_id'] = local_var_params['project_id']
|
1432
2669
|
|
1433
2670
|
query_params = []
|
1434
|
-
if '
|
1435
|
-
query_params.append(('
|
1436
|
-
if '
|
1437
|
-
query_params.append(('
|
1438
|
-
if '
|
1439
|
-
query_params.append(('
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
if '
|
1445
|
-
query_params.append(('
|
1446
|
-
|
1447
|
-
|
1448
|
-
|
1449
|
-
|
1450
|
-
|
2671
|
+
if 'page_index' in local_var_params:
|
2672
|
+
query_params.append(('page_index', local_var_params['page_index']))
|
2673
|
+
if 'page_size' in local_var_params:
|
2674
|
+
query_params.append(('page_size', local_var_params['page_size']))
|
2675
|
+
if 'search' in local_var_params:
|
2676
|
+
query_params.append(('search', local_var_params['search']))
|
2677
|
+
if 'sort_field' in local_var_params:
|
2678
|
+
query_params.append(('sort_field', local_var_params['sort_field']))
|
2679
|
+
if 'sort_order' in local_var_params:
|
2680
|
+
query_params.append(('sort_order', local_var_params['sort_order']))
|
2681
|
+
if 'creator_id' in local_var_params:
|
2682
|
+
query_params.append(('creator_id', local_var_params['creator_id']))
|
2683
|
+
if 'build_status' in local_var_params:
|
2684
|
+
query_params.append(('build_status', local_var_params['build_status']))
|
2685
|
+
if 'by_group' in local_var_params:
|
2686
|
+
query_params.append(('by_group', local_var_params['by_group']))
|
2687
|
+
if 'group_path_id' in local_var_params:
|
2688
|
+
query_params.append(('group_path_id', local_var_params['group_path_id']))
|
1451
2689
|
|
1452
2690
|
header_params = {}
|
1453
2691
|
|
@@ -1544,31 +2782,31 @@ class CodeArtsBuildClient(Client):
|
|
1544
2782
|
|
1545
2783
|
return http_info
|
1546
2784
|
|
1547
|
-
def
|
1548
|
-
r"""
|
2785
|
+
def list_update_job_history(self, request):
|
2786
|
+
r"""获取修改历史
|
1549
2787
|
|
1550
|
-
|
2788
|
+
获取修改历史
|
1551
2789
|
|
1552
2790
|
Please refer to HUAWEI cloud API Explorer for details.
|
1553
2791
|
|
1554
|
-
:param request: Request instance for
|
1555
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1556
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2792
|
+
:param request: Request instance for ListUpdateJobHistory
|
2793
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListUpdateJobHistoryRequest`
|
2794
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListUpdateJobHistoryResponse`
|
1557
2795
|
"""
|
1558
|
-
http_info = self.
|
2796
|
+
http_info = self._list_update_job_history_http_info(request)
|
1559
2797
|
return self._call_api(**http_info)
|
1560
2798
|
|
1561
|
-
def
|
1562
|
-
http_info = self.
|
2799
|
+
def list_update_job_history_invoker(self, request):
|
2800
|
+
http_info = self._list_update_job_history_http_info(request)
|
1563
2801
|
return SyncInvoker(self, http_info)
|
1564
2802
|
|
1565
2803
|
@classmethod
|
1566
|
-
def
|
2804
|
+
def _list_update_job_history_http_info(cls, request):
|
1567
2805
|
http_info = {
|
1568
2806
|
"method": "GET",
|
1569
|
-
"resource_path": "/v1/
|
2807
|
+
"resource_path": "/v1/job/{job_id}/history",
|
1570
2808
|
"request_type": request.__class__.__name__,
|
1571
|
-
"response_type": "
|
2809
|
+
"response_type": "ListUpdateJobHistoryResponse"
|
1572
2810
|
}
|
1573
2811
|
|
1574
2812
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1578,14 +2816,14 @@ class CodeArtsBuildClient(Client):
|
|
1578
2816
|
collection_formats = {}
|
1579
2817
|
|
1580
2818
|
path_params = {}
|
2819
|
+
if 'job_id' in local_var_params:
|
2820
|
+
path_params['job_id'] = local_var_params['job_id']
|
1581
2821
|
|
1582
2822
|
query_params = []
|
1583
|
-
if 'page_size' in local_var_params:
|
1584
|
-
query_params.append(('page_size', local_var_params['page_size']))
|
1585
2823
|
if 'page_no' in local_var_params:
|
1586
2824
|
query_params.append(('page_no', local_var_params['page_no']))
|
1587
|
-
if '
|
1588
|
-
query_params.append(('
|
2825
|
+
if 'page_size' in local_var_params:
|
2826
|
+
query_params.append(('page_size', local_var_params['page_size']))
|
1589
2827
|
|
1590
2828
|
header_params = {}
|
1591
2829
|
|
@@ -1613,31 +2851,31 @@ class CodeArtsBuildClient(Client):
|
|
1613
2851
|
|
1614
2852
|
return http_info
|
1615
2853
|
|
1616
|
-
def
|
1617
|
-
r"""
|
2854
|
+
def show_build_params_list(self, request):
|
2855
|
+
r"""编辑页获取参数类型的接口
|
1618
2856
|
|
1619
|
-
|
2857
|
+
编辑页获取参数类型的接口
|
1620
2858
|
|
1621
2859
|
Please refer to HUAWEI cloud API Explorer for details.
|
1622
2860
|
|
1623
|
-
:param request: Request instance for
|
1624
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1625
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2861
|
+
:param request: Request instance for ShowBuildParamsList
|
2862
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildParamsListRequest`
|
2863
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildParamsListResponse`
|
1626
2864
|
"""
|
1627
|
-
http_info = self.
|
2865
|
+
http_info = self._show_build_params_list_http_info(request)
|
1628
2866
|
return self._call_api(**http_info)
|
1629
2867
|
|
1630
|
-
def
|
1631
|
-
http_info = self.
|
2868
|
+
def show_build_params_list_invoker(self, request):
|
2869
|
+
http_info = self._show_build_params_list_http_info(request)
|
1632
2870
|
return SyncInvoker(self, http_info)
|
1633
2871
|
|
1634
2872
|
@classmethod
|
1635
|
-
def
|
2873
|
+
def _show_build_params_list_http_info(cls, request):
|
1636
2874
|
http_info = {
|
1637
2875
|
"method": "GET",
|
1638
|
-
"resource_path": "/
|
2876
|
+
"resource_path": "/v1/job/build-params",
|
1639
2877
|
"request_type": request.__class__.__name__,
|
1640
|
-
"response_type": "
|
2878
|
+
"response_type": "ShowBuildParamsListResponse"
|
1641
2879
|
}
|
1642
2880
|
|
1643
2881
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1649,12 +2887,6 @@ class CodeArtsBuildClient(Client):
|
|
1649
2887
|
path_params = {}
|
1650
2888
|
|
1651
2889
|
query_params = []
|
1652
|
-
if 'name' in local_var_params:
|
1653
|
-
query_params.append(('name', local_var_params['name']))
|
1654
|
-
if 'page' in local_var_params:
|
1655
|
-
query_params.append(('page', local_var_params['page']))
|
1656
|
-
if 'page_size' in local_var_params:
|
1657
|
-
query_params.append(('page_size', local_var_params['page_size']))
|
1658
2890
|
|
1659
2891
|
header_params = {}
|
1660
2892
|
|
@@ -1682,31 +2914,31 @@ class CodeArtsBuildClient(Client):
|
|
1682
2914
|
|
1683
2915
|
return http_info
|
1684
2916
|
|
1685
|
-
def
|
1686
|
-
r"""
|
2917
|
+
def show_copy_name(self, request):
|
2918
|
+
r"""复制任务名
|
1687
2919
|
|
1688
|
-
|
2920
|
+
复制任务名
|
1689
2921
|
|
1690
2922
|
Please refer to HUAWEI cloud API Explorer for details.
|
1691
2923
|
|
1692
|
-
:param request: Request instance for
|
1693
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1694
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2924
|
+
:param request: Request instance for ShowCopyName
|
2925
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowCopyNameRequest`
|
2926
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowCopyNameResponse`
|
1695
2927
|
"""
|
1696
|
-
http_info = self.
|
2928
|
+
http_info = self._show_copy_name_http_info(request)
|
1697
2929
|
return self._call_api(**http_info)
|
1698
2930
|
|
1699
|
-
def
|
1700
|
-
http_info = self.
|
2931
|
+
def show_copy_name_invoker(self, request):
|
2932
|
+
http_info = self._show_copy_name_http_info(request)
|
1701
2933
|
return SyncInvoker(self, http_info)
|
1702
2934
|
|
1703
2935
|
@classmethod
|
1704
|
-
def
|
2936
|
+
def _show_copy_name_http_info(cls, request):
|
1705
2937
|
http_info = {
|
1706
|
-
"method": "
|
1707
|
-
"resource_path": "/
|
2938
|
+
"method": "GET",
|
2939
|
+
"resource_path": "/v1/job/{job_id}/copy-name",
|
1708
2940
|
"request_type": request.__class__.__name__,
|
1709
|
-
"response_type": "
|
2941
|
+
"response_type": "ShowCopyNameResponse"
|
1710
2942
|
}
|
1711
2943
|
|
1712
2944
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1716,6 +2948,8 @@ class CodeArtsBuildClient(Client):
|
|
1716
2948
|
collection_formats = {}
|
1717
2949
|
|
1718
2950
|
path_params = {}
|
2951
|
+
if 'job_id' in local_var_params:
|
2952
|
+
path_params['job_id'] = local_var_params['job_id']
|
1719
2953
|
|
1720
2954
|
query_params = []
|
1721
2955
|
|
@@ -1724,8 +2958,6 @@ class CodeArtsBuildClient(Client):
|
|
1724
2958
|
form_params = {}
|
1725
2959
|
|
1726
2960
|
body = None
|
1727
|
-
if 'body' in local_var_params:
|
1728
|
-
body = local_var_params['body']
|
1729
2961
|
if isinstance(request, SdkStreamRequest):
|
1730
2962
|
body = request.get_file_stream()
|
1731
2963
|
|
@@ -1747,31 +2979,31 @@ class CodeArtsBuildClient(Client):
|
|
1747
2979
|
|
1748
2980
|
return http_info
|
1749
2981
|
|
1750
|
-
def
|
1751
|
-
r"""
|
2982
|
+
def show_default_build_parameters(self, request):
|
2983
|
+
r"""获取编译构建默认参数
|
1752
2984
|
|
1753
|
-
|
2985
|
+
获取编译构建默认参数
|
1754
2986
|
|
1755
2987
|
Please refer to HUAWEI cloud API Explorer for details.
|
1756
2988
|
|
1757
|
-
:param request: Request instance for
|
1758
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1759
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2989
|
+
:param request: Request instance for ShowDefaultBuildParameters
|
2990
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultBuildParametersRequest`
|
2991
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultBuildParametersResponse`
|
1760
2992
|
"""
|
1761
|
-
http_info = self.
|
2993
|
+
http_info = self._show_default_build_parameters_http_info(request)
|
1762
2994
|
return self._call_api(**http_info)
|
1763
2995
|
|
1764
|
-
def
|
1765
|
-
http_info = self.
|
2996
|
+
def show_default_build_parameters_invoker(self, request):
|
2997
|
+
http_info = self._show_default_build_parameters_http_info(request)
|
1766
2998
|
return SyncInvoker(self, http_info)
|
1767
2999
|
|
1768
3000
|
@classmethod
|
1769
|
-
def
|
3001
|
+
def _show_default_build_parameters_http_info(cls, request):
|
1770
3002
|
http_info = {
|
1771
3003
|
"method": "GET",
|
1772
|
-
"resource_path": "/v1/
|
3004
|
+
"resource_path": "/v1/job/default-parameters",
|
1773
3005
|
"request_type": request.__class__.__name__,
|
1774
|
-
"response_type": "
|
3006
|
+
"response_type": "ShowDefaultBuildParametersResponse"
|
1775
3007
|
}
|
1776
3008
|
|
1777
3009
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1781,10 +3013,6 @@ class CodeArtsBuildClient(Client):
|
|
1781
3013
|
collection_formats = {}
|
1782
3014
|
|
1783
3015
|
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
3016
|
|
1789
3017
|
query_params = []
|
1790
3018
|
|
@@ -1814,31 +3042,31 @@ class CodeArtsBuildClient(Client):
|
|
1814
3042
|
|
1815
3043
|
return http_info
|
1816
3044
|
|
1817
|
-
def
|
1818
|
-
r"""
|
3045
|
+
def show_default_project_permission(self, request):
|
3046
|
+
r"""获取当前项目默认角色权限矩阵信息
|
1819
3047
|
|
1820
|
-
|
3048
|
+
获取当前项目默认角色权限矩阵信息
|
1821
3049
|
|
1822
3050
|
Please refer to HUAWEI cloud API Explorer for details.
|
1823
3051
|
|
1824
|
-
:param request: Request instance for
|
1825
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1826
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3052
|
+
:param request: Request instance for ShowDefaultProjectPermission
|
3053
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultProjectPermissionRequest`
|
3054
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultProjectPermissionResponse`
|
1827
3055
|
"""
|
1828
|
-
http_info = self.
|
3056
|
+
http_info = self._show_default_project_permission_http_info(request)
|
1829
3057
|
return self._call_api(**http_info)
|
1830
3058
|
|
1831
|
-
def
|
1832
|
-
http_info = self.
|
3059
|
+
def show_default_project_permission_invoker(self, request):
|
3060
|
+
http_info = self._show_default_project_permission_http_info(request)
|
1833
3061
|
return SyncInvoker(self, http_info)
|
1834
3062
|
|
1835
3063
|
@classmethod
|
1836
|
-
def
|
3064
|
+
def _show_default_project_permission_http_info(cls, request):
|
1837
3065
|
http_info = {
|
1838
3066
|
"method": "GET",
|
1839
|
-
"resource_path": "/v1/job/
|
3067
|
+
"resource_path": "/v1/job/project/default-permission",
|
1840
3068
|
"request_type": request.__class__.__name__,
|
1841
|
-
"response_type": "
|
3069
|
+
"response_type": "ShowDefaultProjectPermissionResponse"
|
1842
3070
|
}
|
1843
3071
|
|
1844
3072
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1850,6 +3078,10 @@ class CodeArtsBuildClient(Client):
|
|
1850
3078
|
path_params = {}
|
1851
3079
|
|
1852
3080
|
query_params = []
|
3081
|
+
if 'project_id' in local_var_params:
|
3082
|
+
query_params.append(('project_id', local_var_params['project_id']))
|
3083
|
+
if 'job_id' in local_var_params:
|
3084
|
+
query_params.append(('job_id', local_var_params['job_id']))
|
1853
3085
|
|
1854
3086
|
header_params = {}
|
1855
3087
|
|
@@ -1877,31 +3109,31 @@ class CodeArtsBuildClient(Client):
|
|
1877
3109
|
|
1878
3110
|
return http_info
|
1879
3111
|
|
1880
|
-
def
|
1881
|
-
r"""
|
3112
|
+
def show_disable(self, request):
|
3113
|
+
r"""查询任务是否已禁用
|
1882
3114
|
|
1883
|
-
|
3115
|
+
查询任务是否已禁用
|
1884
3116
|
|
1885
3117
|
Please refer to HUAWEI cloud API Explorer for details.
|
1886
3118
|
|
1887
|
-
:param request: Request instance for
|
1888
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1889
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3119
|
+
:param request: Request instance for ShowDisable
|
3120
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDisableRequest`
|
3121
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDisableResponse`
|
1890
3122
|
"""
|
1891
|
-
http_info = self.
|
3123
|
+
http_info = self._show_disable_http_info(request)
|
1892
3124
|
return self._call_api(**http_info)
|
1893
3125
|
|
1894
|
-
def
|
1895
|
-
http_info = self.
|
3126
|
+
def show_disable_invoker(self, request):
|
3127
|
+
http_info = self._show_disable_http_info(request)
|
1896
3128
|
return SyncInvoker(self, http_info)
|
1897
3129
|
|
1898
3130
|
@classmethod
|
1899
|
-
def
|
3131
|
+
def _show_disable_http_info(cls, request):
|
1900
3132
|
http_info = {
|
1901
3133
|
"method": "GET",
|
1902
|
-
"resource_path": "/v1/
|
3134
|
+
"resource_path": "/v1/job/{job_id}/check/disable",
|
1903
3135
|
"request_type": request.__class__.__name__,
|
1904
|
-
"response_type": "
|
3136
|
+
"response_type": "ShowDisableResponse"
|
1905
3137
|
}
|
1906
3138
|
|
1907
3139
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1911,8 +3143,8 @@ class CodeArtsBuildClient(Client):
|
|
1911
3143
|
collection_formats = {}
|
1912
3144
|
|
1913
3145
|
path_params = {}
|
1914
|
-
if '
|
1915
|
-
path_params['
|
3146
|
+
if 'job_id' in local_var_params:
|
3147
|
+
path_params['job_id'] = local_var_params['job_id']
|
1916
3148
|
|
1917
3149
|
query_params = []
|
1918
3150
|
|
@@ -1942,31 +3174,31 @@ class CodeArtsBuildClient(Client):
|
|
1942
3174
|
|
1943
3175
|
return http_info
|
1944
3176
|
|
1945
|
-
def
|
1946
|
-
r"""
|
3177
|
+
def show_job_config(self, request):
|
3178
|
+
r"""获取构建任务详情
|
1947
3179
|
|
1948
|
-
|
3180
|
+
获取构建任务详情
|
1949
3181
|
|
1950
3182
|
Please refer to HUAWEI cloud API Explorer for details.
|
1951
3183
|
|
1952
|
-
:param request: Request instance for
|
1953
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1954
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3184
|
+
:param request: Request instance for ShowJobConfig
|
3185
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigRequest`
|
3186
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigResponse`
|
1955
3187
|
"""
|
1956
|
-
http_info = self.
|
3188
|
+
http_info = self._show_job_config_http_info(request)
|
1957
3189
|
return self._call_api(**http_info)
|
1958
3190
|
|
1959
|
-
def
|
1960
|
-
http_info = self.
|
3191
|
+
def show_job_config_invoker(self, request):
|
3192
|
+
http_info = self._show_job_config_http_info(request)
|
1961
3193
|
return SyncInvoker(self, http_info)
|
1962
3194
|
|
1963
3195
|
@classmethod
|
1964
|
-
def
|
3196
|
+
def _show_job_config_http_info(cls, request):
|
1965
3197
|
http_info = {
|
1966
3198
|
"method": "GET",
|
1967
|
-
"resource_path": "/v1/
|
3199
|
+
"resource_path": "/v1/job/{job_id}/config",
|
1968
3200
|
"request_type": request.__class__.__name__,
|
1969
|
-
"response_type": "
|
3201
|
+
"response_type": "ShowJobConfigResponse"
|
1970
3202
|
}
|
1971
3203
|
|
1972
3204
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -1976,10 +3208,12 @@ class CodeArtsBuildClient(Client):
|
|
1976
3208
|
collection_formats = {}
|
1977
3209
|
|
1978
3210
|
path_params = {}
|
1979
|
-
if '
|
1980
|
-
path_params['
|
3211
|
+
if 'job_id' in local_var_params:
|
3212
|
+
path_params['job_id'] = local_var_params['job_id']
|
1981
3213
|
|
1982
3214
|
query_params = []
|
3215
|
+
if 'get_all_params' in local_var_params:
|
3216
|
+
query_params.append(('get_all_params', local_var_params['get_all_params']))
|
1983
3217
|
|
1984
3218
|
header_params = {}
|
1985
3219
|
|
@@ -2007,31 +3241,31 @@ class CodeArtsBuildClient(Client):
|
|
2007
3241
|
|
2008
3242
|
return http_info
|
2009
3243
|
|
2010
|
-
def
|
2011
|
-
r"""
|
3244
|
+
def show_job_config_diff(self, request):
|
3245
|
+
r"""获取构建任务配置的对比差异
|
2012
3246
|
|
2013
|
-
|
3247
|
+
获取构建任务配置的对比差异
|
2014
3248
|
|
2015
3249
|
Please refer to HUAWEI cloud API Explorer for details.
|
2016
3250
|
|
2017
|
-
:param request: Request instance for
|
2018
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2019
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3251
|
+
:param request: Request instance for ShowJobConfigDiff
|
3252
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigDiffRequest`
|
3253
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigDiffResponse`
|
2020
3254
|
"""
|
2021
|
-
http_info = self.
|
3255
|
+
http_info = self._show_job_config_diff_http_info(request)
|
2022
3256
|
return self._call_api(**http_info)
|
2023
3257
|
|
2024
|
-
def
|
2025
|
-
http_info = self.
|
3258
|
+
def show_job_config_diff_invoker(self, request):
|
3259
|
+
http_info = self._show_job_config_diff_http_info(request)
|
2026
3260
|
return SyncInvoker(self, http_info)
|
2027
3261
|
|
2028
3262
|
@classmethod
|
2029
|
-
def
|
3263
|
+
def _show_job_config_diff_http_info(cls, request):
|
2030
3264
|
http_info = {
|
2031
3265
|
"method": "GET",
|
2032
|
-
"resource_path": "/v1/
|
3266
|
+
"resource_path": "/v1/job/{job_id}/diff",
|
2033
3267
|
"request_type": request.__class__.__name__,
|
2034
|
-
"response_type": "
|
3268
|
+
"response_type": "ShowJobConfigDiffResponse"
|
2035
3269
|
}
|
2036
3270
|
|
2037
3271
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -2041,12 +3275,14 @@ class CodeArtsBuildClient(Client):
|
|
2041
3275
|
collection_formats = {}
|
2042
3276
|
|
2043
3277
|
path_params = {}
|
2044
|
-
if '
|
2045
|
-
path_params['
|
3278
|
+
if 'job_id' in local_var_params:
|
3279
|
+
path_params['job_id'] = local_var_params['job_id']
|
2046
3280
|
|
2047
3281
|
query_params = []
|
2048
|
-
if '
|
2049
|
-
query_params.append(('
|
3282
|
+
if 'revisedl_no' in local_var_params:
|
3283
|
+
query_params.append(('revisedl_no', local_var_params['revisedl_no']))
|
3284
|
+
if 'original_no' in local_var_params:
|
3285
|
+
query_params.append(('original_no', local_var_params['original_no']))
|
2050
3286
|
|
2051
3287
|
header_params = {}
|
2052
3288
|
|
@@ -2074,31 +3310,31 @@ class CodeArtsBuildClient(Client):
|
|
2074
3310
|
|
2075
3311
|
return http_info
|
2076
3312
|
|
2077
|
-
def
|
2078
|
-
r"""
|
3313
|
+
def show_job_info(self, request):
|
3314
|
+
r"""查看构建任务构建信息
|
2079
3315
|
|
2080
|
-
|
3316
|
+
查看构建任务构建信息
|
2081
3317
|
|
2082
3318
|
Please refer to HUAWEI cloud API Explorer for details.
|
2083
3319
|
|
2084
|
-
:param request: Request instance for
|
2085
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2086
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3320
|
+
:param request: Request instance for ShowJobInfo
|
3321
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobInfoRequest`
|
3322
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobInfoResponse`
|
2087
3323
|
"""
|
2088
|
-
http_info = self.
|
3324
|
+
http_info = self._show_job_info_http_info(request)
|
2089
3325
|
return self._call_api(**http_info)
|
2090
3326
|
|
2091
|
-
def
|
2092
|
-
http_info = self.
|
3327
|
+
def show_job_info_invoker(self, request):
|
3328
|
+
http_info = self._show_job_info_http_info(request)
|
2093
3329
|
return SyncInvoker(self, http_info)
|
2094
3330
|
|
2095
3331
|
@classmethod
|
2096
|
-
def
|
3332
|
+
def _show_job_info_http_info(cls, request):
|
2097
3333
|
http_info = {
|
2098
3334
|
"method": "GET",
|
2099
|
-
"resource_path": "/v1/job/
|
3335
|
+
"resource_path": "/v1/job/{job_id}/info",
|
2100
3336
|
"request_type": request.__class__.__name__,
|
2101
|
-
"response_type": "
|
3337
|
+
"response_type": "ShowJobInfoResponse"
|
2102
3338
|
}
|
2103
3339
|
|
2104
3340
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -2108,6 +3344,8 @@ class CodeArtsBuildClient(Client):
|
|
2108
3344
|
collection_formats = {}
|
2109
3345
|
|
2110
3346
|
path_params = {}
|
3347
|
+
if 'job_id' in local_var_params:
|
3348
|
+
path_params['job_id'] = local_var_params['job_id']
|
2111
3349
|
|
2112
3350
|
query_params = []
|
2113
3351
|
|
@@ -2137,31 +3375,31 @@ class CodeArtsBuildClient(Client):
|
|
2137
3375
|
|
2138
3376
|
return http_info
|
2139
3377
|
|
2140
|
-
def
|
2141
|
-
r"""
|
3378
|
+
def show_job_notice_config_info(self, request):
|
3379
|
+
r"""获取通知信息
|
2142
3380
|
|
2143
|
-
|
3381
|
+
获取通知信息
|
2144
3382
|
|
2145
3383
|
Please refer to HUAWEI cloud API Explorer for details.
|
2146
3384
|
|
2147
|
-
:param request: Request instance for
|
2148
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2149
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3385
|
+
:param request: Request instance for ShowJobNoticeConfigInfo
|
3386
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobNoticeConfigInfoRequest`
|
3387
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobNoticeConfigInfoResponse`
|
2150
3388
|
"""
|
2151
|
-
http_info = self.
|
3389
|
+
http_info = self._show_job_notice_config_info_http_info(request)
|
2152
3390
|
return self._call_api(**http_info)
|
2153
3391
|
|
2154
|
-
def
|
2155
|
-
http_info = self.
|
3392
|
+
def show_job_notice_config_info_invoker(self, request):
|
3393
|
+
http_info = self._show_job_notice_config_info_http_info(request)
|
2156
3394
|
return SyncInvoker(self, http_info)
|
2157
3395
|
|
2158
3396
|
@classmethod
|
2159
|
-
def
|
3397
|
+
def _show_job_notice_config_info_http_info(cls, request):
|
2160
3398
|
http_info = {
|
2161
3399
|
"method": "GET",
|
2162
|
-
"resource_path": "/v1/
|
3400
|
+
"resource_path": "/v1/job/{job_id}/notice",
|
2163
3401
|
"request_type": request.__class__.__name__,
|
2164
|
-
"response_type": "
|
3402
|
+
"response_type": "ShowJobNoticeConfigInfoResponse"
|
2165
3403
|
}
|
2166
3404
|
|
2167
3405
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -2171,10 +3409,10 @@ class CodeArtsBuildClient(Client):
|
|
2171
3409
|
collection_formats = {}
|
2172
3410
|
|
2173
3411
|
path_params = {}
|
3412
|
+
if 'job_id' in local_var_params:
|
3413
|
+
path_params['job_id'] = local_var_params['job_id']
|
2174
3414
|
|
2175
3415
|
query_params = []
|
2176
|
-
if 'image_id' in local_var_params:
|
2177
|
-
query_params.append(('image_id', local_var_params['image_id']))
|
2178
3416
|
|
2179
3417
|
header_params = {}
|
2180
3418
|
|
@@ -2202,31 +3440,31 @@ class CodeArtsBuildClient(Client):
|
|
2202
3440
|
|
2203
3441
|
return http_info
|
2204
3442
|
|
2205
|
-
def
|
2206
|
-
r"""
|
3443
|
+
def show_job_role_permission(self, request):
|
3444
|
+
r"""获取构建任务的角色权限矩阵信息
|
2207
3445
|
|
2208
|
-
|
3446
|
+
获取构建任务的角色权限矩阵信息
|
2209
3447
|
|
2210
3448
|
Please refer to HUAWEI cloud API Explorer for details.
|
2211
3449
|
|
2212
|
-
:param request: Request instance for
|
2213
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2214
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3450
|
+
:param request: Request instance for ShowJobRolePermission
|
3451
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobRolePermissionRequest`
|
3452
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobRolePermissionResponse`
|
2215
3453
|
"""
|
2216
|
-
http_info = self.
|
3454
|
+
http_info = self._show_job_role_permission_http_info(request)
|
2217
3455
|
return self._call_api(**http_info)
|
2218
3456
|
|
2219
|
-
def
|
2220
|
-
http_info = self.
|
3457
|
+
def show_job_role_permission_invoker(self, request):
|
3458
|
+
http_info = self._show_job_role_permission_http_info(request)
|
2221
3459
|
return SyncInvoker(self, http_info)
|
2222
3460
|
|
2223
3461
|
@classmethod
|
2224
|
-
def
|
3462
|
+
def _show_job_role_permission_http_info(cls, request):
|
2225
3463
|
http_info = {
|
2226
3464
|
"method": "GET",
|
2227
|
-
"resource_path": "/
|
3465
|
+
"resource_path": "/v1/job/permission/role",
|
2228
3466
|
"request_type": request.__class__.__name__,
|
2229
|
-
"response_type": "
|
3467
|
+
"response_type": "ShowJobRolePermissionResponse"
|
2230
3468
|
}
|
2231
3469
|
|
2232
3470
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -2236,12 +3474,10 @@ class CodeArtsBuildClient(Client):
|
|
2236
3474
|
collection_formats = {}
|
2237
3475
|
|
2238
3476
|
path_params = {}
|
2239
|
-
if 'job_id' in local_var_params:
|
2240
|
-
path_params['job_id'] = local_var_params['job_id']
|
2241
|
-
if 'build_number' in local_var_params:
|
2242
|
-
path_params['build_number'] = local_var_params['build_number']
|
2243
3477
|
|
2244
3478
|
query_params = []
|
3479
|
+
if 'job_id' in local_var_params:
|
3480
|
+
query_params.append(('job_id', local_var_params['job_id']))
|
2245
3481
|
|
2246
3482
|
header_params = {}
|
2247
3483
|
|
@@ -2269,31 +3505,31 @@ class CodeArtsBuildClient(Client):
|
|
2269
3505
|
|
2270
3506
|
return http_info
|
2271
3507
|
|
2272
|
-
def
|
2273
|
-
r"""
|
3508
|
+
def show_job_step_status(self, request):
|
3509
|
+
r"""查询任务状态
|
2274
3510
|
|
2275
|
-
|
3511
|
+
查询任务状态
|
2276
3512
|
|
2277
3513
|
Please refer to HUAWEI cloud API Explorer for details.
|
2278
3514
|
|
2279
|
-
:param request: Request instance for
|
2280
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2281
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3515
|
+
:param request: Request instance for ShowJobStepStatus
|
3516
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStepStatusRequest`
|
3517
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStepStatusResponse`
|
2282
3518
|
"""
|
2283
|
-
http_info = self.
|
3519
|
+
http_info = self._show_job_step_status_http_info(request)
|
2284
3520
|
return self._call_api(**http_info)
|
2285
3521
|
|
2286
|
-
def
|
2287
|
-
http_info = self.
|
3522
|
+
def show_job_step_status_invoker(self, request):
|
3523
|
+
http_info = self._show_job_step_status_http_info(request)
|
2288
3524
|
return SyncInvoker(self, http_info)
|
2289
3525
|
|
2290
3526
|
@classmethod
|
2291
|
-
def
|
3527
|
+
def _show_job_step_status_http_info(cls, request):
|
2292
3528
|
http_info = {
|
2293
3529
|
"method": "GET",
|
2294
|
-
"resource_path": "/v1/
|
3530
|
+
"resource_path": "/v1/job/{job_id}/status",
|
2295
3531
|
"request_type": request.__class__.__name__,
|
2296
|
-
"response_type": "
|
3532
|
+
"response_type": "ShowJobStepStatusResponse"
|
2297
3533
|
}
|
2298
3534
|
|
2299
3535
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -2303,8 +3539,12 @@ class CodeArtsBuildClient(Client):
|
|
2303
3539
|
collection_formats = {}
|
2304
3540
|
|
2305
3541
|
path_params = {}
|
3542
|
+
if 'job_id' in local_var_params:
|
3543
|
+
path_params['job_id'] = local_var_params['job_id']
|
2306
3544
|
|
2307
3545
|
query_params = []
|
3546
|
+
if 'build_no' in local_var_params:
|
3547
|
+
query_params.append(('build_no', local_var_params['build_no']))
|
2308
3548
|
|
2309
3549
|
header_params = {}
|
2310
3550
|
|
@@ -2332,31 +3572,31 @@ class CodeArtsBuildClient(Client):
|
|
2332
3572
|
|
2333
3573
|
return http_info
|
2334
3574
|
|
2335
|
-
def
|
2336
|
-
r"""
|
3575
|
+
def show_job_system_parameters(self, request):
|
3576
|
+
r"""查看系统预定义参数
|
2337
3577
|
|
2338
|
-
|
3578
|
+
查看系统预定义参数
|
2339
3579
|
|
2340
3580
|
Please refer to HUAWEI cloud API Explorer for details.
|
2341
3581
|
|
2342
|
-
:param request: Request instance for
|
2343
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2344
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3582
|
+
:param request: Request instance for ShowJobSystemParameters
|
3583
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSystemParametersRequest`
|
3584
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSystemParametersResponse`
|
2345
3585
|
"""
|
2346
|
-
http_info = self.
|
3586
|
+
http_info = self._show_job_system_parameters_http_info(request)
|
2347
3587
|
return self._call_api(**http_info)
|
2348
3588
|
|
2349
|
-
def
|
2350
|
-
http_info = self.
|
3589
|
+
def show_job_system_parameters_invoker(self, request):
|
3590
|
+
http_info = self._show_job_system_parameters_http_info(request)
|
2351
3591
|
return SyncInvoker(self, http_info)
|
2352
3592
|
|
2353
3593
|
@classmethod
|
2354
|
-
def
|
3594
|
+
def _show_job_system_parameters_http_info(cls, request):
|
2355
3595
|
http_info = {
|
2356
3596
|
"method": "GET",
|
2357
|
-
"resource_path": "/v1/
|
3597
|
+
"resource_path": "/v1/job/system-parameters",
|
2358
3598
|
"request_type": request.__class__.__name__,
|
2359
|
-
"response_type": "
|
3599
|
+
"response_type": "ShowJobSystemParametersResponse"
|
2360
3600
|
}
|
2361
3601
|
|
2362
3602
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -2368,14 +3608,6 @@ class CodeArtsBuildClient(Client):
|
|
2368
3608
|
path_params = {}
|
2369
3609
|
|
2370
3610
|
query_params = []
|
2371
|
-
if 'job_id' in local_var_params:
|
2372
|
-
query_params.append(('job_id', local_var_params['job_id']))
|
2373
|
-
if 'repository_name' in local_var_params:
|
2374
|
-
query_params.append(('repository_name', local_var_params['repository_name']))
|
2375
|
-
if 'branch' in local_var_params:
|
2376
|
-
query_params.append(('branch', local_var_params['branch']))
|
2377
|
-
if 'interval' in local_var_params:
|
2378
|
-
query_params.append(('interval', local_var_params['interval']))
|
2379
3611
|
|
2380
3612
|
header_params = {}
|
2381
3613
|
|
@@ -2403,31 +3635,31 @@ class CodeArtsBuildClient(Client):
|
|
2403
3635
|
|
2404
3636
|
return http_info
|
2405
3637
|
|
2406
|
-
def
|
2407
|
-
r"""
|
3638
|
+
def show_running_status(self, request):
|
3639
|
+
r"""查看任务是否在构建
|
2408
3640
|
|
2409
|
-
|
3641
|
+
查看任务是否在构建
|
2410
3642
|
|
2411
3643
|
Please refer to HUAWEI cloud API Explorer for details.
|
2412
3644
|
|
2413
|
-
:param request: Request instance for
|
2414
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2415
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3645
|
+
:param request: Request instance for ShowRunningStatus
|
3646
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRunningStatusRequest`
|
3647
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRunningStatusResponse`
|
2416
3648
|
"""
|
2417
|
-
http_info = self.
|
3649
|
+
http_info = self._show_running_status_http_info(request)
|
2418
3650
|
return self._call_api(**http_info)
|
2419
3651
|
|
2420
|
-
def
|
2421
|
-
http_info = self.
|
3652
|
+
def show_running_status_invoker(self, request):
|
3653
|
+
http_info = self._show_running_status_http_info(request)
|
2422
3654
|
return SyncInvoker(self, http_info)
|
2423
3655
|
|
2424
3656
|
@classmethod
|
2425
|
-
def
|
3657
|
+
def _show_running_status_http_info(cls, request):
|
2426
3658
|
http_info = {
|
2427
3659
|
"method": "GET",
|
2428
|
-
"resource_path": "/v1/
|
3660
|
+
"resource_path": "/v1/job/{job_id}/running-status",
|
2429
3661
|
"request_type": request.__class__.__name__,
|
2430
|
-
"response_type": "
|
3662
|
+
"response_type": "ShowRunningStatusResponse"
|
2431
3663
|
}
|
2432
3664
|
|
2433
3665
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -2437,16 +3669,10 @@ class CodeArtsBuildClient(Client):
|
|
2437
3669
|
collection_formats = {}
|
2438
3670
|
|
2439
3671
|
path_params = {}
|
3672
|
+
if 'job_id' in local_var_params:
|
3673
|
+
path_params['job_id'] = local_var_params['job_id']
|
2440
3674
|
|
2441
3675
|
query_params = []
|
2442
|
-
if 'job_id' in local_var_params:
|
2443
|
-
query_params.append(('job_id', local_var_params['job_id']))
|
2444
|
-
if 'repository_name' in local_var_params:
|
2445
|
-
query_params.append(('repository_name', local_var_params['repository_name']))
|
2446
|
-
if 'branch' in local_var_params:
|
2447
|
-
query_params.append(('branch', local_var_params['branch']))
|
2448
|
-
if 'interval' in local_var_params:
|
2449
|
-
query_params.append(('interval', local_var_params['interval']))
|
2450
3676
|
|
2451
3677
|
header_params = {}
|
2452
3678
|
|
@@ -2474,31 +3700,31 @@ class CodeArtsBuildClient(Client):
|
|
2474
3700
|
|
2475
3701
|
return http_info
|
2476
3702
|
|
2477
|
-
def
|
2478
|
-
r"""
|
3703
|
+
def download_keystore_by_name(self, request):
|
3704
|
+
r"""文件管理文件下载
|
2479
3705
|
|
2480
|
-
|
3706
|
+
文件管理文件下载
|
2481
3707
|
|
2482
3708
|
Please refer to HUAWEI cloud API Explorer for details.
|
2483
3709
|
|
2484
|
-
:param request: Request instance for
|
2485
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2486
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3710
|
+
:param request: Request instance for DownloadKeystoreByName
|
3711
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadKeystoreByNameRequest`
|
3712
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadKeystoreByNameResponse`
|
2487
3713
|
"""
|
2488
|
-
http_info = self.
|
3714
|
+
http_info = self._download_keystore_by_name_http_info(request)
|
2489
3715
|
return self._call_api(**http_info)
|
2490
3716
|
|
2491
|
-
def
|
2492
|
-
http_info = self.
|
3717
|
+
def download_keystore_by_name_invoker(self, request):
|
3718
|
+
http_info = self._download_keystore_by_name_http_info(request)
|
2493
3719
|
return SyncInvoker(self, http_info)
|
2494
3720
|
|
2495
3721
|
@classmethod
|
2496
|
-
def
|
3722
|
+
def _download_keystore_by_name_http_info(cls, request):
|
2497
3723
|
http_info = {
|
2498
3724
|
"method": "GET",
|
2499
|
-
"resource_path": "/
|
3725
|
+
"resource_path": "/v2/keystore/download",
|
2500
3726
|
"request_type": request.__class__.__name__,
|
2501
|
-
"response_type": "
|
3727
|
+
"response_type": "DownloadKeystoreByNameResponse"
|
2502
3728
|
}
|
2503
3729
|
|
2504
3730
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -2508,12 +3734,14 @@ class CodeArtsBuildClient(Client):
|
|
2508
3734
|
collection_formats = {}
|
2509
3735
|
|
2510
3736
|
path_params = {}
|
2511
|
-
if 'job_id' in local_var_params:
|
2512
|
-
path_params['job_id'] = local_var_params['job_id']
|
2513
3737
|
|
2514
3738
|
query_params = []
|
2515
|
-
if '
|
2516
|
-
query_params.append(('
|
3739
|
+
if 'name' in local_var_params:
|
3740
|
+
query_params.append(('name', local_var_params['name']))
|
3741
|
+
if 'domain_id' in local_var_params:
|
3742
|
+
query_params.append(('domain_id', local_var_params['domain_id']))
|
3743
|
+
if 'id' in local_var_params:
|
3744
|
+
query_params.append(('id', local_var_params['id']))
|
2517
3745
|
|
2518
3746
|
header_params = {}
|
2519
3747
|
|
@@ -2541,31 +3769,31 @@ class CodeArtsBuildClient(Client):
|
|
2541
3769
|
|
2542
3770
|
return http_info
|
2543
3771
|
|
2544
|
-
def
|
2545
|
-
r"""
|
3772
|
+
def list_keystore(self, request):
|
3773
|
+
r"""查询用户可使用文件
|
2546
3774
|
|
2547
|
-
|
3775
|
+
查询用户可使用文件
|
2548
3776
|
|
2549
3777
|
Please refer to HUAWEI cloud API Explorer for details.
|
2550
3778
|
|
2551
|
-
:param request: Request instance for
|
2552
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2553
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3779
|
+
:param request: Request instance for ListKeystore
|
3780
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListKeystoreRequest`
|
3781
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListKeystoreResponse`
|
2554
3782
|
"""
|
2555
|
-
http_info = self.
|
3783
|
+
http_info = self._list_keystore_http_info(request)
|
2556
3784
|
return self._call_api(**http_info)
|
2557
3785
|
|
2558
|
-
def
|
2559
|
-
http_info = self.
|
3786
|
+
def list_keystore_invoker(self, request):
|
3787
|
+
http_info = self._list_keystore_http_info(request)
|
2560
3788
|
return SyncInvoker(self, http_info)
|
2561
3789
|
|
2562
3790
|
@classmethod
|
2563
|
-
def
|
3791
|
+
def _list_keystore_http_info(cls, request):
|
2564
3792
|
http_info = {
|
2565
3793
|
"method": "GET",
|
2566
|
-
"resource_path": "/
|
3794
|
+
"resource_path": "/v2/keystore/name",
|
2567
3795
|
"request_type": request.__class__.__name__,
|
2568
|
-
"response_type": "
|
3796
|
+
"response_type": "ListKeystoreResponse"
|
2569
3797
|
}
|
2570
3798
|
|
2571
3799
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -2575,14 +3803,8 @@ class CodeArtsBuildClient(Client):
|
|
2575
3803
|
collection_formats = {}
|
2576
3804
|
|
2577
3805
|
path_params = {}
|
2578
|
-
if 'job_id' in local_var_params:
|
2579
|
-
path_params['job_id'] = local_var_params['job_id']
|
2580
3806
|
|
2581
3807
|
query_params = []
|
2582
|
-
if 'revisedl_no' in local_var_params:
|
2583
|
-
query_params.append(('revisedl_no', local_var_params['revisedl_no']))
|
2584
|
-
if 'original_no' in local_var_params:
|
2585
|
-
query_params.append(('original_no', local_var_params['original_no']))
|
2586
3808
|
|
2587
3809
|
header_params = {}
|
2588
3810
|
|
@@ -2610,31 +3832,31 @@ class CodeArtsBuildClient(Client):
|
|
2610
3832
|
|
2611
3833
|
return http_info
|
2612
3834
|
|
2613
|
-
def
|
2614
|
-
r"""
|
3835
|
+
def list_keystore_search(self, request):
|
3836
|
+
r"""查询租户下文件列表
|
2615
3837
|
|
2616
|
-
|
3838
|
+
查询租户下文件列表
|
2617
3839
|
|
2618
3840
|
Please refer to HUAWEI cloud API Explorer for details.
|
2619
3841
|
|
2620
|
-
:param request: Request instance for
|
2621
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2622
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3842
|
+
:param request: Request instance for ListKeystoreSearch
|
3843
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListKeystoreSearchRequest`
|
3844
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListKeystoreSearchResponse`
|
2623
3845
|
"""
|
2624
|
-
http_info = self.
|
3846
|
+
http_info = self._list_keystore_search_http_info(request)
|
2625
3847
|
return self._call_api(**http_info)
|
2626
3848
|
|
2627
|
-
def
|
2628
|
-
http_info = self.
|
3849
|
+
def list_keystore_search_invoker(self, request):
|
3850
|
+
http_info = self._list_keystore_search_http_info(request)
|
2629
3851
|
return SyncInvoker(self, http_info)
|
2630
3852
|
|
2631
3853
|
@classmethod
|
2632
|
-
def
|
3854
|
+
def _list_keystore_search_http_info(cls, request):
|
2633
3855
|
http_info = {
|
2634
3856
|
"method": "GET",
|
2635
|
-
"resource_path": "/
|
3857
|
+
"resource_path": "/v2/keystore/list",
|
2636
3858
|
"request_type": request.__class__.__name__,
|
2637
|
-
"response_type": "
|
3859
|
+
"response_type": "ListKeystoreSearchResponse"
|
2638
3860
|
}
|
2639
3861
|
|
2640
3862
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -2644,10 +3866,14 @@ class CodeArtsBuildClient(Client):
|
|
2644
3866
|
collection_formats = {}
|
2645
3867
|
|
2646
3868
|
path_params = {}
|
2647
|
-
if 'job_id' in local_var_params:
|
2648
|
-
path_params['job_id'] = local_var_params['job_id']
|
2649
3869
|
|
2650
3870
|
query_params = []
|
3871
|
+
if 'page_size' in local_var_params:
|
3872
|
+
query_params.append(('page_size', local_var_params['page_size']))
|
3873
|
+
if 'page' in local_var_params:
|
3874
|
+
query_params.append(('page', local_var_params['page']))
|
3875
|
+
if 'search' in local_var_params:
|
3876
|
+
query_params.append(('search', local_var_params['search']))
|
2651
3877
|
|
2652
3878
|
header_params = {}
|
2653
3879
|
|
@@ -2675,31 +3901,31 @@ class CodeArtsBuildClient(Client):
|
|
2675
3901
|
|
2676
3902
|
return http_info
|
2677
3903
|
|
2678
|
-
def
|
2679
|
-
r"""
|
3904
|
+
def show_keystore_permission(self, request):
|
3905
|
+
r"""文件管理查询权限
|
2680
3906
|
|
2681
|
-
|
3907
|
+
文件管理查询权限
|
2682
3908
|
|
2683
3909
|
Please refer to HUAWEI cloud API Explorer for details.
|
2684
3910
|
|
2685
|
-
:param request: Request instance for
|
2686
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2687
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3911
|
+
:param request: Request instance for ShowKeystorePermission
|
3912
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowKeystorePermissionRequest`
|
3913
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowKeystorePermissionResponse`
|
2688
3914
|
"""
|
2689
|
-
http_info = self.
|
3915
|
+
http_info = self._show_keystore_permission_http_info(request)
|
2690
3916
|
return self._call_api(**http_info)
|
2691
3917
|
|
2692
|
-
def
|
2693
|
-
http_info = self.
|
3918
|
+
def show_keystore_permission_invoker(self, request):
|
3919
|
+
http_info = self._show_keystore_permission_http_info(request)
|
2694
3920
|
return SyncInvoker(self, http_info)
|
2695
3921
|
|
2696
3922
|
@classmethod
|
2697
|
-
def
|
3923
|
+
def _show_keystore_permission_http_info(cls, request):
|
2698
3924
|
http_info = {
|
2699
3925
|
"method": "GET",
|
2700
|
-
"resource_path": "/
|
3926
|
+
"resource_path": "/v2/keystore/permission/{keystore_id}/query",
|
2701
3927
|
"request_type": request.__class__.__name__,
|
2702
|
-
"response_type": "
|
3928
|
+
"response_type": "ShowKeystorePermissionResponse"
|
2703
3929
|
}
|
2704
3930
|
|
2705
3931
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -2709,14 +3935,14 @@ class CodeArtsBuildClient(Client):
|
|
2709
3935
|
collection_formats = {}
|
2710
3936
|
|
2711
3937
|
path_params = {}
|
2712
|
-
if '
|
2713
|
-
path_params['
|
3938
|
+
if 'keystore_id' in local_var_params:
|
3939
|
+
path_params['keystore_id'] = local_var_params['keystore_id']
|
2714
3940
|
|
2715
3941
|
query_params = []
|
2716
|
-
if 'page_index' in local_var_params:
|
2717
|
-
query_params.append(('page_index', local_var_params['page_index']))
|
2718
3942
|
if 'page_size' in local_var_params:
|
2719
3943
|
query_params.append(('page_size', local_var_params['page_size']))
|
3944
|
+
if 'page' in local_var_params:
|
3945
|
+
query_params.append(('page', local_var_params['page']))
|
2720
3946
|
|
2721
3947
|
header_params = {}
|
2722
3948
|
|
@@ -2744,31 +3970,31 @@ class CodeArtsBuildClient(Client):
|
|
2744
3970
|
|
2745
3971
|
return http_info
|
2746
3972
|
|
2747
|
-
def
|
2748
|
-
r"""
|
3973
|
+
def download_log_by_record_id(self, request):
|
3974
|
+
r"""下载构建日志(待下线)
|
2749
3975
|
|
2750
|
-
|
3976
|
+
下载构建日志(待下线)
|
2751
3977
|
|
2752
3978
|
Please refer to HUAWEI cloud API Explorer for details.
|
2753
3979
|
|
2754
|
-
:param request: Request instance for
|
2755
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2756
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3980
|
+
:param request: Request instance for DownloadLogByRecordId
|
3981
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadLogByRecordIdRequest`
|
3982
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadLogByRecordIdResponse`
|
2757
3983
|
"""
|
2758
|
-
http_info = self.
|
3984
|
+
http_info = self._download_log_by_record_id_http_info(request)
|
2759
3985
|
return self._call_api(**http_info)
|
2760
3986
|
|
2761
|
-
def
|
2762
|
-
http_info = self.
|
3987
|
+
def download_log_by_record_id_invoker(self, request):
|
3988
|
+
http_info = self._download_log_by_record_id_http_info(request)
|
2763
3989
|
return SyncInvoker(self, http_info)
|
2764
3990
|
|
2765
3991
|
@classmethod
|
2766
|
-
def
|
3992
|
+
def _download_log_by_record_id_http_info(cls, request):
|
2767
3993
|
http_info = {
|
2768
3994
|
"method": "GET",
|
2769
|
-
"resource_path": "/
|
3995
|
+
"resource_path": "/v3/{record_id}/download-log",
|
2770
3996
|
"request_type": request.__class__.__name__,
|
2771
|
-
"response_type": "
|
3997
|
+
"response_type": "DownloadLogByRecordIdResponse"
|
2772
3998
|
}
|
2773
3999
|
|
2774
4000
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -2778,8 +4004,8 @@ class CodeArtsBuildClient(Client):
|
|
2778
4004
|
collection_formats = {}
|
2779
4005
|
|
2780
4006
|
path_params = {}
|
2781
|
-
if '
|
2782
|
-
path_params['
|
4007
|
+
if 'record_id' in local_var_params:
|
4008
|
+
path_params['record_id'] = local_var_params['record_id']
|
2783
4009
|
|
2784
4010
|
query_params = []
|
2785
4011
|
|
@@ -2809,31 +4035,31 @@ class CodeArtsBuildClient(Client):
|
|
2809
4035
|
|
2810
4036
|
return http_info
|
2811
4037
|
|
2812
|
-
def
|
2813
|
-
r"""
|
4038
|
+
def show_flow_graph(self, request):
|
4039
|
+
r"""获取构建记录的有向无环图(待下线)
|
2814
4040
|
|
2815
|
-
|
4041
|
+
获取构建记录的有向无环图(待下线)
|
2816
4042
|
|
2817
4043
|
Please refer to HUAWEI cloud API Explorer for details.
|
2818
4044
|
|
2819
|
-
:param request: Request instance for
|
2820
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2821
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4045
|
+
:param request: Request instance for ShowFlowGraph
|
4046
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowFlowGraphRequest`
|
4047
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowFlowGraphResponse`
|
2822
4048
|
"""
|
2823
|
-
http_info = self.
|
4049
|
+
http_info = self._show_flow_graph_http_info(request)
|
2824
4050
|
return self._call_api(**http_info)
|
2825
4051
|
|
2826
|
-
def
|
2827
|
-
http_info = self.
|
4052
|
+
def show_flow_graph_invoker(self, request):
|
4053
|
+
http_info = self._show_flow_graph_http_info(request)
|
2828
4054
|
return SyncInvoker(self, http_info)
|
2829
4055
|
|
2830
4056
|
@classmethod
|
2831
|
-
def
|
4057
|
+
def _show_flow_graph_http_info(cls, request):
|
2832
4058
|
http_info = {
|
2833
4059
|
"method": "GET",
|
2834
|
-
"resource_path": "/
|
4060
|
+
"resource_path": "/v3/{build_flow_record_id}/flow-graph",
|
2835
4061
|
"request_type": request.__class__.__name__,
|
2836
|
-
"response_type": "
|
4062
|
+
"response_type": "ShowFlowGraphResponse"
|
2837
4063
|
}
|
2838
4064
|
|
2839
4065
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -2843,10 +4069,10 @@ class CodeArtsBuildClient(Client):
|
|
2843
4069
|
collection_formats = {}
|
2844
4070
|
|
2845
4071
|
path_params = {}
|
4072
|
+
if 'build_flow_record_id' in local_var_params:
|
4073
|
+
path_params['build_flow_record_id'] = local_var_params['build_flow_record_id']
|
2846
4074
|
|
2847
4075
|
query_params = []
|
2848
|
-
if 'job_id' in local_var_params:
|
2849
|
-
query_params.append(('job_id', local_var_params['job_id']))
|
2850
4076
|
|
2851
4077
|
header_params = {}
|
2852
4078
|
|
@@ -2874,31 +4100,31 @@ class CodeArtsBuildClient(Client):
|
|
2874
4100
|
|
2875
4101
|
return http_info
|
2876
4102
|
|
2877
|
-
def
|
2878
|
-
r"""
|
4103
|
+
def show_record_info(self, request):
|
4104
|
+
r"""获取构建记录信息(待下线)
|
2879
4105
|
|
2880
|
-
|
4106
|
+
获取构建记录信息(待下线)
|
2881
4107
|
|
2882
4108
|
Please refer to HUAWEI cloud API Explorer for details.
|
2883
4109
|
|
2884
|
-
:param request: Request instance for
|
2885
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2886
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4110
|
+
:param request: Request instance for ShowRecordInfo
|
4111
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRecordInfoRequest`
|
4112
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRecordInfoResponse`
|
2887
4113
|
"""
|
2888
|
-
http_info = self.
|
4114
|
+
http_info = self._show_record_info_http_info(request)
|
2889
4115
|
return self._call_api(**http_info)
|
2890
4116
|
|
2891
|
-
def
|
2892
|
-
http_info = self.
|
4117
|
+
def show_record_info_invoker(self, request):
|
4118
|
+
http_info = self._show_record_info_http_info(request)
|
2893
4119
|
return SyncInvoker(self, http_info)
|
2894
4120
|
|
2895
4121
|
@classmethod
|
2896
|
-
def
|
4122
|
+
def _show_record_info_http_info(cls, request):
|
2897
4123
|
http_info = {
|
2898
4124
|
"method": "GET",
|
2899
|
-
"resource_path": "/v3/jobs/{job_id}/
|
4125
|
+
"resource_path": "/v3/jobs/{job_id}/{build_no}/record-info",
|
2900
4126
|
"request_type": request.__class__.__name__,
|
2901
|
-
"response_type": "
|
4127
|
+
"response_type": "ShowRecordInfoResponse"
|
2902
4128
|
}
|
2903
4129
|
|
2904
4130
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -2910,6 +4136,8 @@ class CodeArtsBuildClient(Client):
|
|
2910
4136
|
path_params = {}
|
2911
4137
|
if 'job_id' in local_var_params:
|
2912
4138
|
path_params['job_id'] = local_var_params['job_id']
|
4139
|
+
if 'build_no' in local_var_params:
|
4140
|
+
path_params['build_no'] = local_var_params['build_no']
|
2913
4141
|
|
2914
4142
|
query_params = []
|
2915
4143
|
|
@@ -2939,31 +4167,31 @@ class CodeArtsBuildClient(Client):
|
|
2939
4167
|
|
2940
4168
|
return http_info
|
2941
4169
|
|
2942
|
-
def
|
2943
|
-
r"""
|
4170
|
+
def stop_job(self, request):
|
4171
|
+
r"""停止构建任务(待下线)
|
2944
4172
|
|
2945
|
-
|
4173
|
+
停止构建任务(待下线)
|
2946
4174
|
|
2947
4175
|
Please refer to HUAWEI cloud API Explorer for details.
|
2948
4176
|
|
2949
|
-
:param request: Request instance for
|
2950
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2951
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4177
|
+
:param request: Request instance for StopJob
|
4178
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.StopJobRequest`
|
4179
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.StopJobResponse`
|
2952
4180
|
"""
|
2953
|
-
http_info = self.
|
4181
|
+
http_info = self._stop_job_http_info(request)
|
2954
4182
|
return self._call_api(**http_info)
|
2955
4183
|
|
2956
|
-
def
|
2957
|
-
http_info = self.
|
4184
|
+
def stop_job_invoker(self, request):
|
4185
|
+
http_info = self._stop_job_http_info(request)
|
2958
4186
|
return SyncInvoker(self, http_info)
|
2959
4187
|
|
2960
4188
|
@classmethod
|
2961
|
-
def
|
4189
|
+
def _stop_job_http_info(cls, request):
|
2962
4190
|
http_info = {
|
2963
|
-
"method": "
|
2964
|
-
"resource_path": "/v3/jobs/
|
4191
|
+
"method": "POST",
|
4192
|
+
"resource_path": "/v3/jobs/stop",
|
2965
4193
|
"request_type": request.__class__.__name__,
|
2966
|
-
"response_type": "
|
4194
|
+
"response_type": "StopJobResponse"
|
2967
4195
|
}
|
2968
4196
|
|
2969
4197
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -2973,20 +4201,16 @@ class CodeArtsBuildClient(Client):
|
|
2973
4201
|
collection_formats = {}
|
2974
4202
|
|
2975
4203
|
path_params = {}
|
2976
|
-
if 'job_id' in local_var_params:
|
2977
|
-
path_params['job_id'] = local_var_params['job_id']
|
2978
4204
|
|
2979
4205
|
query_params = []
|
2980
|
-
if 'start_time' in local_var_params:
|
2981
|
-
query_params.append(('start_time', local_var_params['start_time']))
|
2982
|
-
if 'end_time' in local_var_params:
|
2983
|
-
query_params.append(('end_time', local_var_params['end_time']))
|
2984
4206
|
|
2985
4207
|
header_params = {}
|
2986
4208
|
|
2987
4209
|
form_params = {}
|
2988
4210
|
|
2989
4211
|
body = None
|
4212
|
+
if 'body' in local_var_params:
|
4213
|
+
body = local_var_params['body']
|
2990
4214
|
if isinstance(request, SdkStreamRequest):
|
2991
4215
|
body = request.get_file_stream()
|
2992
4216
|
|
@@ -3008,31 +4232,31 @@ class CodeArtsBuildClient(Client):
|
|
3008
4232
|
|
3009
4233
|
return http_info
|
3010
4234
|
|
3011
|
-
def
|
3012
|
-
r"""
|
4235
|
+
def list_build_info_record_by_job_id(self, request):
|
4236
|
+
r"""获取任务构建记录列表v1
|
3013
4237
|
|
3014
|
-
|
4238
|
+
获取任务构建记录列表v1
|
3015
4239
|
|
3016
|
-
Please refer to HUAWEI cloud API Explorer for details.
|
3017
|
-
|
3018
|
-
:param request: Request instance for
|
3019
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3020
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4240
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
4241
|
+
|
4242
|
+
:param request: Request instance for ListBuildInfoRecordByJobId
|
4243
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildInfoRecordByJobIdRequest`
|
4244
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildInfoRecordByJobIdResponse`
|
3021
4245
|
"""
|
3022
|
-
http_info = self.
|
4246
|
+
http_info = self._list_build_info_record_by_job_id_http_info(request)
|
3023
4247
|
return self._call_api(**http_info)
|
3024
4248
|
|
3025
|
-
def
|
3026
|
-
http_info = self.
|
4249
|
+
def list_build_info_record_by_job_id_invoker(self, request):
|
4250
|
+
http_info = self._list_build_info_record_by_job_id_http_info(request)
|
3027
4251
|
return SyncInvoker(self, http_info)
|
3028
4252
|
|
3029
4253
|
@classmethod
|
3030
|
-
def
|
4254
|
+
def _list_build_info_record_by_job_id_http_info(cls, request):
|
3031
4255
|
http_info = {
|
3032
4256
|
"method": "GET",
|
3033
|
-
"resource_path": "/v1/
|
4257
|
+
"resource_path": "/v1/record/{job_id}/list",
|
3034
4258
|
"request_type": request.__class__.__name__,
|
3035
|
-
"response_type": "
|
4259
|
+
"response_type": "ListBuildInfoRecordByJobIdResponse"
|
3036
4260
|
}
|
3037
4261
|
|
3038
4262
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3042,8 +4266,18 @@ class CodeArtsBuildClient(Client):
|
|
3042
4266
|
collection_formats = {}
|
3043
4267
|
|
3044
4268
|
path_params = {}
|
4269
|
+
if 'job_id' in local_var_params:
|
4270
|
+
path_params['job_id'] = local_var_params['job_id']
|
3045
4271
|
|
3046
4272
|
query_params = []
|
4273
|
+
if 'start_time' in local_var_params:
|
4274
|
+
query_params.append(('start_time', local_var_params['start_time']))
|
4275
|
+
if 'end_time' in local_var_params:
|
4276
|
+
query_params.append(('end_time', local_var_params['end_time']))
|
4277
|
+
if 'page_index' in local_var_params:
|
4278
|
+
query_params.append(('page_index', local_var_params['page_index']))
|
4279
|
+
if 'page_size' in local_var_params:
|
4280
|
+
query_params.append(('page_size', local_var_params['page_size']))
|
3047
4281
|
|
3048
4282
|
header_params = {}
|
3049
4283
|
|
@@ -3071,31 +4305,31 @@ class CodeArtsBuildClient(Client):
|
|
3071
4305
|
|
3072
4306
|
return http_info
|
3073
4307
|
|
3074
|
-
def
|
3075
|
-
r"""
|
4308
|
+
def list_records(self, request):
|
4309
|
+
r"""获取指定工程的构建记录列表
|
3076
4310
|
|
3077
|
-
|
4311
|
+
获取指定工程的构建记录列表
|
3078
4312
|
|
3079
4313
|
Please refer to HUAWEI cloud API Explorer for details.
|
3080
4314
|
|
3081
|
-
:param request: Request instance for
|
3082
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3083
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4315
|
+
:param request: Request instance for ListRecords
|
4316
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecordsRequest`
|
4317
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecordsResponse`
|
3084
4318
|
"""
|
3085
|
-
http_info = self.
|
4319
|
+
http_info = self._list_records_http_info(request)
|
3086
4320
|
return self._call_api(**http_info)
|
3087
4321
|
|
3088
|
-
def
|
3089
|
-
http_info = self.
|
4322
|
+
def list_records_invoker(self, request):
|
4323
|
+
http_info = self._list_records_http_info(request)
|
3090
4324
|
return SyncInvoker(self, http_info)
|
3091
4325
|
|
3092
4326
|
@classmethod
|
3093
|
-
def
|
4327
|
+
def _list_records_http_info(cls, request):
|
3094
4328
|
http_info = {
|
3095
4329
|
"method": "GET",
|
3096
|
-
"resource_path": "/
|
4330
|
+
"resource_path": "/v1/record/{build_project_id}/records",
|
3097
4331
|
"request_type": request.__class__.__name__,
|
3098
|
-
"response_type": "
|
4332
|
+
"response_type": "ListRecordsResponse"
|
3099
4333
|
}
|
3100
4334
|
|
3101
4335
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3105,14 +4339,27 @@ class CodeArtsBuildClient(Client):
|
|
3105
4339
|
collection_formats = {}
|
3106
4340
|
|
3107
4341
|
path_params = {}
|
3108
|
-
if '
|
3109
|
-
path_params['
|
4342
|
+
if 'build_project_id' in local_var_params:
|
4343
|
+
path_params['build_project_id'] = local_var_params['build_project_id']
|
3110
4344
|
|
3111
4345
|
query_params = []
|
3112
|
-
if 'page_size' in local_var_params:
|
3113
|
-
query_params.append(('page_size', local_var_params['page_size']))
|
3114
4346
|
if 'page' in local_var_params:
|
3115
4347
|
query_params.append(('page', local_var_params['page']))
|
4348
|
+
if 'limit' in local_var_params:
|
4349
|
+
query_params.append(('limit', local_var_params['limit']))
|
4350
|
+
if 'triggers' in local_var_params:
|
4351
|
+
query_params.append(('triggers', local_var_params['triggers']))
|
4352
|
+
collection_formats['triggers'] = 'csv'
|
4353
|
+
if 'branches' in local_var_params:
|
4354
|
+
query_params.append(('branches', local_var_params['branches']))
|
4355
|
+
collection_formats['branches'] = 'csv'
|
4356
|
+
if 'tags' in local_var_params:
|
4357
|
+
query_params.append(('tags', local_var_params['tags']))
|
4358
|
+
collection_formats['tags'] = 'csv'
|
4359
|
+
if 'from_date' in local_var_params:
|
4360
|
+
query_params.append(('from_date', local_var_params['from_date']))
|
4361
|
+
if 'to_date' in local_var_params:
|
4362
|
+
query_params.append(('to_date', local_var_params['to_date']))
|
3116
4363
|
|
3117
4364
|
header_params = {}
|
3118
4365
|
|
@@ -3140,31 +4387,31 @@ class CodeArtsBuildClient(Client):
|
|
3140
4387
|
|
3141
4388
|
return http_info
|
3142
4389
|
|
3143
|
-
def
|
3144
|
-
r"""
|
4390
|
+
def show_build_info_record(self, request):
|
4391
|
+
r"""获取任务构建记录列表
|
3145
4392
|
|
3146
|
-
|
4393
|
+
获取任务构建记录列表
|
3147
4394
|
|
3148
4395
|
Please refer to HUAWEI cloud API Explorer for details.
|
3149
4396
|
|
3150
|
-
:param request: Request instance for
|
3151
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3152
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4397
|
+
:param request: Request instance for ShowBuildInfoRecord
|
4398
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildInfoRecordRequest`
|
4399
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildInfoRecordResponse`
|
3153
4400
|
"""
|
3154
|
-
http_info = self.
|
4401
|
+
http_info = self._show_build_info_record_http_info(request)
|
3155
4402
|
return self._call_api(**http_info)
|
3156
4403
|
|
3157
|
-
def
|
3158
|
-
http_info = self.
|
4404
|
+
def show_build_info_record_invoker(self, request):
|
4405
|
+
http_info = self._show_build_info_record_http_info(request)
|
3159
4406
|
return SyncInvoker(self, http_info)
|
3160
4407
|
|
3161
4408
|
@classmethod
|
3162
|
-
def
|
4409
|
+
def _show_build_info_record_http_info(cls, request):
|
3163
4410
|
http_info = {
|
3164
4411
|
"method": "GET",
|
3165
|
-
"resource_path": "/
|
4412
|
+
"resource_path": "/v1/record/{job_id}/{build_no}/build-info-record",
|
3166
4413
|
"request_type": request.__class__.__name__,
|
3167
|
-
"response_type": "
|
4414
|
+
"response_type": "ShowBuildInfoRecordResponse"
|
3168
4415
|
}
|
3169
4416
|
|
3170
4417
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3174,12 +4421,12 @@ class CodeArtsBuildClient(Client):
|
|
3174
4421
|
collection_formats = {}
|
3175
4422
|
|
3176
4423
|
path_params = {}
|
3177
|
-
if '
|
3178
|
-
path_params['
|
4424
|
+
if 'job_id' in local_var_params:
|
4425
|
+
path_params['job_id'] = local_var_params['job_id']
|
4426
|
+
if 'build_no' in local_var_params:
|
4427
|
+
path_params['build_no'] = local_var_params['build_no']
|
3179
4428
|
|
3180
4429
|
query_params = []
|
3181
|
-
if 'repository_name' in local_var_params:
|
3182
|
-
query_params.append(('repository_name', local_var_params['repository_name']))
|
3183
4430
|
|
3184
4431
|
header_params = {}
|
3185
4432
|
|
@@ -3207,31 +4454,31 @@ class CodeArtsBuildClient(Client):
|
|
3207
4454
|
|
3208
4455
|
return http_info
|
3209
4456
|
|
3210
|
-
def
|
3211
|
-
r"""
|
4457
|
+
def show_build_record(self, request):
|
4458
|
+
r"""查询指定构建记录详情
|
3212
4459
|
|
3213
|
-
|
4460
|
+
查询指定构建记录详情
|
3214
4461
|
|
3215
4462
|
Please refer to HUAWEI cloud API Explorer for details.
|
3216
4463
|
|
3217
|
-
:param request: Request instance for
|
3218
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3219
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4464
|
+
:param request: Request instance for ShowBuildRecord
|
4465
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordRequest`
|
4466
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordResponse`
|
3220
4467
|
"""
|
3221
|
-
http_info = self.
|
4468
|
+
http_info = self._show_build_record_http_info(request)
|
3222
4469
|
return self._call_api(**http_info)
|
3223
4470
|
|
3224
|
-
def
|
3225
|
-
http_info = self.
|
4471
|
+
def show_build_record_invoker(self, request):
|
4472
|
+
http_info = self._show_build_record_http_info(request)
|
3226
4473
|
return SyncInvoker(self, http_info)
|
3227
4474
|
|
3228
4475
|
@classmethod
|
3229
|
-
def
|
4476
|
+
def _show_build_record_http_info(cls, request):
|
3230
4477
|
http_info = {
|
3231
4478
|
"method": "GET",
|
3232
|
-
"resource_path": "/
|
4479
|
+
"resource_path": "/v1/record/{record_id}/info",
|
3233
4480
|
"request_type": request.__class__.__name__,
|
3234
|
-
"response_type": "
|
4481
|
+
"response_type": "ShowBuildRecordResponse"
|
3235
4482
|
}
|
3236
4483
|
|
3237
4484
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3241,16 +4488,10 @@ class CodeArtsBuildClient(Client):
|
|
3241
4488
|
collection_formats = {}
|
3242
4489
|
|
3243
4490
|
path_params = {}
|
3244
|
-
if '
|
3245
|
-
path_params['
|
4491
|
+
if 'record_id' in local_var_params:
|
4492
|
+
path_params['record_id'] = local_var_params['record_id']
|
3246
4493
|
|
3247
4494
|
query_params = []
|
3248
|
-
if 'offset' in local_var_params:
|
3249
|
-
query_params.append(('offset', local_var_params['offset']))
|
3250
|
-
if 'limit' in local_var_params:
|
3251
|
-
query_params.append(('limit', local_var_params['limit']))
|
3252
|
-
if 'interval' in local_var_params:
|
3253
|
-
query_params.append(('interval', local_var_params['interval']))
|
3254
4495
|
|
3255
4496
|
header_params = {}
|
3256
4497
|
|
@@ -3278,31 +4519,31 @@ class CodeArtsBuildClient(Client):
|
|
3278
4519
|
|
3279
4520
|
return http_info
|
3280
4521
|
|
3281
|
-
def
|
3282
|
-
r"""
|
4522
|
+
def show_build_record_build_script(self, request):
|
4523
|
+
r"""获取构建记录的构建脚本
|
3283
4524
|
|
3284
|
-
|
4525
|
+
获取构建记录的构建脚本
|
3285
4526
|
|
3286
4527
|
Please refer to HUAWEI cloud API Explorer for details.
|
3287
4528
|
|
3288
|
-
:param request: Request instance for
|
3289
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3290
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4529
|
+
:param request: Request instance for ShowBuildRecordBuildScript
|
4530
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordBuildScriptRequest`
|
4531
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordBuildScriptResponse`
|
3291
4532
|
"""
|
3292
|
-
http_info = self.
|
4533
|
+
http_info = self._show_build_record_build_script_http_info(request)
|
3293
4534
|
return self._call_api(**http_info)
|
3294
4535
|
|
3295
|
-
def
|
3296
|
-
http_info = self.
|
4536
|
+
def show_build_record_build_script_invoker(self, request):
|
4537
|
+
http_info = self._show_build_record_build_script_http_info(request)
|
3297
4538
|
return SyncInvoker(self, http_info)
|
3298
4539
|
|
3299
4540
|
@classmethod
|
3300
|
-
def
|
4541
|
+
def _show_build_record_build_script_http_info(cls, request):
|
3301
4542
|
http_info = {
|
3302
4543
|
"method": "GET",
|
3303
|
-
"resource_path": "/
|
4544
|
+
"resource_path": "/v1/record/{record_id}/build-script",
|
3304
4545
|
"request_type": request.__class__.__name__,
|
3305
|
-
"response_type": "
|
4546
|
+
"response_type": "ShowBuildRecordBuildScriptResponse"
|
3306
4547
|
}
|
3307
4548
|
|
3308
4549
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3312,18 +4553,10 @@ class CodeArtsBuildClient(Client):
|
|
3312
4553
|
collection_formats = {}
|
3313
4554
|
|
3314
4555
|
path_params = {}
|
3315
|
-
if '
|
3316
|
-
path_params['
|
4556
|
+
if 'record_id' in local_var_params:
|
4557
|
+
path_params['record_id'] = local_var_params['record_id']
|
3317
4558
|
|
3318
4559
|
query_params = []
|
3319
|
-
if 'offset' in local_var_params:
|
3320
|
-
query_params.append(('offset', local_var_params['offset']))
|
3321
|
-
if 'limit' in local_var_params:
|
3322
|
-
query_params.append(('limit', local_var_params['limit']))
|
3323
|
-
if 'start_time' in local_var_params:
|
3324
|
-
query_params.append(('start_time', local_var_params['start_time']))
|
3325
|
-
if 'end_time' in local_var_params:
|
3326
|
-
query_params.append(('end_time', local_var_params['end_time']))
|
3327
4560
|
|
3328
4561
|
header_params = {}
|
3329
4562
|
|
@@ -3351,31 +4584,31 @@ class CodeArtsBuildClient(Client):
|
|
3351
4584
|
|
3352
4585
|
return http_info
|
3353
4586
|
|
3354
|
-
def
|
3355
|
-
r"""
|
4587
|
+
def show_build_record_flow_graph(self, request):
|
4588
|
+
r"""获取构建记录的有向无环图
|
3356
4589
|
|
3357
|
-
|
4590
|
+
获取构建记录的有向无环图
|
3358
4591
|
|
3359
4592
|
Please refer to HUAWEI cloud API Explorer for details.
|
3360
4593
|
|
3361
|
-
:param request: Request instance for
|
3362
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3363
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4594
|
+
:param request: Request instance for ShowBuildRecordFlowGraph
|
4595
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFlowGraphRequest`
|
4596
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFlowGraphResponse`
|
3364
4597
|
"""
|
3365
|
-
http_info = self.
|
4598
|
+
http_info = self._show_build_record_flow_graph_http_info(request)
|
3366
4599
|
return self._call_api(**http_info)
|
3367
4600
|
|
3368
|
-
def
|
3369
|
-
http_info = self.
|
4601
|
+
def show_build_record_flow_graph_invoker(self, request):
|
4602
|
+
http_info = self._show_build_record_flow_graph_http_info(request)
|
3370
4603
|
return SyncInvoker(self, http_info)
|
3371
4604
|
|
3372
4605
|
@classmethod
|
3373
|
-
def
|
4606
|
+
def _show_build_record_flow_graph_http_info(cls, request):
|
3374
4607
|
http_info = {
|
3375
4608
|
"method": "GET",
|
3376
|
-
"resource_path": "/
|
4609
|
+
"resource_path": "/v1/record/{build_flow_record_id}/flow-graph",
|
3377
4610
|
"request_type": request.__class__.__name__,
|
3378
|
-
"response_type": "
|
4611
|
+
"response_type": "ShowBuildRecordFlowGraphResponse"
|
3379
4612
|
}
|
3380
4613
|
|
3381
4614
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3385,10 +4618,8 @@ class CodeArtsBuildClient(Client):
|
|
3385
4618
|
collection_formats = {}
|
3386
4619
|
|
3387
4620
|
path_params = {}
|
3388
|
-
if '
|
3389
|
-
path_params['
|
3390
|
-
if 'build_no' in local_var_params:
|
3391
|
-
path_params['build_no'] = local_var_params['build_no']
|
4621
|
+
if 'build_flow_record_id' in local_var_params:
|
4622
|
+
path_params['build_flow_record_id'] = local_var_params['build_flow_record_id']
|
3392
4623
|
|
3393
4624
|
query_params = []
|
3394
4625
|
|
@@ -3418,31 +4649,31 @@ class CodeArtsBuildClient(Client):
|
|
3418
4649
|
|
3419
4650
|
return http_info
|
3420
4651
|
|
3421
|
-
def
|
3422
|
-
r"""
|
4652
|
+
def show_build_record_full_stages(self, request):
|
4653
|
+
r"""获取任务各阶段信息
|
3423
4654
|
|
3424
|
-
|
4655
|
+
获取任务各阶段信息
|
3425
4656
|
|
3426
4657
|
Please refer to HUAWEI cloud API Explorer for details.
|
3427
4658
|
|
3428
|
-
:param request: Request instance for
|
3429
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3430
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4659
|
+
:param request: Request instance for ShowBuildRecordFullStages
|
4660
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesRequest`
|
4661
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesResponse`
|
3431
4662
|
"""
|
3432
|
-
http_info = self.
|
4663
|
+
http_info = self._show_build_record_full_stages_http_info(request)
|
3433
4664
|
return self._call_api(**http_info)
|
3434
4665
|
|
3435
|
-
def
|
3436
|
-
http_info = self.
|
4666
|
+
def show_build_record_full_stages_invoker(self, request):
|
4667
|
+
http_info = self._show_build_record_full_stages_http_info(request)
|
3437
4668
|
return SyncInvoker(self, http_info)
|
3438
4669
|
|
3439
4670
|
@classmethod
|
3440
|
-
def
|
4671
|
+
def _show_build_record_full_stages_http_info(cls, request):
|
3441
4672
|
http_info = {
|
3442
4673
|
"method": "GET",
|
3443
|
-
"resource_path": "/v1/
|
4674
|
+
"resource_path": "/v1/record/{record_id}/full-stages",
|
3444
4675
|
"request_type": request.__class__.__name__,
|
3445
|
-
"response_type": "
|
4676
|
+
"response_type": "ShowBuildRecordFullStagesResponse"
|
3446
4677
|
}
|
3447
4678
|
|
3448
4679
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3452,10 +4683,12 @@ class CodeArtsBuildClient(Client):
|
|
3452
4683
|
collection_formats = {}
|
3453
4684
|
|
3454
4685
|
path_params = {}
|
4686
|
+
if 'record_id' in local_var_params:
|
4687
|
+
path_params['record_id'] = local_var_params['record_id']
|
3455
4688
|
|
3456
4689
|
query_params = []
|
3457
|
-
if '
|
3458
|
-
query_params.append(('
|
4690
|
+
if 'cascade' in local_var_params:
|
4691
|
+
query_params.append(('cascade', local_var_params['cascade']))
|
3459
4692
|
|
3460
4693
|
header_params = {}
|
3461
4694
|
|
@@ -3483,31 +4716,31 @@ class CodeArtsBuildClient(Client):
|
|
3483
4716
|
|
3484
4717
|
return http_info
|
3485
4718
|
|
3486
|
-
def
|
4719
|
+
def show_job_build_record_detail(self, request):
|
3487
4720
|
r"""获取构建记录信息
|
3488
4721
|
|
3489
4722
|
获取构建记录信息
|
3490
4723
|
|
3491
4724
|
Please refer to HUAWEI cloud API Explorer for details.
|
3492
4725
|
|
3493
|
-
:param request: Request instance for
|
3494
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3495
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4726
|
+
:param request: Request instance for ShowJobBuildRecordDetail
|
4727
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildRecordDetailRequest`
|
4728
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildRecordDetailResponse`
|
3496
4729
|
"""
|
3497
|
-
http_info = self.
|
4730
|
+
http_info = self._show_job_build_record_detail_http_info(request)
|
3498
4731
|
return self._call_api(**http_info)
|
3499
4732
|
|
3500
|
-
def
|
3501
|
-
http_info = self.
|
4733
|
+
def show_job_build_record_detail_invoker(self, request):
|
4734
|
+
http_info = self._show_job_build_record_detail_http_info(request)
|
3502
4735
|
return SyncInvoker(self, http_info)
|
3503
4736
|
|
3504
4737
|
@classmethod
|
3505
|
-
def
|
4738
|
+
def _show_job_build_record_detail_http_info(cls, request):
|
3506
4739
|
http_info = {
|
3507
4740
|
"method": "GET",
|
3508
|
-
"resource_path": "/
|
4741
|
+
"resource_path": "/v1/record/{job_id}/{build_no}/record-info",
|
3509
4742
|
"request_type": request.__class__.__name__,
|
3510
|
-
"response_type": "
|
4743
|
+
"response_type": "ShowJobBuildRecordDetailResponse"
|
3511
4744
|
}
|
3512
4745
|
|
3513
4746
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3550,31 +4783,31 @@ class CodeArtsBuildClient(Client):
|
|
3550
4783
|
|
3551
4784
|
return http_info
|
3552
4785
|
|
3553
|
-
def
|
3554
|
-
r"""
|
4786
|
+
def show_job_total(self, request):
|
4787
|
+
r"""构建历史页获取构建次数
|
3555
4788
|
|
3556
|
-
|
4789
|
+
构建历史页获取构建次数
|
3557
4790
|
|
3558
4791
|
Please refer to HUAWEI cloud API Explorer for details.
|
3559
4792
|
|
3560
|
-
:param request: Request instance for
|
3561
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3562
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4793
|
+
:param request: Request instance for ShowJobTotal
|
4794
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobTotalRequest`
|
4795
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobTotalResponse`
|
3563
4796
|
"""
|
3564
|
-
http_info = self.
|
4797
|
+
http_info = self._show_job_total_http_info(request)
|
3565
4798
|
return self._call_api(**http_info)
|
3566
4799
|
|
3567
|
-
def
|
3568
|
-
http_info = self.
|
4800
|
+
def show_job_total_invoker(self, request):
|
4801
|
+
http_info = self._show_job_total_http_info(request)
|
3569
4802
|
return SyncInvoker(self, http_info)
|
3570
4803
|
|
3571
4804
|
@classmethod
|
3572
|
-
def
|
4805
|
+
def _show_job_total_http_info(cls, request):
|
3573
4806
|
http_info = {
|
3574
4807
|
"method": "GET",
|
3575
|
-
"resource_path": "/v1/
|
4808
|
+
"resource_path": "/v1/record/{build_project_id}/statistics",
|
3576
4809
|
"request_type": request.__class__.__name__,
|
3577
|
-
"response_type": "
|
4810
|
+
"response_type": "ShowJobTotalResponse"
|
3578
4811
|
}
|
3579
4812
|
|
3580
4813
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3584,8 +4817,14 @@ class CodeArtsBuildClient(Client):
|
|
3584
4817
|
collection_formats = {}
|
3585
4818
|
|
3586
4819
|
path_params = {}
|
4820
|
+
if 'build_project_id' in local_var_params:
|
4821
|
+
path_params['build_project_id'] = local_var_params['build_project_id']
|
3587
4822
|
|
3588
4823
|
query_params = []
|
4824
|
+
if 'from_date' in local_var_params:
|
4825
|
+
query_params.append(('from_date', local_var_params['from_date']))
|
4826
|
+
if 'to_date' in local_var_params:
|
4827
|
+
query_params.append(('to_date', local_var_params['to_date']))
|
3589
4828
|
|
3590
4829
|
header_params = {}
|
3591
4830
|
|
@@ -3613,31 +4852,31 @@ class CodeArtsBuildClient(Client):
|
|
3613
4852
|
|
3614
4853
|
return http_info
|
3615
4854
|
|
3616
|
-
def
|
3617
|
-
r"""
|
4855
|
+
def download_junit_coverage_zip(self, request):
|
4856
|
+
r"""获取单元测试覆盖率报告压缩包
|
3618
4857
|
|
3619
|
-
|
4858
|
+
获取单元测试覆盖率报告压缩包
|
3620
4859
|
|
3621
4860
|
Please refer to HUAWEI cloud API Explorer for details.
|
3622
4861
|
|
3623
|
-
:param request: Request instance for
|
3624
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3625
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4862
|
+
:param request: Request instance for DownloadJunitCoverageZip
|
4863
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadJunitCoverageZipRequest`
|
4864
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadJunitCoverageZipResponse`
|
3626
4865
|
"""
|
3627
|
-
http_info = self.
|
4866
|
+
http_info = self._download_junit_coverage_zip_http_info(request)
|
3628
4867
|
return self._call_api(**http_info)
|
3629
4868
|
|
3630
|
-
def
|
3631
|
-
http_info = self.
|
4869
|
+
def download_junit_coverage_zip_invoker(self, request):
|
4870
|
+
http_info = self._download_junit_coverage_zip_http_info(request)
|
3632
4871
|
return SyncInvoker(self, http_info)
|
3633
4872
|
|
3634
4873
|
@classmethod
|
3635
|
-
def
|
4874
|
+
def _download_junit_coverage_zip_http_info(cls, request):
|
3636
4875
|
http_info = {
|
3637
4876
|
"method": "GET",
|
3638
|
-
"resource_path": "/v1/report/
|
4877
|
+
"resource_path": "/v1/report/junit/coverage/download",
|
3639
4878
|
"request_type": request.__class__.__name__,
|
3640
|
-
"response_type": "
|
4879
|
+
"response_type": "DownloadJunitCoverageZipResponse"
|
3641
4880
|
}
|
3642
4881
|
|
3643
4882
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3647,12 +4886,14 @@ class CodeArtsBuildClient(Client):
|
|
3647
4886
|
collection_formats = {}
|
3648
4887
|
|
3649
4888
|
path_params = {}
|
3650
|
-
if 'job_id' in local_var_params:
|
3651
|
-
path_params['job_id'] = local_var_params['job_id']
|
3652
4889
|
|
3653
4890
|
query_params = []
|
4891
|
+
if 'job_id' in local_var_params:
|
4892
|
+
query_params.append(('job_id', local_var_params['job_id']))
|
3654
4893
|
if 'build_no' in local_var_params:
|
3655
4894
|
query_params.append(('build_no', local_var_params['build_no']))
|
4895
|
+
if 'root_id' in local_var_params:
|
4896
|
+
query_params.append(('root_id', local_var_params['root_id']))
|
3656
4897
|
|
3657
4898
|
header_params = {}
|
3658
4899
|
|
@@ -3680,31 +4921,31 @@ class CodeArtsBuildClient(Client):
|
|
3680
4921
|
|
3681
4922
|
return http_info
|
3682
4923
|
|
3683
|
-
def
|
3684
|
-
r"""
|
4924
|
+
def list_junit_coverage_summary(self, request):
|
4925
|
+
r"""获取单元测试覆盖率报告列表
|
3685
4926
|
|
3686
|
-
|
4927
|
+
获取单元测试覆盖率报告列表
|
3687
4928
|
|
3688
4929
|
Please refer to HUAWEI cloud API Explorer for details.
|
3689
4930
|
|
3690
|
-
:param request: Request instance for
|
3691
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3692
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4931
|
+
:param request: Request instance for ListJunitCoverageSummary
|
4932
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListJunitCoverageSummaryRequest`
|
4933
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListJunitCoverageSummaryResponse`
|
3693
4934
|
"""
|
3694
|
-
http_info = self.
|
4935
|
+
http_info = self._list_junit_coverage_summary_http_info(request)
|
3695
4936
|
return self._call_api(**http_info)
|
3696
4937
|
|
3697
|
-
def
|
3698
|
-
http_info = self.
|
4938
|
+
def list_junit_coverage_summary_invoker(self, request):
|
4939
|
+
http_info = self._list_junit_coverage_summary_http_info(request)
|
3699
4940
|
return SyncInvoker(self, http_info)
|
3700
4941
|
|
3701
4942
|
@classmethod
|
3702
|
-
def
|
4943
|
+
def _list_junit_coverage_summary_http_info(cls, request):
|
3703
4944
|
http_info = {
|
3704
4945
|
"method": "GET",
|
3705
|
-
"resource_path": "/v1/
|
4946
|
+
"resource_path": "/v1/report/junit/coverage/list",
|
3706
4947
|
"request_type": request.__class__.__name__,
|
3707
|
-
"response_type": "
|
4948
|
+
"response_type": "ListJunitCoverageSummaryResponse"
|
3708
4949
|
}
|
3709
4950
|
|
3710
4951
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3714,10 +4955,12 @@ class CodeArtsBuildClient(Client):
|
|
3714
4955
|
collection_formats = {}
|
3715
4956
|
|
3716
4957
|
path_params = {}
|
3717
|
-
if 'job_id' in local_var_params:
|
3718
|
-
path_params['job_id'] = local_var_params['job_id']
|
3719
4958
|
|
3720
4959
|
query_params = []
|
4960
|
+
if 'job_id' in local_var_params:
|
4961
|
+
query_params.append(('job_id', local_var_params['job_id']))
|
4962
|
+
if 'build_no' in local_var_params:
|
4963
|
+
query_params.append(('build_no', local_var_params['build_no']))
|
3721
4964
|
|
3722
4965
|
header_params = {}
|
3723
4966
|
|
@@ -3745,31 +4988,31 @@ class CodeArtsBuildClient(Client):
|
|
3745
4988
|
|
3746
4989
|
return http_info
|
3747
4990
|
|
3748
|
-
def
|
3749
|
-
r"""
|
4991
|
+
def list_repo_branch(self, request):
|
4992
|
+
r"""获取该任务所有分支信息
|
3750
4993
|
|
3751
|
-
|
4994
|
+
获取该任务所有分支信息
|
3752
4995
|
|
3753
4996
|
Please refer to HUAWEI cloud API Explorer for details.
|
3754
4997
|
|
3755
|
-
:param request: Request instance for
|
3756
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3757
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4998
|
+
:param request: Request instance for ListRepoBranch
|
4999
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRepoBranchRequest`
|
5000
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRepoBranchResponse`
|
3758
5001
|
"""
|
3759
|
-
http_info = self.
|
5002
|
+
http_info = self._list_repo_branch_http_info(request)
|
3760
5003
|
return self._call_api(**http_info)
|
3761
5004
|
|
3762
|
-
def
|
3763
|
-
http_info = self.
|
5005
|
+
def list_repo_branch_invoker(self, request):
|
5006
|
+
http_info = self._list_repo_branch_http_info(request)
|
3764
5007
|
return SyncInvoker(self, http_info)
|
3765
5008
|
|
3766
5009
|
@classmethod
|
3767
|
-
def
|
5010
|
+
def _list_repo_branch_http_info(cls, request):
|
3768
5011
|
http_info = {
|
3769
5012
|
"method": "GET",
|
3770
|
-
"resource_path": "/v1/
|
5013
|
+
"resource_path": "/v1/report/branches",
|
3771
5014
|
"request_type": request.__class__.__name__,
|
3772
|
-
"response_type": "
|
5015
|
+
"response_type": "ListRepoBranchResponse"
|
3773
5016
|
}
|
3774
5017
|
|
3775
5018
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3779,12 +5022,12 @@ class CodeArtsBuildClient(Client):
|
|
3779
5022
|
collection_formats = {}
|
3780
5023
|
|
3781
5024
|
path_params = {}
|
3782
|
-
if 'job_id' in local_var_params:
|
3783
|
-
path_params['job_id'] = local_var_params['job_id']
|
3784
5025
|
|
3785
5026
|
query_params = []
|
3786
|
-
if '
|
3787
|
-
query_params.append(('
|
5027
|
+
if 'job_id' in local_var_params:
|
5028
|
+
query_params.append(('job_id', local_var_params['job_id']))
|
5029
|
+
if 'repository_name' in local_var_params:
|
5030
|
+
query_params.append(('repository_name', local_var_params['repository_name']))
|
3788
5031
|
|
3789
5032
|
header_params = {}
|
3790
5033
|
|
@@ -3812,31 +5055,31 @@ class CodeArtsBuildClient(Client):
|
|
3812
5055
|
|
3813
5056
|
return http_info
|
3814
5057
|
|
3815
|
-
def
|
3816
|
-
r"""
|
5058
|
+
def list_repository(self, request):
|
5059
|
+
r"""查看仓库
|
3817
5060
|
|
3818
|
-
|
5061
|
+
查看仓库
|
3819
5062
|
|
3820
5063
|
Please refer to HUAWEI cloud API Explorer for details.
|
3821
5064
|
|
3822
|
-
:param request: Request instance for
|
3823
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3824
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
5065
|
+
:param request: Request instance for ListRepository
|
5066
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRepositoryRequest`
|
5067
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRepositoryResponse`
|
3825
5068
|
"""
|
3826
|
-
http_info = self.
|
5069
|
+
http_info = self._list_repository_http_info(request)
|
3827
5070
|
return self._call_api(**http_info)
|
3828
5071
|
|
3829
|
-
def
|
3830
|
-
http_info = self.
|
5072
|
+
def list_repository_invoker(self, request):
|
5073
|
+
http_info = self._list_repository_http_info(request)
|
3831
5074
|
return SyncInvoker(self, http_info)
|
3832
5075
|
|
3833
5076
|
@classmethod
|
3834
|
-
def
|
5077
|
+
def _list_repository_http_info(cls, request):
|
3835
5078
|
http_info = {
|
3836
|
-
"method": "
|
3837
|
-
"resource_path": "/
|
5079
|
+
"method": "GET",
|
5080
|
+
"resource_path": "/v1/report/{job_id}/repositories",
|
3838
5081
|
"request_type": request.__class__.__name__,
|
3839
|
-
"response_type": "
|
5082
|
+
"response_type": "ListRepositoryResponse"
|
3840
5083
|
}
|
3841
5084
|
|
3842
5085
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3848,8 +5091,6 @@ class CodeArtsBuildClient(Client):
|
|
3848
5091
|
path_params = {}
|
3849
5092
|
if 'job_id' in local_var_params:
|
3850
5093
|
path_params['job_id'] = local_var_params['job_id']
|
3851
|
-
if 'build_no' in local_var_params:
|
3852
|
-
path_params['build_no'] = local_var_params['build_no']
|
3853
5094
|
|
3854
5095
|
query_params = []
|
3855
5096
|
|
@@ -3879,31 +5120,31 @@ class CodeArtsBuildClient(Client):
|
|
3879
5120
|
|
3880
5121
|
return http_info
|
3881
5122
|
|
3882
|
-
def
|
3883
|
-
r"""
|
5123
|
+
def show_job_build_success_ratio(self, request):
|
5124
|
+
r"""查询构建成功率
|
3884
5125
|
|
3885
|
-
|
5126
|
+
查询构建成功率
|
3886
5127
|
|
3887
5128
|
Please refer to HUAWEI cloud API Explorer for details.
|
3888
5129
|
|
3889
|
-
:param request: Request instance for
|
3890
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3891
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
5130
|
+
:param request: Request instance for ShowJobBuildSuccessRatio
|
5131
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioRequest`
|
5132
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioResponse`
|
3892
5133
|
"""
|
3893
|
-
http_info = self.
|
5134
|
+
http_info = self._show_job_build_success_ratio_http_info(request)
|
3894
5135
|
return self._call_api(**http_info)
|
3895
5136
|
|
3896
|
-
def
|
3897
|
-
http_info = self.
|
5137
|
+
def show_job_build_success_ratio_invoker(self, request):
|
5138
|
+
http_info = self._show_job_build_success_ratio_http_info(request)
|
3898
5139
|
return SyncInvoker(self, http_info)
|
3899
5140
|
|
3900
5141
|
@classmethod
|
3901
|
-
def
|
5142
|
+
def _show_job_build_success_ratio_http_info(cls, request):
|
3902
5143
|
http_info = {
|
3903
|
-
"method": "
|
3904
|
-
"resource_path": "/
|
5144
|
+
"method": "GET",
|
5145
|
+
"resource_path": "/v1/report/ratio",
|
3905
5146
|
"request_type": request.__class__.__name__,
|
3906
|
-
"response_type": "
|
5147
|
+
"response_type": "ShowJobBuildSuccessRatioResponse"
|
3907
5148
|
}
|
3908
5149
|
|
3909
5150
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3915,14 +5156,20 @@ class CodeArtsBuildClient(Client):
|
|
3915
5156
|
path_params = {}
|
3916
5157
|
|
3917
5158
|
query_params = []
|
5159
|
+
if 'job_id' in local_var_params:
|
5160
|
+
query_params.append(('job_id', local_var_params['job_id']))
|
5161
|
+
if 'repository_name' in local_var_params:
|
5162
|
+
query_params.append(('repository_name', local_var_params['repository_name']))
|
5163
|
+
if 'branch' in local_var_params:
|
5164
|
+
query_params.append(('branch', local_var_params['branch']))
|
5165
|
+
if 'interval' in local_var_params:
|
5166
|
+
query_params.append(('interval', local_var_params['interval']))
|
3918
5167
|
|
3919
5168
|
header_params = {}
|
3920
5169
|
|
3921
5170
|
form_params = {}
|
3922
5171
|
|
3923
5172
|
body = None
|
3924
|
-
if 'body' in local_var_params:
|
3925
|
-
body = local_var_params['body']
|
3926
5173
|
if isinstance(request, SdkStreamRequest):
|
3927
5174
|
body = request.get_file_stream()
|
3928
5175
|
|
@@ -3944,31 +5191,31 @@ class CodeArtsBuildClient(Client):
|
|
3944
5191
|
|
3945
5192
|
return http_info
|
3946
5193
|
|
3947
|
-
def
|
3948
|
-
r"""
|
5194
|
+
def show_job_build_time(self, request):
|
5195
|
+
r"""洞察构建时长
|
3949
5196
|
|
3950
|
-
|
5197
|
+
洞察构建时长
|
3951
5198
|
|
3952
5199
|
Please refer to HUAWEI cloud API Explorer for details.
|
3953
5200
|
|
3954
|
-
:param request: Request instance for
|
3955
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3956
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
5201
|
+
:param request: Request instance for ShowJobBuildTime
|
5202
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeRequest`
|
5203
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeResponse`
|
3957
5204
|
"""
|
3958
|
-
http_info = self.
|
5205
|
+
http_info = self._show_job_build_time_http_info(request)
|
3959
5206
|
return self._call_api(**http_info)
|
3960
5207
|
|
3961
|
-
def
|
3962
|
-
http_info = self.
|
5208
|
+
def show_job_build_time_invoker(self, request):
|
5209
|
+
http_info = self._show_job_build_time_http_info(request)
|
3963
5210
|
return SyncInvoker(self, http_info)
|
3964
5211
|
|
3965
5212
|
@classmethod
|
3966
|
-
def
|
5213
|
+
def _show_job_build_time_http_info(cls, request):
|
3967
5214
|
http_info = {
|
3968
|
-
"method": "
|
3969
|
-
"resource_path": "/
|
5215
|
+
"method": "GET",
|
5216
|
+
"resource_path": "/v1/report/time",
|
3970
5217
|
"request_type": request.__class__.__name__,
|
3971
|
-
"response_type": "
|
5218
|
+
"response_type": "ShowJobBuildTimeResponse"
|
3972
5219
|
}
|
3973
5220
|
|
3974
5221
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -3978,18 +5225,22 @@ class CodeArtsBuildClient(Client):
|
|
3978
5225
|
collection_formats = {}
|
3979
5226
|
|
3980
5227
|
path_params = {}
|
3981
|
-
if 'job_id' in local_var_params:
|
3982
|
-
path_params['job_id'] = local_var_params['job_id']
|
3983
5228
|
|
3984
5229
|
query_params = []
|
5230
|
+
if 'job_id' in local_var_params:
|
5231
|
+
query_params.append(('job_id', local_var_params['job_id']))
|
5232
|
+
if 'repository_name' in local_var_params:
|
5233
|
+
query_params.append(('repository_name', local_var_params['repository_name']))
|
5234
|
+
if 'branch' in local_var_params:
|
5235
|
+
query_params.append(('branch', local_var_params['branch']))
|
5236
|
+
if 'interval' in local_var_params:
|
5237
|
+
query_params.append(('interval', local_var_params['interval']))
|
3985
5238
|
|
3986
5239
|
header_params = {}
|
3987
5240
|
|
3988
5241
|
form_params = {}
|
3989
5242
|
|
3990
5243
|
body = None
|
3991
|
-
if 'body' in local_var_params:
|
3992
|
-
body = local_var_params['body']
|
3993
5244
|
if isinstance(request, SdkStreamRequest):
|
3994
5245
|
body = request.get_file_stream()
|
3995
5246
|
|
@@ -4011,31 +5262,31 @@ class CodeArtsBuildClient(Client):
|
|
4011
5262
|
|
4012
5263
|
return http_info
|
4013
5264
|
|
4014
|
-
def
|
4015
|
-
r"""
|
5265
|
+
def show_report_summary(self, request):
|
5266
|
+
r"""获取覆盖率接口
|
4016
5267
|
|
4017
|
-
|
5268
|
+
获取覆盖率接口
|
4018
5269
|
|
4019
5270
|
Please refer to HUAWEI cloud API Explorer for details.
|
4020
5271
|
|
4021
|
-
:param request: Request instance for
|
4022
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4023
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
5272
|
+
:param request: Request instance for ShowReportSummary
|
5273
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowReportSummaryRequest`
|
5274
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowReportSummaryResponse`
|
4024
5275
|
"""
|
4025
|
-
http_info = self.
|
5276
|
+
http_info = self._show_report_summary_http_info(request)
|
4026
5277
|
return self._call_api(**http_info)
|
4027
5278
|
|
4028
|
-
def
|
4029
|
-
http_info = self.
|
5279
|
+
def show_report_summary_invoker(self, request):
|
5280
|
+
http_info = self._show_report_summary_http_info(request)
|
4030
5281
|
return SyncInvoker(self, http_info)
|
4031
5282
|
|
4032
5283
|
@classmethod
|
4033
|
-
def
|
5284
|
+
def _show_report_summary_http_info(cls, request):
|
4034
5285
|
http_info = {
|
4035
5286
|
"method": "GET",
|
4036
|
-
"resource_path": "/
|
5287
|
+
"resource_path": "/v1/report/{job_id}/summary",
|
4037
5288
|
"request_type": request.__class__.__name__,
|
4038
|
-
"response_type": "
|
5289
|
+
"response_type": "ShowReportSummaryResponse"
|
4039
5290
|
}
|
4040
5291
|
|
4041
5292
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -4045,10 +5296,12 @@ class CodeArtsBuildClient(Client):
|
|
4045
5296
|
collection_formats = {}
|
4046
5297
|
|
4047
5298
|
path_params = {}
|
4048
|
-
if '
|
4049
|
-
path_params['
|
5299
|
+
if 'job_id' in local_var_params:
|
5300
|
+
path_params['job_id'] = local_var_params['job_id']
|
4050
5301
|
|
4051
5302
|
query_params = []
|
5303
|
+
if 'build_no' in local_var_params:
|
5304
|
+
query_params.append(('build_no', local_var_params['build_no']))
|
4052
5305
|
|
4053
5306
|
header_params = {}
|
4054
5307
|
|
@@ -4076,31 +5329,31 @@ class CodeArtsBuildClient(Client):
|
|
4076
5329
|
|
4077
5330
|
return http_info
|
4078
5331
|
|
4079
|
-
def
|
4080
|
-
r"""
|
5332
|
+
def list_custom_template(self, request):
|
5333
|
+
r"""根据条件查询特定模板
|
4081
5334
|
|
4082
|
-
|
5335
|
+
根据条件查询特定模板
|
4083
5336
|
|
4084
5337
|
Please refer to HUAWEI cloud API Explorer for details.
|
4085
5338
|
|
4086
|
-
:param request: Request instance for
|
4087
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4088
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
5339
|
+
:param request: Request instance for ListCustomTemplate
|
5340
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListCustomTemplateRequest`
|
5341
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListCustomTemplateResponse`
|
4089
5342
|
"""
|
4090
|
-
http_info = self.
|
5343
|
+
http_info = self._list_custom_template_http_info(request)
|
4091
5344
|
return self._call_api(**http_info)
|
4092
5345
|
|
4093
|
-
def
|
4094
|
-
http_info = self.
|
5346
|
+
def list_custom_template_invoker(self, request):
|
5347
|
+
http_info = self._list_custom_template_http_info(request)
|
4095
5348
|
return SyncInvoker(self, http_info)
|
4096
5349
|
|
4097
5350
|
@classmethod
|
4098
|
-
def
|
5351
|
+
def _list_custom_template_http_info(cls, request):
|
4099
5352
|
http_info = {
|
4100
5353
|
"method": "GET",
|
4101
|
-
"resource_path": "/
|
5354
|
+
"resource_path": "/v1/template/custom",
|
4102
5355
|
"request_type": request.__class__.__name__,
|
4103
|
-
"response_type": "
|
5356
|
+
"response_type": "ListCustomTemplateResponse"
|
4104
5357
|
}
|
4105
5358
|
|
4106
5359
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -4110,10 +5363,18 @@ class CodeArtsBuildClient(Client):
|
|
4110
5363
|
collection_formats = {}
|
4111
5364
|
|
4112
5365
|
path_params = {}
|
4113
|
-
if 'build_flow_record_id' in local_var_params:
|
4114
|
-
path_params['build_flow_record_id'] = local_var_params['build_flow_record_id']
|
4115
5366
|
|
4116
5367
|
query_params = []
|
5368
|
+
if 'name' in local_var_params:
|
5369
|
+
query_params.append(('name', local_var_params['name']))
|
5370
|
+
if 'filter' in local_var_params:
|
5371
|
+
query_params.append(('filter', local_var_params['filter']))
|
5372
|
+
if 'page' in local_var_params:
|
5373
|
+
query_params.append(('page', local_var_params['page']))
|
5374
|
+
if 'page_size' in local_var_params:
|
5375
|
+
query_params.append(('page_size', local_var_params['page_size']))
|
5376
|
+
if 'tags' in local_var_params:
|
5377
|
+
query_params.append(('tags', local_var_params['tags']))
|
4117
5378
|
|
4118
5379
|
header_params = {}
|
4119
5380
|
|
@@ -4141,31 +5402,31 @@ class CodeArtsBuildClient(Client):
|
|
4141
5402
|
|
4142
5403
|
return http_info
|
4143
5404
|
|
4144
|
-
def
|
4145
|
-
r"""
|
5405
|
+
def list_official_template(self, request):
|
5406
|
+
r"""查询官方模版
|
4146
5407
|
|
4147
|
-
|
5408
|
+
查询官方模版
|
4148
5409
|
|
4149
5410
|
Please refer to HUAWEI cloud API Explorer for details.
|
4150
5411
|
|
4151
|
-
:param request: Request instance for
|
4152
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4153
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
5412
|
+
:param request: Request instance for ListOfficialTemplate
|
5413
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListOfficialTemplateRequest`
|
5414
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListOfficialTemplateResponse`
|
4154
5415
|
"""
|
4155
|
-
http_info = self.
|
5416
|
+
http_info = self._list_official_template_http_info(request)
|
4156
5417
|
return self._call_api(**http_info)
|
4157
5418
|
|
4158
|
-
def
|
4159
|
-
http_info = self.
|
5419
|
+
def list_official_template_invoker(self, request):
|
5420
|
+
http_info = self._list_official_template_http_info(request)
|
4160
5421
|
return SyncInvoker(self, http_info)
|
4161
5422
|
|
4162
5423
|
@classmethod
|
4163
|
-
def
|
5424
|
+
def _list_official_template_http_info(cls, request):
|
4164
5425
|
http_info = {
|
4165
5426
|
"method": "GET",
|
4166
|
-
"resource_path": "/
|
5427
|
+
"resource_path": "/v1/template/officialtemplates",
|
4167
5428
|
"request_type": request.__class__.__name__,
|
4168
|
-
"response_type": "
|
5429
|
+
"response_type": "ListOfficialTemplateResponse"
|
4169
5430
|
}
|
4170
5431
|
|
4171
5432
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -4175,12 +5436,14 @@ class CodeArtsBuildClient(Client):
|
|
4175
5436
|
collection_formats = {}
|
4176
5437
|
|
4177
5438
|
path_params = {}
|
4178
|
-
if 'job_id' in local_var_params:
|
4179
|
-
path_params['job_id'] = local_var_params['job_id']
|
4180
|
-
if 'build_no' in local_var_params:
|
4181
|
-
path_params['build_no'] = local_var_params['build_no']
|
4182
5439
|
|
4183
5440
|
query_params = []
|
5441
|
+
if 'name' in local_var_params:
|
5442
|
+
query_params.append(('name', local_var_params['name']))
|
5443
|
+
if 'page' in local_var_params:
|
5444
|
+
query_params.append(('page', local_var_params['page']))
|
5445
|
+
if 'page_size' in local_var_params:
|
5446
|
+
query_params.append(('page_size', local_var_params['page_size']))
|
4184
5447
|
|
4185
5448
|
header_params = {}
|
4186
5449
|
|
@@ -4208,31 +5471,31 @@ class CodeArtsBuildClient(Client):
|
|
4208
5471
|
|
4209
5472
|
return http_info
|
4210
5473
|
|
4211
|
-
def
|
4212
|
-
r"""
|
5474
|
+
def show_yaml_template(self, request):
|
5475
|
+
r"""获取代码化构建默认模板
|
4213
5476
|
|
4214
|
-
|
5477
|
+
获取代码化构建默认模板
|
4215
5478
|
|
4216
5479
|
Please refer to HUAWEI cloud API Explorer for details.
|
4217
5480
|
|
4218
|
-
:param request: Request instance for
|
4219
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4220
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
5481
|
+
:param request: Request instance for ShowYamlTemplate
|
5482
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowYamlTemplateRequest`
|
5483
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowYamlTemplateResponse`
|
4221
5484
|
"""
|
4222
|
-
http_info = self.
|
5485
|
+
http_info = self._show_yaml_template_http_info(request)
|
4223
5486
|
return self._call_api(**http_info)
|
4224
5487
|
|
4225
|
-
def
|
4226
|
-
http_info = self.
|
5488
|
+
def show_yaml_template_invoker(self, request):
|
5489
|
+
http_info = self._show_yaml_template_http_info(request)
|
4227
5490
|
return SyncInvoker(self, http_info)
|
4228
5491
|
|
4229
5492
|
@classmethod
|
4230
|
-
def
|
5493
|
+
def _show_yaml_template_http_info(cls, request):
|
4231
5494
|
http_info = {
|
4232
|
-
"method": "
|
4233
|
-
"resource_path": "/
|
5495
|
+
"method": "GET",
|
5496
|
+
"resource_path": "/v1/template/{job_id}/default-template",
|
4234
5497
|
"request_type": request.__class__.__name__,
|
4235
|
-
"response_type": "
|
5498
|
+
"response_type": "ShowYamlTemplateResponse"
|
4236
5499
|
}
|
4237
5500
|
|
4238
5501
|
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
@@ -4242,16 +5505,18 @@ class CodeArtsBuildClient(Client):
|
|
4242
5505
|
collection_formats = {}
|
4243
5506
|
|
4244
5507
|
path_params = {}
|
5508
|
+
if 'job_id' in local_var_params:
|
5509
|
+
path_params['job_id'] = local_var_params['job_id']
|
4245
5510
|
|
4246
5511
|
query_params = []
|
5512
|
+
if 'default_host' in local_var_params:
|
5513
|
+
query_params.append(('default_host', local_var_params['default_host']))
|
4247
5514
|
|
4248
5515
|
header_params = {}
|
4249
5516
|
|
4250
5517
|
form_params = {}
|
4251
5518
|
|
4252
5519
|
body = None
|
4253
|
-
if 'body' in local_var_params:
|
4254
|
-
body = local_var_params['body']
|
4255
5520
|
if isinstance(request, SdkStreamRequest):
|
4256
5521
|
body = request.get_file_stream()
|
4257
5522
|
|