huaweicloudsdkcodeartsbuild 3.1.149__py2.py3-none-any.whl → 3.1.150__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 (59) hide show
  1. huaweicloudsdkcodeartsbuild/v3/__init__.py +50 -0
  2. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1120 -105
  3. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1120 -105
  4. huaweicloudsdkcodeartsbuild/v3/model/__init__.py +50 -0
  5. huaweicloudsdkcodeartsbuild/v3/model/build_params.py +173 -0
  6. huaweicloudsdkcodeartsbuild/v3/model/build_params_body_result.py +115 -0
  7. huaweicloudsdkcodeartsbuild/v3/model/build_record.py +981 -0
  8. huaweicloudsdkcodeartsbuild/v3/model/build_record_build_record_type.py +202 -0
  9. huaweicloudsdkcodeartsbuild/v3/model/build_record_parameters.py +202 -0
  10. huaweicloudsdkcodeartsbuild/v3/model/constraints.py +173 -0
  11. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_request.py +228 -0
  12. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_response.py +170 -0
  13. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_request.py +173 -0
  14. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_response.py +170 -0
  15. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_result.py +144 -0
  16. huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_request.py +373 -0
  17. huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_response.py +145 -0
  18. huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_request.py +173 -0
  19. huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_response.py +228 -0
  20. huaweicloudsdkcodeartsbuild/v3/model/parameter.py +144 -0
  21. huaweicloudsdkcodeartsbuild/v3/model/params.py +289 -0
  22. huaweicloudsdkcodeartsbuild/v3/model/recycling_job.py +347 -0
  23. huaweicloudsdkcodeartsbuild/v3/model/recycling_jobs_result.py +173 -0
  24. huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_request.py +84 -0
  25. huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_response.py +170 -0
  26. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_request.py +114 -0
  27. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_response.py +174 -0
  28. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_request.py +114 -0
  29. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_response.py +170 -0
  30. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_request.py +84 -0
  31. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response.py +170 -0
  32. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result.py +115 -0
  33. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result_image_templates.py +318 -0
  34. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_request.py +199 -0
  35. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_response.py +141 -0
  36. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result.py +231 -0
  37. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result_chart.py +202 -0
  38. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_request.py +170 -0
  39. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_response.py +145 -0
  40. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_request.py +143 -0
  41. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_response.py +170 -0
  42. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_request.py +114 -0
  43. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_response.py +170 -0
  44. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_result.py +724 -0
  45. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_request.py +114 -0
  46. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_response.py +145 -0
  47. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_result.py +492 -0
  48. huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_request.py +84 -0
  49. huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_response.py +174 -0
  50. huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_request.py +114 -0
  51. huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_response.py +170 -0
  52. huaweicloudsdkcodeartsbuild/v3/model/show_user_project_permission_result.py +260 -0
  53. huaweicloudsdkcodeartsbuild/v3/model/system_parameters_result.py +173 -0
  54. huaweicloudsdkcodeartsbuild/v3/model/template_list.py +459 -0
  55. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/METADATA +2 -2
  56. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/RECORD +59 -9
  57. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/LICENSE +0 -0
  58. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/WHEEL +0 -0
  59. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/top_level.txt +0 -0
@@ -837,6 +837,79 @@ 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
842
+
843
+ 获取任务构建记录列表v1
844
+
845
+ Please refer to HUAWEI cloud API Explorer for details.
846
+
847
+
848
+ :param request: Request instance for ListBuildInfoRecordByJobId
849
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildInfoRecordByJobIdRequest`
850
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListBuildInfoRecordByJobIdResponse`
851
+ """
852
+ http_info = self._list_build_info_record_by_job_id_http_info(request)
853
+ return self._call_api(**http_info)
854
+
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)
857
+ return AsyncInvoker(self, http_info)
858
+
859
+ def _list_build_info_record_by_job_id_http_info(self, request):
860
+ http_info = {
861
+ "method": "GET",
862
+ "resource_path": "/v1/record/{job_id}/list",
863
+ "request_type": request.__class__.__name__,
864
+ "response_type": "ListBuildInfoRecordByJobIdResponse"
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 '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
+
887
+ header_params = {}
888
+
889
+ form_params = {}
890
+
891
+ body = None
892
+ if isinstance(request, SdkStreamRequest):
893
+ body = request.get_file_stream()
894
+
895
+ response_headers = []
896
+
897
+ header_params['Content-Type'] = http_utils.select_header_content_type(
898
+ ['application/json'])
899
+
900
+ auth_settings = ['apig-auth-iam']
901
+
902
+ http_info["cname"] = cname
903
+ http_info["collection_formats"] = collection_formats
904
+ http_info["path_params"] = path_params
905
+ http_info["query_params"] = query_params
906
+ http_info["header_params"] = header_params
907
+ http_info["post_params"] = form_params
908
+ http_info["body"] = body
909
+ http_info["response_headers"] = response_headers
910
+
911
+ return http_info
912
+
840
913
  def list_job_config_async(self, request):
841
914
  r"""获取构建任务详情
842
915
 
@@ -926,9 +999,819 @@ class CodeArtsBuildAsyncClient(Client):
926
999
  def _list_notice_http_info(self, request):
927
1000
  http_info = {
928
1001
  "method": "GET",
929
- "resource_path": "/v3/jobs/notice/{job_id}/query",
1002
+ "resource_path": "/v3/jobs/notice/{job_id}/query",
1003
+ "request_type": request.__class__.__name__,
1004
+ "response_type": "ListNoticeResponse"
1005
+ }
1006
+
1007
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1008
+
1009
+ cname = None
1010
+
1011
+ collection_formats = {}
1012
+
1013
+ path_params = {}
1014
+ if 'job_id' in local_var_params:
1015
+ path_params['job_id'] = local_var_params['job_id']
1016
+
1017
+ query_params = []
1018
+
1019
+ header_params = {}
1020
+
1021
+ form_params = {}
1022
+
1023
+ body = None
1024
+ if isinstance(request, SdkStreamRequest):
1025
+ body = request.get_file_stream()
1026
+
1027
+ response_headers = []
1028
+
1029
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1030
+ ['application/json'])
1031
+
1032
+ auth_settings = ['apig-auth-iam']
1033
+
1034
+ http_info["cname"] = cname
1035
+ http_info["collection_formats"] = collection_formats
1036
+ http_info["path_params"] = path_params
1037
+ http_info["query_params"] = query_params
1038
+ http_info["header_params"] = header_params
1039
+ http_info["post_params"] = form_params
1040
+ http_info["body"] = body
1041
+ http_info["response_headers"] = response_headers
1042
+
1043
+ return http_info
1044
+
1045
+ def list_official_template_async(self, request):
1046
+ r"""查询官方模版
1047
+
1048
+ 查询官方模版
1049
+
1050
+ Please refer to HUAWEI cloud API Explorer for details.
1051
+
1052
+
1053
+ :param request: Request instance for ListOfficialTemplate
1054
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListOfficialTemplateRequest`
1055
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListOfficialTemplateResponse`
1056
+ """
1057
+ http_info = self._list_official_template_http_info(request)
1058
+ return self._call_api(**http_info)
1059
+
1060
+ def list_official_template_async_invoker(self, request):
1061
+ http_info = self._list_official_template_http_info(request)
1062
+ return AsyncInvoker(self, http_info)
1063
+
1064
+ def _list_official_template_http_info(self, request):
1065
+ http_info = {
1066
+ "method": "GET",
1067
+ "resource_path": "/v1/template/officialtemplates",
1068
+ "request_type": request.__class__.__name__,
1069
+ "response_type": "ListOfficialTemplateResponse"
1070
+ }
1071
+
1072
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1073
+
1074
+ cname = None
1075
+
1076
+ collection_formats = {}
1077
+
1078
+ path_params = {}
1079
+
1080
+ 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']))
1087
+
1088
+ header_params = {}
1089
+
1090
+ form_params = {}
1091
+
1092
+ body = None
1093
+ if isinstance(request, SdkStreamRequest):
1094
+ body = request.get_file_stream()
1095
+
1096
+ response_headers = []
1097
+
1098
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1099
+ ['application/json'])
1100
+
1101
+ auth_settings = ['apig-auth-iam']
1102
+
1103
+ http_info["cname"] = cname
1104
+ http_info["collection_formats"] = collection_formats
1105
+ http_info["path_params"] = path_params
1106
+ http_info["query_params"] = query_params
1107
+ http_info["header_params"] = header_params
1108
+ http_info["post_params"] = form_params
1109
+ http_info["body"] = body
1110
+ http_info["response_headers"] = response_headers
1111
+
1112
+ return http_info
1113
+
1114
+ def list_project_jobs_async(self, request):
1115
+ r"""查询项目任务列表
1116
+
1117
+ 查询项目任务列表
1118
+
1119
+ Please refer to HUAWEI cloud API Explorer for details.
1120
+
1121
+
1122
+ :param request: Request instance for ListProjectJobs
1123
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListProjectJobsRequest`
1124
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListProjectJobsResponse`
1125
+ """
1126
+ http_info = self._list_project_jobs_http_info(request)
1127
+ return self._call_api(**http_info)
1128
+
1129
+ def list_project_jobs_async_invoker(self, request):
1130
+ http_info = self._list_project_jobs_http_info(request)
1131
+ return AsyncInvoker(self, http_info)
1132
+
1133
+ def _list_project_jobs_http_info(self, request):
1134
+ http_info = {
1135
+ "method": "GET",
1136
+ "resource_path": "/v1/job/{project_id}/list",
1137
+ "request_type": request.__class__.__name__,
1138
+ "response_type": "ListProjectJobsResponse"
1139
+ }
1140
+
1141
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1142
+
1143
+ cname = None
1144
+
1145
+ collection_formats = {}
1146
+
1147
+ path_params = {}
1148
+ if 'project_id' in local_var_params:
1149
+ path_params['project_id'] = local_var_params['project_id']
1150
+
1151
+ 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
+
1171
+ header_params = {}
1172
+
1173
+ form_params = {}
1174
+
1175
+ body = None
1176
+ if isinstance(request, SdkStreamRequest):
1177
+ body = request.get_file_stream()
1178
+
1179
+ response_headers = []
1180
+
1181
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1182
+ ['application/json'])
1183
+
1184
+ auth_settings = ['apig-auth-iam']
1185
+
1186
+ http_info["cname"] = cname
1187
+ http_info["collection_formats"] = collection_formats
1188
+ http_info["path_params"] = path_params
1189
+ http_info["query_params"] = query_params
1190
+ http_info["header_params"] = header_params
1191
+ http_info["post_params"] = form_params
1192
+ http_info["body"] = body
1193
+ http_info["response_headers"] = response_headers
1194
+
1195
+ return http_info
1196
+
1197
+ def list_recycling_job_async(self, request):
1198
+ r"""查看回收站中删除的构建任务列表
1199
+
1200
+ 查看回收站中删除的构建任务列表
1201
+
1202
+ Please refer to HUAWEI cloud API Explorer for details.
1203
+
1204
+
1205
+ :param request: Request instance for ListRecyclingJob
1206
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecyclingJobRequest`
1207
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListRecyclingJobResponse`
1208
+ """
1209
+ http_info = self._list_recycling_job_http_info(request)
1210
+ return self._call_api(**http_info)
1211
+
1212
+ def list_recycling_job_async_invoker(self, request):
1213
+ http_info = self._list_recycling_job_http_info(request)
1214
+ return AsyncInvoker(self, http_info)
1215
+
1216
+ def _list_recycling_job_http_info(self, request):
1217
+ http_info = {
1218
+ "method": "GET",
1219
+ "resource_path": "/v1/job/recycling-jobs",
1220
+ "request_type": request.__class__.__name__,
1221
+ "response_type": "ListRecyclingJobResponse"
1222
+ }
1223
+
1224
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1225
+
1226
+ cname = None
1227
+
1228
+ collection_formats = {}
1229
+
1230
+ path_params = {}
1231
+
1232
+ 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']))
1239
+
1240
+ header_params = {}
1241
+
1242
+ form_params = {}
1243
+
1244
+ body = None
1245
+ if isinstance(request, SdkStreamRequest):
1246
+ body = request.get_file_stream()
1247
+
1248
+ response_headers = []
1249
+
1250
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1251
+ ['application/json'])
1252
+
1253
+ auth_settings = ['apig-auth-iam']
1254
+
1255
+ http_info["cname"] = cname
1256
+ http_info["collection_formats"] = collection_formats
1257
+ http_info["path_params"] = path_params
1258
+ http_info["query_params"] = query_params
1259
+ http_info["header_params"] = header_params
1260
+ http_info["post_params"] = form_params
1261
+ http_info["body"] = body
1262
+ http_info["response_headers"] = response_headers
1263
+
1264
+ return http_info
1265
+
1266
+ def list_templates_async(self, request):
1267
+ r"""查询构建模板
1268
+
1269
+ 查询构建模板
1270
+
1271
+ Please refer to HUAWEI cloud API Explorer for details.
1272
+
1273
+
1274
+ :param request: Request instance for ListTemplates
1275
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesRequest`
1276
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesResponse`
1277
+ """
1278
+ http_info = self._list_templates_http_info(request)
1279
+ return self._call_api(**http_info)
1280
+
1281
+ def list_templates_async_invoker(self, request):
1282
+ http_info = self._list_templates_http_info(request)
1283
+ return AsyncInvoker(self, http_info)
1284
+
1285
+ def _list_templates_http_info(self, request):
1286
+ http_info = {
1287
+ "method": "GET",
1288
+ "resource_path": "/v3/templates/query",
1289
+ "request_type": request.__class__.__name__,
1290
+ "response_type": "ListTemplatesResponse"
1291
+ }
1292
+
1293
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1294
+
1295
+ cname = None
1296
+
1297
+ collection_formats = {}
1298
+
1299
+ path_params = {}
1300
+
1301
+ 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']))
1308
+
1309
+ header_params = {}
1310
+
1311
+ form_params = {}
1312
+
1313
+ body = None
1314
+ if isinstance(request, SdkStreamRequest):
1315
+ body = request.get_file_stream()
1316
+
1317
+ response_headers = []
1318
+
1319
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1320
+ ['application/json'])
1321
+
1322
+ auth_settings = ['apig-auth-iam']
1323
+
1324
+ http_info["cname"] = cname
1325
+ http_info["collection_formats"] = collection_formats
1326
+ http_info["path_params"] = path_params
1327
+ http_info["query_params"] = query_params
1328
+ http_info["header_params"] = header_params
1329
+ http_info["post_params"] = form_params
1330
+ http_info["body"] = body
1331
+ http_info["response_headers"] = response_headers
1332
+
1333
+ return http_info
1334
+
1335
+ def run_job_async(self, request):
1336
+ r"""执行构建任务
1337
+
1338
+ 执行构建任务,可传自定义参数
1339
+
1340
+ Please refer to HUAWEI cloud API Explorer for details.
1341
+
1342
+
1343
+ :param request: Request instance for RunJob
1344
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobRequest`
1345
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobResponse`
1346
+ """
1347
+ http_info = self._run_job_http_info(request)
1348
+ return self._call_api(**http_info)
1349
+
1350
+ def run_job_async_invoker(self, request):
1351
+ http_info = self._run_job_http_info(request)
1352
+ return AsyncInvoker(self, http_info)
1353
+
1354
+ def _run_job_http_info(self, request):
1355
+ http_info = {
1356
+ "method": "POST",
1357
+ "resource_path": "/v3/jobs/build",
1358
+ "request_type": request.__class__.__name__,
1359
+ "response_type": "RunJobResponse"
1360
+ }
1361
+
1362
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1363
+
1364
+ cname = None
1365
+
1366
+ collection_formats = {}
1367
+
1368
+ path_params = {}
1369
+
1370
+ query_params = []
1371
+
1372
+ header_params = {}
1373
+
1374
+ form_params = {}
1375
+
1376
+ body = None
1377
+ if 'body' in local_var_params:
1378
+ body = local_var_params['body']
1379
+ if isinstance(request, SdkStreamRequest):
1380
+ body = request.get_file_stream()
1381
+
1382
+ response_headers = []
1383
+
1384
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1385
+ ['application/json'])
1386
+
1387
+ auth_settings = ['apig-auth-iam']
1388
+
1389
+ http_info["cname"] = cname
1390
+ http_info["collection_formats"] = collection_formats
1391
+ http_info["path_params"] = path_params
1392
+ http_info["query_params"] = query_params
1393
+ http_info["header_params"] = header_params
1394
+ http_info["post_params"] = form_params
1395
+ http_info["body"] = body
1396
+ http_info["response_headers"] = response_headers
1397
+
1398
+ return http_info
1399
+
1400
+ def show_build_params_list_async(self, request):
1401
+ r"""编辑页获取参数类型的接口
1402
+
1403
+ 编辑页获取参数类型的接口
1404
+
1405
+ Please refer to HUAWEI cloud API Explorer for details.
1406
+
1407
+
1408
+ :param request: Request instance for ShowBuildParamsList
1409
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildParamsListRequest`
1410
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildParamsListResponse`
1411
+ """
1412
+ http_info = self._show_build_params_list_http_info(request)
1413
+ return self._call_api(**http_info)
1414
+
1415
+ def show_build_params_list_async_invoker(self, request):
1416
+ http_info = self._show_build_params_list_http_info(request)
1417
+ return AsyncInvoker(self, http_info)
1418
+
1419
+ def _show_build_params_list_http_info(self, request):
1420
+ http_info = {
1421
+ "method": "GET",
1422
+ "resource_path": "/v1/job/build-params",
1423
+ "request_type": request.__class__.__name__,
1424
+ "response_type": "ShowBuildParamsListResponse"
1425
+ }
1426
+
1427
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1428
+
1429
+ cname = None
1430
+
1431
+ collection_formats = {}
1432
+
1433
+ path_params = {}
1434
+
1435
+ query_params = []
1436
+
1437
+ header_params = {}
1438
+
1439
+ form_params = {}
1440
+
1441
+ body = None
1442
+ if isinstance(request, SdkStreamRequest):
1443
+ body = request.get_file_stream()
1444
+
1445
+ response_headers = []
1446
+
1447
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1448
+ ['application/json'])
1449
+
1450
+ auth_settings = ['apig-auth-iam']
1451
+
1452
+ http_info["cname"] = cname
1453
+ http_info["collection_formats"] = collection_formats
1454
+ http_info["path_params"] = path_params
1455
+ http_info["query_params"] = query_params
1456
+ http_info["header_params"] = header_params
1457
+ http_info["post_params"] = form_params
1458
+ http_info["body"] = body
1459
+ http_info["response_headers"] = response_headers
1460
+
1461
+ return http_info
1462
+
1463
+ def show_build_record_async(self, request):
1464
+ r"""查询指定构建记录详情
1465
+
1466
+ 查询指定构建记录详情
1467
+
1468
+ Please refer to HUAWEI cloud API Explorer for details.
1469
+
1470
+
1471
+ :param request: Request instance for ShowBuildRecord
1472
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordRequest`
1473
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordResponse`
1474
+ """
1475
+ http_info = self._show_build_record_http_info(request)
1476
+ return self._call_api(**http_info)
1477
+
1478
+ def show_build_record_async_invoker(self, request):
1479
+ http_info = self._show_build_record_http_info(request)
1480
+ return AsyncInvoker(self, http_info)
1481
+
1482
+ def _show_build_record_http_info(self, request):
1483
+ http_info = {
1484
+ "method": "GET",
1485
+ "resource_path": "/v1/record/{record_id}/info",
1486
+ "request_type": request.__class__.__name__,
1487
+ "response_type": "ShowBuildRecordResponse"
1488
+ }
1489
+
1490
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1491
+
1492
+ cname = None
1493
+
1494
+ collection_formats = {}
1495
+
1496
+ path_params = {}
1497
+ if 'record_id' in local_var_params:
1498
+ path_params['record_id'] = local_var_params['record_id']
1499
+
1500
+ query_params = []
1501
+
1502
+ header_params = {}
1503
+
1504
+ form_params = {}
1505
+
1506
+ body = None
1507
+ if isinstance(request, SdkStreamRequest):
1508
+ body = request.get_file_stream()
1509
+
1510
+ response_headers = []
1511
+
1512
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1513
+ ['application/json'])
1514
+
1515
+ auth_settings = ['apig-auth-iam']
1516
+
1517
+ http_info["cname"] = cname
1518
+ http_info["collection_formats"] = collection_formats
1519
+ http_info["path_params"] = path_params
1520
+ http_info["query_params"] = query_params
1521
+ http_info["header_params"] = header_params
1522
+ http_info["post_params"] = form_params
1523
+ http_info["body"] = body
1524
+ http_info["response_headers"] = response_headers
1525
+
1526
+ return http_info
1527
+
1528
+ def show_build_record_build_script_async(self, request):
1529
+ r"""获取构建记录的构建脚本
1530
+
1531
+ 获取构建记录的构建脚本
1532
+
1533
+ Please refer to HUAWEI cloud API Explorer for details.
1534
+
1535
+
1536
+ :param request: Request instance for ShowBuildRecordBuildScript
1537
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordBuildScriptRequest`
1538
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordBuildScriptResponse`
1539
+ """
1540
+ http_info = self._show_build_record_build_script_http_info(request)
1541
+ return self._call_api(**http_info)
1542
+
1543
+ def show_build_record_build_script_async_invoker(self, request):
1544
+ http_info = self._show_build_record_build_script_http_info(request)
1545
+ return AsyncInvoker(self, http_info)
1546
+
1547
+ def _show_build_record_build_script_http_info(self, request):
1548
+ http_info = {
1549
+ "method": "GET",
1550
+ "resource_path": "/v1/record/{record_id}/build-script",
1551
+ "request_type": request.__class__.__name__,
1552
+ "response_type": "ShowBuildRecordBuildScriptResponse"
1553
+ }
1554
+
1555
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1556
+
1557
+ cname = None
1558
+
1559
+ collection_formats = {}
1560
+
1561
+ path_params = {}
1562
+ if 'record_id' in local_var_params:
1563
+ path_params['record_id'] = local_var_params['record_id']
1564
+
1565
+ query_params = []
1566
+
1567
+ header_params = {}
1568
+
1569
+ form_params = {}
1570
+
1571
+ body = None
1572
+ if isinstance(request, SdkStreamRequest):
1573
+ body = request.get_file_stream()
1574
+
1575
+ response_headers = []
1576
+
1577
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1578
+ ['application/json'])
1579
+
1580
+ auth_settings = ['apig-auth-iam']
1581
+
1582
+ http_info["cname"] = cname
1583
+ http_info["collection_formats"] = collection_formats
1584
+ http_info["path_params"] = path_params
1585
+ http_info["query_params"] = query_params
1586
+ http_info["header_params"] = header_params
1587
+ http_info["post_params"] = form_params
1588
+ http_info["body"] = body
1589
+ http_info["response_headers"] = response_headers
1590
+
1591
+ return http_info
1592
+
1593
+ def show_build_record_full_stages_async(self, request):
1594
+ r"""获取任务各阶段信息
1595
+
1596
+ 获取任务各阶段信息
1597
+
1598
+ Please refer to HUAWEI cloud API Explorer for details.
1599
+
1600
+
1601
+ :param request: Request instance for ShowBuildRecordFullStages
1602
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesRequest`
1603
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesResponse`
1604
+ """
1605
+ http_info = self._show_build_record_full_stages_http_info(request)
1606
+ return self._call_api(**http_info)
1607
+
1608
+ def show_build_record_full_stages_async_invoker(self, request):
1609
+ http_info = self._show_build_record_full_stages_http_info(request)
1610
+ return AsyncInvoker(self, http_info)
1611
+
1612
+ def _show_build_record_full_stages_http_info(self, request):
1613
+ http_info = {
1614
+ "method": "GET",
1615
+ "resource_path": "/v1/record/{record_id}/full-stages",
1616
+ "request_type": request.__class__.__name__,
1617
+ "response_type": "ShowBuildRecordFullStagesResponse"
1618
+ }
1619
+
1620
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1621
+
1622
+ cname = None
1623
+
1624
+ collection_formats = {}
1625
+
1626
+ path_params = {}
1627
+ if 'record_id' in local_var_params:
1628
+ path_params['record_id'] = local_var_params['record_id']
1629
+
1630
+ query_params = []
1631
+ if 'cascade' in local_var_params:
1632
+ query_params.append(('cascade', local_var_params['cascade']))
1633
+
1634
+ header_params = {}
1635
+
1636
+ form_params = {}
1637
+
1638
+ body = None
1639
+ if isinstance(request, SdkStreamRequest):
1640
+ body = request.get_file_stream()
1641
+
1642
+ response_headers = []
1643
+
1644
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1645
+ ['application/json'])
1646
+
1647
+ auth_settings = ['apig-auth-iam']
1648
+
1649
+ http_info["cname"] = cname
1650
+ http_info["collection_formats"] = collection_formats
1651
+ http_info["path_params"] = path_params
1652
+ http_info["query_params"] = query_params
1653
+ http_info["header_params"] = header_params
1654
+ http_info["post_params"] = form_params
1655
+ http_info["body"] = body
1656
+ http_info["response_headers"] = response_headers
1657
+
1658
+ return http_info
1659
+
1660
+ def show_history_details_async(self, request):
1661
+ r"""获取构建历史详情信息接口
1662
+
1663
+ 获取构建历史详情信息接口
1664
+
1665
+ Please refer to HUAWEI cloud API Explorer for details.
1666
+
1667
+
1668
+ :param request: Request instance for ShowHistoryDetails
1669
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsRequest`
1670
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsResponse`
1671
+ """
1672
+ http_info = self._show_history_details_http_info(request)
1673
+ return self._call_api(**http_info)
1674
+
1675
+ def show_history_details_async_invoker(self, request):
1676
+ http_info = self._show_history_details_http_info(request)
1677
+ return AsyncInvoker(self, http_info)
1678
+
1679
+ def _show_history_details_http_info(self, request):
1680
+ http_info = {
1681
+ "method": "GET",
1682
+ "resource_path": "/v3/jobs/{job_id}/{build_number}/history-details",
1683
+ "request_type": request.__class__.__name__,
1684
+ "response_type": "ShowHistoryDetailsResponse"
1685
+ }
1686
+
1687
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1688
+
1689
+ cname = None
1690
+
1691
+ collection_formats = {}
1692
+
1693
+ path_params = {}
1694
+ if 'job_id' in local_var_params:
1695
+ 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
+
1699
+ query_params = []
1700
+
1701
+ header_params = {}
1702
+
1703
+ form_params = {}
1704
+
1705
+ body = None
1706
+ if isinstance(request, SdkStreamRequest):
1707
+ body = request.get_file_stream()
1708
+
1709
+ response_headers = []
1710
+
1711
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1712
+ ['application/json'])
1713
+
1714
+ auth_settings = ['apig-auth-iam']
1715
+
1716
+ http_info["cname"] = cname
1717
+ http_info["collection_formats"] = collection_formats
1718
+ http_info["path_params"] = path_params
1719
+ http_info["query_params"] = query_params
1720
+ http_info["header_params"] = header_params
1721
+ http_info["post_params"] = form_params
1722
+ http_info["body"] = body
1723
+ http_info["response_headers"] = response_headers
1724
+
1725
+ return http_info
1726
+
1727
+ def show_image_template_list_async(self, request):
1728
+ r"""获取镜像模板列表
1729
+
1730
+ 获取镜像模板列表
1731
+
1732
+ Please refer to HUAWEI cloud API Explorer for details.
1733
+
1734
+
1735
+ :param request: Request instance for ShowImageTemplateList
1736
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListRequest`
1737
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowImageTemplateListResponse`
1738
+ """
1739
+ http_info = self._show_image_template_list_http_info(request)
1740
+ return self._call_api(**http_info)
1741
+
1742
+ def show_image_template_list_async_invoker(self, request):
1743
+ http_info = self._show_image_template_list_http_info(request)
1744
+ return AsyncInvoker(self, http_info)
1745
+
1746
+ def _show_image_template_list_http_info(self, request):
1747
+ http_info = {
1748
+ "method": "GET",
1749
+ "resource_path": "/v1/image/templates",
1750
+ "request_type": request.__class__.__name__,
1751
+ "response_type": "ShowImageTemplateListResponse"
1752
+ }
1753
+
1754
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1755
+
1756
+ cname = None
1757
+
1758
+ collection_formats = {}
1759
+
1760
+ path_params = {}
1761
+
1762
+ query_params = []
1763
+
1764
+ header_params = {}
1765
+
1766
+ form_params = {}
1767
+
1768
+ body = None
1769
+ if isinstance(request, SdkStreamRequest):
1770
+ body = request.get_file_stream()
1771
+
1772
+ response_headers = []
1773
+
1774
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1775
+ ['application/json'])
1776
+
1777
+ auth_settings = ['apig-auth-iam']
1778
+
1779
+ http_info["cname"] = cname
1780
+ http_info["collection_formats"] = collection_formats
1781
+ http_info["path_params"] = path_params
1782
+ http_info["query_params"] = query_params
1783
+ http_info["header_params"] = header_params
1784
+ http_info["post_params"] = form_params
1785
+ http_info["body"] = body
1786
+ http_info["response_headers"] = response_headers
1787
+
1788
+ return http_info
1789
+
1790
+ def show_job_build_success_ratio_async(self, request):
1791
+ r"""查询构建成功率
1792
+
1793
+ 查询构建成功率
1794
+
1795
+ Please refer to HUAWEI cloud API Explorer for details.
1796
+
1797
+
1798
+ :param request: Request instance for ShowJobBuildSuccessRatio
1799
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioRequest`
1800
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioResponse`
1801
+ """
1802
+ http_info = self._show_job_build_success_ratio_http_info(request)
1803
+ return self._call_api(**http_info)
1804
+
1805
+ def show_job_build_success_ratio_async_invoker(self, request):
1806
+ http_info = self._show_job_build_success_ratio_http_info(request)
1807
+ return AsyncInvoker(self, http_info)
1808
+
1809
+ def _show_job_build_success_ratio_http_info(self, request):
1810
+ http_info = {
1811
+ "method": "GET",
1812
+ "resource_path": "/v1/report/ratio",
930
1813
  "request_type": request.__class__.__name__,
931
- "response_type": "ListNoticeResponse"
1814
+ "response_type": "ShowJobBuildSuccessRatioResponse"
932
1815
  }
933
1816
 
934
1817
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -938,10 +1821,16 @@ class CodeArtsBuildAsyncClient(Client):
938
1821
  collection_formats = {}
939
1822
 
940
1823
  path_params = {}
941
- if 'job_id' in local_var_params:
942
- path_params['job_id'] = local_var_params['job_id']
943
1824
 
944
1825
  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']))
945
1834
 
946
1835
  header_params = {}
947
1836
 
@@ -969,31 +1858,31 @@ class CodeArtsBuildAsyncClient(Client):
969
1858
 
970
1859
  return http_info
971
1860
 
972
- def list_templates_async(self, request):
973
- r"""查询构建模板
1861
+ def show_job_build_time_async(self, request):
1862
+ r"""洞察构建时长
974
1863
 
975
- 查询构建模板
1864
+ 洞察构建时长
976
1865
 
977
1866
  Please refer to HUAWEI cloud API Explorer for details.
978
1867
 
979
1868
 
980
- :param request: Request instance for ListTemplates
981
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesRequest`
982
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ListTemplatesResponse`
1869
+ :param request: Request instance for ShowJobBuildTime
1870
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeRequest`
1871
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildTimeResponse`
983
1872
  """
984
- http_info = self._list_templates_http_info(request)
1873
+ http_info = self._show_job_build_time_http_info(request)
985
1874
  return self._call_api(**http_info)
986
1875
 
987
- def list_templates_async_invoker(self, request):
988
- http_info = self._list_templates_http_info(request)
1876
+ def show_job_build_time_async_invoker(self, request):
1877
+ http_info = self._show_job_build_time_http_info(request)
989
1878
  return AsyncInvoker(self, http_info)
990
1879
 
991
- def _list_templates_http_info(self, request):
1880
+ def _show_job_build_time_http_info(self, request):
992
1881
  http_info = {
993
1882
  "method": "GET",
994
- "resource_path": "/v3/templates/query",
1883
+ "resource_path": "/v1/report/time",
995
1884
  "request_type": request.__class__.__name__,
996
- "response_type": "ListTemplatesResponse"
1885
+ "response_type": "ShowJobBuildTimeResponse"
997
1886
  }
998
1887
 
999
1888
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1005,12 +1894,14 @@ class CodeArtsBuildAsyncClient(Client):
1005
1894
  path_params = {}
1006
1895
 
1007
1896
  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']))
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']))
1014
1905
 
1015
1906
  header_params = {}
1016
1907
 
@@ -1038,31 +1929,31 @@ class CodeArtsBuildAsyncClient(Client):
1038
1929
 
1039
1930
  return http_info
1040
1931
 
1041
- def run_job_async(self, request):
1042
- r"""执行构建任务
1932
+ def show_job_config_async(self, request):
1933
+ r"""获取构建任务详情
1043
1934
 
1044
- 执行构建任务,可传自定义参数
1935
+ 获取构建任务详情
1045
1936
 
1046
1937
  Please refer to HUAWEI cloud API Explorer for details.
1047
1938
 
1048
1939
 
1049
- :param request: Request instance for RunJob
1050
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobRequest`
1051
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.RunJobResponse`
1940
+ :param request: Request instance for ShowJobConfig
1941
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigRequest`
1942
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigResponse`
1052
1943
  """
1053
- http_info = self._run_job_http_info(request)
1944
+ http_info = self._show_job_config_http_info(request)
1054
1945
  return self._call_api(**http_info)
1055
1946
 
1056
- def run_job_async_invoker(self, request):
1057
- http_info = self._run_job_http_info(request)
1947
+ def show_job_config_async_invoker(self, request):
1948
+ http_info = self._show_job_config_http_info(request)
1058
1949
  return AsyncInvoker(self, http_info)
1059
1950
 
1060
- def _run_job_http_info(self, request):
1951
+ def _show_job_config_http_info(self, request):
1061
1952
  http_info = {
1062
- "method": "POST",
1063
- "resource_path": "/v3/jobs/build",
1953
+ "method": "GET",
1954
+ "resource_path": "/v1/job/{job_id}/config",
1064
1955
  "request_type": request.__class__.__name__,
1065
- "response_type": "RunJobResponse"
1956
+ "response_type": "ShowJobConfigResponse"
1066
1957
  }
1067
1958
 
1068
1959
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1072,16 +1963,18 @@ class CodeArtsBuildAsyncClient(Client):
1072
1963
  collection_formats = {}
1073
1964
 
1074
1965
  path_params = {}
1966
+ if 'job_id' in local_var_params:
1967
+ path_params['job_id'] = local_var_params['job_id']
1075
1968
 
1076
1969
  query_params = []
1970
+ if 'get_all_params' in local_var_params:
1971
+ query_params.append(('get_all_params', local_var_params['get_all_params']))
1077
1972
 
1078
1973
  header_params = {}
1079
1974
 
1080
1975
  form_params = {}
1081
1976
 
1082
1977
  body = None
1083
- if 'body' in local_var_params:
1084
- body = local_var_params['body']
1085
1978
  if isinstance(request, SdkStreamRequest):
1086
1979
  body = request.get_file_stream()
1087
1980
 
@@ -1103,31 +1996,31 @@ class CodeArtsBuildAsyncClient(Client):
1103
1996
 
1104
1997
  return http_info
1105
1998
 
1106
- def show_build_record_full_stages_async(self, request):
1107
- r"""获取任务各阶段信息
1999
+ def show_job_config_diff_async(self, request):
2000
+ r"""获取构建任务配置的对比差异
1108
2001
 
1109
- 获取任务各阶段信息
2002
+ 获取构建任务配置的对比差异
1110
2003
 
1111
2004
  Please refer to HUAWEI cloud API Explorer for details.
1112
2005
 
1113
2006
 
1114
- :param request: Request instance for ShowBuildRecordFullStages
1115
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesRequest`
1116
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowBuildRecordFullStagesResponse`
2007
+ :param request: Request instance for ShowJobConfigDiff
2008
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigDiffRequest`
2009
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobConfigDiffResponse`
1117
2010
  """
1118
- http_info = self._show_build_record_full_stages_http_info(request)
2011
+ http_info = self._show_job_config_diff_http_info(request)
1119
2012
  return self._call_api(**http_info)
1120
2013
 
1121
- def show_build_record_full_stages_async_invoker(self, request):
1122
- http_info = self._show_build_record_full_stages_http_info(request)
2014
+ def show_job_config_diff_async_invoker(self, request):
2015
+ http_info = self._show_job_config_diff_http_info(request)
1123
2016
  return AsyncInvoker(self, http_info)
1124
2017
 
1125
- def _show_build_record_full_stages_http_info(self, request):
2018
+ def _show_job_config_diff_http_info(self, request):
1126
2019
  http_info = {
1127
2020
  "method": "GET",
1128
- "resource_path": "/v1/record/{record_id}/full-stages",
2021
+ "resource_path": "/v1/job/{job_id}/diff",
1129
2022
  "request_type": request.__class__.__name__,
1130
- "response_type": "ShowBuildRecordFullStagesResponse"
2023
+ "response_type": "ShowJobConfigDiffResponse"
1131
2024
  }
1132
2025
 
1133
2026
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1137,12 +2030,14 @@ class CodeArtsBuildAsyncClient(Client):
1137
2030
  collection_formats = {}
1138
2031
 
1139
2032
  path_params = {}
1140
- if 'record_id' in local_var_params:
1141
- path_params['record_id'] = local_var_params['record_id']
2033
+ if 'job_id' in local_var_params:
2034
+ path_params['job_id'] = local_var_params['job_id']
1142
2035
 
1143
2036
  query_params = []
1144
- if 'cascade' in local_var_params:
1145
- query_params.append(('cascade', local_var_params['cascade']))
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']))
1146
2041
 
1147
2042
  header_params = {}
1148
2043
 
@@ -1170,31 +2065,31 @@ class CodeArtsBuildAsyncClient(Client):
1170
2065
 
1171
2066
  return http_info
1172
2067
 
1173
- def show_history_details_async(self, request):
1174
- r"""获取构建历史详情信息接口
2068
+ def show_job_info_async(self, request):
2069
+ r"""查看构建任务构建信息
1175
2070
 
1176
- 获取构建历史详情信息接口
2071
+ 查看构建任务构建信息
1177
2072
 
1178
2073
  Please refer to HUAWEI cloud API Explorer for details.
1179
2074
 
1180
2075
 
1181
- :param request: Request instance for ShowHistoryDetails
1182
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsRequest`
1183
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowHistoryDetailsResponse`
2076
+ :param request: Request instance for ShowJobInfo
2077
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobInfoRequest`
2078
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobInfoResponse`
1184
2079
  """
1185
- http_info = self._show_history_details_http_info(request)
2080
+ http_info = self._show_job_info_http_info(request)
1186
2081
  return self._call_api(**http_info)
1187
2082
 
1188
- def show_history_details_async_invoker(self, request):
1189
- http_info = self._show_history_details_http_info(request)
2083
+ def show_job_info_async_invoker(self, request):
2084
+ http_info = self._show_job_info_http_info(request)
1190
2085
  return AsyncInvoker(self, http_info)
1191
2086
 
1192
- def _show_history_details_http_info(self, request):
2087
+ def _show_job_info_http_info(self, request):
1193
2088
  http_info = {
1194
2089
  "method": "GET",
1195
- "resource_path": "/v3/jobs/{job_id}/{build_number}/history-details",
2090
+ "resource_path": "/v1/job/{job_id}/info",
1196
2091
  "request_type": request.__class__.__name__,
1197
- "response_type": "ShowHistoryDetailsResponse"
2092
+ "response_type": "ShowJobInfoResponse"
1198
2093
  }
1199
2094
 
1200
2095
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1206,8 +2101,6 @@ class CodeArtsBuildAsyncClient(Client):
1206
2101
  path_params = {}
1207
2102
  if 'job_id' in local_var_params:
1208
2103
  path_params['job_id'] = local_var_params['job_id']
1209
- if 'build_number' in local_var_params:
1210
- path_params['build_number'] = local_var_params['build_number']
1211
2104
 
1212
2105
  query_params = []
1213
2106
 
@@ -1237,31 +2130,31 @@ class CodeArtsBuildAsyncClient(Client):
1237
2130
 
1238
2131
  return http_info
1239
2132
 
1240
- def show_job_build_success_ratio_async(self, request):
1241
- r"""查询构建成功率
2133
+ def show_job_list_by_project_id_async(self, request):
2134
+ r"""查看项目下用户的构建任务列表
1242
2135
 
1243
- 查询构建成功率
2136
+ 查看项目下用户的构建任务列表
1244
2137
 
1245
2138
  Please refer to HUAWEI cloud API Explorer for details.
1246
2139
 
1247
2140
 
1248
- :param request: Request instance for ShowJobBuildSuccessRatio
1249
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioRequest`
1250
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobBuildSuccessRatioResponse`
2141
+ :param request: Request instance for ShowJobListByProjectId
2142
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdRequest`
2143
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdResponse`
1251
2144
  """
1252
- http_info = self._show_job_build_success_ratio_http_info(request)
2145
+ http_info = self._show_job_list_by_project_id_http_info(request)
1253
2146
  return self._call_api(**http_info)
1254
2147
 
1255
- def show_job_build_success_ratio_async_invoker(self, request):
1256
- http_info = self._show_job_build_success_ratio_http_info(request)
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)
1257
2150
  return AsyncInvoker(self, http_info)
1258
2151
 
1259
- def _show_job_build_success_ratio_http_info(self, request):
2152
+ def _show_job_list_by_project_id_http_info(self, request):
1260
2153
  http_info = {
1261
2154
  "method": "GET",
1262
- "resource_path": "/v1/report/ratio",
2155
+ "resource_path": "/v3/{project_id}/jobs",
1263
2156
  "request_type": request.__class__.__name__,
1264
- "response_type": "ShowJobBuildSuccessRatioResponse"
2157
+ "response_type": "ShowJobListByProjectIdResponse"
1265
2158
  }
1266
2159
 
1267
2160
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1271,16 +2164,14 @@ class CodeArtsBuildAsyncClient(Client):
1271
2164
  collection_formats = {}
1272
2165
 
1273
2166
  path_params = {}
2167
+ if 'project_id' in local_var_params:
2168
+ path_params['project_id'] = local_var_params['project_id']
1274
2169
 
1275
2170
  query_params = []
1276
- if 'job_id' in local_var_params:
1277
- query_params.append(('job_id', local_var_params['job_id']))
1278
- if 'repository_name' in local_var_params:
1279
- query_params.append(('repository_name', local_var_params['repository_name']))
1280
- if 'branch' in local_var_params:
1281
- query_params.append(('branch', local_var_params['branch']))
1282
- if 'interval' in local_var_params:
1283
- query_params.append(('interval', local_var_params['interval']))
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']))
1284
2175
 
1285
2176
  header_params = {}
1286
2177
 
@@ -1308,31 +2199,31 @@ class CodeArtsBuildAsyncClient(Client):
1308
2199
 
1309
2200
  return http_info
1310
2201
 
1311
- def show_job_list_by_project_id_async(self, request):
1312
- r"""查看项目下用户的构建任务列表
2202
+ def show_job_role_permission_async(self, request):
2203
+ r"""获取构建任务的角色权限矩阵信息
1313
2204
 
1314
- 查看项目下用户的构建任务列表
2205
+ 获取构建任务的角色权限矩阵信息
1315
2206
 
1316
2207
  Please refer to HUAWEI cloud API Explorer for details.
1317
2208
 
1318
2209
 
1319
- :param request: Request instance for ShowJobListByProjectId
1320
- :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdRequest`
1321
- :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobListByProjectIdResponse`
2210
+ :param request: Request instance for ShowJobRolePermission
2211
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobRolePermissionRequest`
2212
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobRolePermissionResponse`
1322
2213
  """
1323
- http_info = self._show_job_list_by_project_id_http_info(request)
2214
+ http_info = self._show_job_role_permission_http_info(request)
1324
2215
  return self._call_api(**http_info)
1325
2216
 
1326
- def show_job_list_by_project_id_async_invoker(self, request):
1327
- http_info = self._show_job_list_by_project_id_http_info(request)
2217
+ def show_job_role_permission_async_invoker(self, request):
2218
+ http_info = self._show_job_role_permission_http_info(request)
1328
2219
  return AsyncInvoker(self, http_info)
1329
2220
 
1330
- def _show_job_list_by_project_id_http_info(self, request):
2221
+ def _show_job_role_permission_http_info(self, request):
1331
2222
  http_info = {
1332
2223
  "method": "GET",
1333
- "resource_path": "/v3/{project_id}/jobs",
2224
+ "resource_path": "/v1/job/permission/role",
1334
2225
  "request_type": request.__class__.__name__,
1335
- "response_type": "ShowJobListByProjectIdResponse"
2226
+ "response_type": "ShowJobRolePermissionResponse"
1336
2227
  }
1337
2228
 
1338
2229
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -1342,14 +2233,10 @@ class CodeArtsBuildAsyncClient(Client):
1342
2233
  collection_formats = {}
1343
2234
 
1344
2235
  path_params = {}
1345
- if 'project_id' in local_var_params:
1346
- path_params['project_id'] = local_var_params['project_id']
1347
2236
 
1348
2237
  query_params = []
1349
- if 'page_index' in local_var_params:
1350
- query_params.append(('page_index', local_var_params['page_index']))
1351
- if 'page_size' in local_var_params:
1352
- query_params.append(('page_size', local_var_params['page_size']))
2238
+ if 'job_id' in local_var_params:
2239
+ query_params.append(('job_id', local_var_params['job_id']))
1353
2240
 
1354
2241
  header_params = {}
1355
2242
 
@@ -1511,6 +2398,69 @@ class CodeArtsBuildAsyncClient(Client):
1511
2398
 
1512
2399
  return http_info
1513
2400
 
2401
+ def show_job_system_parameters_async(self, request):
2402
+ r"""查看系统预定义参数
2403
+
2404
+ 查看系统预定义参数
2405
+
2406
+ Please refer to HUAWEI cloud API Explorer for details.
2407
+
2408
+
2409
+ :param request: Request instance for ShowJobSystemParameters
2410
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSystemParametersRequest`
2411
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobSystemParametersResponse`
2412
+ """
2413
+ http_info = self._show_job_system_parameters_http_info(request)
2414
+ return self._call_api(**http_info)
2415
+
2416
+ def show_job_system_parameters_async_invoker(self, request):
2417
+ http_info = self._show_job_system_parameters_http_info(request)
2418
+ return AsyncInvoker(self, http_info)
2419
+
2420
+ def _show_job_system_parameters_http_info(self, request):
2421
+ http_info = {
2422
+ "method": "GET",
2423
+ "resource_path": "/v1/job/system-parameters",
2424
+ "request_type": request.__class__.__name__,
2425
+ "response_type": "ShowJobSystemParametersResponse"
2426
+ }
2427
+
2428
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2429
+
2430
+ cname = None
2431
+
2432
+ collection_formats = {}
2433
+
2434
+ path_params = {}
2435
+
2436
+ query_params = []
2437
+
2438
+ header_params = {}
2439
+
2440
+ form_params = {}
2441
+
2442
+ body = None
2443
+ if isinstance(request, SdkStreamRequest):
2444
+ body = request.get_file_stream()
2445
+
2446
+ response_headers = []
2447
+
2448
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2449
+ ['application/json'])
2450
+
2451
+ auth_settings = ['apig-auth-iam']
2452
+
2453
+ http_info["cname"] = cname
2454
+ http_info["collection_formats"] = collection_formats
2455
+ http_info["path_params"] = path_params
2456
+ http_info["query_params"] = query_params
2457
+ http_info["header_params"] = header_params
2458
+ http_info["post_params"] = form_params
2459
+ http_info["body"] = body
2460
+ http_info["response_headers"] = response_headers
2461
+
2462
+ return http_info
2463
+
1514
2464
  def show_last_history_async(self, request):
1515
2465
  r"""查询指定代码仓库最近一次成功的构建历史
1516
2466
 
@@ -1789,6 +2739,71 @@ class CodeArtsBuildAsyncClient(Client):
1789
2739
 
1790
2740
  return http_info
1791
2741
 
2742
+ def show_project_permission_async(self, request):
2743
+ r"""获取用户权限
2744
+
2745
+ 获取用户权限
2746
+
2747
+ Please refer to HUAWEI cloud API Explorer for details.
2748
+
2749
+
2750
+ :param request: Request instance for ShowProjectPermission
2751
+ :type request: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionRequest`
2752
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowProjectPermissionResponse`
2753
+ """
2754
+ http_info = self._show_project_permission_http_info(request)
2755
+ return self._call_api(**http_info)
2756
+
2757
+ def show_project_permission_async_invoker(self, request):
2758
+ http_info = self._show_project_permission_http_info(request)
2759
+ return AsyncInvoker(self, http_info)
2760
+
2761
+ def _show_project_permission_http_info(self, request):
2762
+ http_info = {
2763
+ "method": "GET",
2764
+ "resource_path": "/v1/domain/user-permission",
2765
+ "request_type": request.__class__.__name__,
2766
+ "response_type": "ShowProjectPermissionResponse"
2767
+ }
2768
+
2769
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2770
+
2771
+ cname = None
2772
+
2773
+ collection_formats = {}
2774
+
2775
+ path_params = {}
2776
+
2777
+ query_params = []
2778
+ if 'project_id' in local_var_params:
2779
+ query_params.append(('project_id', local_var_params['project_id']))
2780
+
2781
+ header_params = {}
2782
+
2783
+ form_params = {}
2784
+
2785
+ body = None
2786
+ if isinstance(request, SdkStreamRequest):
2787
+ body = request.get_file_stream()
2788
+
2789
+ response_headers = []
2790
+
2791
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2792
+ ['application/json'])
2793
+
2794
+ auth_settings = ['apig-auth-iam']
2795
+
2796
+ http_info["cname"] = cname
2797
+ http_info["collection_formats"] = collection_formats
2798
+ http_info["path_params"] = path_params
2799
+ http_info["query_params"] = query_params
2800
+ http_info["header_params"] = header_params
2801
+ http_info["post_params"] = form_params
2802
+ http_info["body"] = body
2803
+ http_info["response_headers"] = response_headers
2804
+
2805
+ return http_info
2806
+
1792
2807
  def show_record_detail_async(self, request):
1793
2808
  r"""获取构建记录信息
1794
2809