@huaweicloud/huaweicloud-sdk-codeartsbuild 3.1.150 → 3.1.152
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 +708 -0
- package/v3/CodeArtsBuildClient.d.ts.map +1 -1
- package/v3/CodeArtsBuildClient.js +2016 -514
- package/v3/CodeArtsBuildClient.js.map +1 -1
- package/v3/model/AddKeystorePermissionResponseBody.d.ts +32 -0
- package/v3/model/AddKeystorePermissionResponseBody.d.ts.map +1 -0
- package/v3/model/AddKeystorePermissionResponseBody.js +75 -0
- package/v3/model/AddKeystorePermissionResponseBody.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/CheckJobNameIsExistsRequest.d.ts +12 -0
- package/v3/model/CheckJobNameIsExistsRequest.d.ts.map +1 -0
- package/v3/model/CheckJobNameIsExistsRequest.js +31 -0
- package/v3/model/CheckJobNameIsExistsRequest.js.map +1 -0
- package/v3/model/CheckJobNameIsExistsResponse.d.ts +9 -0
- package/v3/model/CheckJobNameIsExistsResponse.d.ts.map +1 -0
- package/v3/model/CheckJobNameIsExistsResponse.js +19 -0
- package/v3/model/CheckJobNameIsExistsResponse.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/DownloadKeystoreByNameRequest.d.ts +12 -0
- package/v3/model/DownloadKeystoreByNameRequest.d.ts.map +1 -0
- package/v3/model/DownloadKeystoreByNameRequest.js +30 -0
- package/v3/model/DownloadKeystoreByNameRequest.js.map +1 -0
- package/v3/model/DownloadKeystoreByNameResponse.d.ts +5 -0
- package/v3/model/DownloadKeystoreByNameResponse.d.ts.map +1 -0
- package/v3/model/DownloadKeystoreByNameResponse.js +11 -0
- package/v3/model/DownloadKeystoreByNameResponse.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/ListKeystoreRequest.d.ts +4 -0
- package/v3/model/ListKeystoreRequest.d.ts.map +1 -0
- package/v3/model/ListKeystoreRequest.js +9 -0
- package/v3/model/ListKeystoreRequest.js.map +1 -0
- package/v3/model/ListKeystoreResponse.d.ts +10 -0
- package/v3/model/ListKeystoreResponse.d.ts.map +1 -0
- package/v3/model/ListKeystoreResponse.js +19 -0
- package/v3/model/ListKeystoreResponse.js.map +1 -0
- package/v3/model/ListKeystoreResult.d.ts +10 -0
- package/v3/model/ListKeystoreResult.d.ts.map +1 -0
- package/v3/model/ListKeystoreResult.js +23 -0
- package/v3/model/ListKeystoreResult.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/ListRecordsRequest.d.ts +26 -0
- package/v3/model/ListRecordsRequest.d.ts.map +1 -0
- package/v3/model/ListRecordsRequest.js +60 -0
- package/v3/model/ListRecordsRequest.js.map +1 -0
- package/v3/model/ListRecordsResponse.d.ts +12 -0
- package/v3/model/ListRecordsResponse.d.ts.map +1 -0
- package/v3/model/ListRecordsResponse.js +23 -0
- package/v3/model/ListRecordsResponse.js.map +1 -0
- package/v3/model/ListRecordsResult.d.ts +10 -0
- package/v3/model/ListRecordsResult.d.ts.map +1 -0
- package/v3/model/ListRecordsResult.js +17 -0
- package/v3/model/ListRecordsResult.js.map +1 -0
- package/v3/model/ListRecordsResultPagination.d.ts +10 -0
- package/v3/model/ListRecordsResultPagination.d.ts.map +1 -0
- package/v3/model/ListRecordsResultPagination.js +21 -0
- package/v3/model/ListRecordsResultPagination.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/ListRelatedProjectInfoRequest.d.ts +14 -0
- package/v3/model/ListRelatedProjectInfoRequest.d.ts.map +1 -0
- package/v3/model/ListRelatedProjectInfoRequest.js +33 -0
- package/v3/model/ListRelatedProjectInfoRequest.js.map +1 -0
- package/v3/model/ListRelatedProjectInfoResponse.d.ts +12 -0
- package/v3/model/ListRelatedProjectInfoResponse.d.ts.map +1 -0
- package/v3/model/ListRelatedProjectInfoResponse.js +23 -0
- package/v3/model/ListRelatedProjectInfoResponse.js.map +1 -0
- package/v3/model/ListRelatedProjectInfoResult.d.ts +11 -0
- package/v3/model/ListRelatedProjectInfoResult.d.ts.map +1 -0
- package/v3/model/ListRelatedProjectInfoResult.js +23 -0
- package/v3/model/ListRelatedProjectInfoResult.js.map +1 -0
- package/v3/model/ListRelatedProjectInfoResultProjectInfoList.d.ts +18 -0
- package/v3/model/ListRelatedProjectInfoResultProjectInfoList.d.ts.map +1 -0
- package/v3/model/ListRelatedProjectInfoResultProjectInfoList.js +41 -0
- package/v3/model/ListRelatedProjectInfoResultProjectInfoList.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/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/ShowBuildInfoRecordRequest.d.ts +12 -0
- package/v3/model/ShowBuildInfoRecordRequest.d.ts.map +1 -0
- package/v3/model/ShowBuildInfoRecordRequest.js +31 -0
- package/v3/model/ShowBuildInfoRecordRequest.js.map +1 -0
- package/v3/model/ShowBuildInfoRecordResponse.d.ts +12 -0
- package/v3/model/ShowBuildInfoRecordResponse.d.ts.map +1 -0
- package/v3/model/ShowBuildInfoRecordResponse.js +23 -0
- package/v3/model/ShowBuildInfoRecordResponse.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/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/ShowDefaultBuildParametersParams.d.ts +8 -0
- package/v3/model/ShowDefaultBuildParametersParams.d.ts.map +1 -0
- package/v3/model/ShowDefaultBuildParametersParams.js +17 -0
- package/v3/model/ShowDefaultBuildParametersParams.js.map +1 -0
- package/v3/model/ShowDefaultBuildParametersRequest.d.ts +4 -0
- package/v3/model/ShowDefaultBuildParametersRequest.d.ts.map +1 -0
- package/v3/model/ShowDefaultBuildParametersRequest.js +9 -0
- package/v3/model/ShowDefaultBuildParametersRequest.js.map +1 -0
- package/v3/model/ShowDefaultBuildParametersResponse.d.ts +10 -0
- package/v3/model/ShowDefaultBuildParametersResponse.d.ts.map +1 -0
- package/v3/model/ShowDefaultBuildParametersResponse.js +19 -0
- package/v3/model/ShowDefaultBuildParametersResponse.js.map +1 -0
- package/v3/model/ShowDefaultBuildParametersResult.d.ts +9 -0
- package/v3/model/ShowDefaultBuildParametersResult.d.ts.map +1 -0
- package/v3/model/ShowDefaultBuildParametersResult.js +17 -0
- package/v3/model/ShowDefaultBuildParametersResult.js.map +1 -0
- package/v3/model/ShowDockerfileTemplateRequest.d.ts +8 -0
- package/v3/model/ShowDockerfileTemplateRequest.d.ts.map +1 -0
- package/v3/model/ShowDockerfileTemplateRequest.js +20 -0
- package/v3/model/ShowDockerfileTemplateRequest.js.map +1 -0
- package/v3/model/ShowDockerfileTemplateResponse.d.ts +5 -0
- package/v3/model/ShowDockerfileTemplateResponse.d.ts.map +1 -0
- package/v3/model/ShowDockerfileTemplateResponse.js +11 -0
- package/v3/model/ShowDockerfileTemplateResponse.js.map +1 -0
- 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/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/ShowJobNoticeConfigInfoRequest.d.ts +8 -0
- package/v3/model/ShowJobNoticeConfigInfoRequest.d.ts.map +1 -0
- package/v3/model/ShowJobNoticeConfigInfoRequest.js +20 -0
- package/v3/model/ShowJobNoticeConfigInfoRequest.js.map +1 -0
- package/v3/model/ShowJobNoticeConfigInfoResponse.d.ts +12 -0
- package/v3/model/ShowJobNoticeConfigInfoResponse.d.ts.map +1 -0
- package/v3/model/ShowJobNoticeConfigInfoResponse.js +23 -0
- package/v3/model/ShowJobNoticeConfigInfoResponse.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/ShowKeystorePermissionRequest.d.ts +14 -0
- package/v3/model/ShowKeystorePermissionRequest.d.ts.map +1 -0
- package/v3/model/ShowKeystorePermissionRequest.js +36 -0
- package/v3/model/ShowKeystorePermissionRequest.js.map +1 -0
- package/v3/model/ShowKeystorePermissionResponse.d.ts +12 -0
- package/v3/model/ShowKeystorePermissionResponse.d.ts.map +1 -0
- package/v3/model/ShowKeystorePermissionResponse.js +23 -0
- package/v3/model/ShowKeystorePermissionResponse.js.map +1 -0
- package/v3/model/ShowKeystorePermissionResponseBodyResult.d.ts +11 -0
- package/v3/model/ShowKeystorePermissionResponseBodyResult.d.ts.map +1 -0
- package/v3/model/ShowKeystorePermissionResponseBodyResult.js +23 -0
- package/v3/model/ShowKeystorePermissionResponseBodyResult.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/ShowRelatedProjectRequest.d.ts +4 -0
- package/v3/model/ShowRelatedProjectRequest.d.ts.map +1 -0
- package/v3/model/ShowRelatedProjectRequest.js +9 -0
- package/v3/model/ShowRelatedProjectRequest.js.map +1 -0
- package/v3/model/ShowRelatedProjectResponse.d.ts +12 -0
- package/v3/model/ShowRelatedProjectResponse.d.ts.map +1 -0
- package/v3/model/ShowRelatedProjectResponse.js +23 -0
- package/v3/model/ShowRelatedProjectResponse.js.map +1 -0
- package/v3/model/ShowRelatedProjectResult.d.ts +11 -0
- package/v3/model/ShowRelatedProjectResult.d.ts.map +1 -0
- package/v3/model/ShowRelatedProjectResult.js +23 -0
- package/v3/model/ShowRelatedProjectResult.js.map +1 -0
- package/v3/model/ShowRelatedProjectResultProjectInfoList.d.ts +20 -0
- package/v3/model/ShowRelatedProjectResultProjectInfoList.d.ts.map +1 -0
- package/v3/model/ShowRelatedProjectResultProjectInfoList.js +47 -0
- package/v3/model/ShowRelatedProjectResultProjectInfoList.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/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 +83 -0
- package/v3/public-api.d.ts.map +1 -1
- package/v3/public-api.js +83 -0
- package/v3/public-api.js.map +1 -1
@@ -2,6 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.RequiredError = exports.ParamCreater = exports.CodeArtsBuildClient = void 0;
|
4
4
|
const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
|
5
|
+
const CheckJobNameIsExistsRequest_1 = require("./model/CheckJobNameIsExistsRequest");
|
5
6
|
const CreateBuildJobRequest_1 = require("./model/CreateBuildJobRequest");
|
6
7
|
const CreateTemplatesRequest_1 = require("./model/CreateTemplatesRequest");
|
7
8
|
const DeleteBuildJobRequest_1 = require("./model/DeleteBuildJobRequest");
|
@@ -9,27 +10,46 @@ const DeleteTemplatesRequest_1 = require("./model/DeleteTemplatesRequest");
|
|
9
10
|
const DisableBuildJobRequest_1 = require("./model/DisableBuildJobRequest");
|
10
11
|
const DisableNoticeRequest_1 = require("./model/DisableNoticeRequest");
|
11
12
|
const DownloadBuildLogRequest_1 = require("./model/DownloadBuildLogRequest");
|
13
|
+
const DownloadKeystoreByNameRequest_1 = require("./model/DownloadKeystoreByNameRequest");
|
12
14
|
const DownloadKeystoreRequest_1 = require("./model/DownloadKeystoreRequest");
|
13
15
|
const DownloadLogByRecordIdRequest_1 = require("./model/DownloadLogByRecordIdRequest");
|
14
16
|
const DownloadRealTimeLogRequest_1 = require("./model/DownloadRealTimeLogRequest");
|
15
17
|
const DownloadTaskLogRequest_1 = require("./model/DownloadTaskLogRequest");
|
16
18
|
const EnableBuildJobRequest_1 = require("./model/EnableBuildJobRequest");
|
19
|
+
const ListBuildInfoRecordByJobIdRequest_1 = require("./model/ListBuildInfoRecordByJobIdRequest");
|
17
20
|
const ListBuildInfoRecordRequest_1 = require("./model/ListBuildInfoRecordRequest");
|
18
21
|
const ListJobConfigRequest_1 = require("./model/ListJobConfigRequest");
|
19
22
|
const ListNoticeRequest_1 = require("./model/ListNoticeRequest");
|
23
|
+
const ListOfficialTemplateRequest_1 = require("./model/ListOfficialTemplateRequest");
|
24
|
+
const ListProjectJobsRequest_1 = require("./model/ListProjectJobsRequest");
|
25
|
+
const ListRecordsRequest_1 = require("./model/ListRecordsRequest");
|
26
|
+
const ListRecyclingJobRequest_1 = require("./model/ListRecyclingJobRequest");
|
27
|
+
const ListRelatedProjectInfoRequest_1 = require("./model/ListRelatedProjectInfoRequest");
|
20
28
|
const ListTemplatesRequest_1 = require("./model/ListTemplatesRequest");
|
21
29
|
const RunJobRequest_1 = require("./model/RunJobRequest");
|
30
|
+
const ShowBuildInfoRecordRequest_1 = require("./model/ShowBuildInfoRecordRequest");
|
31
|
+
const ShowBuildRecordBuildScriptRequest_1 = require("./model/ShowBuildRecordBuildScriptRequest");
|
22
32
|
const ShowBuildRecordFullStagesRequest_1 = require("./model/ShowBuildRecordFullStagesRequest");
|
33
|
+
const ShowBuildRecordRequest_1 = require("./model/ShowBuildRecordRequest");
|
34
|
+
const ShowDockerfileTemplateRequest_1 = require("./model/ShowDockerfileTemplateRequest");
|
23
35
|
const ShowFlowGraphRequest_1 = require("./model/ShowFlowGraphRequest");
|
24
36
|
const ShowHistoryDetailsRequest_1 = require("./model/ShowHistoryDetailsRequest");
|
25
37
|
const ShowJobBuildSuccessRatioRequest_1 = require("./model/ShowJobBuildSuccessRatioRequest");
|
38
|
+
const ShowJobBuildTimeRequest_1 = require("./model/ShowJobBuildTimeRequest");
|
39
|
+
const ShowJobConfigDiffRequest_1 = require("./model/ShowJobConfigDiffRequest");
|
40
|
+
const ShowJobConfigRequest_1 = require("./model/ShowJobConfigRequest");
|
41
|
+
const ShowJobInfoRequest_1 = require("./model/ShowJobInfoRequest");
|
26
42
|
const ShowJobListByProjectIdRequest_1 = require("./model/ShowJobListByProjectIdRequest");
|
43
|
+
const ShowJobNoticeConfigInfoRequest_1 = require("./model/ShowJobNoticeConfigInfoRequest");
|
44
|
+
const ShowJobRolePermissionRequest_1 = require("./model/ShowJobRolePermissionRequest");
|
27
45
|
const ShowJobStatusRequest_1 = require("./model/ShowJobStatusRequest");
|
28
46
|
const ShowJobSuccessRatioRequest_1 = require("./model/ShowJobSuccessRatioRequest");
|
47
|
+
const ShowKeystorePermissionRequest_1 = require("./model/ShowKeystorePermissionRequest");
|
29
48
|
const ShowLastHistoryRequest_1 = require("./model/ShowLastHistoryRequest");
|
30
49
|
const ShowListHistoryRequest_1 = require("./model/ShowListHistoryRequest");
|
31
50
|
const ShowListPeriodHistoryRequest_1 = require("./model/ShowListPeriodHistoryRequest");
|
32
51
|
const ShowOutputInfoRequest_1 = require("./model/ShowOutputInfoRequest");
|
52
|
+
const ShowProjectPermissionRequest_1 = require("./model/ShowProjectPermissionRequest");
|
33
53
|
const ShowRecordDetailRequest_1 = require("./model/ShowRecordDetailRequest");
|
34
54
|
const ShowRecordInfoRequest_1 = require("./model/ShowRecordInfoRequest");
|
35
55
|
const ShowReportSummaryRequest_1 = require("./model/ShowReportSummaryRequest");
|
@@ -50,6 +70,23 @@ class CodeArtsBuildClient {
|
|
50
70
|
getPath() {
|
51
71
|
return __dirname;
|
52
72
|
}
|
73
|
+
/**
|
74
|
+
* 查看项目下任务名是否存在
|
75
|
+
*
|
76
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
77
|
+
*
|
78
|
+
* @summary 查看项目下任务名是否存在
|
79
|
+
* @param {string} projectId CodeArts项目ID,32位数字、小写字母组合。
|
80
|
+
* @param {string} jobName 任务名称
|
81
|
+
* @param {*} [options] Override http request option.
|
82
|
+
* @throws {RequiredError}
|
83
|
+
*/
|
84
|
+
checkJobNameIsExists(checkJobNameIsExistsRequest) {
|
85
|
+
const options = (0, exports.ParamCreater)().checkJobNameIsExists(checkJobNameIsExistsRequest);
|
86
|
+
// @ts-ignore
|
87
|
+
options['responseHeaders'] = [''];
|
88
|
+
return this.hcClient.sendRequest(options);
|
89
|
+
}
|
53
90
|
/**
|
54
91
|
* 创建构建任务
|
55
92
|
*
|
@@ -181,6 +218,24 @@ class CodeArtsBuildClient {
|
|
181
218
|
options['responseHeaders'] = [''];
|
182
219
|
return this.hcClient.sendRequest(options);
|
183
220
|
}
|
221
|
+
/**
|
222
|
+
* 文件管理文件下载
|
223
|
+
*
|
224
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
225
|
+
*
|
226
|
+
* @summary 文件管理文件下载
|
227
|
+
* @param {string} name 文件名
|
228
|
+
* @param {string} domainId 租户ID
|
229
|
+
* @param {string} id 文件ID
|
230
|
+
* @param {*} [options] Override http request option.
|
231
|
+
* @throws {RequiredError}
|
232
|
+
*/
|
233
|
+
downloadKeystoreByName(downloadKeystoreByNameRequest) {
|
234
|
+
const options = (0, exports.ParamCreater)().downloadKeystoreByName(downloadKeystoreByNameRequest);
|
235
|
+
// @ts-ignore
|
236
|
+
options['responseHeaders'] = [''];
|
237
|
+
return this.hcClient.sendRequest(options);
|
238
|
+
}
|
184
239
|
/**
|
185
240
|
* 下载构建实时日志
|
186
241
|
*
|
@@ -254,6 +309,26 @@ class CodeArtsBuildClient {
|
|
254
309
|
options['responseHeaders'] = [''];
|
255
310
|
return this.hcClient.sendRequest(options);
|
256
311
|
}
|
312
|
+
/**
|
313
|
+
* 获取任务构建记录列表v1
|
314
|
+
*
|
315
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
316
|
+
*
|
317
|
+
* @summary 获取任务构建记录列表v1
|
318
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
319
|
+
* @param {string} startTime 区间开始时间,格式yyyy-MM-dd HH:mm:ss。
|
320
|
+
* @param {string} endTime 区间结束时间,格式yyyy-MM-dd HH:mm:ss。
|
321
|
+
* @param {number} [pageIndex] 分页页码,表示从此页开始查询, page_index大于等于0
|
322
|
+
* @param {number} [pageSize] 每页显示的条目数量,page_size小于等于100
|
323
|
+
* @param {*} [options] Override http request option.
|
324
|
+
* @throws {RequiredError}
|
325
|
+
*/
|
326
|
+
listBuildInfoRecordByJobId(listBuildInfoRecordByJobIdRequest) {
|
327
|
+
const options = (0, exports.ParamCreater)().listBuildInfoRecordByJobId(listBuildInfoRecordByJobIdRequest);
|
328
|
+
// @ts-ignore
|
329
|
+
options['responseHeaders'] = [''];
|
330
|
+
return this.hcClient.sendRequest(options);
|
331
|
+
}
|
257
332
|
/**
|
258
333
|
* 获取构建任务详情
|
259
334
|
*
|
@@ -271,6 +346,21 @@ class CodeArtsBuildClient {
|
|
271
346
|
options['responseHeaders'] = [''];
|
272
347
|
return this.hcClient.sendRequest(options);
|
273
348
|
}
|
349
|
+
/**
|
350
|
+
* 查询用户可使用文件
|
351
|
+
*
|
352
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
353
|
+
*
|
354
|
+
* @summary 查询用户可使用文件
|
355
|
+
* @param {*} [options] Override http request option.
|
356
|
+
* @throws {RequiredError}
|
357
|
+
*/
|
358
|
+
listKeystore(listKeystoreRequest) {
|
359
|
+
const options = (0, exports.ParamCreater)().listKeystore();
|
360
|
+
// @ts-ignore
|
361
|
+
options['responseHeaders'] = [''];
|
362
|
+
return this.hcClient.sendRequest(options);
|
363
|
+
}
|
274
364
|
/**
|
275
365
|
* 查询通知
|
276
366
|
*
|
@@ -288,571 +378,1818 @@ class CodeArtsBuildClient {
|
|
288
378
|
return this.hcClient.sendRequest(options);
|
289
379
|
}
|
290
380
|
/**
|
291
|
-
*
|
381
|
+
* 查询官方模版
|
292
382
|
*
|
293
383
|
* Please refer to HUAWEI cloud API Explorer for details.
|
294
384
|
*
|
295
|
-
* @summary
|
385
|
+
* @summary 查询官方模版
|
296
386
|
* @param {string} [name] 检索的模板的名字模糊查询
|
297
387
|
* @param {string} [page] 分页页码, 表示从此页开始查询
|
298
388
|
* @param {string} [pageSize] 每页显示的条目数量,page_size小于等于100
|
299
389
|
* @param {*} [options] Override http request option.
|
300
390
|
* @throws {RequiredError}
|
301
391
|
*/
|
302
|
-
|
303
|
-
const options = (0, exports.ParamCreater)().
|
392
|
+
listOfficialTemplate(listOfficialTemplateRequest) {
|
393
|
+
const options = (0, exports.ParamCreater)().listOfficialTemplate(listOfficialTemplateRequest);
|
304
394
|
// @ts-ignore
|
305
395
|
options['responseHeaders'] = [''];
|
306
396
|
return this.hcClient.sendRequest(options);
|
307
397
|
}
|
308
398
|
/**
|
309
|
-
*
|
399
|
+
* 查询项目任务列表
|
310
400
|
*
|
311
401
|
* Please refer to HUAWEI cloud API Explorer for details.
|
312
402
|
*
|
313
|
-
* @summary
|
314
|
-
* @param {
|
403
|
+
* @summary 查询项目任务列表
|
404
|
+
* @param {string} projectId CodeArts项目ID,32位数字、小写字母组合。
|
405
|
+
* @param {number} pageIndex **参数解释**: 分页页码, 表示从此页开始查询。 **约束限制**: 不涉及。 **取值范围**: 只能使用数字,大于等于0。
|
406
|
+
* @param {number} pageSize **参数解释**: 每页显示的条目数量。 **约束限制**: 不涉及。 **取值范围**: 只能使用数字,小于等于100。
|
407
|
+
* @param {string} [search] 查询条件
|
408
|
+
* @param {string} [sortField] 排序的字段
|
409
|
+
* @param {string} [sortOrder] 排序顺序
|
410
|
+
* @param {string} [creatorId] 创建人ID
|
411
|
+
* @param {string} [buildStatus] 构建状态过滤条件
|
412
|
+
* @param {boolean} [byGroup] 是否分组
|
413
|
+
* @param {string} [groupPathId] 分组ID
|
315
414
|
* @param {*} [options] Override http request option.
|
316
415
|
* @throws {RequiredError}
|
317
416
|
*/
|
318
|
-
|
319
|
-
const options = (0, exports.ParamCreater)().
|
417
|
+
listProjectJobs(listProjectJobsRequest) {
|
418
|
+
const options = (0, exports.ParamCreater)().listProjectJobs(listProjectJobsRequest);
|
320
419
|
// @ts-ignore
|
321
420
|
options['responseHeaders'] = [''];
|
322
421
|
return this.hcClient.sendRequest(options);
|
323
422
|
}
|
324
423
|
/**
|
325
|
-
*
|
424
|
+
* 获取指定工程的构建记录列表
|
326
425
|
*
|
327
426
|
* Please refer to HUAWEI cloud API Explorer for details.
|
328
427
|
*
|
329
|
-
* @summary
|
330
|
-
* @param {string}
|
331
|
-
* @param {
|
428
|
+
* @summary 获取指定工程的构建记录列表
|
429
|
+
* @param {string} buildProjectId 构建工程项目ID,36位数字、小写字母组合。
|
430
|
+
* @param {number} [page] 分页页码,表示从此页开始查询,大于等于0
|
431
|
+
* @param {number} [limit] 每页显示的条目数量,小于等于100
|
432
|
+
* @param {Array<string>} [triggers] 需要搜索的触发类型列表
|
433
|
+
* @param {Array<string>} [branches] 需要搜索的分支列表
|
434
|
+
* @param {Array<string>} [tags] 需要搜索的标签列表
|
435
|
+
* @param {string} [fromDate] 查询起止时间,格式:yyyy-MM-dd HH:mm:ss
|
436
|
+
* @param {string} [toDate] 查询结束时间,格式:yyyy-MM-dd HH:mm:ss
|
332
437
|
* @param {*} [options] Override http request option.
|
333
438
|
* @throws {RequiredError}
|
334
439
|
*/
|
335
|
-
|
336
|
-
const options = (0, exports.ParamCreater)().
|
440
|
+
listRecords(listRecordsRequest) {
|
441
|
+
const options = (0, exports.ParamCreater)().listRecords(listRecordsRequest);
|
337
442
|
// @ts-ignore
|
338
443
|
options['responseHeaders'] = [''];
|
339
444
|
return this.hcClient.sendRequest(options);
|
340
445
|
}
|
341
446
|
/**
|
342
|
-
*
|
447
|
+
* 查看回收站中删除的构建任务列表
|
343
448
|
*
|
344
449
|
* Please refer to HUAWEI cloud API Explorer for details.
|
345
450
|
*
|
346
|
-
* @summary
|
347
|
-
* @param {
|
348
|
-
* @param {number}
|
451
|
+
* @summary 查看回收站中删除的构建任务列表
|
452
|
+
* @param {number} [pageSize] 每页显示的条目数量,page_size小于等于100
|
453
|
+
* @param {number} [pageNo] 分页页码, 表示从此页开始查询, page_no大于等于1
|
454
|
+
* @param {string} [search] 搜索的任务名称
|
349
455
|
* @param {*} [options] Override http request option.
|
350
456
|
* @throws {RequiredError}
|
351
457
|
*/
|
352
|
-
|
353
|
-
const options = (0, exports.ParamCreater)().
|
458
|
+
listRecyclingJob(listRecyclingJobRequest) {
|
459
|
+
const options = (0, exports.ParamCreater)().listRecyclingJob(listRecyclingJobRequest);
|
354
460
|
// @ts-ignore
|
355
461
|
options['responseHeaders'] = [''];
|
356
462
|
return this.hcClient.sendRequest(options);
|
357
463
|
}
|
358
464
|
/**
|
359
|
-
*
|
465
|
+
* 获取项目列表
|
360
466
|
*
|
361
467
|
* Please refer to HUAWEI cloud API Explorer for details.
|
362
468
|
*
|
363
|
-
* @summary
|
364
|
-
* @param {
|
365
|
-
* @param {
|
366
|
-
* @param {
|
367
|
-
* @param {string} [branch] 代码仓分支名。
|
469
|
+
* @summary 获取项目列表
|
470
|
+
* @param {number} [pageSize] 每页显示的条目数量,page_size小于等于100
|
471
|
+
* @param {number} [pageNo] 分页页码,表示从此页开始查询, page大于等于1
|
472
|
+
* @param {string} [search] 搜索内容
|
368
473
|
* @param {*} [options] Override http request option.
|
369
474
|
* @throws {RequiredError}
|
370
475
|
*/
|
371
|
-
|
372
|
-
const options = (0, exports.ParamCreater)().
|
476
|
+
listRelatedProjectInfo(listRelatedProjectInfoRequest) {
|
477
|
+
const options = (0, exports.ParamCreater)().listRelatedProjectInfo(listRelatedProjectInfoRequest);
|
373
478
|
// @ts-ignore
|
374
479
|
options['responseHeaders'] = [''];
|
375
480
|
return this.hcClient.sendRequest(options);
|
376
481
|
}
|
377
482
|
/**
|
378
|
-
*
|
483
|
+
* 查询构建模板
|
379
484
|
*
|
380
485
|
* Please refer to HUAWEI cloud API Explorer for details.
|
381
486
|
*
|
382
|
-
* @summary
|
383
|
-
* @param {string}
|
384
|
-
* @param {
|
385
|
-
* @param {
|
487
|
+
* @summary 查询构建模板
|
488
|
+
* @param {string} [name] 检索的模板的名字模糊查询
|
489
|
+
* @param {string} [page] 分页页码, 表示从此页开始查询
|
490
|
+
* @param {string} [pageSize] 每页显示的条目数量,page_size小于等于100
|
386
491
|
* @param {*} [options] Override http request option.
|
387
492
|
* @throws {RequiredError}
|
388
493
|
*/
|
389
|
-
|
390
|
-
const options = (0, exports.ParamCreater)().
|
494
|
+
listTemplates(listTemplatesRequest) {
|
495
|
+
const options = (0, exports.ParamCreater)().listTemplates(listTemplatesRequest);
|
391
496
|
// @ts-ignore
|
392
497
|
options['responseHeaders'] = [''];
|
393
498
|
return this.hcClient.sendRequest(options);
|
394
499
|
}
|
395
500
|
/**
|
396
|
-
*
|
501
|
+
* 执行构建任务,可传自定义参数
|
397
502
|
*
|
398
503
|
* Please refer to HUAWEI cloud API Explorer for details.
|
399
504
|
*
|
400
|
-
* @summary
|
401
|
-
* @param {
|
505
|
+
* @summary 执行构建任务
|
506
|
+
* @param {RunJobRequestBody} runJobRequestBody body
|
402
507
|
* @param {*} [options] Override http request option.
|
403
508
|
* @throws {RequiredError}
|
404
509
|
*/
|
405
|
-
|
406
|
-
const options = (0, exports.ParamCreater)().
|
510
|
+
runJob(runJobRequest) {
|
511
|
+
const options = (0, exports.ParamCreater)().runJob(runJobRequest);
|
407
512
|
// @ts-ignore
|
408
513
|
options['responseHeaders'] = [''];
|
409
514
|
return this.hcClient.sendRequest(options);
|
410
515
|
}
|
411
516
|
/**
|
412
|
-
*
|
517
|
+
* 获取任务构建记录列表
|
413
518
|
*
|
414
519
|
* Please refer to HUAWEI cloud API Explorer for details.
|
415
520
|
*
|
416
|
-
* @summary
|
521
|
+
* @summary 获取任务构建记录列表
|
417
522
|
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
418
|
-
* @param {
|
419
|
-
* @param {string} endTime 区间结束时间,格式yyyy-MM-dd。
|
523
|
+
* @param {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
|
420
524
|
* @param {*} [options] Override http request option.
|
421
525
|
* @throws {RequiredError}
|
422
526
|
*/
|
423
|
-
|
424
|
-
const options = (0, exports.ParamCreater)().
|
527
|
+
showBuildInfoRecord(showBuildInfoRecordRequest) {
|
528
|
+
const options = (0, exports.ParamCreater)().showBuildInfoRecord(showBuildInfoRecordRequest);
|
425
529
|
// @ts-ignore
|
426
530
|
options['responseHeaders'] = [''];
|
427
531
|
return this.hcClient.sendRequest(options);
|
428
532
|
}
|
429
533
|
/**
|
430
|
-
*
|
534
|
+
* 编辑页获取参数类型的接口
|
431
535
|
*
|
432
536
|
* Please refer to HUAWEI cloud API Explorer for details.
|
433
537
|
*
|
434
|
-
* @summary
|
435
|
-
* @param {string} projectId CodeArts项目ID,32位数字、小写字母组合。
|
436
|
-
* @param {string} repositoryName 代码仓库名,不支持中文
|
538
|
+
* @summary 编辑页获取参数类型的接口
|
437
539
|
* @param {*} [options] Override http request option.
|
438
540
|
* @throws {RequiredError}
|
439
541
|
*/
|
440
|
-
|
441
|
-
const options = (0, exports.ParamCreater)().
|
542
|
+
showBuildParamsList(showBuildParamsListRequest) {
|
543
|
+
const options = (0, exports.ParamCreater)().showBuildParamsList();
|
442
544
|
// @ts-ignore
|
443
545
|
options['responseHeaders'] = [''];
|
444
546
|
return this.hcClient.sendRequest(options);
|
445
547
|
}
|
446
548
|
/**
|
447
|
-
*
|
549
|
+
* 查询指定构建记录详情
|
448
550
|
*
|
449
551
|
* Please refer to HUAWEI cloud API Explorer for details.
|
450
552
|
*
|
451
|
-
* @summary
|
452
|
-
* @param {string}
|
453
|
-
* @param {number} offset 分页页码, 表示从此页开始查询, offset大于等于0
|
454
|
-
* @param {number} limit 每页显示的条目数量,limit小于等于100
|
455
|
-
* @param {number} interval 距今天的时间区间(单位:天),interval小于等于30
|
553
|
+
* @summary 查询指定构建记录详情
|
554
|
+
* @param {string} recordId 记录ID,36位数字、小写字母、\'-\'组组合。
|
456
555
|
* @param {*} [options] Override http request option.
|
457
556
|
* @throws {RequiredError}
|
458
557
|
*/
|
459
|
-
|
460
|
-
const options = (0, exports.ParamCreater)().
|
558
|
+
showBuildRecord(showBuildRecordRequest) {
|
559
|
+
const options = (0, exports.ParamCreater)().showBuildRecord(showBuildRecordRequest);
|
461
560
|
// @ts-ignore
|
462
561
|
options['responseHeaders'] = [''];
|
463
562
|
return this.hcClient.sendRequest(options);
|
464
563
|
}
|
465
564
|
/**
|
466
|
-
*
|
565
|
+
* 获取构建记录的构建脚本
|
467
566
|
*
|
468
567
|
* Please refer to HUAWEI cloud API Explorer for details.
|
469
568
|
*
|
470
|
-
* @summary
|
471
|
-
* @param {string}
|
472
|
-
* @param {number} offset 分页页码, 表示从此页开始查询, offset大于等于0
|
473
|
-
* @param {number} limit 每页显示的条目数量,limit小于等于100
|
474
|
-
* @param {string} startTime 区间开始时间,格式yyyy-MM-dd。 开始时间和结束时间间隔不能超过30天
|
475
|
-
* @param {string} endTime 区间结束时间,格式yyyy-MM-dd。 开始时间和结束时间间隔不能超过30天
|
569
|
+
* @summary 获取构建记录的构建脚本
|
570
|
+
* @param {string} recordId 记录ID,36位数字、小写字母、\'-\'组组合。
|
476
571
|
* @param {*} [options] Override http request option.
|
477
572
|
* @throws {RequiredError}
|
478
573
|
*/
|
479
|
-
|
480
|
-
const options = (0, exports.ParamCreater)().
|
574
|
+
showBuildRecordBuildScript(showBuildRecordBuildScriptRequest) {
|
575
|
+
const options = (0, exports.ParamCreater)().showBuildRecordBuildScript(showBuildRecordBuildScriptRequest);
|
481
576
|
// @ts-ignore
|
482
577
|
options['responseHeaders'] = [''];
|
483
578
|
return this.hcClient.sendRequest(options);
|
484
579
|
}
|
485
580
|
/**
|
486
|
-
*
|
581
|
+
* 获取任务各阶段信息
|
487
582
|
*
|
488
583
|
* Please refer to HUAWEI cloud API Explorer for details.
|
489
584
|
*
|
490
|
-
* @summary
|
491
|
-
* @param {string}
|
492
|
-
* @param {
|
585
|
+
* @summary 获取任务各阶段信息
|
586
|
+
* @param {string} recordId 记录ID,36位数字、小写字母、\'-\'组组合。
|
587
|
+
* @param {boolean} [cascade] 是否联级获取steps
|
493
588
|
* @param {*} [options] Override http request option.
|
494
589
|
* @throws {RequiredError}
|
495
590
|
*/
|
496
|
-
|
497
|
-
const options = (0, exports.ParamCreater)().
|
591
|
+
showBuildRecordFullStages(showBuildRecordFullStagesRequest) {
|
592
|
+
const options = (0, exports.ParamCreater)().showBuildRecordFullStages(showBuildRecordFullStagesRequest);
|
498
593
|
// @ts-ignore
|
499
594
|
options['responseHeaders'] = [''];
|
500
595
|
return this.hcClient.sendRequest(options);
|
501
596
|
}
|
502
597
|
/**
|
503
|
-
*
|
598
|
+
* 获取编译构建默认参数
|
504
599
|
*
|
505
600
|
* Please refer to HUAWEI cloud API Explorer for details.
|
506
601
|
*
|
507
|
-
* @summary
|
508
|
-
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
509
|
-
* @param {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
|
602
|
+
* @summary 获取编译构建默认参数
|
510
603
|
* @param {*} [options] Override http request option.
|
511
604
|
* @throws {RequiredError}
|
512
605
|
*/
|
513
|
-
|
514
|
-
const options = (0, exports.ParamCreater)().
|
606
|
+
showDefaultBuildParameters(showDefaultBuildParametersRequest) {
|
607
|
+
const options = (0, exports.ParamCreater)().showDefaultBuildParameters();
|
515
608
|
// @ts-ignore
|
516
609
|
options['responseHeaders'] = [''];
|
517
610
|
return this.hcClient.sendRequest(options);
|
518
611
|
}
|
519
612
|
/**
|
520
|
-
*
|
613
|
+
* 获取dockerfileTemplate
|
521
614
|
*
|
522
615
|
* Please refer to HUAWEI cloud API Explorer for details.
|
523
616
|
*
|
524
|
-
* @summary
|
525
|
-
* @param {string}
|
526
|
-
* @param {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
|
617
|
+
* @summary 获取dockerfileTemplate
|
618
|
+
* @param {string} imageId 请求体
|
527
619
|
* @param {*} [options] Override http request option.
|
528
620
|
* @throws {RequiredError}
|
529
621
|
*/
|
530
|
-
|
531
|
-
const options = (0, exports.ParamCreater)().
|
622
|
+
showDockerfileTemplate(showDockerfileTemplateRequest) {
|
623
|
+
const options = (0, exports.ParamCreater)().showDockerfileTemplate(showDockerfileTemplateRequest);
|
532
624
|
// @ts-ignore
|
533
625
|
options['responseHeaders'] = [''];
|
534
626
|
return this.hcClient.sendRequest(options);
|
535
627
|
}
|
536
628
|
/**
|
537
|
-
*
|
629
|
+
* 获取构建历史详情信息接口
|
538
630
|
*
|
539
631
|
* Please refer to HUAWEI cloud API Explorer for details.
|
540
632
|
*
|
541
|
-
* @summary
|
633
|
+
* @summary 获取构建历史详情信息接口
|
542
634
|
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
635
|
+
* @param {number} buildNumber 构建任务的构建编号,从1开始,每次构建递增1
|
543
636
|
* @param {*} [options] Override http request option.
|
544
637
|
* @throws {RequiredError}
|
545
638
|
*/
|
546
|
-
|
547
|
-
const options = (0, exports.ParamCreater)().
|
639
|
+
showHistoryDetails(showHistoryDetailsRequest) {
|
640
|
+
const options = (0, exports.ParamCreater)().showHistoryDetails(showHistoryDetailsRequest);
|
548
641
|
// @ts-ignore
|
549
642
|
options['responseHeaders'] = [''];
|
550
643
|
return this.hcClient.sendRequest(options);
|
551
644
|
}
|
552
645
|
/**
|
553
|
-
*
|
646
|
+
* 获取镜像模板列表
|
554
647
|
*
|
555
648
|
* Please refer to HUAWEI cloud API Explorer for details.
|
556
649
|
*
|
557
|
-
* @summary
|
650
|
+
* @summary 获取镜像模板列表
|
651
|
+
* @param {*} [options] Override http request option.
|
652
|
+
* @throws {RequiredError}
|
653
|
+
*/
|
654
|
+
showImageTemplateList(showImageTemplateListRequest) {
|
655
|
+
const options = (0, exports.ParamCreater)().showImageTemplateList();
|
656
|
+
// @ts-ignore
|
657
|
+
options['responseHeaders'] = [''];
|
658
|
+
return this.hcClient.sendRequest(options);
|
659
|
+
}
|
660
|
+
/**
|
661
|
+
* 查询构建成功率
|
662
|
+
*
|
663
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
664
|
+
*
|
665
|
+
* @summary 查询构建成功率
|
558
666
|
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
559
|
-
* @param {string}
|
667
|
+
* @param {string} repositoryName 代码仓名称。
|
668
|
+
* @param {number} interval 查询时间,查最近几天的。
|
669
|
+
* @param {string} [branch] 代码仓分支名。
|
560
670
|
* @param {*} [options] Override http request option.
|
561
671
|
* @throws {RequiredError}
|
562
672
|
*/
|
563
|
-
|
564
|
-
const options = (0, exports.ParamCreater)().
|
673
|
+
showJobBuildSuccessRatio(showJobBuildSuccessRatioRequest) {
|
674
|
+
const options = (0, exports.ParamCreater)().showJobBuildSuccessRatio(showJobBuildSuccessRatioRequest);
|
565
675
|
// @ts-ignore
|
566
676
|
options['responseHeaders'] = [''];
|
567
677
|
return this.hcClient.sendRequest(options);
|
568
678
|
}
|
569
679
|
/**
|
570
|
-
*
|
680
|
+
* 洞察构建时长
|
571
681
|
*
|
572
682
|
* Please refer to HUAWEI cloud API Explorer for details.
|
573
683
|
*
|
574
|
-
* @summary
|
684
|
+
* @summary 洞察构建时长
|
575
685
|
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
576
|
-
* @param {
|
686
|
+
* @param {string} repositoryName 代码仓名称。
|
687
|
+
* @param {number} interval 查询时间,查最近几天的。
|
688
|
+
* @param {string} [branch] 代码仓分支名。
|
577
689
|
* @param {*} [options] Override http request option.
|
578
690
|
* @throws {RequiredError}
|
579
691
|
*/
|
580
|
-
|
581
|
-
const options = (0, exports.ParamCreater)().
|
692
|
+
showJobBuildTime(showJobBuildTimeRequest) {
|
693
|
+
const options = (0, exports.ParamCreater)().showJobBuildTime(showJobBuildTimeRequest);
|
582
694
|
// @ts-ignore
|
583
695
|
options['responseHeaders'] = [''];
|
584
696
|
return this.hcClient.sendRequest(options);
|
585
697
|
}
|
586
698
|
/**
|
587
|
-
*
|
699
|
+
* 获取构建任务详情
|
588
700
|
*
|
589
701
|
* Please refer to HUAWEI cloud API Explorer for details.
|
590
702
|
*
|
591
|
-
* @summary
|
592
|
-
* @param {
|
703
|
+
* @summary 获取构建任务详情
|
704
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
705
|
+
* @param {string} [getAllParams] 输入\"true\"或者\"false\"来控制返回参数是不是完整的
|
593
706
|
* @param {*} [options] Override http request option.
|
594
707
|
* @throws {RequiredError}
|
595
708
|
*/
|
596
|
-
|
597
|
-
const options = (0, exports.ParamCreater)().
|
709
|
+
showJobConfig(showJobConfigRequest) {
|
710
|
+
const options = (0, exports.ParamCreater)().showJobConfig(showJobConfigRequest);
|
598
711
|
// @ts-ignore
|
599
712
|
options['responseHeaders'] = [''];
|
600
713
|
return this.hcClient.sendRequest(options);
|
601
714
|
}
|
602
715
|
/**
|
603
|
-
*
|
716
|
+
* 获取构建任务配置的对比差异
|
604
717
|
*
|
605
718
|
* Please refer to HUAWEI cloud API Explorer for details.
|
606
719
|
*
|
607
|
-
* @summary
|
720
|
+
* @summary 获取构建任务配置的对比差异
|
608
721
|
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
609
|
-
* @param {
|
722
|
+
* @param {string} revisedlNo 新记录的序号
|
723
|
+
* @param {string} originalNo 原记录的序号
|
610
724
|
* @param {*} [options] Override http request option.
|
611
725
|
* @throws {RequiredError}
|
612
726
|
*/
|
613
|
-
|
614
|
-
const options = (0, exports.ParamCreater)().
|
727
|
+
showJobConfigDiff(showJobConfigDiffRequest) {
|
728
|
+
const options = (0, exports.ParamCreater)().showJobConfigDiff(showJobConfigDiffRequest);
|
615
729
|
// @ts-ignore
|
616
730
|
options['responseHeaders'] = [''];
|
617
731
|
return this.hcClient.sendRequest(options);
|
618
732
|
}
|
619
733
|
/**
|
620
|
-
*
|
734
|
+
* 查看构建任务构建信息
|
621
735
|
*
|
622
736
|
* Please refer to HUAWEI cloud API Explorer for details.
|
623
737
|
*
|
624
|
-
* @summary
|
625
|
-
* @param {string}
|
738
|
+
* @summary 查看构建任务构建信息
|
739
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
626
740
|
* @param {*} [options] Override http request option.
|
627
741
|
* @throws {RequiredError}
|
628
742
|
*/
|
629
|
-
|
630
|
-
const options = (0, exports.ParamCreater)().
|
743
|
+
showJobInfo(showJobInfoRequest) {
|
744
|
+
const options = (0, exports.ParamCreater)().showJobInfo(showJobInfoRequest);
|
631
745
|
// @ts-ignore
|
632
746
|
options['responseHeaders'] = [''];
|
633
747
|
return this.hcClient.sendRequest(options);
|
634
748
|
}
|
635
749
|
/**
|
636
|
-
*
|
750
|
+
* 查看项目下用户的构建任务列表
|
637
751
|
*
|
638
752
|
* Please refer to HUAWEI cloud API Explorer for details.
|
639
753
|
*
|
640
|
-
* @summary
|
641
|
-
* @param {string}
|
754
|
+
* @summary 查看项目下用户的构建任务列表
|
755
|
+
* @param {string} projectId CodeArts项目ID,32位数字、小写字母组合。
|
756
|
+
* @param {number} pageIndex 分页页码, 表示从此页开始查询, page_index大于等于0
|
757
|
+
* @param {number} pageSize 每页显示的条目数量,page_size小于等于100
|
642
758
|
* @param {*} [options] Override http request option.
|
643
759
|
* @throws {RequiredError}
|
644
760
|
*/
|
645
|
-
|
646
|
-
const options = (0, exports.ParamCreater)().
|
761
|
+
showJobListByProjectId(showJobListByProjectIdRequest) {
|
762
|
+
const options = (0, exports.ParamCreater)().showJobListByProjectId(showJobListByProjectIdRequest);
|
647
763
|
// @ts-ignore
|
648
764
|
options['responseHeaders'] = [''];
|
649
765
|
return this.hcClient.sendRequest(options);
|
650
766
|
}
|
651
767
|
/**
|
652
|
-
*
|
768
|
+
* 获取通知信息
|
653
769
|
*
|
654
770
|
* Please refer to HUAWEI cloud API Explorer for details.
|
655
771
|
*
|
656
|
-
* @summary
|
772
|
+
* @summary 获取通知信息
|
657
773
|
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
658
|
-
* @param {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
|
659
774
|
* @param {*} [options] Override http request option.
|
660
775
|
* @throws {RequiredError}
|
661
776
|
*/
|
662
|
-
|
663
|
-
const options = (0, exports.ParamCreater)().
|
777
|
+
showJobNoticeConfigInfo(showJobNoticeConfigInfoRequest) {
|
778
|
+
const options = (0, exports.ParamCreater)().showJobNoticeConfigInfo(showJobNoticeConfigInfoRequest);
|
664
779
|
// @ts-ignore
|
665
780
|
options['responseHeaders'] = [''];
|
666
781
|
return this.hcClient.sendRequest(options);
|
667
782
|
}
|
668
783
|
/**
|
669
|
-
*
|
784
|
+
* 获取构建任务的角色权限矩阵信息
|
670
785
|
*
|
671
786
|
* Please refer to HUAWEI cloud API Explorer for details.
|
672
787
|
*
|
673
|
-
* @summary
|
674
|
-
* @param {
|
788
|
+
* @summary 获取构建任务的角色权限矩阵信息
|
789
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
675
790
|
* @param {*} [options] Override http request option.
|
676
791
|
* @throws {RequiredError}
|
677
792
|
*/
|
678
|
-
|
679
|
-
const options = (0, exports.ParamCreater)().
|
793
|
+
showJobRolePermission(showJobRolePermissionRequest) {
|
794
|
+
const options = (0, exports.ParamCreater)().showJobRolePermission(showJobRolePermissionRequest);
|
680
795
|
// @ts-ignore
|
681
796
|
options['responseHeaders'] = [''];
|
682
797
|
return this.hcClient.sendRequest(options);
|
683
798
|
}
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
799
|
+
/**
|
800
|
+
* 查看任务运行状态
|
801
|
+
*
|
802
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
803
|
+
*
|
804
|
+
* @summary 查看任务运行状态
|
805
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
806
|
+
* @param {*} [options] Override http request option.
|
807
|
+
* @throws {RequiredError}
|
808
|
+
*/
|
809
|
+
showJobStatus(showJobStatusRequest) {
|
810
|
+
const options = (0, exports.ParamCreater)().showJobStatus(showJobStatusRequest);
|
811
|
+
// @ts-ignore
|
812
|
+
options['responseHeaders'] = [''];
|
813
|
+
return this.hcClient.sendRequest(options);
|
814
|
+
}
|
815
|
+
/**
|
816
|
+
* 根据开始时间和结束时间查看构建任务的构建成功率
|
817
|
+
*
|
818
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
819
|
+
*
|
820
|
+
* @summary 根据开始时间和结束时间查看构建任务的构建成功率
|
821
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
822
|
+
* @param {string} startTime 区间开始时间,格式yyyy-MM-dd。
|
823
|
+
* @param {string} endTime 区间结束时间,格式yyyy-MM-dd。
|
824
|
+
* @param {*} [options] Override http request option.
|
825
|
+
* @throws {RequiredError}
|
826
|
+
*/
|
827
|
+
showJobSuccessRatio(showJobSuccessRatioRequest) {
|
828
|
+
const options = (0, exports.ParamCreater)().showJobSuccessRatio(showJobSuccessRatioRequest);
|
829
|
+
// @ts-ignore
|
830
|
+
options['responseHeaders'] = [''];
|
831
|
+
return this.hcClient.sendRequest(options);
|
832
|
+
}
|
833
|
+
/**
|
834
|
+
* 查看系统预定义参数
|
835
|
+
*
|
836
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
837
|
+
*
|
838
|
+
* @summary 查看系统预定义参数
|
839
|
+
* @param {*} [options] Override http request option.
|
840
|
+
* @throws {RequiredError}
|
841
|
+
*/
|
842
|
+
showJobSystemParameters(showJobSystemParametersRequest) {
|
843
|
+
const options = (0, exports.ParamCreater)().showJobSystemParameters();
|
844
|
+
// @ts-ignore
|
845
|
+
options['responseHeaders'] = [''];
|
846
|
+
return this.hcClient.sendRequest(options);
|
847
|
+
}
|
848
|
+
/**
|
849
|
+
* 文件管理查询权限
|
850
|
+
*
|
851
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
852
|
+
*
|
853
|
+
* @summary 文件管理查询权限
|
854
|
+
* @param {string} keystoreId 文件秘钥Id
|
855
|
+
* @param {number} pageSize **参数解释**: 每页显示的条目数量。 **约束限制**: 不涉及。 **取值范围**: 只能使用数字,小于等于100。
|
856
|
+
* @param {string} page 分页页码,表示从此页开始查询,page大于等于1
|
857
|
+
* @param {*} [options] Override http request option.
|
858
|
+
* @throws {RequiredError}
|
859
|
+
*/
|
860
|
+
showKeystorePermission(showKeystorePermissionRequest) {
|
861
|
+
const options = (0, exports.ParamCreater)().showKeystorePermission(showKeystorePermissionRequest);
|
862
|
+
// @ts-ignore
|
863
|
+
options['responseHeaders'] = [''];
|
864
|
+
return this.hcClient.sendRequest(options);
|
865
|
+
}
|
866
|
+
/**
|
867
|
+
* 查询指定代码仓库最近一次成功的构建历史
|
868
|
+
*
|
869
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
870
|
+
*
|
871
|
+
* @summary 查询指定代码仓库最近一次成功的构建历史
|
872
|
+
* @param {string} projectId CodeArts项目ID,32位数字、小写字母组合。
|
873
|
+
* @param {string} repositoryName 代码仓库名,不支持中文
|
874
|
+
* @param {*} [options] Override http request option.
|
875
|
+
* @throws {RequiredError}
|
876
|
+
*/
|
877
|
+
showLastHistory(showLastHistoryRequest) {
|
878
|
+
const options = (0, exports.ParamCreater)().showLastHistory(showLastHistoryRequest);
|
879
|
+
// @ts-ignore
|
880
|
+
options['responseHeaders'] = [''];
|
881
|
+
return this.hcClient.sendRequest(options);
|
882
|
+
}
|
883
|
+
/**
|
884
|
+
* 查看构建任务的构建历史列表
|
885
|
+
*
|
886
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
887
|
+
*
|
888
|
+
* @summary 查看构建任务的构建历史列表
|
889
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
890
|
+
* @param {number} offset 分页页码, 表示从此页开始查询, offset大于等于0
|
891
|
+
* @param {number} limit 每页显示的条目数量,limit小于等于100
|
892
|
+
* @param {number} interval 距今天的时间区间(单位:天),interval小于等于30
|
893
|
+
* @param {*} [options] Override http request option.
|
894
|
+
* @throws {RequiredError}
|
895
|
+
*/
|
896
|
+
showListHistory(showListHistoryRequest) {
|
897
|
+
const options = (0, exports.ParamCreater)().showListHistory(showListHistoryRequest);
|
898
|
+
// @ts-ignore
|
899
|
+
options['responseHeaders'] = [''];
|
900
|
+
return this.hcClient.sendRequest(options);
|
901
|
+
}
|
902
|
+
/**
|
903
|
+
* 根据开始时间和结束时间查看构建任务的构建历史列表
|
904
|
+
*
|
905
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
906
|
+
*
|
907
|
+
* @summary 根据开始时间和结束时间查看构建任务的构建历史列表
|
908
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
909
|
+
* @param {number} offset 分页页码, 表示从此页开始查询, offset大于等于0
|
910
|
+
* @param {number} limit 每页显示的条目数量,limit小于等于100
|
911
|
+
* @param {string} startTime 区间开始时间,格式yyyy-MM-dd。 开始时间和结束时间间隔不能超过30天
|
912
|
+
* @param {string} endTime 区间结束时间,格式yyyy-MM-dd。 开始时间和结束时间间隔不能超过30天
|
913
|
+
* @param {*} [options] Override http request option.
|
914
|
+
* @throws {RequiredError}
|
915
|
+
*/
|
916
|
+
showListPeriodHistory(showListPeriodHistoryRequest) {
|
917
|
+
const options = (0, exports.ParamCreater)().showListPeriodHistory(showListPeriodHistoryRequest);
|
918
|
+
// @ts-ignore
|
919
|
+
options['responseHeaders'] = [''];
|
920
|
+
return this.hcClient.sendRequest(options);
|
921
|
+
}
|
922
|
+
/**
|
923
|
+
* 获取构建产物详情信息
|
924
|
+
*
|
925
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
926
|
+
*
|
927
|
+
* @summary 获取构建产物详情信息
|
928
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
929
|
+
* @param {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
|
930
|
+
* @param {*} [options] Override http request option.
|
931
|
+
* @throws {RequiredError}
|
932
|
+
*/
|
933
|
+
showOutputInfo(showOutputInfoRequest) {
|
934
|
+
const options = (0, exports.ParamCreater)().showOutputInfo(showOutputInfoRequest);
|
935
|
+
// @ts-ignore
|
936
|
+
options['responseHeaders'] = [''];
|
937
|
+
return this.hcClient.sendRequest(options);
|
938
|
+
}
|
939
|
+
/**
|
940
|
+
* 获取用户权限
|
941
|
+
*
|
942
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
943
|
+
*
|
944
|
+
* @summary 获取用户权限
|
945
|
+
* @param {string} projectId CodeArts项目ID,32位数字、小写字母组合。
|
946
|
+
* @param {*} [options] Override http request option.
|
947
|
+
* @throws {RequiredError}
|
948
|
+
*/
|
949
|
+
showProjectPermission(showProjectPermissionRequest) {
|
950
|
+
const options = (0, exports.ParamCreater)().showProjectPermission(showProjectPermissionRequest);
|
951
|
+
// @ts-ignore
|
952
|
+
options['responseHeaders'] = [''];
|
953
|
+
return this.hcClient.sendRequest(options);
|
954
|
+
}
|
955
|
+
/**
|
956
|
+
* 获取构建记录信息
|
957
|
+
*
|
958
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
959
|
+
*
|
960
|
+
* @summary 获取构建记录信息
|
961
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
962
|
+
* @param {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
|
963
|
+
* @param {*} [options] Override http request option.
|
964
|
+
* @throws {RequiredError}
|
965
|
+
*/
|
966
|
+
showRecordDetail(showRecordDetailRequest) {
|
967
|
+
const options = (0, exports.ParamCreater)().showRecordDetail(showRecordDetailRequest);
|
968
|
+
// @ts-ignore
|
969
|
+
options['responseHeaders'] = [''];
|
970
|
+
return this.hcClient.sendRequest(options);
|
971
|
+
}
|
972
|
+
/**
|
973
|
+
* 获取当前用户的项目信息列表
|
974
|
+
*
|
975
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
976
|
+
*
|
977
|
+
* @summary 获取当前用户的项目信息列表
|
978
|
+
* @param {*} [options] Override http request option.
|
979
|
+
* @throws {RequiredError}
|
980
|
+
*/
|
981
|
+
showRelatedProject(showRelatedProjectRequest) {
|
982
|
+
const options = (0, exports.ParamCreater)().showRelatedProject();
|
983
|
+
// @ts-ignore
|
984
|
+
options['responseHeaders'] = [''];
|
985
|
+
return this.hcClient.sendRequest(options);
|
986
|
+
}
|
987
|
+
/**
|
988
|
+
* 获取覆盖率接口
|
989
|
+
*
|
990
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
991
|
+
*
|
992
|
+
* @summary 获取覆盖率接口
|
993
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
994
|
+
* @param {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
|
995
|
+
* @param {*} [options] Override http request option.
|
996
|
+
* @throws {RequiredError}
|
997
|
+
*/
|
998
|
+
showReportSummary(showReportSummaryRequest) {
|
999
|
+
const options = (0, exports.ParamCreater)().showReportSummary(showReportSummaryRequest);
|
1000
|
+
// @ts-ignore
|
1001
|
+
options['responseHeaders'] = [''];
|
1002
|
+
return this.hcClient.sendRequest(options);
|
1003
|
+
}
|
1004
|
+
/**
|
1005
|
+
* 查看任务是否在构建
|
1006
|
+
*
|
1007
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1008
|
+
*
|
1009
|
+
* @summary 查看任务是否在构建
|
1010
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
1011
|
+
* @param {*} [options] Override http request option.
|
1012
|
+
* @throws {RequiredError}
|
1013
|
+
*/
|
1014
|
+
showRunningStatus(showRunningStatusRequest) {
|
1015
|
+
const options = (0, exports.ParamCreater)().showRunningStatus(showRunningStatusRequest);
|
1016
|
+
// @ts-ignore
|
1017
|
+
options['responseHeaders'] = [''];
|
1018
|
+
return this.hcClient.sendRequest(options);
|
1019
|
+
}
|
1020
|
+
/**
|
1021
|
+
* 获取代码化构建默认模板
|
1022
|
+
*
|
1023
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1024
|
+
*
|
1025
|
+
* @summary 获取代码化构建默认模板
|
1026
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
1027
|
+
* @param {string} [defaultHost] 默认主机类型
|
1028
|
+
* @param {*} [options] Override http request option.
|
1029
|
+
* @throws {RequiredError}
|
1030
|
+
*/
|
1031
|
+
showYamlTemplate(showYamlTemplateRequest) {
|
1032
|
+
const options = (0, exports.ParamCreater)().showYamlTemplate(showYamlTemplateRequest);
|
1033
|
+
// @ts-ignore
|
1034
|
+
options['responseHeaders'] = [''];
|
1035
|
+
return this.hcClient.sendRequest(options);
|
1036
|
+
}
|
1037
|
+
/**
|
1038
|
+
* 停止构建任务
|
1039
|
+
*
|
1040
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1041
|
+
*
|
1042
|
+
* @summary 停止构建任务
|
1043
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
1044
|
+
* @param {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
|
1045
|
+
* @param {*} [options] Override http request option.
|
1046
|
+
* @throws {RequiredError}
|
1047
|
+
*/
|
1048
|
+
stopBuildJob(stopBuildJobRequest) {
|
1049
|
+
const options = (0, exports.ParamCreater)().stopBuildJob(stopBuildJobRequest);
|
1050
|
+
// @ts-ignore
|
1051
|
+
options['responseHeaders'] = [''];
|
1052
|
+
return this.hcClient.sendRequest(options);
|
1053
|
+
}
|
1054
|
+
/**
|
1055
|
+
* 更新构建任务
|
1056
|
+
*
|
1057
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1058
|
+
*
|
1059
|
+
* @summary 更新构建任务
|
1060
|
+
* @param {UpdateBuildJobRequestBody} updateBuildJobRequestBody body
|
1061
|
+
* @param {*} [options] Override http request option.
|
1062
|
+
* @throws {RequiredError}
|
1063
|
+
*/
|
1064
|
+
updateBuildJob(updateBuildJobRequest) {
|
1065
|
+
const options = (0, exports.ParamCreater)().updateBuildJob(updateBuildJobRequest);
|
1066
|
+
// @ts-ignore
|
1067
|
+
options['responseHeaders'] = [''];
|
1068
|
+
return this.hcClient.sendRequest(options);
|
1069
|
+
}
|
1070
|
+
/**
|
1071
|
+
* 更新通知
|
1072
|
+
*
|
1073
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1074
|
+
*
|
1075
|
+
* @summary 更新通知
|
1076
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
1077
|
+
* @param {UpdateNoticeRequestBody} updateNoticeRequestBody body
|
1078
|
+
* @param {*} [options] Override http request option.
|
1079
|
+
* @throws {RequiredError}
|
1080
|
+
*/
|
1081
|
+
updateNotice(updateNoticeRequest) {
|
1082
|
+
const options = (0, exports.ParamCreater)().updateNotice(updateNoticeRequest);
|
1083
|
+
// @ts-ignore
|
1084
|
+
options['responseHeaders'] = [''];
|
1085
|
+
return this.hcClient.sendRequest(options);
|
1086
|
+
}
|
1087
|
+
/**
|
1088
|
+
* 下载构建日志(待下线)
|
1089
|
+
*
|
1090
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1091
|
+
*
|
1092
|
+
* @summary 下载构建日志(待下线)
|
1093
|
+
* @param {string} recordId 记录ID,36位数字、小写字母、\'-\'组组合。
|
1094
|
+
* @param {*} [options] Override http request option.
|
1095
|
+
* @throws {RequiredError}
|
1096
|
+
*/
|
1097
|
+
downloadLogByRecordId(downloadLogByRecordIdRequest) {
|
1098
|
+
const options = (0, exports.ParamCreater)().downloadLogByRecordId(downloadLogByRecordIdRequest);
|
1099
|
+
// @ts-ignore
|
1100
|
+
options['responseHeaders'] = [''];
|
1101
|
+
return this.hcClient.sendRequest(options);
|
1102
|
+
}
|
1103
|
+
/**
|
1104
|
+
* 获取构建记录的有向无环图(待下线)
|
1105
|
+
*
|
1106
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1107
|
+
*
|
1108
|
+
* @summary 获取构建记录的有向无环图(待下线)
|
1109
|
+
* @param {string} buildFlowRecordId 父任务构建记录ID
|
1110
|
+
* @param {*} [options] Override http request option.
|
1111
|
+
* @throws {RequiredError}
|
1112
|
+
*/
|
1113
|
+
showFlowGraph(showFlowGraphRequest) {
|
1114
|
+
const options = (0, exports.ParamCreater)().showFlowGraph(showFlowGraphRequest);
|
1115
|
+
// @ts-ignore
|
1116
|
+
options['responseHeaders'] = [''];
|
1117
|
+
return this.hcClient.sendRequest(options);
|
1118
|
+
}
|
1119
|
+
/**
|
1120
|
+
* 获取构建记录信息(待下线)
|
1121
|
+
*
|
1122
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1123
|
+
*
|
1124
|
+
* @summary 获取构建记录信息(待下线)
|
1125
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
1126
|
+
* @param {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
|
1127
|
+
* @param {*} [options] Override http request option.
|
1128
|
+
* @throws {RequiredError}
|
1129
|
+
*/
|
1130
|
+
showRecordInfo(showRecordInfoRequest) {
|
1131
|
+
const options = (0, exports.ParamCreater)().showRecordInfo(showRecordInfoRequest);
|
1132
|
+
// @ts-ignore
|
1133
|
+
options['responseHeaders'] = [''];
|
1134
|
+
return this.hcClient.sendRequest(options);
|
1135
|
+
}
|
1136
|
+
/**
|
1137
|
+
* 停止构建任务(待下线)
|
1138
|
+
*
|
1139
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1140
|
+
*
|
1141
|
+
* @summary 停止构建任务(待下线)
|
1142
|
+
* @param {StopJobRequestBody} stopJobRequestBody body
|
1143
|
+
* @param {*} [options] Override http request option.
|
1144
|
+
* @throws {RequiredError}
|
1145
|
+
*/
|
1146
|
+
stopJob(stopJobRequest) {
|
1147
|
+
const options = (0, exports.ParamCreater)().stopJob(stopJobRequest);
|
1148
|
+
// @ts-ignore
|
1149
|
+
options['responseHeaders'] = [''];
|
1150
|
+
return this.hcClient.sendRequest(options);
|
1151
|
+
}
|
1152
|
+
}
|
1153
|
+
exports.CodeArtsBuildClient = CodeArtsBuildClient;
|
1154
|
+
const ParamCreater = function () {
|
1155
|
+
return {
|
1156
|
+
/**
|
1157
|
+
* 查看项目下任务名是否存在
|
1158
|
+
*
|
1159
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1160
|
+
*/
|
1161
|
+
checkJobNameIsExists(checkJobNameIsExistsRequest) {
|
1162
|
+
const options = {
|
1163
|
+
method: "GET",
|
1164
|
+
url: "/v1/job/check/exist",
|
1165
|
+
contentType: "application/json",
|
1166
|
+
queryParams: {},
|
1167
|
+
pathParams: {},
|
1168
|
+
headers: {}
|
1169
|
+
};
|
1170
|
+
const localVarHeaderParameter = {};
|
1171
|
+
const localVarQueryParameter = {};
|
1172
|
+
let projectId;
|
1173
|
+
let jobName;
|
1174
|
+
if (checkJobNameIsExistsRequest !== null && checkJobNameIsExistsRequest !== undefined) {
|
1175
|
+
if (checkJobNameIsExistsRequest instanceof CheckJobNameIsExistsRequest_1.CheckJobNameIsExistsRequest) {
|
1176
|
+
projectId = checkJobNameIsExistsRequest.projectId;
|
1177
|
+
jobName = checkJobNameIsExistsRequest.jobName;
|
1178
|
+
}
|
1179
|
+
else {
|
1180
|
+
projectId = checkJobNameIsExistsRequest['project_id'];
|
1181
|
+
jobName = checkJobNameIsExistsRequest['job_name'];
|
1182
|
+
}
|
1183
|
+
}
|
1184
|
+
if (projectId === null || projectId === undefined) {
|
1185
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling checkJobNameIsExists.');
|
1186
|
+
}
|
1187
|
+
if (projectId !== null && projectId !== undefined) {
|
1188
|
+
localVarQueryParameter['project_id'] = projectId;
|
1189
|
+
}
|
1190
|
+
if (jobName === null || jobName === undefined) {
|
1191
|
+
throw new RequiredError('jobName', 'Required parameter jobName was null or undefined when calling checkJobNameIsExists.');
|
1192
|
+
}
|
1193
|
+
if (jobName !== null && jobName !== undefined) {
|
1194
|
+
localVarQueryParameter['job_name'] = jobName;
|
1195
|
+
}
|
1196
|
+
options.queryParams = localVarQueryParameter;
|
1197
|
+
options.headers = localVarHeaderParameter;
|
1198
|
+
return options;
|
1199
|
+
},
|
1200
|
+
/**
|
1201
|
+
* 创建构建任务
|
1202
|
+
*
|
1203
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1204
|
+
*/
|
693
1205
|
createBuildJob(createBuildJobRequest) {
|
694
1206
|
const options = {
|
695
|
-
method: "POST",
|
696
|
-
url: "/v3/jobs/create",
|
1207
|
+
method: "POST",
|
1208
|
+
url: "/v3/jobs/create",
|
1209
|
+
contentType: "application/json",
|
1210
|
+
queryParams: {},
|
1211
|
+
pathParams: {},
|
1212
|
+
headers: {},
|
1213
|
+
data: {}
|
1214
|
+
};
|
1215
|
+
const localVarHeaderParameter = {};
|
1216
|
+
let body;
|
1217
|
+
if (createBuildJobRequest !== null && createBuildJobRequest !== undefined) {
|
1218
|
+
if (createBuildJobRequest instanceof CreateBuildJobRequest_1.CreateBuildJobRequest) {
|
1219
|
+
body = createBuildJobRequest.body;
|
1220
|
+
}
|
1221
|
+
else {
|
1222
|
+
body = createBuildJobRequest['body'];
|
1223
|
+
}
|
1224
|
+
}
|
1225
|
+
if (body === null || body === undefined) {
|
1226
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1227
|
+
}
|
1228
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1229
|
+
options.data = body !== undefined ? body : {};
|
1230
|
+
options.headers = localVarHeaderParameter;
|
1231
|
+
return options;
|
1232
|
+
},
|
1233
|
+
/**
|
1234
|
+
* 创建构建模板
|
1235
|
+
*
|
1236
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1237
|
+
*/
|
1238
|
+
createTemplates(createTemplatesRequest) {
|
1239
|
+
const options = {
|
1240
|
+
method: "POST",
|
1241
|
+
url: "/v3/templates/create",
|
1242
|
+
contentType: "application/json",
|
1243
|
+
queryParams: {},
|
1244
|
+
pathParams: {},
|
1245
|
+
headers: {},
|
1246
|
+
data: {}
|
1247
|
+
};
|
1248
|
+
const localVarHeaderParameter = {};
|
1249
|
+
let body;
|
1250
|
+
if (createTemplatesRequest !== null && createTemplatesRequest !== undefined) {
|
1251
|
+
if (createTemplatesRequest instanceof CreateTemplatesRequest_1.CreateTemplatesRequest) {
|
1252
|
+
body = createTemplatesRequest.body;
|
1253
|
+
}
|
1254
|
+
else {
|
1255
|
+
body = createTemplatesRequest['body'];
|
1256
|
+
}
|
1257
|
+
}
|
1258
|
+
if (body === null || body === undefined) {
|
1259
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1260
|
+
}
|
1261
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1262
|
+
options.data = body !== undefined ? body : {};
|
1263
|
+
options.headers = localVarHeaderParameter;
|
1264
|
+
return options;
|
1265
|
+
},
|
1266
|
+
/**
|
1267
|
+
* 删除构建任务
|
1268
|
+
*
|
1269
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1270
|
+
*/
|
1271
|
+
deleteBuildJob(deleteBuildJobRequest) {
|
1272
|
+
const options = {
|
1273
|
+
method: "POST",
|
1274
|
+
url: "/v3/jobs/{job_id}/delete",
|
1275
|
+
contentType: "application/json",
|
1276
|
+
queryParams: {},
|
1277
|
+
pathParams: {},
|
1278
|
+
headers: {}
|
1279
|
+
};
|
1280
|
+
const localVarHeaderParameter = {};
|
1281
|
+
let jobId;
|
1282
|
+
if (deleteBuildJobRequest !== null && deleteBuildJobRequest !== undefined) {
|
1283
|
+
if (deleteBuildJobRequest instanceof DeleteBuildJobRequest_1.DeleteBuildJobRequest) {
|
1284
|
+
jobId = deleteBuildJobRequest.jobId;
|
1285
|
+
}
|
1286
|
+
else {
|
1287
|
+
jobId = deleteBuildJobRequest['job_id'];
|
1288
|
+
}
|
1289
|
+
}
|
1290
|
+
if (jobId === null || jobId === undefined) {
|
1291
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling deleteBuildJob.');
|
1292
|
+
}
|
1293
|
+
options.pathParams = { 'job_id': jobId, };
|
1294
|
+
options.headers = localVarHeaderParameter;
|
1295
|
+
return options;
|
1296
|
+
},
|
1297
|
+
/**
|
1298
|
+
* 删除构建模板
|
1299
|
+
*
|
1300
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1301
|
+
*/
|
1302
|
+
deleteTemplates(deleteTemplatesRequest) {
|
1303
|
+
const options = {
|
1304
|
+
method: "DELETE",
|
1305
|
+
url: "/v3/templates/{uuid}/delete",
|
1306
|
+
contentType: "application/json",
|
1307
|
+
queryParams: {},
|
1308
|
+
pathParams: {},
|
1309
|
+
headers: {}
|
1310
|
+
};
|
1311
|
+
const localVarHeaderParameter = {};
|
1312
|
+
let uuid;
|
1313
|
+
if (deleteTemplatesRequest !== null && deleteTemplatesRequest !== undefined) {
|
1314
|
+
if (deleteTemplatesRequest instanceof DeleteTemplatesRequest_1.DeleteTemplatesRequest) {
|
1315
|
+
uuid = deleteTemplatesRequest.uuid;
|
1316
|
+
}
|
1317
|
+
else {
|
1318
|
+
uuid = deleteTemplatesRequest['uuid'];
|
1319
|
+
}
|
1320
|
+
}
|
1321
|
+
if (uuid === null || uuid === undefined) {
|
1322
|
+
throw new RequiredError('uuid', 'Required parameter uuid was null or undefined when calling deleteTemplates.');
|
1323
|
+
}
|
1324
|
+
options.pathParams = { 'uuid': uuid, };
|
1325
|
+
options.headers = localVarHeaderParameter;
|
1326
|
+
return options;
|
1327
|
+
},
|
1328
|
+
/**
|
1329
|
+
* 禁用构建任务
|
1330
|
+
*
|
1331
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1332
|
+
*/
|
1333
|
+
disableBuildJob(disableBuildJobRequest) {
|
1334
|
+
const options = {
|
1335
|
+
method: "POST",
|
1336
|
+
url: "/v3/jobs/{job_id}/disable",
|
1337
|
+
contentType: "application/json",
|
1338
|
+
queryParams: {},
|
1339
|
+
pathParams: {},
|
1340
|
+
headers: {}
|
1341
|
+
};
|
1342
|
+
const localVarHeaderParameter = {};
|
1343
|
+
let jobId;
|
1344
|
+
if (disableBuildJobRequest !== null && disableBuildJobRequest !== undefined) {
|
1345
|
+
if (disableBuildJobRequest instanceof DisableBuildJobRequest_1.DisableBuildJobRequest) {
|
1346
|
+
jobId = disableBuildJobRequest.jobId;
|
1347
|
+
}
|
1348
|
+
else {
|
1349
|
+
jobId = disableBuildJobRequest['job_id'];
|
1350
|
+
}
|
1351
|
+
}
|
1352
|
+
if (jobId === null || jobId === undefined) {
|
1353
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling disableBuildJob.');
|
1354
|
+
}
|
1355
|
+
options.pathParams = { 'job_id': jobId, };
|
1356
|
+
options.headers = localVarHeaderParameter;
|
1357
|
+
return options;
|
1358
|
+
},
|
1359
|
+
/**
|
1360
|
+
* 取消通知
|
1361
|
+
*
|
1362
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1363
|
+
*/
|
1364
|
+
disableNotice(disableNoticeRequest) {
|
1365
|
+
const options = {
|
1366
|
+
method: "POST",
|
1367
|
+
url: "/v3/jobs/notice/{job_id}/disable",
|
1368
|
+
contentType: "application/json",
|
1369
|
+
queryParams: {},
|
1370
|
+
pathParams: {},
|
1371
|
+
headers: {}
|
1372
|
+
};
|
1373
|
+
const localVarHeaderParameter = {};
|
1374
|
+
const localVarQueryParameter = {};
|
1375
|
+
let jobId;
|
1376
|
+
let noticeType;
|
1377
|
+
if (disableNoticeRequest !== null && disableNoticeRequest !== undefined) {
|
1378
|
+
if (disableNoticeRequest instanceof DisableNoticeRequest_1.DisableNoticeRequest) {
|
1379
|
+
jobId = disableNoticeRequest.jobId;
|
1380
|
+
noticeType = disableNoticeRequest.noticeType;
|
1381
|
+
}
|
1382
|
+
else {
|
1383
|
+
jobId = disableNoticeRequest['job_id'];
|
1384
|
+
noticeType = disableNoticeRequest['notice_type'];
|
1385
|
+
}
|
1386
|
+
}
|
1387
|
+
if (jobId === null || jobId === undefined) {
|
1388
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling disableNotice.');
|
1389
|
+
}
|
1390
|
+
if (noticeType === null || noticeType === undefined) {
|
1391
|
+
throw new RequiredError('noticeType', 'Required parameter noticeType was null or undefined when calling disableNotice.');
|
1392
|
+
}
|
1393
|
+
if (noticeType !== null && noticeType !== undefined) {
|
1394
|
+
localVarQueryParameter['notice_type'] = noticeType;
|
1395
|
+
}
|
1396
|
+
options.queryParams = localVarQueryParameter;
|
1397
|
+
options.pathParams = { 'job_id': jobId, };
|
1398
|
+
options.headers = localVarHeaderParameter;
|
1399
|
+
return options;
|
1400
|
+
},
|
1401
|
+
/**
|
1402
|
+
* 下载全量构建日志
|
1403
|
+
*
|
1404
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1405
|
+
*/
|
1406
|
+
downloadBuildLog(downloadBuildLogRequest) {
|
1407
|
+
const options = {
|
1408
|
+
method: "GET",
|
1409
|
+
url: "/v4/{record_id}/download-log",
|
1410
|
+
contentType: "application/json",
|
1411
|
+
queryParams: {},
|
1412
|
+
pathParams: {},
|
1413
|
+
headers: {}
|
1414
|
+
};
|
1415
|
+
const localVarHeaderParameter = {};
|
1416
|
+
const localVarQueryParameter = {};
|
1417
|
+
let recordId;
|
1418
|
+
let logLevel;
|
1419
|
+
if (downloadBuildLogRequest !== null && downloadBuildLogRequest !== undefined) {
|
1420
|
+
if (downloadBuildLogRequest instanceof DownloadBuildLogRequest_1.DownloadBuildLogRequest) {
|
1421
|
+
recordId = downloadBuildLogRequest.recordId;
|
1422
|
+
logLevel = downloadBuildLogRequest.logLevel;
|
1423
|
+
}
|
1424
|
+
else {
|
1425
|
+
recordId = downloadBuildLogRequest['record_id'];
|
1426
|
+
logLevel = downloadBuildLogRequest['log_level'];
|
1427
|
+
}
|
1428
|
+
}
|
1429
|
+
if (recordId === null || recordId === undefined) {
|
1430
|
+
throw new RequiredError('recordId', 'Required parameter recordId was null or undefined when calling downloadBuildLog.');
|
1431
|
+
}
|
1432
|
+
if (logLevel !== null && logLevel !== undefined) {
|
1433
|
+
localVarQueryParameter['log_level'] = logLevel;
|
1434
|
+
}
|
1435
|
+
options.queryParams = localVarQueryParameter;
|
1436
|
+
options.pathParams = { 'record_id': recordId, };
|
1437
|
+
options.headers = localVarHeaderParameter;
|
1438
|
+
return options;
|
1439
|
+
},
|
1440
|
+
/**
|
1441
|
+
* 下载指定租户下的KeyStore文件
|
1442
|
+
*
|
1443
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1444
|
+
*/
|
1445
|
+
downloadKeystore(downloadKeystoreRequest) {
|
1446
|
+
const options = {
|
1447
|
+
method: "GET",
|
1448
|
+
url: "/v3/keystore",
|
1449
|
+
contentType: "application/json",
|
1450
|
+
queryParams: {},
|
1451
|
+
pathParams: {},
|
1452
|
+
headers: {}
|
1453
|
+
};
|
1454
|
+
const localVarHeaderParameter = {};
|
1455
|
+
const localVarQueryParameter = {};
|
1456
|
+
let fileName;
|
1457
|
+
let domainId;
|
1458
|
+
if (downloadKeystoreRequest !== null && downloadKeystoreRequest !== undefined) {
|
1459
|
+
if (downloadKeystoreRequest instanceof DownloadKeystoreRequest_1.DownloadKeystoreRequest) {
|
1460
|
+
fileName = downloadKeystoreRequest.fileName;
|
1461
|
+
domainId = downloadKeystoreRequest.domainId;
|
1462
|
+
}
|
1463
|
+
else {
|
1464
|
+
fileName = downloadKeystoreRequest['file_name'];
|
1465
|
+
domainId = downloadKeystoreRequest['domain_id'];
|
1466
|
+
}
|
1467
|
+
}
|
1468
|
+
if (fileName === null || fileName === undefined) {
|
1469
|
+
throw new RequiredError('fileName', 'Required parameter fileName was null or undefined when calling downloadKeystore.');
|
1470
|
+
}
|
1471
|
+
if (fileName !== null && fileName !== undefined) {
|
1472
|
+
localVarQueryParameter['file_name'] = fileName;
|
1473
|
+
}
|
1474
|
+
if (domainId === null || domainId === undefined) {
|
1475
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling downloadKeystore.');
|
1476
|
+
}
|
1477
|
+
if (domainId !== null && domainId !== undefined) {
|
1478
|
+
localVarQueryParameter['domain_id'] = domainId;
|
1479
|
+
}
|
1480
|
+
options.queryParams = localVarQueryParameter;
|
1481
|
+
options.headers = localVarHeaderParameter;
|
1482
|
+
return options;
|
1483
|
+
},
|
1484
|
+
/**
|
1485
|
+
* 文件管理文件下载
|
1486
|
+
*
|
1487
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1488
|
+
*/
|
1489
|
+
downloadKeystoreByName(downloadKeystoreByNameRequest) {
|
1490
|
+
const options = {
|
1491
|
+
method: "GET",
|
1492
|
+
url: "/v2/keystore/download",
|
1493
|
+
contentType: "application/json",
|
1494
|
+
queryParams: {},
|
1495
|
+
pathParams: {},
|
1496
|
+
headers: {}
|
1497
|
+
};
|
1498
|
+
const localVarHeaderParameter = {};
|
1499
|
+
const localVarQueryParameter = {};
|
1500
|
+
let name;
|
1501
|
+
let domainId;
|
1502
|
+
let id;
|
1503
|
+
if (downloadKeystoreByNameRequest !== null && downloadKeystoreByNameRequest !== undefined) {
|
1504
|
+
if (downloadKeystoreByNameRequest instanceof DownloadKeystoreByNameRequest_1.DownloadKeystoreByNameRequest) {
|
1505
|
+
name = downloadKeystoreByNameRequest.name;
|
1506
|
+
domainId = downloadKeystoreByNameRequest.domainId;
|
1507
|
+
id = downloadKeystoreByNameRequest.id;
|
1508
|
+
}
|
1509
|
+
else {
|
1510
|
+
name = downloadKeystoreByNameRequest['name'];
|
1511
|
+
domainId = downloadKeystoreByNameRequest['domain_id'];
|
1512
|
+
id = downloadKeystoreByNameRequest['id'];
|
1513
|
+
}
|
1514
|
+
}
|
1515
|
+
if (name === null || name === undefined) {
|
1516
|
+
throw new RequiredError('name', 'Required parameter name was null or undefined when calling downloadKeystoreByName.');
|
1517
|
+
}
|
1518
|
+
if (name !== null && name !== undefined) {
|
1519
|
+
localVarQueryParameter['name'] = name;
|
1520
|
+
}
|
1521
|
+
if (domainId === null || domainId === undefined) {
|
1522
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling downloadKeystoreByName.');
|
1523
|
+
}
|
1524
|
+
if (domainId !== null && domainId !== undefined) {
|
1525
|
+
localVarQueryParameter['domain_id'] = domainId;
|
1526
|
+
}
|
1527
|
+
if (id === null || id === undefined) {
|
1528
|
+
throw new RequiredError('id', 'Required parameter id was null or undefined when calling downloadKeystoreByName.');
|
1529
|
+
}
|
1530
|
+
if (id !== null && id !== undefined) {
|
1531
|
+
localVarQueryParameter['id'] = id;
|
1532
|
+
}
|
1533
|
+
options.queryParams = localVarQueryParameter;
|
1534
|
+
options.headers = localVarHeaderParameter;
|
1535
|
+
return options;
|
1536
|
+
},
|
1537
|
+
/**
|
1538
|
+
* 下载构建实时日志
|
1539
|
+
*
|
1540
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1541
|
+
*/
|
1542
|
+
downloadRealTimeLog(downloadRealTimeLogRequest) {
|
1543
|
+
const options = {
|
1544
|
+
method: "GET",
|
1545
|
+
url: "/v3/jobs/{job_id}/{build_no}/real-time-log",
|
1546
|
+
contentType: "application/json",
|
1547
|
+
queryParams: {},
|
1548
|
+
pathParams: {},
|
1549
|
+
headers: {}
|
1550
|
+
};
|
1551
|
+
const localVarHeaderParameter = {};
|
1552
|
+
const localVarQueryParameter = {};
|
1553
|
+
let jobId;
|
1554
|
+
let buildNo;
|
1555
|
+
let offset;
|
1556
|
+
let length;
|
1557
|
+
if (downloadRealTimeLogRequest !== null && downloadRealTimeLogRequest !== undefined) {
|
1558
|
+
if (downloadRealTimeLogRequest instanceof DownloadRealTimeLogRequest_1.DownloadRealTimeLogRequest) {
|
1559
|
+
jobId = downloadRealTimeLogRequest.jobId;
|
1560
|
+
buildNo = downloadRealTimeLogRequest.buildNo;
|
1561
|
+
offset = downloadRealTimeLogRequest.offset;
|
1562
|
+
length = downloadRealTimeLogRequest.length;
|
1563
|
+
}
|
1564
|
+
else {
|
1565
|
+
jobId = downloadRealTimeLogRequest['job_id'];
|
1566
|
+
buildNo = downloadRealTimeLogRequest['build_no'];
|
1567
|
+
offset = downloadRealTimeLogRequest['offset'];
|
1568
|
+
length = downloadRealTimeLogRequest['length'];
|
1569
|
+
}
|
1570
|
+
}
|
1571
|
+
if (jobId === null || jobId === undefined) {
|
1572
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling downloadRealTimeLog.');
|
1573
|
+
}
|
1574
|
+
if (buildNo === null || buildNo === undefined) {
|
1575
|
+
throw new RequiredError('buildNo', 'Required parameter buildNo was null or undefined when calling downloadRealTimeLog.');
|
1576
|
+
}
|
1577
|
+
if (offset === null || offset === undefined) {
|
1578
|
+
throw new RequiredError('offset', 'Required parameter offset was null or undefined when calling downloadRealTimeLog.');
|
1579
|
+
}
|
1580
|
+
if (offset !== null && offset !== undefined) {
|
1581
|
+
localVarQueryParameter['offset'] = offset;
|
1582
|
+
}
|
1583
|
+
if (length !== null && length !== undefined) {
|
1584
|
+
localVarQueryParameter['length'] = length;
|
1585
|
+
}
|
1586
|
+
options.queryParams = localVarQueryParameter;
|
1587
|
+
options.pathParams = { 'job_id': jobId, 'build_no': buildNo, };
|
1588
|
+
options.headers = localVarHeaderParameter;
|
1589
|
+
return options;
|
1590
|
+
},
|
1591
|
+
/**
|
1592
|
+
* 下载构建步骤日志
|
1593
|
+
*
|
1594
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1595
|
+
*/
|
1596
|
+
downloadTaskLog(downloadTaskLogRequest) {
|
1597
|
+
const options = {
|
1598
|
+
method: "GET",
|
1599
|
+
url: "/v4/{record_id}/task-log",
|
1600
|
+
contentType: "application/json",
|
1601
|
+
queryParams: {},
|
1602
|
+
pathParams: {},
|
1603
|
+
headers: {}
|
1604
|
+
};
|
1605
|
+
const localVarHeaderParameter = {};
|
1606
|
+
const localVarQueryParameter = {};
|
1607
|
+
let recordId;
|
1608
|
+
let taskName;
|
1609
|
+
let logLevel;
|
1610
|
+
if (downloadTaskLogRequest !== null && downloadTaskLogRequest !== undefined) {
|
1611
|
+
if (downloadTaskLogRequest instanceof DownloadTaskLogRequest_1.DownloadTaskLogRequest) {
|
1612
|
+
recordId = downloadTaskLogRequest.recordId;
|
1613
|
+
taskName = downloadTaskLogRequest.taskName;
|
1614
|
+
logLevel = downloadTaskLogRequest.logLevel;
|
1615
|
+
}
|
1616
|
+
else {
|
1617
|
+
recordId = downloadTaskLogRequest['record_id'];
|
1618
|
+
taskName = downloadTaskLogRequest['task_name'];
|
1619
|
+
logLevel = downloadTaskLogRequest['log_level'];
|
1620
|
+
}
|
1621
|
+
}
|
1622
|
+
if (recordId === null || recordId === undefined) {
|
1623
|
+
throw new RequiredError('recordId', 'Required parameter recordId was null or undefined when calling downloadTaskLog.');
|
1624
|
+
}
|
1625
|
+
if (taskName === null || taskName === undefined) {
|
1626
|
+
throw new RequiredError('taskName', 'Required parameter taskName was null or undefined when calling downloadTaskLog.');
|
1627
|
+
}
|
1628
|
+
if (taskName !== null && taskName !== undefined) {
|
1629
|
+
localVarQueryParameter['task_name'] = taskName;
|
1630
|
+
}
|
1631
|
+
if (logLevel !== null && logLevel !== undefined) {
|
1632
|
+
localVarQueryParameter['log_level'] = logLevel;
|
1633
|
+
}
|
1634
|
+
options.queryParams = localVarQueryParameter;
|
1635
|
+
options.pathParams = { 'record_id': recordId, };
|
1636
|
+
options.headers = localVarHeaderParameter;
|
1637
|
+
return options;
|
1638
|
+
},
|
1639
|
+
/**
|
1640
|
+
* 恢复构建任务
|
1641
|
+
*
|
1642
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1643
|
+
*/
|
1644
|
+
enableBuildJob(enableBuildJobRequest) {
|
1645
|
+
const options = {
|
1646
|
+
method: "POST",
|
1647
|
+
url: "/v3/jobs/{job_id}/recover",
|
1648
|
+
contentType: "application/json",
|
1649
|
+
queryParams: {},
|
1650
|
+
pathParams: {},
|
1651
|
+
headers: {}
|
1652
|
+
};
|
1653
|
+
const localVarHeaderParameter = {};
|
1654
|
+
let jobId;
|
1655
|
+
if (enableBuildJobRequest !== null && enableBuildJobRequest !== undefined) {
|
1656
|
+
if (enableBuildJobRequest instanceof EnableBuildJobRequest_1.EnableBuildJobRequest) {
|
1657
|
+
jobId = enableBuildJobRequest.jobId;
|
1658
|
+
}
|
1659
|
+
else {
|
1660
|
+
jobId = enableBuildJobRequest['job_id'];
|
1661
|
+
}
|
1662
|
+
}
|
1663
|
+
if (jobId === null || jobId === undefined) {
|
1664
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling enableBuildJob.');
|
1665
|
+
}
|
1666
|
+
options.pathParams = { 'job_id': jobId, };
|
1667
|
+
options.headers = localVarHeaderParameter;
|
1668
|
+
return options;
|
1669
|
+
},
|
1670
|
+
/**
|
1671
|
+
* 获取任务构建记录列表
|
1672
|
+
*
|
1673
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1674
|
+
*/
|
1675
|
+
listBuildInfoRecord(listBuildInfoRecordRequest) {
|
1676
|
+
const options = {
|
1677
|
+
method: "GET",
|
1678
|
+
url: "/v3/jobs/{job_id}/build-info-records",
|
1679
|
+
contentType: "application/json",
|
1680
|
+
queryParams: {},
|
1681
|
+
pathParams: {},
|
1682
|
+
headers: {}
|
1683
|
+
};
|
1684
|
+
const localVarHeaderParameter = {};
|
1685
|
+
const localVarQueryParameter = {};
|
1686
|
+
let jobId;
|
1687
|
+
let startTime;
|
1688
|
+
let endTime;
|
1689
|
+
let pageIndex;
|
1690
|
+
let pageSize;
|
1691
|
+
if (listBuildInfoRecordRequest !== null && listBuildInfoRecordRequest !== undefined) {
|
1692
|
+
if (listBuildInfoRecordRequest instanceof ListBuildInfoRecordRequest_1.ListBuildInfoRecordRequest) {
|
1693
|
+
jobId = listBuildInfoRecordRequest.jobId;
|
1694
|
+
startTime = listBuildInfoRecordRequest.startTime;
|
1695
|
+
endTime = listBuildInfoRecordRequest.endTime;
|
1696
|
+
pageIndex = listBuildInfoRecordRequest.pageIndex;
|
1697
|
+
pageSize = listBuildInfoRecordRequest.pageSize;
|
1698
|
+
}
|
1699
|
+
else {
|
1700
|
+
jobId = listBuildInfoRecordRequest['job_id'];
|
1701
|
+
startTime = listBuildInfoRecordRequest['start_time'];
|
1702
|
+
endTime = listBuildInfoRecordRequest['end_time'];
|
1703
|
+
pageIndex = listBuildInfoRecordRequest['page_index'];
|
1704
|
+
pageSize = listBuildInfoRecordRequest['page_size'];
|
1705
|
+
}
|
1706
|
+
}
|
1707
|
+
if (jobId === null || jobId === undefined) {
|
1708
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling listBuildInfoRecord.');
|
1709
|
+
}
|
1710
|
+
if (startTime === null || startTime === undefined) {
|
1711
|
+
throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling listBuildInfoRecord.');
|
1712
|
+
}
|
1713
|
+
if (startTime !== null && startTime !== undefined) {
|
1714
|
+
localVarQueryParameter['start_time'] = startTime;
|
1715
|
+
}
|
1716
|
+
if (endTime === null || endTime === undefined) {
|
1717
|
+
throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling listBuildInfoRecord.');
|
1718
|
+
}
|
1719
|
+
if (endTime !== null && endTime !== undefined) {
|
1720
|
+
localVarQueryParameter['end_time'] = endTime;
|
1721
|
+
}
|
1722
|
+
if (pageIndex !== null && pageIndex !== undefined) {
|
1723
|
+
localVarQueryParameter['page_index'] = pageIndex;
|
1724
|
+
}
|
1725
|
+
if (pageSize !== null && pageSize !== undefined) {
|
1726
|
+
localVarQueryParameter['page_size'] = pageSize;
|
1727
|
+
}
|
1728
|
+
options.queryParams = localVarQueryParameter;
|
1729
|
+
options.pathParams = { 'job_id': jobId, };
|
1730
|
+
options.headers = localVarHeaderParameter;
|
1731
|
+
return options;
|
1732
|
+
},
|
1733
|
+
/**
|
1734
|
+
* 获取任务构建记录列表v1
|
1735
|
+
*
|
1736
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1737
|
+
*/
|
1738
|
+
listBuildInfoRecordByJobId(listBuildInfoRecordByJobIdRequest) {
|
1739
|
+
const options = {
|
1740
|
+
method: "GET",
|
1741
|
+
url: "/v1/record/{job_id}/list",
|
1742
|
+
contentType: "application/json",
|
1743
|
+
queryParams: {},
|
1744
|
+
pathParams: {},
|
1745
|
+
headers: {}
|
1746
|
+
};
|
1747
|
+
const localVarHeaderParameter = {};
|
1748
|
+
const localVarQueryParameter = {};
|
1749
|
+
let jobId;
|
1750
|
+
let startTime;
|
1751
|
+
let endTime;
|
1752
|
+
let pageIndex;
|
1753
|
+
let pageSize;
|
1754
|
+
if (listBuildInfoRecordByJobIdRequest !== null && listBuildInfoRecordByJobIdRequest !== undefined) {
|
1755
|
+
if (listBuildInfoRecordByJobIdRequest instanceof ListBuildInfoRecordByJobIdRequest_1.ListBuildInfoRecordByJobIdRequest) {
|
1756
|
+
jobId = listBuildInfoRecordByJobIdRequest.jobId;
|
1757
|
+
startTime = listBuildInfoRecordByJobIdRequest.startTime;
|
1758
|
+
endTime = listBuildInfoRecordByJobIdRequest.endTime;
|
1759
|
+
pageIndex = listBuildInfoRecordByJobIdRequest.pageIndex;
|
1760
|
+
pageSize = listBuildInfoRecordByJobIdRequest.pageSize;
|
1761
|
+
}
|
1762
|
+
else {
|
1763
|
+
jobId = listBuildInfoRecordByJobIdRequest['job_id'];
|
1764
|
+
startTime = listBuildInfoRecordByJobIdRequest['start_time'];
|
1765
|
+
endTime = listBuildInfoRecordByJobIdRequest['end_time'];
|
1766
|
+
pageIndex = listBuildInfoRecordByJobIdRequest['page_index'];
|
1767
|
+
pageSize = listBuildInfoRecordByJobIdRequest['page_size'];
|
1768
|
+
}
|
1769
|
+
}
|
1770
|
+
if (jobId === null || jobId === undefined) {
|
1771
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling listBuildInfoRecordByJobId.');
|
1772
|
+
}
|
1773
|
+
if (startTime === null || startTime === undefined) {
|
1774
|
+
throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling listBuildInfoRecordByJobId.');
|
1775
|
+
}
|
1776
|
+
if (startTime !== null && startTime !== undefined) {
|
1777
|
+
localVarQueryParameter['start_time'] = startTime;
|
1778
|
+
}
|
1779
|
+
if (endTime === null || endTime === undefined) {
|
1780
|
+
throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling listBuildInfoRecordByJobId.');
|
1781
|
+
}
|
1782
|
+
if (endTime !== null && endTime !== undefined) {
|
1783
|
+
localVarQueryParameter['end_time'] = endTime;
|
1784
|
+
}
|
1785
|
+
if (pageIndex !== null && pageIndex !== undefined) {
|
1786
|
+
localVarQueryParameter['page_index'] = pageIndex;
|
1787
|
+
}
|
1788
|
+
if (pageSize !== null && pageSize !== undefined) {
|
1789
|
+
localVarQueryParameter['page_size'] = pageSize;
|
1790
|
+
}
|
1791
|
+
options.queryParams = localVarQueryParameter;
|
1792
|
+
options.pathParams = { 'job_id': jobId, };
|
1793
|
+
options.headers = localVarHeaderParameter;
|
1794
|
+
return options;
|
1795
|
+
},
|
1796
|
+
/**
|
1797
|
+
* 获取构建任务详情
|
1798
|
+
*
|
1799
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1800
|
+
*/
|
1801
|
+
listJobConfig(listJobConfigRequest) {
|
1802
|
+
const options = {
|
1803
|
+
method: "GET",
|
1804
|
+
url: "/v3/jobs/{job_id}/query",
|
1805
|
+
contentType: "application/json",
|
1806
|
+
queryParams: {},
|
1807
|
+
pathParams: {},
|
1808
|
+
headers: {}
|
1809
|
+
};
|
1810
|
+
const localVarHeaderParameter = {};
|
1811
|
+
const localVarQueryParameter = {};
|
1812
|
+
let jobId;
|
1813
|
+
let getAllParams;
|
1814
|
+
if (listJobConfigRequest !== null && listJobConfigRequest !== undefined) {
|
1815
|
+
if (listJobConfigRequest instanceof ListJobConfigRequest_1.ListJobConfigRequest) {
|
1816
|
+
jobId = listJobConfigRequest.jobId;
|
1817
|
+
getAllParams = listJobConfigRequest.getAllParams;
|
1818
|
+
}
|
1819
|
+
else {
|
1820
|
+
jobId = listJobConfigRequest['job_id'];
|
1821
|
+
getAllParams = listJobConfigRequest['get_all_params'];
|
1822
|
+
}
|
1823
|
+
}
|
1824
|
+
if (jobId === null || jobId === undefined) {
|
1825
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling listJobConfig.');
|
1826
|
+
}
|
1827
|
+
if (getAllParams !== null && getAllParams !== undefined) {
|
1828
|
+
localVarQueryParameter['get_all_params'] = getAllParams;
|
1829
|
+
}
|
1830
|
+
options.queryParams = localVarQueryParameter;
|
1831
|
+
options.pathParams = { 'job_id': jobId, };
|
1832
|
+
options.headers = localVarHeaderParameter;
|
1833
|
+
return options;
|
1834
|
+
},
|
1835
|
+
/**
|
1836
|
+
* 查询用户可使用文件
|
1837
|
+
*
|
1838
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1839
|
+
*/
|
1840
|
+
listKeystore() {
|
1841
|
+
const options = {
|
1842
|
+
method: "GET",
|
1843
|
+
url: "/v2/keystore/name",
|
1844
|
+
contentType: "application/json",
|
1845
|
+
queryParams: {},
|
1846
|
+
pathParams: {},
|
1847
|
+
headers: {}
|
1848
|
+
};
|
1849
|
+
const localVarHeaderParameter = {};
|
1850
|
+
options.headers = localVarHeaderParameter;
|
1851
|
+
return options;
|
1852
|
+
},
|
1853
|
+
/**
|
1854
|
+
* 查询通知
|
1855
|
+
*
|
1856
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1857
|
+
*/
|
1858
|
+
listNotice(listNoticeRequest) {
|
1859
|
+
const options = {
|
1860
|
+
method: "GET",
|
1861
|
+
url: "/v3/jobs/notice/{job_id}/query",
|
1862
|
+
contentType: "application/json",
|
1863
|
+
queryParams: {},
|
1864
|
+
pathParams: {},
|
1865
|
+
headers: {}
|
1866
|
+
};
|
1867
|
+
const localVarHeaderParameter = {};
|
1868
|
+
let jobId;
|
1869
|
+
if (listNoticeRequest !== null && listNoticeRequest !== undefined) {
|
1870
|
+
if (listNoticeRequest instanceof ListNoticeRequest_1.ListNoticeRequest) {
|
1871
|
+
jobId = listNoticeRequest.jobId;
|
1872
|
+
}
|
1873
|
+
else {
|
1874
|
+
jobId = listNoticeRequest['job_id'];
|
1875
|
+
}
|
1876
|
+
}
|
1877
|
+
if (jobId === null || jobId === undefined) {
|
1878
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling listNotice.');
|
1879
|
+
}
|
1880
|
+
options.pathParams = { 'job_id': jobId, };
|
1881
|
+
options.headers = localVarHeaderParameter;
|
1882
|
+
return options;
|
1883
|
+
},
|
1884
|
+
/**
|
1885
|
+
* 查询官方模版
|
1886
|
+
*
|
1887
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1888
|
+
*/
|
1889
|
+
listOfficialTemplate(listOfficialTemplateRequest) {
|
1890
|
+
const options = {
|
1891
|
+
method: "GET",
|
1892
|
+
url: "/v1/template/officialtemplates",
|
697
1893
|
contentType: "application/json",
|
698
1894
|
queryParams: {},
|
699
1895
|
pathParams: {},
|
700
|
-
headers: {}
|
701
|
-
data: {}
|
1896
|
+
headers: {}
|
702
1897
|
};
|
703
1898
|
const localVarHeaderParameter = {};
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
1899
|
+
const localVarQueryParameter = {};
|
1900
|
+
let name;
|
1901
|
+
let page;
|
1902
|
+
let pageSize;
|
1903
|
+
if (listOfficialTemplateRequest !== null && listOfficialTemplateRequest !== undefined) {
|
1904
|
+
if (listOfficialTemplateRequest instanceof ListOfficialTemplateRequest_1.ListOfficialTemplateRequest) {
|
1905
|
+
name = listOfficialTemplateRequest.name;
|
1906
|
+
page = listOfficialTemplateRequest.page;
|
1907
|
+
pageSize = listOfficialTemplateRequest.pageSize;
|
708
1908
|
}
|
709
1909
|
else {
|
710
|
-
|
1910
|
+
name = listOfficialTemplateRequest['name'];
|
1911
|
+
page = listOfficialTemplateRequest['page'];
|
1912
|
+
pageSize = listOfficialTemplateRequest['page_size'];
|
711
1913
|
}
|
712
1914
|
}
|
713
|
-
if (
|
714
|
-
|
1915
|
+
if (name !== null && name !== undefined) {
|
1916
|
+
localVarQueryParameter['name'] = name;
|
715
1917
|
}
|
716
|
-
|
717
|
-
|
1918
|
+
if (page !== null && page !== undefined) {
|
1919
|
+
localVarQueryParameter['page'] = page;
|
1920
|
+
}
|
1921
|
+
if (pageSize !== null && pageSize !== undefined) {
|
1922
|
+
localVarQueryParameter['page_size'] = pageSize;
|
1923
|
+
}
|
1924
|
+
options.queryParams = localVarQueryParameter;
|
718
1925
|
options.headers = localVarHeaderParameter;
|
719
1926
|
return options;
|
720
1927
|
},
|
721
1928
|
/**
|
722
|
-
*
|
1929
|
+
* 查询项目任务列表
|
723
1930
|
*
|
724
1931
|
* Please refer to HUAWEI cloud API Explorer for details.
|
725
1932
|
*/
|
726
|
-
|
1933
|
+
listProjectJobs(listProjectJobsRequest) {
|
727
1934
|
const options = {
|
728
|
-
method: "
|
729
|
-
url: "/
|
1935
|
+
method: "GET",
|
1936
|
+
url: "/v1/job/{project_id}/list",
|
730
1937
|
contentType: "application/json",
|
731
1938
|
queryParams: {},
|
732
1939
|
pathParams: {},
|
733
|
-
headers: {}
|
734
|
-
data: {}
|
1940
|
+
headers: {}
|
735
1941
|
};
|
736
1942
|
const localVarHeaderParameter = {};
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
1943
|
+
const localVarQueryParameter = {};
|
1944
|
+
let projectId;
|
1945
|
+
let pageIndex;
|
1946
|
+
let pageSize;
|
1947
|
+
let search;
|
1948
|
+
let sortField;
|
1949
|
+
let sortOrder;
|
1950
|
+
let creatorId;
|
1951
|
+
let buildStatus;
|
1952
|
+
let byGroup;
|
1953
|
+
let groupPathId;
|
1954
|
+
if (listProjectJobsRequest !== null && listProjectJobsRequest !== undefined) {
|
1955
|
+
if (listProjectJobsRequest instanceof ListProjectJobsRequest_1.ListProjectJobsRequest) {
|
1956
|
+
projectId = listProjectJobsRequest.projectId;
|
1957
|
+
pageIndex = listProjectJobsRequest.pageIndex;
|
1958
|
+
pageSize = listProjectJobsRequest.pageSize;
|
1959
|
+
search = listProjectJobsRequest.search;
|
1960
|
+
sortField = listProjectJobsRequest.sortField;
|
1961
|
+
sortOrder = listProjectJobsRequest.sortOrder;
|
1962
|
+
creatorId = listProjectJobsRequest.creatorId;
|
1963
|
+
buildStatus = listProjectJobsRequest.buildStatus;
|
1964
|
+
byGroup = listProjectJobsRequest.byGroup;
|
1965
|
+
groupPathId = listProjectJobsRequest.groupPathId;
|
741
1966
|
}
|
742
1967
|
else {
|
743
|
-
|
1968
|
+
projectId = listProjectJobsRequest['project_id'];
|
1969
|
+
pageIndex = listProjectJobsRequest['page_index'];
|
1970
|
+
pageSize = listProjectJobsRequest['page_size'];
|
1971
|
+
search = listProjectJobsRequest['search'];
|
1972
|
+
sortField = listProjectJobsRequest['sort_field'];
|
1973
|
+
sortOrder = listProjectJobsRequest['sort_order'];
|
1974
|
+
creatorId = listProjectJobsRequest['creator_id'];
|
1975
|
+
buildStatus = listProjectJobsRequest['build_status'];
|
1976
|
+
byGroup = listProjectJobsRequest['by_group'];
|
1977
|
+
groupPathId = listProjectJobsRequest['group_path_id'];
|
744
1978
|
}
|
745
1979
|
}
|
746
|
-
if (
|
747
|
-
throw new RequiredError('
|
1980
|
+
if (projectId === null || projectId === undefined) {
|
1981
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listProjectJobs.');
|
748
1982
|
}
|
749
|
-
|
750
|
-
|
1983
|
+
if (pageIndex === null || pageIndex === undefined) {
|
1984
|
+
throw new RequiredError('pageIndex', 'Required parameter pageIndex was null or undefined when calling listProjectJobs.');
|
1985
|
+
}
|
1986
|
+
if (pageIndex !== null && pageIndex !== undefined) {
|
1987
|
+
localVarQueryParameter['page_index'] = pageIndex;
|
1988
|
+
}
|
1989
|
+
if (pageSize === null || pageSize === undefined) {
|
1990
|
+
throw new RequiredError('pageSize', 'Required parameter pageSize was null or undefined when calling listProjectJobs.');
|
1991
|
+
}
|
1992
|
+
if (pageSize !== null && pageSize !== undefined) {
|
1993
|
+
localVarQueryParameter['page_size'] = pageSize;
|
1994
|
+
}
|
1995
|
+
if (search !== null && search !== undefined) {
|
1996
|
+
localVarQueryParameter['search'] = search;
|
1997
|
+
}
|
1998
|
+
if (sortField !== null && sortField !== undefined) {
|
1999
|
+
localVarQueryParameter['sort_field'] = sortField;
|
2000
|
+
}
|
2001
|
+
if (sortOrder !== null && sortOrder !== undefined) {
|
2002
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
2003
|
+
}
|
2004
|
+
if (creatorId !== null && creatorId !== undefined) {
|
2005
|
+
localVarQueryParameter['creator_id'] = creatorId;
|
2006
|
+
}
|
2007
|
+
if (buildStatus !== null && buildStatus !== undefined) {
|
2008
|
+
localVarQueryParameter['build_status'] = buildStatus;
|
2009
|
+
}
|
2010
|
+
if (byGroup !== null && byGroup !== undefined) {
|
2011
|
+
localVarQueryParameter['by_group'] = byGroup;
|
2012
|
+
}
|
2013
|
+
if (groupPathId !== null && groupPathId !== undefined) {
|
2014
|
+
localVarQueryParameter['group_path_id'] = groupPathId;
|
2015
|
+
}
|
2016
|
+
options.queryParams = localVarQueryParameter;
|
2017
|
+
options.pathParams = { 'project_id': projectId, };
|
751
2018
|
options.headers = localVarHeaderParameter;
|
752
2019
|
return options;
|
753
2020
|
},
|
754
2021
|
/**
|
755
|
-
*
|
2022
|
+
* 获取指定工程的构建记录列表
|
756
2023
|
*
|
757
2024
|
* Please refer to HUAWEI cloud API Explorer for details.
|
758
2025
|
*/
|
759
|
-
|
2026
|
+
listRecords(listRecordsRequest) {
|
760
2027
|
const options = {
|
761
|
-
method: "
|
762
|
-
url: "/
|
2028
|
+
method: "GET",
|
2029
|
+
url: "/v1/record/{build_project_id}/records",
|
763
2030
|
contentType: "application/json",
|
764
2031
|
queryParams: {},
|
765
2032
|
pathParams: {},
|
766
2033
|
headers: {}
|
767
2034
|
};
|
768
2035
|
const localVarHeaderParameter = {};
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
2036
|
+
const localVarQueryParameter = {};
|
2037
|
+
let buildProjectId;
|
2038
|
+
let page;
|
2039
|
+
let limit;
|
2040
|
+
let triggers;
|
2041
|
+
let branches;
|
2042
|
+
let tags;
|
2043
|
+
let fromDate;
|
2044
|
+
let toDate;
|
2045
|
+
if (listRecordsRequest !== null && listRecordsRequest !== undefined) {
|
2046
|
+
if (listRecordsRequest instanceof ListRecordsRequest_1.ListRecordsRequest) {
|
2047
|
+
buildProjectId = listRecordsRequest.buildProjectId;
|
2048
|
+
page = listRecordsRequest.page;
|
2049
|
+
limit = listRecordsRequest.limit;
|
2050
|
+
triggers = listRecordsRequest.triggers;
|
2051
|
+
branches = listRecordsRequest.branches;
|
2052
|
+
tags = listRecordsRequest.tags;
|
2053
|
+
fromDate = listRecordsRequest.fromDate;
|
2054
|
+
toDate = listRecordsRequest.toDate;
|
773
2055
|
}
|
774
2056
|
else {
|
775
|
-
|
2057
|
+
buildProjectId = listRecordsRequest['build_project_id'];
|
2058
|
+
page = listRecordsRequest['page'];
|
2059
|
+
limit = listRecordsRequest['limit'];
|
2060
|
+
triggers = listRecordsRequest['triggers'];
|
2061
|
+
branches = listRecordsRequest['branches'];
|
2062
|
+
tags = listRecordsRequest['tags'];
|
2063
|
+
fromDate = listRecordsRequest['from_date'];
|
2064
|
+
toDate = listRecordsRequest['to_date'];
|
776
2065
|
}
|
777
2066
|
}
|
778
|
-
if (
|
779
|
-
throw new RequiredError('
|
2067
|
+
if (buildProjectId === null || buildProjectId === undefined) {
|
2068
|
+
throw new RequiredError('buildProjectId', 'Required parameter buildProjectId was null or undefined when calling listRecords.');
|
780
2069
|
}
|
781
|
-
|
2070
|
+
if (page !== null && page !== undefined) {
|
2071
|
+
localVarQueryParameter['page'] = page;
|
2072
|
+
}
|
2073
|
+
if (limit !== null && limit !== undefined) {
|
2074
|
+
localVarQueryParameter['limit'] = limit;
|
2075
|
+
}
|
2076
|
+
if (triggers !== null && triggers !== undefined) {
|
2077
|
+
localVarQueryParameter['triggers'] = triggers;
|
2078
|
+
}
|
2079
|
+
if (branches !== null && branches !== undefined) {
|
2080
|
+
localVarQueryParameter['branches'] = branches;
|
2081
|
+
}
|
2082
|
+
if (tags !== null && tags !== undefined) {
|
2083
|
+
localVarQueryParameter['tags'] = tags;
|
2084
|
+
}
|
2085
|
+
if (fromDate !== null && fromDate !== undefined) {
|
2086
|
+
localVarQueryParameter['from_date'] = fromDate;
|
2087
|
+
}
|
2088
|
+
if (toDate !== null && toDate !== undefined) {
|
2089
|
+
localVarQueryParameter['to_date'] = toDate;
|
2090
|
+
}
|
2091
|
+
options.queryParams = localVarQueryParameter;
|
2092
|
+
options.pathParams = { 'build_project_id': buildProjectId, };
|
782
2093
|
options.headers = localVarHeaderParameter;
|
783
2094
|
return options;
|
784
2095
|
},
|
785
2096
|
/**
|
786
|
-
*
|
2097
|
+
* 查看回收站中删除的构建任务列表
|
787
2098
|
*
|
788
2099
|
* Please refer to HUAWEI cloud API Explorer for details.
|
789
2100
|
*/
|
790
|
-
|
2101
|
+
listRecyclingJob(listRecyclingJobRequest) {
|
791
2102
|
const options = {
|
792
|
-
method: "
|
793
|
-
url: "/
|
2103
|
+
method: "GET",
|
2104
|
+
url: "/v1/job/recycling-jobs",
|
794
2105
|
contentType: "application/json",
|
795
2106
|
queryParams: {},
|
796
2107
|
pathParams: {},
|
797
2108
|
headers: {}
|
798
2109
|
};
|
799
2110
|
const localVarHeaderParameter = {};
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
2111
|
+
const localVarQueryParameter = {};
|
2112
|
+
let pageSize;
|
2113
|
+
let pageNo;
|
2114
|
+
let search;
|
2115
|
+
if (listRecyclingJobRequest !== null && listRecyclingJobRequest !== undefined) {
|
2116
|
+
if (listRecyclingJobRequest instanceof ListRecyclingJobRequest_1.ListRecyclingJobRequest) {
|
2117
|
+
pageSize = listRecyclingJobRequest.pageSize;
|
2118
|
+
pageNo = listRecyclingJobRequest.pageNo;
|
2119
|
+
search = listRecyclingJobRequest.search;
|
804
2120
|
}
|
805
2121
|
else {
|
806
|
-
|
2122
|
+
pageSize = listRecyclingJobRequest['page_size'];
|
2123
|
+
pageNo = listRecyclingJobRequest['page_no'];
|
2124
|
+
search = listRecyclingJobRequest['search'];
|
807
2125
|
}
|
808
2126
|
}
|
809
|
-
if (
|
810
|
-
|
2127
|
+
if (pageSize !== null && pageSize !== undefined) {
|
2128
|
+
localVarQueryParameter['page_size'] = pageSize;
|
811
2129
|
}
|
812
|
-
|
2130
|
+
if (pageNo !== null && pageNo !== undefined) {
|
2131
|
+
localVarQueryParameter['page_no'] = pageNo;
|
2132
|
+
}
|
2133
|
+
if (search !== null && search !== undefined) {
|
2134
|
+
localVarQueryParameter['search'] = search;
|
2135
|
+
}
|
2136
|
+
options.queryParams = localVarQueryParameter;
|
813
2137
|
options.headers = localVarHeaderParameter;
|
814
2138
|
return options;
|
815
2139
|
},
|
816
2140
|
/**
|
817
|
-
*
|
2141
|
+
* 获取项目列表
|
818
2142
|
*
|
819
2143
|
* Please refer to HUAWEI cloud API Explorer for details.
|
820
2144
|
*/
|
821
|
-
|
2145
|
+
listRelatedProjectInfo(listRelatedProjectInfoRequest) {
|
822
2146
|
const options = {
|
823
|
-
method: "
|
824
|
-
url: "/
|
2147
|
+
method: "GET",
|
2148
|
+
url: "/v1/domain/project/related-page",
|
825
2149
|
contentType: "application/json",
|
826
2150
|
queryParams: {},
|
827
2151
|
pathParams: {},
|
828
2152
|
headers: {}
|
829
2153
|
};
|
830
2154
|
const localVarHeaderParameter = {};
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
2155
|
+
const localVarQueryParameter = {};
|
2156
|
+
let pageSize;
|
2157
|
+
let pageNo;
|
2158
|
+
let search;
|
2159
|
+
if (listRelatedProjectInfoRequest !== null && listRelatedProjectInfoRequest !== undefined) {
|
2160
|
+
if (listRelatedProjectInfoRequest instanceof ListRelatedProjectInfoRequest_1.ListRelatedProjectInfoRequest) {
|
2161
|
+
pageSize = listRelatedProjectInfoRequest.pageSize;
|
2162
|
+
pageNo = listRelatedProjectInfoRequest.pageNo;
|
2163
|
+
search = listRelatedProjectInfoRequest.search;
|
835
2164
|
}
|
836
2165
|
else {
|
837
|
-
|
2166
|
+
pageSize = listRelatedProjectInfoRequest['page_size'];
|
2167
|
+
pageNo = listRelatedProjectInfoRequest['page_no'];
|
2168
|
+
search = listRelatedProjectInfoRequest['search'];
|
838
2169
|
}
|
839
2170
|
}
|
840
|
-
if (
|
841
|
-
|
2171
|
+
if (pageSize !== null && pageSize !== undefined) {
|
2172
|
+
localVarQueryParameter['page_size'] = pageSize;
|
842
2173
|
}
|
843
|
-
|
2174
|
+
if (pageNo !== null && pageNo !== undefined) {
|
2175
|
+
localVarQueryParameter['page_no'] = pageNo;
|
2176
|
+
}
|
2177
|
+
if (search !== null && search !== undefined) {
|
2178
|
+
localVarQueryParameter['search'] = search;
|
2179
|
+
}
|
2180
|
+
options.queryParams = localVarQueryParameter;
|
844
2181
|
options.headers = localVarHeaderParameter;
|
845
2182
|
return options;
|
846
2183
|
},
|
847
2184
|
/**
|
848
|
-
*
|
2185
|
+
* 查询构建模板
|
849
2186
|
*
|
850
2187
|
* Please refer to HUAWEI cloud API Explorer for details.
|
851
2188
|
*/
|
852
|
-
|
2189
|
+
listTemplates(listTemplatesRequest) {
|
853
2190
|
const options = {
|
854
|
-
method: "
|
855
|
-
url: "/v3/
|
2191
|
+
method: "GET",
|
2192
|
+
url: "/v3/templates/query",
|
856
2193
|
contentType: "application/json",
|
857
2194
|
queryParams: {},
|
858
2195
|
pathParams: {},
|
@@ -860,178 +2197,193 @@ const ParamCreater = function () {
|
|
860
2197
|
};
|
861
2198
|
const localVarHeaderParameter = {};
|
862
2199
|
const localVarQueryParameter = {};
|
863
|
-
let
|
864
|
-
let
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
2200
|
+
let name;
|
2201
|
+
let page;
|
2202
|
+
let pageSize;
|
2203
|
+
if (listTemplatesRequest !== null && listTemplatesRequest !== undefined) {
|
2204
|
+
if (listTemplatesRequest instanceof ListTemplatesRequest_1.ListTemplatesRequest) {
|
2205
|
+
name = listTemplatesRequest.name;
|
2206
|
+
page = listTemplatesRequest.page;
|
2207
|
+
pageSize = listTemplatesRequest.pageSize;
|
869
2208
|
}
|
870
2209
|
else {
|
871
|
-
|
872
|
-
|
2210
|
+
name = listTemplatesRequest['name'];
|
2211
|
+
page = listTemplatesRequest['page'];
|
2212
|
+
pageSize = listTemplatesRequest['page_size'];
|
873
2213
|
}
|
874
2214
|
}
|
875
|
-
if (
|
876
|
-
|
2215
|
+
if (name !== null && name !== undefined) {
|
2216
|
+
localVarQueryParameter['name'] = name;
|
877
2217
|
}
|
878
|
-
if (
|
879
|
-
|
2218
|
+
if (page !== null && page !== undefined) {
|
2219
|
+
localVarQueryParameter['page'] = page;
|
880
2220
|
}
|
881
|
-
if (
|
882
|
-
localVarQueryParameter['
|
2221
|
+
if (pageSize !== null && pageSize !== undefined) {
|
2222
|
+
localVarQueryParameter['page_size'] = pageSize;
|
883
2223
|
}
|
884
2224
|
options.queryParams = localVarQueryParameter;
|
885
|
-
options.pathParams = { 'job_id': jobId, };
|
886
2225
|
options.headers = localVarHeaderParameter;
|
887
2226
|
return options;
|
888
2227
|
},
|
889
2228
|
/**
|
890
|
-
*
|
2229
|
+
* 执行构建任务,可传自定义参数
|
891
2230
|
*
|
892
2231
|
* Please refer to HUAWEI cloud API Explorer for details.
|
893
2232
|
*/
|
894
|
-
|
2233
|
+
runJob(runJobRequest) {
|
2234
|
+
const options = {
|
2235
|
+
method: "POST",
|
2236
|
+
url: "/v3/jobs/build",
|
2237
|
+
contentType: "application/json",
|
2238
|
+
queryParams: {},
|
2239
|
+
pathParams: {},
|
2240
|
+
headers: {},
|
2241
|
+
data: {}
|
2242
|
+
};
|
2243
|
+
const localVarHeaderParameter = {};
|
2244
|
+
let body;
|
2245
|
+
if (runJobRequest !== null && runJobRequest !== undefined) {
|
2246
|
+
if (runJobRequest instanceof RunJobRequest_1.RunJobRequest) {
|
2247
|
+
body = runJobRequest.body;
|
2248
|
+
}
|
2249
|
+
else {
|
2250
|
+
body = runJobRequest['body'];
|
2251
|
+
}
|
2252
|
+
}
|
2253
|
+
if (body === null || body === undefined) {
|
2254
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2255
|
+
}
|
2256
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2257
|
+
options.data = body !== undefined ? body : {};
|
2258
|
+
options.headers = localVarHeaderParameter;
|
2259
|
+
return options;
|
2260
|
+
},
|
2261
|
+
/**
|
2262
|
+
* 获取任务构建记录列表
|
2263
|
+
*
|
2264
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2265
|
+
*/
|
2266
|
+
showBuildInfoRecord(showBuildInfoRecordRequest) {
|
895
2267
|
const options = {
|
896
2268
|
method: "GET",
|
897
|
-
url: "/
|
2269
|
+
url: "/v1/record/{job_id}/{build_no}/build-info-record",
|
898
2270
|
contentType: "application/json",
|
899
2271
|
queryParams: {},
|
900
2272
|
pathParams: {},
|
901
2273
|
headers: {}
|
902
2274
|
};
|
903
2275
|
const localVarHeaderParameter = {};
|
904
|
-
|
905
|
-
let
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
logLevel = downloadBuildLogRequest.logLevel;
|
2276
|
+
let jobId;
|
2277
|
+
let buildNo;
|
2278
|
+
if (showBuildInfoRecordRequest !== null && showBuildInfoRecordRequest !== undefined) {
|
2279
|
+
if (showBuildInfoRecordRequest instanceof ShowBuildInfoRecordRequest_1.ShowBuildInfoRecordRequest) {
|
2280
|
+
jobId = showBuildInfoRecordRequest.jobId;
|
2281
|
+
buildNo = showBuildInfoRecordRequest.buildNo;
|
911
2282
|
}
|
912
2283
|
else {
|
913
|
-
|
914
|
-
|
2284
|
+
jobId = showBuildInfoRecordRequest['job_id'];
|
2285
|
+
buildNo = showBuildInfoRecordRequest['build_no'];
|
915
2286
|
}
|
916
2287
|
}
|
917
|
-
if (
|
918
|
-
throw new RequiredError('
|
2288
|
+
if (jobId === null || jobId === undefined) {
|
2289
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showBuildInfoRecord.');
|
919
2290
|
}
|
920
|
-
if (
|
921
|
-
|
2291
|
+
if (buildNo === null || buildNo === undefined) {
|
2292
|
+
throw new RequiredError('buildNo', 'Required parameter buildNo was null or undefined when calling showBuildInfoRecord.');
|
922
2293
|
}
|
923
|
-
options.
|
924
|
-
options.pathParams = { 'record_id': recordId, };
|
2294
|
+
options.pathParams = { 'job_id': jobId, 'build_no': buildNo, };
|
925
2295
|
options.headers = localVarHeaderParameter;
|
926
2296
|
return options;
|
927
2297
|
},
|
928
2298
|
/**
|
929
|
-
*
|
2299
|
+
* 编辑页获取参数类型的接口
|
930
2300
|
*
|
931
2301
|
* Please refer to HUAWEI cloud API Explorer for details.
|
932
2302
|
*/
|
933
|
-
|
2303
|
+
showBuildParamsList() {
|
934
2304
|
const options = {
|
935
2305
|
method: "GET",
|
936
|
-
url: "/
|
2306
|
+
url: "/v1/job/build-params",
|
937
2307
|
contentType: "application/json",
|
938
2308
|
queryParams: {},
|
939
2309
|
pathParams: {},
|
940
2310
|
headers: {}
|
941
2311
|
};
|
942
2312
|
const localVarHeaderParameter = {};
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
2313
|
+
options.headers = localVarHeaderParameter;
|
2314
|
+
return options;
|
2315
|
+
},
|
2316
|
+
/**
|
2317
|
+
* 查询指定构建记录详情
|
2318
|
+
*
|
2319
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2320
|
+
*/
|
2321
|
+
showBuildRecord(showBuildRecordRequest) {
|
2322
|
+
const options = {
|
2323
|
+
method: "GET",
|
2324
|
+
url: "/v1/record/{record_id}/info",
|
2325
|
+
contentType: "application/json",
|
2326
|
+
queryParams: {},
|
2327
|
+
pathParams: {},
|
2328
|
+
headers: {}
|
2329
|
+
};
|
2330
|
+
const localVarHeaderParameter = {};
|
2331
|
+
let recordId;
|
2332
|
+
if (showBuildRecordRequest !== null && showBuildRecordRequest !== undefined) {
|
2333
|
+
if (showBuildRecordRequest instanceof ShowBuildRecordRequest_1.ShowBuildRecordRequest) {
|
2334
|
+
recordId = showBuildRecordRequest.recordId;
|
950
2335
|
}
|
951
2336
|
else {
|
952
|
-
|
953
|
-
domainId = downloadKeystoreRequest['domain_id'];
|
2337
|
+
recordId = showBuildRecordRequest['record_id'];
|
954
2338
|
}
|
955
2339
|
}
|
956
|
-
if (
|
957
|
-
throw new RequiredError('
|
958
|
-
}
|
959
|
-
if (fileName !== null && fileName !== undefined) {
|
960
|
-
localVarQueryParameter['file_name'] = fileName;
|
961
|
-
}
|
962
|
-
if (domainId === null || domainId === undefined) {
|
963
|
-
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling downloadKeystore.');
|
964
|
-
}
|
965
|
-
if (domainId !== null && domainId !== undefined) {
|
966
|
-
localVarQueryParameter['domain_id'] = domainId;
|
2340
|
+
if (recordId === null || recordId === undefined) {
|
2341
|
+
throw new RequiredError('recordId', 'Required parameter recordId was null or undefined when calling showBuildRecord.');
|
967
2342
|
}
|
968
|
-
options.
|
2343
|
+
options.pathParams = { 'record_id': recordId, };
|
969
2344
|
options.headers = localVarHeaderParameter;
|
970
2345
|
return options;
|
971
2346
|
},
|
972
2347
|
/**
|
973
|
-
*
|
2348
|
+
* 获取构建记录的构建脚本
|
974
2349
|
*
|
975
2350
|
* Please refer to HUAWEI cloud API Explorer for details.
|
976
2351
|
*/
|
977
|
-
|
2352
|
+
showBuildRecordBuildScript(showBuildRecordBuildScriptRequest) {
|
978
2353
|
const options = {
|
979
2354
|
method: "GET",
|
980
|
-
url: "/
|
2355
|
+
url: "/v1/record/{record_id}/build-script",
|
981
2356
|
contentType: "application/json",
|
982
2357
|
queryParams: {},
|
983
2358
|
pathParams: {},
|
984
2359
|
headers: {}
|
985
2360
|
};
|
986
2361
|
const localVarHeaderParameter = {};
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
let length;
|
992
|
-
if (downloadRealTimeLogRequest !== null && downloadRealTimeLogRequest !== undefined) {
|
993
|
-
if (downloadRealTimeLogRequest instanceof DownloadRealTimeLogRequest_1.DownloadRealTimeLogRequest) {
|
994
|
-
jobId = downloadRealTimeLogRequest.jobId;
|
995
|
-
buildNo = downloadRealTimeLogRequest.buildNo;
|
996
|
-
offset = downloadRealTimeLogRequest.offset;
|
997
|
-
length = downloadRealTimeLogRequest.length;
|
2362
|
+
let recordId;
|
2363
|
+
if (showBuildRecordBuildScriptRequest !== null && showBuildRecordBuildScriptRequest !== undefined) {
|
2364
|
+
if (showBuildRecordBuildScriptRequest instanceof ShowBuildRecordBuildScriptRequest_1.ShowBuildRecordBuildScriptRequest) {
|
2365
|
+
recordId = showBuildRecordBuildScriptRequest.recordId;
|
998
2366
|
}
|
999
2367
|
else {
|
1000
|
-
|
1001
|
-
buildNo = downloadRealTimeLogRequest['build_no'];
|
1002
|
-
offset = downloadRealTimeLogRequest['offset'];
|
1003
|
-
length = downloadRealTimeLogRequest['length'];
|
2368
|
+
recordId = showBuildRecordBuildScriptRequest['record_id'];
|
1004
2369
|
}
|
1005
2370
|
}
|
1006
|
-
if (
|
1007
|
-
throw new RequiredError('
|
1008
|
-
}
|
1009
|
-
if (buildNo === null || buildNo === undefined) {
|
1010
|
-
throw new RequiredError('buildNo', 'Required parameter buildNo was null or undefined when calling downloadRealTimeLog.');
|
1011
|
-
}
|
1012
|
-
if (offset === null || offset === undefined) {
|
1013
|
-
throw new RequiredError('offset', 'Required parameter offset was null or undefined when calling downloadRealTimeLog.');
|
1014
|
-
}
|
1015
|
-
if (offset !== null && offset !== undefined) {
|
1016
|
-
localVarQueryParameter['offset'] = offset;
|
1017
|
-
}
|
1018
|
-
if (length !== null && length !== undefined) {
|
1019
|
-
localVarQueryParameter['length'] = length;
|
2371
|
+
if (recordId === null || recordId === undefined) {
|
2372
|
+
throw new RequiredError('recordId', 'Required parameter recordId was null or undefined when calling showBuildRecordBuildScript.');
|
1020
2373
|
}
|
1021
|
-
options.
|
1022
|
-
options.pathParams = { 'job_id': jobId, 'build_no': buildNo, };
|
2374
|
+
options.pathParams = { 'record_id': recordId, };
|
1023
2375
|
options.headers = localVarHeaderParameter;
|
1024
2376
|
return options;
|
1025
2377
|
},
|
1026
2378
|
/**
|
1027
|
-
*
|
2379
|
+
* 获取任务各阶段信息
|
1028
2380
|
*
|
1029
2381
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1030
2382
|
*/
|
1031
|
-
|
2383
|
+
showBuildRecordFullStages(showBuildRecordFullStagesRequest) {
|
1032
2384
|
const options = {
|
1033
2385
|
method: "GET",
|
1034
|
-
url: "/
|
2386
|
+
url: "/v1/record/{record_id}/full-stages",
|
1035
2387
|
contentType: "application/json",
|
1036
2388
|
queryParams: {},
|
1037
2389
|
pathParams: {},
|
@@ -1040,31 +2392,22 @@ const ParamCreater = function () {
|
|
1040
2392
|
const localVarHeaderParameter = {};
|
1041
2393
|
const localVarQueryParameter = {};
|
1042
2394
|
let recordId;
|
1043
|
-
let
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
taskName = downloadTaskLogRequest.taskName;
|
1049
|
-
logLevel = downloadTaskLogRequest.logLevel;
|
2395
|
+
let cascade;
|
2396
|
+
if (showBuildRecordFullStagesRequest !== null && showBuildRecordFullStagesRequest !== undefined) {
|
2397
|
+
if (showBuildRecordFullStagesRequest instanceof ShowBuildRecordFullStagesRequest_1.ShowBuildRecordFullStagesRequest) {
|
2398
|
+
recordId = showBuildRecordFullStagesRequest.recordId;
|
2399
|
+
cascade = showBuildRecordFullStagesRequest.cascade;
|
1050
2400
|
}
|
1051
2401
|
else {
|
1052
|
-
recordId =
|
1053
|
-
|
1054
|
-
logLevel = downloadTaskLogRequest['log_level'];
|
2402
|
+
recordId = showBuildRecordFullStagesRequest['record_id'];
|
2403
|
+
cascade = showBuildRecordFullStagesRequest['cascade'];
|
1055
2404
|
}
|
1056
2405
|
}
|
1057
2406
|
if (recordId === null || recordId === undefined) {
|
1058
|
-
throw new RequiredError('recordId', 'Required parameter recordId was null or undefined when calling
|
1059
|
-
}
|
1060
|
-
if (taskName === null || taskName === undefined) {
|
1061
|
-
throw new RequiredError('taskName', 'Required parameter taskName was null or undefined when calling downloadTaskLog.');
|
1062
|
-
}
|
1063
|
-
if (taskName !== null && taskName !== undefined) {
|
1064
|
-
localVarQueryParameter['task_name'] = taskName;
|
2407
|
+
throw new RequiredError('recordId', 'Required parameter recordId was null or undefined when calling showBuildRecordFullStages.');
|
1065
2408
|
}
|
1066
|
-
if (
|
1067
|
-
localVarQueryParameter['
|
2409
|
+
if (cascade !== null && cascade !== undefined) {
|
2410
|
+
localVarQueryParameter['cascade'] = cascade;
|
1068
2411
|
}
|
1069
2412
|
options.queryParams = localVarQueryParameter;
|
1070
2413
|
options.pathParams = { 'record_id': recordId, };
|
@@ -1072,45 +2415,32 @@ const ParamCreater = function () {
|
|
1072
2415
|
return options;
|
1073
2416
|
},
|
1074
2417
|
/**
|
1075
|
-
*
|
2418
|
+
* 获取编译构建默认参数
|
1076
2419
|
*
|
1077
2420
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1078
2421
|
*/
|
1079
|
-
|
2422
|
+
showDefaultBuildParameters() {
|
1080
2423
|
const options = {
|
1081
|
-
method: "
|
1082
|
-
url: "/
|
2424
|
+
method: "GET",
|
2425
|
+
url: "/v1/job/default-parameters",
|
1083
2426
|
contentType: "application/json",
|
1084
2427
|
queryParams: {},
|
1085
2428
|
pathParams: {},
|
1086
2429
|
headers: {}
|
1087
2430
|
};
|
1088
2431
|
const localVarHeaderParameter = {};
|
1089
|
-
let jobId;
|
1090
|
-
if (enableBuildJobRequest !== null && enableBuildJobRequest !== undefined) {
|
1091
|
-
if (enableBuildJobRequest instanceof EnableBuildJobRequest_1.EnableBuildJobRequest) {
|
1092
|
-
jobId = enableBuildJobRequest.jobId;
|
1093
|
-
}
|
1094
|
-
else {
|
1095
|
-
jobId = enableBuildJobRequest['job_id'];
|
1096
|
-
}
|
1097
|
-
}
|
1098
|
-
if (jobId === null || jobId === undefined) {
|
1099
|
-
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling enableBuildJob.');
|
1100
|
-
}
|
1101
|
-
options.pathParams = { 'job_id': jobId, };
|
1102
2432
|
options.headers = localVarHeaderParameter;
|
1103
2433
|
return options;
|
1104
2434
|
},
|
1105
2435
|
/**
|
1106
|
-
*
|
2436
|
+
* 获取dockerfileTemplate
|
1107
2437
|
*
|
1108
2438
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1109
2439
|
*/
|
1110
|
-
|
2440
|
+
showDockerfileTemplate(showDockerfileTemplateRequest) {
|
1111
2441
|
const options = {
|
1112
2442
|
method: "GET",
|
1113
|
-
url: "/
|
2443
|
+
url: "/v1/image/dockerfile-template",
|
1114
2444
|
contentType: "application/json",
|
1115
2445
|
queryParams: {},
|
1116
2446
|
pathParams: {},
|
@@ -1118,132 +2448,89 @@ const ParamCreater = function () {
|
|
1118
2448
|
};
|
1119
2449
|
const localVarHeaderParameter = {};
|
1120
2450
|
const localVarQueryParameter = {};
|
1121
|
-
let
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
let pageSize;
|
1126
|
-
if (listBuildInfoRecordRequest !== null && listBuildInfoRecordRequest !== undefined) {
|
1127
|
-
if (listBuildInfoRecordRequest instanceof ListBuildInfoRecordRequest_1.ListBuildInfoRecordRequest) {
|
1128
|
-
jobId = listBuildInfoRecordRequest.jobId;
|
1129
|
-
startTime = listBuildInfoRecordRequest.startTime;
|
1130
|
-
endTime = listBuildInfoRecordRequest.endTime;
|
1131
|
-
pageIndex = listBuildInfoRecordRequest.pageIndex;
|
1132
|
-
pageSize = listBuildInfoRecordRequest.pageSize;
|
2451
|
+
let imageId;
|
2452
|
+
if (showDockerfileTemplateRequest !== null && showDockerfileTemplateRequest !== undefined) {
|
2453
|
+
if (showDockerfileTemplateRequest instanceof ShowDockerfileTemplateRequest_1.ShowDockerfileTemplateRequest) {
|
2454
|
+
imageId = showDockerfileTemplateRequest.imageId;
|
1133
2455
|
}
|
1134
2456
|
else {
|
1135
|
-
|
1136
|
-
startTime = listBuildInfoRecordRequest['start_time'];
|
1137
|
-
endTime = listBuildInfoRecordRequest['end_time'];
|
1138
|
-
pageIndex = listBuildInfoRecordRequest['page_index'];
|
1139
|
-
pageSize = listBuildInfoRecordRequest['page_size'];
|
2457
|
+
imageId = showDockerfileTemplateRequest['image_id'];
|
1140
2458
|
}
|
1141
2459
|
}
|
1142
|
-
if (
|
1143
|
-
throw new RequiredError('
|
1144
|
-
}
|
1145
|
-
if (startTime === null || startTime === undefined) {
|
1146
|
-
throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling listBuildInfoRecord.');
|
1147
|
-
}
|
1148
|
-
if (startTime !== null && startTime !== undefined) {
|
1149
|
-
localVarQueryParameter['start_time'] = startTime;
|
1150
|
-
}
|
1151
|
-
if (endTime === null || endTime === undefined) {
|
1152
|
-
throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling listBuildInfoRecord.');
|
1153
|
-
}
|
1154
|
-
if (endTime !== null && endTime !== undefined) {
|
1155
|
-
localVarQueryParameter['end_time'] = endTime;
|
1156
|
-
}
|
1157
|
-
if (pageIndex !== null && pageIndex !== undefined) {
|
1158
|
-
localVarQueryParameter['page_index'] = pageIndex;
|
2460
|
+
if (imageId === null || imageId === undefined) {
|
2461
|
+
throw new RequiredError('imageId', 'Required parameter imageId was null or undefined when calling showDockerfileTemplate.');
|
1159
2462
|
}
|
1160
|
-
if (
|
1161
|
-
localVarQueryParameter['
|
2463
|
+
if (imageId !== null && imageId !== undefined) {
|
2464
|
+
localVarQueryParameter['image_id'] = imageId;
|
1162
2465
|
}
|
1163
2466
|
options.queryParams = localVarQueryParameter;
|
1164
|
-
options.pathParams = { 'job_id': jobId, };
|
1165
2467
|
options.headers = localVarHeaderParameter;
|
1166
2468
|
return options;
|
1167
2469
|
},
|
1168
2470
|
/**
|
1169
|
-
*
|
2471
|
+
* 获取构建历史详情信息接口
|
1170
2472
|
*
|
1171
2473
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1172
2474
|
*/
|
1173
|
-
|
2475
|
+
showHistoryDetails(showHistoryDetailsRequest) {
|
1174
2476
|
const options = {
|
1175
2477
|
method: "GET",
|
1176
|
-
url: "/v3/jobs/{job_id}/
|
2478
|
+
url: "/v3/jobs/{job_id}/{build_number}/history-details",
|
1177
2479
|
contentType: "application/json",
|
1178
2480
|
queryParams: {},
|
1179
2481
|
pathParams: {},
|
1180
2482
|
headers: {}
|
1181
2483
|
};
|
1182
2484
|
const localVarHeaderParameter = {};
|
1183
|
-
const localVarQueryParameter = {};
|
1184
2485
|
let jobId;
|
1185
|
-
let
|
1186
|
-
if (
|
1187
|
-
if (
|
1188
|
-
jobId =
|
1189
|
-
|
2486
|
+
let buildNumber;
|
2487
|
+
if (showHistoryDetailsRequest !== null && showHistoryDetailsRequest !== undefined) {
|
2488
|
+
if (showHistoryDetailsRequest instanceof ShowHistoryDetailsRequest_1.ShowHistoryDetailsRequest) {
|
2489
|
+
jobId = showHistoryDetailsRequest.jobId;
|
2490
|
+
buildNumber = showHistoryDetailsRequest.buildNumber;
|
1190
2491
|
}
|
1191
2492
|
else {
|
1192
|
-
jobId =
|
1193
|
-
|
2493
|
+
jobId = showHistoryDetailsRequest['job_id'];
|
2494
|
+
buildNumber = showHistoryDetailsRequest['build_number'];
|
1194
2495
|
}
|
1195
2496
|
}
|
1196
2497
|
if (jobId === null || jobId === undefined) {
|
1197
|
-
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling
|
2498
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showHistoryDetails.');
|
1198
2499
|
}
|
1199
|
-
if (
|
1200
|
-
|
2500
|
+
if (buildNumber === null || buildNumber === undefined) {
|
2501
|
+
throw new RequiredError('buildNumber', 'Required parameter buildNumber was null or undefined when calling showHistoryDetails.');
|
1201
2502
|
}
|
1202
|
-
options.
|
1203
|
-
options.pathParams = { 'job_id': jobId, };
|
2503
|
+
options.pathParams = { 'job_id': jobId, 'build_number': buildNumber, };
|
1204
2504
|
options.headers = localVarHeaderParameter;
|
1205
2505
|
return options;
|
1206
2506
|
},
|
1207
2507
|
/**
|
1208
|
-
*
|
2508
|
+
* 获取镜像模板列表
|
1209
2509
|
*
|
1210
2510
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1211
2511
|
*/
|
1212
|
-
|
2512
|
+
showImageTemplateList() {
|
1213
2513
|
const options = {
|
1214
2514
|
method: "GET",
|
1215
|
-
url: "/
|
2515
|
+
url: "/v1/image/templates",
|
1216
2516
|
contentType: "application/json",
|
1217
2517
|
queryParams: {},
|
1218
2518
|
pathParams: {},
|
1219
2519
|
headers: {}
|
1220
2520
|
};
|
1221
2521
|
const localVarHeaderParameter = {};
|
1222
|
-
let jobId;
|
1223
|
-
if (listNoticeRequest !== null && listNoticeRequest !== undefined) {
|
1224
|
-
if (listNoticeRequest instanceof ListNoticeRequest_1.ListNoticeRequest) {
|
1225
|
-
jobId = listNoticeRequest.jobId;
|
1226
|
-
}
|
1227
|
-
else {
|
1228
|
-
jobId = listNoticeRequest['job_id'];
|
1229
|
-
}
|
1230
|
-
}
|
1231
|
-
if (jobId === null || jobId === undefined) {
|
1232
|
-
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling listNotice.');
|
1233
|
-
}
|
1234
|
-
options.pathParams = { 'job_id': jobId, };
|
1235
2522
|
options.headers = localVarHeaderParameter;
|
1236
2523
|
return options;
|
1237
2524
|
},
|
1238
2525
|
/**
|
1239
|
-
*
|
2526
|
+
* 查询构建成功率
|
1240
2527
|
*
|
1241
2528
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1242
2529
|
*/
|
1243
|
-
|
2530
|
+
showJobBuildSuccessRatio(showJobBuildSuccessRatioRequest) {
|
1244
2531
|
const options = {
|
1245
2532
|
method: "GET",
|
1246
|
-
url: "/
|
2533
|
+
url: "/v1/report/ratio",
|
1247
2534
|
contentType: "application/json",
|
1248
2535
|
queryParams: {},
|
1249
2536
|
pathParams: {},
|
@@ -1251,76 +2538,117 @@ const ParamCreater = function () {
|
|
1251
2538
|
};
|
1252
2539
|
const localVarHeaderParameter = {};
|
1253
2540
|
const localVarQueryParameter = {};
|
1254
|
-
let
|
1255
|
-
let
|
1256
|
-
let
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
2541
|
+
let jobId;
|
2542
|
+
let repositoryName;
|
2543
|
+
let interval;
|
2544
|
+
let branch;
|
2545
|
+
if (showJobBuildSuccessRatioRequest !== null && showJobBuildSuccessRatioRequest !== undefined) {
|
2546
|
+
if (showJobBuildSuccessRatioRequest instanceof ShowJobBuildSuccessRatioRequest_1.ShowJobBuildSuccessRatioRequest) {
|
2547
|
+
jobId = showJobBuildSuccessRatioRequest.jobId;
|
2548
|
+
repositoryName = showJobBuildSuccessRatioRequest.repositoryName;
|
2549
|
+
interval = showJobBuildSuccessRatioRequest.interval;
|
2550
|
+
branch = showJobBuildSuccessRatioRequest.branch;
|
1262
2551
|
}
|
1263
2552
|
else {
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
2553
|
+
jobId = showJobBuildSuccessRatioRequest['job_id'];
|
2554
|
+
repositoryName = showJobBuildSuccessRatioRequest['repository_name'];
|
2555
|
+
interval = showJobBuildSuccessRatioRequest['interval'];
|
2556
|
+
branch = showJobBuildSuccessRatioRequest['branch'];
|
1267
2557
|
}
|
1268
2558
|
}
|
1269
|
-
if (
|
1270
|
-
|
2559
|
+
if (jobId === null || jobId === undefined) {
|
2560
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobBuildSuccessRatio.');
|
1271
2561
|
}
|
1272
|
-
if (
|
1273
|
-
localVarQueryParameter['
|
2562
|
+
if (jobId !== null && jobId !== undefined) {
|
2563
|
+
localVarQueryParameter['job_id'] = jobId;
|
1274
2564
|
}
|
1275
|
-
if (
|
1276
|
-
|
2565
|
+
if (repositoryName === null || repositoryName === undefined) {
|
2566
|
+
throw new RequiredError('repositoryName', 'Required parameter repositoryName was null or undefined when calling showJobBuildSuccessRatio.');
|
2567
|
+
}
|
2568
|
+
if (repositoryName !== null && repositoryName !== undefined) {
|
2569
|
+
localVarQueryParameter['repository_name'] = repositoryName;
|
2570
|
+
}
|
2571
|
+
if (interval === null || interval === undefined) {
|
2572
|
+
throw new RequiredError('interval', 'Required parameter interval was null or undefined when calling showJobBuildSuccessRatio.');
|
2573
|
+
}
|
2574
|
+
if (interval !== null && interval !== undefined) {
|
2575
|
+
localVarQueryParameter['interval'] = interval;
|
2576
|
+
}
|
2577
|
+
if (branch !== null && branch !== undefined) {
|
2578
|
+
localVarQueryParameter['branch'] = branch;
|
1277
2579
|
}
|
1278
2580
|
options.queryParams = localVarQueryParameter;
|
1279
2581
|
options.headers = localVarHeaderParameter;
|
1280
2582
|
return options;
|
1281
2583
|
},
|
1282
2584
|
/**
|
1283
|
-
*
|
2585
|
+
* 洞察构建时长
|
1284
2586
|
*
|
1285
2587
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1286
2588
|
*/
|
1287
|
-
|
1288
|
-
const options = {
|
1289
|
-
method: "
|
1290
|
-
url: "/
|
2589
|
+
showJobBuildTime(showJobBuildTimeRequest) {
|
2590
|
+
const options = {
|
2591
|
+
method: "GET",
|
2592
|
+
url: "/v1/report/time",
|
1291
2593
|
contentType: "application/json",
|
1292
2594
|
queryParams: {},
|
1293
2595
|
pathParams: {},
|
1294
|
-
headers: {}
|
1295
|
-
data: {}
|
2596
|
+
headers: {}
|
1296
2597
|
};
|
1297
2598
|
const localVarHeaderParameter = {};
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
2599
|
+
const localVarQueryParameter = {};
|
2600
|
+
let jobId;
|
2601
|
+
let repositoryName;
|
2602
|
+
let interval;
|
2603
|
+
let branch;
|
2604
|
+
if (showJobBuildTimeRequest !== null && showJobBuildTimeRequest !== undefined) {
|
2605
|
+
if (showJobBuildTimeRequest instanceof ShowJobBuildTimeRequest_1.ShowJobBuildTimeRequest) {
|
2606
|
+
jobId = showJobBuildTimeRequest.jobId;
|
2607
|
+
repositoryName = showJobBuildTimeRequest.repositoryName;
|
2608
|
+
interval = showJobBuildTimeRequest.interval;
|
2609
|
+
branch = showJobBuildTimeRequest.branch;
|
1302
2610
|
}
|
1303
2611
|
else {
|
1304
|
-
|
2612
|
+
jobId = showJobBuildTimeRequest['job_id'];
|
2613
|
+
repositoryName = showJobBuildTimeRequest['repository_name'];
|
2614
|
+
interval = showJobBuildTimeRequest['interval'];
|
2615
|
+
branch = showJobBuildTimeRequest['branch'];
|
1305
2616
|
}
|
1306
2617
|
}
|
1307
|
-
if (
|
1308
|
-
throw new RequiredError('
|
2618
|
+
if (jobId === null || jobId === undefined) {
|
2619
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobBuildTime.');
|
1309
2620
|
}
|
1310
|
-
|
1311
|
-
|
2621
|
+
if (jobId !== null && jobId !== undefined) {
|
2622
|
+
localVarQueryParameter['job_id'] = jobId;
|
2623
|
+
}
|
2624
|
+
if (repositoryName === null || repositoryName === undefined) {
|
2625
|
+
throw new RequiredError('repositoryName', 'Required parameter repositoryName was null or undefined when calling showJobBuildTime.');
|
2626
|
+
}
|
2627
|
+
if (repositoryName !== null && repositoryName !== undefined) {
|
2628
|
+
localVarQueryParameter['repository_name'] = repositoryName;
|
2629
|
+
}
|
2630
|
+
if (interval === null || interval === undefined) {
|
2631
|
+
throw new RequiredError('interval', 'Required parameter interval was null or undefined when calling showJobBuildTime.');
|
2632
|
+
}
|
2633
|
+
if (interval !== null && interval !== undefined) {
|
2634
|
+
localVarQueryParameter['interval'] = interval;
|
2635
|
+
}
|
2636
|
+
if (branch !== null && branch !== undefined) {
|
2637
|
+
localVarQueryParameter['branch'] = branch;
|
2638
|
+
}
|
2639
|
+
options.queryParams = localVarQueryParameter;
|
1312
2640
|
options.headers = localVarHeaderParameter;
|
1313
2641
|
return options;
|
1314
2642
|
},
|
1315
2643
|
/**
|
1316
|
-
*
|
2644
|
+
* 获取构建任务详情
|
1317
2645
|
*
|
1318
2646
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1319
2647
|
*/
|
1320
|
-
|
2648
|
+
showJobConfig(showJobConfigRequest) {
|
1321
2649
|
const options = {
|
1322
2650
|
method: "GET",
|
1323
|
-
url: "/v1/
|
2651
|
+
url: "/v1/job/{job_id}/config",
|
1324
2652
|
contentType: "application/json",
|
1325
2653
|
queryParams: {},
|
1326
2654
|
pathParams: {},
|
@@ -1328,122 +2656,108 @@ const ParamCreater = function () {
|
|
1328
2656
|
};
|
1329
2657
|
const localVarHeaderParameter = {};
|
1330
2658
|
const localVarQueryParameter = {};
|
1331
|
-
let
|
1332
|
-
let
|
1333
|
-
if (
|
1334
|
-
if (
|
1335
|
-
|
1336
|
-
|
2659
|
+
let jobId;
|
2660
|
+
let getAllParams;
|
2661
|
+
if (showJobConfigRequest !== null && showJobConfigRequest !== undefined) {
|
2662
|
+
if (showJobConfigRequest instanceof ShowJobConfigRequest_1.ShowJobConfigRequest) {
|
2663
|
+
jobId = showJobConfigRequest.jobId;
|
2664
|
+
getAllParams = showJobConfigRequest.getAllParams;
|
1337
2665
|
}
|
1338
2666
|
else {
|
1339
|
-
|
1340
|
-
|
2667
|
+
jobId = showJobConfigRequest['job_id'];
|
2668
|
+
getAllParams = showJobConfigRequest['get_all_params'];
|
1341
2669
|
}
|
1342
2670
|
}
|
1343
|
-
if (
|
1344
|
-
throw new RequiredError('
|
2671
|
+
if (jobId === null || jobId === undefined) {
|
2672
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobConfig.');
|
1345
2673
|
}
|
1346
|
-
if (
|
1347
|
-
localVarQueryParameter['
|
2674
|
+
if (getAllParams !== null && getAllParams !== undefined) {
|
2675
|
+
localVarQueryParameter['get_all_params'] = getAllParams;
|
1348
2676
|
}
|
1349
2677
|
options.queryParams = localVarQueryParameter;
|
1350
|
-
options.pathParams = { '
|
2678
|
+
options.pathParams = { 'job_id': jobId, };
|
1351
2679
|
options.headers = localVarHeaderParameter;
|
1352
2680
|
return options;
|
1353
2681
|
},
|
1354
2682
|
/**
|
1355
|
-
*
|
2683
|
+
* 获取构建任务配置的对比差异
|
1356
2684
|
*
|
1357
2685
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1358
2686
|
*/
|
1359
|
-
|
2687
|
+
showJobConfigDiff(showJobConfigDiffRequest) {
|
1360
2688
|
const options = {
|
1361
2689
|
method: "GET",
|
1362
|
-
url: "/
|
2690
|
+
url: "/v1/job/{job_id}/diff",
|
1363
2691
|
contentType: "application/json",
|
1364
2692
|
queryParams: {},
|
1365
2693
|
pathParams: {},
|
1366
2694
|
headers: {}
|
1367
2695
|
};
|
1368
2696
|
const localVarHeaderParameter = {};
|
2697
|
+
const localVarQueryParameter = {};
|
1369
2698
|
let jobId;
|
1370
|
-
let
|
1371
|
-
|
1372
|
-
|
1373
|
-
|
1374
|
-
|
2699
|
+
let revisedlNo;
|
2700
|
+
let originalNo;
|
2701
|
+
if (showJobConfigDiffRequest !== null && showJobConfigDiffRequest !== undefined) {
|
2702
|
+
if (showJobConfigDiffRequest instanceof ShowJobConfigDiffRequest_1.ShowJobConfigDiffRequest) {
|
2703
|
+
jobId = showJobConfigDiffRequest.jobId;
|
2704
|
+
revisedlNo = showJobConfigDiffRequest.revisedlNo;
|
2705
|
+
originalNo = showJobConfigDiffRequest.originalNo;
|
1375
2706
|
}
|
1376
2707
|
else {
|
1377
|
-
jobId =
|
1378
|
-
|
2708
|
+
jobId = showJobConfigDiffRequest['job_id'];
|
2709
|
+
revisedlNo = showJobConfigDiffRequest['revisedl_no'];
|
2710
|
+
originalNo = showJobConfigDiffRequest['original_no'];
|
1379
2711
|
}
|
1380
2712
|
}
|
1381
2713
|
if (jobId === null || jobId === undefined) {
|
1382
|
-
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling
|
2714
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobConfigDiff.');
|
1383
2715
|
}
|
1384
|
-
if (
|
1385
|
-
throw new RequiredError('
|
2716
|
+
if (revisedlNo === null || revisedlNo === undefined) {
|
2717
|
+
throw new RequiredError('revisedlNo', 'Required parameter revisedlNo was null or undefined when calling showJobConfigDiff.');
|
1386
2718
|
}
|
1387
|
-
|
2719
|
+
if (revisedlNo !== null && revisedlNo !== undefined) {
|
2720
|
+
localVarQueryParameter['revisedl_no'] = revisedlNo;
|
2721
|
+
}
|
2722
|
+
if (originalNo === null || originalNo === undefined) {
|
2723
|
+
throw new RequiredError('originalNo', 'Required parameter originalNo was null or undefined when calling showJobConfigDiff.');
|
2724
|
+
}
|
2725
|
+
if (originalNo !== null && originalNo !== undefined) {
|
2726
|
+
localVarQueryParameter['original_no'] = originalNo;
|
2727
|
+
}
|
2728
|
+
options.queryParams = localVarQueryParameter;
|
2729
|
+
options.pathParams = { 'job_id': jobId, };
|
1388
2730
|
options.headers = localVarHeaderParameter;
|
1389
2731
|
return options;
|
1390
2732
|
},
|
1391
2733
|
/**
|
1392
|
-
*
|
2734
|
+
* 查看构建任务构建信息
|
1393
2735
|
*
|
1394
2736
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1395
2737
|
*/
|
1396
|
-
|
2738
|
+
showJobInfo(showJobInfoRequest) {
|
1397
2739
|
const options = {
|
1398
2740
|
method: "GET",
|
1399
|
-
url: "/v1/
|
2741
|
+
url: "/v1/job/{job_id}/info",
|
1400
2742
|
contentType: "application/json",
|
1401
2743
|
queryParams: {},
|
1402
2744
|
pathParams: {},
|
1403
2745
|
headers: {}
|
1404
2746
|
};
|
1405
2747
|
const localVarHeaderParameter = {};
|
1406
|
-
const localVarQueryParameter = {};
|
1407
2748
|
let jobId;
|
1408
|
-
|
1409
|
-
|
1410
|
-
|
1411
|
-
if (showJobBuildSuccessRatioRequest !== null && showJobBuildSuccessRatioRequest !== undefined) {
|
1412
|
-
if (showJobBuildSuccessRatioRequest instanceof ShowJobBuildSuccessRatioRequest_1.ShowJobBuildSuccessRatioRequest) {
|
1413
|
-
jobId = showJobBuildSuccessRatioRequest.jobId;
|
1414
|
-
repositoryName = showJobBuildSuccessRatioRequest.repositoryName;
|
1415
|
-
interval = showJobBuildSuccessRatioRequest.interval;
|
1416
|
-
branch = showJobBuildSuccessRatioRequest.branch;
|
2749
|
+
if (showJobInfoRequest !== null && showJobInfoRequest !== undefined) {
|
2750
|
+
if (showJobInfoRequest instanceof ShowJobInfoRequest_1.ShowJobInfoRequest) {
|
2751
|
+
jobId = showJobInfoRequest.jobId;
|
1417
2752
|
}
|
1418
2753
|
else {
|
1419
|
-
jobId =
|
1420
|
-
repositoryName = showJobBuildSuccessRatioRequest['repository_name'];
|
1421
|
-
interval = showJobBuildSuccessRatioRequest['interval'];
|
1422
|
-
branch = showJobBuildSuccessRatioRequest['branch'];
|
2754
|
+
jobId = showJobInfoRequest['job_id'];
|
1423
2755
|
}
|
1424
2756
|
}
|
1425
2757
|
if (jobId === null || jobId === undefined) {
|
1426
|
-
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling
|
1427
|
-
}
|
1428
|
-
if (jobId !== null && jobId !== undefined) {
|
1429
|
-
localVarQueryParameter['job_id'] = jobId;
|
1430
|
-
}
|
1431
|
-
if (repositoryName === null || repositoryName === undefined) {
|
1432
|
-
throw new RequiredError('repositoryName', 'Required parameter repositoryName was null or undefined when calling showJobBuildSuccessRatio.');
|
1433
|
-
}
|
1434
|
-
if (repositoryName !== null && repositoryName !== undefined) {
|
1435
|
-
localVarQueryParameter['repository_name'] = repositoryName;
|
1436
|
-
}
|
1437
|
-
if (interval === null || interval === undefined) {
|
1438
|
-
throw new RequiredError('interval', 'Required parameter interval was null or undefined when calling showJobBuildSuccessRatio.');
|
1439
|
-
}
|
1440
|
-
if (interval !== null && interval !== undefined) {
|
1441
|
-
localVarQueryParameter['interval'] = interval;
|
1442
|
-
}
|
1443
|
-
if (branch !== null && branch !== undefined) {
|
1444
|
-
localVarQueryParameter['branch'] = branch;
|
2758
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobInfo.');
|
1445
2759
|
}
|
1446
|
-
options.
|
2760
|
+
options.pathParams = { 'job_id': jobId, };
|
1447
2761
|
options.headers = localVarHeaderParameter;
|
1448
2762
|
return options;
|
1449
2763
|
},
|
@@ -1498,6 +2812,72 @@ const ParamCreater = function () {
|
|
1498
2812
|
options.headers = localVarHeaderParameter;
|
1499
2813
|
return options;
|
1500
2814
|
},
|
2815
|
+
/**
|
2816
|
+
* 获取通知信息
|
2817
|
+
*
|
2818
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2819
|
+
*/
|
2820
|
+
showJobNoticeConfigInfo(showJobNoticeConfigInfoRequest) {
|
2821
|
+
const options = {
|
2822
|
+
method: "GET",
|
2823
|
+
url: "/v1/job/{job_id}/notice",
|
2824
|
+
contentType: "application/json",
|
2825
|
+
queryParams: {},
|
2826
|
+
pathParams: {},
|
2827
|
+
headers: {}
|
2828
|
+
};
|
2829
|
+
const localVarHeaderParameter = {};
|
2830
|
+
let jobId;
|
2831
|
+
if (showJobNoticeConfigInfoRequest !== null && showJobNoticeConfigInfoRequest !== undefined) {
|
2832
|
+
if (showJobNoticeConfigInfoRequest instanceof ShowJobNoticeConfigInfoRequest_1.ShowJobNoticeConfigInfoRequest) {
|
2833
|
+
jobId = showJobNoticeConfigInfoRequest.jobId;
|
2834
|
+
}
|
2835
|
+
else {
|
2836
|
+
jobId = showJobNoticeConfigInfoRequest['job_id'];
|
2837
|
+
}
|
2838
|
+
}
|
2839
|
+
if (jobId === null || jobId === undefined) {
|
2840
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobNoticeConfigInfo.');
|
2841
|
+
}
|
2842
|
+
options.pathParams = { 'job_id': jobId, };
|
2843
|
+
options.headers = localVarHeaderParameter;
|
2844
|
+
return options;
|
2845
|
+
},
|
2846
|
+
/**
|
2847
|
+
* 获取构建任务的角色权限矩阵信息
|
2848
|
+
*
|
2849
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2850
|
+
*/
|
2851
|
+
showJobRolePermission(showJobRolePermissionRequest) {
|
2852
|
+
const options = {
|
2853
|
+
method: "GET",
|
2854
|
+
url: "/v1/job/permission/role",
|
2855
|
+
contentType: "application/json",
|
2856
|
+
queryParams: {},
|
2857
|
+
pathParams: {},
|
2858
|
+
headers: {}
|
2859
|
+
};
|
2860
|
+
const localVarHeaderParameter = {};
|
2861
|
+
const localVarQueryParameter = {};
|
2862
|
+
let jobId;
|
2863
|
+
if (showJobRolePermissionRequest !== null && showJobRolePermissionRequest !== undefined) {
|
2864
|
+
if (showJobRolePermissionRequest instanceof ShowJobRolePermissionRequest_1.ShowJobRolePermissionRequest) {
|
2865
|
+
jobId = showJobRolePermissionRequest.jobId;
|
2866
|
+
}
|
2867
|
+
else {
|
2868
|
+
jobId = showJobRolePermissionRequest['job_id'];
|
2869
|
+
}
|
2870
|
+
}
|
2871
|
+
if (jobId === null || jobId === undefined) {
|
2872
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobRolePermission.');
|
2873
|
+
}
|
2874
|
+
if (jobId !== null && jobId !== undefined) {
|
2875
|
+
localVarQueryParameter['job_id'] = jobId;
|
2876
|
+
}
|
2877
|
+
options.queryParams = localVarQueryParameter;
|
2878
|
+
options.headers = localVarHeaderParameter;
|
2879
|
+
return options;
|
2880
|
+
},
|
1501
2881
|
/**
|
1502
2882
|
* 查看任务运行状态
|
1503
2883
|
*
|
@@ -1580,6 +2960,75 @@ const ParamCreater = function () {
|
|
1580
2960
|
options.headers = localVarHeaderParameter;
|
1581
2961
|
return options;
|
1582
2962
|
},
|
2963
|
+
/**
|
2964
|
+
* 查看系统预定义参数
|
2965
|
+
*
|
2966
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2967
|
+
*/
|
2968
|
+
showJobSystemParameters() {
|
2969
|
+
const options = {
|
2970
|
+
method: "GET",
|
2971
|
+
url: "/v1/job/system-parameters",
|
2972
|
+
contentType: "application/json",
|
2973
|
+
queryParams: {},
|
2974
|
+
pathParams: {},
|
2975
|
+
headers: {}
|
2976
|
+
};
|
2977
|
+
const localVarHeaderParameter = {};
|
2978
|
+
options.headers = localVarHeaderParameter;
|
2979
|
+
return options;
|
2980
|
+
},
|
2981
|
+
/**
|
2982
|
+
* 文件管理查询权限
|
2983
|
+
*
|
2984
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2985
|
+
*/
|
2986
|
+
showKeystorePermission(showKeystorePermissionRequest) {
|
2987
|
+
const options = {
|
2988
|
+
method: "GET",
|
2989
|
+
url: "/v2/keystore/permission/{keystore_id}/query",
|
2990
|
+
contentType: "application/json",
|
2991
|
+
queryParams: {},
|
2992
|
+
pathParams: {},
|
2993
|
+
headers: {}
|
2994
|
+
};
|
2995
|
+
const localVarHeaderParameter = {};
|
2996
|
+
const localVarQueryParameter = {};
|
2997
|
+
let keystoreId;
|
2998
|
+
let pageSize;
|
2999
|
+
let page;
|
3000
|
+
if (showKeystorePermissionRequest !== null && showKeystorePermissionRequest !== undefined) {
|
3001
|
+
if (showKeystorePermissionRequest instanceof ShowKeystorePermissionRequest_1.ShowKeystorePermissionRequest) {
|
3002
|
+
keystoreId = showKeystorePermissionRequest.keystoreId;
|
3003
|
+
pageSize = showKeystorePermissionRequest.pageSize;
|
3004
|
+
page = showKeystorePermissionRequest.page;
|
3005
|
+
}
|
3006
|
+
else {
|
3007
|
+
keystoreId = showKeystorePermissionRequest['keystore_id'];
|
3008
|
+
pageSize = showKeystorePermissionRequest['page_size'];
|
3009
|
+
page = showKeystorePermissionRequest['page'];
|
3010
|
+
}
|
3011
|
+
}
|
3012
|
+
if (keystoreId === null || keystoreId === undefined) {
|
3013
|
+
throw new RequiredError('keystoreId', 'Required parameter keystoreId was null or undefined when calling showKeystorePermission.');
|
3014
|
+
}
|
3015
|
+
if (pageSize === null || pageSize === undefined) {
|
3016
|
+
throw new RequiredError('pageSize', 'Required parameter pageSize was null or undefined when calling showKeystorePermission.');
|
3017
|
+
}
|
3018
|
+
if (pageSize !== null && pageSize !== undefined) {
|
3019
|
+
localVarQueryParameter['page_size'] = pageSize;
|
3020
|
+
}
|
3021
|
+
if (page === null || page === undefined) {
|
3022
|
+
throw new RequiredError('page', 'Required parameter page was null or undefined when calling showKeystorePermission.');
|
3023
|
+
}
|
3024
|
+
if (page !== null && page !== undefined) {
|
3025
|
+
localVarQueryParameter['page'] = page;
|
3026
|
+
}
|
3027
|
+
options.queryParams = localVarQueryParameter;
|
3028
|
+
options.pathParams = { 'keystore_id': keystoreId, };
|
3029
|
+
options.headers = localVarHeaderParameter;
|
3030
|
+
return options;
|
3031
|
+
},
|
1583
3032
|
/**
|
1584
3033
|
* 查询指定代码仓库最近一次成功的构建历史
|
1585
3034
|
*
|
@@ -1788,6 +3237,41 @@ const ParamCreater = function () {
|
|
1788
3237
|
options.headers = localVarHeaderParameter;
|
1789
3238
|
return options;
|
1790
3239
|
},
|
3240
|
+
/**
|
3241
|
+
* 获取用户权限
|
3242
|
+
*
|
3243
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3244
|
+
*/
|
3245
|
+
showProjectPermission(showProjectPermissionRequest) {
|
3246
|
+
const options = {
|
3247
|
+
method: "GET",
|
3248
|
+
url: "/v1/domain/user-permission",
|
3249
|
+
contentType: "application/json",
|
3250
|
+
queryParams: {},
|
3251
|
+
pathParams: {},
|
3252
|
+
headers: {}
|
3253
|
+
};
|
3254
|
+
const localVarHeaderParameter = {};
|
3255
|
+
const localVarQueryParameter = {};
|
3256
|
+
let projectId;
|
3257
|
+
if (showProjectPermissionRequest !== null && showProjectPermissionRequest !== undefined) {
|
3258
|
+
if (showProjectPermissionRequest instanceof ShowProjectPermissionRequest_1.ShowProjectPermissionRequest) {
|
3259
|
+
projectId = showProjectPermissionRequest.projectId;
|
3260
|
+
}
|
3261
|
+
else {
|
3262
|
+
projectId = showProjectPermissionRequest['project_id'];
|
3263
|
+
}
|
3264
|
+
}
|
3265
|
+
if (projectId === null || projectId === undefined) {
|
3266
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling showProjectPermission.');
|
3267
|
+
}
|
3268
|
+
if (projectId !== null && projectId !== undefined) {
|
3269
|
+
localVarQueryParameter['project_id'] = projectId;
|
3270
|
+
}
|
3271
|
+
options.queryParams = localVarQueryParameter;
|
3272
|
+
options.headers = localVarHeaderParameter;
|
3273
|
+
return options;
|
3274
|
+
},
|
1791
3275
|
/**
|
1792
3276
|
* 获取构建记录信息
|
1793
3277
|
*
|
@@ -1825,6 +3309,24 @@ const ParamCreater = function () {
|
|
1825
3309
|
options.headers = localVarHeaderParameter;
|
1826
3310
|
return options;
|
1827
3311
|
},
|
3312
|
+
/**
|
3313
|
+
* 获取当前用户的项目信息列表
|
3314
|
+
*
|
3315
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3316
|
+
*/
|
3317
|
+
showRelatedProject() {
|
3318
|
+
const options = {
|
3319
|
+
method: "GET",
|
3320
|
+
url: "/v1/domain/project/related",
|
3321
|
+
contentType: "application/json",
|
3322
|
+
queryParams: {},
|
3323
|
+
pathParams: {},
|
3324
|
+
headers: {}
|
3325
|
+
};
|
3326
|
+
const localVarHeaderParameter = {};
|
3327
|
+
options.headers = localVarHeaderParameter;
|
3328
|
+
return options;
|
3329
|
+
},
|
1828
3330
|
/**
|
1829
3331
|
* 获取覆盖率接口
|
1830
3332
|
*
|