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.
Files changed (99) hide show
  1. huaweicloudsdkcodeartsbuild/v3/__init__.py +90 -0
  2. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +2659 -652
  3. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +2659 -652
  4. huaweicloudsdkcodeartsbuild/v3/model/__init__.py +90 -0
  5. huaweicloudsdkcodeartsbuild/v3/model/add_keystore_permission_response_body.py +347 -0
  6. huaweicloudsdkcodeartsbuild/v3/model/build_parameter.py +144 -0
  7. huaweicloudsdkcodeartsbuild/v3/model/check_job_count_is_top_limit_request.py +84 -0
  8. huaweicloudsdkcodeartsbuild/v3/model/check_job_count_is_top_limit_response.py +174 -0
  9. huaweicloudsdkcodeartsbuild/v3/model/check_job_name_is_exists_request.py +142 -0
  10. huaweicloudsdkcodeartsbuild/v3/model/check_job_name_is_exists_response.py +145 -0
  11. huaweicloudsdkcodeartsbuild/v3/model/download_junit_coverage_zip_request.py +170 -0
  12. huaweicloudsdkcodeartsbuild/v3/model/download_junit_coverage_zip_response.py +85 -0
  13. huaweicloudsdkcodeartsbuild/v3/model/download_keystore_by_name_request.py +170 -0
  14. huaweicloudsdkcodeartsbuild/v3/model/download_keystore_by_name_response.py +85 -0
  15. huaweicloudsdkcodeartsbuild/v3/model/is_disable_result.py +260 -0
  16. huaweicloudsdkcodeartsbuild/v3/model/job_status_body.py +173 -0
  17. huaweicloudsdkcodeartsbuild/v3/model/job_summary.py +202 -0
  18. huaweicloudsdkcodeartsbuild/v3/model/job_summary_body_result.py +111 -0
  19. huaweicloudsdkcodeartsbuild/v3/model/job_update_record_list_vo_result.py +144 -0
  20. huaweicloudsdkcodeartsbuild/v3/model/job_update_record_list_vo_result_job_update_records.py +289 -0
  21. huaweicloudsdkcodeartsbuild/v3/model/list_build_parameter_request.py +142 -0
  22. huaweicloudsdkcodeartsbuild/v3/model/list_build_parameter_response.py +174 -0
  23. huaweicloudsdkcodeartsbuild/v3/model/list_custom_template_request.py +231 -0
  24. huaweicloudsdkcodeartsbuild/v3/model/list_custom_template_response.py +170 -0
  25. huaweicloudsdkcodeartsbuild/v3/model/list_job_request.py +84 -0
  26. huaweicloudsdkcodeartsbuild/v3/model/list_job_response.py +141 -0
  27. huaweicloudsdkcodeartsbuild/v3/model/list_job_result.py +144 -0
  28. huaweicloudsdkcodeartsbuild/v3/model/list_job_result_job_list.py +1217 -0
  29. huaweicloudsdkcodeartsbuild/v3/model/list_junit_coverage_summary_request.py +142 -0
  30. huaweicloudsdkcodeartsbuild/v3/model/list_junit_coverage_summary_response.py +170 -0
  31. huaweicloudsdkcodeartsbuild/v3/model/list_junit_coverage_summary_result.py +115 -0
  32. huaweicloudsdkcodeartsbuild/v3/model/list_junit_coverage_summary_result_unit_summary_list.py +231 -0
  33. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_request.py +84 -0
  34. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_response.py +145 -0
  35. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_result.py +144 -0
  36. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_search_request.py +173 -0
  37. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_search_response.py +170 -0
  38. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_search_response_body_result.py +144 -0
  39. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_search_response_body_result_keystore_list.py +517 -0
  40. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_search_response_body_result_permission.py +231 -0
  41. huaweicloudsdkcodeartsbuild/v3/model/list_records_request.py +317 -0
  42. huaweicloudsdkcodeartsbuild/v3/model/list_records_response.py +170 -0
  43. huaweicloudsdkcodeartsbuild/v3/model/list_records_result.py +140 -0
  44. huaweicloudsdkcodeartsbuild/v3/model/list_records_result_pagination.py +173 -0
  45. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_request.py +173 -0
  46. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_response.py +170 -0
  47. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_result.py +144 -0
  48. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_result_project_info_list.py +231 -0
  49. huaweicloudsdkcodeartsbuild/v3/model/list_repo_branch_request.py +142 -0
  50. huaweicloudsdkcodeartsbuild/v3/model/list_repo_branch_response.py +145 -0
  51. huaweicloudsdkcodeartsbuild/v3/model/list_repository_request.py +114 -0
  52. huaweicloudsdkcodeartsbuild/v3/model/list_repository_response.py +170 -0
  53. huaweicloudsdkcodeartsbuild/v3/model/list_update_job_history_request.py +172 -0
  54. huaweicloudsdkcodeartsbuild/v3/model/list_update_job_history_response.py +170 -0
  55. huaweicloudsdkcodeartsbuild/v3/model/query_custom_templates_result.py +144 -0
  56. huaweicloudsdkcodeartsbuild/v3/model/repositories_result.py +144 -0
  57. huaweicloudsdkcodeartsbuild/v3/model/show_build_info_record_request.py +142 -0
  58. huaweicloudsdkcodeartsbuild/v3/model/show_build_info_record_response.py +170 -0
  59. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_flow_graph_request.py +114 -0
  60. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_flow_graph_response.py +170 -0
  61. huaweicloudsdkcodeartsbuild/v3/model/show_copy_name_request.py +114 -0
  62. huaweicloudsdkcodeartsbuild/v3/model/show_copy_name_response.py +174 -0
  63. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_params.py +144 -0
  64. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_request.py +84 -0
  65. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_response.py +145 -0
  66. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_result.py +144 -0
  67. huaweicloudsdkcodeartsbuild/v3/model/show_default_project_permission_request.py +142 -0
  68. huaweicloudsdkcodeartsbuild/v3/model/show_default_project_permission_response.py +174 -0
  69. huaweicloudsdkcodeartsbuild/v3/model/show_default_project_permission_response_body_result.py +347 -0
  70. huaweicloudsdkcodeartsbuild/v3/model/show_disable_request.py +114 -0
  71. huaweicloudsdkcodeartsbuild/v3/model/show_disable_response.py +170 -0
  72. huaweicloudsdkcodeartsbuild/v3/model/show_dockerfile_template_request.py +114 -0
  73. huaweicloudsdkcodeartsbuild/v3/model/show_dockerfile_template_response.py +85 -0
  74. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_record_detail_request.py +142 -0
  75. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_record_detail_response.py +170 -0
  76. huaweicloudsdkcodeartsbuild/v3/model/show_job_notice_config_info_request.py +114 -0
  77. huaweicloudsdkcodeartsbuild/v3/model/show_job_notice_config_info_response.py +174 -0
  78. huaweicloudsdkcodeartsbuild/v3/model/show_job_step_status_request.py +143 -0
  79. huaweicloudsdkcodeartsbuild/v3/model/show_job_step_status_response.py +170 -0
  80. huaweicloudsdkcodeartsbuild/v3/model/show_job_total_request.py +172 -0
  81. huaweicloudsdkcodeartsbuild/v3/model/show_job_total_response.py +170 -0
  82. huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_request.py +170 -0
  83. huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_response.py +170 -0
  84. huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_response_body_result.py +144 -0
  85. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_request.py +84 -0
  86. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_response.py +170 -0
  87. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_result.py +144 -0
  88. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_result_project_info_list.py +231 -0
  89. huaweicloudsdkcodeartsbuild/v3/model/show_summary_build_job_info_request.py +84 -0
  90. huaweicloudsdkcodeartsbuild/v3/model/show_summary_build_job_info_response.py +170 -0
  91. huaweicloudsdkcodeartsbuild/v3/model/show_user_over_package_quota_request.py +114 -0
  92. huaweicloudsdkcodeartsbuild/v3/model/show_user_over_package_quota_response.py +170 -0
  93. huaweicloudsdkcodeartsbuild/v3/model/show_user_over_package_quota_result.py +173 -0
  94. huaweicloudsdkcodeartsbuild/v3/model/total_response_body_result.py +115 -0
  95. {huaweicloudsdkcodeartsbuild-3.1.150.dist-info → huaweicloudsdkcodeartsbuild-3.1.152.dist-info}/METADATA +2 -2
  96. {huaweicloudsdkcodeartsbuild-3.1.150.dist-info → huaweicloudsdkcodeartsbuild-3.1.152.dist-info}/RECORD +99 -9
  97. {huaweicloudsdkcodeartsbuild-3.1.150.dist-info → huaweicloudsdkcodeartsbuild-3.1.152.dist-info}/LICENSE +0 -0
  98. {huaweicloudsdkcodeartsbuild-3.1.150.dist-info → huaweicloudsdkcodeartsbuild-3.1.152.dist-info}/WHEEL +0 -0
  99. {huaweicloudsdkcodeartsbuild-3.1.150.dist-info → huaweicloudsdkcodeartsbuild-3.1.152.dist-info}/top_level.txt +0 -0
@@ -837,31 +837,2045 @@ class CodeArtsBuildAsyncClient(Client):
837
837
 
838
838
  return http_info
839
839
 
840
- def list_build_info_record_by_job_id_async(self, request):
841
- r"""获取任务构建记录列表v1
840
+ def list_job_config_async(self, request):
841
+ r"""获取构建任务详情
842
+
843
+ 获取构建任务详情
844
+
845
+ Please refer to HUAWEI cloud API Explorer for details.
846
+
847
+
848
+ :param request: Request instance for ListJobConfig
849
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobConfigRequest`
850
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobConfigResponse`
851
+ """
852
+ http_info = self._list_job_config_http_info(request)
853
+ return self._call_api(**http_info)
854
+
855
+ def list_job_config_async_invoker(self, request):
856
+ http_info = self._list_job_config_http_info(request)
857
+ return AsyncInvoker(self, http_info)
858
+
859
+ def _list_job_config_http_info(self, 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_async(self, request):
908
+ r"""查询通知
909
+
910
+ 查询通知
911
+
912
+ Please refer to HUAWEI cloud API Explorer for details.
913
+
914
+
915
+ :param request: Request instance for ListNotice
916
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListNoticeRequest`
917
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListNoticeResponse`
918
+ """
919
+ http_info = self._list_notice_http_info(request)
920
+ return self._call_api(**http_info)
921
+
922
+ def list_notice_async_invoker(self, request):
923
+ http_info = self._list_notice_http_info(request)
924
+ return AsyncInvoker(self, http_info)
925
+
926
+ def _list_notice_http_info(self, 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_async(self, request):
973
+ r"""查询构建模板
974
+
975
+ 查询构建模板
976
+
977
+ Please refer to HUAWEI cloud API Explorer for details.
978
+
979
+
980
+ :param request: Request instance for ListTemplates
981
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesRequest`
982
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesResponse`
983
+ """
984
+ http_info = self._list_templates_http_info(request)
985
+ return self._call_api(**http_info)
986
+
987
+ def list_templates_async_invoker(self, request):
988
+ http_info = self._list_templates_http_info(request)
989
+ return AsyncInvoker(self, http_info)
990
+
991
+ def _list_templates_http_info(self, 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_async(self, request):
1042
+ r"""执行构建任务
1043
+
1044
+ 执行构建任务,可传自定义参数
1045
+
1046
+ Please refer to HUAWEI cloud API Explorer for details.
1047
+
1048
+
1049
+ :param request: Request instance for RunJob
1050
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobRequest`
1051
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobResponse`
1052
+ """
1053
+ http_info = self._run_job_http_info(request)
1054
+ return self._call_api(**http_info)
1055
+
1056
+ def run_job_async_invoker(self, request):
1057
+ http_info = self._run_job_http_info(request)
1058
+ return AsyncInvoker(self, http_info)
1059
+
1060
+ def _run_job_http_info(self, 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_async(self, request):
1107
+ r"""获取构建历史详情信息接口
1108
+
1109
+ 获取构建历史详情信息接口
1110
+
1111
+ Please refer to HUAWEI cloud API Explorer for details.
1112
+
1113
+
1114
+ :param request: Request instance for ShowHistoryDetails
1115
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsRequest`
1116
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsResponse`
1117
+ """
1118
+ http_info = self._show_history_details_http_info(request)
1119
+ return self._call_api(**http_info)
1120
+
1121
+ def show_history_details_async_invoker(self, request):
1122
+ http_info = self._show_history_details_http_info(request)
1123
+ return AsyncInvoker(self, http_info)
1124
+
1125
+ def _show_history_details_http_info(self, request):
1126
+ http_info = {
1127
+ "method": "GET",
1128
+ "resource_path": "/v3/jobs/{job_id}/{build_number}/history-details",
1129
+ "request_type": request.__class__.__name__,
1130
+ "response_type": "ShowHistoryDetailsResponse"
1131
+ }
1132
+
1133
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1134
+
1135
+ cname = None
1136
+
1137
+ collection_formats = {}
1138
+
1139
+ path_params = {}
1140
+ if 'job_id' in local_var_params:
1141
+ path_params['job_id'] = local_var_params['job_id']
1142
+ if 'build_number' in local_var_params:
1143
+ path_params['build_number'] = local_var_params['build_number']
1144
+
1145
+ query_params = []
1146
+
1147
+ header_params = {}
1148
+
1149
+ form_params = {}
1150
+
1151
+ body = None
1152
+ if isinstance(request, SdkStreamRequest):
1153
+ body = request.get_file_stream()
1154
+
1155
+ response_headers = []
1156
+
1157
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1158
+ ['application/json'])
1159
+
1160
+ auth_settings = ['apig-auth-iam']
1161
+
1162
+ http_info["cname"] = cname
1163
+ http_info["collection_formats"] = collection_formats
1164
+ http_info["path_params"] = path_params
1165
+ http_info["query_params"] = query_params
1166
+ http_info["header_params"] = header_params
1167
+ http_info["post_params"] = form_params
1168
+ http_info["body"] = body
1169
+ http_info["response_headers"] = response_headers
1170
+
1171
+ return http_info
1172
+
1173
+ def show_job_list_by_project_id_async(self, request):
1174
+ r"""查看项目下用户的构建任务列表
1175
+
1176
+ 查看项目下用户的构建任务列表
1177
+
1178
+ Please refer to HUAWEI cloud API Explorer for details.
1179
+
1180
+
1181
+ :param request: Request instance for ShowJobListByProjectId
1182
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdRequest`
1183
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdResponse`
1184
+ """
1185
+ http_info = self._show_job_list_by_project_id_http_info(request)
1186
+ return self._call_api(**http_info)
1187
+
1188
+ def show_job_list_by_project_id_async_invoker(self, request):
1189
+ http_info = self._show_job_list_by_project_id_http_info(request)
1190
+ return AsyncInvoker(self, http_info)
1191
+
1192
+ def _show_job_list_by_project_id_http_info(self, request):
1193
+ http_info = {
1194
+ "method": "GET",
1195
+ "resource_path": "/v3/{project_id}/jobs",
1196
+ "request_type": request.__class__.__name__,
1197
+ "response_type": "ShowJobListByProjectIdResponse"
1198
+ }
1199
+
1200
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1201
+
1202
+ cname = None
1203
+
1204
+ collection_formats = {}
1205
+
1206
+ path_params = {}
1207
+ if 'project_id' in local_var_params:
1208
+ path_params['project_id'] = local_var_params['project_id']
1209
+
1210
+ query_params = []
1211
+ if 'page_index' in local_var_params:
1212
+ query_params.append(('page_index', local_var_params['page_index']))
1213
+ if 'page_size' in local_var_params:
1214
+ query_params.append(('page_size', local_var_params['page_size']))
1215
+
1216
+ header_params = {}
1217
+
1218
+ form_params = {}
1219
+
1220
+ body = None
1221
+ if isinstance(request, SdkStreamRequest):
1222
+ body = request.get_file_stream()
1223
+
1224
+ response_headers = []
1225
+
1226
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1227
+ ['application/json'])
1228
+
1229
+ auth_settings = ['apig-auth-iam']
1230
+
1231
+ http_info["cname"] = cname
1232
+ http_info["collection_formats"] = collection_formats
1233
+ http_info["path_params"] = path_params
1234
+ http_info["query_params"] = query_params
1235
+ http_info["header_params"] = header_params
1236
+ http_info["post_params"] = form_params
1237
+ http_info["body"] = body
1238
+ http_info["response_headers"] = response_headers
1239
+
1240
+ return http_info
1241
+
1242
+ def show_job_status_async(self, request):
1243
+ r"""查看任务运行状态
1244
+
1245
+ 查看任务运行状态
1246
+
1247
+ Please refer to HUAWEI cloud API Explorer for details.
1248
+
1249
+
1250
+ :param request: Request instance for ShowJobStatus
1251
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStatusRequest`
1252
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStatusResponse`
1253
+ """
1254
+ http_info = self._show_job_status_http_info(request)
1255
+ return self._call_api(**http_info)
1256
+
1257
+ def show_job_status_async_invoker(self, request):
1258
+ http_info = self._show_job_status_http_info(request)
1259
+ return AsyncInvoker(self, http_info)
1260
+
1261
+ def _show_job_status_http_info(self, request):
1262
+ http_info = {
1263
+ "method": "GET",
1264
+ "resource_path": "/v3/jobs/{job_id}/status",
1265
+ "request_type": request.__class__.__name__,
1266
+ "response_type": "ShowJobStatusResponse"
1267
+ }
1268
+
1269
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1270
+
1271
+ cname = None
1272
+
1273
+ collection_formats = {}
1274
+
1275
+ path_params = {}
1276
+ if 'job_id' in local_var_params:
1277
+ path_params['job_id'] = local_var_params['job_id']
1278
+
1279
+ query_params = []
1280
+
1281
+ header_params = {}
1282
+
1283
+ form_params = {}
1284
+
1285
+ body = None
1286
+ if isinstance(request, SdkStreamRequest):
1287
+ body = request.get_file_stream()
1288
+
1289
+ response_headers = []
1290
+
1291
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1292
+ ['application/json'])
1293
+
1294
+ auth_settings = ['apig-auth-iam']
1295
+
1296
+ http_info["cname"] = cname
1297
+ http_info["collection_formats"] = collection_formats
1298
+ http_info["path_params"] = path_params
1299
+ http_info["query_params"] = query_params
1300
+ http_info["header_params"] = header_params
1301
+ http_info["post_params"] = form_params
1302
+ http_info["body"] = body
1303
+ http_info["response_headers"] = response_headers
1304
+
1305
+ return http_info
1306
+
1307
+ def show_job_success_ratio_async(self, request):
1308
+ r"""根据开始时间和结束时间查看构建任务的构建成功率
1309
+
1310
+ 根据开始时间和结束时间查看构建任务的构建成功率
1311
+
1312
+ Please refer to HUAWEI cloud API Explorer for details.
1313
+
1314
+
1315
+ :param request: Request instance for ShowJobSuccessRatio
1316
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSuccessRatioRequest`
1317
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSuccessRatioResponse`
1318
+ """
1319
+ http_info = self._show_job_success_ratio_http_info(request)
1320
+ return self._call_api(**http_info)
1321
+
1322
+ def show_job_success_ratio_async_invoker(self, request):
1323
+ http_info = self._show_job_success_ratio_http_info(request)
1324
+ return AsyncInvoker(self, http_info)
1325
+
1326
+ def _show_job_success_ratio_http_info(self, request):
1327
+ http_info = {
1328
+ "method": "GET",
1329
+ "resource_path": "/v3/jobs/{job_id}/success-ratio",
1330
+ "request_type": request.__class__.__name__,
1331
+ "response_type": "ShowJobSuccessRatioResponse"
1332
+ }
1333
+
1334
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1335
+
1336
+ cname = None
1337
+
1338
+ collection_formats = {}
1339
+
1340
+ path_params = {}
1341
+ if 'job_id' in local_var_params:
1342
+ path_params['job_id'] = local_var_params['job_id']
1343
+
1344
+ query_params = []
1345
+ if 'start_time' in local_var_params:
1346
+ query_params.append(('start_time', local_var_params['start_time']))
1347
+ if 'end_time' in local_var_params:
1348
+ query_params.append(('end_time', local_var_params['end_time']))
1349
+
1350
+ header_params = {}
1351
+
1352
+ form_params = {}
1353
+
1354
+ body = None
1355
+ if isinstance(request, SdkStreamRequest):
1356
+ body = request.get_file_stream()
1357
+
1358
+ response_headers = []
1359
+
1360
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1361
+ ['application/json'])
1362
+
1363
+ auth_settings = ['apig-auth-iam']
1364
+
1365
+ http_info["cname"] = cname
1366
+ http_info["collection_formats"] = collection_formats
1367
+ http_info["path_params"] = path_params
1368
+ http_info["query_params"] = query_params
1369
+ http_info["header_params"] = header_params
1370
+ http_info["post_params"] = form_params
1371
+ http_info["body"] = body
1372
+ http_info["response_headers"] = response_headers
1373
+
1374
+ return http_info
1375
+
1376
+ def show_last_history_async(self, request):
1377
+ r"""查询指定代码仓库最近一次成功的构建历史
1378
+
1379
+ 查询指定代码仓库最近一次成功的构建历史
1380
+
1381
+ Please refer to HUAWEI cloud API Explorer for details.
1382
+
1383
+
1384
+ :param request: Request instance for ShowLastHistory
1385
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowLastHistoryRequest`
1386
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowLastHistoryResponse`
1387
+ """
1388
+ http_info = self._show_last_history_http_info(request)
1389
+ return self._call_api(**http_info)
1390
+
1391
+ def show_last_history_async_invoker(self, request):
1392
+ http_info = self._show_last_history_http_info(request)
1393
+ return AsyncInvoker(self, http_info)
1394
+
1395
+ def _show_last_history_http_info(self, request):
1396
+ http_info = {
1397
+ "method": "GET",
1398
+ "resource_path": "/v3/jobs/{project_id}/last-history",
1399
+ "request_type": request.__class__.__name__,
1400
+ "response_type": "ShowLastHistoryResponse"
1401
+ }
1402
+
1403
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1404
+
1405
+ cname = None
1406
+
1407
+ collection_formats = {}
1408
+
1409
+ path_params = {}
1410
+ if 'project_id' in local_var_params:
1411
+ path_params['project_id'] = local_var_params['project_id']
1412
+
1413
+ query_params = []
1414
+ if 'repository_name' in local_var_params:
1415
+ query_params.append(('repository_name', local_var_params['repository_name']))
1416
+
1417
+ header_params = {}
1418
+
1419
+ form_params = {}
1420
+
1421
+ body = None
1422
+ if isinstance(request, SdkStreamRequest):
1423
+ body = request.get_file_stream()
1424
+
1425
+ response_headers = []
1426
+
1427
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1428
+ ['application/json'])
1429
+
1430
+ auth_settings = ['apig-auth-iam']
1431
+
1432
+ http_info["cname"] = cname
1433
+ http_info["collection_formats"] = collection_formats
1434
+ http_info["path_params"] = path_params
1435
+ http_info["query_params"] = query_params
1436
+ http_info["header_params"] = header_params
1437
+ http_info["post_params"] = form_params
1438
+ http_info["body"] = body
1439
+ http_info["response_headers"] = response_headers
1440
+
1441
+ return http_info
1442
+
1443
+ def show_list_history_async(self, request):
1444
+ r"""查看构建任务的构建历史列表
1445
+
1446
+ 查看构建任务的构建历史列表
1447
+
1448
+ Please refer to HUAWEI cloud API Explorer for details.
1449
+
1450
+
1451
+ :param request: Request instance for ShowListHistory
1452
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowListHistoryRequest`
1453
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowListHistoryResponse`
1454
+ """
1455
+ http_info = self._show_list_history_http_info(request)
1456
+ return self._call_api(**http_info)
1457
+
1458
+ def show_list_history_async_invoker(self, request):
1459
+ http_info = self._show_list_history_http_info(request)
1460
+ return AsyncInvoker(self, http_info)
1461
+
1462
+ def _show_list_history_http_info(self, request):
1463
+ http_info = {
1464
+ "method": "GET",
1465
+ "resource_path": "/v3/jobs/{job_id}/history",
1466
+ "request_type": request.__class__.__name__,
1467
+ "response_type": "ShowListHistoryResponse"
1468
+ }
1469
+
1470
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1471
+
1472
+ cname = None
1473
+
1474
+ collection_formats = {}
1475
+
1476
+ path_params = {}
1477
+ if 'job_id' in local_var_params:
1478
+ path_params['job_id'] = local_var_params['job_id']
1479
+
1480
+ query_params = []
1481
+ if 'offset' in local_var_params:
1482
+ query_params.append(('offset', local_var_params['offset']))
1483
+ if 'limit' in local_var_params:
1484
+ query_params.append(('limit', local_var_params['limit']))
1485
+ if 'interval' in local_var_params:
1486
+ query_params.append(('interval', local_var_params['interval']))
1487
+
1488
+ header_params = {}
1489
+
1490
+ form_params = {}
1491
+
1492
+ body = None
1493
+ if isinstance(request, SdkStreamRequest):
1494
+ body = request.get_file_stream()
1495
+
1496
+ response_headers = []
1497
+
1498
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1499
+ ['application/json'])
1500
+
1501
+ auth_settings = ['apig-auth-iam']
1502
+
1503
+ http_info["cname"] = cname
1504
+ http_info["collection_formats"] = collection_formats
1505
+ http_info["path_params"] = path_params
1506
+ http_info["query_params"] = query_params
1507
+ http_info["header_params"] = header_params
1508
+ http_info["post_params"] = form_params
1509
+ http_info["body"] = body
1510
+ http_info["response_headers"] = response_headers
1511
+
1512
+ return http_info
1513
+
1514
+ def show_list_period_history_async(self, request):
1515
+ r"""根据开始时间和结束时间查看构建任务的构建历史列表
1516
+
1517
+ 根据开始时间和结束时间查看构建任务的构建历史列表
1518
+
1519
+ Please refer to HUAWEI cloud API Explorer for details.
1520
+
1521
+
1522
+ :param request: Request instance for ShowListPeriodHistory
1523
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowListPeriodHistoryRequest`
1524
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowListPeriodHistoryResponse`
1525
+ """
1526
+ http_info = self._show_list_period_history_http_info(request)
1527
+ return self._call_api(**http_info)
1528
+
1529
+ def show_list_period_history_async_invoker(self, request):
1530
+ http_info = self._show_list_period_history_http_info(request)
1531
+ return AsyncInvoker(self, http_info)
1532
+
1533
+ def _show_list_period_history_http_info(self, request):
1534
+ http_info = {
1535
+ "method": "GET",
1536
+ "resource_path": "/v3/jobs/{job_id}/period-history",
1537
+ "request_type": request.__class__.__name__,
1538
+ "response_type": "ShowListPeriodHistoryResponse"
1539
+ }
1540
+
1541
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1542
+
1543
+ cname = None
1544
+
1545
+ collection_formats = {}
1546
+
1547
+ path_params = {}
1548
+ if 'job_id' in local_var_params:
1549
+ path_params['job_id'] = local_var_params['job_id']
1550
+
1551
+ query_params = []
1552
+ if 'offset' in local_var_params:
1553
+ query_params.append(('offset', local_var_params['offset']))
1554
+ if 'limit' in local_var_params:
1555
+ query_params.append(('limit', local_var_params['limit']))
1556
+ if 'start_time' in local_var_params:
1557
+ query_params.append(('start_time', local_var_params['start_time']))
1558
+ if 'end_time' in local_var_params:
1559
+ query_params.append(('end_time', local_var_params['end_time']))
1560
+
1561
+ header_params = {}
1562
+
1563
+ form_params = {}
1564
+
1565
+ body = None
1566
+ if isinstance(request, SdkStreamRequest):
1567
+ body = request.get_file_stream()
1568
+
1569
+ response_headers = []
1570
+
1571
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1572
+ ['application/json'])
1573
+
1574
+ auth_settings = ['apig-auth-iam']
1575
+
1576
+ http_info["cname"] = cname
1577
+ http_info["collection_formats"] = collection_formats
1578
+ http_info["path_params"] = path_params
1579
+ http_info["query_params"] = query_params
1580
+ http_info["header_params"] = header_params
1581
+ http_info["post_params"] = form_params
1582
+ http_info["body"] = body
1583
+ http_info["response_headers"] = response_headers
1584
+
1585
+ return http_info
1586
+
1587
+ def show_output_info_async(self, request):
1588
+ r"""获取构建产物详情信息
1589
+
1590
+ 获取构建产物详情信息
1591
+
1592
+ Please refer to HUAWEI cloud API Explorer for details.
1593
+
1594
+
1595
+ :param request: Request instance for ShowOutputInfo
1596
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowOutputInfoRequest`
1597
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowOutputInfoResponse`
1598
+ """
1599
+ http_info = self._show_output_info_http_info(request)
1600
+ return self._call_api(**http_info)
1601
+
1602
+ def show_output_info_async_invoker(self, request):
1603
+ http_info = self._show_output_info_http_info(request)
1604
+ return AsyncInvoker(self, http_info)
1605
+
1606
+ def _show_output_info_http_info(self, request):
1607
+ http_info = {
1608
+ "method": "GET",
1609
+ "resource_path": "/v3/jobs/{job_id}/{build_no}/output-info",
1610
+ "request_type": request.__class__.__name__,
1611
+ "response_type": "ShowOutputInfoResponse"
1612
+ }
1613
+
1614
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1615
+
1616
+ cname = None
1617
+
1618
+ collection_formats = {}
1619
+
1620
+ path_params = {}
1621
+ if 'job_id' in local_var_params:
1622
+ path_params['job_id'] = local_var_params['job_id']
1623
+ if 'build_no' in local_var_params:
1624
+ path_params['build_no'] = local_var_params['build_no']
1625
+
1626
+ query_params = []
1627
+
1628
+ header_params = {}
1629
+
1630
+ form_params = {}
1631
+
1632
+ body = None
1633
+ if isinstance(request, SdkStreamRequest):
1634
+ body = request.get_file_stream()
1635
+
1636
+ response_headers = []
1637
+
1638
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1639
+ ['application/json'])
1640
+
1641
+ auth_settings = ['apig-auth-iam']
1642
+
1643
+ http_info["cname"] = cname
1644
+ http_info["collection_formats"] = collection_formats
1645
+ http_info["path_params"] = path_params
1646
+ http_info["query_params"] = query_params
1647
+ http_info["header_params"] = header_params
1648
+ http_info["post_params"] = form_params
1649
+ http_info["body"] = body
1650
+ http_info["response_headers"] = response_headers
1651
+
1652
+ return http_info
1653
+
1654
+ def show_record_detail_async(self, request):
1655
+ r"""获取构建记录信息
1656
+
1657
+ 获取构建记录信息
1658
+
1659
+ Please refer to HUAWEI cloud API Explorer for details.
1660
+
1661
+
1662
+ :param request: Request instance for ShowRecordDetail
1663
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRecordDetailRequest`
1664
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRecordDetailResponse`
1665
+ """
1666
+ http_info = self._show_record_detail_http_info(request)
1667
+ return self._call_api(**http_info)
1668
+
1669
+ def show_record_detail_async_invoker(self, request):
1670
+ http_info = self._show_record_detail_http_info(request)
1671
+ return AsyncInvoker(self, http_info)
1672
+
1673
+ def _show_record_detail_http_info(self, request):
1674
+ http_info = {
1675
+ "method": "GET",
1676
+ "resource_path": "/v4/jobs/{job_id}/{build_no}/record-info",
1677
+ "request_type": request.__class__.__name__,
1678
+ "response_type": "ShowRecordDetailResponse"
1679
+ }
1680
+
1681
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1682
+
1683
+ cname = None
1684
+
1685
+ collection_formats = {}
1686
+
1687
+ path_params = {}
1688
+ if 'job_id' in local_var_params:
1689
+ path_params['job_id'] = local_var_params['job_id']
1690
+ if 'build_no' in local_var_params:
1691
+ path_params['build_no'] = local_var_params['build_no']
1692
+
1693
+ query_params = []
1694
+
1695
+ header_params = {}
1696
+
1697
+ form_params = {}
1698
+
1699
+ body = None
1700
+ if isinstance(request, SdkStreamRequest):
1701
+ body = request.get_file_stream()
1702
+
1703
+ response_headers = []
1704
+
1705
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1706
+ ['application/json'])
1707
+
1708
+ auth_settings = ['apig-auth-iam']
1709
+
1710
+ http_info["cname"] = cname
1711
+ http_info["collection_formats"] = collection_formats
1712
+ http_info["path_params"] = path_params
1713
+ http_info["query_params"] = query_params
1714
+ http_info["header_params"] = header_params
1715
+ http_info["post_params"] = form_params
1716
+ http_info["body"] = body
1717
+ http_info["response_headers"] = response_headers
1718
+
1719
+ return http_info
1720
+
1721
+ def stop_build_job_async(self, request):
1722
+ r"""停止构建任务
1723
+
1724
+ 停止构建任务
1725
+
1726
+ Please refer to HUAWEI cloud API Explorer for details.
1727
+
1728
+
1729
+ :param request: Request instance for StopBuildJob
1730
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.StopBuildJobRequest`
1731
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.StopBuildJobResponse`
1732
+ """
1733
+ http_info = self._stop_build_job_http_info(request)
1734
+ return self._call_api(**http_info)
1735
+
1736
+ def stop_build_job_async_invoker(self, request):
1737
+ http_info = self._stop_build_job_http_info(request)
1738
+ return AsyncInvoker(self, http_info)
1739
+
1740
+ def _stop_build_job_http_info(self, request):
1741
+ http_info = {
1742
+ "method": "POST",
1743
+ "resource_path": "/v3/jobs/{job_id}/{build_no}/stop",
1744
+ "request_type": request.__class__.__name__,
1745
+ "response_type": "StopBuildJobResponse"
1746
+ }
1747
+
1748
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1749
+
1750
+ cname = None
1751
+
1752
+ collection_formats = {}
1753
+
1754
+ path_params = {}
1755
+ if 'job_id' in local_var_params:
1756
+ path_params['job_id'] = local_var_params['job_id']
1757
+ if 'build_no' in local_var_params:
1758
+ path_params['build_no'] = local_var_params['build_no']
1759
+
1760
+ query_params = []
1761
+
1762
+ header_params = {}
1763
+
1764
+ form_params = {}
1765
+
1766
+ body = None
1767
+ if isinstance(request, SdkStreamRequest):
1768
+ body = request.get_file_stream()
1769
+
1770
+ response_headers = []
1771
+
1772
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1773
+ ['application/json'])
1774
+
1775
+ auth_settings = ['apig-auth-iam']
1776
+
1777
+ http_info["cname"] = cname
1778
+ http_info["collection_formats"] = collection_formats
1779
+ http_info["path_params"] = path_params
1780
+ http_info["query_params"] = query_params
1781
+ http_info["header_params"] = header_params
1782
+ http_info["post_params"] = form_params
1783
+ http_info["body"] = body
1784
+ http_info["response_headers"] = response_headers
1785
+
1786
+ return http_info
1787
+
1788
+ def update_build_job_async(self, request):
1789
+ r"""更新构建任务
1790
+
1791
+ 更新构建任务
1792
+
1793
+ Please refer to HUAWEI cloud API Explorer for details.
1794
+
1795
+
1796
+ :param request: Request instance for UpdateBuildJob
1797
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateBuildJobRequest`
1798
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateBuildJobResponse`
1799
+ """
1800
+ http_info = self._update_build_job_http_info(request)
1801
+ return self._call_api(**http_info)
1802
+
1803
+ def update_build_job_async_invoker(self, request):
1804
+ http_info = self._update_build_job_http_info(request)
1805
+ return AsyncInvoker(self, http_info)
1806
+
1807
+ def _update_build_job_http_info(self, request):
1808
+ http_info = {
1809
+ "method": "POST",
1810
+ "resource_path": "/v3/jobs/update",
1811
+ "request_type": request.__class__.__name__,
1812
+ "response_type": "UpdateBuildJobResponse"
1813
+ }
1814
+
1815
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1816
+
1817
+ cname = None
1818
+
1819
+ collection_formats = {}
1820
+
1821
+ path_params = {}
1822
+
1823
+ query_params = []
1824
+
1825
+ header_params = {}
1826
+
1827
+ form_params = {}
1828
+
1829
+ body = None
1830
+ if 'body' in local_var_params:
1831
+ body = local_var_params['body']
1832
+ if isinstance(request, SdkStreamRequest):
1833
+ body = request.get_file_stream()
1834
+
1835
+ response_headers = []
1836
+
1837
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1838
+ ['application/json'])
1839
+
1840
+ auth_settings = ['apig-auth-iam']
1841
+
1842
+ http_info["cname"] = cname
1843
+ http_info["collection_formats"] = collection_formats
1844
+ http_info["path_params"] = path_params
1845
+ http_info["query_params"] = query_params
1846
+ http_info["header_params"] = header_params
1847
+ http_info["post_params"] = form_params
1848
+ http_info["body"] = body
1849
+ http_info["response_headers"] = response_headers
1850
+
1851
+ return http_info
1852
+
1853
+ def update_notice_async(self, request):
1854
+ r"""更新通知
1855
+
1856
+ 更新通知
1857
+
1858
+ Please refer to HUAWEI cloud API Explorer for details.
1859
+
1860
+
1861
+ :param request: Request instance for UpdateNotice
1862
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateNoticeRequest`
1863
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateNoticeResponse`
1864
+ """
1865
+ http_info = self._update_notice_http_info(request)
1866
+ return self._call_api(**http_info)
1867
+
1868
+ def update_notice_async_invoker(self, request):
1869
+ http_info = self._update_notice_http_info(request)
1870
+ return AsyncInvoker(self, http_info)
1871
+
1872
+ def _update_notice_http_info(self, request):
1873
+ http_info = {
1874
+ "method": "POST",
1875
+ "resource_path": "/v3/jobs/notice/{job_id}/update",
1876
+ "request_type": request.__class__.__name__,
1877
+ "response_type": "UpdateNoticeResponse"
1878
+ }
1879
+
1880
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1881
+
1882
+ cname = None
1883
+
1884
+ collection_formats = {}
1885
+
1886
+ path_params = {}
1887
+ if 'job_id' in local_var_params:
1888
+ path_params['job_id'] = local_var_params['job_id']
1889
+
1890
+ query_params = []
1891
+
1892
+ header_params = {}
1893
+
1894
+ form_params = {}
1895
+
1896
+ body = None
1897
+ if 'body' in local_var_params:
1898
+ body = local_var_params['body']
1899
+ if isinstance(request, SdkStreamRequest):
1900
+ body = request.get_file_stream()
1901
+
1902
+ response_headers = []
1903
+
1904
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1905
+ ['application/json'])
1906
+
1907
+ auth_settings = ['apig-auth-iam']
1908
+
1909
+ http_info["cname"] = cname
1910
+ http_info["collection_formats"] = collection_formats
1911
+ http_info["path_params"] = path_params
1912
+ http_info["query_params"] = query_params
1913
+ http_info["header_params"] = header_params
1914
+ http_info["post_params"] = form_params
1915
+ http_info["body"] = body
1916
+ http_info["response_headers"] = response_headers
1917
+
1918
+ return http_info
1919
+
1920
+ def list_related_project_info_async(self, request):
1921
+ r"""获取项目列表
1922
+
1923
+ 获取项目列表
1924
+
1925
+ Please refer to HUAWEI cloud API Explorer for details.
1926
+
1927
+
1928
+ :param request: Request instance for ListRelatedProjectInfo
1929
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRelatedProjectInfoRequest`
1930
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRelatedProjectInfoResponse`
1931
+ """
1932
+ http_info = self._list_related_project_info_http_info(request)
1933
+ return self._call_api(**http_info)
1934
+
1935
+ def list_related_project_info_async_invoker(self, request):
1936
+ http_info = self._list_related_project_info_http_info(request)
1937
+ return AsyncInvoker(self, http_info)
1938
+
1939
+ def _list_related_project_info_http_info(self, request):
1940
+ http_info = {
1941
+ "method": "GET",
1942
+ "resource_path": "/v1/domain/project/related-page",
1943
+ "request_type": request.__class__.__name__,
1944
+ "response_type": "ListRelatedProjectInfoResponse"
1945
+ }
1946
+
1947
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1948
+
1949
+ cname = None
1950
+
1951
+ collection_formats = {}
1952
+
1953
+ path_params = {}
1954
+
1955
+ query_params = []
1956
+ if 'page_size' in local_var_params:
1957
+ query_params.append(('page_size', local_var_params['page_size']))
1958
+ if 'page_no' in local_var_params:
1959
+ query_params.append(('page_no', local_var_params['page_no']))
1960
+ if 'search' in local_var_params:
1961
+ query_params.append(('search', local_var_params['search']))
1962
+
1963
+ header_params = {}
1964
+
1965
+ form_params = {}
1966
+
1967
+ body = None
1968
+ if isinstance(request, SdkStreamRequest):
1969
+ body = request.get_file_stream()
1970
+
1971
+ response_headers = []
1972
+
1973
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1974
+ ['application/json'])
1975
+
1976
+ auth_settings = ['apig-auth-iam']
1977
+
1978
+ http_info["cname"] = cname
1979
+ http_info["collection_formats"] = collection_formats
1980
+ http_info["path_params"] = path_params
1981
+ http_info["query_params"] = query_params
1982
+ http_info["header_params"] = header_params
1983
+ http_info["post_params"] = form_params
1984
+ http_info["body"] = body
1985
+ http_info["response_headers"] = response_headers
1986
+
1987
+ return http_info
1988
+
1989
+ def show_project_permission_async(self, request):
1990
+ r"""获取用户权限
1991
+
1992
+ 获取用户权限
1993
+
1994
+ Please refer to HUAWEI cloud API Explorer for details.
1995
+
1996
+
1997
+ :param request: Request instance for ShowProjectPermission
1998
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionRequest`
1999
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionResponse`
2000
+ """
2001
+ http_info = self._show_project_permission_http_info(request)
2002
+ return self._call_api(**http_info)
2003
+
2004
+ def show_project_permission_async_invoker(self, request):
2005
+ http_info = self._show_project_permission_http_info(request)
2006
+ return AsyncInvoker(self, http_info)
2007
+
2008
+ def _show_project_permission_http_info(self, request):
2009
+ http_info = {
2010
+ "method": "GET",
2011
+ "resource_path": "/v1/domain/user-permission",
2012
+ "request_type": request.__class__.__name__,
2013
+ "response_type": "ShowProjectPermissionResponse"
2014
+ }
2015
+
2016
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2017
+
2018
+ cname = None
2019
+
2020
+ collection_formats = {}
2021
+
2022
+ path_params = {}
2023
+
2024
+ query_params = []
2025
+ if 'project_id' in local_var_params:
2026
+ query_params.append(('project_id', local_var_params['project_id']))
2027
+
2028
+ header_params = {}
2029
+
2030
+ form_params = {}
2031
+
2032
+ body = None
2033
+ if isinstance(request, SdkStreamRequest):
2034
+ body = request.get_file_stream()
2035
+
2036
+ response_headers = []
2037
+
2038
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2039
+ ['application/json'])
2040
+
2041
+ auth_settings = ['apig-auth-iam']
2042
+
2043
+ http_info["cname"] = cname
2044
+ http_info["collection_formats"] = collection_formats
2045
+ http_info["path_params"] = path_params
2046
+ http_info["query_params"] = query_params
2047
+ http_info["header_params"] = header_params
2048
+ http_info["post_params"] = form_params
2049
+ http_info["body"] = body
2050
+ http_info["response_headers"] = response_headers
2051
+
2052
+ return http_info
2053
+
2054
+ def show_related_project_async(self, request):
2055
+ r"""获取当前用户的项目信息列表
2056
+
2057
+ 获取当前用户的项目信息列表
2058
+
2059
+ Please refer to HUAWEI cloud API Explorer for details.
2060
+
2061
+
2062
+ :param request: Request instance for ShowRelatedProject
2063
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRelatedProjectRequest`
2064
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRelatedProjectResponse`
2065
+ """
2066
+ http_info = self._show_related_project_http_info(request)
2067
+ return self._call_api(**http_info)
2068
+
2069
+ def show_related_project_async_invoker(self, request):
2070
+ http_info = self._show_related_project_http_info(request)
2071
+ return AsyncInvoker(self, http_info)
2072
+
2073
+ def _show_related_project_http_info(self, request):
2074
+ http_info = {
2075
+ "method": "GET",
2076
+ "resource_path": "/v1/domain/project/related",
2077
+ "request_type": request.__class__.__name__,
2078
+ "response_type": "ShowRelatedProjectResponse"
2079
+ }
2080
+
2081
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2082
+
2083
+ cname = None
2084
+
2085
+ collection_formats = {}
2086
+
2087
+ path_params = {}
2088
+
2089
+ query_params = []
2090
+
2091
+ header_params = {}
2092
+
2093
+ form_params = {}
2094
+
2095
+ body = None
2096
+ if isinstance(request, SdkStreamRequest):
2097
+ body = request.get_file_stream()
2098
+
2099
+ response_headers = []
2100
+
2101
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2102
+ ['application/json'])
2103
+
2104
+ auth_settings = ['apig-auth-iam']
2105
+
2106
+ http_info["cname"] = cname
2107
+ http_info["collection_formats"] = collection_formats
2108
+ http_info["path_params"] = path_params
2109
+ http_info["query_params"] = query_params
2110
+ http_info["header_params"] = header_params
2111
+ http_info["post_params"] = form_params
2112
+ http_info["body"] = body
2113
+ http_info["response_headers"] = response_headers
2114
+
2115
+ return http_info
2116
+
2117
+ def show_summary_build_job_info_async(self, request):
2118
+ r"""获取租户任务总数和成功率接口
2119
+
2120
+ 获取租户任务总数和成功率接口
2121
+
2122
+ Please refer to HUAWEI cloud API Explorer for details.
2123
+
2124
+
2125
+ :param request: Request instance for ShowSummaryBuildJobInfo
2126
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowSummaryBuildJobInfoRequest`
2127
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowSummaryBuildJobInfoResponse`
2128
+ """
2129
+ http_info = self._show_summary_build_job_info_http_info(request)
2130
+ return self._call_api(**http_info)
2131
+
2132
+ def show_summary_build_job_info_async_invoker(self, request):
2133
+ http_info = self._show_summary_build_job_info_http_info(request)
2134
+ return AsyncInvoker(self, http_info)
2135
+
2136
+ def _show_summary_build_job_info_http_info(self, request):
2137
+ http_info = {
2138
+ "method": "GET",
2139
+ "resource_path": "/v1/domain/job-summary",
2140
+ "request_type": request.__class__.__name__,
2141
+ "response_type": "ShowSummaryBuildJobInfoResponse"
2142
+ }
2143
+
2144
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2145
+
2146
+ cname = None
2147
+
2148
+ collection_formats = {}
2149
+
2150
+ path_params = {}
2151
+
2152
+ query_params = []
2153
+
2154
+ header_params = {}
2155
+
2156
+ form_params = {}
2157
+
2158
+ body = None
2159
+ if isinstance(request, SdkStreamRequest):
2160
+ body = request.get_file_stream()
2161
+
2162
+ response_headers = []
2163
+
2164
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2165
+ ['application/json'])
2166
+
2167
+ auth_settings = ['apig-auth-iam']
2168
+
2169
+ http_info["cname"] = cname
2170
+ http_info["collection_formats"] = collection_formats
2171
+ http_info["path_params"] = path_params
2172
+ http_info["query_params"] = query_params
2173
+ http_info["header_params"] = header_params
2174
+ http_info["post_params"] = form_params
2175
+ http_info["body"] = body
2176
+ http_info["response_headers"] = response_headers
2177
+
2178
+ return http_info
2179
+
2180
+ def show_user_over_package_quota_async(self, request):
2181
+ r"""当前用户所在项目所属租户的包周期每月时长是否超额
2182
+
2183
+ 当前用户所在项目所属租户的包周期每月时长是否超额
2184
+
2185
+ Please refer to HUAWEI cloud API Explorer for details.
2186
+
2187
+
2188
+ :param request: Request instance for ShowUserOverPackageQuota
2189
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowUserOverPackageQuotaRequest`
2190
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowUserOverPackageQuotaResponse`
2191
+ """
2192
+ http_info = self._show_user_over_package_quota_http_info(request)
2193
+ return self._call_api(**http_info)
2194
+
2195
+ def show_user_over_package_quota_async_invoker(self, request):
2196
+ http_info = self._show_user_over_package_quota_http_info(request)
2197
+ return AsyncInvoker(self, http_info)
2198
+
2199
+ def _show_user_over_package_quota_http_info(self, request):
2200
+ http_info = {
2201
+ "method": "GET",
2202
+ "resource_path": "/v1/domain/package/quota",
2203
+ "request_type": request.__class__.__name__,
2204
+ "response_type": "ShowUserOverPackageQuotaResponse"
2205
+ }
2206
+
2207
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2208
+
2209
+ cname = None
2210
+
2211
+ collection_formats = {}
2212
+
2213
+ path_params = {}
2214
+
2215
+ query_params = []
2216
+ if 'project_id' in local_var_params:
2217
+ query_params.append(('project_id', local_var_params['project_id']))
2218
+
2219
+ header_params = {}
2220
+
2221
+ form_params = {}
2222
+
2223
+ body = None
2224
+ if isinstance(request, SdkStreamRequest):
2225
+ body = request.get_file_stream()
2226
+
2227
+ response_headers = []
2228
+
2229
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2230
+ ['application/json'])
2231
+
2232
+ auth_settings = ['apig-auth-iam']
2233
+
2234
+ http_info["cname"] = cname
2235
+ http_info["collection_formats"] = collection_formats
2236
+ http_info["path_params"] = path_params
2237
+ http_info["query_params"] = query_params
2238
+ http_info["header_params"] = header_params
2239
+ http_info["post_params"] = form_params
2240
+ http_info["body"] = body
2241
+ http_info["response_headers"] = response_headers
2242
+
2243
+ return http_info
2244
+
2245
+ def show_dockerfile_template_async(self, request):
2246
+ r"""获取dockerfileTemplate
2247
+
2248
+ 获取dockerfileTemplate
2249
+
2250
+ Please refer to HUAWEI cloud API Explorer for details.
2251
+
2252
+
2253
+ :param request: Request instance for ShowDockerfileTemplate
2254
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDockerfileTemplateRequest`
2255
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDockerfileTemplateResponse`
2256
+ """
2257
+ http_info = self._show_dockerfile_template_http_info(request)
2258
+ return self._call_api(**http_info)
2259
+
2260
+ def show_dockerfile_template_async_invoker(self, request):
2261
+ http_info = self._show_dockerfile_template_http_info(request)
2262
+ return AsyncInvoker(self, http_info)
2263
+
2264
+ def _show_dockerfile_template_http_info(self, request):
2265
+ http_info = {
2266
+ "method": "GET",
2267
+ "resource_path": "/v1/image/dockerfile-template",
2268
+ "request_type": request.__class__.__name__,
2269
+ "response_type": "ShowDockerfileTemplateResponse"
2270
+ }
2271
+
2272
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2273
+
2274
+ cname = None
2275
+
2276
+ collection_formats = {}
2277
+
2278
+ path_params = {}
2279
+
2280
+ query_params = []
2281
+ if 'image_id' in local_var_params:
2282
+ query_params.append(('image_id', local_var_params['image_id']))
2283
+
2284
+ header_params = {}
2285
+
2286
+ form_params = {}
2287
+
2288
+ body = None
2289
+ if isinstance(request, SdkStreamRequest):
2290
+ body = request.get_file_stream()
2291
+
2292
+ response_headers = []
2293
+
2294
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2295
+ ['application/json'])
2296
+
2297
+ auth_settings = ['apig-auth-iam']
2298
+
2299
+ http_info["cname"] = cname
2300
+ http_info["collection_formats"] = collection_formats
2301
+ http_info["path_params"] = path_params
2302
+ http_info["query_params"] = query_params
2303
+ http_info["header_params"] = header_params
2304
+ http_info["post_params"] = form_params
2305
+ http_info["body"] = body
2306
+ http_info["response_headers"] = response_headers
2307
+
2308
+ return http_info
2309
+
2310
+ def show_image_template_list_async(self, request):
2311
+ r"""获取镜像模板列表
2312
+
2313
+ 获取镜像模板列表
2314
+
2315
+ Please refer to HUAWEI cloud API Explorer for details.
2316
+
2317
+
2318
+ :param request: Request instance for ShowImageTemplateList
2319
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListRequest`
2320
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListResponse`
2321
+ """
2322
+ http_info = self._show_image_template_list_http_info(request)
2323
+ return self._call_api(**http_info)
2324
+
2325
+ def show_image_template_list_async_invoker(self, request):
2326
+ http_info = self._show_image_template_list_http_info(request)
2327
+ return AsyncInvoker(self, http_info)
2328
+
2329
+ def _show_image_template_list_http_info(self, request):
2330
+ http_info = {
2331
+ "method": "GET",
2332
+ "resource_path": "/v1/image/templates",
2333
+ "request_type": request.__class__.__name__,
2334
+ "response_type": "ShowImageTemplateListResponse"
2335
+ }
2336
+
2337
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2338
+
2339
+ cname = None
2340
+
2341
+ collection_formats = {}
2342
+
2343
+ path_params = {}
2344
+
2345
+ query_params = []
2346
+
2347
+ header_params = {}
2348
+
2349
+ form_params = {}
2350
+
2351
+ body = None
2352
+ if isinstance(request, SdkStreamRequest):
2353
+ body = request.get_file_stream()
2354
+
2355
+ response_headers = []
2356
+
2357
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2358
+ ['application/json'])
2359
+
2360
+ auth_settings = ['apig-auth-iam']
2361
+
2362
+ http_info["cname"] = cname
2363
+ http_info["collection_formats"] = collection_formats
2364
+ http_info["path_params"] = path_params
2365
+ http_info["query_params"] = query_params
2366
+ http_info["header_params"] = header_params
2367
+ http_info["post_params"] = form_params
2368
+ http_info["body"] = body
2369
+ http_info["response_headers"] = response_headers
2370
+
2371
+ return http_info
2372
+
2373
+ def check_job_count_is_top_limit_async(self, request):
2374
+ r"""检查任务数量是否上限
2375
+
2376
+ 检查任务数量是否上限
2377
+
2378
+ Please refer to HUAWEI cloud API Explorer for details.
2379
+
2380
+
2381
+ :param request: Request instance for CheckJobCountIsTopLimit
2382
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobCountIsTopLimitRequest`
2383
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobCountIsTopLimitResponse`
2384
+ """
2385
+ http_info = self._check_job_count_is_top_limit_http_info(request)
2386
+ return self._call_api(**http_info)
2387
+
2388
+ def check_job_count_is_top_limit_async_invoker(self, request):
2389
+ http_info = self._check_job_count_is_top_limit_http_info(request)
2390
+ return AsyncInvoker(self, http_info)
2391
+
2392
+ def _check_job_count_is_top_limit_http_info(self, request):
2393
+ http_info = {
2394
+ "method": "GET",
2395
+ "resource_path": "/v1/job/check/count",
2396
+ "request_type": request.__class__.__name__,
2397
+ "response_type": "CheckJobCountIsTopLimitResponse"
2398
+ }
2399
+
2400
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2401
+
2402
+ cname = None
2403
+
2404
+ collection_formats = {}
2405
+
2406
+ path_params = {}
2407
+
2408
+ query_params = []
2409
+
2410
+ header_params = {}
2411
+
2412
+ form_params = {}
2413
+
2414
+ body = None
2415
+ if isinstance(request, SdkStreamRequest):
2416
+ body = request.get_file_stream()
2417
+
2418
+ response_headers = []
2419
+
2420
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2421
+ ['application/json'])
2422
+
2423
+ auth_settings = ['apig-auth-iam']
2424
+
2425
+ http_info["cname"] = cname
2426
+ http_info["collection_formats"] = collection_formats
2427
+ http_info["path_params"] = path_params
2428
+ http_info["query_params"] = query_params
2429
+ http_info["header_params"] = header_params
2430
+ http_info["post_params"] = form_params
2431
+ http_info["body"] = body
2432
+ http_info["response_headers"] = response_headers
2433
+
2434
+ return http_info
2435
+
2436
+ def check_job_name_is_exists_async(self, request):
2437
+ r"""查看项目下任务名是否存在
2438
+
2439
+ 查看项目下任务名是否存在
2440
+
2441
+ Please refer to HUAWEI cloud API Explorer for details.
2442
+
2443
+
2444
+ :param request: Request instance for CheckJobNameIsExists
2445
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobNameIsExistsRequest`
2446
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CheckJobNameIsExistsResponse`
2447
+ """
2448
+ http_info = self._check_job_name_is_exists_http_info(request)
2449
+ return self._call_api(**http_info)
2450
+
2451
+ def check_job_name_is_exists_async_invoker(self, request):
2452
+ http_info = self._check_job_name_is_exists_http_info(request)
2453
+ return AsyncInvoker(self, http_info)
2454
+
2455
+ def _check_job_name_is_exists_http_info(self, request):
2456
+ http_info = {
2457
+ "method": "GET",
2458
+ "resource_path": "/v1/job/check/exist",
2459
+ "request_type": request.__class__.__name__,
2460
+ "response_type": "CheckJobNameIsExistsResponse"
2461
+ }
2462
+
2463
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2464
+
2465
+ cname = None
2466
+
2467
+ collection_formats = {}
2468
+
2469
+ path_params = {}
2470
+
2471
+ query_params = []
2472
+ if 'project_id' in local_var_params:
2473
+ query_params.append(('project_id', local_var_params['project_id']))
2474
+ if 'job_name' in local_var_params:
2475
+ query_params.append(('job_name', local_var_params['job_name']))
2476
+
2477
+ header_params = {}
2478
+
2479
+ form_params = {}
2480
+
2481
+ body = None
2482
+ if isinstance(request, SdkStreamRequest):
2483
+ body = request.get_file_stream()
2484
+
2485
+ response_headers = []
2486
+
2487
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2488
+ ['application/json'])
2489
+
2490
+ auth_settings = ['apig-auth-iam']
2491
+
2492
+ http_info["cname"] = cname
2493
+ http_info["collection_formats"] = collection_formats
2494
+ http_info["path_params"] = path_params
2495
+ http_info["query_params"] = query_params
2496
+ http_info["header_params"] = header_params
2497
+ http_info["post_params"] = form_params
2498
+ http_info["body"] = body
2499
+ http_info["response_headers"] = response_headers
2500
+
2501
+ return http_info
2502
+
2503
+ def list_build_parameter_async(self, request):
2504
+ r"""详情页获取构建参数
2505
+
2506
+ 详情页获取构建参数
2507
+
2508
+ Please refer to HUAWEI cloud API Explorer for details.
2509
+
2510
+
2511
+ :param request: Request instance for ListBuildParameter
2512
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildParameterRequest`
2513
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildParameterResponse`
2514
+ """
2515
+ http_info = self._list_build_parameter_http_info(request)
2516
+ return self._call_api(**http_info)
2517
+
2518
+ def list_build_parameter_async_invoker(self, request):
2519
+ http_info = self._list_build_parameter_http_info(request)
2520
+ return AsyncInvoker(self, http_info)
2521
+
2522
+ def _list_build_parameter_http_info(self, 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_async(self, request):
2571
+ r"""查看用户全部的构建任务列表
2572
+
2573
+ 查看用户全部的构建任务列表
2574
+
2575
+ Please refer to HUAWEI cloud API Explorer for details.
2576
+
2577
+
2578
+ :param request: Request instance for ListJob
2579
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobRequest`
2580
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobResponse`
2581
+ """
2582
+ http_info = self._list_job_http_info(request)
2583
+ return self._call_api(**http_info)
2584
+
2585
+ def list_job_async_invoker(self, request):
2586
+ http_info = self._list_job_http_info(request)
2587
+ return AsyncInvoker(self, http_info)
842
2588
 
843
- 获取任务构建记录列表v1
2589
+ def _list_job_http_info(self, 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_async(self, request):
2634
+ r"""查询项目任务列表
2635
+
2636
+ 查询项目任务列表
2637
+
2638
+ Please refer to HUAWEI cloud API Explorer for details.
2639
+
2640
+
2641
+ :param request: Request instance for ListProjectJobs
2642
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListProjectJobsRequest`
2643
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListProjectJobsResponse`
2644
+ """
2645
+ http_info = self._list_project_jobs_http_info(request)
2646
+ return self._call_api(**http_info)
2647
+
2648
+ def list_project_jobs_async_invoker(self, request):
2649
+ http_info = self._list_project_jobs_http_info(request)
2650
+ return AsyncInvoker(self, http_info)
2651
+
2652
+ def _list_project_jobs_http_info(self, 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_async(self, request):
2717
+ r"""查看回收站中删除的构建任务列表
2718
+
2719
+ 查看回收站中删除的构建任务列表
2720
+
2721
+ Please refer to HUAWEI cloud API Explorer for details.
2722
+
2723
+
2724
+ :param request: Request instance for ListRecyclingJob
2725
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecyclingJobRequest`
2726
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecyclingJobResponse`
2727
+ """
2728
+ http_info = self._list_recycling_job_http_info(request)
2729
+ return self._call_api(**http_info)
2730
+
2731
+ def list_recycling_job_async_invoker(self, request):
2732
+ http_info = self._list_recycling_job_http_info(request)
2733
+ return AsyncInvoker(self, http_info)
2734
+
2735
+ def _list_recycling_job_http_info(self, 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_async(self, request):
2786
+ r"""获取修改历史
2787
+
2788
+ 获取修改历史
2789
+
2790
+ Please refer to HUAWEI cloud API Explorer for details.
2791
+
2792
+
2793
+ :param request: Request instance for ListUpdateJobHistory
2794
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListUpdateJobHistoryRequest`
2795
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListUpdateJobHistoryResponse`
2796
+ """
2797
+ http_info = self._list_update_job_history_http_info(request)
2798
+ return self._call_api(**http_info)
2799
+
2800
+ def list_update_job_history_async_invoker(self, request):
2801
+ http_info = self._list_update_job_history_http_info(request)
2802
+ return AsyncInvoker(self, http_info)
2803
+
2804
+ def _list_update_job_history_http_info(self, 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_async(self, request):
2855
+ r"""编辑页获取参数类型的接口
2856
+
2857
+ 编辑页获取参数类型的接口
844
2858
 
845
2859
  Please refer to HUAWEI cloud API Explorer for details.
846
2860
 
847
2861
 
848
- :param request: Request instance for ListBuildInfoRecordByJobId
849
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildInfoRecordByJobIdRequest`
850
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildInfoRecordByJobIdResponse`
2862
+ :param request: Request instance for ShowBuildParamsList
2863
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildParamsListRequest`
2864
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildParamsListResponse`
851
2865
  """
852
- http_info = self._list_build_info_record_by_job_id_http_info(request)
2866
+ http_info = self._show_build_params_list_http_info(request)
853
2867
  return self._call_api(**http_info)
854
2868
 
855
- def list_build_info_record_by_job_id_async_invoker(self, request):
856
- http_info = self._list_build_info_record_by_job_id_http_info(request)
2869
+ def show_build_params_list_async_invoker(self, request):
2870
+ http_info = self._show_build_params_list_http_info(request)
857
2871
  return AsyncInvoker(self, http_info)
858
2872
 
859
- def _list_build_info_record_by_job_id_http_info(self, request):
2873
+ def _show_build_params_list_http_info(self, request):
860
2874
  http_info = {
861
2875
  "method": "GET",
862
- "resource_path": "/v1/record/{job_id}/list",
2876
+ "resource_path": "/v1/job/build-params",
863
2877
  "request_type": request.__class__.__name__,
864
- "response_type": "ListBuildInfoRecordByJobIdResponse"
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
910
2914
 
911
2915
  return http_info
912
2916
 
913
- def list_job_config_async(self, request):
914
- r"""获取构建任务详情
2917
+ def show_copy_name_async(self, request):
2918
+ r"""复制任务名
915
2919
 
916
- 获取构建任务详情
2920
+ 复制任务名
917
2921
 
918
2922
  Please refer to HUAWEI cloud API Explorer for details.
919
2923
 
920
2924
 
921
- :param request: Request instance for ListJobConfig
922
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobConfigRequest`
923
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListJobConfigResponse`
2925
+ :param request: Request instance for ShowCopyName
2926
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowCopyNameRequest`
2927
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowCopyNameResponse`
924
2928
  """
925
- http_info = self._list_job_config_http_info(request)
2929
+ http_info = self._show_copy_name_http_info(request)
926
2930
  return self._call_api(**http_info)
927
2931
 
928
- def list_job_config_async_invoker(self, request):
929
- http_info = self._list_job_config_http_info(request)
2932
+ def show_copy_name_async_invoker(self, request):
2933
+ http_info = self._show_copy_name_http_info(request)
930
2934
  return AsyncInvoker(self, http_info)
931
2935
 
932
- def _list_job_config_http_info(self, request):
2936
+ def _show_copy_name_http_info(self, request):
933
2937
  http_info = {
934
2938
  "method": "GET",
935
- "resource_path": "/v3/jobs/{job_id}/query",
2939
+ "resource_path": "/v1/job/{job_id}/copy-name",
936
2940
  "request_type": request.__class__.__name__,
937
- "response_type": "ListJobConfigResponse"
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
977
2979
 
978
2980
  return http_info
979
2981
 
980
- def list_notice_async(self, request):
981
- r"""查询通知
2982
+ def show_default_build_parameters_async(self, request):
2983
+ r"""获取编译构建默认参数
982
2984
 
983
- 查询通知
2985
+ 获取编译构建默认参数
984
2986
 
985
2987
  Please refer to HUAWEI cloud API Explorer for details.
986
2988
 
987
2989
 
988
- :param request: Request instance for ListNotice
989
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListNoticeRequest`
990
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListNoticeResponse`
2990
+ :param request: Request instance for ShowDefaultBuildParameters
2991
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultBuildParametersRequest`
2992
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultBuildParametersResponse`
991
2993
  """
992
- http_info = self._list_notice_http_info(request)
2994
+ http_info = self._show_default_build_parameters_http_info(request)
993
2995
  return self._call_api(**http_info)
994
2996
 
995
- def list_notice_async_invoker(self, request):
996
- http_info = self._list_notice_http_info(request)
2997
+ def show_default_build_parameters_async_invoker(self, request):
2998
+ http_info = self._show_default_build_parameters_http_info(request)
997
2999
  return AsyncInvoker(self, http_info)
998
3000
 
999
- def _list_notice_http_info(self, request):
3001
+ def _show_default_build_parameters_http_info(self, request):
1000
3002
  http_info = {
1001
3003
  "method": "GET",
1002
- "resource_path": "/v3/jobs/notice/{job_id}/query",
3004
+ "resource_path": "/v1/job/default-parameters",
1003
3005
  "request_type": request.__class__.__name__,
1004
- "response_type": "ListNoticeResponse"
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
1042
3042
 
1043
3043
  return http_info
1044
3044
 
1045
- def list_official_template_async(self, request):
1046
- r"""查询官方模版
3045
+ def show_default_project_permission_async(self, request):
3046
+ r"""获取当前项目默认角色权限矩阵信息
1047
3047
 
1048
- 查询官方模版
3048
+ 获取当前项目默认角色权限矩阵信息
1049
3049
 
1050
3050
  Please refer to HUAWEI cloud API Explorer for details.
1051
3051
 
1052
3052
 
1053
- :param request: Request instance for ListOfficialTemplate
1054
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListOfficialTemplateRequest`
1055
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListOfficialTemplateResponse`
3053
+ :param request: Request instance for ShowDefaultProjectPermission
3054
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultProjectPermissionRequest`
3055
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDefaultProjectPermissionResponse`
1056
3056
  """
1057
- http_info = self._list_official_template_http_info(request)
3057
+ http_info = self._show_default_project_permission_http_info(request)
1058
3058
  return self._call_api(**http_info)
1059
3059
 
1060
- def list_official_template_async_invoker(self, request):
1061
- http_info = self._list_official_template_http_info(request)
3060
+ def show_default_project_permission_async_invoker(self, request):
3061
+ http_info = self._show_default_project_permission_http_info(request)
1062
3062
  return AsyncInvoker(self, http_info)
1063
3063
 
1064
- def _list_official_template_http_info(self, request):
3064
+ def _show_default_project_permission_http_info(self, request):
1065
3065
  http_info = {
1066
3066
  "method": "GET",
1067
- "resource_path": "/v1/template/officialtemplates",
3067
+ "resource_path": "/v1/job/project/default-permission",
1068
3068
  "request_type": request.__class__.__name__,
1069
- "response_type": "ListOfficialTemplateResponse"
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 CodeArtsBuildAsyncClient(Client):
1078
3078
  path_params = {}
1079
3079
 
1080
3080
  query_params = []
1081
- if 'name' in local_var_params:
1082
- query_params.append(('name', local_var_params['name']))
1083
- if 'page' in local_var_params:
1084
- query_params.append(('page', local_var_params['page']))
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 CodeArtsBuildAsyncClient(Client):
1111
3109
 
1112
3110
  return http_info
1113
3111
 
1114
- def list_project_jobs_async(self, request):
1115
- r"""查询项目任务列表
3112
+ def show_disable_async(self, request):
3113
+ r"""查询任务是否已禁用
1116
3114
 
1117
- 查询项目任务列表
3115
+ 查询任务是否已禁用
1118
3116
 
1119
3117
  Please refer to HUAWEI cloud API Explorer for details.
1120
3118
 
1121
3119
 
1122
- :param request: Request instance for ListProjectJobs
1123
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListProjectJobsRequest`
1124
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListProjectJobsResponse`
3120
+ :param request: Request instance for ShowDisable
3121
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDisableRequest`
3122
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowDisableResponse`
1125
3123
  """
1126
- http_info = self._list_project_jobs_http_info(request)
3124
+ http_info = self._show_disable_http_info(request)
1127
3125
  return self._call_api(**http_info)
1128
3126
 
1129
- def list_project_jobs_async_invoker(self, request):
1130
- http_info = self._list_project_jobs_http_info(request)
3127
+ def show_disable_async_invoker(self, request):
3128
+ http_info = self._show_disable_http_info(request)
1131
3129
  return AsyncInvoker(self, http_info)
1132
3130
 
1133
- def _list_project_jobs_http_info(self, request):
3131
+ def _show_disable_http_info(self, request):
1134
3132
  http_info = {
1135
3133
  "method": "GET",
1136
- "resource_path": "/v1/job/{project_id}/list",
3134
+ "resource_path": "/v1/job/{job_id}/check/disable",
1137
3135
  "request_type": request.__class__.__name__,
1138
- "response_type": "ListProjectJobsResponse"
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 CodeArtsBuildAsyncClient(Client):
1145
3143
  collection_formats = {}
1146
3144
 
1147
3145
  path_params = {}
1148
- if 'project_id' in local_var_params:
1149
- path_params['project_id'] = local_var_params['project_id']
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 CodeArtsBuildAsyncClient(Client):
1194
3174
 
1195
3175
  return http_info
1196
3176
 
1197
- def list_recycling_job_async(self, request):
1198
- r"""查看回收站中删除的构建任务列表
3177
+ def show_job_config_async(self, request):
3178
+ r"""获取构建任务详情
1199
3179
 
1200
- 查看回收站中删除的构建任务列表
3180
+ 获取构建任务详情
1201
3181
 
1202
3182
  Please refer to HUAWEI cloud API Explorer for details.
1203
3183
 
1204
3184
 
1205
- :param request: Request instance for ListRecyclingJob
1206
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecyclingJobRequest`
1207
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecyclingJobResponse`
3185
+ :param request: Request instance for ShowJobConfig
3186
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigRequest`
3187
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigResponse`
1208
3188
  """
1209
- http_info = self._list_recycling_job_http_info(request)
3189
+ http_info = self._show_job_config_http_info(request)
1210
3190
  return self._call_api(**http_info)
1211
3191
 
1212
- def list_recycling_job_async_invoker(self, request):
1213
- http_info = self._list_recycling_job_http_info(request)
3192
+ def show_job_config_async_invoker(self, request):
3193
+ http_info = self._show_job_config_http_info(request)
1214
3194
  return AsyncInvoker(self, http_info)
1215
3195
 
1216
- def _list_recycling_job_http_info(self, request):
3196
+ def _show_job_config_http_info(self, request):
1217
3197
  http_info = {
1218
3198
  "method": "GET",
1219
- "resource_path": "/v1/job/recycling-jobs",
3199
+ "resource_path": "/v1/job/{job_id}/config",
1220
3200
  "request_type": request.__class__.__name__,
1221
- "response_type": "ListRecyclingJobResponse"
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 CodeArtsBuildAsyncClient(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 'page_size' in local_var_params:
1234
- query_params.append(('page_size', local_var_params['page_size']))
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 CodeArtsBuildAsyncClient(Client):
1263
3241
 
1264
3242
  return http_info
1265
3243
 
1266
- def list_templates_async(self, request):
1267
- r"""查询构建模板
3244
+ def show_job_config_diff_async(self, request):
3245
+ r"""获取构建任务配置的对比差异
1268
3246
 
1269
- 查询构建模板
3247
+ 获取构建任务配置的对比差异
1270
3248
 
1271
3249
  Please refer to HUAWEI cloud API Explorer for details.
1272
3250
 
1273
3251
 
1274
- :param request: Request instance for ListTemplates
1275
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesRequest`
1276
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesResponse`
3252
+ :param request: Request instance for ShowJobConfigDiff
3253
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigDiffRequest`
3254
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigDiffResponse`
1277
3255
  """
1278
- http_info = self._list_templates_http_info(request)
3256
+ http_info = self._show_job_config_diff_http_info(request)
1279
3257
  return self._call_api(**http_info)
1280
3258
 
1281
- def list_templates_async_invoker(self, request):
1282
- http_info = self._list_templates_http_info(request)
3259
+ def show_job_config_diff_async_invoker(self, request):
3260
+ http_info = self._show_job_config_diff_http_info(request)
1283
3261
  return AsyncInvoker(self, http_info)
1284
3262
 
1285
- def _list_templates_http_info(self, request):
3263
+ def _show_job_config_diff_http_info(self, request):
1286
3264
  http_info = {
1287
3265
  "method": "GET",
1288
- "resource_path": "/v3/templates/query",
3266
+ "resource_path": "/v1/job/{job_id}/diff",
1289
3267
  "request_type": request.__class__.__name__,
1290
- "response_type": "ListTemplatesResponse"
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 CodeArtsBuildAsyncClient(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 'name' in local_var_params:
1303
- query_params.append(('name', local_var_params['name']))
1304
- if 'page' in local_var_params:
1305
- query_params.append(('page', local_var_params['page']))
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 CodeArtsBuildAsyncClient(Client):
1332
3310
 
1333
3311
  return http_info
1334
3312
 
1335
- def run_job_async(self, request):
1336
- r"""执行构建任务
3313
+ def show_job_info_async(self, request):
3314
+ r"""查看构建任务构建信息
1337
3315
 
1338
- 执行构建任务,可传自定义参数
3316
+ 查看构建任务构建信息
1339
3317
 
1340
3318
  Please refer to HUAWEI cloud API Explorer for details.
1341
3319
 
1342
3320
 
1343
- :param request: Request instance for RunJob
1344
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobRequest`
1345
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobResponse`
3321
+ :param request: Request instance for ShowJobInfo
3322
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobInfoRequest`
3323
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobInfoResponse`
1346
3324
  """
1347
- http_info = self._run_job_http_info(request)
3325
+ http_info = self._show_job_info_http_info(request)
1348
3326
  return self._call_api(**http_info)
1349
3327
 
1350
- def run_job_async_invoker(self, request):
1351
- http_info = self._run_job_http_info(request)
3328
+ def show_job_info_async_invoker(self, request):
3329
+ http_info = self._show_job_info_http_info(request)
1352
3330
  return AsyncInvoker(self, http_info)
1353
3331
 
1354
- def _run_job_http_info(self, request):
3332
+ def _show_job_info_http_info(self, request):
1355
3333
  http_info = {
1356
- "method": "POST",
1357
- "resource_path": "/v3/jobs/build",
3334
+ "method": "GET",
3335
+ "resource_path": "/v1/job/{job_id}/info",
1358
3336
  "request_type": request.__class__.__name__,
1359
- "response_type": "RunJobResponse"
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
1397
3375
 
1398
3376
  return http_info
1399
3377
 
1400
- def show_build_params_list_async(self, request):
1401
- r"""编辑页获取参数类型的接口
3378
+ def show_job_notice_config_info_async(self, request):
3379
+ r"""获取通知信息
1402
3380
 
1403
- 编辑页获取参数类型的接口
3381
+ 获取通知信息
1404
3382
 
1405
3383
  Please refer to HUAWEI cloud API Explorer for details.
1406
3384
 
1407
3385
 
1408
- :param request: Request instance for ShowBuildParamsList
1409
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildParamsListRequest`
1410
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildParamsListResponse`
3386
+ :param request: Request instance for ShowJobNoticeConfigInfo
3387
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobNoticeConfigInfoRequest`
3388
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobNoticeConfigInfoResponse`
1411
3389
  """
1412
- http_info = self._show_build_params_list_http_info(request)
3390
+ http_info = self._show_job_notice_config_info_http_info(request)
1413
3391
  return self._call_api(**http_info)
1414
3392
 
1415
- def show_build_params_list_async_invoker(self, request):
1416
- http_info = self._show_build_params_list_http_info(request)
3393
+ def show_job_notice_config_info_async_invoker(self, request):
3394
+ http_info = self._show_job_notice_config_info_http_info(request)
1417
3395
  return AsyncInvoker(self, http_info)
1418
3396
 
1419
- def _show_build_params_list_http_info(self, request):
3397
+ def _show_job_notice_config_info_http_info(self, request):
1420
3398
  http_info = {
1421
3399
  "method": "GET",
1422
- "resource_path": "/v1/job/build-params",
3400
+ "resource_path": "/v1/job/{job_id}/notice",
1423
3401
  "request_type": request.__class__.__name__,
1424
- "response_type": "ShowBuildParamsListResponse"
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
1460
3440
 
1461
3441
  return http_info
1462
3442
 
1463
- def show_build_record_async(self, request):
1464
- r"""查询指定构建记录详情
3443
+ def show_job_role_permission_async(self, request):
3444
+ r"""获取构建任务的角色权限矩阵信息
1465
3445
 
1466
- 查询指定构建记录详情
3446
+ 获取构建任务的角色权限矩阵信息
1467
3447
 
1468
3448
  Please refer to HUAWEI cloud API Explorer for details.
1469
3449
 
1470
3450
 
1471
- :param request: Request instance for ShowBuildRecord
1472
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordRequest`
1473
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordResponse`
3451
+ :param request: Request instance for ShowJobRolePermission
3452
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobRolePermissionRequest`
3453
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobRolePermissionResponse`
1474
3454
  """
1475
- http_info = self._show_build_record_http_info(request)
3455
+ http_info = self._show_job_role_permission_http_info(request)
1476
3456
  return self._call_api(**http_info)
1477
3457
 
1478
- def show_build_record_async_invoker(self, request):
1479
- http_info = self._show_build_record_http_info(request)
3458
+ def show_job_role_permission_async_invoker(self, request):
3459
+ http_info = self._show_job_role_permission_http_info(request)
1480
3460
  return AsyncInvoker(self, http_info)
1481
3461
 
1482
- def _show_build_record_http_info(self, request):
3462
+ def _show_job_role_permission_http_info(self, request):
1483
3463
  http_info = {
1484
3464
  "method": "GET",
1485
- "resource_path": "/v1/record/{record_id}/info",
3465
+ "resource_path": "/v1/job/permission/role",
1486
3466
  "request_type": request.__class__.__name__,
1487
- "response_type": "ShowBuildRecordResponse"
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
1525
3505
 
1526
3506
  return http_info
1527
3507
 
1528
- def show_build_record_build_script_async(self, request):
1529
- r"""获取构建记录的构建脚本
3508
+ def show_job_step_status_async(self, request):
3509
+ r"""查询任务状态
1530
3510
 
1531
- 获取构建记录的构建脚本
3511
+ 查询任务状态
1532
3512
 
1533
3513
  Please refer to HUAWEI cloud API Explorer for details.
1534
3514
 
1535
3515
 
1536
- :param request: Request instance for ShowBuildRecordBuildScript
1537
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordBuildScriptRequest`
1538
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordBuildScriptResponse`
3516
+ :param request: Request instance for ShowJobStepStatus
3517
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStepStatusRequest`
3518
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStepStatusResponse`
1539
3519
  """
1540
- http_info = self._show_build_record_build_script_http_info(request)
3520
+ http_info = self._show_job_step_status_http_info(request)
1541
3521
  return self._call_api(**http_info)
1542
3522
 
1543
- def show_build_record_build_script_async_invoker(self, request):
1544
- http_info = self._show_build_record_build_script_http_info(request)
3523
+ def show_job_step_status_async_invoker(self, request):
3524
+ http_info = self._show_job_step_status_http_info(request)
1545
3525
  return AsyncInvoker(self, http_info)
1546
3526
 
1547
- def _show_build_record_build_script_http_info(self, request):
3527
+ def _show_job_step_status_http_info(self, request):
1548
3528
  http_info = {
1549
3529
  "method": "GET",
1550
- "resource_path": "/v1/record/{record_id}/build-script",
3530
+ "resource_path": "/v1/job/{job_id}/status",
1551
3531
  "request_type": request.__class__.__name__,
1552
- "response_type": "ShowBuildRecordBuildScriptResponse"
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 CodeArtsBuildAsyncClient(Client):
1559
3539
  collection_formats = {}
1560
3540
 
1561
3541
  path_params = {}
1562
- if 'record_id' in local_var_params:
1563
- path_params['record_id'] = local_var_params['record_id']
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 CodeArtsBuildAsyncClient(Client):
1590
3572
 
1591
3573
  return http_info
1592
3574
 
1593
- def show_build_record_full_stages_async(self, request):
1594
- r"""获取任务各阶段信息
3575
+ def show_job_system_parameters_async(self, request):
3576
+ r"""查看系统预定义参数
1595
3577
 
1596
- 获取任务各阶段信息
3578
+ 查看系统预定义参数
1597
3579
 
1598
3580
  Please refer to HUAWEI cloud API Explorer for details.
1599
3581
 
1600
3582
 
1601
- :param request: Request instance for ShowBuildRecordFullStages
1602
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesRequest`
1603
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesResponse`
3583
+ :param request: Request instance for ShowJobSystemParameters
3584
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSystemParametersRequest`
3585
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSystemParametersResponse`
1604
3586
  """
1605
- http_info = self._show_build_record_full_stages_http_info(request)
3587
+ http_info = self._show_job_system_parameters_http_info(request)
1606
3588
  return self._call_api(**http_info)
1607
3589
 
1608
- def show_build_record_full_stages_async_invoker(self, request):
1609
- http_info = self._show_build_record_full_stages_http_info(request)
3590
+ def show_job_system_parameters_async_invoker(self, request):
3591
+ http_info = self._show_job_system_parameters_http_info(request)
1610
3592
  return AsyncInvoker(self, http_info)
1611
3593
 
1612
- def _show_build_record_full_stages_http_info(self, request):
3594
+ def _show_job_system_parameters_http_info(self, request):
1613
3595
  http_info = {
1614
3596
  "method": "GET",
1615
- "resource_path": "/v1/record/{record_id}/full-stages",
3597
+ "resource_path": "/v1/job/system-parameters",
1616
3598
  "request_type": request.__class__.__name__,
1617
- "response_type": "ShowBuildRecordFullStagesResponse"
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
1657
3635
 
1658
3636
  return http_info
1659
3637
 
1660
- def show_history_details_async(self, request):
1661
- r"""获取构建历史详情信息接口
3638
+ def show_running_status_async(self, request):
3639
+ r"""查看任务是否在构建
1662
3640
 
1663
- 获取构建历史详情信息接口
3641
+ 查看任务是否在构建
1664
3642
 
1665
3643
  Please refer to HUAWEI cloud API Explorer for details.
1666
3644
 
1667
3645
 
1668
- :param request: Request instance for ShowHistoryDetails
1669
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsRequest`
1670
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsResponse`
3646
+ :param request: Request instance for ShowRunningStatus
3647
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRunningStatusRequest`
3648
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRunningStatusResponse`
1671
3649
  """
1672
- http_info = self._show_history_details_http_info(request)
3650
+ http_info = self._show_running_status_http_info(request)
1673
3651
  return self._call_api(**http_info)
1674
3652
 
1675
- def show_history_details_async_invoker(self, request):
1676
- http_info = self._show_history_details_http_info(request)
3653
+ def show_running_status_async_invoker(self, request):
3654
+ http_info = self._show_running_status_http_info(request)
1677
3655
  return AsyncInvoker(self, http_info)
1678
3656
 
1679
- def _show_history_details_http_info(self, request):
3657
+ def _show_running_status_http_info(self, request):
1680
3658
  http_info = {
1681
3659
  "method": "GET",
1682
- "resource_path": "/v3/jobs/{job_id}/{build_number}/history-details",
3660
+ "resource_path": "/v1/job/{job_id}/running-status",
1683
3661
  "request_type": request.__class__.__name__,
1684
- "response_type": "ShowHistoryDetailsResponse"
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
1724
3700
 
1725
3701
  return http_info
1726
3702
 
1727
- def show_image_template_list_async(self, request):
1728
- r"""获取镜像模板列表
3703
+ def download_keystore_by_name_async(self, request):
3704
+ r"""文件管理文件下载
1729
3705
 
1730
- 获取镜像模板列表
3706
+ 文件管理文件下载
1731
3707
 
1732
3708
  Please refer to HUAWEI cloud API Explorer for details.
1733
3709
 
1734
3710
 
1735
- :param request: Request instance for ShowImageTemplateList
1736
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListRequest`
1737
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListResponse`
3711
+ :param request: Request instance for DownloadKeystoreByName
3712
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadKeystoreByNameRequest`
3713
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadKeystoreByNameResponse`
1738
3714
  """
1739
- http_info = self._show_image_template_list_http_info(request)
3715
+ http_info = self._download_keystore_by_name_http_info(request)
1740
3716
  return self._call_api(**http_info)
1741
3717
 
1742
- def show_image_template_list_async_invoker(self, request):
1743
- http_info = self._show_image_template_list_http_info(request)
3718
+ def download_keystore_by_name_async_invoker(self, request):
3719
+ http_info = self._download_keystore_by_name_http_info(request)
1744
3720
  return AsyncInvoker(self, http_info)
1745
3721
 
1746
- def _show_image_template_list_http_info(self, request):
3722
+ def _download_keystore_by_name_http_info(self, request):
1747
3723
  http_info = {
1748
3724
  "method": "GET",
1749
- "resource_path": "/v1/image/templates",
3725
+ "resource_path": "/v2/keystore/download",
1750
3726
  "request_type": request.__class__.__name__,
1751
- "response_type": "ShowImageTemplateListResponse"
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
1787
3769
 
1788
3770
  return http_info
1789
3771
 
1790
- def show_job_build_success_ratio_async(self, request):
1791
- r"""查询构建成功率
3772
+ def list_keystore_async(self, request):
3773
+ r"""查询用户可使用文件
1792
3774
 
1793
- 查询构建成功率
3775
+ 查询用户可使用文件
1794
3776
 
1795
3777
  Please refer to HUAWEI cloud API Explorer for details.
1796
3778
 
1797
3779
 
1798
- :param request: Request instance for ShowJobBuildSuccessRatio
1799
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioRequest`
1800
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioResponse`
3780
+ :param request: Request instance for ListKeystore
3781
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListKeystoreRequest`
3782
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListKeystoreResponse`
1801
3783
  """
1802
- http_info = self._show_job_build_success_ratio_http_info(request)
3784
+ http_info = self._list_keystore_http_info(request)
1803
3785
  return self._call_api(**http_info)
1804
3786
 
1805
- def show_job_build_success_ratio_async_invoker(self, request):
1806
- http_info = self._show_job_build_success_ratio_http_info(request)
3787
+ def list_keystore_async_invoker(self, request):
3788
+ http_info = self._list_keystore_http_info(request)
1807
3789
  return AsyncInvoker(self, http_info)
1808
3790
 
1809
- def _show_job_build_success_ratio_http_info(self, request):
3791
+ def _list_keystore_http_info(self, request):
1810
3792
  http_info = {
1811
3793
  "method": "GET",
1812
- "resource_path": "/v1/report/ratio",
3794
+ "resource_path": "/v2/keystore/name",
1813
3795
  "request_type": request.__class__.__name__,
1814
- "response_type": "ShowJobBuildSuccessRatioResponse"
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
1858
3832
 
1859
3833
  return http_info
1860
3834
 
1861
- def show_job_build_time_async(self, request):
1862
- r"""洞察构建时长
3835
+ def list_keystore_search_async(self, request):
3836
+ r"""查询租户下文件列表
1863
3837
 
1864
- 洞察构建时长
3838
+ 查询租户下文件列表
1865
3839
 
1866
3840
  Please refer to HUAWEI cloud API Explorer for details.
1867
3841
 
1868
3842
 
1869
- :param request: Request instance for ShowJobBuildTime
1870
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeRequest`
1871
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeResponse`
3843
+ :param request: Request instance for ListKeystoreSearch
3844
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListKeystoreSearchRequest`
3845
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListKeystoreSearchResponse`
1872
3846
  """
1873
- http_info = self._show_job_build_time_http_info(request)
3847
+ http_info = self._list_keystore_search_http_info(request)
1874
3848
  return self._call_api(**http_info)
1875
3849
 
1876
- def show_job_build_time_async_invoker(self, request):
1877
- http_info = self._show_job_build_time_http_info(request)
3850
+ def list_keystore_search_async_invoker(self, request):
3851
+ http_info = self._list_keystore_search_http_info(request)
1878
3852
  return AsyncInvoker(self, http_info)
1879
3853
 
1880
- def _show_job_build_time_http_info(self, request):
3854
+ def _list_keystore_search_http_info(self, request):
1881
3855
  http_info = {
1882
3856
  "method": "GET",
1883
- "resource_path": "/v1/report/time",
3857
+ "resource_path": "/v2/keystore/list",
1884
3858
  "request_type": request.__class__.__name__,
1885
- "response_type": "ShowJobBuildTimeResponse"
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 CodeArtsBuildAsyncClient(Client):
1894
3868
  path_params = {}
1895
3869
 
1896
3870
  query_params = []
1897
- if 'job_id' in local_var_params:
1898
- query_params.append(('job_id', local_var_params['job_id']))
1899
- if 'repository_name' in local_var_params:
1900
- query_params.append(('repository_name', local_var_params['repository_name']))
1901
- if 'branch' in local_var_params:
1902
- query_params.append(('branch', local_var_params['branch']))
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 CodeArtsBuildAsyncClient(Client):
1929
3901
 
1930
3902
  return http_info
1931
3903
 
1932
- def show_job_config_async(self, request):
1933
- r"""获取构建任务详情
3904
+ def show_keystore_permission_async(self, request):
3905
+ r"""文件管理查询权限
1934
3906
 
1935
- 获取构建任务详情
3907
+ 文件管理查询权限
1936
3908
 
1937
3909
  Please refer to HUAWEI cloud API Explorer for details.
1938
3910
 
1939
3911
 
1940
- :param request: Request instance for ShowJobConfig
1941
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigRequest`
1942
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigResponse`
3912
+ :param request: Request instance for ShowKeystorePermission
3913
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowKeystorePermissionRequest`
3914
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowKeystorePermissionResponse`
1943
3915
  """
1944
- http_info = self._show_job_config_http_info(request)
3916
+ http_info = self._show_keystore_permission_http_info(request)
1945
3917
  return self._call_api(**http_info)
1946
3918
 
1947
- def show_job_config_async_invoker(self, request):
1948
- http_info = self._show_job_config_http_info(request)
3919
+ def show_keystore_permission_async_invoker(self, request):
3920
+ http_info = self._show_keystore_permission_http_info(request)
1949
3921
  return AsyncInvoker(self, http_info)
1950
3922
 
1951
- def _show_job_config_http_info(self, request):
3923
+ def _show_keystore_permission_http_info(self, request):
1952
3924
  http_info = {
1953
3925
  "method": "GET",
1954
- "resource_path": "/v1/job/{job_id}/config",
3926
+ "resource_path": "/v2/keystore/permission/{keystore_id}/query",
1955
3927
  "request_type": request.__class__.__name__,
1956
- "response_type": "ShowJobConfigResponse"
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 CodeArtsBuildAsyncClient(Client):
1963
3935
  collection_formats = {}
1964
3936
 
1965
3937
  path_params = {}
1966
- if 'job_id' in local_var_params:
1967
- path_params['job_id'] = local_var_params['job_id']
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 'get_all_params' in local_var_params:
1971
- query_params.append(('get_all_params', local_var_params['get_all_params']))
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 CodeArtsBuildAsyncClient(Client):
1996
3970
 
1997
3971
  return http_info
1998
3972
 
1999
- def show_job_config_diff_async(self, request):
2000
- r"""获取构建任务配置的对比差异
3973
+ def download_log_by_record_id_async(self, request):
3974
+ r"""下载构建日志(待下线)
2001
3975
 
2002
- 获取构建任务配置的对比差异
3976
+ 下载构建日志(待下线)
2003
3977
 
2004
3978
  Please refer to HUAWEI cloud API Explorer for details.
2005
3979
 
2006
3980
 
2007
- :param request: Request instance for ShowJobConfigDiff
2008
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigDiffRequest`
2009
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigDiffResponse`
3981
+ :param request: Request instance for DownloadLogByRecordId
3982
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadLogByRecordIdRequest`
3983
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadLogByRecordIdResponse`
2010
3984
  """
2011
- http_info = self._show_job_config_diff_http_info(request)
3985
+ http_info = self._download_log_by_record_id_http_info(request)
2012
3986
  return self._call_api(**http_info)
2013
3987
 
2014
- def show_job_config_diff_async_invoker(self, request):
2015
- http_info = self._show_job_config_diff_http_info(request)
3988
+ def download_log_by_record_id_async_invoker(self, request):
3989
+ http_info = self._download_log_by_record_id_http_info(request)
2016
3990
  return AsyncInvoker(self, http_info)
2017
3991
 
2018
- def _show_job_config_diff_http_info(self, request):
3992
+ def _download_log_by_record_id_http_info(self, request):
2019
3993
  http_info = {
2020
3994
  "method": "GET",
2021
- "resource_path": "/v1/job/{job_id}/diff",
3995
+ "resource_path": "/v3/{record_id}/download-log",
2022
3996
  "request_type": request.__class__.__name__,
2023
- "response_type": "ShowJobConfigDiffResponse"
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 CodeArtsBuildAsyncClient(Client):
2030
4004
  collection_formats = {}
2031
4005
 
2032
4006
  path_params = {}
2033
- if 'job_id' in local_var_params:
2034
- path_params['job_id'] = local_var_params['job_id']
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 CodeArtsBuildAsyncClient(Client):
2065
4035
 
2066
4036
  return http_info
2067
4037
 
2068
- def show_job_info_async(self, request):
2069
- r"""查看构建任务构建信息
4038
+ def show_flow_graph_async(self, request):
4039
+ r"""获取构建记录的有向无环图(待下线)
2070
4040
 
2071
- 查看构建任务构建信息
4041
+ 获取构建记录的有向无环图(待下线)
2072
4042
 
2073
4043
  Please refer to HUAWEI cloud API Explorer for details.
2074
4044
 
2075
4045
 
2076
- :param request: Request instance for ShowJobInfo
2077
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobInfoRequest`
2078
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobInfoResponse`
4046
+ :param request: Request instance for ShowFlowGraph
4047
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowFlowGraphRequest`
4048
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowFlowGraphResponse`
2079
4049
  """
2080
- http_info = self._show_job_info_http_info(request)
4050
+ http_info = self._show_flow_graph_http_info(request)
2081
4051
  return self._call_api(**http_info)
2082
4052
 
2083
- def show_job_info_async_invoker(self, request):
2084
- http_info = self._show_job_info_http_info(request)
4053
+ def show_flow_graph_async_invoker(self, request):
4054
+ http_info = self._show_flow_graph_http_info(request)
2085
4055
  return AsyncInvoker(self, http_info)
2086
4056
 
2087
- def _show_job_info_http_info(self, request):
4057
+ def _show_flow_graph_http_info(self, request):
2088
4058
  http_info = {
2089
4059
  "method": "GET",
2090
- "resource_path": "/v1/job/{job_id}/info",
4060
+ "resource_path": "/v3/{build_flow_record_id}/flow-graph",
2091
4061
  "request_type": request.__class__.__name__,
2092
- "response_type": "ShowJobInfoResponse"
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 CodeArtsBuildAsyncClient(Client):
2099
4069
  collection_formats = {}
2100
4070
 
2101
4071
  path_params = {}
2102
- if 'job_id' in local_var_params:
2103
- path_params['job_id'] = local_var_params['job_id']
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 CodeArtsBuildAsyncClient(Client):
2130
4100
 
2131
4101
  return http_info
2132
4102
 
2133
- def show_job_list_by_project_id_async(self, request):
2134
- r"""查看项目下用户的构建任务列表
4103
+ def show_record_info_async(self, request):
4104
+ r"""获取构建记录信息(待下线)
2135
4105
 
2136
- 查看项目下用户的构建任务列表
4106
+ 获取构建记录信息(待下线)
2137
4107
 
2138
4108
  Please refer to HUAWEI cloud API Explorer for details.
2139
4109
 
2140
4110
 
2141
- :param request: Request instance for ShowJobListByProjectId
2142
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdRequest`
2143
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdResponse`
4111
+ :param request: Request instance for ShowRecordInfo
4112
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRecordInfoRequest`
4113
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRecordInfoResponse`
2144
4114
  """
2145
- http_info = self._show_job_list_by_project_id_http_info(request)
4115
+ http_info = self._show_record_info_http_info(request)
2146
4116
  return self._call_api(**http_info)
2147
4117
 
2148
- def show_job_list_by_project_id_async_invoker(self, request):
2149
- http_info = self._show_job_list_by_project_id_http_info(request)
4118
+ def show_record_info_async_invoker(self, request):
4119
+ http_info = self._show_record_info_http_info(request)
2150
4120
  return AsyncInvoker(self, http_info)
2151
4121
 
2152
- def _show_job_list_by_project_id_http_info(self, request):
4122
+ def _show_record_info_http_info(self, request):
2153
4123
  http_info = {
2154
4124
  "method": "GET",
2155
- "resource_path": "/v3/{project_id}/jobs",
4125
+ "resource_path": "/v3/jobs/{job_id}/{build_no}/record-info",
2156
4126
  "request_type": request.__class__.__name__,
2157
- "response_type": "ShowJobListByProjectIdResponse"
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 CodeArtsBuildAsyncClient(Client):
2164
4134
  collection_formats = {}
2165
4135
 
2166
4136
  path_params = {}
2167
- if 'project_id' in local_var_params:
2168
- path_params['project_id'] = local_var_params['project_id']
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 CodeArtsBuildAsyncClient(Client):
2199
4167
 
2200
4168
  return http_info
2201
4169
 
2202
- def show_job_role_permission_async(self, request):
2203
- r"""获取构建任务的角色权限矩阵信息
4170
+ def stop_job_async(self, request):
4171
+ r"""停止构建任务(待下线)
2204
4172
 
2205
- 获取构建任务的角色权限矩阵信息
4173
+ 停止构建任务(待下线)
2206
4174
 
2207
4175
  Please refer to HUAWEI cloud API Explorer for details.
2208
4176
 
2209
4177
 
2210
- :param request: Request instance for ShowJobRolePermission
2211
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobRolePermissionRequest`
2212
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobRolePermissionResponse`
4178
+ :param request: Request instance for StopJob
4179
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.StopJobRequest`
4180
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.StopJobResponse`
2213
4181
  """
2214
- http_info = self._show_job_role_permission_http_info(request)
4182
+ http_info = self._stop_job_http_info(request)
2215
4183
  return self._call_api(**http_info)
2216
4184
 
2217
- def show_job_role_permission_async_invoker(self, request):
2218
- http_info = self._show_job_role_permission_http_info(request)
4185
+ def stop_job_async_invoker(self, request):
4186
+ http_info = self._stop_job_http_info(request)
2219
4187
  return AsyncInvoker(self, http_info)
2220
4188
 
2221
- def _show_job_role_permission_http_info(self, request):
4189
+ def _stop_job_http_info(self, request):
2222
4190
  http_info = {
2223
- "method": "GET",
2224
- "resource_path": "/v1/job/permission/role",
4191
+ "method": "POST",
4192
+ "resource_path": "/v3/jobs/stop",
2225
4193
  "request_type": request.__class__.__name__,
2226
- "response_type": "ShowJobRolePermissionResponse"
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
2264
4232
 
2265
4233
  return http_info
2266
4234
 
2267
- def show_job_status_async(self, request):
2268
- r"""查看任务运行状态
4235
+ def list_build_info_record_by_job_id_async(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
4242
 
2275
- :param request: Request instance for ShowJobStatus
2276
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStatusRequest`
2277
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobStatusResponse`
4243
+ :param request: Request instance for ListBuildInfoRecordByJobId
4244
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildInfoRecordByJobIdRequest`
4245
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildInfoRecordByJobIdResponse`
2278
4246
  """
2279
- http_info = self._show_job_status_http_info(request)
4247
+ http_info = self._list_build_info_record_by_job_id_http_info(request)
2280
4248
  return self._call_api(**http_info)
2281
4249
 
2282
- def show_job_status_async_invoker(self, request):
2283
- http_info = self._show_job_status_http_info(request)
4250
+ def list_build_info_record_by_job_id_async_invoker(self, request):
4251
+ http_info = self._list_build_info_record_by_job_id_http_info(request)
2284
4252
  return AsyncInvoker(self, http_info)
2285
4253
 
2286
- def _show_job_status_http_info(self, request):
4254
+ def _list_build_info_record_by_job_id_http_info(self, request):
2287
4255
  http_info = {
2288
4256
  "method": "GET",
2289
- "resource_path": "/v3/jobs/{job_id}/status",
4257
+ "resource_path": "/v1/record/{job_id}/list",
2290
4258
  "request_type": request.__class__.__name__,
2291
- "response_type": "ShowJobStatusResponse"
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
2329
4305
 
2330
4306
  return http_info
2331
4307
 
2332
- def show_job_success_ratio_async(self, request):
2333
- r"""根据开始时间和结束时间查看构建任务的构建成功率
4308
+ def list_records_async(self, request):
4309
+ r"""获取指定工程的构建记录列表
2334
4310
 
2335
- 根据开始时间和结束时间查看构建任务的构建成功率
4311
+ 获取指定工程的构建记录列表
2336
4312
 
2337
4313
  Please refer to HUAWEI cloud API Explorer for details.
2338
4314
 
2339
4315
 
2340
- :param request: Request instance for ShowJobSuccessRatio
2341
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSuccessRatioRequest`
2342
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSuccessRatioResponse`
4316
+ :param request: Request instance for ListRecords
4317
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecordsRequest`
4318
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecordsResponse`
2343
4319
  """
2344
- http_info = self._show_job_success_ratio_http_info(request)
4320
+ http_info = self._list_records_http_info(request)
2345
4321
  return self._call_api(**http_info)
2346
4322
 
2347
- def show_job_success_ratio_async_invoker(self, request):
2348
- http_info = self._show_job_success_ratio_http_info(request)
4323
+ def list_records_async_invoker(self, request):
4324
+ http_info = self._list_records_http_info(request)
2349
4325
  return AsyncInvoker(self, http_info)
2350
4326
 
2351
- def _show_job_success_ratio_http_info(self, request):
4327
+ def _list_records_http_info(self, request):
2352
4328
  http_info = {
2353
4329
  "method": "GET",
2354
- "resource_path": "/v3/jobs/{job_id}/success-ratio",
4330
+ "resource_path": "/v1/record/{build_project_id}/records",
2355
4331
  "request_type": request.__class__.__name__,
2356
- "response_type": "ShowJobSuccessRatioResponse"
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 CodeArtsBuildAsyncClient(Client):
2363
4339
  collection_formats = {}
2364
4340
 
2365
4341
  path_params = {}
2366
- if 'job_id' in local_var_params:
2367
- path_params['job_id'] = local_var_params['job_id']
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 'start_time' in local_var_params:
2371
- query_params.append(('start_time', local_var_params['start_time']))
2372
- if 'end_time' in local_var_params:
2373
- query_params.append(('end_time', local_var_params['end_time']))
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 CodeArtsBuildAsyncClient(Client):
2398
4387
 
2399
4388
  return http_info
2400
4389
 
2401
- def show_job_system_parameters_async(self, request):
2402
- r"""查看系统预定义参数
4390
+ def show_build_info_record_async(self, request):
4391
+ r"""获取任务构建记录列表
2403
4392
 
2404
- 查看系统预定义参数
4393
+ 获取任务构建记录列表
2405
4394
 
2406
4395
  Please refer to HUAWEI cloud API Explorer for details.
2407
4396
 
2408
4397
 
2409
- :param request: Request instance for ShowJobSystemParameters
2410
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSystemParametersRequest`
2411
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSystemParametersResponse`
4398
+ :param request: Request instance for ShowBuildInfoRecord
4399
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildInfoRecordRequest`
4400
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildInfoRecordResponse`
2412
4401
  """
2413
- http_info = self._show_job_system_parameters_http_info(request)
4402
+ http_info = self._show_build_info_record_http_info(request)
2414
4403
  return self._call_api(**http_info)
2415
4404
 
2416
- def show_job_system_parameters_async_invoker(self, request):
2417
- http_info = self._show_job_system_parameters_http_info(request)
4405
+ def show_build_info_record_async_invoker(self, request):
4406
+ http_info = self._show_build_info_record_http_info(request)
2418
4407
  return AsyncInvoker(self, http_info)
2419
4408
 
2420
- def _show_job_system_parameters_http_info(self, request):
4409
+ def _show_build_info_record_http_info(self, request):
2421
4410
  http_info = {
2422
4411
  "method": "GET",
2423
- "resource_path": "/v1/job/system-parameters",
4412
+ "resource_path": "/v1/record/{job_id}/{build_no}/build-info-record",
2424
4413
  "request_type": request.__class__.__name__,
2425
- "response_type": "ShowJobSystemParametersResponse"
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
2461
4454
 
2462
4455
  return http_info
2463
4456
 
2464
- def show_last_history_async(self, request):
2465
- r"""查询指定代码仓库最近一次成功的构建历史
4457
+ def show_build_record_async(self, request):
4458
+ r"""查询指定构建记录详情
2466
4459
 
2467
- 查询指定代码仓库最近一次成功的构建历史
4460
+ 查询指定构建记录详情
2468
4461
 
2469
4462
  Please refer to HUAWEI cloud API Explorer for details.
2470
4463
 
2471
4464
 
2472
- :param request: Request instance for ShowLastHistory
2473
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowLastHistoryRequest`
2474
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowLastHistoryResponse`
4465
+ :param request: Request instance for ShowBuildRecord
4466
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordRequest`
4467
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordResponse`
2475
4468
  """
2476
- http_info = self._show_last_history_http_info(request)
4469
+ http_info = self._show_build_record_http_info(request)
2477
4470
  return self._call_api(**http_info)
2478
4471
 
2479
- def show_last_history_async_invoker(self, request):
2480
- http_info = self._show_last_history_http_info(request)
4472
+ def show_build_record_async_invoker(self, request):
4473
+ http_info = self._show_build_record_http_info(request)
2481
4474
  return AsyncInvoker(self, http_info)
2482
4475
 
2483
- def _show_last_history_http_info(self, request):
4476
+ def _show_build_record_http_info(self, request):
2484
4477
  http_info = {
2485
4478
  "method": "GET",
2486
- "resource_path": "/v3/jobs/{project_id}/last-history",
4479
+ "resource_path": "/v1/record/{record_id}/info",
2487
4480
  "request_type": request.__class__.__name__,
2488
- "response_type": "ShowLastHistoryResponse"
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 CodeArtsBuildAsyncClient(Client):
2495
4488
  collection_formats = {}
2496
4489
 
2497
4490
  path_params = {}
2498
- if 'project_id' in local_var_params:
2499
- path_params['project_id'] = local_var_params['project_id']
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 CodeArtsBuildAsyncClient(Client):
2528
4519
 
2529
4520
  return http_info
2530
4521
 
2531
- def show_list_history_async(self, request):
2532
- r"""查看构建任务的构建历史列表
4522
+ def show_build_record_build_script_async(self, request):
4523
+ r"""获取构建记录的构建脚本
2533
4524
 
2534
- 查看构建任务的构建历史列表
4525
+ 获取构建记录的构建脚本
2535
4526
 
2536
4527
  Please refer to HUAWEI cloud API Explorer for details.
2537
4528
 
2538
4529
 
2539
- :param request: Request instance for ShowListHistory
2540
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowListHistoryRequest`
2541
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowListHistoryResponse`
4530
+ :param request: Request instance for ShowBuildRecordBuildScript
4531
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordBuildScriptRequest`
4532
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordBuildScriptResponse`
2542
4533
  """
2543
- http_info = self._show_list_history_http_info(request)
4534
+ http_info = self._show_build_record_build_script_http_info(request)
2544
4535
  return self._call_api(**http_info)
2545
4536
 
2546
- def show_list_history_async_invoker(self, request):
2547
- http_info = self._show_list_history_http_info(request)
4537
+ def show_build_record_build_script_async_invoker(self, request):
4538
+ http_info = self._show_build_record_build_script_http_info(request)
2548
4539
  return AsyncInvoker(self, http_info)
2549
4540
 
2550
- def _show_list_history_http_info(self, request):
4541
+ def _show_build_record_build_script_http_info(self, request):
2551
4542
  http_info = {
2552
4543
  "method": "GET",
2553
- "resource_path": "/v3/jobs/{job_id}/history",
4544
+ "resource_path": "/v1/record/{record_id}/build-script",
2554
4545
  "request_type": request.__class__.__name__,
2555
- "response_type": "ShowListHistoryResponse"
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 CodeArtsBuildAsyncClient(Client):
2562
4553
  collection_formats = {}
2563
4554
 
2564
4555
  path_params = {}
2565
- if 'job_id' in local_var_params:
2566
- path_params['job_id'] = local_var_params['job_id']
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 CodeArtsBuildAsyncClient(Client):
2599
4584
 
2600
4585
  return http_info
2601
4586
 
2602
- def show_list_period_history_async(self, request):
2603
- r"""根据开始时间和结束时间查看构建任务的构建历史列表
4587
+ def show_build_record_flow_graph_async(self, request):
4588
+ r"""获取构建记录的有向无环图
2604
4589
 
2605
- 根据开始时间和结束时间查看构建任务的构建历史列表
4590
+ 获取构建记录的有向无环图
2606
4591
 
2607
4592
  Please refer to HUAWEI cloud API Explorer for details.
2608
4593
 
2609
4594
 
2610
- :param request: Request instance for ShowListPeriodHistory
2611
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowListPeriodHistoryRequest`
2612
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowListPeriodHistoryResponse`
4595
+ :param request: Request instance for ShowBuildRecordFlowGraph
4596
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFlowGraphRequest`
4597
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFlowGraphResponse`
2613
4598
  """
2614
- http_info = self._show_list_period_history_http_info(request)
4599
+ http_info = self._show_build_record_flow_graph_http_info(request)
2615
4600
  return self._call_api(**http_info)
2616
4601
 
2617
- def show_list_period_history_async_invoker(self, request):
2618
- http_info = self._show_list_period_history_http_info(request)
4602
+ def show_build_record_flow_graph_async_invoker(self, request):
4603
+ http_info = self._show_build_record_flow_graph_http_info(request)
2619
4604
  return AsyncInvoker(self, http_info)
2620
4605
 
2621
- def _show_list_period_history_http_info(self, request):
4606
+ def _show_build_record_flow_graph_http_info(self, request):
2622
4607
  http_info = {
2623
4608
  "method": "GET",
2624
- "resource_path": "/v3/jobs/{job_id}/period-history",
4609
+ "resource_path": "/v1/record/{build_flow_record_id}/flow-graph",
2625
4610
  "request_type": request.__class__.__name__,
2626
- "response_type": "ShowListPeriodHistoryResponse"
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 CodeArtsBuildAsyncClient(Client):
2633
4618
  collection_formats = {}
2634
4619
 
2635
4620
  path_params = {}
2636
- if 'job_id' in local_var_params:
2637
- path_params['job_id'] = local_var_params['job_id']
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 CodeArtsBuildAsyncClient(Client):
2672
4649
 
2673
4650
  return http_info
2674
4651
 
2675
- def show_output_info_async(self, request):
2676
- r"""获取构建产物详情信息
4652
+ def show_build_record_full_stages_async(self, request):
4653
+ r"""获取任务各阶段信息
2677
4654
 
2678
- 获取构建产物详情信息
4655
+ 获取任务各阶段信息
2679
4656
 
2680
4657
  Please refer to HUAWEI cloud API Explorer for details.
2681
4658
 
2682
4659
 
2683
- :param request: Request instance for ShowOutputInfo
2684
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowOutputInfoRequest`
2685
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowOutputInfoResponse`
4660
+ :param request: Request instance for ShowBuildRecordFullStages
4661
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesRequest`
4662
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesResponse`
2686
4663
  """
2687
- http_info = self._show_output_info_http_info(request)
4664
+ http_info = self._show_build_record_full_stages_http_info(request)
2688
4665
  return self._call_api(**http_info)
2689
4666
 
2690
- def show_output_info_async_invoker(self, request):
2691
- http_info = self._show_output_info_http_info(request)
4667
+ def show_build_record_full_stages_async_invoker(self, request):
4668
+ http_info = self._show_build_record_full_stages_http_info(request)
2692
4669
  return AsyncInvoker(self, http_info)
2693
4670
 
2694
- def _show_output_info_http_info(self, request):
4671
+ def _show_build_record_full_stages_http_info(self, request):
2695
4672
  http_info = {
2696
4673
  "method": "GET",
2697
- "resource_path": "/v3/jobs/{job_id}/{build_no}/output-info",
4674
+ "resource_path": "/v1/record/{record_id}/full-stages",
2698
4675
  "request_type": request.__class__.__name__,
2699
- "response_type": "ShowOutputInfoResponse"
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 CodeArtsBuildAsyncClient(Client):
2706
4683
  collection_formats = {}
2707
4684
 
2708
4685
  path_params = {}
2709
- if 'job_id' in local_var_params:
2710
- path_params['job_id'] = local_var_params['job_id']
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 CodeArtsBuildAsyncClient(Client):
2739
4716
 
2740
4717
  return http_info
2741
4718
 
2742
- def show_project_permission_async(self, request):
2743
- r"""获取用户权限
4719
+ def show_job_build_record_detail_async(self, request):
4720
+ r"""获取构建记录信息
2744
4721
 
2745
- 获取用户权限
4722
+ 获取构建记录信息
2746
4723
 
2747
4724
  Please refer to HUAWEI cloud API Explorer for details.
2748
4725
 
2749
4726
 
2750
- :param request: Request instance for ShowProjectPermission
2751
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionRequest`
2752
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionResponse`
4727
+ :param request: Request instance for ShowJobBuildRecordDetail
4728
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildRecordDetailRequest`
4729
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildRecordDetailResponse`
2753
4730
  """
2754
- http_info = self._show_project_permission_http_info(request)
4731
+ http_info = self._show_job_build_record_detail_http_info(request)
2755
4732
  return self._call_api(**http_info)
2756
4733
 
2757
- def show_project_permission_async_invoker(self, request):
2758
- http_info = self._show_project_permission_http_info(request)
4734
+ def show_job_build_record_detail_async_invoker(self, request):
4735
+ http_info = self._show_job_build_record_detail_http_info(request)
2759
4736
  return AsyncInvoker(self, http_info)
2760
4737
 
2761
- def _show_project_permission_http_info(self, request):
4738
+ def _show_job_build_record_detail_http_info(self, request):
2762
4739
  http_info = {
2763
4740
  "method": "GET",
2764
- "resource_path": "/v1/domain/user-permission",
4741
+ "resource_path": "/v1/record/{job_id}/{build_no}/record-info",
2765
4742
  "request_type": request.__class__.__name__,
2766
- "response_type": "ShowProjectPermissionResponse"
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
2804
4783
 
2805
4784
  return http_info
2806
4785
 
2807
- def show_record_detail_async(self, request):
2808
- r"""获取构建记录信息
4786
+ def show_job_total_async(self, request):
4787
+ r"""构建历史页获取构建次数
2809
4788
 
2810
- 获取构建记录信息
4789
+ 构建历史页获取构建次数
2811
4790
 
2812
4791
  Please refer to HUAWEI cloud API Explorer for details.
2813
4792
 
2814
4793
 
2815
- :param request: Request instance for ShowRecordDetail
2816
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRecordDetailRequest`
2817
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRecordDetailResponse`
4794
+ :param request: Request instance for ShowJobTotal
4795
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobTotalRequest`
4796
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobTotalResponse`
2818
4797
  """
2819
- http_info = self._show_record_detail_http_info(request)
4798
+ http_info = self._show_job_total_http_info(request)
2820
4799
  return self._call_api(**http_info)
2821
4800
 
2822
- def show_record_detail_async_invoker(self, request):
2823
- http_info = self._show_record_detail_http_info(request)
4801
+ def show_job_total_async_invoker(self, request):
4802
+ http_info = self._show_job_total_http_info(request)
2824
4803
  return AsyncInvoker(self, http_info)
2825
4804
 
2826
- def _show_record_detail_http_info(self, request):
4805
+ def _show_job_total_http_info(self, request):
2827
4806
  http_info = {
2828
4807
  "method": "GET",
2829
- "resource_path": "/v4/jobs/{job_id}/{build_no}/record-info",
4808
+ "resource_path": "/v1/record/{build_project_id}/statistics",
2830
4809
  "request_type": request.__class__.__name__,
2831
- "response_type": "ShowRecordDetailResponse"
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 CodeArtsBuildAsyncClient(Client):
2838
4817
  collection_formats = {}
2839
4818
 
2840
4819
  path_params = {}
2841
- if 'job_id' in local_var_params:
2842
- path_params['job_id'] = local_var_params['job_id']
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 CodeArtsBuildAsyncClient(Client):
2871
4852
 
2872
4853
  return http_info
2873
4854
 
2874
- def show_report_summary_async(self, request):
2875
- r"""获取覆盖率接口
4855
+ def download_junit_coverage_zip_async(self, request):
4856
+ r"""获取单元测试覆盖率报告压缩包
2876
4857
 
2877
- 获取覆盖率接口
4858
+ 获取单元测试覆盖率报告压缩包
2878
4859
 
2879
4860
  Please refer to HUAWEI cloud API Explorer for details.
2880
-
2881
-
2882
- :param request: Request instance for ShowReportSummary
2883
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowReportSummaryRequest`
2884
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowReportSummaryResponse`
4861
+
4862
+
4863
+ :param request: Request instance for DownloadJunitCoverageZip
4864
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadJunitCoverageZipRequest`
4865
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadJunitCoverageZipResponse`
2885
4866
  """
2886
- http_info = self._show_report_summary_http_info(request)
4867
+ http_info = self._download_junit_coverage_zip_http_info(request)
2887
4868
  return self._call_api(**http_info)
2888
4869
 
2889
- def show_report_summary_async_invoker(self, request):
2890
- http_info = self._show_report_summary_http_info(request)
4870
+ def download_junit_coverage_zip_async_invoker(self, request):
4871
+ http_info = self._download_junit_coverage_zip_http_info(request)
2891
4872
  return AsyncInvoker(self, http_info)
2892
4873
 
2893
- def _show_report_summary_http_info(self, request):
4874
+ def _download_junit_coverage_zip_http_info(self, request):
2894
4875
  http_info = {
2895
4876
  "method": "GET",
2896
- "resource_path": "/v1/report/{job_id}/summary",
4877
+ "resource_path": "/v1/report/junit/coverage/download",
2897
4878
  "request_type": request.__class__.__name__,
2898
- "response_type": "ShowReportSummaryResponse"
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
2938
4921
 
2939
4922
  return http_info
2940
4923
 
2941
- def show_running_status_async(self, request):
2942
- r"""查看任务是否在构建
4924
+ def list_junit_coverage_summary_async(self, request):
4925
+ r"""获取单元测试覆盖率报告列表
2943
4926
 
2944
- 查看任务是否在构建
4927
+ 获取单元测试覆盖率报告列表
2945
4928
 
2946
4929
  Please refer to HUAWEI cloud API Explorer for details.
2947
4930
 
2948
4931
 
2949
- :param request: Request instance for ShowRunningStatus
2950
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRunningStatusRequest`
2951
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRunningStatusResponse`
4932
+ :param request: Request instance for ListJunitCoverageSummary
4933
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListJunitCoverageSummaryRequest`
4934
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListJunitCoverageSummaryResponse`
2952
4935
  """
2953
- http_info = self._show_running_status_http_info(request)
4936
+ http_info = self._list_junit_coverage_summary_http_info(request)
2954
4937
  return self._call_api(**http_info)
2955
4938
 
2956
- def show_running_status_async_invoker(self, request):
2957
- http_info = self._show_running_status_http_info(request)
4939
+ def list_junit_coverage_summary_async_invoker(self, request):
4940
+ http_info = self._list_junit_coverage_summary_http_info(request)
2958
4941
  return AsyncInvoker(self, http_info)
2959
4942
 
2960
- def _show_running_status_http_info(self, request):
4943
+ def _list_junit_coverage_summary_http_info(self, request):
2961
4944
  http_info = {
2962
4945
  "method": "GET",
2963
- "resource_path": "/v1/job/{job_id}/running-status",
4946
+ "resource_path": "/v1/report/junit/coverage/list",
2964
4947
  "request_type": request.__class__.__name__,
2965
- "response_type": "ShowRunningStatusResponse"
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
3003
4988
 
3004
4989
  return http_info
3005
4990
 
3006
- def show_yaml_template_async(self, request):
3007
- r"""获取代码化构建默认模板
4991
+ def list_repo_branch_async(self, request):
4992
+ r"""获取该任务所有分支信息
3008
4993
 
3009
- 获取代码化构建默认模板
4994
+ 获取该任务所有分支信息
3010
4995
 
3011
4996
  Please refer to HUAWEI cloud API Explorer for details.
3012
4997
 
3013
4998
 
3014
- :param request: Request instance for ShowYamlTemplate
3015
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowYamlTemplateRequest`
3016
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowYamlTemplateResponse`
4999
+ :param request: Request instance for ListRepoBranch
5000
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRepoBranchRequest`
5001
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRepoBranchResponse`
3017
5002
  """
3018
- http_info = self._show_yaml_template_http_info(request)
5003
+ http_info = self._list_repo_branch_http_info(request)
3019
5004
  return self._call_api(**http_info)
3020
5005
 
3021
- def show_yaml_template_async_invoker(self, request):
3022
- http_info = self._show_yaml_template_http_info(request)
5006
+ def list_repo_branch_async_invoker(self, request):
5007
+ http_info = self._list_repo_branch_http_info(request)
3023
5008
  return AsyncInvoker(self, http_info)
3024
5009
 
3025
- def _show_yaml_template_http_info(self, request):
5010
+ def _list_repo_branch_http_info(self, request):
3026
5011
  http_info = {
3027
5012
  "method": "GET",
3028
- "resource_path": "/v1/template/{job_id}/default-template",
5013
+ "resource_path": "/v1/report/branches",
3029
5014
  "request_type": request.__class__.__name__,
3030
- "response_type": "ShowYamlTemplateResponse"
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 CodeArtsBuildAsyncClient(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 'default_host' in local_var_params:
3045
- query_params.append(('default_host', local_var_params['default_host']))
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 CodeArtsBuildAsyncClient(Client):
3070
5055
 
3071
5056
  return http_info
3072
5057
 
3073
- def stop_build_job_async(self, request):
3074
- r"""停止构建任务
5058
+ def list_repository_async(self, request):
5059
+ r"""查看仓库
3075
5060
 
3076
- 停止构建任务
5061
+ 查看仓库
3077
5062
 
3078
5063
  Please refer to HUAWEI cloud API Explorer for details.
3079
5064
 
3080
5065
 
3081
- :param request: Request instance for StopBuildJob
3082
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.StopBuildJobRequest`
3083
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.StopBuildJobResponse`
5066
+ :param request: Request instance for ListRepository
5067
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRepositoryRequest`
5068
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRepositoryResponse`
3084
5069
  """
3085
- http_info = self._stop_build_job_http_info(request)
5070
+ http_info = self._list_repository_http_info(request)
3086
5071
  return self._call_api(**http_info)
3087
5072
 
3088
- def stop_build_job_async_invoker(self, request):
3089
- http_info = self._stop_build_job_http_info(request)
5073
+ def list_repository_async_invoker(self, request):
5074
+ http_info = self._list_repository_http_info(request)
3090
5075
  return AsyncInvoker(self, http_info)
3091
5076
 
3092
- def _stop_build_job_http_info(self, request):
5077
+ def _list_repository_http_info(self, request):
3093
5078
  http_info = {
3094
- "method": "POST",
3095
- "resource_path": "/v3/jobs/{job_id}/{build_no}/stop",
5079
+ "method": "GET",
5080
+ "resource_path": "/v1/report/{job_id}/repositories",
3096
5081
  "request_type": request.__class__.__name__,
3097
- "response_type": "StopBuildJobResponse"
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
3137
5120
 
3138
5121
  return http_info
3139
5122
 
3140
- def update_build_job_async(self, request):
3141
- r"""更新构建任务
5123
+ def show_job_build_success_ratio_async(self, request):
5124
+ r"""查询构建成功率
3142
5125
 
3143
- 更新构建任务
5126
+ 查询构建成功率
3144
5127
 
3145
5128
  Please refer to HUAWEI cloud API Explorer for details.
3146
5129
 
3147
5130
 
3148
- :param request: Request instance for UpdateBuildJob
3149
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateBuildJobRequest`
3150
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateBuildJobResponse`
5131
+ :param request: Request instance for ShowJobBuildSuccessRatio
5132
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioRequest`
5133
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioResponse`
3151
5134
  """
3152
- http_info = self._update_build_job_http_info(request)
5135
+ http_info = self._show_job_build_success_ratio_http_info(request)
3153
5136
  return self._call_api(**http_info)
3154
5137
 
3155
- def update_build_job_async_invoker(self, request):
3156
- http_info = self._update_build_job_http_info(request)
5138
+ def show_job_build_success_ratio_async_invoker(self, request):
5139
+ http_info = self._show_job_build_success_ratio_http_info(request)
3157
5140
  return AsyncInvoker(self, http_info)
3158
5141
 
3159
- def _update_build_job_http_info(self, request):
5142
+ def _show_job_build_success_ratio_http_info(self, request):
3160
5143
  http_info = {
3161
- "method": "POST",
3162
- "resource_path": "/v3/jobs/update",
5144
+ "method": "GET",
5145
+ "resource_path": "/v1/report/ratio",
3163
5146
  "request_type": request.__class__.__name__,
3164
- "response_type": "UpdateBuildJobResponse"
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
3202
5191
 
3203
5192
  return http_info
3204
5193
 
3205
- def update_notice_async(self, request):
3206
- r"""更新通知
5194
+ def show_job_build_time_async(self, request):
5195
+ r"""洞察构建时长
3207
5196
 
3208
- 更新通知
5197
+ 洞察构建时长
3209
5198
 
3210
5199
  Please refer to HUAWEI cloud API Explorer for details.
3211
5200
 
3212
5201
 
3213
- :param request: Request instance for UpdateNotice
3214
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateNoticeRequest`
3215
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateNoticeResponse`
5202
+ :param request: Request instance for ShowJobBuildTime
5203
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeRequest`
5204
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeResponse`
3216
5205
  """
3217
- http_info = self._update_notice_http_info(request)
5206
+ http_info = self._show_job_build_time_http_info(request)
3218
5207
  return self._call_api(**http_info)
3219
5208
 
3220
- def update_notice_async_invoker(self, request):
3221
- http_info = self._update_notice_http_info(request)
5209
+ def show_job_build_time_async_invoker(self, request):
5210
+ http_info = self._show_job_build_time_http_info(request)
3222
5211
  return AsyncInvoker(self, http_info)
3223
5212
 
3224
- def _update_notice_http_info(self, request):
5213
+ def _show_job_build_time_http_info(self, request):
3225
5214
  http_info = {
3226
- "method": "POST",
3227
- "resource_path": "/v3/jobs/notice/{job_id}/update",
5215
+ "method": "GET",
5216
+ "resource_path": "/v1/report/time",
3228
5217
  "request_type": request.__class__.__name__,
3229
- "response_type": "UpdateNoticeResponse"
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
3269
5262
 
3270
5263
  return http_info
3271
5264
 
3272
- def download_log_by_record_id_async(self, request):
3273
- r"""下载构建日志(待下线)
5265
+ def show_report_summary_async(self, request):
5266
+ r"""获取覆盖率接口
3274
5267
 
3275
- 下载构建日志(待下线)
5268
+ 获取覆盖率接口
3276
5269
 
3277
5270
  Please refer to HUAWEI cloud API Explorer for details.
3278
5271
 
3279
5272
 
3280
- :param request: Request instance for DownloadLogByRecordId
3281
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadLogByRecordIdRequest`
3282
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.DownloadLogByRecordIdResponse`
5273
+ :param request: Request instance for ShowReportSummary
5274
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowReportSummaryRequest`
5275
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowReportSummaryResponse`
3283
5276
  """
3284
- http_info = self._download_log_by_record_id_http_info(request)
5277
+ http_info = self._show_report_summary_http_info(request)
3285
5278
  return self._call_api(**http_info)
3286
5279
 
3287
- def download_log_by_record_id_async_invoker(self, request):
3288
- http_info = self._download_log_by_record_id_http_info(request)
5280
+ def show_report_summary_async_invoker(self, request):
5281
+ http_info = self._show_report_summary_http_info(request)
3289
5282
  return AsyncInvoker(self, http_info)
3290
5283
 
3291
- def _download_log_by_record_id_http_info(self, request):
5284
+ def _show_report_summary_http_info(self, request):
3292
5285
  http_info = {
3293
5286
  "method": "GET",
3294
- "resource_path": "/v3/{record_id}/download-log",
5287
+ "resource_path": "/v1/report/{job_id}/summary",
3295
5288
  "request_type": request.__class__.__name__,
3296
- "response_type": "DownloadLogByRecordIdResponse"
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 CodeArtsBuildAsyncClient(Client):
3303
5296
  collection_formats = {}
3304
5297
 
3305
5298
  path_params = {}
3306
- if 'record_id' in local_var_params:
3307
- path_params['record_id'] = local_var_params['record_id']
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 CodeArtsBuildAsyncClient(Client):
3334
5329
 
3335
5330
  return http_info
3336
5331
 
3337
- def show_flow_graph_async(self, request):
3338
- r"""获取构建记录的有向无环图(待下线)
5332
+ def list_custom_template_async(self, request):
5333
+ r"""根据条件查询特定模板
3339
5334
 
3340
- 获取构建记录的有向无环图(待下线)
5335
+ 根据条件查询特定模板
3341
5336
 
3342
5337
  Please refer to HUAWEI cloud API Explorer for details.
3343
5338
 
3344
5339
 
3345
- :param request: Request instance for ShowFlowGraph
3346
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowFlowGraphRequest`
3347
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowFlowGraphResponse`
5340
+ :param request: Request instance for ListCustomTemplate
5341
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListCustomTemplateRequest`
5342
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListCustomTemplateResponse`
3348
5343
  """
3349
- http_info = self._show_flow_graph_http_info(request)
5344
+ http_info = self._list_custom_template_http_info(request)
3350
5345
  return self._call_api(**http_info)
3351
5346
 
3352
- def show_flow_graph_async_invoker(self, request):
3353
- http_info = self._show_flow_graph_http_info(request)
5347
+ def list_custom_template_async_invoker(self, request):
5348
+ http_info = self._list_custom_template_http_info(request)
3354
5349
  return AsyncInvoker(self, http_info)
3355
5350
 
3356
- def _show_flow_graph_http_info(self, request):
5351
+ def _list_custom_template_http_info(self, request):
3357
5352
  http_info = {
3358
5353
  "method": "GET",
3359
- "resource_path": "/v3/{build_flow_record_id}/flow-graph",
5354
+ "resource_path": "/v1/template/custom",
3360
5355
  "request_type": request.__class__.__name__,
3361
- "response_type": "ShowFlowGraphResponse"
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
3399
5402
 
3400
5403
  return http_info
3401
5404
 
3402
- def show_record_info_async(self, request):
3403
- r"""获取构建记录信息(待下线)
5405
+ def list_official_template_async(self, request):
5406
+ r"""查询官方模版
3404
5407
 
3405
- 获取构建记录信息(待下线)
5408
+ 查询官方模版
3406
5409
 
3407
5410
  Please refer to HUAWEI cloud API Explorer for details.
3408
5411
 
3409
5412
 
3410
- :param request: Request instance for ShowRecordInfo
3411
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRecordInfoRequest`
3412
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowRecordInfoResponse`
5413
+ :param request: Request instance for ListOfficialTemplate
5414
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListOfficialTemplateRequest`
5415
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListOfficialTemplateResponse`
3413
5416
  """
3414
- http_info = self._show_record_info_http_info(request)
5417
+ http_info = self._list_official_template_http_info(request)
3415
5418
  return self._call_api(**http_info)
3416
5419
 
3417
- def show_record_info_async_invoker(self, request):
3418
- http_info = self._show_record_info_http_info(request)
5420
+ def list_official_template_async_invoker(self, request):
5421
+ http_info = self._list_official_template_http_info(request)
3419
5422
  return AsyncInvoker(self, http_info)
3420
5423
 
3421
- def _show_record_info_http_info(self, request):
5424
+ def _list_official_template_http_info(self, request):
3422
5425
  http_info = {
3423
5426
  "method": "GET",
3424
- "resource_path": "/v3/jobs/{job_id}/{build_no}/record-info",
5427
+ "resource_path": "/v1/template/officialtemplates",
3425
5428
  "request_type": request.__class__.__name__,
3426
- "response_type": "ShowRecordInfoResponse"
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 CodeArtsBuildAsyncClient(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 CodeArtsBuildAsyncClient(Client):
3466
5471
 
3467
5472
  return http_info
3468
5473
 
3469
- def stop_job_async(self, request):
3470
- r"""停止构建任务(待下线)
5474
+ def show_yaml_template_async(self, request):
5475
+ r"""获取代码化构建默认模板
3471
5476
 
3472
- 停止构建任务(待下线)
5477
+ 获取代码化构建默认模板
3473
5478
 
3474
5479
  Please refer to HUAWEI cloud API Explorer for details.
3475
5480
 
3476
5481
 
3477
- :param request: Request instance for StopJob
3478
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.StopJobRequest`
3479
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.StopJobResponse`
5482
+ :param request: Request instance for ShowYamlTemplate
5483
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowYamlTemplateRequest`
5484
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowYamlTemplateResponse`
3480
5485
  """
3481
- http_info = self._stop_job_http_info(request)
5486
+ http_info = self._show_yaml_template_http_info(request)
3482
5487
  return self._call_api(**http_info)
3483
5488
 
3484
- def stop_job_async_invoker(self, request):
3485
- http_info = self._stop_job_http_info(request)
5489
+ def show_yaml_template_async_invoker(self, request):
5490
+ http_info = self._show_yaml_template_http_info(request)
3486
5491
  return AsyncInvoker(self, http_info)
3487
5492
 
3488
- def _stop_job_http_info(self, request):
5493
+ def _show_yaml_template_http_info(self, request):
3489
5494
  http_info = {
3490
- "method": "POST",
3491
- "resource_path": "/v3/jobs/stop",
5495
+ "method": "GET",
5496
+ "resource_path": "/v1/template/{job_id}/default-template",
3492
5497
  "request_type": request.__class__.__name__,
3493
- "response_type": "StopJobResponse"
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 CodeArtsBuildAsyncClient(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