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 CodeArtsBuildAsyncClient(Client):
|
|
33
33
|
|
34
34
|
return client_builder
|
35
35
|
|
36
|
-
def check_job_name_is_exists_async(self, request):
|
37
|
-
r"""查看项目下任务名是否存在
|
38
|
-
|
39
|
-
查看项目下任务名是否存在
|
40
|
-
|
41
|
-
Please refer to HUAWEI cloud API Explorer for details.
|
42
|
-
|
43
|
-
|
44
|
-
:param request: Request instance for CheckJobNameIsExists
|
45
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobNameIsExistsRequest`
|
46
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobNameIsExistsResponse`
|
47
|
-
"""
|
48
|
-
http_info = self._check_job_name_is_exists_http_info(request)
|
49
|
-
return self._call_api(**http_info)
|
50
|
-
|
51
|
-
def check_job_name_is_exists_async_invoker(self, request):
|
52
|
-
http_info = self._check_job_name_is_exists_http_info(request)
|
53
|
-
return AsyncInvoker(self, http_info)
|
54
|
-
|
55
|
-
def _check_job_name_is_exists_http_info(self, 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_async(self, request):
|
104
37
|
r"""创建构建任务
|
105
38
|
|
@@ -626,75 +559,6 @@ class CodeArtsBuildAsyncClient(Client):
|
|
626
559
|
|
627
560
|
return http_info
|
628
561
|
|
629
|
-
def download_keystore_by_name_async(self, request):
|
630
|
-
r"""文件管理文件下载
|
631
|
-
|
632
|
-
文件管理文件下载
|
633
|
-
|
634
|
-
Please refer to HUAWEI cloud API Explorer for details.
|
635
|
-
|
636
|
-
|
637
|
-
:param request: Request instance for DownloadKeystoreByName
|
638
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadKeystoreByNameRequest`
|
639
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadKeystoreByNameResponse`
|
640
|
-
"""
|
641
|
-
http_info = self._download_keystore_by_name_http_info(request)
|
642
|
-
return self._call_api(**http_info)
|
643
|
-
|
644
|
-
def download_keystore_by_name_async_invoker(self, request):
|
645
|
-
http_info = self._download_keystore_by_name_http_info(request)
|
646
|
-
return AsyncInvoker(self, http_info)
|
647
|
-
|
648
|
-
def _download_keystore_by_name_http_info(self, 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_async(self, request):
|
699
563
|
r"""下载构建实时日志
|
700
564
|
|
@@ -973,31 +837,31 @@ class CodeArtsBuildAsyncClient(Client):
|
|
973
837
|
|
974
838
|
return http_info
|
975
839
|
|
976
|
-
def
|
977
|
-
r"""
|
840
|
+
def list_job_config_async(self, request):
|
841
|
+
r"""获取构建任务详情
|
978
842
|
|
979
|
-
|
843
|
+
获取构建任务详情
|
980
844
|
|
981
845
|
Please refer to HUAWEI cloud API Explorer for details.
|
982
846
|
|
983
847
|
|
984
|
-
:param request: Request instance for
|
985
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
986
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
848
|
+
:param request: Request instance for ListJobConfig
|
849
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobConfigRequest`
|
850
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobConfigResponse`
|
987
851
|
"""
|
988
|
-
http_info = self.
|
852
|
+
http_info = self._list_job_config_http_info(request)
|
989
853
|
return self._call_api(**http_info)
|
990
854
|
|
991
|
-
def
|
992
|
-
http_info = self.
|
855
|
+
def list_job_config_async_invoker(self, request):
|
856
|
+
http_info = self._list_job_config_http_info(request)
|
993
857
|
return AsyncInvoker(self, http_info)
|
994
858
|
|
995
|
-
def
|
859
|
+
def _list_job_config_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
1046
904
|
|
1047
905
|
return http_info
|
1048
906
|
|
1049
|
-
def
|
1050
|
-
r"""
|
907
|
+
def list_notice_async(self, request):
|
908
|
+
r"""查询通知
|
1051
909
|
|
1052
|
-
|
910
|
+
查询通知
|
1053
911
|
|
1054
912
|
Please refer to HUAWEI cloud API Explorer for details.
|
1055
913
|
|
1056
914
|
|
1057
|
-
:param request: Request instance for
|
1058
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1059
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
915
|
+
:param request: Request instance for ListNotice
|
916
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListNoticeRequest`
|
917
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListNoticeResponse`
|
1060
918
|
"""
|
1061
|
-
http_info = self.
|
919
|
+
http_info = self._list_notice_http_info(request)
|
1062
920
|
return self._call_api(**http_info)
|
1063
921
|
|
1064
|
-
def
|
1065
|
-
http_info = self.
|
922
|
+
def list_notice_async_invoker(self, request):
|
923
|
+
http_info = self._list_notice_http_info(request)
|
1066
924
|
return AsyncInvoker(self, http_info)
|
1067
925
|
|
1068
|
-
def
|
926
|
+
def _list_notice_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
1113
969
|
|
1114
970
|
return http_info
|
1115
971
|
|
1116
|
-
def
|
1117
|
-
r"""
|
972
|
+
def list_templates_async(self, request):
|
973
|
+
r"""查询构建模板
|
1118
974
|
|
1119
|
-
|
975
|
+
查询构建模板
|
1120
976
|
|
1121
977
|
Please refer to HUAWEI cloud API Explorer for details.
|
1122
978
|
|
1123
979
|
|
1124
|
-
:param request: Request instance for
|
1125
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1126
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
980
|
+
:param request: Request instance for ListTemplates
|
981
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesRequest`
|
982
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesResponse`
|
1127
983
|
"""
|
1128
|
-
http_info = self.
|
984
|
+
http_info = self._list_templates_http_info(request)
|
1129
985
|
return self._call_api(**http_info)
|
1130
986
|
|
1131
|
-
def
|
1132
|
-
http_info = self.
|
987
|
+
def list_templates_async_invoker(self, request):
|
988
|
+
http_info = self._list_templates_http_info(request)
|
1133
989
|
return AsyncInvoker(self, http_info)
|
1134
990
|
|
1135
|
-
def
|
991
|
+
def _list_templates_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
1176
1038
|
|
1177
1039
|
return http_info
|
1178
1040
|
|
1179
|
-
def
|
1180
|
-
r"""
|
1041
|
+
def run_job_async(self, request):
|
1042
|
+
r"""执行构建任务
|
1181
1043
|
|
1182
|
-
|
1044
|
+
执行构建任务,可传自定义参数
|
1183
1045
|
|
1184
1046
|
Please refer to HUAWEI cloud API Explorer for details.
|
1185
1047
|
|
1186
1048
|
|
1187
|
-
:param request: Request instance for
|
1188
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1189
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1049
|
+
:param request: Request instance for RunJob
|
1050
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobRequest`
|
1051
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobResponse`
|
1190
1052
|
"""
|
1191
|
-
http_info = self.
|
1053
|
+
http_info = self._run_job_http_info(request)
|
1192
1054
|
return self._call_api(**http_info)
|
1193
1055
|
|
1194
|
-
def
|
1195
|
-
http_info = self.
|
1056
|
+
def run_job_async_invoker(self, request):
|
1057
|
+
http_info = self._run_job_http_info(request)
|
1196
1058
|
return AsyncInvoker(self, http_info)
|
1197
1059
|
|
1198
|
-
def
|
1060
|
+
def _run_job_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
1241
1103
|
|
1242
1104
|
return http_info
|
1243
1105
|
|
1244
|
-
def
|
1245
|
-
r"""
|
1106
|
+
def show_history_details_async(self, request):
|
1107
|
+
r"""获取构建历史详情信息接口
|
1108
|
+
|
1109
|
+
获取构建历史详情信息接口
|
1110
|
+
|
1111
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1112
|
+
|
1113
|
+
|
1114
|
+
:param request: Request instance for ShowHistoryDetails
|
1115
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsRequest`
|
1116
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsResponse`
|
1117
|
+
"""
|
1118
|
+
http_info = self._show_history_details_http_info(request)
|
1119
|
+
return self._call_api(**http_info)
|
1120
|
+
|
1121
|
+
def show_history_details_async_invoker(self, request):
|
1122
|
+
http_info = self._show_history_details_http_info(request)
|
1123
|
+
return AsyncInvoker(self, http_info)
|
1124
|
+
|
1125
|
+
def _show_history_details_http_info(self, 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_async(self, request):
|
1174
|
+
r"""查看项目下用户的构建任务列表
|
1175
|
+
|
1176
|
+
查看项目下用户的构建任务列表
|
1177
|
+
|
1178
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1179
|
+
|
1180
|
+
|
1181
|
+
:param request: Request instance for ShowJobListByProjectId
|
1182
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdRequest`
|
1183
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdResponse`
|
1184
|
+
"""
|
1185
|
+
http_info = self._show_job_list_by_project_id_http_info(request)
|
1186
|
+
return self._call_api(**http_info)
|
1187
|
+
|
1188
|
+
def show_job_list_by_project_id_async_invoker(self, request):
|
1189
|
+
http_info = self._show_job_list_by_project_id_http_info(request)
|
1190
|
+
return AsyncInvoker(self, http_info)
|
1191
|
+
|
1192
|
+
def _show_job_list_by_project_id_http_info(self, 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_async(self, request):
|
1243
|
+
r"""查看任务运行状态
|
1244
|
+
|
1245
|
+
查看任务运行状态
|
1246
|
+
|
1247
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1248
|
+
|
1249
|
+
|
1250
|
+
:param request: Request instance for ShowJobStatus
|
1251
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStatusRequest`
|
1252
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStatusResponse`
|
1253
|
+
"""
|
1254
|
+
http_info = self._show_job_status_http_info(request)
|
1255
|
+
return self._call_api(**http_info)
|
1256
|
+
|
1257
|
+
def show_job_status_async_invoker(self, request):
|
1258
|
+
http_info = self._show_job_status_http_info(request)
|
1259
|
+
return AsyncInvoker(self, http_info)
|
1260
|
+
|
1261
|
+
def _show_job_status_http_info(self, 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_async(self, request):
|
1308
|
+
r"""根据开始时间和结束时间查看构建任务的构建成功率
|
1309
|
+
|
1310
|
+
根据开始时间和结束时间查看构建任务的构建成功率
|
1311
|
+
|
1312
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1313
|
+
|
1314
|
+
|
1315
|
+
:param request: Request instance for ShowJobSuccessRatio
|
1316
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSuccessRatioRequest`
|
1317
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSuccessRatioResponse`
|
1318
|
+
"""
|
1319
|
+
http_info = self._show_job_success_ratio_http_info(request)
|
1320
|
+
return self._call_api(**http_info)
|
1321
|
+
|
1322
|
+
def show_job_success_ratio_async_invoker(self, request):
|
1323
|
+
http_info = self._show_job_success_ratio_http_info(request)
|
1324
|
+
return AsyncInvoker(self, http_info)
|
1325
|
+
|
1326
|
+
def _show_job_success_ratio_http_info(self, 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_async(self, request):
|
1377
|
+
r"""查询指定代码仓库最近一次成功的构建历史
|
1378
|
+
|
1379
|
+
查询指定代码仓库最近一次成功的构建历史
|
1380
|
+
|
1381
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1382
|
+
|
1383
|
+
|
1384
|
+
:param request: Request instance for ShowLastHistory
|
1385
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowLastHistoryRequest`
|
1386
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowLastHistoryResponse`
|
1387
|
+
"""
|
1388
|
+
http_info = self._show_last_history_http_info(request)
|
1389
|
+
return self._call_api(**http_info)
|
1390
|
+
|
1391
|
+
def show_last_history_async_invoker(self, request):
|
1392
|
+
http_info = self._show_last_history_http_info(request)
|
1393
|
+
return AsyncInvoker(self, http_info)
|
1394
|
+
|
1395
|
+
def _show_last_history_http_info(self, 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_async(self, request):
|
1444
|
+
r"""查看构建任务的构建历史列表
|
1445
|
+
|
1446
|
+
查看构建任务的构建历史列表
|
1447
|
+
|
1448
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1449
|
+
|
1450
|
+
|
1451
|
+
:param request: Request instance for ShowListHistory
|
1452
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowListHistoryRequest`
|
1453
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowListHistoryResponse`
|
1454
|
+
"""
|
1455
|
+
http_info = self._show_list_history_http_info(request)
|
1456
|
+
return self._call_api(**http_info)
|
1457
|
+
|
1458
|
+
def show_list_history_async_invoker(self, request):
|
1459
|
+
http_info = self._show_list_history_http_info(request)
|
1460
|
+
return AsyncInvoker(self, http_info)
|
1461
|
+
|
1462
|
+
def _show_list_history_http_info(self, 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_async(self, request):
|
1515
|
+
r"""根据开始时间和结束时间查看构建任务的构建历史列表
|
1516
|
+
|
1517
|
+
根据开始时间和结束时间查看构建任务的构建历史列表
|
1518
|
+
|
1519
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1520
|
+
|
1521
|
+
|
1522
|
+
:param request: Request instance for ShowListPeriodHistory
|
1523
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowListPeriodHistoryRequest`
|
1524
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowListPeriodHistoryResponse`
|
1525
|
+
"""
|
1526
|
+
http_info = self._show_list_period_history_http_info(request)
|
1527
|
+
return self._call_api(**http_info)
|
1528
|
+
|
1529
|
+
def show_list_period_history_async_invoker(self, request):
|
1530
|
+
http_info = self._show_list_period_history_http_info(request)
|
1531
|
+
return AsyncInvoker(self, http_info)
|
1532
|
+
|
1533
|
+
def _show_list_period_history_http_info(self, 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_async(self, request):
|
1588
|
+
r"""获取构建产物详情信息
|
1589
|
+
|
1590
|
+
获取构建产物详情信息
|
1591
|
+
|
1592
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1593
|
+
|
1594
|
+
|
1595
|
+
:param request: Request instance for ShowOutputInfo
|
1596
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowOutputInfoRequest`
|
1597
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowOutputInfoResponse`
|
1598
|
+
"""
|
1599
|
+
http_info = self._show_output_info_http_info(request)
|
1600
|
+
return self._call_api(**http_info)
|
1601
|
+
|
1602
|
+
def show_output_info_async_invoker(self, request):
|
1603
|
+
http_info = self._show_output_info_http_info(request)
|
1604
|
+
return AsyncInvoker(self, http_info)
|
1605
|
+
|
1606
|
+
def _show_output_info_http_info(self, 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_async(self, request):
|
1655
|
+
r"""获取构建记录信息
|
1656
|
+
|
1657
|
+
获取构建记录信息
|
1658
|
+
|
1659
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1660
|
+
|
1661
|
+
|
1662
|
+
:param request: Request instance for ShowRecordDetail
|
1663
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRecordDetailRequest`
|
1664
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRecordDetailResponse`
|
1665
|
+
"""
|
1666
|
+
http_info = self._show_record_detail_http_info(request)
|
1667
|
+
return self._call_api(**http_info)
|
1668
|
+
|
1669
|
+
def show_record_detail_async_invoker(self, request):
|
1670
|
+
http_info = self._show_record_detail_http_info(request)
|
1671
|
+
return AsyncInvoker(self, http_info)
|
1672
|
+
|
1673
|
+
def _show_record_detail_http_info(self, 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_async(self, request):
|
1722
|
+
r"""停止构建任务
|
1723
|
+
|
1724
|
+
停止构建任务
|
1725
|
+
|
1726
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1727
|
+
|
1728
|
+
|
1729
|
+
:param request: Request instance for StopBuildJob
|
1730
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.StopBuildJobRequest`
|
1731
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.StopBuildJobResponse`
|
1732
|
+
"""
|
1733
|
+
http_info = self._stop_build_job_http_info(request)
|
1734
|
+
return self._call_api(**http_info)
|
1735
|
+
|
1736
|
+
def stop_build_job_async_invoker(self, request):
|
1737
|
+
http_info = self._stop_build_job_http_info(request)
|
1738
|
+
return AsyncInvoker(self, http_info)
|
1739
|
+
|
1740
|
+
def _stop_build_job_http_info(self, 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_async(self, request):
|
1789
|
+
r"""更新构建任务
|
1790
|
+
|
1791
|
+
更新构建任务
|
1792
|
+
|
1793
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1794
|
+
|
1795
|
+
|
1796
|
+
:param request: Request instance for UpdateBuildJob
|
1797
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateBuildJobRequest`
|
1798
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateBuildJobResponse`
|
1799
|
+
"""
|
1800
|
+
http_info = self._update_build_job_http_info(request)
|
1801
|
+
return self._call_api(**http_info)
|
1802
|
+
|
1803
|
+
def update_build_job_async_invoker(self, request):
|
1804
|
+
http_info = self._update_build_job_http_info(request)
|
1805
|
+
return AsyncInvoker(self, http_info)
|
1806
|
+
|
1807
|
+
def _update_build_job_http_info(self, 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_async(self, request):
|
1854
|
+
r"""更新通知
|
1855
|
+
|
1856
|
+
更新通知
|
1857
|
+
|
1858
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1859
|
+
|
1860
|
+
|
1861
|
+
:param request: Request instance for UpdateNotice
|
1862
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateNoticeRequest`
|
1863
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateNoticeResponse`
|
1864
|
+
"""
|
1865
|
+
http_info = self._update_notice_http_info(request)
|
1866
|
+
return self._call_api(**http_info)
|
1867
|
+
|
1868
|
+
def update_notice_async_invoker(self, request):
|
1869
|
+
http_info = self._update_notice_http_info(request)
|
1870
|
+
return AsyncInvoker(self, http_info)
|
1871
|
+
|
1872
|
+
def _update_notice_http_info(self, 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_async(self, request):
|
1921
|
+
r"""获取项目列表
|
1922
|
+
|
1923
|
+
获取项目列表
|
1924
|
+
|
1925
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1926
|
+
|
1927
|
+
|
1928
|
+
:param request: Request instance for ListRelatedProjectInfo
|
1929
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRelatedProjectInfoRequest`
|
1930
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRelatedProjectInfoResponse`
|
1931
|
+
"""
|
1932
|
+
http_info = self._list_related_project_info_http_info(request)
|
1933
|
+
return self._call_api(**http_info)
|
1934
|
+
|
1935
|
+
def list_related_project_info_async_invoker(self, request):
|
1936
|
+
http_info = self._list_related_project_info_http_info(request)
|
1937
|
+
return AsyncInvoker(self, http_info)
|
1938
|
+
|
1939
|
+
def _list_related_project_info_http_info(self, 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_async(self, request):
|
1990
|
+
r"""获取用户权限
|
1991
|
+
|
1992
|
+
获取用户权限
|
1993
|
+
|
1994
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
1995
|
+
|
1996
|
+
|
1997
|
+
:param request: Request instance for ShowProjectPermission
|
1998
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionRequest`
|
1999
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionResponse`
|
2000
|
+
"""
|
2001
|
+
http_info = self._show_project_permission_http_info(request)
|
2002
|
+
return self._call_api(**http_info)
|
2003
|
+
|
2004
|
+
def show_project_permission_async_invoker(self, request):
|
2005
|
+
http_info = self._show_project_permission_http_info(request)
|
2006
|
+
return AsyncInvoker(self, http_info)
|
2007
|
+
|
2008
|
+
def _show_project_permission_http_info(self, 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_async(self, request):
|
2055
|
+
r"""获取当前用户的项目信息列表
|
2056
|
+
|
2057
|
+
获取当前用户的项目信息列表
|
2058
|
+
|
2059
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2060
|
+
|
2061
|
+
|
2062
|
+
:param request: Request instance for ShowRelatedProject
|
2063
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRelatedProjectRequest`
|
2064
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRelatedProjectResponse`
|
2065
|
+
"""
|
2066
|
+
http_info = self._show_related_project_http_info(request)
|
2067
|
+
return self._call_api(**http_info)
|
2068
|
+
|
2069
|
+
def show_related_project_async_invoker(self, request):
|
2070
|
+
http_info = self._show_related_project_http_info(request)
|
2071
|
+
return AsyncInvoker(self, http_info)
|
2072
|
+
|
2073
|
+
def _show_related_project_http_info(self, 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_async(self, request):
|
2118
|
+
r"""获取租户任务总数和成功率接口
|
2119
|
+
|
2120
|
+
获取租户任务总数和成功率接口
|
2121
|
+
|
2122
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2123
|
+
|
2124
|
+
|
2125
|
+
:param request: Request instance for ShowSummaryBuildJobInfo
|
2126
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowSummaryBuildJobInfoRequest`
|
2127
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowSummaryBuildJobInfoResponse`
|
2128
|
+
"""
|
2129
|
+
http_info = self._show_summary_build_job_info_http_info(request)
|
2130
|
+
return self._call_api(**http_info)
|
2131
|
+
|
2132
|
+
def show_summary_build_job_info_async_invoker(self, request):
|
2133
|
+
http_info = self._show_summary_build_job_info_http_info(request)
|
2134
|
+
return AsyncInvoker(self, http_info)
|
2135
|
+
|
2136
|
+
def _show_summary_build_job_info_http_info(self, 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_async(self, request):
|
2181
|
+
r"""当前用户所在项目所属租户的包周期每月时长是否超额
|
2182
|
+
|
2183
|
+
当前用户所在项目所属租户的包周期每月时长是否超额
|
2184
|
+
|
2185
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2186
|
+
|
2187
|
+
|
2188
|
+
:param request: Request instance for ShowUserOverPackageQuota
|
2189
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowUserOverPackageQuotaRequest`
|
2190
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowUserOverPackageQuotaResponse`
|
2191
|
+
"""
|
2192
|
+
http_info = self._show_user_over_package_quota_http_info(request)
|
2193
|
+
return self._call_api(**http_info)
|
2194
|
+
|
2195
|
+
def show_user_over_package_quota_async_invoker(self, request):
|
2196
|
+
http_info = self._show_user_over_package_quota_http_info(request)
|
2197
|
+
return AsyncInvoker(self, http_info)
|
2198
|
+
|
2199
|
+
def _show_user_over_package_quota_http_info(self, 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_async(self, request):
|
2246
|
+
r"""获取dockerfileTemplate
|
2247
|
+
|
2248
|
+
获取dockerfileTemplate
|
2249
|
+
|
2250
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2251
|
+
|
2252
|
+
|
2253
|
+
:param request: Request instance for ShowDockerfileTemplate
|
2254
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDockerfileTemplateRequest`
|
2255
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDockerfileTemplateResponse`
|
2256
|
+
"""
|
2257
|
+
http_info = self._show_dockerfile_template_http_info(request)
|
2258
|
+
return self._call_api(**http_info)
|
2259
|
+
|
2260
|
+
def show_dockerfile_template_async_invoker(self, request):
|
2261
|
+
http_info = self._show_dockerfile_template_http_info(request)
|
2262
|
+
return AsyncInvoker(self, http_info)
|
2263
|
+
|
2264
|
+
def _show_dockerfile_template_http_info(self, 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_async(self, request):
|
2311
|
+
r"""获取镜像模板列表
|
2312
|
+
|
2313
|
+
获取镜像模板列表
|
2314
|
+
|
2315
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2316
|
+
|
2317
|
+
|
2318
|
+
:param request: Request instance for ShowImageTemplateList
|
2319
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListRequest`
|
2320
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListResponse`
|
2321
|
+
"""
|
2322
|
+
http_info = self._show_image_template_list_http_info(request)
|
2323
|
+
return self._call_api(**http_info)
|
2324
|
+
|
2325
|
+
def show_image_template_list_async_invoker(self, request):
|
2326
|
+
http_info = self._show_image_template_list_http_info(request)
|
2327
|
+
return AsyncInvoker(self, http_info)
|
2328
|
+
|
2329
|
+
def _show_image_template_list_http_info(self, 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_async(self, request):
|
2374
|
+
r"""检查任务数量是否上限
|
2375
|
+
|
2376
|
+
检查任务数量是否上限
|
2377
|
+
|
2378
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2379
|
+
|
2380
|
+
|
2381
|
+
:param request: Request instance for CheckJobCountIsTopLimit
|
2382
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobCountIsTopLimitRequest`
|
2383
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobCountIsTopLimitResponse`
|
2384
|
+
"""
|
2385
|
+
http_info = self._check_job_count_is_top_limit_http_info(request)
|
2386
|
+
return self._call_api(**http_info)
|
2387
|
+
|
2388
|
+
def check_job_count_is_top_limit_async_invoker(self, request):
|
2389
|
+
http_info = self._check_job_count_is_top_limit_http_info(request)
|
2390
|
+
return AsyncInvoker(self, http_info)
|
2391
|
+
|
2392
|
+
def _check_job_count_is_top_limit_http_info(self, 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_async(self, request):
|
2437
|
+
r"""查看项目下任务名是否存在
|
2438
|
+
|
2439
|
+
查看项目下任务名是否存在
|
2440
|
+
|
2441
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
2442
|
+
|
2443
|
+
|
2444
|
+
:param request: Request instance for CheckJobNameIsExists
|
2445
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobNameIsExistsRequest`
|
2446
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobNameIsExistsResponse`
|
2447
|
+
"""
|
2448
|
+
http_info = self._check_job_name_is_exists_http_info(request)
|
2449
|
+
return self._call_api(**http_info)
|
2450
|
+
|
2451
|
+
def check_job_name_is_exists_async_invoker(self, request):
|
2452
|
+
http_info = self._check_job_name_is_exists_http_info(request)
|
2453
|
+
return AsyncInvoker(self, http_info)
|
1246
2454
|
|
1247
|
-
|
2455
|
+
def _check_job_name_is_exists_http_info(self, 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_async(self, request):
|
2504
|
+
r"""详情页获取构建参数
|
2505
|
+
|
2506
|
+
详情页获取构建参数
|
1248
2507
|
|
1249
2508
|
Please refer to HUAWEI cloud API Explorer for details.
|
1250
2509
|
|
1251
2510
|
|
1252
|
-
:param request: Request instance for
|
1253
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1254
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2511
|
+
:param request: Request instance for ListBuildParameter
|
2512
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildParameterRequest`
|
2513
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildParameterResponse`
|
1255
2514
|
"""
|
1256
|
-
http_info = self.
|
2515
|
+
http_info = self._list_build_parameter_http_info(request)
|
1257
2516
|
return self._call_api(**http_info)
|
1258
2517
|
|
1259
|
-
def
|
1260
|
-
http_info = self.
|
2518
|
+
def list_build_parameter_async_invoker(self, request):
|
2519
|
+
http_info = self._list_build_parameter_http_info(request)
|
1261
2520
|
return AsyncInvoker(self, http_info)
|
1262
2521
|
|
1263
|
-
def
|
2522
|
+
def _list_build_parameter_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
1310
2567
|
|
1311
2568
|
return http_info
|
1312
2569
|
|
1313
|
-
def
|
1314
|
-
r"""
|
2570
|
+
def list_job_async(self, request):
|
2571
|
+
r"""查看用户全部的构建任务列表
|
1315
2572
|
|
1316
|
-
|
2573
|
+
查看用户全部的构建任务列表
|
1317
2574
|
|
1318
2575
|
Please refer to HUAWEI cloud API Explorer for details.
|
1319
2576
|
|
1320
2577
|
|
1321
|
-
:param request: Request instance for
|
1322
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1323
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2578
|
+
:param request: Request instance for ListJob
|
2579
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobRequest`
|
2580
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobResponse`
|
1324
2581
|
"""
|
1325
|
-
http_info = self.
|
2582
|
+
http_info = self._list_job_http_info(request)
|
1326
2583
|
return self._call_api(**http_info)
|
1327
2584
|
|
1328
|
-
def
|
1329
|
-
http_info = self.
|
2585
|
+
def list_job_async_invoker(self, request):
|
2586
|
+
http_info = self._list_job_http_info(request)
|
1330
2587
|
return AsyncInvoker(self, http_info)
|
1331
2588
|
|
1332
|
-
def
|
2589
|
+
def _list_job_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
1393
2630
|
|
1394
2631
|
return http_info
|
1395
2632
|
|
1396
|
-
def
|
1397
|
-
r"""
|
2633
|
+
def list_project_jobs_async(self, request):
|
2634
|
+
r"""查询项目任务列表
|
1398
2635
|
|
1399
|
-
|
2636
|
+
查询项目任务列表
|
1400
2637
|
|
1401
2638
|
Please refer to HUAWEI cloud API Explorer for details.
|
1402
2639
|
|
1403
2640
|
|
1404
|
-
:param request: Request instance for
|
1405
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1406
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2641
|
+
:param request: Request instance for ListProjectJobs
|
2642
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListProjectJobsRequest`
|
2643
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListProjectJobsResponse`
|
1407
2644
|
"""
|
1408
|
-
http_info = self.
|
2645
|
+
http_info = self._list_project_jobs_http_info(request)
|
1409
2646
|
return self._call_api(**http_info)
|
1410
2647
|
|
1411
|
-
def
|
1412
|
-
http_info = self.
|
2648
|
+
def list_project_jobs_async_invoker(self, request):
|
2649
|
+
http_info = self._list_project_jobs_http_info(request)
|
1413
2650
|
return AsyncInvoker(self, http_info)
|
1414
2651
|
|
1415
|
-
def
|
2652
|
+
def _list_project_jobs_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
1544
2782
|
|
1545
2783
|
return http_info
|
1546
2784
|
|
1547
|
-
def
|
1548
|
-
r"""
|
2785
|
+
def list_update_job_history_async(self, request):
|
2786
|
+
r"""获取修改历史
|
1549
2787
|
|
1550
|
-
|
2788
|
+
获取修改历史
|
1551
2789
|
|
1552
2790
|
Please refer to HUAWEI cloud API Explorer for details.
|
1553
2791
|
|
1554
2792
|
|
1555
|
-
:param request: Request instance for
|
1556
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1557
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2793
|
+
:param request: Request instance for ListUpdateJobHistory
|
2794
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListUpdateJobHistoryRequest`
|
2795
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListUpdateJobHistoryResponse`
|
1558
2796
|
"""
|
1559
|
-
http_info = self.
|
2797
|
+
http_info = self._list_update_job_history_http_info(request)
|
1560
2798
|
return self._call_api(**http_info)
|
1561
2799
|
|
1562
|
-
def
|
1563
|
-
http_info = self.
|
2800
|
+
def list_update_job_history_async_invoker(self, request):
|
2801
|
+
http_info = self._list_update_job_history_http_info(request)
|
1564
2802
|
return AsyncInvoker(self, http_info)
|
1565
2803
|
|
1566
|
-
def
|
2804
|
+
def _list_update_job_history_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
1613
2851
|
|
1614
2852
|
return http_info
|
1615
2853
|
|
1616
|
-
def
|
1617
|
-
r"""
|
2854
|
+
def show_build_params_list_async(self, request):
|
2855
|
+
r"""编辑页获取参数类型的接口
|
1618
2856
|
|
1619
|
-
|
2857
|
+
编辑页获取参数类型的接口
|
1620
2858
|
|
1621
2859
|
Please refer to HUAWEI cloud API Explorer for details.
|
1622
2860
|
|
1623
2861
|
|
1624
|
-
:param request: Request instance for
|
1625
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1626
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2862
|
+
:param request: Request instance for ShowBuildParamsList
|
2863
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildParamsListRequest`
|
2864
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildParamsListResponse`
|
1627
2865
|
"""
|
1628
|
-
http_info = self.
|
2866
|
+
http_info = self._show_build_params_list_http_info(request)
|
1629
2867
|
return self._call_api(**http_info)
|
1630
2868
|
|
1631
|
-
def
|
1632
|
-
http_info = self.
|
2869
|
+
def show_build_params_list_async_invoker(self, request):
|
2870
|
+
http_info = self._show_build_params_list_http_info(request)
|
1633
2871
|
return AsyncInvoker(self, http_info)
|
1634
2872
|
|
1635
|
-
def
|
2873
|
+
def _show_build_params_list_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
1682
2914
|
|
1683
2915
|
return http_info
|
1684
2916
|
|
1685
|
-
def
|
1686
|
-
r"""
|
2917
|
+
def show_copy_name_async(self, request):
|
2918
|
+
r"""复制任务名
|
1687
2919
|
|
1688
|
-
|
2920
|
+
复制任务名
|
1689
2921
|
|
1690
2922
|
Please refer to HUAWEI cloud API Explorer for details.
|
1691
2923
|
|
1692
2924
|
|
1693
|
-
:param request: Request instance for
|
1694
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1695
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2925
|
+
:param request: Request instance for ShowCopyName
|
2926
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowCopyNameRequest`
|
2927
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowCopyNameResponse`
|
1696
2928
|
"""
|
1697
|
-
http_info = self.
|
2929
|
+
http_info = self._show_copy_name_http_info(request)
|
1698
2930
|
return self._call_api(**http_info)
|
1699
2931
|
|
1700
|
-
def
|
1701
|
-
http_info = self.
|
2932
|
+
def show_copy_name_async_invoker(self, request):
|
2933
|
+
http_info = self._show_copy_name_http_info(request)
|
1702
2934
|
return AsyncInvoker(self, http_info)
|
1703
2935
|
|
1704
|
-
def
|
2936
|
+
def _show_copy_name_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
1747
2979
|
|
1748
2980
|
return http_info
|
1749
2981
|
|
1750
|
-
def
|
1751
|
-
r"""
|
2982
|
+
def show_default_build_parameters_async(self, request):
|
2983
|
+
r"""获取编译构建默认参数
|
1752
2984
|
|
1753
|
-
|
2985
|
+
获取编译构建默认参数
|
1754
2986
|
|
1755
2987
|
Please refer to HUAWEI cloud API Explorer for details.
|
1756
2988
|
|
1757
2989
|
|
1758
|
-
:param request: Request instance for
|
1759
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1760
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2990
|
+
:param request: Request instance for ShowDefaultBuildParameters
|
2991
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultBuildParametersRequest`
|
2992
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultBuildParametersResponse`
|
1761
2993
|
"""
|
1762
|
-
http_info = self.
|
2994
|
+
http_info = self._show_default_build_parameters_http_info(request)
|
1763
2995
|
return self._call_api(**http_info)
|
1764
2996
|
|
1765
|
-
def
|
1766
|
-
http_info = self.
|
2997
|
+
def show_default_build_parameters_async_invoker(self, request):
|
2998
|
+
http_info = self._show_default_build_parameters_http_info(request)
|
1767
2999
|
return AsyncInvoker(self, http_info)
|
1768
3000
|
|
1769
|
-
def
|
3001
|
+
def _show_default_build_parameters_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
1814
3042
|
|
1815
3043
|
return http_info
|
1816
3044
|
|
1817
|
-
def
|
1818
|
-
r"""
|
3045
|
+
def show_default_project_permission_async(self, request):
|
3046
|
+
r"""获取当前项目默认角色权限矩阵信息
|
1819
3047
|
|
1820
|
-
|
3048
|
+
获取当前项目默认角色权限矩阵信息
|
1821
3049
|
|
1822
3050
|
Please refer to HUAWEI cloud API Explorer for details.
|
1823
3051
|
|
1824
3052
|
|
1825
|
-
:param request: Request instance for
|
1826
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1827
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3053
|
+
:param request: Request instance for ShowDefaultProjectPermission
|
3054
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultProjectPermissionRequest`
|
3055
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultProjectPermissionResponse`
|
1828
3056
|
"""
|
1829
|
-
http_info = self.
|
3057
|
+
http_info = self._show_default_project_permission_http_info(request)
|
1830
3058
|
return self._call_api(**http_info)
|
1831
3059
|
|
1832
|
-
def
|
1833
|
-
http_info = self.
|
3060
|
+
def show_default_project_permission_async_invoker(self, request):
|
3061
|
+
http_info = self._show_default_project_permission_http_info(request)
|
1834
3062
|
return AsyncInvoker(self, http_info)
|
1835
3063
|
|
1836
|
-
def
|
3064
|
+
def _show_default_project_permission_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
1877
3109
|
|
1878
3110
|
return http_info
|
1879
3111
|
|
1880
|
-
def
|
1881
|
-
r"""
|
3112
|
+
def show_disable_async(self, request):
|
3113
|
+
r"""查询任务是否已禁用
|
1882
3114
|
|
1883
|
-
|
3115
|
+
查询任务是否已禁用
|
1884
3116
|
|
1885
3117
|
Please refer to HUAWEI cloud API Explorer for details.
|
1886
3118
|
|
1887
3119
|
|
1888
|
-
:param request: Request instance for
|
1889
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1890
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3120
|
+
:param request: Request instance for ShowDisable
|
3121
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDisableRequest`
|
3122
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDisableResponse`
|
1891
3123
|
"""
|
1892
|
-
http_info = self.
|
3124
|
+
http_info = self._show_disable_http_info(request)
|
1893
3125
|
return self._call_api(**http_info)
|
1894
3126
|
|
1895
|
-
def
|
1896
|
-
http_info = self.
|
3127
|
+
def show_disable_async_invoker(self, request):
|
3128
|
+
http_info = self._show_disable_http_info(request)
|
1897
3129
|
return AsyncInvoker(self, http_info)
|
1898
3130
|
|
1899
|
-
def
|
3131
|
+
def _show_disable_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
1942
3174
|
|
1943
3175
|
return http_info
|
1944
3176
|
|
1945
|
-
def
|
1946
|
-
r"""
|
3177
|
+
def show_job_config_async(self, request):
|
3178
|
+
r"""获取构建任务详情
|
1947
3179
|
|
1948
|
-
|
3180
|
+
获取构建任务详情
|
1949
3181
|
|
1950
3182
|
Please refer to HUAWEI cloud API Explorer for details.
|
1951
3183
|
|
1952
3184
|
|
1953
|
-
:param request: Request instance for
|
1954
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
1955
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3185
|
+
:param request: Request instance for ShowJobConfig
|
3186
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigRequest`
|
3187
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigResponse`
|
1956
3188
|
"""
|
1957
|
-
http_info = self.
|
3189
|
+
http_info = self._show_job_config_http_info(request)
|
1958
3190
|
return self._call_api(**http_info)
|
1959
3191
|
|
1960
|
-
def
|
1961
|
-
http_info = self.
|
3192
|
+
def show_job_config_async_invoker(self, request):
|
3193
|
+
http_info = self._show_job_config_http_info(request)
|
1962
3194
|
return AsyncInvoker(self, http_info)
|
1963
3195
|
|
1964
|
-
def
|
3196
|
+
def _show_job_config_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
2007
3241
|
|
2008
3242
|
return http_info
|
2009
3243
|
|
2010
|
-
def
|
2011
|
-
r"""
|
3244
|
+
def show_job_config_diff_async(self, request):
|
3245
|
+
r"""获取构建任务配置的对比差异
|
2012
3246
|
|
2013
|
-
|
3247
|
+
获取构建任务配置的对比差异
|
2014
3248
|
|
2015
3249
|
Please refer to HUAWEI cloud API Explorer for details.
|
2016
3250
|
|
2017
3251
|
|
2018
|
-
:param request: Request instance for
|
2019
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2020
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3252
|
+
:param request: Request instance for ShowJobConfigDiff
|
3253
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigDiffRequest`
|
3254
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigDiffResponse`
|
2021
3255
|
"""
|
2022
|
-
http_info = self.
|
3256
|
+
http_info = self._show_job_config_diff_http_info(request)
|
2023
3257
|
return self._call_api(**http_info)
|
2024
3258
|
|
2025
|
-
def
|
2026
|
-
http_info = self.
|
3259
|
+
def show_job_config_diff_async_invoker(self, request):
|
3260
|
+
http_info = self._show_job_config_diff_http_info(request)
|
2027
3261
|
return AsyncInvoker(self, http_info)
|
2028
3262
|
|
2029
|
-
def
|
3263
|
+
def _show_job_config_diff_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
2074
3310
|
|
2075
3311
|
return http_info
|
2076
3312
|
|
2077
|
-
def
|
2078
|
-
r"""
|
3313
|
+
def show_job_info_async(self, request):
|
3314
|
+
r"""查看构建任务构建信息
|
2079
3315
|
|
2080
|
-
|
3316
|
+
查看构建任务构建信息
|
2081
3317
|
|
2082
3318
|
Please refer to HUAWEI cloud API Explorer for details.
|
2083
3319
|
|
2084
3320
|
|
2085
|
-
:param request: Request instance for
|
2086
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2087
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3321
|
+
:param request: Request instance for ShowJobInfo
|
3322
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobInfoRequest`
|
3323
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobInfoResponse`
|
2088
3324
|
"""
|
2089
|
-
http_info = self.
|
3325
|
+
http_info = self._show_job_info_http_info(request)
|
2090
3326
|
return self._call_api(**http_info)
|
2091
3327
|
|
2092
|
-
def
|
2093
|
-
http_info = self.
|
3328
|
+
def show_job_info_async_invoker(self, request):
|
3329
|
+
http_info = self._show_job_info_http_info(request)
|
2094
3330
|
return AsyncInvoker(self, http_info)
|
2095
3331
|
|
2096
|
-
def
|
3332
|
+
def _show_job_info_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
2137
3375
|
|
2138
3376
|
return http_info
|
2139
3377
|
|
2140
|
-
def
|
2141
|
-
r"""
|
3378
|
+
def show_job_notice_config_info_async(self, request):
|
3379
|
+
r"""获取通知信息
|
2142
3380
|
|
2143
|
-
|
3381
|
+
获取通知信息
|
2144
3382
|
|
2145
3383
|
Please refer to HUAWEI cloud API Explorer for details.
|
2146
3384
|
|
2147
3385
|
|
2148
|
-
:param request: Request instance for
|
2149
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2150
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3386
|
+
:param request: Request instance for ShowJobNoticeConfigInfo
|
3387
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobNoticeConfigInfoRequest`
|
3388
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobNoticeConfigInfoResponse`
|
2151
3389
|
"""
|
2152
|
-
http_info = self.
|
3390
|
+
http_info = self._show_job_notice_config_info_http_info(request)
|
2153
3391
|
return self._call_api(**http_info)
|
2154
3392
|
|
2155
|
-
def
|
2156
|
-
http_info = self.
|
3393
|
+
def show_job_notice_config_info_async_invoker(self, request):
|
3394
|
+
http_info = self._show_job_notice_config_info_http_info(request)
|
2157
3395
|
return AsyncInvoker(self, http_info)
|
2158
3396
|
|
2159
|
-
def
|
3397
|
+
def _show_job_notice_config_info_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
2202
3440
|
|
2203
3441
|
return http_info
|
2204
3442
|
|
2205
|
-
def
|
2206
|
-
r"""
|
3443
|
+
def show_job_role_permission_async(self, request):
|
3444
|
+
r"""获取构建任务的角色权限矩阵信息
|
2207
3445
|
|
2208
|
-
|
3446
|
+
获取构建任务的角色权限矩阵信息
|
2209
3447
|
|
2210
3448
|
Please refer to HUAWEI cloud API Explorer for details.
|
2211
3449
|
|
2212
3450
|
|
2213
|
-
:param request: Request instance for
|
2214
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2215
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3451
|
+
:param request: Request instance for ShowJobRolePermission
|
3452
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobRolePermissionRequest`
|
3453
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobRolePermissionResponse`
|
2216
3454
|
"""
|
2217
|
-
http_info = self.
|
3455
|
+
http_info = self._show_job_role_permission_http_info(request)
|
2218
3456
|
return self._call_api(**http_info)
|
2219
3457
|
|
2220
|
-
def
|
2221
|
-
http_info = self.
|
3458
|
+
def show_job_role_permission_async_invoker(self, request):
|
3459
|
+
http_info = self._show_job_role_permission_http_info(request)
|
2222
3460
|
return AsyncInvoker(self, http_info)
|
2223
3461
|
|
2224
|
-
def
|
3462
|
+
def _show_job_role_permission_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
2269
3505
|
|
2270
3506
|
return http_info
|
2271
3507
|
|
2272
|
-
def
|
2273
|
-
r"""
|
3508
|
+
def show_job_step_status_async(self, request):
|
3509
|
+
r"""查询任务状态
|
2274
3510
|
|
2275
|
-
|
3511
|
+
查询任务状态
|
2276
3512
|
|
2277
3513
|
Please refer to HUAWEI cloud API Explorer for details.
|
2278
3514
|
|
2279
3515
|
|
2280
|
-
:param request: Request instance for
|
2281
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2282
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3516
|
+
:param request: Request instance for ShowJobStepStatus
|
3517
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStepStatusRequest`
|
3518
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStepStatusResponse`
|
2283
3519
|
"""
|
2284
|
-
http_info = self.
|
3520
|
+
http_info = self._show_job_step_status_http_info(request)
|
2285
3521
|
return self._call_api(**http_info)
|
2286
3522
|
|
2287
|
-
def
|
2288
|
-
http_info = self.
|
3523
|
+
def show_job_step_status_async_invoker(self, request):
|
3524
|
+
http_info = self._show_job_step_status_http_info(request)
|
2289
3525
|
return AsyncInvoker(self, http_info)
|
2290
3526
|
|
2291
|
-
def
|
3527
|
+
def _show_job_step_status_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
2332
3572
|
|
2333
3573
|
return http_info
|
2334
3574
|
|
2335
|
-
def
|
2336
|
-
r"""
|
3575
|
+
def show_job_system_parameters_async(self, request):
|
3576
|
+
r"""查看系统预定义参数
|
2337
3577
|
|
2338
|
-
|
3578
|
+
查看系统预定义参数
|
2339
3579
|
|
2340
3580
|
Please refer to HUAWEI cloud API Explorer for details.
|
2341
3581
|
|
2342
3582
|
|
2343
|
-
:param request: Request instance for
|
2344
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2345
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3583
|
+
:param request: Request instance for ShowJobSystemParameters
|
3584
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSystemParametersRequest`
|
3585
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSystemParametersResponse`
|
2346
3586
|
"""
|
2347
|
-
http_info = self.
|
3587
|
+
http_info = self._show_job_system_parameters_http_info(request)
|
2348
3588
|
return self._call_api(**http_info)
|
2349
3589
|
|
2350
|
-
def
|
2351
|
-
http_info = self.
|
3590
|
+
def show_job_system_parameters_async_invoker(self, request):
|
3591
|
+
http_info = self._show_job_system_parameters_http_info(request)
|
2352
3592
|
return AsyncInvoker(self, http_info)
|
2353
3593
|
|
2354
|
-
def
|
3594
|
+
def _show_job_system_parameters_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
2403
3635
|
|
2404
3636
|
return http_info
|
2405
3637
|
|
2406
|
-
def
|
2407
|
-
r"""
|
3638
|
+
def show_running_status_async(self, request):
|
3639
|
+
r"""查看任务是否在构建
|
2408
3640
|
|
2409
|
-
|
3641
|
+
查看任务是否在构建
|
2410
3642
|
|
2411
3643
|
Please refer to HUAWEI cloud API Explorer for details.
|
2412
3644
|
|
2413
3645
|
|
2414
|
-
:param request: Request instance for
|
2415
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2416
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3646
|
+
:param request: Request instance for ShowRunningStatus
|
3647
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRunningStatusRequest`
|
3648
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRunningStatusResponse`
|
2417
3649
|
"""
|
2418
|
-
http_info = self.
|
3650
|
+
http_info = self._show_running_status_http_info(request)
|
2419
3651
|
return self._call_api(**http_info)
|
2420
3652
|
|
2421
|
-
def
|
2422
|
-
http_info = self.
|
3653
|
+
def show_running_status_async_invoker(self, request):
|
3654
|
+
http_info = self._show_running_status_http_info(request)
|
2423
3655
|
return AsyncInvoker(self, http_info)
|
2424
3656
|
|
2425
|
-
def
|
3657
|
+
def _show_running_status_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
2474
3700
|
|
2475
3701
|
return http_info
|
2476
3702
|
|
2477
|
-
def
|
2478
|
-
r"""
|
3703
|
+
def download_keystore_by_name_async(self, request):
|
3704
|
+
r"""文件管理文件下载
|
2479
3705
|
|
2480
|
-
|
3706
|
+
文件管理文件下载
|
2481
3707
|
|
2482
3708
|
Please refer to HUAWEI cloud API Explorer for details.
|
2483
3709
|
|
2484
3710
|
|
2485
|
-
:param request: Request instance for
|
2486
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2487
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3711
|
+
:param request: Request instance for DownloadKeystoreByName
|
3712
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadKeystoreByNameRequest`
|
3713
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadKeystoreByNameResponse`
|
2488
3714
|
"""
|
2489
|
-
http_info = self.
|
3715
|
+
http_info = self._download_keystore_by_name_http_info(request)
|
2490
3716
|
return self._call_api(**http_info)
|
2491
3717
|
|
2492
|
-
def
|
2493
|
-
http_info = self.
|
3718
|
+
def download_keystore_by_name_async_invoker(self, request):
|
3719
|
+
http_info = self._download_keystore_by_name_http_info(request)
|
2494
3720
|
return AsyncInvoker(self, http_info)
|
2495
3721
|
|
2496
|
-
def
|
3722
|
+
def _download_keystore_by_name_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
2541
3769
|
|
2542
3770
|
return http_info
|
2543
3771
|
|
2544
|
-
def
|
2545
|
-
r"""
|
3772
|
+
def list_keystore_async(self, request):
|
3773
|
+
r"""查询用户可使用文件
|
2546
3774
|
|
2547
|
-
|
3775
|
+
查询用户可使用文件
|
2548
3776
|
|
2549
3777
|
Please refer to HUAWEI cloud API Explorer for details.
|
2550
3778
|
|
2551
3779
|
|
2552
|
-
:param request: Request instance for
|
2553
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2554
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3780
|
+
:param request: Request instance for ListKeystore
|
3781
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListKeystoreRequest`
|
3782
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListKeystoreResponse`
|
2555
3783
|
"""
|
2556
|
-
http_info = self.
|
3784
|
+
http_info = self._list_keystore_http_info(request)
|
2557
3785
|
return self._call_api(**http_info)
|
2558
3786
|
|
2559
|
-
def
|
2560
|
-
http_info = self.
|
3787
|
+
def list_keystore_async_invoker(self, request):
|
3788
|
+
http_info = self._list_keystore_http_info(request)
|
2561
3789
|
return AsyncInvoker(self, http_info)
|
2562
3790
|
|
2563
|
-
def
|
3791
|
+
def _list_keystore_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
2610
3832
|
|
2611
3833
|
return http_info
|
2612
3834
|
|
2613
|
-
def
|
2614
|
-
r"""
|
3835
|
+
def list_keystore_search_async(self, request):
|
3836
|
+
r"""查询租户下文件列表
|
2615
3837
|
|
2616
|
-
|
3838
|
+
查询租户下文件列表
|
2617
3839
|
|
2618
3840
|
Please refer to HUAWEI cloud API Explorer for details.
|
2619
3841
|
|
2620
3842
|
|
2621
|
-
:param request: Request instance for
|
2622
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2623
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3843
|
+
:param request: Request instance for ListKeystoreSearch
|
3844
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListKeystoreSearchRequest`
|
3845
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListKeystoreSearchResponse`
|
2624
3846
|
"""
|
2625
|
-
http_info = self.
|
3847
|
+
http_info = self._list_keystore_search_http_info(request)
|
2626
3848
|
return self._call_api(**http_info)
|
2627
3849
|
|
2628
|
-
def
|
2629
|
-
http_info = self.
|
3850
|
+
def list_keystore_search_async_invoker(self, request):
|
3851
|
+
http_info = self._list_keystore_search_http_info(request)
|
2630
3852
|
return AsyncInvoker(self, http_info)
|
2631
3853
|
|
2632
|
-
def
|
3854
|
+
def _list_keystore_search_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
2675
3901
|
|
2676
3902
|
return http_info
|
2677
3903
|
|
2678
|
-
def
|
2679
|
-
r"""
|
3904
|
+
def show_keystore_permission_async(self, request):
|
3905
|
+
r"""文件管理查询权限
|
2680
3906
|
|
2681
|
-
|
3907
|
+
文件管理查询权限
|
2682
3908
|
|
2683
3909
|
Please refer to HUAWEI cloud API Explorer for details.
|
2684
3910
|
|
2685
3911
|
|
2686
|
-
:param request: Request instance for
|
2687
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2688
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3912
|
+
:param request: Request instance for ShowKeystorePermission
|
3913
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowKeystorePermissionRequest`
|
3914
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowKeystorePermissionResponse`
|
2689
3915
|
"""
|
2690
|
-
http_info = self.
|
3916
|
+
http_info = self._show_keystore_permission_http_info(request)
|
2691
3917
|
return self._call_api(**http_info)
|
2692
3918
|
|
2693
|
-
def
|
2694
|
-
http_info = self.
|
3919
|
+
def show_keystore_permission_async_invoker(self, request):
|
3920
|
+
http_info = self._show_keystore_permission_http_info(request)
|
2695
3921
|
return AsyncInvoker(self, http_info)
|
2696
3922
|
|
2697
|
-
def
|
3923
|
+
def _show_keystore_permission_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
2744
3970
|
|
2745
3971
|
return http_info
|
2746
3972
|
|
2747
|
-
def
|
2748
|
-
r"""
|
3973
|
+
def download_log_by_record_id_async(self, request):
|
3974
|
+
r"""下载构建日志(待下线)
|
2749
3975
|
|
2750
|
-
|
3976
|
+
下载构建日志(待下线)
|
2751
3977
|
|
2752
3978
|
Please refer to HUAWEI cloud API Explorer for details.
|
2753
3979
|
|
2754
3980
|
|
2755
|
-
:param request: Request instance for
|
2756
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2757
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3981
|
+
:param request: Request instance for DownloadLogByRecordId
|
3982
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadLogByRecordIdRequest`
|
3983
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadLogByRecordIdResponse`
|
2758
3984
|
"""
|
2759
|
-
http_info = self.
|
3985
|
+
http_info = self._download_log_by_record_id_http_info(request)
|
2760
3986
|
return self._call_api(**http_info)
|
2761
3987
|
|
2762
|
-
def
|
2763
|
-
http_info = self.
|
3988
|
+
def download_log_by_record_id_async_invoker(self, request):
|
3989
|
+
http_info = self._download_log_by_record_id_http_info(request)
|
2764
3990
|
return AsyncInvoker(self, http_info)
|
2765
3991
|
|
2766
|
-
def
|
3992
|
+
def _download_log_by_record_id_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
2809
4035
|
|
2810
4036
|
return http_info
|
2811
4037
|
|
2812
|
-
def
|
2813
|
-
r"""
|
4038
|
+
def show_flow_graph_async(self, request):
|
4039
|
+
r"""获取构建记录的有向无环图(待下线)
|
2814
4040
|
|
2815
|
-
|
4041
|
+
获取构建记录的有向无环图(待下线)
|
2816
4042
|
|
2817
4043
|
Please refer to HUAWEI cloud API Explorer for details.
|
2818
4044
|
|
2819
4045
|
|
2820
|
-
:param request: Request instance for
|
2821
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2822
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4046
|
+
:param request: Request instance for ShowFlowGraph
|
4047
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowFlowGraphRequest`
|
4048
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowFlowGraphResponse`
|
2823
4049
|
"""
|
2824
|
-
http_info = self.
|
4050
|
+
http_info = self._show_flow_graph_http_info(request)
|
2825
4051
|
return self._call_api(**http_info)
|
2826
4052
|
|
2827
|
-
def
|
2828
|
-
http_info = self.
|
4053
|
+
def show_flow_graph_async_invoker(self, request):
|
4054
|
+
http_info = self._show_flow_graph_http_info(request)
|
2829
4055
|
return AsyncInvoker(self, http_info)
|
2830
4056
|
|
2831
|
-
def
|
4057
|
+
def _show_flow_graph_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
2874
4100
|
|
2875
4101
|
return http_info
|
2876
4102
|
|
2877
|
-
def
|
2878
|
-
r"""
|
4103
|
+
def show_record_info_async(self, request):
|
4104
|
+
r"""获取构建记录信息(待下线)
|
2879
4105
|
|
2880
|
-
|
4106
|
+
获取构建记录信息(待下线)
|
2881
4107
|
|
2882
4108
|
Please refer to HUAWEI cloud API Explorer for details.
|
2883
4109
|
|
2884
4110
|
|
2885
|
-
:param request: Request instance for
|
2886
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2887
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4111
|
+
:param request: Request instance for ShowRecordInfo
|
4112
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRecordInfoRequest`
|
4113
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRecordInfoResponse`
|
2888
4114
|
"""
|
2889
|
-
http_info = self.
|
4115
|
+
http_info = self._show_record_info_http_info(request)
|
2890
4116
|
return self._call_api(**http_info)
|
2891
4117
|
|
2892
|
-
def
|
2893
|
-
http_info = self.
|
4118
|
+
def show_record_info_async_invoker(self, request):
|
4119
|
+
http_info = self._show_record_info_http_info(request)
|
2894
4120
|
return AsyncInvoker(self, http_info)
|
2895
4121
|
|
2896
|
-
def
|
4122
|
+
def _show_record_info_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
2939
4167
|
|
2940
4168
|
return http_info
|
2941
4169
|
|
2942
|
-
def
|
2943
|
-
r"""
|
4170
|
+
def stop_job_async(self, request):
|
4171
|
+
r"""停止构建任务(待下线)
|
2944
4172
|
|
2945
|
-
|
4173
|
+
停止构建任务(待下线)
|
2946
4174
|
|
2947
4175
|
Please refer to HUAWEI cloud API Explorer for details.
|
2948
4176
|
|
2949
4177
|
|
2950
|
-
:param request: Request instance for
|
2951
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
2952
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4178
|
+
:param request: Request instance for StopJob
|
4179
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.StopJobRequest`
|
4180
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.StopJobResponse`
|
2953
4181
|
"""
|
2954
|
-
http_info = self.
|
4182
|
+
http_info = self._stop_job_http_info(request)
|
2955
4183
|
return self._call_api(**http_info)
|
2956
4184
|
|
2957
|
-
def
|
2958
|
-
http_info = self.
|
4185
|
+
def stop_job_async_invoker(self, request):
|
4186
|
+
http_info = self._stop_job_http_info(request)
|
2959
4187
|
return AsyncInvoker(self, http_info)
|
2960
4188
|
|
2961
|
-
def
|
4189
|
+
def _stop_job_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
3008
4232
|
|
3009
4233
|
return http_info
|
3010
4234
|
|
3011
|
-
def
|
3012
|
-
r"""
|
4235
|
+
def list_build_info_record_by_job_id_async(self, request):
|
4236
|
+
r"""获取任务构建记录列表v1
|
3013
4237
|
|
3014
|
-
|
4238
|
+
获取任务构建记录列表v1
|
3015
4239
|
|
3016
4240
|
Please refer to HUAWEI cloud API Explorer for details.
|
3017
|
-
|
3018
|
-
|
3019
|
-
:param request: Request instance for
|
3020
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3021
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4241
|
+
|
4242
|
+
|
4243
|
+
:param request: Request instance for ListBuildInfoRecordByJobId
|
4244
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildInfoRecordByJobIdRequest`
|
4245
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildInfoRecordByJobIdResponse`
|
3022
4246
|
"""
|
3023
|
-
http_info = self.
|
4247
|
+
http_info = self._list_build_info_record_by_job_id_http_info(request)
|
3024
4248
|
return self._call_api(**http_info)
|
3025
4249
|
|
3026
|
-
def
|
3027
|
-
http_info = self.
|
4250
|
+
def list_build_info_record_by_job_id_async_invoker(self, request):
|
4251
|
+
http_info = self._list_build_info_record_by_job_id_http_info(request)
|
3028
4252
|
return AsyncInvoker(self, http_info)
|
3029
4253
|
|
3030
|
-
def
|
4254
|
+
def _list_build_info_record_by_job_id_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
3071
4305
|
|
3072
4306
|
return http_info
|
3073
4307
|
|
3074
|
-
def
|
3075
|
-
r"""
|
4308
|
+
def list_records_async(self, request):
|
4309
|
+
r"""获取指定工程的构建记录列表
|
3076
4310
|
|
3077
|
-
|
4311
|
+
获取指定工程的构建记录列表
|
3078
4312
|
|
3079
4313
|
Please refer to HUAWEI cloud API Explorer for details.
|
3080
4314
|
|
3081
4315
|
|
3082
|
-
:param request: Request instance for
|
3083
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3084
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4316
|
+
:param request: Request instance for ListRecords
|
4317
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecordsRequest`
|
4318
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecordsResponse`
|
3085
4319
|
"""
|
3086
|
-
http_info = self.
|
4320
|
+
http_info = self._list_records_http_info(request)
|
3087
4321
|
return self._call_api(**http_info)
|
3088
4322
|
|
3089
|
-
def
|
3090
|
-
http_info = self.
|
4323
|
+
def list_records_async_invoker(self, request):
|
4324
|
+
http_info = self._list_records_http_info(request)
|
3091
4325
|
return AsyncInvoker(self, http_info)
|
3092
4326
|
|
3093
|
-
def
|
4327
|
+
def _list_records_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
3140
4387
|
|
3141
4388
|
return http_info
|
3142
4389
|
|
3143
|
-
def
|
3144
|
-
r"""
|
4390
|
+
def show_build_info_record_async(self, request):
|
4391
|
+
r"""获取任务构建记录列表
|
3145
4392
|
|
3146
|
-
|
4393
|
+
获取任务构建记录列表
|
3147
4394
|
|
3148
4395
|
Please refer to HUAWEI cloud API Explorer for details.
|
3149
4396
|
|
3150
4397
|
|
3151
|
-
:param request: Request instance for
|
3152
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3153
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4398
|
+
:param request: Request instance for ShowBuildInfoRecord
|
4399
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildInfoRecordRequest`
|
4400
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildInfoRecordResponse`
|
3154
4401
|
"""
|
3155
|
-
http_info = self.
|
4402
|
+
http_info = self._show_build_info_record_http_info(request)
|
3156
4403
|
return self._call_api(**http_info)
|
3157
4404
|
|
3158
|
-
def
|
3159
|
-
http_info = self.
|
4405
|
+
def show_build_info_record_async_invoker(self, request):
|
4406
|
+
http_info = self._show_build_info_record_http_info(request)
|
3160
4407
|
return AsyncInvoker(self, http_info)
|
3161
4408
|
|
3162
|
-
def
|
4409
|
+
def _show_build_info_record_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
3207
4454
|
|
3208
4455
|
return http_info
|
3209
4456
|
|
3210
|
-
def
|
3211
|
-
r"""
|
4457
|
+
def show_build_record_async(self, request):
|
4458
|
+
r"""查询指定构建记录详情
|
3212
4459
|
|
3213
|
-
|
4460
|
+
查询指定构建记录详情
|
3214
4461
|
|
3215
4462
|
Please refer to HUAWEI cloud API Explorer for details.
|
3216
4463
|
|
3217
4464
|
|
3218
|
-
:param request: Request instance for
|
3219
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3220
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4465
|
+
:param request: Request instance for ShowBuildRecord
|
4466
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordRequest`
|
4467
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordResponse`
|
3221
4468
|
"""
|
3222
|
-
http_info = self.
|
4469
|
+
http_info = self._show_build_record_http_info(request)
|
3223
4470
|
return self._call_api(**http_info)
|
3224
4471
|
|
3225
|
-
def
|
3226
|
-
http_info = self.
|
4472
|
+
def show_build_record_async_invoker(self, request):
|
4473
|
+
http_info = self._show_build_record_http_info(request)
|
3227
4474
|
return AsyncInvoker(self, http_info)
|
3228
4475
|
|
3229
|
-
def
|
4476
|
+
def _show_build_record_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
3278
4519
|
|
3279
4520
|
return http_info
|
3280
4521
|
|
3281
|
-
def
|
3282
|
-
r"""
|
4522
|
+
def show_build_record_build_script_async(self, request):
|
4523
|
+
r"""获取构建记录的构建脚本
|
3283
4524
|
|
3284
|
-
|
4525
|
+
获取构建记录的构建脚本
|
3285
4526
|
|
3286
4527
|
Please refer to HUAWEI cloud API Explorer for details.
|
3287
4528
|
|
3288
4529
|
|
3289
|
-
:param request: Request instance for
|
3290
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3291
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4530
|
+
:param request: Request instance for ShowBuildRecordBuildScript
|
4531
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordBuildScriptRequest`
|
4532
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordBuildScriptResponse`
|
3292
4533
|
"""
|
3293
|
-
http_info = self.
|
4534
|
+
http_info = self._show_build_record_build_script_http_info(request)
|
3294
4535
|
return self._call_api(**http_info)
|
3295
4536
|
|
3296
|
-
def
|
3297
|
-
http_info = self.
|
4537
|
+
def show_build_record_build_script_async_invoker(self, request):
|
4538
|
+
http_info = self._show_build_record_build_script_http_info(request)
|
3298
4539
|
return AsyncInvoker(self, http_info)
|
3299
4540
|
|
3300
|
-
def
|
4541
|
+
def _show_build_record_build_script_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
3351
4584
|
|
3352
4585
|
return http_info
|
3353
4586
|
|
3354
|
-
def
|
3355
|
-
r"""
|
4587
|
+
def show_build_record_flow_graph_async(self, request):
|
4588
|
+
r"""获取构建记录的有向无环图
|
3356
4589
|
|
3357
|
-
|
4590
|
+
获取构建记录的有向无环图
|
3358
4591
|
|
3359
4592
|
Please refer to HUAWEI cloud API Explorer for details.
|
3360
4593
|
|
3361
4594
|
|
3362
|
-
:param request: Request instance for
|
3363
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3364
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4595
|
+
:param request: Request instance for ShowBuildRecordFlowGraph
|
4596
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFlowGraphRequest`
|
4597
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFlowGraphResponse`
|
3365
4598
|
"""
|
3366
|
-
http_info = self.
|
4599
|
+
http_info = self._show_build_record_flow_graph_http_info(request)
|
3367
4600
|
return self._call_api(**http_info)
|
3368
4601
|
|
3369
|
-
def
|
3370
|
-
http_info = self.
|
4602
|
+
def show_build_record_flow_graph_async_invoker(self, request):
|
4603
|
+
http_info = self._show_build_record_flow_graph_http_info(request)
|
3371
4604
|
return AsyncInvoker(self, http_info)
|
3372
4605
|
|
3373
|
-
def
|
4606
|
+
def _show_build_record_flow_graph_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
3418
4649
|
|
3419
4650
|
return http_info
|
3420
4651
|
|
3421
|
-
def
|
3422
|
-
r"""
|
4652
|
+
def show_build_record_full_stages_async(self, request):
|
4653
|
+
r"""获取任务各阶段信息
|
3423
4654
|
|
3424
|
-
|
4655
|
+
获取任务各阶段信息
|
3425
4656
|
|
3426
4657
|
Please refer to HUAWEI cloud API Explorer for details.
|
3427
4658
|
|
3428
4659
|
|
3429
|
-
:param request: Request instance for
|
3430
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3431
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4660
|
+
:param request: Request instance for ShowBuildRecordFullStages
|
4661
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesRequest`
|
4662
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesResponse`
|
3432
4663
|
"""
|
3433
|
-
http_info = self.
|
4664
|
+
http_info = self._show_build_record_full_stages_http_info(request)
|
3434
4665
|
return self._call_api(**http_info)
|
3435
4666
|
|
3436
|
-
def
|
3437
|
-
http_info = self.
|
4667
|
+
def show_build_record_full_stages_async_invoker(self, request):
|
4668
|
+
http_info = self._show_build_record_full_stages_http_info(request)
|
3438
4669
|
return AsyncInvoker(self, http_info)
|
3439
4670
|
|
3440
|
-
def
|
4671
|
+
def _show_build_record_full_stages_http_info(self, 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 CodeArtsBuildAsyncClient(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,7 +4716,7 @@ class CodeArtsBuildAsyncClient(Client):
|
|
3483
4716
|
|
3484
4717
|
return http_info
|
3485
4718
|
|
3486
|
-
def
|
4719
|
+
def show_job_build_record_detail_async(self, request):
|
3487
4720
|
r"""获取构建记录信息
|
3488
4721
|
|
3489
4722
|
获取构建记录信息
|
@@ -3491,23 +4724,23 @@ class CodeArtsBuildAsyncClient(Client):
|
|
3491
4724
|
Please refer to HUAWEI cloud API Explorer for details.
|
3492
4725
|
|
3493
4726
|
|
3494
|
-
:param request: Request instance for
|
3495
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3496
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4727
|
+
:param request: Request instance for ShowJobBuildRecordDetail
|
4728
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildRecordDetailRequest`
|
4729
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildRecordDetailResponse`
|
3497
4730
|
"""
|
3498
|
-
http_info = self.
|
4731
|
+
http_info = self._show_job_build_record_detail_http_info(request)
|
3499
4732
|
return self._call_api(**http_info)
|
3500
4733
|
|
3501
|
-
def
|
3502
|
-
http_info = self.
|
4734
|
+
def show_job_build_record_detail_async_invoker(self, request):
|
4735
|
+
http_info = self._show_job_build_record_detail_http_info(request)
|
3503
4736
|
return AsyncInvoker(self, http_info)
|
3504
4737
|
|
3505
|
-
def
|
4738
|
+
def _show_job_build_record_detail_http_info(self, 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 CodeArtsBuildAsyncClient(Client):
|
|
3550
4783
|
|
3551
4784
|
return http_info
|
3552
4785
|
|
3553
|
-
def
|
3554
|
-
r"""
|
4786
|
+
def show_job_total_async(self, request):
|
4787
|
+
r"""构建历史页获取构建次数
|
3555
4788
|
|
3556
|
-
|
4789
|
+
构建历史页获取构建次数
|
3557
4790
|
|
3558
4791
|
Please refer to HUAWEI cloud API Explorer for details.
|
3559
4792
|
|
3560
4793
|
|
3561
|
-
:param request: Request instance for
|
3562
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3563
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4794
|
+
:param request: Request instance for ShowJobTotal
|
4795
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobTotalRequest`
|
4796
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobTotalResponse`
|
3564
4797
|
"""
|
3565
|
-
http_info = self.
|
4798
|
+
http_info = self._show_job_total_http_info(request)
|
3566
4799
|
return self._call_api(**http_info)
|
3567
4800
|
|
3568
|
-
def
|
3569
|
-
http_info = self.
|
4801
|
+
def show_job_total_async_invoker(self, request):
|
4802
|
+
http_info = self._show_job_total_http_info(request)
|
3570
4803
|
return AsyncInvoker(self, http_info)
|
3571
4804
|
|
3572
|
-
def
|
4805
|
+
def _show_job_total_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
3613
4852
|
|
3614
4853
|
return http_info
|
3615
4854
|
|
3616
|
-
def
|
3617
|
-
r"""
|
4855
|
+
def download_junit_coverage_zip_async(self, request):
|
4856
|
+
r"""获取单元测试覆盖率报告压缩包
|
3618
4857
|
|
3619
|
-
|
4858
|
+
获取单元测试覆盖率报告压缩包
|
3620
4859
|
|
3621
4860
|
Please refer to HUAWEI cloud API Explorer for details.
|
3622
4861
|
|
3623
4862
|
|
3624
|
-
:param request: Request instance for
|
3625
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3626
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4863
|
+
:param request: Request instance for DownloadJunitCoverageZip
|
4864
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadJunitCoverageZipRequest`
|
4865
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadJunitCoverageZipResponse`
|
3627
4866
|
"""
|
3628
|
-
http_info = self.
|
4867
|
+
http_info = self._download_junit_coverage_zip_http_info(request)
|
3629
4868
|
return self._call_api(**http_info)
|
3630
4869
|
|
3631
|
-
def
|
3632
|
-
http_info = self.
|
4870
|
+
def download_junit_coverage_zip_async_invoker(self, request):
|
4871
|
+
http_info = self._download_junit_coverage_zip_http_info(request)
|
3633
4872
|
return AsyncInvoker(self, http_info)
|
3634
4873
|
|
3635
|
-
def
|
4874
|
+
def _download_junit_coverage_zip_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
3680
4921
|
|
3681
4922
|
return http_info
|
3682
4923
|
|
3683
|
-
def
|
3684
|
-
r"""
|
4924
|
+
def list_junit_coverage_summary_async(self, request):
|
4925
|
+
r"""获取单元测试覆盖率报告列表
|
3685
4926
|
|
3686
|
-
|
4927
|
+
获取单元测试覆盖率报告列表
|
3687
4928
|
|
3688
4929
|
Please refer to HUAWEI cloud API Explorer for details.
|
3689
4930
|
|
3690
4931
|
|
3691
|
-
:param request: Request instance for
|
3692
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3693
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4932
|
+
:param request: Request instance for ListJunitCoverageSummary
|
4933
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListJunitCoverageSummaryRequest`
|
4934
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListJunitCoverageSummaryResponse`
|
3694
4935
|
"""
|
3695
|
-
http_info = self.
|
4936
|
+
http_info = self._list_junit_coverage_summary_http_info(request)
|
3696
4937
|
return self._call_api(**http_info)
|
3697
4938
|
|
3698
|
-
def
|
3699
|
-
http_info = self.
|
4939
|
+
def list_junit_coverage_summary_async_invoker(self, request):
|
4940
|
+
http_info = self._list_junit_coverage_summary_http_info(request)
|
3700
4941
|
return AsyncInvoker(self, http_info)
|
3701
4942
|
|
3702
|
-
def
|
4943
|
+
def _list_junit_coverage_summary_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
3745
4988
|
|
3746
4989
|
return http_info
|
3747
4990
|
|
3748
|
-
def
|
3749
|
-
r"""
|
4991
|
+
def list_repo_branch_async(self, request):
|
4992
|
+
r"""获取该任务所有分支信息
|
3750
4993
|
|
3751
|
-
|
4994
|
+
获取该任务所有分支信息
|
3752
4995
|
|
3753
4996
|
Please refer to HUAWEI cloud API Explorer for details.
|
3754
4997
|
|
3755
4998
|
|
3756
|
-
:param request: Request instance for
|
3757
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3758
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4999
|
+
:param request: Request instance for ListRepoBranch
|
5000
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRepoBranchRequest`
|
5001
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRepoBranchResponse`
|
3759
5002
|
"""
|
3760
|
-
http_info = self.
|
5003
|
+
http_info = self._list_repo_branch_http_info(request)
|
3761
5004
|
return self._call_api(**http_info)
|
3762
5005
|
|
3763
|
-
def
|
3764
|
-
http_info = self.
|
5006
|
+
def list_repo_branch_async_invoker(self, request):
|
5007
|
+
http_info = self._list_repo_branch_http_info(request)
|
3765
5008
|
return AsyncInvoker(self, http_info)
|
3766
5009
|
|
3767
|
-
def
|
5010
|
+
def _list_repo_branch_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
3812
5055
|
|
3813
5056
|
return http_info
|
3814
5057
|
|
3815
|
-
def
|
3816
|
-
r"""
|
5058
|
+
def list_repository_async(self, request):
|
5059
|
+
r"""查看仓库
|
3817
5060
|
|
3818
|
-
|
5061
|
+
查看仓库
|
3819
5062
|
|
3820
5063
|
Please refer to HUAWEI cloud API Explorer for details.
|
3821
5064
|
|
3822
5065
|
|
3823
|
-
:param request: Request instance for
|
3824
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3825
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
5066
|
+
:param request: Request instance for ListRepository
|
5067
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRepositoryRequest`
|
5068
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRepositoryResponse`
|
3826
5069
|
"""
|
3827
|
-
http_info = self.
|
5070
|
+
http_info = self._list_repository_http_info(request)
|
3828
5071
|
return self._call_api(**http_info)
|
3829
5072
|
|
3830
|
-
def
|
3831
|
-
http_info = self.
|
5073
|
+
def list_repository_async_invoker(self, request):
|
5074
|
+
http_info = self._list_repository_http_info(request)
|
3832
5075
|
return AsyncInvoker(self, http_info)
|
3833
5076
|
|
3834
|
-
def
|
5077
|
+
def _list_repository_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
3879
5120
|
|
3880
5121
|
return http_info
|
3881
5122
|
|
3882
|
-
def
|
3883
|
-
r"""
|
5123
|
+
def show_job_build_success_ratio_async(self, request):
|
5124
|
+
r"""查询构建成功率
|
3884
5125
|
|
3885
|
-
|
5126
|
+
查询构建成功率
|
3886
5127
|
|
3887
5128
|
Please refer to HUAWEI cloud API Explorer for details.
|
3888
5129
|
|
3889
5130
|
|
3890
|
-
:param request: Request instance for
|
3891
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3892
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
5131
|
+
:param request: Request instance for ShowJobBuildSuccessRatio
|
5132
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioRequest`
|
5133
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioResponse`
|
3893
5134
|
"""
|
3894
|
-
http_info = self.
|
5135
|
+
http_info = self._show_job_build_success_ratio_http_info(request)
|
3895
5136
|
return self._call_api(**http_info)
|
3896
5137
|
|
3897
|
-
def
|
3898
|
-
http_info = self.
|
5138
|
+
def show_job_build_success_ratio_async_invoker(self, request):
|
5139
|
+
http_info = self._show_job_build_success_ratio_http_info(request)
|
3899
5140
|
return AsyncInvoker(self, http_info)
|
3900
5141
|
|
3901
|
-
def
|
5142
|
+
def _show_job_build_success_ratio_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
3944
5191
|
|
3945
5192
|
return http_info
|
3946
5193
|
|
3947
|
-
def
|
3948
|
-
r"""
|
5194
|
+
def show_job_build_time_async(self, request):
|
5195
|
+
r"""洞察构建时长
|
3949
5196
|
|
3950
|
-
|
5197
|
+
洞察构建时长
|
3951
5198
|
|
3952
5199
|
Please refer to HUAWEI cloud API Explorer for details.
|
3953
5200
|
|
3954
5201
|
|
3955
|
-
:param request: Request instance for
|
3956
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
3957
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
5202
|
+
:param request: Request instance for ShowJobBuildTime
|
5203
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeRequest`
|
5204
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeResponse`
|
3958
5205
|
"""
|
3959
|
-
http_info = self.
|
5206
|
+
http_info = self._show_job_build_time_http_info(request)
|
3960
5207
|
return self._call_api(**http_info)
|
3961
5208
|
|
3962
|
-
def
|
3963
|
-
http_info = self.
|
5209
|
+
def show_job_build_time_async_invoker(self, request):
|
5210
|
+
http_info = self._show_job_build_time_http_info(request)
|
3964
5211
|
return AsyncInvoker(self, http_info)
|
3965
5212
|
|
3966
|
-
def
|
5213
|
+
def _show_job_build_time_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
4011
5262
|
|
4012
5263
|
return http_info
|
4013
5264
|
|
4014
|
-
def
|
4015
|
-
r"""
|
5265
|
+
def show_report_summary_async(self, request):
|
5266
|
+
r"""获取覆盖率接口
|
4016
5267
|
|
4017
|
-
|
5268
|
+
获取覆盖率接口
|
4018
5269
|
|
4019
5270
|
Please refer to HUAWEI cloud API Explorer for details.
|
4020
5271
|
|
4021
5272
|
|
4022
|
-
:param request: Request instance for
|
4023
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4024
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
5273
|
+
:param request: Request instance for ShowReportSummary
|
5274
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowReportSummaryRequest`
|
5275
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowReportSummaryResponse`
|
4025
5276
|
"""
|
4026
|
-
http_info = self.
|
5277
|
+
http_info = self._show_report_summary_http_info(request)
|
4027
5278
|
return self._call_api(**http_info)
|
4028
5279
|
|
4029
|
-
def
|
4030
|
-
http_info = self.
|
5280
|
+
def show_report_summary_async_invoker(self, request):
|
5281
|
+
http_info = self._show_report_summary_http_info(request)
|
4031
5282
|
return AsyncInvoker(self, http_info)
|
4032
5283
|
|
4033
|
-
def
|
5284
|
+
def _show_report_summary_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
4076
5329
|
|
4077
5330
|
return http_info
|
4078
5331
|
|
4079
|
-
def
|
4080
|
-
r"""
|
5332
|
+
def list_custom_template_async(self, request):
|
5333
|
+
r"""根据条件查询特定模板
|
4081
5334
|
|
4082
|
-
|
5335
|
+
根据条件查询特定模板
|
4083
5336
|
|
4084
5337
|
Please refer to HUAWEI cloud API Explorer for details.
|
4085
5338
|
|
4086
5339
|
|
4087
|
-
:param request: Request instance for
|
4088
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4089
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
5340
|
+
:param request: Request instance for ListCustomTemplate
|
5341
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListCustomTemplateRequest`
|
5342
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListCustomTemplateResponse`
|
4090
5343
|
"""
|
4091
|
-
http_info = self.
|
5344
|
+
http_info = self._list_custom_template_http_info(request)
|
4092
5345
|
return self._call_api(**http_info)
|
4093
5346
|
|
4094
|
-
def
|
4095
|
-
http_info = self.
|
5347
|
+
def list_custom_template_async_invoker(self, request):
|
5348
|
+
http_info = self._list_custom_template_http_info(request)
|
4096
5349
|
return AsyncInvoker(self, http_info)
|
4097
5350
|
|
4098
|
-
def
|
5351
|
+
def _list_custom_template_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
4141
5402
|
|
4142
5403
|
return http_info
|
4143
5404
|
|
4144
|
-
def
|
4145
|
-
r"""
|
5405
|
+
def list_official_template_async(self, request):
|
5406
|
+
r"""查询官方模版
|
4146
5407
|
|
4147
|
-
|
5408
|
+
查询官方模版
|
4148
5409
|
|
4149
5410
|
Please refer to HUAWEI cloud API Explorer for details.
|
4150
5411
|
|
4151
5412
|
|
4152
|
-
:param request: Request instance for
|
4153
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4154
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
5413
|
+
:param request: Request instance for ListOfficialTemplate
|
5414
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListOfficialTemplateRequest`
|
5415
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListOfficialTemplateResponse`
|
4155
5416
|
"""
|
4156
|
-
http_info = self.
|
5417
|
+
http_info = self._list_official_template_http_info(request)
|
4157
5418
|
return self._call_api(**http_info)
|
4158
5419
|
|
4159
|
-
def
|
4160
|
-
http_info = self.
|
5420
|
+
def list_official_template_async_invoker(self, request):
|
5421
|
+
http_info = self._list_official_template_http_info(request)
|
4161
5422
|
return AsyncInvoker(self, http_info)
|
4162
5423
|
|
4163
|
-
def
|
5424
|
+
def _list_official_template_http_info(self, 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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
|
|
4208
5471
|
|
4209
5472
|
return http_info
|
4210
5473
|
|
4211
|
-
def
|
4212
|
-
r"""
|
5474
|
+
def show_yaml_template_async(self, request):
|
5475
|
+
r"""获取代码化构建默认模板
|
4213
5476
|
|
4214
|
-
|
5477
|
+
获取代码化构建默认模板
|
4215
5478
|
|
4216
5479
|
Please refer to HUAWEI cloud API Explorer for details.
|
4217
5480
|
|
4218
5481
|
|
4219
|
-
:param request: Request instance for
|
4220
|
-
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.
|
4221
|
-
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.
|
5482
|
+
:param request: Request instance for ShowYamlTemplate
|
5483
|
+
:type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowYamlTemplateRequest`
|
5484
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowYamlTemplateResponse`
|
4222
5485
|
"""
|
4223
|
-
http_info = self.
|
5486
|
+
http_info = self._show_yaml_template_http_info(request)
|
4224
5487
|
return self._call_api(**http_info)
|
4225
5488
|
|
4226
|
-
def
|
4227
|
-
http_info = self.
|
5489
|
+
def show_yaml_template_async_invoker(self, request):
|
5490
|
+
http_info = self._show_yaml_template_http_info(request)
|
4228
5491
|
return AsyncInvoker(self, http_info)
|
4229
5492
|
|
4230
|
-
def
|
5493
|
+
def _show_yaml_template_http_info(self, 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 CodeArtsBuildAsyncClient(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
|
|