@huaweicloud/huaweicloud-sdk-codeartsbuild 3.1.149 → 3.1.151
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.
- package/package.json +2 -2
- package/v3/CodeArtsBuildClient.d.ts +605 -0
- package/v3/CodeArtsBuildClient.d.ts.map +1 -1
- package/v3/CodeArtsBuildClient.js +1426 -85
- package/v3/CodeArtsBuildClient.js.map +1 -1
- package/v3/CodeArtsBuildRegion.d.ts +2 -0
- package/v3/CodeArtsBuildRegion.d.ts.map +1 -1
- package/v3/CodeArtsBuildRegion.js +5 -1
- package/v3/CodeArtsBuildRegion.js.map +1 -1
- package/v3/model/BuildInfoRecord.d.ts +71 -0
- package/v3/model/BuildInfoRecord.d.ts.map +1 -0
- package/v3/model/BuildInfoRecord.js +171 -0
- package/v3/model/BuildInfoRecord.js.map +1 -0
- package/v3/model/BuildInfoRecordCommitInfo.d.ts +12 -0
- package/v3/model/BuildInfoRecordCommitInfo.d.ts.map +1 -0
- package/v3/model/BuildInfoRecordCommitInfo.js +29 -0
- package/v3/model/BuildInfoRecordCommitInfo.js.map +1 -0
- package/v3/model/BuildParams.d.ts +11 -0
- package/v3/model/BuildParams.d.ts.map +1 -0
- package/v3/model/BuildParams.js +21 -0
- package/v3/model/BuildParams.js.map +1 -0
- package/v3/model/BuildParamsBodyResult.d.ts +9 -0
- package/v3/model/BuildParamsBodyResult.d.ts.map +1 -0
- package/v3/model/BuildParamsBodyResult.js +19 -0
- package/v3/model/BuildParamsBodyResult.js.map +1 -0
- package/v3/model/BuildRecord.d.ts +116 -0
- package/v3/model/BuildRecord.d.ts.map +1 -0
- package/v3/model/BuildRecord.js +277 -0
- package/v3/model/BuildRecord.js.map +1 -0
- package/v3/model/BuildRecordBuildRecordType.d.ts +18 -0
- package/v3/model/BuildRecordBuildRecordType.d.ts.map +1 -0
- package/v3/model/BuildRecordBuildRecordType.js +43 -0
- package/v3/model/BuildRecordBuildRecordType.js.map +1 -0
- package/v3/model/BuildRecordParameters.d.ts +12 -0
- package/v3/model/BuildRecordParameters.d.ts.map +1 -0
- package/v3/model/BuildRecordParameters.js +25 -0
- package/v3/model/BuildRecordParameters.js.map +1 -0
- package/v3/model/BuildStageRecord.d.ts +68 -0
- package/v3/model/BuildStageRecord.d.ts.map +1 -0
- package/v3/model/BuildStageRecord.js +165 -0
- package/v3/model/BuildStageRecord.js.map +1 -0
- package/v3/model/Constraints.d.ts +10 -0
- package/v3/model/Constraints.d.ts.map +1 -0
- package/v3/model/Constraints.js +21 -0
- package/v3/model/Constraints.js.map +1 -0
- package/v3/model/DownloadRealTimeLogRequest.d.ts +16 -0
- package/v3/model/DownloadRealTimeLogRequest.d.ts.map +1 -0
- package/v3/model/DownloadRealTimeLogRequest.js +40 -0
- package/v3/model/DownloadRealTimeLogRequest.js.map +1 -0
- package/v3/model/DownloadRealTimeLogResponse.d.ts +12 -0
- package/v3/model/DownloadRealTimeLogResponse.d.ts.map +1 -0
- package/v3/model/DownloadRealTimeLogResponse.js +23 -0
- package/v3/model/DownloadRealTimeLogResponse.js.map +1 -0
- package/v3/model/FlowGraph2Result.d.ts +10 -0
- package/v3/model/FlowGraph2Result.d.ts.map +1 -0
- package/v3/model/{FlowGraphResult.js → FlowGraph2Result.js} +4 -4
- package/v3/model/FlowGraph2Result.js.map +1 -0
- package/v3/model/FlowGraph2ResultEdges.d.ts +8 -0
- package/v3/model/FlowGraph2ResultEdges.d.ts.map +1 -0
- package/v3/model/{FlowGraphResultEdges.js → FlowGraph2ResultEdges.js} +4 -4
- package/v3/model/FlowGraph2ResultEdges.js.map +1 -0
- package/v3/model/FullStagesResult.d.ts +15 -0
- package/v3/model/FullStagesResult.d.ts.map +1 -0
- package/v3/model/FullStagesResult.js +19 -0
- package/v3/model/FullStagesResult.js.map +1 -0
- package/v3/model/ListBuildInfoRecordBodyResult.d.ts +25 -0
- package/v3/model/ListBuildInfoRecordBodyResult.d.ts.map +1 -0
- package/v3/model/ListBuildInfoRecordBodyResult.js +59 -0
- package/v3/model/ListBuildInfoRecordBodyResult.js.map +1 -0
- package/v3/model/ListBuildInfoRecordByJobIdRequest.d.ts +24 -0
- package/v3/model/ListBuildInfoRecordByJobIdRequest.d.ts.map +1 -0
- package/v3/model/ListBuildInfoRecordByJobIdRequest.js +62 -0
- package/v3/model/ListBuildInfoRecordByJobIdRequest.js.map +1 -0
- package/v3/model/ListBuildInfoRecordByJobIdResponse.d.ts +12 -0
- package/v3/model/ListBuildInfoRecordByJobIdResponse.d.ts.map +1 -0
- package/v3/model/ListBuildInfoRecordByJobIdResponse.js +23 -0
- package/v3/model/ListBuildInfoRecordByJobIdResponse.js.map +1 -0
- package/v3/model/ListBuildInfoRecordRequest.d.ts +24 -0
- package/v3/model/ListBuildInfoRecordRequest.d.ts.map +1 -0
- package/v3/model/ListBuildInfoRecordRequest.js +62 -0
- package/v3/model/ListBuildInfoRecordRequest.js.map +1 -0
- package/v3/model/ListBuildInfoRecordResponse.d.ts +12 -0
- package/v3/model/ListBuildInfoRecordResponse.d.ts.map +1 -0
- package/v3/model/ListBuildInfoRecordResponse.js +23 -0
- package/v3/model/ListBuildInfoRecordResponse.js.map +1 -0
- package/v3/model/ListOfficialTemplateRequest.d.ts +12 -0
- package/v3/model/ListOfficialTemplateRequest.d.ts.map +1 -0
- package/v3/model/ListOfficialTemplateRequest.js +27 -0
- package/v3/model/ListOfficialTemplateRequest.js.map +1 -0
- package/v3/model/ListOfficialTemplateResponse.d.ts +12 -0
- package/v3/model/ListOfficialTemplateResponse.d.ts.map +1 -0
- package/v3/model/ListOfficialTemplateResponse.js +23 -0
- package/v3/model/ListOfficialTemplateResponse.js.map +1 -0
- package/v3/model/ListOfficialTemplateResult.d.ts +11 -0
- package/v3/model/ListOfficialTemplateResult.d.ts.map +1 -0
- package/v3/model/ListOfficialTemplateResult.js +23 -0
- package/v3/model/ListOfficialTemplateResult.js.map +1 -0
- package/v3/model/ListProjectJobsRequest.d.ts +42 -0
- package/v3/model/ListProjectJobsRequest.d.ts.map +1 -0
- package/v3/model/ListProjectJobsRequest.js +106 -0
- package/v3/model/ListProjectJobsRequest.js.map +1 -0
- package/v3/model/ListProjectJobsResponse.d.ts +10 -0
- package/v3/model/ListProjectJobsResponse.d.ts.map +1 -0
- package/v3/model/ListProjectJobsResponse.js +19 -0
- package/v3/model/ListProjectJobsResponse.js.map +1 -0
- package/v3/model/ListRecyclingJobRequest.d.ts +14 -0
- package/v3/model/ListRecyclingJobRequest.d.ts.map +1 -0
- package/v3/model/ListRecyclingJobRequest.js +33 -0
- package/v3/model/ListRecyclingJobRequest.js.map +1 -0
- package/v3/model/ListRecyclingJobResponse.d.ts +18 -0
- package/v3/model/ListRecyclingJobResponse.d.ts.map +1 -0
- package/v3/model/ListRecyclingJobResponse.js +37 -0
- package/v3/model/ListRecyclingJobResponse.js.map +1 -0
- package/v3/model/Parameter.d.ts +9 -0
- package/v3/model/Parameter.d.ts.map +1 -0
- package/v3/model/Parameter.js +17 -0
- package/v3/model/Parameter.js.map +1 -0
- package/v3/model/Params.d.ts +19 -0
- package/v3/model/Params.d.ts.map +1 -0
- package/v3/model/Params.js +37 -0
- package/v3/model/Params.js.map +1 -0
- package/v3/model/RealTimeLogResponseBodyResult.d.ts +16 -0
- package/v3/model/RealTimeLogResponseBodyResult.d.ts.map +1 -0
- package/v3/model/RealTimeLogResponseBodyResult.js +37 -0
- package/v3/model/RealTimeLogResponseBodyResult.js.map +1 -0
- package/v3/model/RecyclingJob.d.ts +40 -0
- package/v3/model/RecyclingJob.d.ts.map +1 -0
- package/v3/model/RecyclingJob.js +99 -0
- package/v3/model/RecyclingJob.js.map +1 -0
- package/v3/model/RecyclingJobsResult.d.ts +15 -0
- package/v3/model/RecyclingJobsResult.d.ts.map +1 -0
- package/v3/model/RecyclingJobsResult.js +33 -0
- package/v3/model/RecyclingJobsResult.js.map +1 -0
- package/v3/model/ShowBuildParamsListRequest.d.ts +4 -0
- package/v3/model/ShowBuildParamsListRequest.d.ts.map +1 -0
- package/v3/model/ShowBuildParamsListRequest.js +9 -0
- package/v3/model/ShowBuildParamsListRequest.js.map +1 -0
- package/v3/model/ShowBuildParamsListResponse.d.ts +12 -0
- package/v3/model/ShowBuildParamsListResponse.d.ts.map +1 -0
- package/v3/model/ShowBuildParamsListResponse.js +23 -0
- package/v3/model/ShowBuildParamsListResponse.js.map +1 -0
- package/v3/model/ShowBuildRecordBuildScriptRequest.d.ts +8 -0
- package/v3/model/ShowBuildRecordBuildScriptRequest.d.ts.map +1 -0
- package/v3/model/ShowBuildRecordBuildScriptRequest.js +20 -0
- package/v3/model/ShowBuildRecordBuildScriptRequest.js.map +1 -0
- package/v3/model/ShowBuildRecordBuildScriptResponse.d.ts +11 -0
- package/v3/model/ShowBuildRecordBuildScriptResponse.d.ts.map +1 -0
- package/v3/model/ShowBuildRecordBuildScriptResponse.js +23 -0
- package/v3/model/ShowBuildRecordBuildScriptResponse.js.map +1 -0
- package/v3/model/ShowBuildRecordFullStagesRequest.d.ts +10 -0
- package/v3/model/ShowBuildRecordFullStagesRequest.d.ts.map +1 -0
- package/v3/model/ShowBuildRecordFullStagesRequest.js +24 -0
- package/v3/model/ShowBuildRecordFullStagesRequest.js.map +1 -0
- package/v3/model/ShowBuildRecordFullStagesResponse.d.ts +12 -0
- package/v3/model/ShowBuildRecordFullStagesResponse.d.ts.map +1 -0
- package/v3/model/ShowBuildRecordFullStagesResponse.js +23 -0
- package/v3/model/ShowBuildRecordFullStagesResponse.js.map +1 -0
- package/v3/model/ShowBuildRecordRequest.d.ts +8 -0
- package/v3/model/ShowBuildRecordRequest.d.ts.map +1 -0
- package/v3/model/ShowBuildRecordRequest.js +20 -0
- package/v3/model/ShowBuildRecordRequest.js.map +1 -0
- package/v3/model/ShowBuildRecordResponse.d.ts +12 -0
- package/v3/model/ShowBuildRecordResponse.d.ts.map +1 -0
- package/v3/model/ShowBuildRecordResponse.js +23 -0
- package/v3/model/ShowBuildRecordResponse.js.map +1 -0
- package/v3/model/ShowFlowGraphResponse.d.ts +3 -3
- package/v3/model/ShowFlowGraphResponse.d.ts.map +1 -1
- package/v3/model/ShowFlowGraphResponse.js.map +1 -1
- package/v3/model/ShowImageTemplateListRequest.d.ts +4 -0
- package/v3/model/ShowImageTemplateListRequest.d.ts.map +1 -0
- package/v3/model/ShowImageTemplateListRequest.js +9 -0
- package/v3/model/ShowImageTemplateListRequest.js.map +1 -0
- package/v3/model/ShowImageTemplateListResponse.d.ts +12 -0
- package/v3/model/ShowImageTemplateListResponse.d.ts.map +1 -0
- package/v3/model/ShowImageTemplateListResponse.js +23 -0
- package/v3/model/ShowImageTemplateListResponse.js.map +1 -0
- package/v3/model/ShowImageTemplateListResponseBodyResult.d.ts +9 -0
- package/v3/model/ShowImageTemplateListResponseBodyResult.d.ts.map +1 -0
- package/v3/model/ShowImageTemplateListResponseBodyResult.js +19 -0
- package/v3/model/ShowImageTemplateListResponseBodyResult.js.map +1 -0
- package/v3/model/ShowImageTemplateListResponseBodyResultImageTemplates.d.ts +30 -0
- package/v3/model/ShowImageTemplateListResponseBodyResultImageTemplates.d.ts.map +1 -0
- package/v3/model/ShowImageTemplateListResponseBodyResultImageTemplates.js +71 -0
- package/v3/model/ShowImageTemplateListResponseBodyResultImageTemplates.js.map +1 -0
- package/v3/model/ShowJobBuildSuccessRatioRequest.d.ts +16 -0
- package/v3/model/ShowJobBuildSuccessRatioRequest.d.ts.map +1 -0
- package/v3/model/ShowJobBuildSuccessRatioRequest.js +40 -0
- package/v3/model/ShowJobBuildSuccessRatioRequest.js.map +1 -0
- package/v3/model/ShowJobBuildSuccessRatioResponse.d.ts +10 -0
- package/v3/model/ShowJobBuildSuccessRatioResponse.d.ts.map +1 -0
- package/v3/model/ShowJobBuildSuccessRatioResponse.js +19 -0
- package/v3/model/ShowJobBuildSuccessRatioResponse.js.map +1 -0
- package/v3/model/ShowJobBuildSuccessRatioResult.d.ts +27 -0
- package/v3/model/ShowJobBuildSuccessRatioResult.d.ts.map +1 -0
- package/v3/model/ShowJobBuildSuccessRatioResult.js +63 -0
- package/v3/model/ShowJobBuildSuccessRatioResult.js.map +1 -0
- package/v3/model/ShowJobBuildSuccessRatioResultEveryDayReport.d.ts +10 -0
- package/v3/model/ShowJobBuildSuccessRatioResultEveryDayReport.d.ts.map +1 -0
- package/v3/model/ShowJobBuildSuccessRatioResultEveryDayReport.js +23 -0
- package/v3/model/ShowJobBuildSuccessRatioResultEveryDayReport.js.map +1 -0
- package/v3/model/ShowJobBuildTimeRequest.d.ts +16 -0
- package/v3/model/ShowJobBuildTimeRequest.d.ts.map +1 -0
- package/v3/model/ShowJobBuildTimeRequest.js +40 -0
- package/v3/model/ShowJobBuildTimeRequest.js.map +1 -0
- package/v3/model/ShowJobBuildTimeResponse.d.ts +10 -0
- package/v3/model/ShowJobBuildTimeResponse.d.ts.map +1 -0
- package/v3/model/ShowJobBuildTimeResponse.js +19 -0
- package/v3/model/ShowJobBuildTimeResponse.js.map +1 -0
- package/v3/model/ShowJobBuildTimeResult.d.ts +23 -0
- package/v3/model/ShowJobBuildTimeResult.d.ts.map +1 -0
- package/v3/model/ShowJobBuildTimeResult.js +53 -0
- package/v3/model/ShowJobBuildTimeResult.js.map +1 -0
- package/v3/model/ShowJobBuildTimeResultChart.d.ts +20 -0
- package/v3/model/ShowJobBuildTimeResultChart.d.ts.map +1 -0
- package/v3/model/ShowJobBuildTimeResultChart.js +49 -0
- package/v3/model/ShowJobBuildTimeResultChart.js.map +1 -0
- package/v3/model/ShowJobConfigDiffRequest.d.ts +16 -0
- package/v3/model/ShowJobConfigDiffRequest.d.ts.map +1 -0
- package/v3/model/ShowJobConfigDiffRequest.js +42 -0
- package/v3/model/ShowJobConfigDiffRequest.js.map +1 -0
- package/v3/model/ShowJobConfigDiffResponse.d.ts +9 -0
- package/v3/model/ShowJobConfigDiffResponse.d.ts.map +1 -0
- package/v3/model/ShowJobConfigDiffResponse.js +19 -0
- package/v3/model/ShowJobConfigDiffResponse.js.map +1 -0
- package/v3/model/ShowJobConfigRequest.d.ts +12 -0
- package/v3/model/ShowJobConfigRequest.d.ts.map +1 -0
- package/v3/model/ShowJobConfigRequest.js +30 -0
- package/v3/model/ShowJobConfigRequest.js.map +1 -0
- package/v3/model/ShowJobConfigResponse.d.ts +12 -0
- package/v3/model/ShowJobConfigResponse.d.ts.map +1 -0
- package/v3/model/ShowJobConfigResponse.js +23 -0
- package/v3/model/ShowJobConfigResponse.js.map +1 -0
- package/v3/model/ShowJobInfoRequest.d.ts +8 -0
- package/v3/model/ShowJobInfoRequest.d.ts.map +1 -0
- package/v3/model/ShowJobInfoRequest.js +20 -0
- package/v3/model/ShowJobInfoRequest.js.map +1 -0
- package/v3/model/ShowJobInfoResponse.d.ts +12 -0
- package/v3/model/ShowJobInfoResponse.d.ts.map +1 -0
- package/v3/model/ShowJobInfoResponse.js +23 -0
- package/v3/model/ShowJobInfoResponse.js.map +1 -0
- package/v3/model/ShowJobInfoResult.d.ts +86 -0
- package/v3/model/ShowJobInfoResult.d.ts.map +1 -0
- package/v3/model/ShowJobInfoResult.js +211 -0
- package/v3/model/ShowJobInfoResult.js.map +1 -0
- package/v3/model/ShowJobRolePermissionRequest.d.ts +8 -0
- package/v3/model/ShowJobRolePermissionRequest.d.ts.map +1 -0
- package/v3/model/ShowJobRolePermissionRequest.js +20 -0
- package/v3/model/ShowJobRolePermissionRequest.js.map +1 -0
- package/v3/model/ShowJobRolePermissionResponse.d.ts +10 -0
- package/v3/model/ShowJobRolePermissionResponse.d.ts.map +1 -0
- package/v3/model/ShowJobRolePermissionResponse.js +19 -0
- package/v3/model/ShowJobRolePermissionResponse.js.map +1 -0
- package/v3/model/ShowJobRolePermissionResult.d.ts +56 -0
- package/v3/model/ShowJobRolePermissionResult.d.ts.map +1 -0
- package/v3/model/ShowJobRolePermissionResult.js +137 -0
- package/v3/model/ShowJobRolePermissionResult.js.map +1 -0
- package/v3/model/ShowJobSystemParametersRequest.d.ts +4 -0
- package/v3/model/ShowJobSystemParametersRequest.d.ts.map +1 -0
- package/v3/model/ShowJobSystemParametersRequest.js +9 -0
- package/v3/model/ShowJobSystemParametersRequest.js.map +1 -0
- package/v3/model/ShowJobSystemParametersResponse.d.ts +12 -0
- package/v3/model/ShowJobSystemParametersResponse.d.ts.map +1 -0
- package/v3/model/ShowJobSystemParametersResponse.js +23 -0
- package/v3/model/ShowJobSystemParametersResponse.js.map +1 -0
- package/v3/model/ShowProjectPermissionRequest.d.ts +8 -0
- package/v3/model/ShowProjectPermissionRequest.d.ts.map +1 -0
- package/v3/model/ShowProjectPermissionRequest.js +20 -0
- package/v3/model/ShowProjectPermissionRequest.js.map +1 -0
- package/v3/model/ShowProjectPermissionResponse.d.ts +12 -0
- package/v3/model/ShowProjectPermissionResponse.d.ts.map +1 -0
- package/v3/model/ShowProjectPermissionResponse.js +23 -0
- package/v3/model/ShowProjectPermissionResponse.js.map +1 -0
- package/v3/model/ShowReportSummary.d.ts +44 -0
- package/v3/model/ShowReportSummary.d.ts.map +1 -0
- package/v3/model/ShowReportSummary.js +103 -0
- package/v3/model/ShowReportSummary.js.map +1 -0
- package/v3/model/ShowReportSummaryBodyResult.d.ts +11 -0
- package/v3/model/ShowReportSummaryBodyResult.d.ts.map +1 -0
- package/v3/model/ShowReportSummaryBodyResult.js +23 -0
- package/v3/model/ShowReportSummaryBodyResult.js.map +1 -0
- package/v3/model/ShowReportSummaryRequest.d.ts +12 -0
- package/v3/model/ShowReportSummaryRequest.d.ts.map +1 -0
- package/v3/model/ShowReportSummaryRequest.js +31 -0
- package/v3/model/ShowReportSummaryRequest.js.map +1 -0
- package/v3/model/ShowReportSummaryResponse.d.ts +12 -0
- package/v3/model/ShowReportSummaryResponse.d.ts.map +1 -0
- package/v3/model/ShowReportSummaryResponse.js +23 -0
- package/v3/model/ShowReportSummaryResponse.js.map +1 -0
- package/v3/model/ShowRunningStatusRequest.d.ts +8 -0
- package/v3/model/ShowRunningStatusRequest.d.ts.map +1 -0
- package/v3/model/ShowRunningStatusRequest.js +20 -0
- package/v3/model/ShowRunningStatusRequest.js.map +1 -0
- package/v3/model/ShowRunningStatusResponse.d.ts +12 -0
- package/v3/model/ShowRunningStatusResponse.d.ts.map +1 -0
- package/v3/model/ShowRunningStatusResponse.js +23 -0
- package/v3/model/ShowRunningStatusResponse.js.map +1 -0
- package/v3/model/ShowRunningStatusResult.d.ts +20 -0
- package/v3/model/ShowRunningStatusResult.d.ts.map +1 -0
- package/v3/model/ShowRunningStatusResult.js +49 -0
- package/v3/model/ShowRunningStatusResult.js.map +1 -0
- package/v3/model/ShowUserProjectPermissionResult.d.ts +28 -0
- package/v3/model/ShowUserProjectPermissionResult.d.ts.map +1 -0
- package/v3/model/ShowUserProjectPermissionResult.js +69 -0
- package/v3/model/ShowUserProjectPermissionResult.js.map +1 -0
- package/v3/model/ShowYamlTemplateRequest.d.ts +12 -0
- package/v3/model/ShowYamlTemplateRequest.d.ts.map +1 -0
- package/v3/model/ShowYamlTemplateRequest.js +30 -0
- package/v3/model/ShowYamlTemplateRequest.js.map +1 -0
- package/v3/model/ShowYamlTemplateResponse.d.ts +11 -0
- package/v3/model/ShowYamlTemplateResponse.d.ts.map +1 -0
- package/v3/model/ShowYamlTemplateResponse.js +23 -0
- package/v3/model/ShowYamlTemplateResponse.js.map +1 -0
- package/v3/model/SystemParametersResult.d.ts +12 -0
- package/v3/model/SystemParametersResult.d.ts.map +1 -0
- package/v3/model/SystemParametersResult.js +27 -0
- package/v3/model/SystemParametersResult.js.map +1 -0
- package/v3/model/TemplateList.d.ts +38 -0
- package/v3/model/TemplateList.d.ts.map +1 -0
- package/v3/model/TemplateList.js +79 -0
- package/v3/model/TemplateList.js.map +1 -0
- package/v3/public-api.d.ts +77 -2
- package/v3/public-api.d.ts.map +1 -1
- package/v3/public-api.js +77 -2
- package/v3/public-api.js.map +1 -1
- package/v3/model/FlowGraphResult.d.ts +0 -10
- package/v3/model/FlowGraphResult.d.ts.map +0 -1
- package/v3/model/FlowGraphResult.js.map +0 -1
- package/v3/model/FlowGraphResultEdges.d.ts +0 -8
- package/v3/model/FlowGraphResultEdges.d.ts.map +0 -1
- package/v3/model/FlowGraphResultEdges.js.map +0 -1
@@ -11,23 +11,42 @@ const DisableNoticeRequest_1 = require("./model/DisableNoticeRequest");
|
|
11
11
|
const DownloadBuildLogRequest_1 = require("./model/DownloadBuildLogRequest");
|
12
12
|
const DownloadKeystoreRequest_1 = require("./model/DownloadKeystoreRequest");
|
13
13
|
const DownloadLogByRecordIdRequest_1 = require("./model/DownloadLogByRecordIdRequest");
|
14
|
+
const DownloadRealTimeLogRequest_1 = require("./model/DownloadRealTimeLogRequest");
|
14
15
|
const DownloadTaskLogRequest_1 = require("./model/DownloadTaskLogRequest");
|
15
16
|
const EnableBuildJobRequest_1 = require("./model/EnableBuildJobRequest");
|
17
|
+
const ListBuildInfoRecordByJobIdRequest_1 = require("./model/ListBuildInfoRecordByJobIdRequest");
|
18
|
+
const ListBuildInfoRecordRequest_1 = require("./model/ListBuildInfoRecordRequest");
|
16
19
|
const ListJobConfigRequest_1 = require("./model/ListJobConfigRequest");
|
17
20
|
const ListNoticeRequest_1 = require("./model/ListNoticeRequest");
|
21
|
+
const ListOfficialTemplateRequest_1 = require("./model/ListOfficialTemplateRequest");
|
22
|
+
const ListProjectJobsRequest_1 = require("./model/ListProjectJobsRequest");
|
23
|
+
const ListRecyclingJobRequest_1 = require("./model/ListRecyclingJobRequest");
|
18
24
|
const ListTemplatesRequest_1 = require("./model/ListTemplatesRequest");
|
19
25
|
const RunJobRequest_1 = require("./model/RunJobRequest");
|
26
|
+
const ShowBuildRecordBuildScriptRequest_1 = require("./model/ShowBuildRecordBuildScriptRequest");
|
27
|
+
const ShowBuildRecordFullStagesRequest_1 = require("./model/ShowBuildRecordFullStagesRequest");
|
28
|
+
const ShowBuildRecordRequest_1 = require("./model/ShowBuildRecordRequest");
|
20
29
|
const ShowFlowGraphRequest_1 = require("./model/ShowFlowGraphRequest");
|
21
30
|
const ShowHistoryDetailsRequest_1 = require("./model/ShowHistoryDetailsRequest");
|
31
|
+
const ShowJobBuildSuccessRatioRequest_1 = require("./model/ShowJobBuildSuccessRatioRequest");
|
32
|
+
const ShowJobBuildTimeRequest_1 = require("./model/ShowJobBuildTimeRequest");
|
33
|
+
const ShowJobConfigDiffRequest_1 = require("./model/ShowJobConfigDiffRequest");
|
34
|
+
const ShowJobConfigRequest_1 = require("./model/ShowJobConfigRequest");
|
35
|
+
const ShowJobInfoRequest_1 = require("./model/ShowJobInfoRequest");
|
22
36
|
const ShowJobListByProjectIdRequest_1 = require("./model/ShowJobListByProjectIdRequest");
|
37
|
+
const ShowJobRolePermissionRequest_1 = require("./model/ShowJobRolePermissionRequest");
|
23
38
|
const ShowJobStatusRequest_1 = require("./model/ShowJobStatusRequest");
|
24
39
|
const ShowJobSuccessRatioRequest_1 = require("./model/ShowJobSuccessRatioRequest");
|
25
40
|
const ShowLastHistoryRequest_1 = require("./model/ShowLastHistoryRequest");
|
26
41
|
const ShowListHistoryRequest_1 = require("./model/ShowListHistoryRequest");
|
27
42
|
const ShowListPeriodHistoryRequest_1 = require("./model/ShowListPeriodHistoryRequest");
|
28
43
|
const ShowOutputInfoRequest_1 = require("./model/ShowOutputInfoRequest");
|
44
|
+
const ShowProjectPermissionRequest_1 = require("./model/ShowProjectPermissionRequest");
|
29
45
|
const ShowRecordDetailRequest_1 = require("./model/ShowRecordDetailRequest");
|
30
46
|
const ShowRecordInfoRequest_1 = require("./model/ShowRecordInfoRequest");
|
47
|
+
const ShowReportSummaryRequest_1 = require("./model/ShowReportSummaryRequest");
|
48
|
+
const ShowRunningStatusRequest_1 = require("./model/ShowRunningStatusRequest");
|
49
|
+
const ShowYamlTemplateRequest_1 = require("./model/ShowYamlTemplateRequest");
|
31
50
|
const StopBuildJobRequest_1 = require("./model/StopBuildJobRequest");
|
32
51
|
const StopJobRequest_1 = require("./model/StopJobRequest");
|
33
52
|
const UpdateBuildJobRequest_1 = require("./model/UpdateBuildJobRequest");
|
@@ -174,6 +193,25 @@ class CodeArtsBuildClient {
|
|
174
193
|
options['responseHeaders'] = [''];
|
175
194
|
return this.hcClient.sendRequest(options);
|
176
195
|
}
|
196
|
+
/**
|
197
|
+
* 下载构建实时日志
|
198
|
+
*
|
199
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
200
|
+
*
|
201
|
+
* @summary 下载构建实时日志
|
202
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
203
|
+
* @param {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
|
204
|
+
* @param {number} offset 偏移量,传入前一次请求返回的offset
|
205
|
+
* @param {number} [length] 可控制返回内容长度,默认值为1000000
|
206
|
+
* @param {*} [options] Override http request option.
|
207
|
+
* @throws {RequiredError}
|
208
|
+
*/
|
209
|
+
downloadRealTimeLog(downloadRealTimeLogRequest) {
|
210
|
+
const options = (0, exports.ParamCreater)().downloadRealTimeLog(downloadRealTimeLogRequest);
|
211
|
+
// @ts-ignore
|
212
|
+
options['responseHeaders'] = [''];
|
213
|
+
return this.hcClient.sendRequest(options);
|
214
|
+
}
|
177
215
|
/**
|
178
216
|
* 下载构建步骤日志
|
179
217
|
*
|
@@ -208,6 +246,46 @@ class CodeArtsBuildClient {
|
|
208
246
|
options['responseHeaders'] = [''];
|
209
247
|
return this.hcClient.sendRequest(options);
|
210
248
|
}
|
249
|
+
/**
|
250
|
+
* 获取任务构建记录列表
|
251
|
+
*
|
252
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
253
|
+
*
|
254
|
+
* @summary 获取任务构建记录列表
|
255
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
256
|
+
* @param {string} startTime 区间开始时间,格式yyyy-MM-dd HH:mm:ss。
|
257
|
+
* @param {string} endTime 区间结束时间,格式yyyy-MM-dd HH:mm:ss。
|
258
|
+
* @param {number} [pageIndex] 分页页码,表示从此页开始查询, page_index大于等于0
|
259
|
+
* @param {number} [pageSize] 每页显示的条目数量,page_size小于等于100
|
260
|
+
* @param {*} [options] Override http request option.
|
261
|
+
* @throws {RequiredError}
|
262
|
+
*/
|
263
|
+
listBuildInfoRecord(listBuildInfoRecordRequest) {
|
264
|
+
const options = (0, exports.ParamCreater)().listBuildInfoRecord(listBuildInfoRecordRequest);
|
265
|
+
// @ts-ignore
|
266
|
+
options['responseHeaders'] = [''];
|
267
|
+
return this.hcClient.sendRequest(options);
|
268
|
+
}
|
269
|
+
/**
|
270
|
+
* 获取任务构建记录列表v1
|
271
|
+
*
|
272
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
273
|
+
*
|
274
|
+
* @summary 获取任务构建记录列表v1
|
275
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
276
|
+
* @param {string} startTime 区间开始时间,格式yyyy-MM-dd HH:mm:ss。
|
277
|
+
* @param {string} endTime 区间结束时间,格式yyyy-MM-dd HH:mm:ss。
|
278
|
+
* @param {number} [pageIndex] 分页页码,表示从此页开始查询, page_index大于等于0
|
279
|
+
* @param {number} [pageSize] 每页显示的条目数量,page_size小于等于100
|
280
|
+
* @param {*} [options] Override http request option.
|
281
|
+
* @throws {RequiredError}
|
282
|
+
*/
|
283
|
+
listBuildInfoRecordByJobId(listBuildInfoRecordByJobIdRequest) {
|
284
|
+
const options = (0, exports.ParamCreater)().listBuildInfoRecordByJobId(listBuildInfoRecordByJobIdRequest);
|
285
|
+
// @ts-ignore
|
286
|
+
options['responseHeaders'] = [''];
|
287
|
+
return this.hcClient.sendRequest(options);
|
288
|
+
}
|
211
289
|
/**
|
212
290
|
* 获取构建任务详情
|
213
291
|
*
|
@@ -241,6 +319,67 @@ class CodeArtsBuildClient {
|
|
241
319
|
options['responseHeaders'] = [''];
|
242
320
|
return this.hcClient.sendRequest(options);
|
243
321
|
}
|
322
|
+
/**
|
323
|
+
* 查询官方模版
|
324
|
+
*
|
325
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
326
|
+
*
|
327
|
+
* @summary 查询官方模版
|
328
|
+
* @param {string} [name] 检索的模板的名字模糊查询
|
329
|
+
* @param {string} [page] 分页页码, 表示从此页开始查询
|
330
|
+
* @param {string} [pageSize] 每页显示的条目数量,page_size小于等于100
|
331
|
+
* @param {*} [options] Override http request option.
|
332
|
+
* @throws {RequiredError}
|
333
|
+
*/
|
334
|
+
listOfficialTemplate(listOfficialTemplateRequest) {
|
335
|
+
const options = (0, exports.ParamCreater)().listOfficialTemplate(listOfficialTemplateRequest);
|
336
|
+
// @ts-ignore
|
337
|
+
options['responseHeaders'] = [''];
|
338
|
+
return this.hcClient.sendRequest(options);
|
339
|
+
}
|
340
|
+
/**
|
341
|
+
* 查询项目任务列表
|
342
|
+
*
|
343
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
344
|
+
*
|
345
|
+
* @summary 查询项目任务列表
|
346
|
+
* @param {string} projectId CodeArts项目ID,32位数字、小写字母组合。
|
347
|
+
* @param {number} pageIndex **参数解释**: 分页页码, 表示从此页开始查询。 **约束限制**: 不涉及。 **取值范围**: 只能使用数字,大于等于0。
|
348
|
+
* @param {number} pageSize **参数解释**: 每页显示的条目数量。 **约束限制**: 不涉及。 **取值范围**: 只能使用数字,小于等于100。
|
349
|
+
* @param {string} [search] 查询条件
|
350
|
+
* @param {string} [sortField] 排序的字段
|
351
|
+
* @param {string} [sortOrder] 排序顺序
|
352
|
+
* @param {string} [creatorId] 创建人ID
|
353
|
+
* @param {string} [buildStatus] 构建状态过滤条件
|
354
|
+
* @param {boolean} [byGroup] 是否分组
|
355
|
+
* @param {string} [groupPathId] 分组ID
|
356
|
+
* @param {*} [options] Override http request option.
|
357
|
+
* @throws {RequiredError}
|
358
|
+
*/
|
359
|
+
listProjectJobs(listProjectJobsRequest) {
|
360
|
+
const options = (0, exports.ParamCreater)().listProjectJobs(listProjectJobsRequest);
|
361
|
+
// @ts-ignore
|
362
|
+
options['responseHeaders'] = [''];
|
363
|
+
return this.hcClient.sendRequest(options);
|
364
|
+
}
|
365
|
+
/**
|
366
|
+
* 查看回收站中删除的构建任务列表
|
367
|
+
*
|
368
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
369
|
+
*
|
370
|
+
* @summary 查看回收站中删除的构建任务列表
|
371
|
+
* @param {number} [pageSize] 每页显示的条目数量,page_size小于等于100
|
372
|
+
* @param {number} [pageNo] 分页页码, 表示从此页开始查询, page_no大于等于1
|
373
|
+
* @param {string} [search] 搜索的任务名称
|
374
|
+
* @param {*} [options] Override http request option.
|
375
|
+
* @throws {RequiredError}
|
376
|
+
*/
|
377
|
+
listRecyclingJob(listRecyclingJobRequest) {
|
378
|
+
const options = (0, exports.ParamCreater)().listRecyclingJob(listRecyclingJobRequest);
|
379
|
+
// @ts-ignore
|
380
|
+
options['responseHeaders'] = [''];
|
381
|
+
return this.hcClient.sendRequest(options);
|
382
|
+
}
|
244
383
|
/**
|
245
384
|
* 查询构建模板
|
246
385
|
*
|
@@ -275,6 +414,70 @@ class CodeArtsBuildClient {
|
|
275
414
|
options['responseHeaders'] = [''];
|
276
415
|
return this.hcClient.sendRequest(options);
|
277
416
|
}
|
417
|
+
/**
|
418
|
+
* 编辑页获取参数类型的接口
|
419
|
+
*
|
420
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
421
|
+
*
|
422
|
+
* @summary 编辑页获取参数类型的接口
|
423
|
+
* @param {*} [options] Override http request option.
|
424
|
+
* @throws {RequiredError}
|
425
|
+
*/
|
426
|
+
showBuildParamsList(showBuildParamsListRequest) {
|
427
|
+
const options = (0, exports.ParamCreater)().showBuildParamsList();
|
428
|
+
// @ts-ignore
|
429
|
+
options['responseHeaders'] = [''];
|
430
|
+
return this.hcClient.sendRequest(options);
|
431
|
+
}
|
432
|
+
/**
|
433
|
+
* 查询指定构建记录详情
|
434
|
+
*
|
435
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
436
|
+
*
|
437
|
+
* @summary 查询指定构建记录详情
|
438
|
+
* @param {string} recordId 记录ID,36位数字、小写字母、\'-\'组组合。
|
439
|
+
* @param {*} [options] Override http request option.
|
440
|
+
* @throws {RequiredError}
|
441
|
+
*/
|
442
|
+
showBuildRecord(showBuildRecordRequest) {
|
443
|
+
const options = (0, exports.ParamCreater)().showBuildRecord(showBuildRecordRequest);
|
444
|
+
// @ts-ignore
|
445
|
+
options['responseHeaders'] = [''];
|
446
|
+
return this.hcClient.sendRequest(options);
|
447
|
+
}
|
448
|
+
/**
|
449
|
+
* 获取构建记录的构建脚本
|
450
|
+
*
|
451
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
452
|
+
*
|
453
|
+
* @summary 获取构建记录的构建脚本
|
454
|
+
* @param {string} recordId 记录ID,36位数字、小写字母、\'-\'组组合。
|
455
|
+
* @param {*} [options] Override http request option.
|
456
|
+
* @throws {RequiredError}
|
457
|
+
*/
|
458
|
+
showBuildRecordBuildScript(showBuildRecordBuildScriptRequest) {
|
459
|
+
const options = (0, exports.ParamCreater)().showBuildRecordBuildScript(showBuildRecordBuildScriptRequest);
|
460
|
+
// @ts-ignore
|
461
|
+
options['responseHeaders'] = [''];
|
462
|
+
return this.hcClient.sendRequest(options);
|
463
|
+
}
|
464
|
+
/**
|
465
|
+
* 获取任务各阶段信息
|
466
|
+
*
|
467
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
468
|
+
*
|
469
|
+
* @summary 获取任务各阶段信息
|
470
|
+
* @param {string} recordId 记录ID,36位数字、小写字母、\'-\'组组合。
|
471
|
+
* @param {boolean} [cascade] 是否联级获取steps
|
472
|
+
* @param {*} [options] Override http request option.
|
473
|
+
* @throws {RequiredError}
|
474
|
+
*/
|
475
|
+
showBuildRecordFullStages(showBuildRecordFullStagesRequest) {
|
476
|
+
const options = (0, exports.ParamCreater)().showBuildRecordFullStages(showBuildRecordFullStagesRequest);
|
477
|
+
// @ts-ignore
|
478
|
+
options['responseHeaders'] = [''];
|
479
|
+
return this.hcClient.sendRequest(options);
|
480
|
+
}
|
278
481
|
/**
|
279
482
|
* 获取构建历史详情信息接口
|
280
483
|
*
|
@@ -292,6 +495,110 @@ class CodeArtsBuildClient {
|
|
292
495
|
options['responseHeaders'] = [''];
|
293
496
|
return this.hcClient.sendRequest(options);
|
294
497
|
}
|
498
|
+
/**
|
499
|
+
* 获取镜像模板列表
|
500
|
+
*
|
501
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
502
|
+
*
|
503
|
+
* @summary 获取镜像模板列表
|
504
|
+
* @param {*} [options] Override http request option.
|
505
|
+
* @throws {RequiredError}
|
506
|
+
*/
|
507
|
+
showImageTemplateList(showImageTemplateListRequest) {
|
508
|
+
const options = (0, exports.ParamCreater)().showImageTemplateList();
|
509
|
+
// @ts-ignore
|
510
|
+
options['responseHeaders'] = [''];
|
511
|
+
return this.hcClient.sendRequest(options);
|
512
|
+
}
|
513
|
+
/**
|
514
|
+
* 查询构建成功率
|
515
|
+
*
|
516
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
517
|
+
*
|
518
|
+
* @summary 查询构建成功率
|
519
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
520
|
+
* @param {string} repositoryName 代码仓名称。
|
521
|
+
* @param {number} interval 查询时间,查最近几天的。
|
522
|
+
* @param {string} [branch] 代码仓分支名。
|
523
|
+
* @param {*} [options] Override http request option.
|
524
|
+
* @throws {RequiredError}
|
525
|
+
*/
|
526
|
+
showJobBuildSuccessRatio(showJobBuildSuccessRatioRequest) {
|
527
|
+
const options = (0, exports.ParamCreater)().showJobBuildSuccessRatio(showJobBuildSuccessRatioRequest);
|
528
|
+
// @ts-ignore
|
529
|
+
options['responseHeaders'] = [''];
|
530
|
+
return this.hcClient.sendRequest(options);
|
531
|
+
}
|
532
|
+
/**
|
533
|
+
* 洞察构建时长
|
534
|
+
*
|
535
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
536
|
+
*
|
537
|
+
* @summary 洞察构建时长
|
538
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
539
|
+
* @param {string} repositoryName 代码仓名称。
|
540
|
+
* @param {number} interval 查询时间,查最近几天的。
|
541
|
+
* @param {string} [branch] 代码仓分支名。
|
542
|
+
* @param {*} [options] Override http request option.
|
543
|
+
* @throws {RequiredError}
|
544
|
+
*/
|
545
|
+
showJobBuildTime(showJobBuildTimeRequest) {
|
546
|
+
const options = (0, exports.ParamCreater)().showJobBuildTime(showJobBuildTimeRequest);
|
547
|
+
// @ts-ignore
|
548
|
+
options['responseHeaders'] = [''];
|
549
|
+
return this.hcClient.sendRequest(options);
|
550
|
+
}
|
551
|
+
/**
|
552
|
+
* 获取构建任务详情
|
553
|
+
*
|
554
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
555
|
+
*
|
556
|
+
* @summary 获取构建任务详情
|
557
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
558
|
+
* @param {string} [getAllParams] 输入\"true\"或者\"false\"来控制返回参数是不是完整的
|
559
|
+
* @param {*} [options] Override http request option.
|
560
|
+
* @throws {RequiredError}
|
561
|
+
*/
|
562
|
+
showJobConfig(showJobConfigRequest) {
|
563
|
+
const options = (0, exports.ParamCreater)().showJobConfig(showJobConfigRequest);
|
564
|
+
// @ts-ignore
|
565
|
+
options['responseHeaders'] = [''];
|
566
|
+
return this.hcClient.sendRequest(options);
|
567
|
+
}
|
568
|
+
/**
|
569
|
+
* 获取构建任务配置的对比差异
|
570
|
+
*
|
571
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
572
|
+
*
|
573
|
+
* @summary 获取构建任务配置的对比差异
|
574
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
575
|
+
* @param {string} revisedlNo 新记录的序号
|
576
|
+
* @param {string} originalNo 原记录的序号
|
577
|
+
* @param {*} [options] Override http request option.
|
578
|
+
* @throws {RequiredError}
|
579
|
+
*/
|
580
|
+
showJobConfigDiff(showJobConfigDiffRequest) {
|
581
|
+
const options = (0, exports.ParamCreater)().showJobConfigDiff(showJobConfigDiffRequest);
|
582
|
+
// @ts-ignore
|
583
|
+
options['responseHeaders'] = [''];
|
584
|
+
return this.hcClient.sendRequest(options);
|
585
|
+
}
|
586
|
+
/**
|
587
|
+
* 查看构建任务构建信息
|
588
|
+
*
|
589
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
590
|
+
*
|
591
|
+
* @summary 查看构建任务构建信息
|
592
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
593
|
+
* @param {*} [options] Override http request option.
|
594
|
+
* @throws {RequiredError}
|
595
|
+
*/
|
596
|
+
showJobInfo(showJobInfoRequest) {
|
597
|
+
const options = (0, exports.ParamCreater)().showJobInfo(showJobInfoRequest);
|
598
|
+
// @ts-ignore
|
599
|
+
options['responseHeaders'] = [''];
|
600
|
+
return this.hcClient.sendRequest(options);
|
601
|
+
}
|
295
602
|
/**
|
296
603
|
* 查看项目下用户的构建任务列表
|
297
604
|
*
|
@@ -310,6 +617,22 @@ class CodeArtsBuildClient {
|
|
310
617
|
options['responseHeaders'] = [''];
|
311
618
|
return this.hcClient.sendRequest(options);
|
312
619
|
}
|
620
|
+
/**
|
621
|
+
* 获取构建任务的角色权限矩阵信息
|
622
|
+
*
|
623
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
624
|
+
*
|
625
|
+
* @summary 获取构建任务的角色权限矩阵信息
|
626
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
627
|
+
* @param {*} [options] Override http request option.
|
628
|
+
* @throws {RequiredError}
|
629
|
+
*/
|
630
|
+
showJobRolePermission(showJobRolePermissionRequest) {
|
631
|
+
const options = (0, exports.ParamCreater)().showJobRolePermission(showJobRolePermissionRequest);
|
632
|
+
// @ts-ignore
|
633
|
+
options['responseHeaders'] = [''];
|
634
|
+
return this.hcClient.sendRequest(options);
|
635
|
+
}
|
313
636
|
/**
|
314
637
|
* 查看任务运行状态
|
315
638
|
*
|
@@ -344,6 +667,21 @@ class CodeArtsBuildClient {
|
|
344
667
|
options['responseHeaders'] = [''];
|
345
668
|
return this.hcClient.sendRequest(options);
|
346
669
|
}
|
670
|
+
/**
|
671
|
+
* 查看系统预定义参数
|
672
|
+
*
|
673
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
674
|
+
*
|
675
|
+
* @summary 查看系统预定义参数
|
676
|
+
* @param {*} [options] Override http request option.
|
677
|
+
* @throws {RequiredError}
|
678
|
+
*/
|
679
|
+
showJobSystemParameters(showJobSystemParametersRequest) {
|
680
|
+
const options = (0, exports.ParamCreater)().showJobSystemParameters();
|
681
|
+
// @ts-ignore
|
682
|
+
options['responseHeaders'] = [''];
|
683
|
+
return this.hcClient.sendRequest(options);
|
684
|
+
}
|
347
685
|
/**
|
348
686
|
* 查询指定代码仓库最近一次成功的构建历史
|
349
687
|
*
|
@@ -417,6 +755,22 @@ class CodeArtsBuildClient {
|
|
417
755
|
options['responseHeaders'] = [''];
|
418
756
|
return this.hcClient.sendRequest(options);
|
419
757
|
}
|
758
|
+
/**
|
759
|
+
* 获取用户权限
|
760
|
+
*
|
761
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
762
|
+
*
|
763
|
+
* @summary 获取用户权限
|
764
|
+
* @param {string} projectId CodeArts项目ID,32位数字、小写字母组合。
|
765
|
+
* @param {*} [options] Override http request option.
|
766
|
+
* @throws {RequiredError}
|
767
|
+
*/
|
768
|
+
showProjectPermission(showProjectPermissionRequest) {
|
769
|
+
const options = (0, exports.ParamCreater)().showProjectPermission(showProjectPermissionRequest);
|
770
|
+
// @ts-ignore
|
771
|
+
options['responseHeaders'] = [''];
|
772
|
+
return this.hcClient.sendRequest(options);
|
773
|
+
}
|
420
774
|
/**
|
421
775
|
* 获取构建记录信息
|
422
776
|
*
|
@@ -435,67 +789,117 @@ class CodeArtsBuildClient {
|
|
435
789
|
return this.hcClient.sendRequest(options);
|
436
790
|
}
|
437
791
|
/**
|
438
|
-
*
|
792
|
+
* 获取覆盖率接口
|
439
793
|
*
|
440
794
|
* Please refer to HUAWEI cloud API Explorer for details.
|
441
795
|
*
|
442
|
-
* @summary
|
796
|
+
* @summary 获取覆盖率接口
|
443
797
|
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
444
798
|
* @param {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
|
445
799
|
* @param {*} [options] Override http request option.
|
446
800
|
* @throws {RequiredError}
|
447
801
|
*/
|
448
|
-
|
449
|
-
const options = (0, exports.ParamCreater)().
|
802
|
+
showReportSummary(showReportSummaryRequest) {
|
803
|
+
const options = (0, exports.ParamCreater)().showReportSummary(showReportSummaryRequest);
|
450
804
|
// @ts-ignore
|
451
805
|
options['responseHeaders'] = [''];
|
452
806
|
return this.hcClient.sendRequest(options);
|
453
807
|
}
|
454
808
|
/**
|
455
|
-
*
|
809
|
+
* 查看任务是否在构建
|
456
810
|
*
|
457
811
|
* Please refer to HUAWEI cloud API Explorer for details.
|
458
812
|
*
|
459
|
-
* @summary
|
460
|
-
* @param {
|
813
|
+
* @summary 查看任务是否在构建
|
814
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
461
815
|
* @param {*} [options] Override http request option.
|
462
816
|
* @throws {RequiredError}
|
463
817
|
*/
|
464
|
-
|
465
|
-
const options = (0, exports.ParamCreater)().
|
818
|
+
showRunningStatus(showRunningStatusRequest) {
|
819
|
+
const options = (0, exports.ParamCreater)().showRunningStatus(showRunningStatusRequest);
|
466
820
|
// @ts-ignore
|
467
821
|
options['responseHeaders'] = [''];
|
468
822
|
return this.hcClient.sendRequest(options);
|
469
823
|
}
|
470
824
|
/**
|
471
|
-
*
|
825
|
+
* 获取代码化构建默认模板
|
472
826
|
*
|
473
827
|
* Please refer to HUAWEI cloud API Explorer for details.
|
474
828
|
*
|
475
|
-
* @summary
|
829
|
+
* @summary 获取代码化构建默认模板
|
476
830
|
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
477
|
-
* @param {
|
831
|
+
* @param {string} [defaultHost] 默认主机类型
|
478
832
|
* @param {*} [options] Override http request option.
|
479
833
|
* @throws {RequiredError}
|
480
834
|
*/
|
481
|
-
|
482
|
-
const options = (0, exports.ParamCreater)().
|
835
|
+
showYamlTemplate(showYamlTemplateRequest) {
|
836
|
+
const options = (0, exports.ParamCreater)().showYamlTemplate(showYamlTemplateRequest);
|
483
837
|
// @ts-ignore
|
484
838
|
options['responseHeaders'] = [''];
|
485
839
|
return this.hcClient.sendRequest(options);
|
486
840
|
}
|
487
841
|
/**
|
488
|
-
*
|
842
|
+
* 停止构建任务
|
489
843
|
*
|
490
844
|
* Please refer to HUAWEI cloud API Explorer for details.
|
491
845
|
*
|
492
|
-
* @summary
|
493
|
-
* @param {string}
|
846
|
+
* @summary 停止构建任务
|
847
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
848
|
+
* @param {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
|
494
849
|
* @param {*} [options] Override http request option.
|
495
850
|
* @throws {RequiredError}
|
496
851
|
*/
|
497
|
-
|
498
|
-
const options = (0, exports.ParamCreater)().
|
852
|
+
stopBuildJob(stopBuildJobRequest) {
|
853
|
+
const options = (0, exports.ParamCreater)().stopBuildJob(stopBuildJobRequest);
|
854
|
+
// @ts-ignore
|
855
|
+
options['responseHeaders'] = [''];
|
856
|
+
return this.hcClient.sendRequest(options);
|
857
|
+
}
|
858
|
+
/**
|
859
|
+
* 更新构建任务
|
860
|
+
*
|
861
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
862
|
+
*
|
863
|
+
* @summary 更新构建任务
|
864
|
+
* @param {UpdateBuildJobRequestBody} updateBuildJobRequestBody body
|
865
|
+
* @param {*} [options] Override http request option.
|
866
|
+
* @throws {RequiredError}
|
867
|
+
*/
|
868
|
+
updateBuildJob(updateBuildJobRequest) {
|
869
|
+
const options = (0, exports.ParamCreater)().updateBuildJob(updateBuildJobRequest);
|
870
|
+
// @ts-ignore
|
871
|
+
options['responseHeaders'] = [''];
|
872
|
+
return this.hcClient.sendRequest(options);
|
873
|
+
}
|
874
|
+
/**
|
875
|
+
* 更新通知
|
876
|
+
*
|
877
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
878
|
+
*
|
879
|
+
* @summary 更新通知
|
880
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
881
|
+
* @param {UpdateNoticeRequestBody} updateNoticeRequestBody body
|
882
|
+
* @param {*} [options] Override http request option.
|
883
|
+
* @throws {RequiredError}
|
884
|
+
*/
|
885
|
+
updateNotice(updateNoticeRequest) {
|
886
|
+
const options = (0, exports.ParamCreater)().updateNotice(updateNoticeRequest);
|
887
|
+
// @ts-ignore
|
888
|
+
options['responseHeaders'] = [''];
|
889
|
+
return this.hcClient.sendRequest(options);
|
890
|
+
}
|
891
|
+
/**
|
892
|
+
* 下载构建日志(待下线)
|
893
|
+
*
|
894
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
895
|
+
*
|
896
|
+
* @summary 下载构建日志(待下线)
|
897
|
+
* @param {string} recordId 记录ID,36位数字、小写字母、\'-\'组组合。
|
898
|
+
* @param {*} [options] Override http request option.
|
899
|
+
* @throws {RequiredError}
|
900
|
+
*/
|
901
|
+
downloadLogByRecordId(downloadLogByRecordIdRequest) {
|
902
|
+
const options = (0, exports.ParamCreater)().downloadLogByRecordId(downloadLogByRecordIdRequest);
|
499
903
|
// @ts-ignore
|
500
904
|
options['responseHeaders'] = [''];
|
501
905
|
return this.hcClient.sendRequest(options);
|
@@ -837,6 +1241,60 @@ const ParamCreater = function () {
|
|
837
1241
|
options.headers = localVarHeaderParameter;
|
838
1242
|
return options;
|
839
1243
|
},
|
1244
|
+
/**
|
1245
|
+
* 下载构建实时日志
|
1246
|
+
*
|
1247
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1248
|
+
*/
|
1249
|
+
downloadRealTimeLog(downloadRealTimeLogRequest) {
|
1250
|
+
const options = {
|
1251
|
+
method: "GET",
|
1252
|
+
url: "/v3/jobs/{job_id}/{build_no}/real-time-log",
|
1253
|
+
contentType: "application/json",
|
1254
|
+
queryParams: {},
|
1255
|
+
pathParams: {},
|
1256
|
+
headers: {}
|
1257
|
+
};
|
1258
|
+
const localVarHeaderParameter = {};
|
1259
|
+
const localVarQueryParameter = {};
|
1260
|
+
let jobId;
|
1261
|
+
let buildNo;
|
1262
|
+
let offset;
|
1263
|
+
let length;
|
1264
|
+
if (downloadRealTimeLogRequest !== null && downloadRealTimeLogRequest !== undefined) {
|
1265
|
+
if (downloadRealTimeLogRequest instanceof DownloadRealTimeLogRequest_1.DownloadRealTimeLogRequest) {
|
1266
|
+
jobId = downloadRealTimeLogRequest.jobId;
|
1267
|
+
buildNo = downloadRealTimeLogRequest.buildNo;
|
1268
|
+
offset = downloadRealTimeLogRequest.offset;
|
1269
|
+
length = downloadRealTimeLogRequest.length;
|
1270
|
+
}
|
1271
|
+
else {
|
1272
|
+
jobId = downloadRealTimeLogRequest['job_id'];
|
1273
|
+
buildNo = downloadRealTimeLogRequest['build_no'];
|
1274
|
+
offset = downloadRealTimeLogRequest['offset'];
|
1275
|
+
length = downloadRealTimeLogRequest['length'];
|
1276
|
+
}
|
1277
|
+
}
|
1278
|
+
if (jobId === null || jobId === undefined) {
|
1279
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling downloadRealTimeLog.');
|
1280
|
+
}
|
1281
|
+
if (buildNo === null || buildNo === undefined) {
|
1282
|
+
throw new RequiredError('buildNo', 'Required parameter buildNo was null or undefined when calling downloadRealTimeLog.');
|
1283
|
+
}
|
1284
|
+
if (offset === null || offset === undefined) {
|
1285
|
+
throw new RequiredError('offset', 'Required parameter offset was null or undefined when calling downloadRealTimeLog.');
|
1286
|
+
}
|
1287
|
+
if (offset !== null && offset !== undefined) {
|
1288
|
+
localVarQueryParameter['offset'] = offset;
|
1289
|
+
}
|
1290
|
+
if (length !== null && length !== undefined) {
|
1291
|
+
localVarQueryParameter['length'] = length;
|
1292
|
+
}
|
1293
|
+
options.queryParams = localVarQueryParameter;
|
1294
|
+
options.pathParams = { 'job_id': jobId, 'build_no': buildNo, };
|
1295
|
+
options.headers = localVarHeaderParameter;
|
1296
|
+
return options;
|
1297
|
+
},
|
840
1298
|
/**
|
841
1299
|
* 下载构建步骤日志
|
842
1300
|
*
|
@@ -916,6 +1374,132 @@ const ParamCreater = function () {
|
|
916
1374
|
options.headers = localVarHeaderParameter;
|
917
1375
|
return options;
|
918
1376
|
},
|
1377
|
+
/**
|
1378
|
+
* 获取任务构建记录列表
|
1379
|
+
*
|
1380
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1381
|
+
*/
|
1382
|
+
listBuildInfoRecord(listBuildInfoRecordRequest) {
|
1383
|
+
const options = {
|
1384
|
+
method: "GET",
|
1385
|
+
url: "/v3/jobs/{job_id}/build-info-records",
|
1386
|
+
contentType: "application/json",
|
1387
|
+
queryParams: {},
|
1388
|
+
pathParams: {},
|
1389
|
+
headers: {}
|
1390
|
+
};
|
1391
|
+
const localVarHeaderParameter = {};
|
1392
|
+
const localVarQueryParameter = {};
|
1393
|
+
let jobId;
|
1394
|
+
let startTime;
|
1395
|
+
let endTime;
|
1396
|
+
let pageIndex;
|
1397
|
+
let pageSize;
|
1398
|
+
if (listBuildInfoRecordRequest !== null && listBuildInfoRecordRequest !== undefined) {
|
1399
|
+
if (listBuildInfoRecordRequest instanceof ListBuildInfoRecordRequest_1.ListBuildInfoRecordRequest) {
|
1400
|
+
jobId = listBuildInfoRecordRequest.jobId;
|
1401
|
+
startTime = listBuildInfoRecordRequest.startTime;
|
1402
|
+
endTime = listBuildInfoRecordRequest.endTime;
|
1403
|
+
pageIndex = listBuildInfoRecordRequest.pageIndex;
|
1404
|
+
pageSize = listBuildInfoRecordRequest.pageSize;
|
1405
|
+
}
|
1406
|
+
else {
|
1407
|
+
jobId = listBuildInfoRecordRequest['job_id'];
|
1408
|
+
startTime = listBuildInfoRecordRequest['start_time'];
|
1409
|
+
endTime = listBuildInfoRecordRequest['end_time'];
|
1410
|
+
pageIndex = listBuildInfoRecordRequest['page_index'];
|
1411
|
+
pageSize = listBuildInfoRecordRequest['page_size'];
|
1412
|
+
}
|
1413
|
+
}
|
1414
|
+
if (jobId === null || jobId === undefined) {
|
1415
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling listBuildInfoRecord.');
|
1416
|
+
}
|
1417
|
+
if (startTime === null || startTime === undefined) {
|
1418
|
+
throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling listBuildInfoRecord.');
|
1419
|
+
}
|
1420
|
+
if (startTime !== null && startTime !== undefined) {
|
1421
|
+
localVarQueryParameter['start_time'] = startTime;
|
1422
|
+
}
|
1423
|
+
if (endTime === null || endTime === undefined) {
|
1424
|
+
throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling listBuildInfoRecord.');
|
1425
|
+
}
|
1426
|
+
if (endTime !== null && endTime !== undefined) {
|
1427
|
+
localVarQueryParameter['end_time'] = endTime;
|
1428
|
+
}
|
1429
|
+
if (pageIndex !== null && pageIndex !== undefined) {
|
1430
|
+
localVarQueryParameter['page_index'] = pageIndex;
|
1431
|
+
}
|
1432
|
+
if (pageSize !== null && pageSize !== undefined) {
|
1433
|
+
localVarQueryParameter['page_size'] = pageSize;
|
1434
|
+
}
|
1435
|
+
options.queryParams = localVarQueryParameter;
|
1436
|
+
options.pathParams = { 'job_id': jobId, };
|
1437
|
+
options.headers = localVarHeaderParameter;
|
1438
|
+
return options;
|
1439
|
+
},
|
1440
|
+
/**
|
1441
|
+
* 获取任务构建记录列表v1
|
1442
|
+
*
|
1443
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1444
|
+
*/
|
1445
|
+
listBuildInfoRecordByJobId(listBuildInfoRecordByJobIdRequest) {
|
1446
|
+
const options = {
|
1447
|
+
method: "GET",
|
1448
|
+
url: "/v1/record/{job_id}/list",
|
1449
|
+
contentType: "application/json",
|
1450
|
+
queryParams: {},
|
1451
|
+
pathParams: {},
|
1452
|
+
headers: {}
|
1453
|
+
};
|
1454
|
+
const localVarHeaderParameter = {};
|
1455
|
+
const localVarQueryParameter = {};
|
1456
|
+
let jobId;
|
1457
|
+
let startTime;
|
1458
|
+
let endTime;
|
1459
|
+
let pageIndex;
|
1460
|
+
let pageSize;
|
1461
|
+
if (listBuildInfoRecordByJobIdRequest !== null && listBuildInfoRecordByJobIdRequest !== undefined) {
|
1462
|
+
if (listBuildInfoRecordByJobIdRequest instanceof ListBuildInfoRecordByJobIdRequest_1.ListBuildInfoRecordByJobIdRequest) {
|
1463
|
+
jobId = listBuildInfoRecordByJobIdRequest.jobId;
|
1464
|
+
startTime = listBuildInfoRecordByJobIdRequest.startTime;
|
1465
|
+
endTime = listBuildInfoRecordByJobIdRequest.endTime;
|
1466
|
+
pageIndex = listBuildInfoRecordByJobIdRequest.pageIndex;
|
1467
|
+
pageSize = listBuildInfoRecordByJobIdRequest.pageSize;
|
1468
|
+
}
|
1469
|
+
else {
|
1470
|
+
jobId = listBuildInfoRecordByJobIdRequest['job_id'];
|
1471
|
+
startTime = listBuildInfoRecordByJobIdRequest['start_time'];
|
1472
|
+
endTime = listBuildInfoRecordByJobIdRequest['end_time'];
|
1473
|
+
pageIndex = listBuildInfoRecordByJobIdRequest['page_index'];
|
1474
|
+
pageSize = listBuildInfoRecordByJobIdRequest['page_size'];
|
1475
|
+
}
|
1476
|
+
}
|
1477
|
+
if (jobId === null || jobId === undefined) {
|
1478
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling listBuildInfoRecordByJobId.');
|
1479
|
+
}
|
1480
|
+
if (startTime === null || startTime === undefined) {
|
1481
|
+
throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling listBuildInfoRecordByJobId.');
|
1482
|
+
}
|
1483
|
+
if (startTime !== null && startTime !== undefined) {
|
1484
|
+
localVarQueryParameter['start_time'] = startTime;
|
1485
|
+
}
|
1486
|
+
if (endTime === null || endTime === undefined) {
|
1487
|
+
throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling listBuildInfoRecordByJobId.');
|
1488
|
+
}
|
1489
|
+
if (endTime !== null && endTime !== undefined) {
|
1490
|
+
localVarQueryParameter['end_time'] = endTime;
|
1491
|
+
}
|
1492
|
+
if (pageIndex !== null && pageIndex !== undefined) {
|
1493
|
+
localVarQueryParameter['page_index'] = pageIndex;
|
1494
|
+
}
|
1495
|
+
if (pageSize !== null && pageSize !== undefined) {
|
1496
|
+
localVarQueryParameter['page_size'] = pageSize;
|
1497
|
+
}
|
1498
|
+
options.queryParams = localVarQueryParameter;
|
1499
|
+
options.pathParams = { 'job_id': jobId, };
|
1500
|
+
options.headers = localVarHeaderParameter;
|
1501
|
+
return options;
|
1502
|
+
},
|
919
1503
|
/**
|
920
1504
|
* 获取构建任务详情
|
921
1505
|
*
|
@@ -940,61 +1524,611 @@ const ParamCreater = function () {
|
|
940
1524
|
getAllParams = listJobConfigRequest.getAllParams;
|
941
1525
|
}
|
942
1526
|
else {
|
943
|
-
jobId = listJobConfigRequest['job_id'];
|
944
|
-
getAllParams = listJobConfigRequest['get_all_params'];
|
1527
|
+
jobId = listJobConfigRequest['job_id'];
|
1528
|
+
getAllParams = listJobConfigRequest['get_all_params'];
|
1529
|
+
}
|
1530
|
+
}
|
1531
|
+
if (jobId === null || jobId === undefined) {
|
1532
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling listJobConfig.');
|
1533
|
+
}
|
1534
|
+
if (getAllParams !== null && getAllParams !== undefined) {
|
1535
|
+
localVarQueryParameter['get_all_params'] = getAllParams;
|
1536
|
+
}
|
1537
|
+
options.queryParams = localVarQueryParameter;
|
1538
|
+
options.pathParams = { 'job_id': jobId, };
|
1539
|
+
options.headers = localVarHeaderParameter;
|
1540
|
+
return options;
|
1541
|
+
},
|
1542
|
+
/**
|
1543
|
+
* 查询通知
|
1544
|
+
*
|
1545
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1546
|
+
*/
|
1547
|
+
listNotice(listNoticeRequest) {
|
1548
|
+
const options = {
|
1549
|
+
method: "GET",
|
1550
|
+
url: "/v3/jobs/notice/{job_id}/query",
|
1551
|
+
contentType: "application/json",
|
1552
|
+
queryParams: {},
|
1553
|
+
pathParams: {},
|
1554
|
+
headers: {}
|
1555
|
+
};
|
1556
|
+
const localVarHeaderParameter = {};
|
1557
|
+
let jobId;
|
1558
|
+
if (listNoticeRequest !== null && listNoticeRequest !== undefined) {
|
1559
|
+
if (listNoticeRequest instanceof ListNoticeRequest_1.ListNoticeRequest) {
|
1560
|
+
jobId = listNoticeRequest.jobId;
|
1561
|
+
}
|
1562
|
+
else {
|
1563
|
+
jobId = listNoticeRequest['job_id'];
|
1564
|
+
}
|
1565
|
+
}
|
1566
|
+
if (jobId === null || jobId === undefined) {
|
1567
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling listNotice.');
|
1568
|
+
}
|
1569
|
+
options.pathParams = { 'job_id': jobId, };
|
1570
|
+
options.headers = localVarHeaderParameter;
|
1571
|
+
return options;
|
1572
|
+
},
|
1573
|
+
/**
|
1574
|
+
* 查询官方模版
|
1575
|
+
*
|
1576
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1577
|
+
*/
|
1578
|
+
listOfficialTemplate(listOfficialTemplateRequest) {
|
1579
|
+
const options = {
|
1580
|
+
method: "GET",
|
1581
|
+
url: "/v1/template/officialtemplates",
|
1582
|
+
contentType: "application/json",
|
1583
|
+
queryParams: {},
|
1584
|
+
pathParams: {},
|
1585
|
+
headers: {}
|
1586
|
+
};
|
1587
|
+
const localVarHeaderParameter = {};
|
1588
|
+
const localVarQueryParameter = {};
|
1589
|
+
let name;
|
1590
|
+
let page;
|
1591
|
+
let pageSize;
|
1592
|
+
if (listOfficialTemplateRequest !== null && listOfficialTemplateRequest !== undefined) {
|
1593
|
+
if (listOfficialTemplateRequest instanceof ListOfficialTemplateRequest_1.ListOfficialTemplateRequest) {
|
1594
|
+
name = listOfficialTemplateRequest.name;
|
1595
|
+
page = listOfficialTemplateRequest.page;
|
1596
|
+
pageSize = listOfficialTemplateRequest.pageSize;
|
1597
|
+
}
|
1598
|
+
else {
|
1599
|
+
name = listOfficialTemplateRequest['name'];
|
1600
|
+
page = listOfficialTemplateRequest['page'];
|
1601
|
+
pageSize = listOfficialTemplateRequest['page_size'];
|
1602
|
+
}
|
1603
|
+
}
|
1604
|
+
if (name !== null && name !== undefined) {
|
1605
|
+
localVarQueryParameter['name'] = name;
|
1606
|
+
}
|
1607
|
+
if (page !== null && page !== undefined) {
|
1608
|
+
localVarQueryParameter['page'] = page;
|
1609
|
+
}
|
1610
|
+
if (pageSize !== null && pageSize !== undefined) {
|
1611
|
+
localVarQueryParameter['page_size'] = pageSize;
|
1612
|
+
}
|
1613
|
+
options.queryParams = localVarQueryParameter;
|
1614
|
+
options.headers = localVarHeaderParameter;
|
1615
|
+
return options;
|
1616
|
+
},
|
1617
|
+
/**
|
1618
|
+
* 查询项目任务列表
|
1619
|
+
*
|
1620
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1621
|
+
*/
|
1622
|
+
listProjectJobs(listProjectJobsRequest) {
|
1623
|
+
const options = {
|
1624
|
+
method: "GET",
|
1625
|
+
url: "/v1/job/{project_id}/list",
|
1626
|
+
contentType: "application/json",
|
1627
|
+
queryParams: {},
|
1628
|
+
pathParams: {},
|
1629
|
+
headers: {}
|
1630
|
+
};
|
1631
|
+
const localVarHeaderParameter = {};
|
1632
|
+
const localVarQueryParameter = {};
|
1633
|
+
let projectId;
|
1634
|
+
let pageIndex;
|
1635
|
+
let pageSize;
|
1636
|
+
let search;
|
1637
|
+
let sortField;
|
1638
|
+
let sortOrder;
|
1639
|
+
let creatorId;
|
1640
|
+
let buildStatus;
|
1641
|
+
let byGroup;
|
1642
|
+
let groupPathId;
|
1643
|
+
if (listProjectJobsRequest !== null && listProjectJobsRequest !== undefined) {
|
1644
|
+
if (listProjectJobsRequest instanceof ListProjectJobsRequest_1.ListProjectJobsRequest) {
|
1645
|
+
projectId = listProjectJobsRequest.projectId;
|
1646
|
+
pageIndex = listProjectJobsRequest.pageIndex;
|
1647
|
+
pageSize = listProjectJobsRequest.pageSize;
|
1648
|
+
search = listProjectJobsRequest.search;
|
1649
|
+
sortField = listProjectJobsRequest.sortField;
|
1650
|
+
sortOrder = listProjectJobsRequest.sortOrder;
|
1651
|
+
creatorId = listProjectJobsRequest.creatorId;
|
1652
|
+
buildStatus = listProjectJobsRequest.buildStatus;
|
1653
|
+
byGroup = listProjectJobsRequest.byGroup;
|
1654
|
+
groupPathId = listProjectJobsRequest.groupPathId;
|
1655
|
+
}
|
1656
|
+
else {
|
1657
|
+
projectId = listProjectJobsRequest['project_id'];
|
1658
|
+
pageIndex = listProjectJobsRequest['page_index'];
|
1659
|
+
pageSize = listProjectJobsRequest['page_size'];
|
1660
|
+
search = listProjectJobsRequest['search'];
|
1661
|
+
sortField = listProjectJobsRequest['sort_field'];
|
1662
|
+
sortOrder = listProjectJobsRequest['sort_order'];
|
1663
|
+
creatorId = listProjectJobsRequest['creator_id'];
|
1664
|
+
buildStatus = listProjectJobsRequest['build_status'];
|
1665
|
+
byGroup = listProjectJobsRequest['by_group'];
|
1666
|
+
groupPathId = listProjectJobsRequest['group_path_id'];
|
1667
|
+
}
|
1668
|
+
}
|
1669
|
+
if (projectId === null || projectId === undefined) {
|
1670
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listProjectJobs.');
|
1671
|
+
}
|
1672
|
+
if (pageIndex === null || pageIndex === undefined) {
|
1673
|
+
throw new RequiredError('pageIndex', 'Required parameter pageIndex was null or undefined when calling listProjectJobs.');
|
1674
|
+
}
|
1675
|
+
if (pageIndex !== null && pageIndex !== undefined) {
|
1676
|
+
localVarQueryParameter['page_index'] = pageIndex;
|
1677
|
+
}
|
1678
|
+
if (pageSize === null || pageSize === undefined) {
|
1679
|
+
throw new RequiredError('pageSize', 'Required parameter pageSize was null or undefined when calling listProjectJobs.');
|
1680
|
+
}
|
1681
|
+
if (pageSize !== null && pageSize !== undefined) {
|
1682
|
+
localVarQueryParameter['page_size'] = pageSize;
|
1683
|
+
}
|
1684
|
+
if (search !== null && search !== undefined) {
|
1685
|
+
localVarQueryParameter['search'] = search;
|
1686
|
+
}
|
1687
|
+
if (sortField !== null && sortField !== undefined) {
|
1688
|
+
localVarQueryParameter['sort_field'] = sortField;
|
1689
|
+
}
|
1690
|
+
if (sortOrder !== null && sortOrder !== undefined) {
|
1691
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
1692
|
+
}
|
1693
|
+
if (creatorId !== null && creatorId !== undefined) {
|
1694
|
+
localVarQueryParameter['creator_id'] = creatorId;
|
1695
|
+
}
|
1696
|
+
if (buildStatus !== null && buildStatus !== undefined) {
|
1697
|
+
localVarQueryParameter['build_status'] = buildStatus;
|
1698
|
+
}
|
1699
|
+
if (byGroup !== null && byGroup !== undefined) {
|
1700
|
+
localVarQueryParameter['by_group'] = byGroup;
|
1701
|
+
}
|
1702
|
+
if (groupPathId !== null && groupPathId !== undefined) {
|
1703
|
+
localVarQueryParameter['group_path_id'] = groupPathId;
|
1704
|
+
}
|
1705
|
+
options.queryParams = localVarQueryParameter;
|
1706
|
+
options.pathParams = { 'project_id': projectId, };
|
1707
|
+
options.headers = localVarHeaderParameter;
|
1708
|
+
return options;
|
1709
|
+
},
|
1710
|
+
/**
|
1711
|
+
* 查看回收站中删除的构建任务列表
|
1712
|
+
*
|
1713
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1714
|
+
*/
|
1715
|
+
listRecyclingJob(listRecyclingJobRequest) {
|
1716
|
+
const options = {
|
1717
|
+
method: "GET",
|
1718
|
+
url: "/v1/job/recycling-jobs",
|
1719
|
+
contentType: "application/json",
|
1720
|
+
queryParams: {},
|
1721
|
+
pathParams: {},
|
1722
|
+
headers: {}
|
1723
|
+
};
|
1724
|
+
const localVarHeaderParameter = {};
|
1725
|
+
const localVarQueryParameter = {};
|
1726
|
+
let pageSize;
|
1727
|
+
let pageNo;
|
1728
|
+
let search;
|
1729
|
+
if (listRecyclingJobRequest !== null && listRecyclingJobRequest !== undefined) {
|
1730
|
+
if (listRecyclingJobRequest instanceof ListRecyclingJobRequest_1.ListRecyclingJobRequest) {
|
1731
|
+
pageSize = listRecyclingJobRequest.pageSize;
|
1732
|
+
pageNo = listRecyclingJobRequest.pageNo;
|
1733
|
+
search = listRecyclingJobRequest.search;
|
1734
|
+
}
|
1735
|
+
else {
|
1736
|
+
pageSize = listRecyclingJobRequest['page_size'];
|
1737
|
+
pageNo = listRecyclingJobRequest['page_no'];
|
1738
|
+
search = listRecyclingJobRequest['search'];
|
1739
|
+
}
|
1740
|
+
}
|
1741
|
+
if (pageSize !== null && pageSize !== undefined) {
|
1742
|
+
localVarQueryParameter['page_size'] = pageSize;
|
1743
|
+
}
|
1744
|
+
if (pageNo !== null && pageNo !== undefined) {
|
1745
|
+
localVarQueryParameter['page_no'] = pageNo;
|
1746
|
+
}
|
1747
|
+
if (search !== null && search !== undefined) {
|
1748
|
+
localVarQueryParameter['search'] = search;
|
1749
|
+
}
|
1750
|
+
options.queryParams = localVarQueryParameter;
|
1751
|
+
options.headers = localVarHeaderParameter;
|
1752
|
+
return options;
|
1753
|
+
},
|
1754
|
+
/**
|
1755
|
+
* 查询构建模板
|
1756
|
+
*
|
1757
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1758
|
+
*/
|
1759
|
+
listTemplates(listTemplatesRequest) {
|
1760
|
+
const options = {
|
1761
|
+
method: "GET",
|
1762
|
+
url: "/v3/templates/query",
|
1763
|
+
contentType: "application/json",
|
1764
|
+
queryParams: {},
|
1765
|
+
pathParams: {},
|
1766
|
+
headers: {}
|
1767
|
+
};
|
1768
|
+
const localVarHeaderParameter = {};
|
1769
|
+
const localVarQueryParameter = {};
|
1770
|
+
let name;
|
1771
|
+
let page;
|
1772
|
+
let pageSize;
|
1773
|
+
if (listTemplatesRequest !== null && listTemplatesRequest !== undefined) {
|
1774
|
+
if (listTemplatesRequest instanceof ListTemplatesRequest_1.ListTemplatesRequest) {
|
1775
|
+
name = listTemplatesRequest.name;
|
1776
|
+
page = listTemplatesRequest.page;
|
1777
|
+
pageSize = listTemplatesRequest.pageSize;
|
1778
|
+
}
|
1779
|
+
else {
|
1780
|
+
name = listTemplatesRequest['name'];
|
1781
|
+
page = listTemplatesRequest['page'];
|
1782
|
+
pageSize = listTemplatesRequest['page_size'];
|
1783
|
+
}
|
1784
|
+
}
|
1785
|
+
if (name !== null && name !== undefined) {
|
1786
|
+
localVarQueryParameter['name'] = name;
|
1787
|
+
}
|
1788
|
+
if (page !== null && page !== undefined) {
|
1789
|
+
localVarQueryParameter['page'] = page;
|
1790
|
+
}
|
1791
|
+
if (pageSize !== null && pageSize !== undefined) {
|
1792
|
+
localVarQueryParameter['page_size'] = pageSize;
|
1793
|
+
}
|
1794
|
+
options.queryParams = localVarQueryParameter;
|
1795
|
+
options.headers = localVarHeaderParameter;
|
1796
|
+
return options;
|
1797
|
+
},
|
1798
|
+
/**
|
1799
|
+
* 执行构建任务,可传自定义参数
|
1800
|
+
*
|
1801
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1802
|
+
*/
|
1803
|
+
runJob(runJobRequest) {
|
1804
|
+
const options = {
|
1805
|
+
method: "POST",
|
1806
|
+
url: "/v3/jobs/build",
|
1807
|
+
contentType: "application/json",
|
1808
|
+
queryParams: {},
|
1809
|
+
pathParams: {},
|
1810
|
+
headers: {},
|
1811
|
+
data: {}
|
1812
|
+
};
|
1813
|
+
const localVarHeaderParameter = {};
|
1814
|
+
let body;
|
1815
|
+
if (runJobRequest !== null && runJobRequest !== undefined) {
|
1816
|
+
if (runJobRequest instanceof RunJobRequest_1.RunJobRequest) {
|
1817
|
+
body = runJobRequest.body;
|
1818
|
+
}
|
1819
|
+
else {
|
1820
|
+
body = runJobRequest['body'];
|
1821
|
+
}
|
1822
|
+
}
|
1823
|
+
if (body === null || body === undefined) {
|
1824
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1825
|
+
}
|
1826
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1827
|
+
options.data = body !== undefined ? body : {};
|
1828
|
+
options.headers = localVarHeaderParameter;
|
1829
|
+
return options;
|
1830
|
+
},
|
1831
|
+
/**
|
1832
|
+
* 编辑页获取参数类型的接口
|
1833
|
+
*
|
1834
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1835
|
+
*/
|
1836
|
+
showBuildParamsList() {
|
1837
|
+
const options = {
|
1838
|
+
method: "GET",
|
1839
|
+
url: "/v1/job/build-params",
|
1840
|
+
contentType: "application/json",
|
1841
|
+
queryParams: {},
|
1842
|
+
pathParams: {},
|
1843
|
+
headers: {}
|
1844
|
+
};
|
1845
|
+
const localVarHeaderParameter = {};
|
1846
|
+
options.headers = localVarHeaderParameter;
|
1847
|
+
return options;
|
1848
|
+
},
|
1849
|
+
/**
|
1850
|
+
* 查询指定构建记录详情
|
1851
|
+
*
|
1852
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1853
|
+
*/
|
1854
|
+
showBuildRecord(showBuildRecordRequest) {
|
1855
|
+
const options = {
|
1856
|
+
method: "GET",
|
1857
|
+
url: "/v1/record/{record_id}/info",
|
1858
|
+
contentType: "application/json",
|
1859
|
+
queryParams: {},
|
1860
|
+
pathParams: {},
|
1861
|
+
headers: {}
|
1862
|
+
};
|
1863
|
+
const localVarHeaderParameter = {};
|
1864
|
+
let recordId;
|
1865
|
+
if (showBuildRecordRequest !== null && showBuildRecordRequest !== undefined) {
|
1866
|
+
if (showBuildRecordRequest instanceof ShowBuildRecordRequest_1.ShowBuildRecordRequest) {
|
1867
|
+
recordId = showBuildRecordRequest.recordId;
|
1868
|
+
}
|
1869
|
+
else {
|
1870
|
+
recordId = showBuildRecordRequest['record_id'];
|
1871
|
+
}
|
1872
|
+
}
|
1873
|
+
if (recordId === null || recordId === undefined) {
|
1874
|
+
throw new RequiredError('recordId', 'Required parameter recordId was null or undefined when calling showBuildRecord.');
|
1875
|
+
}
|
1876
|
+
options.pathParams = { 'record_id': recordId, };
|
1877
|
+
options.headers = localVarHeaderParameter;
|
1878
|
+
return options;
|
1879
|
+
},
|
1880
|
+
/**
|
1881
|
+
* 获取构建记录的构建脚本
|
1882
|
+
*
|
1883
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1884
|
+
*/
|
1885
|
+
showBuildRecordBuildScript(showBuildRecordBuildScriptRequest) {
|
1886
|
+
const options = {
|
1887
|
+
method: "GET",
|
1888
|
+
url: "/v1/record/{record_id}/build-script",
|
1889
|
+
contentType: "application/json",
|
1890
|
+
queryParams: {},
|
1891
|
+
pathParams: {},
|
1892
|
+
headers: {}
|
1893
|
+
};
|
1894
|
+
const localVarHeaderParameter = {};
|
1895
|
+
let recordId;
|
1896
|
+
if (showBuildRecordBuildScriptRequest !== null && showBuildRecordBuildScriptRequest !== undefined) {
|
1897
|
+
if (showBuildRecordBuildScriptRequest instanceof ShowBuildRecordBuildScriptRequest_1.ShowBuildRecordBuildScriptRequest) {
|
1898
|
+
recordId = showBuildRecordBuildScriptRequest.recordId;
|
1899
|
+
}
|
1900
|
+
else {
|
1901
|
+
recordId = showBuildRecordBuildScriptRequest['record_id'];
|
1902
|
+
}
|
1903
|
+
}
|
1904
|
+
if (recordId === null || recordId === undefined) {
|
1905
|
+
throw new RequiredError('recordId', 'Required parameter recordId was null or undefined when calling showBuildRecordBuildScript.');
|
1906
|
+
}
|
1907
|
+
options.pathParams = { 'record_id': recordId, };
|
1908
|
+
options.headers = localVarHeaderParameter;
|
1909
|
+
return options;
|
1910
|
+
},
|
1911
|
+
/**
|
1912
|
+
* 获取任务各阶段信息
|
1913
|
+
*
|
1914
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1915
|
+
*/
|
1916
|
+
showBuildRecordFullStages(showBuildRecordFullStagesRequest) {
|
1917
|
+
const options = {
|
1918
|
+
method: "GET",
|
1919
|
+
url: "/v1/record/{record_id}/full-stages",
|
1920
|
+
contentType: "application/json",
|
1921
|
+
queryParams: {},
|
1922
|
+
pathParams: {},
|
1923
|
+
headers: {}
|
1924
|
+
};
|
1925
|
+
const localVarHeaderParameter = {};
|
1926
|
+
const localVarQueryParameter = {};
|
1927
|
+
let recordId;
|
1928
|
+
let cascade;
|
1929
|
+
if (showBuildRecordFullStagesRequest !== null && showBuildRecordFullStagesRequest !== undefined) {
|
1930
|
+
if (showBuildRecordFullStagesRequest instanceof ShowBuildRecordFullStagesRequest_1.ShowBuildRecordFullStagesRequest) {
|
1931
|
+
recordId = showBuildRecordFullStagesRequest.recordId;
|
1932
|
+
cascade = showBuildRecordFullStagesRequest.cascade;
|
1933
|
+
}
|
1934
|
+
else {
|
1935
|
+
recordId = showBuildRecordFullStagesRequest['record_id'];
|
1936
|
+
cascade = showBuildRecordFullStagesRequest['cascade'];
|
1937
|
+
}
|
1938
|
+
}
|
1939
|
+
if (recordId === null || recordId === undefined) {
|
1940
|
+
throw new RequiredError('recordId', 'Required parameter recordId was null or undefined when calling showBuildRecordFullStages.');
|
1941
|
+
}
|
1942
|
+
if (cascade !== null && cascade !== undefined) {
|
1943
|
+
localVarQueryParameter['cascade'] = cascade;
|
1944
|
+
}
|
1945
|
+
options.queryParams = localVarQueryParameter;
|
1946
|
+
options.pathParams = { 'record_id': recordId, };
|
1947
|
+
options.headers = localVarHeaderParameter;
|
1948
|
+
return options;
|
1949
|
+
},
|
1950
|
+
/**
|
1951
|
+
* 获取构建历史详情信息接口
|
1952
|
+
*
|
1953
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1954
|
+
*/
|
1955
|
+
showHistoryDetails(showHistoryDetailsRequest) {
|
1956
|
+
const options = {
|
1957
|
+
method: "GET",
|
1958
|
+
url: "/v3/jobs/{job_id}/{build_number}/history-details",
|
1959
|
+
contentType: "application/json",
|
1960
|
+
queryParams: {},
|
1961
|
+
pathParams: {},
|
1962
|
+
headers: {}
|
1963
|
+
};
|
1964
|
+
const localVarHeaderParameter = {};
|
1965
|
+
let jobId;
|
1966
|
+
let buildNumber;
|
1967
|
+
if (showHistoryDetailsRequest !== null && showHistoryDetailsRequest !== undefined) {
|
1968
|
+
if (showHistoryDetailsRequest instanceof ShowHistoryDetailsRequest_1.ShowHistoryDetailsRequest) {
|
1969
|
+
jobId = showHistoryDetailsRequest.jobId;
|
1970
|
+
buildNumber = showHistoryDetailsRequest.buildNumber;
|
1971
|
+
}
|
1972
|
+
else {
|
1973
|
+
jobId = showHistoryDetailsRequest['job_id'];
|
1974
|
+
buildNumber = showHistoryDetailsRequest['build_number'];
|
1975
|
+
}
|
1976
|
+
}
|
1977
|
+
if (jobId === null || jobId === undefined) {
|
1978
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showHistoryDetails.');
|
1979
|
+
}
|
1980
|
+
if (buildNumber === null || buildNumber === undefined) {
|
1981
|
+
throw new RequiredError('buildNumber', 'Required parameter buildNumber was null or undefined when calling showHistoryDetails.');
|
1982
|
+
}
|
1983
|
+
options.pathParams = { 'job_id': jobId, 'build_number': buildNumber, };
|
1984
|
+
options.headers = localVarHeaderParameter;
|
1985
|
+
return options;
|
1986
|
+
},
|
1987
|
+
/**
|
1988
|
+
* 获取镜像模板列表
|
1989
|
+
*
|
1990
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1991
|
+
*/
|
1992
|
+
showImageTemplateList() {
|
1993
|
+
const options = {
|
1994
|
+
method: "GET",
|
1995
|
+
url: "/v1/image/templates",
|
1996
|
+
contentType: "application/json",
|
1997
|
+
queryParams: {},
|
1998
|
+
pathParams: {},
|
1999
|
+
headers: {}
|
2000
|
+
};
|
2001
|
+
const localVarHeaderParameter = {};
|
2002
|
+
options.headers = localVarHeaderParameter;
|
2003
|
+
return options;
|
2004
|
+
},
|
2005
|
+
/**
|
2006
|
+
* 查询构建成功率
|
2007
|
+
*
|
2008
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2009
|
+
*/
|
2010
|
+
showJobBuildSuccessRatio(showJobBuildSuccessRatioRequest) {
|
2011
|
+
const options = {
|
2012
|
+
method: "GET",
|
2013
|
+
url: "/v1/report/ratio",
|
2014
|
+
contentType: "application/json",
|
2015
|
+
queryParams: {},
|
2016
|
+
pathParams: {},
|
2017
|
+
headers: {}
|
2018
|
+
};
|
2019
|
+
const localVarHeaderParameter = {};
|
2020
|
+
const localVarQueryParameter = {};
|
2021
|
+
let jobId;
|
2022
|
+
let repositoryName;
|
2023
|
+
let interval;
|
2024
|
+
let branch;
|
2025
|
+
if (showJobBuildSuccessRatioRequest !== null && showJobBuildSuccessRatioRequest !== undefined) {
|
2026
|
+
if (showJobBuildSuccessRatioRequest instanceof ShowJobBuildSuccessRatioRequest_1.ShowJobBuildSuccessRatioRequest) {
|
2027
|
+
jobId = showJobBuildSuccessRatioRequest.jobId;
|
2028
|
+
repositoryName = showJobBuildSuccessRatioRequest.repositoryName;
|
2029
|
+
interval = showJobBuildSuccessRatioRequest.interval;
|
2030
|
+
branch = showJobBuildSuccessRatioRequest.branch;
|
2031
|
+
}
|
2032
|
+
else {
|
2033
|
+
jobId = showJobBuildSuccessRatioRequest['job_id'];
|
2034
|
+
repositoryName = showJobBuildSuccessRatioRequest['repository_name'];
|
2035
|
+
interval = showJobBuildSuccessRatioRequest['interval'];
|
2036
|
+
branch = showJobBuildSuccessRatioRequest['branch'];
|
945
2037
|
}
|
946
2038
|
}
|
947
2039
|
if (jobId === null || jobId === undefined) {
|
948
|
-
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling
|
2040
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobBuildSuccessRatio.');
|
949
2041
|
}
|
950
|
-
if (
|
951
|
-
localVarQueryParameter['
|
2042
|
+
if (jobId !== null && jobId !== undefined) {
|
2043
|
+
localVarQueryParameter['job_id'] = jobId;
|
2044
|
+
}
|
2045
|
+
if (repositoryName === null || repositoryName === undefined) {
|
2046
|
+
throw new RequiredError('repositoryName', 'Required parameter repositoryName was null or undefined when calling showJobBuildSuccessRatio.');
|
2047
|
+
}
|
2048
|
+
if (repositoryName !== null && repositoryName !== undefined) {
|
2049
|
+
localVarQueryParameter['repository_name'] = repositoryName;
|
2050
|
+
}
|
2051
|
+
if (interval === null || interval === undefined) {
|
2052
|
+
throw new RequiredError('interval', 'Required parameter interval was null or undefined when calling showJobBuildSuccessRatio.');
|
2053
|
+
}
|
2054
|
+
if (interval !== null && interval !== undefined) {
|
2055
|
+
localVarQueryParameter['interval'] = interval;
|
2056
|
+
}
|
2057
|
+
if (branch !== null && branch !== undefined) {
|
2058
|
+
localVarQueryParameter['branch'] = branch;
|
952
2059
|
}
|
953
2060
|
options.queryParams = localVarQueryParameter;
|
954
|
-
options.pathParams = { 'job_id': jobId, };
|
955
2061
|
options.headers = localVarHeaderParameter;
|
956
2062
|
return options;
|
957
2063
|
},
|
958
2064
|
/**
|
959
|
-
*
|
2065
|
+
* 洞察构建时长
|
960
2066
|
*
|
961
2067
|
* Please refer to HUAWEI cloud API Explorer for details.
|
962
2068
|
*/
|
963
|
-
|
2069
|
+
showJobBuildTime(showJobBuildTimeRequest) {
|
964
2070
|
const options = {
|
965
2071
|
method: "GET",
|
966
|
-
url: "/
|
2072
|
+
url: "/v1/report/time",
|
967
2073
|
contentType: "application/json",
|
968
2074
|
queryParams: {},
|
969
2075
|
pathParams: {},
|
970
2076
|
headers: {}
|
971
2077
|
};
|
972
2078
|
const localVarHeaderParameter = {};
|
2079
|
+
const localVarQueryParameter = {};
|
973
2080
|
let jobId;
|
974
|
-
|
975
|
-
|
976
|
-
|
2081
|
+
let repositoryName;
|
2082
|
+
let interval;
|
2083
|
+
let branch;
|
2084
|
+
if (showJobBuildTimeRequest !== null && showJobBuildTimeRequest !== undefined) {
|
2085
|
+
if (showJobBuildTimeRequest instanceof ShowJobBuildTimeRequest_1.ShowJobBuildTimeRequest) {
|
2086
|
+
jobId = showJobBuildTimeRequest.jobId;
|
2087
|
+
repositoryName = showJobBuildTimeRequest.repositoryName;
|
2088
|
+
interval = showJobBuildTimeRequest.interval;
|
2089
|
+
branch = showJobBuildTimeRequest.branch;
|
977
2090
|
}
|
978
2091
|
else {
|
979
|
-
jobId =
|
2092
|
+
jobId = showJobBuildTimeRequest['job_id'];
|
2093
|
+
repositoryName = showJobBuildTimeRequest['repository_name'];
|
2094
|
+
interval = showJobBuildTimeRequest['interval'];
|
2095
|
+
branch = showJobBuildTimeRequest['branch'];
|
980
2096
|
}
|
981
2097
|
}
|
982
2098
|
if (jobId === null || jobId === undefined) {
|
983
|
-
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling
|
2099
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobBuildTime.');
|
984
2100
|
}
|
985
|
-
|
2101
|
+
if (jobId !== null && jobId !== undefined) {
|
2102
|
+
localVarQueryParameter['job_id'] = jobId;
|
2103
|
+
}
|
2104
|
+
if (repositoryName === null || repositoryName === undefined) {
|
2105
|
+
throw new RequiredError('repositoryName', 'Required parameter repositoryName was null or undefined when calling showJobBuildTime.');
|
2106
|
+
}
|
2107
|
+
if (repositoryName !== null && repositoryName !== undefined) {
|
2108
|
+
localVarQueryParameter['repository_name'] = repositoryName;
|
2109
|
+
}
|
2110
|
+
if (interval === null || interval === undefined) {
|
2111
|
+
throw new RequiredError('interval', 'Required parameter interval was null or undefined when calling showJobBuildTime.');
|
2112
|
+
}
|
2113
|
+
if (interval !== null && interval !== undefined) {
|
2114
|
+
localVarQueryParameter['interval'] = interval;
|
2115
|
+
}
|
2116
|
+
if (branch !== null && branch !== undefined) {
|
2117
|
+
localVarQueryParameter['branch'] = branch;
|
2118
|
+
}
|
2119
|
+
options.queryParams = localVarQueryParameter;
|
986
2120
|
options.headers = localVarHeaderParameter;
|
987
2121
|
return options;
|
988
2122
|
},
|
989
2123
|
/**
|
990
|
-
*
|
2124
|
+
* 获取构建任务详情
|
991
2125
|
*
|
992
2126
|
* Please refer to HUAWEI cloud API Explorer for details.
|
993
2127
|
*/
|
994
|
-
|
2128
|
+
showJobConfig(showJobConfigRequest) {
|
995
2129
|
const options = {
|
996
2130
|
method: "GET",
|
997
|
-
url: "/
|
2131
|
+
url: "/v1/job/{job_id}/config",
|
998
2132
|
contentType: "application/json",
|
999
2133
|
queryParams: {},
|
1000
2134
|
pathParams: {},
|
@@ -1002,76 +2136,89 @@ const ParamCreater = function () {
|
|
1002
2136
|
};
|
1003
2137
|
const localVarHeaderParameter = {};
|
1004
2138
|
const localVarQueryParameter = {};
|
1005
|
-
let
|
1006
|
-
let
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
page = listTemplatesRequest.page;
|
1012
|
-
pageSize = listTemplatesRequest.pageSize;
|
2139
|
+
let jobId;
|
2140
|
+
let getAllParams;
|
2141
|
+
if (showJobConfigRequest !== null && showJobConfigRequest !== undefined) {
|
2142
|
+
if (showJobConfigRequest instanceof ShowJobConfigRequest_1.ShowJobConfigRequest) {
|
2143
|
+
jobId = showJobConfigRequest.jobId;
|
2144
|
+
getAllParams = showJobConfigRequest.getAllParams;
|
1013
2145
|
}
|
1014
2146
|
else {
|
1015
|
-
|
1016
|
-
|
1017
|
-
pageSize = listTemplatesRequest['page_size'];
|
2147
|
+
jobId = showJobConfigRequest['job_id'];
|
2148
|
+
getAllParams = showJobConfigRequest['get_all_params'];
|
1018
2149
|
}
|
1019
2150
|
}
|
1020
|
-
if (
|
1021
|
-
|
1022
|
-
}
|
1023
|
-
if (page !== null && page !== undefined) {
|
1024
|
-
localVarQueryParameter['page'] = page;
|
2151
|
+
if (jobId === null || jobId === undefined) {
|
2152
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobConfig.');
|
1025
2153
|
}
|
1026
|
-
if (
|
1027
|
-
localVarQueryParameter['
|
2154
|
+
if (getAllParams !== null && getAllParams !== undefined) {
|
2155
|
+
localVarQueryParameter['get_all_params'] = getAllParams;
|
1028
2156
|
}
|
1029
2157
|
options.queryParams = localVarQueryParameter;
|
2158
|
+
options.pathParams = { 'job_id': jobId, };
|
1030
2159
|
options.headers = localVarHeaderParameter;
|
1031
2160
|
return options;
|
1032
2161
|
},
|
1033
2162
|
/**
|
1034
|
-
*
|
2163
|
+
* 获取构建任务配置的对比差异
|
1035
2164
|
*
|
1036
2165
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1037
2166
|
*/
|
1038
|
-
|
2167
|
+
showJobConfigDiff(showJobConfigDiffRequest) {
|
1039
2168
|
const options = {
|
1040
|
-
method: "
|
1041
|
-
url: "/
|
2169
|
+
method: "GET",
|
2170
|
+
url: "/v1/job/{job_id}/diff",
|
1042
2171
|
contentType: "application/json",
|
1043
2172
|
queryParams: {},
|
1044
2173
|
pathParams: {},
|
1045
|
-
headers: {}
|
1046
|
-
data: {}
|
2174
|
+
headers: {}
|
1047
2175
|
};
|
1048
2176
|
const localVarHeaderParameter = {};
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
2177
|
+
const localVarQueryParameter = {};
|
2178
|
+
let jobId;
|
2179
|
+
let revisedlNo;
|
2180
|
+
let originalNo;
|
2181
|
+
if (showJobConfigDiffRequest !== null && showJobConfigDiffRequest !== undefined) {
|
2182
|
+
if (showJobConfigDiffRequest instanceof ShowJobConfigDiffRequest_1.ShowJobConfigDiffRequest) {
|
2183
|
+
jobId = showJobConfigDiffRequest.jobId;
|
2184
|
+
revisedlNo = showJobConfigDiffRequest.revisedlNo;
|
2185
|
+
originalNo = showJobConfigDiffRequest.originalNo;
|
1053
2186
|
}
|
1054
2187
|
else {
|
1055
|
-
|
2188
|
+
jobId = showJobConfigDiffRequest['job_id'];
|
2189
|
+
revisedlNo = showJobConfigDiffRequest['revisedl_no'];
|
2190
|
+
originalNo = showJobConfigDiffRequest['original_no'];
|
1056
2191
|
}
|
1057
2192
|
}
|
1058
|
-
if (
|
1059
|
-
throw new RequiredError('
|
2193
|
+
if (jobId === null || jobId === undefined) {
|
2194
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobConfigDiff.');
|
1060
2195
|
}
|
1061
|
-
|
1062
|
-
|
2196
|
+
if (revisedlNo === null || revisedlNo === undefined) {
|
2197
|
+
throw new RequiredError('revisedlNo', 'Required parameter revisedlNo was null or undefined when calling showJobConfigDiff.');
|
2198
|
+
}
|
2199
|
+
if (revisedlNo !== null && revisedlNo !== undefined) {
|
2200
|
+
localVarQueryParameter['revisedl_no'] = revisedlNo;
|
2201
|
+
}
|
2202
|
+
if (originalNo === null || originalNo === undefined) {
|
2203
|
+
throw new RequiredError('originalNo', 'Required parameter originalNo was null or undefined when calling showJobConfigDiff.');
|
2204
|
+
}
|
2205
|
+
if (originalNo !== null && originalNo !== undefined) {
|
2206
|
+
localVarQueryParameter['original_no'] = originalNo;
|
2207
|
+
}
|
2208
|
+
options.queryParams = localVarQueryParameter;
|
2209
|
+
options.pathParams = { 'job_id': jobId, };
|
1063
2210
|
options.headers = localVarHeaderParameter;
|
1064
2211
|
return options;
|
1065
2212
|
},
|
1066
2213
|
/**
|
1067
|
-
*
|
2214
|
+
* 查看构建任务构建信息
|
1068
2215
|
*
|
1069
2216
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1070
2217
|
*/
|
1071
|
-
|
2218
|
+
showJobInfo(showJobInfoRequest) {
|
1072
2219
|
const options = {
|
1073
2220
|
method: "GET",
|
1074
|
-
url: "/
|
2221
|
+
url: "/v1/job/{job_id}/info",
|
1075
2222
|
contentType: "application/json",
|
1076
2223
|
queryParams: {},
|
1077
2224
|
pathParams: {},
|
@@ -1079,24 +2226,18 @@ const ParamCreater = function () {
|
|
1079
2226
|
};
|
1080
2227
|
const localVarHeaderParameter = {};
|
1081
2228
|
let jobId;
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
jobId = showHistoryDetailsRequest.jobId;
|
1086
|
-
buildNumber = showHistoryDetailsRequest.buildNumber;
|
2229
|
+
if (showJobInfoRequest !== null && showJobInfoRequest !== undefined) {
|
2230
|
+
if (showJobInfoRequest instanceof ShowJobInfoRequest_1.ShowJobInfoRequest) {
|
2231
|
+
jobId = showJobInfoRequest.jobId;
|
1087
2232
|
}
|
1088
2233
|
else {
|
1089
|
-
jobId =
|
1090
|
-
buildNumber = showHistoryDetailsRequest['build_number'];
|
2234
|
+
jobId = showJobInfoRequest['job_id'];
|
1091
2235
|
}
|
1092
2236
|
}
|
1093
2237
|
if (jobId === null || jobId === undefined) {
|
1094
|
-
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling
|
2238
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobInfo.');
|
1095
2239
|
}
|
1096
|
-
|
1097
|
-
throw new RequiredError('buildNumber', 'Required parameter buildNumber was null or undefined when calling showHistoryDetails.');
|
1098
|
-
}
|
1099
|
-
options.pathParams = { 'job_id': jobId, 'build_number': buildNumber, };
|
2240
|
+
options.pathParams = { 'job_id': jobId, };
|
1100
2241
|
options.headers = localVarHeaderParameter;
|
1101
2242
|
return options;
|
1102
2243
|
},
|
@@ -1151,6 +2292,41 @@ const ParamCreater = function () {
|
|
1151
2292
|
options.headers = localVarHeaderParameter;
|
1152
2293
|
return options;
|
1153
2294
|
},
|
2295
|
+
/**
|
2296
|
+
* 获取构建任务的角色权限矩阵信息
|
2297
|
+
*
|
2298
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2299
|
+
*/
|
2300
|
+
showJobRolePermission(showJobRolePermissionRequest) {
|
2301
|
+
const options = {
|
2302
|
+
method: "GET",
|
2303
|
+
url: "/v1/job/permission/role",
|
2304
|
+
contentType: "application/json",
|
2305
|
+
queryParams: {},
|
2306
|
+
pathParams: {},
|
2307
|
+
headers: {}
|
2308
|
+
};
|
2309
|
+
const localVarHeaderParameter = {};
|
2310
|
+
const localVarQueryParameter = {};
|
2311
|
+
let jobId;
|
2312
|
+
if (showJobRolePermissionRequest !== null && showJobRolePermissionRequest !== undefined) {
|
2313
|
+
if (showJobRolePermissionRequest instanceof ShowJobRolePermissionRequest_1.ShowJobRolePermissionRequest) {
|
2314
|
+
jobId = showJobRolePermissionRequest.jobId;
|
2315
|
+
}
|
2316
|
+
else {
|
2317
|
+
jobId = showJobRolePermissionRequest['job_id'];
|
2318
|
+
}
|
2319
|
+
}
|
2320
|
+
if (jobId === null || jobId === undefined) {
|
2321
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobRolePermission.');
|
2322
|
+
}
|
2323
|
+
if (jobId !== null && jobId !== undefined) {
|
2324
|
+
localVarQueryParameter['job_id'] = jobId;
|
2325
|
+
}
|
2326
|
+
options.queryParams = localVarQueryParameter;
|
2327
|
+
options.headers = localVarHeaderParameter;
|
2328
|
+
return options;
|
2329
|
+
},
|
1154
2330
|
/**
|
1155
2331
|
* 查看任务运行状态
|
1156
2332
|
*
|
@@ -1233,6 +2409,24 @@ const ParamCreater = function () {
|
|
1233
2409
|
options.headers = localVarHeaderParameter;
|
1234
2410
|
return options;
|
1235
2411
|
},
|
2412
|
+
/**
|
2413
|
+
* 查看系统预定义参数
|
2414
|
+
*
|
2415
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2416
|
+
*/
|
2417
|
+
showJobSystemParameters() {
|
2418
|
+
const options = {
|
2419
|
+
method: "GET",
|
2420
|
+
url: "/v1/job/system-parameters",
|
2421
|
+
contentType: "application/json",
|
2422
|
+
queryParams: {},
|
2423
|
+
pathParams: {},
|
2424
|
+
headers: {}
|
2425
|
+
};
|
2426
|
+
const localVarHeaderParameter = {};
|
2427
|
+
options.headers = localVarHeaderParameter;
|
2428
|
+
return options;
|
2429
|
+
},
|
1236
2430
|
/**
|
1237
2431
|
* 查询指定代码仓库最近一次成功的构建历史
|
1238
2432
|
*
|
@@ -1441,6 +2635,41 @@ const ParamCreater = function () {
|
|
1441
2635
|
options.headers = localVarHeaderParameter;
|
1442
2636
|
return options;
|
1443
2637
|
},
|
2638
|
+
/**
|
2639
|
+
* 获取用户权限
|
2640
|
+
*
|
2641
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2642
|
+
*/
|
2643
|
+
showProjectPermission(showProjectPermissionRequest) {
|
2644
|
+
const options = {
|
2645
|
+
method: "GET",
|
2646
|
+
url: "/v1/domain/user-permission",
|
2647
|
+
contentType: "application/json",
|
2648
|
+
queryParams: {},
|
2649
|
+
pathParams: {},
|
2650
|
+
headers: {}
|
2651
|
+
};
|
2652
|
+
const localVarHeaderParameter = {};
|
2653
|
+
const localVarQueryParameter = {};
|
2654
|
+
let projectId;
|
2655
|
+
if (showProjectPermissionRequest !== null && showProjectPermissionRequest !== undefined) {
|
2656
|
+
if (showProjectPermissionRequest instanceof ShowProjectPermissionRequest_1.ShowProjectPermissionRequest) {
|
2657
|
+
projectId = showProjectPermissionRequest.projectId;
|
2658
|
+
}
|
2659
|
+
else {
|
2660
|
+
projectId = showProjectPermissionRequest['project_id'];
|
2661
|
+
}
|
2662
|
+
}
|
2663
|
+
if (projectId === null || projectId === undefined) {
|
2664
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling showProjectPermission.');
|
2665
|
+
}
|
2666
|
+
if (projectId !== null && projectId !== undefined) {
|
2667
|
+
localVarQueryParameter['project_id'] = projectId;
|
2668
|
+
}
|
2669
|
+
options.queryParams = localVarQueryParameter;
|
2670
|
+
options.headers = localVarHeaderParameter;
|
2671
|
+
return options;
|
2672
|
+
},
|
1444
2673
|
/**
|
1445
2674
|
* 获取构建记录信息
|
1446
2675
|
*
|
@@ -1478,6 +2707,118 @@ const ParamCreater = function () {
|
|
1478
2707
|
options.headers = localVarHeaderParameter;
|
1479
2708
|
return options;
|
1480
2709
|
},
|
2710
|
+
/**
|
2711
|
+
* 获取覆盖率接口
|
2712
|
+
*
|
2713
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2714
|
+
*/
|
2715
|
+
showReportSummary(showReportSummaryRequest) {
|
2716
|
+
const options = {
|
2717
|
+
method: "GET",
|
2718
|
+
url: "/v1/report/{job_id}/summary",
|
2719
|
+
contentType: "application/json",
|
2720
|
+
queryParams: {},
|
2721
|
+
pathParams: {},
|
2722
|
+
headers: {}
|
2723
|
+
};
|
2724
|
+
const localVarHeaderParameter = {};
|
2725
|
+
const localVarQueryParameter = {};
|
2726
|
+
let jobId;
|
2727
|
+
let buildNo;
|
2728
|
+
if (showReportSummaryRequest !== null && showReportSummaryRequest !== undefined) {
|
2729
|
+
if (showReportSummaryRequest instanceof ShowReportSummaryRequest_1.ShowReportSummaryRequest) {
|
2730
|
+
jobId = showReportSummaryRequest.jobId;
|
2731
|
+
buildNo = showReportSummaryRequest.buildNo;
|
2732
|
+
}
|
2733
|
+
else {
|
2734
|
+
jobId = showReportSummaryRequest['job_id'];
|
2735
|
+
buildNo = showReportSummaryRequest['build_no'];
|
2736
|
+
}
|
2737
|
+
}
|
2738
|
+
if (jobId === null || jobId === undefined) {
|
2739
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showReportSummary.');
|
2740
|
+
}
|
2741
|
+
if (buildNo === null || buildNo === undefined) {
|
2742
|
+
throw new RequiredError('buildNo', 'Required parameter buildNo was null or undefined when calling showReportSummary.');
|
2743
|
+
}
|
2744
|
+
if (buildNo !== null && buildNo !== undefined) {
|
2745
|
+
localVarQueryParameter['build_no'] = buildNo;
|
2746
|
+
}
|
2747
|
+
options.queryParams = localVarQueryParameter;
|
2748
|
+
options.pathParams = { 'job_id': jobId, };
|
2749
|
+
options.headers = localVarHeaderParameter;
|
2750
|
+
return options;
|
2751
|
+
},
|
2752
|
+
/**
|
2753
|
+
* 查看任务是否在构建
|
2754
|
+
*
|
2755
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2756
|
+
*/
|
2757
|
+
showRunningStatus(showRunningStatusRequest) {
|
2758
|
+
const options = {
|
2759
|
+
method: "GET",
|
2760
|
+
url: "/v1/job/{job_id}/running-status",
|
2761
|
+
contentType: "application/json",
|
2762
|
+
queryParams: {},
|
2763
|
+
pathParams: {},
|
2764
|
+
headers: {}
|
2765
|
+
};
|
2766
|
+
const localVarHeaderParameter = {};
|
2767
|
+
let jobId;
|
2768
|
+
if (showRunningStatusRequest !== null && showRunningStatusRequest !== undefined) {
|
2769
|
+
if (showRunningStatusRequest instanceof ShowRunningStatusRequest_1.ShowRunningStatusRequest) {
|
2770
|
+
jobId = showRunningStatusRequest.jobId;
|
2771
|
+
}
|
2772
|
+
else {
|
2773
|
+
jobId = showRunningStatusRequest['job_id'];
|
2774
|
+
}
|
2775
|
+
}
|
2776
|
+
if (jobId === null || jobId === undefined) {
|
2777
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showRunningStatus.');
|
2778
|
+
}
|
2779
|
+
options.pathParams = { 'job_id': jobId, };
|
2780
|
+
options.headers = localVarHeaderParameter;
|
2781
|
+
return options;
|
2782
|
+
},
|
2783
|
+
/**
|
2784
|
+
* 获取代码化构建默认模板
|
2785
|
+
*
|
2786
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2787
|
+
*/
|
2788
|
+
showYamlTemplate(showYamlTemplateRequest) {
|
2789
|
+
const options = {
|
2790
|
+
method: "GET",
|
2791
|
+
url: "/v1/template/{job_id}/default-template",
|
2792
|
+
contentType: "application/json",
|
2793
|
+
queryParams: {},
|
2794
|
+
pathParams: {},
|
2795
|
+
headers: {}
|
2796
|
+
};
|
2797
|
+
const localVarHeaderParameter = {};
|
2798
|
+
const localVarQueryParameter = {};
|
2799
|
+
let jobId;
|
2800
|
+
let defaultHost;
|
2801
|
+
if (showYamlTemplateRequest !== null && showYamlTemplateRequest !== undefined) {
|
2802
|
+
if (showYamlTemplateRequest instanceof ShowYamlTemplateRequest_1.ShowYamlTemplateRequest) {
|
2803
|
+
jobId = showYamlTemplateRequest.jobId;
|
2804
|
+
defaultHost = showYamlTemplateRequest.defaultHost;
|
2805
|
+
}
|
2806
|
+
else {
|
2807
|
+
jobId = showYamlTemplateRequest['job_id'];
|
2808
|
+
defaultHost = showYamlTemplateRequest['default_host'];
|
2809
|
+
}
|
2810
|
+
}
|
2811
|
+
if (jobId === null || jobId === undefined) {
|
2812
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showYamlTemplate.');
|
2813
|
+
}
|
2814
|
+
if (defaultHost !== null && defaultHost !== undefined) {
|
2815
|
+
localVarQueryParameter['default_host'] = defaultHost;
|
2816
|
+
}
|
2817
|
+
options.queryParams = localVarQueryParameter;
|
2818
|
+
options.pathParams = { 'job_id': jobId, };
|
2819
|
+
options.headers = localVarHeaderParameter;
|
2820
|
+
return options;
|
2821
|
+
},
|
1481
2822
|
/**
|
1482
2823
|
* 停止构建任务
|
1483
2824
|
*
|