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