@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.
Files changed (341) hide show
  1. package/package.json +2 -2
  2. package/v3/CodeArtsBuildClient.d.ts +708 -0
  3. package/v3/CodeArtsBuildClient.d.ts.map +1 -1
  4. package/v3/CodeArtsBuildClient.js +2016 -514
  5. package/v3/CodeArtsBuildClient.js.map +1 -1
  6. package/v3/model/AddKeystorePermissionResponseBody.d.ts +32 -0
  7. package/v3/model/AddKeystorePermissionResponseBody.d.ts.map +1 -0
  8. package/v3/model/AddKeystorePermissionResponseBody.js +75 -0
  9. package/v3/model/AddKeystorePermissionResponseBody.js.map +1 -0
  10. package/v3/model/BuildParams.d.ts +11 -0
  11. package/v3/model/BuildParams.d.ts.map +1 -0
  12. package/v3/model/BuildParams.js +21 -0
  13. package/v3/model/BuildParams.js.map +1 -0
  14. package/v3/model/BuildParamsBodyResult.d.ts +9 -0
  15. package/v3/model/BuildParamsBodyResult.d.ts.map +1 -0
  16. package/v3/model/BuildParamsBodyResult.js +19 -0
  17. package/v3/model/BuildParamsBodyResult.js.map +1 -0
  18. package/v3/model/BuildRecord.d.ts +116 -0
  19. package/v3/model/BuildRecord.d.ts.map +1 -0
  20. package/v3/model/BuildRecord.js +277 -0
  21. package/v3/model/BuildRecord.js.map +1 -0
  22. package/v3/model/BuildRecordBuildRecordType.d.ts +18 -0
  23. package/v3/model/BuildRecordBuildRecordType.d.ts.map +1 -0
  24. package/v3/model/BuildRecordBuildRecordType.js +43 -0
  25. package/v3/model/BuildRecordBuildRecordType.js.map +1 -0
  26. package/v3/model/BuildRecordParameters.d.ts +12 -0
  27. package/v3/model/BuildRecordParameters.d.ts.map +1 -0
  28. package/v3/model/BuildRecordParameters.js +25 -0
  29. package/v3/model/BuildRecordParameters.js.map +1 -0
  30. package/v3/model/CheckJobNameIsExistsRequest.d.ts +12 -0
  31. package/v3/model/CheckJobNameIsExistsRequest.d.ts.map +1 -0
  32. package/v3/model/CheckJobNameIsExistsRequest.js +31 -0
  33. package/v3/model/CheckJobNameIsExistsRequest.js.map +1 -0
  34. package/v3/model/CheckJobNameIsExistsResponse.d.ts +9 -0
  35. package/v3/model/CheckJobNameIsExistsResponse.d.ts.map +1 -0
  36. package/v3/model/CheckJobNameIsExistsResponse.js +19 -0
  37. package/v3/model/CheckJobNameIsExistsResponse.js.map +1 -0
  38. package/v3/model/Constraints.d.ts +10 -0
  39. package/v3/model/Constraints.d.ts.map +1 -0
  40. package/v3/model/Constraints.js +21 -0
  41. package/v3/model/Constraints.js.map +1 -0
  42. package/v3/model/DownloadKeystoreByNameRequest.d.ts +12 -0
  43. package/v3/model/DownloadKeystoreByNameRequest.d.ts.map +1 -0
  44. package/v3/model/DownloadKeystoreByNameRequest.js +30 -0
  45. package/v3/model/DownloadKeystoreByNameRequest.js.map +1 -0
  46. package/v3/model/DownloadKeystoreByNameResponse.d.ts +5 -0
  47. package/v3/model/DownloadKeystoreByNameResponse.d.ts.map +1 -0
  48. package/v3/model/DownloadKeystoreByNameResponse.js +11 -0
  49. package/v3/model/DownloadKeystoreByNameResponse.js.map +1 -0
  50. package/v3/model/ListBuildInfoRecordByJobIdRequest.d.ts +24 -0
  51. package/v3/model/ListBuildInfoRecordByJobIdRequest.d.ts.map +1 -0
  52. package/v3/model/ListBuildInfoRecordByJobIdRequest.js +62 -0
  53. package/v3/model/ListBuildInfoRecordByJobIdRequest.js.map +1 -0
  54. package/v3/model/ListBuildInfoRecordByJobIdResponse.d.ts +12 -0
  55. package/v3/model/ListBuildInfoRecordByJobIdResponse.d.ts.map +1 -0
  56. package/v3/model/ListBuildInfoRecordByJobIdResponse.js +23 -0
  57. package/v3/model/ListBuildInfoRecordByJobIdResponse.js.map +1 -0
  58. package/v3/model/ListKeystoreRequest.d.ts +4 -0
  59. package/v3/model/ListKeystoreRequest.d.ts.map +1 -0
  60. package/v3/model/ListKeystoreRequest.js +9 -0
  61. package/v3/model/ListKeystoreRequest.js.map +1 -0
  62. package/v3/model/ListKeystoreResponse.d.ts +10 -0
  63. package/v3/model/ListKeystoreResponse.d.ts.map +1 -0
  64. package/v3/model/ListKeystoreResponse.js +19 -0
  65. package/v3/model/ListKeystoreResponse.js.map +1 -0
  66. package/v3/model/ListKeystoreResult.d.ts +10 -0
  67. package/v3/model/ListKeystoreResult.d.ts.map +1 -0
  68. package/v3/model/ListKeystoreResult.js +23 -0
  69. package/v3/model/ListKeystoreResult.js.map +1 -0
  70. package/v3/model/ListOfficialTemplateRequest.d.ts +12 -0
  71. package/v3/model/ListOfficialTemplateRequest.d.ts.map +1 -0
  72. package/v3/model/ListOfficialTemplateRequest.js +27 -0
  73. package/v3/model/ListOfficialTemplateRequest.js.map +1 -0
  74. package/v3/model/ListOfficialTemplateResponse.d.ts +12 -0
  75. package/v3/model/ListOfficialTemplateResponse.d.ts.map +1 -0
  76. package/v3/model/ListOfficialTemplateResponse.js +23 -0
  77. package/v3/model/ListOfficialTemplateResponse.js.map +1 -0
  78. package/v3/model/ListOfficialTemplateResult.d.ts +11 -0
  79. package/v3/model/ListOfficialTemplateResult.d.ts.map +1 -0
  80. package/v3/model/ListOfficialTemplateResult.js +23 -0
  81. package/v3/model/ListOfficialTemplateResult.js.map +1 -0
  82. package/v3/model/ListProjectJobsRequest.d.ts +42 -0
  83. package/v3/model/ListProjectJobsRequest.d.ts.map +1 -0
  84. package/v3/model/ListProjectJobsRequest.js +106 -0
  85. package/v3/model/ListProjectJobsRequest.js.map +1 -0
  86. package/v3/model/ListProjectJobsResponse.d.ts +10 -0
  87. package/v3/model/ListProjectJobsResponse.d.ts.map +1 -0
  88. package/v3/model/ListProjectJobsResponse.js +19 -0
  89. package/v3/model/ListProjectJobsResponse.js.map +1 -0
  90. package/v3/model/ListRecordsRequest.d.ts +26 -0
  91. package/v3/model/ListRecordsRequest.d.ts.map +1 -0
  92. package/v3/model/ListRecordsRequest.js +60 -0
  93. package/v3/model/ListRecordsRequest.js.map +1 -0
  94. package/v3/model/ListRecordsResponse.d.ts +12 -0
  95. package/v3/model/ListRecordsResponse.d.ts.map +1 -0
  96. package/v3/model/ListRecordsResponse.js +23 -0
  97. package/v3/model/ListRecordsResponse.js.map +1 -0
  98. package/v3/model/ListRecordsResult.d.ts +10 -0
  99. package/v3/model/ListRecordsResult.d.ts.map +1 -0
  100. package/v3/model/ListRecordsResult.js +17 -0
  101. package/v3/model/ListRecordsResult.js.map +1 -0
  102. package/v3/model/ListRecordsResultPagination.d.ts +10 -0
  103. package/v3/model/ListRecordsResultPagination.d.ts.map +1 -0
  104. package/v3/model/ListRecordsResultPagination.js +21 -0
  105. package/v3/model/ListRecordsResultPagination.js.map +1 -0
  106. package/v3/model/ListRecyclingJobRequest.d.ts +14 -0
  107. package/v3/model/ListRecyclingJobRequest.d.ts.map +1 -0
  108. package/v3/model/ListRecyclingJobRequest.js +33 -0
  109. package/v3/model/ListRecyclingJobRequest.js.map +1 -0
  110. package/v3/model/ListRecyclingJobResponse.d.ts +18 -0
  111. package/v3/model/ListRecyclingJobResponse.d.ts.map +1 -0
  112. package/v3/model/ListRecyclingJobResponse.js +37 -0
  113. package/v3/model/ListRecyclingJobResponse.js.map +1 -0
  114. package/v3/model/ListRelatedProjectInfoRequest.d.ts +14 -0
  115. package/v3/model/ListRelatedProjectInfoRequest.d.ts.map +1 -0
  116. package/v3/model/ListRelatedProjectInfoRequest.js +33 -0
  117. package/v3/model/ListRelatedProjectInfoRequest.js.map +1 -0
  118. package/v3/model/ListRelatedProjectInfoResponse.d.ts +12 -0
  119. package/v3/model/ListRelatedProjectInfoResponse.d.ts.map +1 -0
  120. package/v3/model/ListRelatedProjectInfoResponse.js +23 -0
  121. package/v3/model/ListRelatedProjectInfoResponse.js.map +1 -0
  122. package/v3/model/ListRelatedProjectInfoResult.d.ts +11 -0
  123. package/v3/model/ListRelatedProjectInfoResult.d.ts.map +1 -0
  124. package/v3/model/ListRelatedProjectInfoResult.js +23 -0
  125. package/v3/model/ListRelatedProjectInfoResult.js.map +1 -0
  126. package/v3/model/ListRelatedProjectInfoResultProjectInfoList.d.ts +18 -0
  127. package/v3/model/ListRelatedProjectInfoResultProjectInfoList.d.ts.map +1 -0
  128. package/v3/model/ListRelatedProjectInfoResultProjectInfoList.js +41 -0
  129. package/v3/model/ListRelatedProjectInfoResultProjectInfoList.js.map +1 -0
  130. package/v3/model/Parameter.d.ts +9 -0
  131. package/v3/model/Parameter.d.ts.map +1 -0
  132. package/v3/model/Parameter.js +17 -0
  133. package/v3/model/Parameter.js.map +1 -0
  134. package/v3/model/Params.d.ts +19 -0
  135. package/v3/model/Params.d.ts.map +1 -0
  136. package/v3/model/Params.js +37 -0
  137. package/v3/model/Params.js.map +1 -0
  138. package/v3/model/RecyclingJob.d.ts +40 -0
  139. package/v3/model/RecyclingJob.d.ts.map +1 -0
  140. package/v3/model/RecyclingJob.js +99 -0
  141. package/v3/model/RecyclingJob.js.map +1 -0
  142. package/v3/model/RecyclingJobsResult.d.ts +15 -0
  143. package/v3/model/RecyclingJobsResult.d.ts.map +1 -0
  144. package/v3/model/RecyclingJobsResult.js +33 -0
  145. package/v3/model/RecyclingJobsResult.js.map +1 -0
  146. package/v3/model/ShowBuildInfoRecordRequest.d.ts +12 -0
  147. package/v3/model/ShowBuildInfoRecordRequest.d.ts.map +1 -0
  148. package/v3/model/ShowBuildInfoRecordRequest.js +31 -0
  149. package/v3/model/ShowBuildInfoRecordRequest.js.map +1 -0
  150. package/v3/model/ShowBuildInfoRecordResponse.d.ts +12 -0
  151. package/v3/model/ShowBuildInfoRecordResponse.d.ts.map +1 -0
  152. package/v3/model/ShowBuildInfoRecordResponse.js +23 -0
  153. package/v3/model/ShowBuildInfoRecordResponse.js.map +1 -0
  154. package/v3/model/ShowBuildParamsListRequest.d.ts +4 -0
  155. package/v3/model/ShowBuildParamsListRequest.d.ts.map +1 -0
  156. package/v3/model/ShowBuildParamsListRequest.js +9 -0
  157. package/v3/model/ShowBuildParamsListRequest.js.map +1 -0
  158. package/v3/model/ShowBuildParamsListResponse.d.ts +12 -0
  159. package/v3/model/ShowBuildParamsListResponse.d.ts.map +1 -0
  160. package/v3/model/ShowBuildParamsListResponse.js +23 -0
  161. package/v3/model/ShowBuildParamsListResponse.js.map +1 -0
  162. package/v3/model/ShowBuildRecordBuildScriptRequest.d.ts +8 -0
  163. package/v3/model/ShowBuildRecordBuildScriptRequest.d.ts.map +1 -0
  164. package/v3/model/ShowBuildRecordBuildScriptRequest.js +20 -0
  165. package/v3/model/ShowBuildRecordBuildScriptRequest.js.map +1 -0
  166. package/v3/model/ShowBuildRecordBuildScriptResponse.d.ts +11 -0
  167. package/v3/model/ShowBuildRecordBuildScriptResponse.d.ts.map +1 -0
  168. package/v3/model/ShowBuildRecordBuildScriptResponse.js +23 -0
  169. package/v3/model/ShowBuildRecordBuildScriptResponse.js.map +1 -0
  170. package/v3/model/ShowBuildRecordRequest.d.ts +8 -0
  171. package/v3/model/ShowBuildRecordRequest.d.ts.map +1 -0
  172. package/v3/model/ShowBuildRecordRequest.js +20 -0
  173. package/v3/model/ShowBuildRecordRequest.js.map +1 -0
  174. package/v3/model/ShowBuildRecordResponse.d.ts +12 -0
  175. package/v3/model/ShowBuildRecordResponse.d.ts.map +1 -0
  176. package/v3/model/ShowBuildRecordResponse.js +23 -0
  177. package/v3/model/ShowBuildRecordResponse.js.map +1 -0
  178. package/v3/model/ShowDefaultBuildParametersParams.d.ts +8 -0
  179. package/v3/model/ShowDefaultBuildParametersParams.d.ts.map +1 -0
  180. package/v3/model/ShowDefaultBuildParametersParams.js +17 -0
  181. package/v3/model/ShowDefaultBuildParametersParams.js.map +1 -0
  182. package/v3/model/ShowDefaultBuildParametersRequest.d.ts +4 -0
  183. package/v3/model/ShowDefaultBuildParametersRequest.d.ts.map +1 -0
  184. package/v3/model/ShowDefaultBuildParametersRequest.js +9 -0
  185. package/v3/model/ShowDefaultBuildParametersRequest.js.map +1 -0
  186. package/v3/model/ShowDefaultBuildParametersResponse.d.ts +10 -0
  187. package/v3/model/ShowDefaultBuildParametersResponse.d.ts.map +1 -0
  188. package/v3/model/ShowDefaultBuildParametersResponse.js +19 -0
  189. package/v3/model/ShowDefaultBuildParametersResponse.js.map +1 -0
  190. package/v3/model/ShowDefaultBuildParametersResult.d.ts +9 -0
  191. package/v3/model/ShowDefaultBuildParametersResult.d.ts.map +1 -0
  192. package/v3/model/ShowDefaultBuildParametersResult.js +17 -0
  193. package/v3/model/ShowDefaultBuildParametersResult.js.map +1 -0
  194. package/v3/model/ShowDockerfileTemplateRequest.d.ts +8 -0
  195. package/v3/model/ShowDockerfileTemplateRequest.d.ts.map +1 -0
  196. package/v3/model/ShowDockerfileTemplateRequest.js +20 -0
  197. package/v3/model/ShowDockerfileTemplateRequest.js.map +1 -0
  198. package/v3/model/ShowDockerfileTemplateResponse.d.ts +5 -0
  199. package/v3/model/ShowDockerfileTemplateResponse.d.ts.map +1 -0
  200. package/v3/model/ShowDockerfileTemplateResponse.js +11 -0
  201. package/v3/model/ShowDockerfileTemplateResponse.js.map +1 -0
  202. package/v3/model/ShowImageTemplateListRequest.d.ts +4 -0
  203. package/v3/model/ShowImageTemplateListRequest.d.ts.map +1 -0
  204. package/v3/model/ShowImageTemplateListRequest.js +9 -0
  205. package/v3/model/ShowImageTemplateListRequest.js.map +1 -0
  206. package/v3/model/ShowImageTemplateListResponse.d.ts +12 -0
  207. package/v3/model/ShowImageTemplateListResponse.d.ts.map +1 -0
  208. package/v3/model/ShowImageTemplateListResponse.js +23 -0
  209. package/v3/model/ShowImageTemplateListResponse.js.map +1 -0
  210. package/v3/model/ShowImageTemplateListResponseBodyResult.d.ts +9 -0
  211. package/v3/model/ShowImageTemplateListResponseBodyResult.d.ts.map +1 -0
  212. package/v3/model/ShowImageTemplateListResponseBodyResult.js +19 -0
  213. package/v3/model/ShowImageTemplateListResponseBodyResult.js.map +1 -0
  214. package/v3/model/ShowImageTemplateListResponseBodyResultImageTemplates.d.ts +30 -0
  215. package/v3/model/ShowImageTemplateListResponseBodyResultImageTemplates.d.ts.map +1 -0
  216. package/v3/model/ShowImageTemplateListResponseBodyResultImageTemplates.js +71 -0
  217. package/v3/model/ShowImageTemplateListResponseBodyResultImageTemplates.js.map +1 -0
  218. package/v3/model/ShowJobBuildTimeRequest.d.ts +16 -0
  219. package/v3/model/ShowJobBuildTimeRequest.d.ts.map +1 -0
  220. package/v3/model/ShowJobBuildTimeRequest.js +40 -0
  221. package/v3/model/ShowJobBuildTimeRequest.js.map +1 -0
  222. package/v3/model/ShowJobBuildTimeResponse.d.ts +10 -0
  223. package/v3/model/ShowJobBuildTimeResponse.d.ts.map +1 -0
  224. package/v3/model/ShowJobBuildTimeResponse.js +19 -0
  225. package/v3/model/ShowJobBuildTimeResponse.js.map +1 -0
  226. package/v3/model/ShowJobBuildTimeResult.d.ts +23 -0
  227. package/v3/model/ShowJobBuildTimeResult.d.ts.map +1 -0
  228. package/v3/model/ShowJobBuildTimeResult.js +53 -0
  229. package/v3/model/ShowJobBuildTimeResult.js.map +1 -0
  230. package/v3/model/ShowJobBuildTimeResultChart.d.ts +20 -0
  231. package/v3/model/ShowJobBuildTimeResultChart.d.ts.map +1 -0
  232. package/v3/model/ShowJobBuildTimeResultChart.js +49 -0
  233. package/v3/model/ShowJobBuildTimeResultChart.js.map +1 -0
  234. package/v3/model/ShowJobConfigDiffRequest.d.ts +16 -0
  235. package/v3/model/ShowJobConfigDiffRequest.d.ts.map +1 -0
  236. package/v3/model/ShowJobConfigDiffRequest.js +42 -0
  237. package/v3/model/ShowJobConfigDiffRequest.js.map +1 -0
  238. package/v3/model/ShowJobConfigDiffResponse.d.ts +9 -0
  239. package/v3/model/ShowJobConfigDiffResponse.d.ts.map +1 -0
  240. package/v3/model/ShowJobConfigDiffResponse.js +19 -0
  241. package/v3/model/ShowJobConfigDiffResponse.js.map +1 -0
  242. package/v3/model/ShowJobConfigRequest.d.ts +12 -0
  243. package/v3/model/ShowJobConfigRequest.d.ts.map +1 -0
  244. package/v3/model/ShowJobConfigRequest.js +30 -0
  245. package/v3/model/ShowJobConfigRequest.js.map +1 -0
  246. package/v3/model/ShowJobConfigResponse.d.ts +12 -0
  247. package/v3/model/ShowJobConfigResponse.d.ts.map +1 -0
  248. package/v3/model/ShowJobConfigResponse.js +23 -0
  249. package/v3/model/ShowJobConfigResponse.js.map +1 -0
  250. package/v3/model/ShowJobInfoRequest.d.ts +8 -0
  251. package/v3/model/ShowJobInfoRequest.d.ts.map +1 -0
  252. package/v3/model/ShowJobInfoRequest.js +20 -0
  253. package/v3/model/ShowJobInfoRequest.js.map +1 -0
  254. package/v3/model/ShowJobInfoResponse.d.ts +12 -0
  255. package/v3/model/ShowJobInfoResponse.d.ts.map +1 -0
  256. package/v3/model/ShowJobInfoResponse.js +23 -0
  257. package/v3/model/ShowJobInfoResponse.js.map +1 -0
  258. package/v3/model/ShowJobInfoResult.d.ts +86 -0
  259. package/v3/model/ShowJobInfoResult.d.ts.map +1 -0
  260. package/v3/model/ShowJobInfoResult.js +211 -0
  261. package/v3/model/ShowJobInfoResult.js.map +1 -0
  262. package/v3/model/ShowJobNoticeConfigInfoRequest.d.ts +8 -0
  263. package/v3/model/ShowJobNoticeConfigInfoRequest.d.ts.map +1 -0
  264. package/v3/model/ShowJobNoticeConfigInfoRequest.js +20 -0
  265. package/v3/model/ShowJobNoticeConfigInfoRequest.js.map +1 -0
  266. package/v3/model/ShowJobNoticeConfigInfoResponse.d.ts +12 -0
  267. package/v3/model/ShowJobNoticeConfigInfoResponse.d.ts.map +1 -0
  268. package/v3/model/ShowJobNoticeConfigInfoResponse.js +23 -0
  269. package/v3/model/ShowJobNoticeConfigInfoResponse.js.map +1 -0
  270. package/v3/model/ShowJobRolePermissionRequest.d.ts +8 -0
  271. package/v3/model/ShowJobRolePermissionRequest.d.ts.map +1 -0
  272. package/v3/model/ShowJobRolePermissionRequest.js +20 -0
  273. package/v3/model/ShowJobRolePermissionRequest.js.map +1 -0
  274. package/v3/model/ShowJobRolePermissionResponse.d.ts +10 -0
  275. package/v3/model/ShowJobRolePermissionResponse.d.ts.map +1 -0
  276. package/v3/model/ShowJobRolePermissionResponse.js +19 -0
  277. package/v3/model/ShowJobRolePermissionResponse.js.map +1 -0
  278. package/v3/model/ShowJobRolePermissionResult.d.ts +56 -0
  279. package/v3/model/ShowJobRolePermissionResult.d.ts.map +1 -0
  280. package/v3/model/ShowJobRolePermissionResult.js +137 -0
  281. package/v3/model/ShowJobRolePermissionResult.js.map +1 -0
  282. package/v3/model/ShowJobSystemParametersRequest.d.ts +4 -0
  283. package/v3/model/ShowJobSystemParametersRequest.d.ts.map +1 -0
  284. package/v3/model/ShowJobSystemParametersRequest.js +9 -0
  285. package/v3/model/ShowJobSystemParametersRequest.js.map +1 -0
  286. package/v3/model/ShowJobSystemParametersResponse.d.ts +12 -0
  287. package/v3/model/ShowJobSystemParametersResponse.d.ts.map +1 -0
  288. package/v3/model/ShowJobSystemParametersResponse.js +23 -0
  289. package/v3/model/ShowJobSystemParametersResponse.js.map +1 -0
  290. package/v3/model/ShowKeystorePermissionRequest.d.ts +14 -0
  291. package/v3/model/ShowKeystorePermissionRequest.d.ts.map +1 -0
  292. package/v3/model/ShowKeystorePermissionRequest.js +36 -0
  293. package/v3/model/ShowKeystorePermissionRequest.js.map +1 -0
  294. package/v3/model/ShowKeystorePermissionResponse.d.ts +12 -0
  295. package/v3/model/ShowKeystorePermissionResponse.d.ts.map +1 -0
  296. package/v3/model/ShowKeystorePermissionResponse.js +23 -0
  297. package/v3/model/ShowKeystorePermissionResponse.js.map +1 -0
  298. package/v3/model/ShowKeystorePermissionResponseBodyResult.d.ts +11 -0
  299. package/v3/model/ShowKeystorePermissionResponseBodyResult.d.ts.map +1 -0
  300. package/v3/model/ShowKeystorePermissionResponseBodyResult.js +23 -0
  301. package/v3/model/ShowKeystorePermissionResponseBodyResult.js.map +1 -0
  302. package/v3/model/ShowProjectPermissionRequest.d.ts +8 -0
  303. package/v3/model/ShowProjectPermissionRequest.d.ts.map +1 -0
  304. package/v3/model/ShowProjectPermissionRequest.js +20 -0
  305. package/v3/model/ShowProjectPermissionRequest.js.map +1 -0
  306. package/v3/model/ShowProjectPermissionResponse.d.ts +12 -0
  307. package/v3/model/ShowProjectPermissionResponse.d.ts.map +1 -0
  308. package/v3/model/ShowProjectPermissionResponse.js +23 -0
  309. package/v3/model/ShowProjectPermissionResponse.js.map +1 -0
  310. package/v3/model/ShowRelatedProjectRequest.d.ts +4 -0
  311. package/v3/model/ShowRelatedProjectRequest.d.ts.map +1 -0
  312. package/v3/model/ShowRelatedProjectRequest.js +9 -0
  313. package/v3/model/ShowRelatedProjectRequest.js.map +1 -0
  314. package/v3/model/ShowRelatedProjectResponse.d.ts +12 -0
  315. package/v3/model/ShowRelatedProjectResponse.d.ts.map +1 -0
  316. package/v3/model/ShowRelatedProjectResponse.js +23 -0
  317. package/v3/model/ShowRelatedProjectResponse.js.map +1 -0
  318. package/v3/model/ShowRelatedProjectResult.d.ts +11 -0
  319. package/v3/model/ShowRelatedProjectResult.d.ts.map +1 -0
  320. package/v3/model/ShowRelatedProjectResult.js +23 -0
  321. package/v3/model/ShowRelatedProjectResult.js.map +1 -0
  322. package/v3/model/ShowRelatedProjectResultProjectInfoList.d.ts +20 -0
  323. package/v3/model/ShowRelatedProjectResultProjectInfoList.d.ts.map +1 -0
  324. package/v3/model/ShowRelatedProjectResultProjectInfoList.js +47 -0
  325. package/v3/model/ShowRelatedProjectResultProjectInfoList.js.map +1 -0
  326. package/v3/model/ShowUserProjectPermissionResult.d.ts +28 -0
  327. package/v3/model/ShowUserProjectPermissionResult.d.ts.map +1 -0
  328. package/v3/model/ShowUserProjectPermissionResult.js +69 -0
  329. package/v3/model/ShowUserProjectPermissionResult.js.map +1 -0
  330. package/v3/model/SystemParametersResult.d.ts +12 -0
  331. package/v3/model/SystemParametersResult.d.ts.map +1 -0
  332. package/v3/model/SystemParametersResult.js +27 -0
  333. package/v3/model/SystemParametersResult.js.map +1 -0
  334. package/v3/model/TemplateList.d.ts +38 -0
  335. package/v3/model/TemplateList.d.ts.map +1 -0
  336. package/v3/model/TemplateList.js +79 -0
  337. package/v3/model/TemplateList.js.map +1 -0
  338. package/v3/public-api.d.ts +83 -0
  339. package/v3/public-api.d.ts.map +1 -1
  340. package/v3/public-api.js +83 -0
  341. 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
- listTemplates(listTemplatesRequest) {
303
- const options = (0, exports.ParamCreater)().listTemplates(listTemplatesRequest);
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 {RunJobRequestBody} runJobRequestBody body
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
- runJob(runJobRequest) {
319
- const options = (0, exports.ParamCreater)().runJob(runJobRequest);
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} recordId 记录ID,36位数字、小写字母、\'-\'组组合。
331
- * @param {boolean} [cascade] 是否联级获取steps
428
+ * @summary 获取指定工程的构建记录列表
429
+ * @param {string} buildProjectId 构建工程项目ID36位数字、小写字母组合。
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
- showBuildRecordFullStages(showBuildRecordFullStagesRequest) {
336
- const options = (0, exports.ParamCreater)().showBuildRecordFullStages(showBuildRecordFullStagesRequest);
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 {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
348
- * @param {number} buildNumber 构建任务的构建编号,从1开始,每次构建递增1
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
- showHistoryDetails(showHistoryDetailsRequest) {
353
- const options = (0, exports.ParamCreater)().showHistoryDetails(showHistoryDetailsRequest);
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 {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
365
- * @param {string} repositoryName 代码仓名称。
366
- * @param {number} interval 查询时间,查最近几天的。
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
- showJobBuildSuccessRatio(showJobBuildSuccessRatioRequest) {
372
- const options = (0, exports.ParamCreater)().showJobBuildSuccessRatio(showJobBuildSuccessRatioRequest);
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} projectId CodeArts项目ID,32位数字、小写字母组合。
384
- * @param {number} pageIndex 分页页码, 表示从此页开始查询, page_index大于等于0
385
- * @param {number} pageSize 每页显示的条目数量,page_size小于等于100
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
- showJobListByProjectId(showJobListByProjectIdRequest) {
390
- const options = (0, exports.ParamCreater)().showJobListByProjectId(showJobListByProjectIdRequest);
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 {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
505
+ * @summary 执行构建任务
506
+ * @param {RunJobRequestBody} runJobRequestBody body
402
507
  * @param {*} [options] Override http request option.
403
508
  * @throws {RequiredError}
404
509
  */
405
- showJobStatus(showJobStatusRequest) {
406
- const options = (0, exports.ParamCreater)().showJobStatus(showJobStatusRequest);
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 {string} startTime 区间开始时间,格式yyyy-MM-dd。
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
- showJobSuccessRatio(showJobSuccessRatioRequest) {
424
- const options = (0, exports.ParamCreater)().showJobSuccessRatio(showJobSuccessRatioRequest);
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
- showLastHistory(showLastHistoryRequest) {
441
- const options = (0, exports.ParamCreater)().showLastHistory(showLastHistoryRequest);
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} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
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位数字、小写字母、\&#39;-\&#39;组组合。
456
555
  * @param {*} [options] Override http request option.
457
556
  * @throws {RequiredError}
458
557
  */
459
- showListHistory(showListHistoryRequest) {
460
- const options = (0, exports.ParamCreater)().showListHistory(showListHistoryRequest);
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} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
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位数字、小写字母、\&#39;-\&#39;组组合。
476
571
  * @param {*} [options] Override http request option.
477
572
  * @throws {RequiredError}
478
573
  */
479
- showListPeriodHistory(showListPeriodHistoryRequest) {
480
- const options = (0, exports.ParamCreater)().showListPeriodHistory(showListPeriodHistoryRequest);
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} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
492
- * @param {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
585
+ * @summary 获取任务各阶段信息
586
+ * @param {string} recordId 记录ID,36位数字、小写字母、\&#39;-\&#39;组组合。
587
+ * @param {boolean} [cascade] 是否联级获取steps
493
588
  * @param {*} [options] Override http request option.
494
589
  * @throws {RequiredError}
495
590
  */
496
- showOutputInfo(showOutputInfoRequest) {
497
- const options = (0, exports.ParamCreater)().showOutputInfo(showOutputInfoRequest);
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
- showRecordDetail(showRecordDetailRequest) {
514
- const options = (0, exports.ParamCreater)().showRecordDetail(showRecordDetailRequest);
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} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
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
- showReportSummary(showReportSummaryRequest) {
531
- const options = (0, exports.ParamCreater)().showReportSummary(showReportSummaryRequest);
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
- showRunningStatus(showRunningStatusRequest) {
547
- const options = (0, exports.ParamCreater)().showRunningStatus(showRunningStatusRequest);
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} [defaultHost] 默认主机类型
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
- showYamlTemplate(showYamlTemplateRequest) {
564
- const options = (0, exports.ParamCreater)().showYamlTemplate(showYamlTemplateRequest);
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 {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
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
- stopBuildJob(stopBuildJobRequest) {
581
- const options = (0, exports.ParamCreater)().stopBuildJob(stopBuildJobRequest);
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 {UpdateBuildJobRequestBody} updateBuildJobRequestBody body
703
+ * @summary 获取构建任务详情
704
+ * @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
705
+ * @param {string} [getAllParams] 输入\&quot;true\&quot;或者\&quot;false\&quot;来控制返回参数是不是完整的
593
706
  * @param {*} [options] Override http request option.
594
707
  * @throws {RequiredError}
595
708
  */
596
- updateBuildJob(updateBuildJobRequest) {
597
- const options = (0, exports.ParamCreater)().updateBuildJob(updateBuildJobRequest);
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 {UpdateNoticeRequestBody} updateNoticeRequestBody body
722
+ * @param {string} revisedlNo 新记录的序号
723
+ * @param {string} originalNo 原记录的序号
610
724
  * @param {*} [options] Override http request option.
611
725
  * @throws {RequiredError}
612
726
  */
613
- updateNotice(updateNoticeRequest) {
614
- const options = (0, exports.ParamCreater)().updateNotice(updateNoticeRequest);
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} recordId 记录ID,36位数字、小写字母、\&#39;-\&#39;组组合。
738
+ * @summary 查看构建任务构建信息
739
+ * @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
626
740
  * @param {*} [options] Override http request option.
627
741
  * @throws {RequiredError}
628
742
  */
629
- downloadLogByRecordId(downloadLogByRecordIdRequest) {
630
- const options = (0, exports.ParamCreater)().downloadLogByRecordId(downloadLogByRecordIdRequest);
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} buildFlowRecordId 父任务构建记录ID
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
- showFlowGraph(showFlowGraphRequest) {
646
- const options = (0, exports.ParamCreater)().showFlowGraph(showFlowGraphRequest);
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
- showRecordInfo(showRecordInfoRequest) {
663
- const options = (0, exports.ParamCreater)().showRecordInfo(showRecordInfoRequest);
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 {StopJobRequestBody} stopJobRequestBody body
788
+ * @summary 获取构建任务的角色权限矩阵信息
789
+ * @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
675
790
  * @param {*} [options] Override http request option.
676
791
  * @throws {RequiredError}
677
792
  */
678
- stopJob(stopJobRequest) {
679
- const options = (0, exports.ParamCreater)().stopJob(stopJobRequest);
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
- exports.CodeArtsBuildClient = CodeArtsBuildClient;
686
- const ParamCreater = function () {
687
- return {
688
- /**
689
- * 创建构建任务
690
- *
691
- * Please refer to HUAWEI cloud API Explorer for details.
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位数字、小写字母、\&#39;-\&#39;组组合。
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
- let body;
705
- if (createBuildJobRequest !== null && createBuildJobRequest !== undefined) {
706
- if (createBuildJobRequest instanceof CreateBuildJobRequest_1.CreateBuildJobRequest) {
707
- body = createBuildJobRequest.body;
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
- body = createBuildJobRequest['body'];
1910
+ name = listOfficialTemplateRequest['name'];
1911
+ page = listOfficialTemplateRequest['page'];
1912
+ pageSize = listOfficialTemplateRequest['page_size'];
711
1913
  }
712
1914
  }
713
- if (body === null || body === undefined) {
714
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1915
+ if (name !== null && name !== undefined) {
1916
+ localVarQueryParameter['name'] = name;
715
1917
  }
716
- localVarHeaderParameter['Content-Type'] = 'application/json';
717
- options.data = body !== undefined ? body : {};
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
- createTemplates(createTemplatesRequest) {
1933
+ listProjectJobs(listProjectJobsRequest) {
727
1934
  const options = {
728
- method: "POST",
729
- url: "/v3/templates/create",
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
- let body;
738
- if (createTemplatesRequest !== null && createTemplatesRequest !== undefined) {
739
- if (createTemplatesRequest instanceof CreateTemplatesRequest_1.CreateTemplatesRequest) {
740
- body = createTemplatesRequest.body;
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
- body = createTemplatesRequest['body'];
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 (body === null || body === undefined) {
747
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1980
+ if (projectId === null || projectId === undefined) {
1981
+ throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listProjectJobs.');
748
1982
  }
749
- localVarHeaderParameter['Content-Type'] = 'application/json';
750
- options.data = body !== undefined ? body : {};
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
- deleteBuildJob(deleteBuildJobRequest) {
2026
+ listRecords(listRecordsRequest) {
760
2027
  const options = {
761
- method: "POST",
762
- url: "/v3/jobs/{job_id}/delete",
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
- let jobId;
770
- if (deleteBuildJobRequest !== null && deleteBuildJobRequest !== undefined) {
771
- if (deleteBuildJobRequest instanceof DeleteBuildJobRequest_1.DeleteBuildJobRequest) {
772
- jobId = deleteBuildJobRequest.jobId;
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
- jobId = deleteBuildJobRequest['job_id'];
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 (jobId === null || jobId === undefined) {
779
- throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling deleteBuildJob.');
2067
+ if (buildProjectId === null || buildProjectId === undefined) {
2068
+ throw new RequiredError('buildProjectId', 'Required parameter buildProjectId was null or undefined when calling listRecords.');
780
2069
  }
781
- options.pathParams = { 'job_id': jobId, };
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
- deleteTemplates(deleteTemplatesRequest) {
2101
+ listRecyclingJob(listRecyclingJobRequest) {
791
2102
  const options = {
792
- method: "DELETE",
793
- url: "/v3/templates/{uuid}/delete",
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
- let uuid;
801
- if (deleteTemplatesRequest !== null && deleteTemplatesRequest !== undefined) {
802
- if (deleteTemplatesRequest instanceof DeleteTemplatesRequest_1.DeleteTemplatesRequest) {
803
- uuid = deleteTemplatesRequest.uuid;
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
- uuid = deleteTemplatesRequest['uuid'];
2122
+ pageSize = listRecyclingJobRequest['page_size'];
2123
+ pageNo = listRecyclingJobRequest['page_no'];
2124
+ search = listRecyclingJobRequest['search'];
807
2125
  }
808
2126
  }
809
- if (uuid === null || uuid === undefined) {
810
- throw new RequiredError('uuid', 'Required parameter uuid was null or undefined when calling deleteTemplates.');
2127
+ if (pageSize !== null && pageSize !== undefined) {
2128
+ localVarQueryParameter['page_size'] = pageSize;
811
2129
  }
812
- options.pathParams = { 'uuid': uuid, };
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
- disableBuildJob(disableBuildJobRequest) {
2145
+ listRelatedProjectInfo(listRelatedProjectInfoRequest) {
822
2146
  const options = {
823
- method: "POST",
824
- url: "/v3/jobs/{job_id}/disable",
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
- let jobId;
832
- if (disableBuildJobRequest !== null && disableBuildJobRequest !== undefined) {
833
- if (disableBuildJobRequest instanceof DisableBuildJobRequest_1.DisableBuildJobRequest) {
834
- jobId = disableBuildJobRequest.jobId;
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
- jobId = disableBuildJobRequest['job_id'];
2166
+ pageSize = listRelatedProjectInfoRequest['page_size'];
2167
+ pageNo = listRelatedProjectInfoRequest['page_no'];
2168
+ search = listRelatedProjectInfoRequest['search'];
838
2169
  }
839
2170
  }
840
- if (jobId === null || jobId === undefined) {
841
- throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling disableBuildJob.');
2171
+ if (pageSize !== null && pageSize !== undefined) {
2172
+ localVarQueryParameter['page_size'] = pageSize;
842
2173
  }
843
- options.pathParams = { 'job_id': jobId, };
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
- disableNotice(disableNoticeRequest) {
2189
+ listTemplates(listTemplatesRequest) {
853
2190
  const options = {
854
- method: "POST",
855
- url: "/v3/jobs/notice/{job_id}/disable",
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 jobId;
864
- let noticeType;
865
- if (disableNoticeRequest !== null && disableNoticeRequest !== undefined) {
866
- if (disableNoticeRequest instanceof DisableNoticeRequest_1.DisableNoticeRequest) {
867
- jobId = disableNoticeRequest.jobId;
868
- noticeType = disableNoticeRequest.noticeType;
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
- jobId = disableNoticeRequest['job_id'];
872
- noticeType = disableNoticeRequest['notice_type'];
2210
+ name = listTemplatesRequest['name'];
2211
+ page = listTemplatesRequest['page'];
2212
+ pageSize = listTemplatesRequest['page_size'];
873
2213
  }
874
2214
  }
875
- if (jobId === null || jobId === undefined) {
876
- throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling disableNotice.');
2215
+ if (name !== null && name !== undefined) {
2216
+ localVarQueryParameter['name'] = name;
877
2217
  }
878
- if (noticeType === null || noticeType === undefined) {
879
- throw new RequiredError('noticeType', 'Required parameter noticeType was null or undefined when calling disableNotice.');
2218
+ if (page !== null && page !== undefined) {
2219
+ localVarQueryParameter['page'] = page;
880
2220
  }
881
- if (noticeType !== null && noticeType !== undefined) {
882
- localVarQueryParameter['notice_type'] = noticeType;
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
- downloadBuildLog(downloadBuildLogRequest) {
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: "/v4/{record_id}/download-log",
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
- const localVarQueryParameter = {};
905
- let recordId;
906
- let logLevel;
907
- if (downloadBuildLogRequest !== null && downloadBuildLogRequest !== undefined) {
908
- if (downloadBuildLogRequest instanceof DownloadBuildLogRequest_1.DownloadBuildLogRequest) {
909
- recordId = downloadBuildLogRequest.recordId;
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
- recordId = downloadBuildLogRequest['record_id'];
914
- logLevel = downloadBuildLogRequest['log_level'];
2284
+ jobId = showBuildInfoRecordRequest['job_id'];
2285
+ buildNo = showBuildInfoRecordRequest['build_no'];
915
2286
  }
916
2287
  }
917
- if (recordId === null || recordId === undefined) {
918
- throw new RequiredError('recordId', 'Required parameter recordId was null or undefined when calling downloadBuildLog.');
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 (logLevel !== null && logLevel !== undefined) {
921
- localVarQueryParameter['log_level'] = logLevel;
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.queryParams = localVarQueryParameter;
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
- * 下载指定租户下的KeyStore文件
2299
+ * 编辑页获取参数类型的接口
930
2300
  *
931
2301
  * Please refer to HUAWEI cloud API Explorer for details.
932
2302
  */
933
- downloadKeystore(downloadKeystoreRequest) {
2303
+ showBuildParamsList() {
934
2304
  const options = {
935
2305
  method: "GET",
936
- url: "/v3/keystore",
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
- const localVarQueryParameter = {};
944
- let fileName;
945
- let domainId;
946
- if (downloadKeystoreRequest !== null && downloadKeystoreRequest !== undefined) {
947
- if (downloadKeystoreRequest instanceof DownloadKeystoreRequest_1.DownloadKeystoreRequest) {
948
- fileName = downloadKeystoreRequest.fileName;
949
- domainId = downloadKeystoreRequest.domainId;
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
- fileName = downloadKeystoreRequest['file_name'];
953
- domainId = downloadKeystoreRequest['domain_id'];
2337
+ recordId = showBuildRecordRequest['record_id'];
954
2338
  }
955
2339
  }
956
- if (fileName === null || fileName === undefined) {
957
- throw new RequiredError('fileName', 'Required parameter fileName was null or undefined when calling downloadKeystore.');
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.queryParams = localVarQueryParameter;
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
- downloadRealTimeLog(downloadRealTimeLogRequest) {
2352
+ showBuildRecordBuildScript(showBuildRecordBuildScriptRequest) {
978
2353
  const options = {
979
2354
  method: "GET",
980
- url: "/v3/jobs/{job_id}/{build_no}/real-time-log",
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
- const localVarQueryParameter = {};
988
- let jobId;
989
- let buildNo;
990
- let offset;
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
- jobId = downloadRealTimeLogRequest['job_id'];
1001
- buildNo = downloadRealTimeLogRequest['build_no'];
1002
- offset = downloadRealTimeLogRequest['offset'];
1003
- length = downloadRealTimeLogRequest['length'];
2368
+ recordId = showBuildRecordBuildScriptRequest['record_id'];
1004
2369
  }
1005
2370
  }
1006
- if (jobId === null || jobId === undefined) {
1007
- throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling downloadRealTimeLog.');
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.queryParams = localVarQueryParameter;
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
- downloadTaskLog(downloadTaskLogRequest) {
2383
+ showBuildRecordFullStages(showBuildRecordFullStagesRequest) {
1032
2384
  const options = {
1033
2385
  method: "GET",
1034
- url: "/v4/{record_id}/task-log",
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 taskName;
1044
- let logLevel;
1045
- if (downloadTaskLogRequest !== null && downloadTaskLogRequest !== undefined) {
1046
- if (downloadTaskLogRequest instanceof DownloadTaskLogRequest_1.DownloadTaskLogRequest) {
1047
- recordId = downloadTaskLogRequest.recordId;
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 = downloadTaskLogRequest['record_id'];
1053
- taskName = downloadTaskLogRequest['task_name'];
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 downloadTaskLog.');
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 (logLevel !== null && logLevel !== undefined) {
1067
- localVarQueryParameter['log_level'] = logLevel;
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
- enableBuildJob(enableBuildJobRequest) {
2422
+ showDefaultBuildParameters() {
1080
2423
  const options = {
1081
- method: "POST",
1082
- url: "/v3/jobs/{job_id}/recover",
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
- listBuildInfoRecord(listBuildInfoRecordRequest) {
2440
+ showDockerfileTemplate(showDockerfileTemplateRequest) {
1111
2441
  const options = {
1112
2442
  method: "GET",
1113
- url: "/v3/jobs/{job_id}/build-info-records",
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 jobId;
1122
- let startTime;
1123
- let endTime;
1124
- let pageIndex;
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
- jobId = listBuildInfoRecordRequest['job_id'];
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 (jobId === null || jobId === undefined) {
1143
- throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling listBuildInfoRecord.');
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 (pageSize !== null && pageSize !== undefined) {
1161
- localVarQueryParameter['page_size'] = pageSize;
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
- listJobConfig(listJobConfigRequest) {
2475
+ showHistoryDetails(showHistoryDetailsRequest) {
1174
2476
  const options = {
1175
2477
  method: "GET",
1176
- url: "/v3/jobs/{job_id}/query",
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 getAllParams;
1186
- if (listJobConfigRequest !== null && listJobConfigRequest !== undefined) {
1187
- if (listJobConfigRequest instanceof ListJobConfigRequest_1.ListJobConfigRequest) {
1188
- jobId = listJobConfigRequest.jobId;
1189
- getAllParams = listJobConfigRequest.getAllParams;
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 = listJobConfigRequest['job_id'];
1193
- getAllParams = listJobConfigRequest['get_all_params'];
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 listJobConfig.');
2498
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showHistoryDetails.');
1198
2499
  }
1199
- if (getAllParams !== null && getAllParams !== undefined) {
1200
- localVarQueryParameter['get_all_params'] = getAllParams;
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.queryParams = localVarQueryParameter;
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
- listNotice(listNoticeRequest) {
2512
+ showImageTemplateList() {
1213
2513
  const options = {
1214
2514
  method: "GET",
1215
- url: "/v3/jobs/notice/{job_id}/query",
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
- listTemplates(listTemplatesRequest) {
2530
+ showJobBuildSuccessRatio(showJobBuildSuccessRatioRequest) {
1244
2531
  const options = {
1245
2532
  method: "GET",
1246
- url: "/v3/templates/query",
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 name;
1255
- let page;
1256
- let pageSize;
1257
- if (listTemplatesRequest !== null && listTemplatesRequest !== undefined) {
1258
- if (listTemplatesRequest instanceof ListTemplatesRequest_1.ListTemplatesRequest) {
1259
- name = listTemplatesRequest.name;
1260
- page = listTemplatesRequest.page;
1261
- pageSize = listTemplatesRequest.pageSize;
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
- name = listTemplatesRequest['name'];
1265
- page = listTemplatesRequest['page'];
1266
- pageSize = listTemplatesRequest['page_size'];
2553
+ jobId = showJobBuildSuccessRatioRequest['job_id'];
2554
+ repositoryName = showJobBuildSuccessRatioRequest['repository_name'];
2555
+ interval = showJobBuildSuccessRatioRequest['interval'];
2556
+ branch = showJobBuildSuccessRatioRequest['branch'];
1267
2557
  }
1268
2558
  }
1269
- if (name !== null && name !== undefined) {
1270
- localVarQueryParameter['name'] = name;
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 (page !== null && page !== undefined) {
1273
- localVarQueryParameter['page'] = page;
2562
+ if (jobId !== null && jobId !== undefined) {
2563
+ localVarQueryParameter['job_id'] = jobId;
1274
2564
  }
1275
- if (pageSize !== null && pageSize !== undefined) {
1276
- localVarQueryParameter['page_size'] = pageSize;
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
- runJob(runJobRequest) {
1288
- const options = {
1289
- method: "POST",
1290
- url: "/v3/jobs/build",
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
- let body;
1299
- if (runJobRequest !== null && runJobRequest !== undefined) {
1300
- if (runJobRequest instanceof RunJobRequest_1.RunJobRequest) {
1301
- body = runJobRequest.body;
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
- body = runJobRequest['body'];
2612
+ jobId = showJobBuildTimeRequest['job_id'];
2613
+ repositoryName = showJobBuildTimeRequest['repository_name'];
2614
+ interval = showJobBuildTimeRequest['interval'];
2615
+ branch = showJobBuildTimeRequest['branch'];
1305
2616
  }
1306
2617
  }
1307
- if (body === null || body === undefined) {
1308
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
2618
+ if (jobId === null || jobId === undefined) {
2619
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobBuildTime.');
1309
2620
  }
1310
- localVarHeaderParameter['Content-Type'] = 'application/json';
1311
- options.data = body !== undefined ? body : {};
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
- showBuildRecordFullStages(showBuildRecordFullStagesRequest) {
2648
+ showJobConfig(showJobConfigRequest) {
1321
2649
  const options = {
1322
2650
  method: "GET",
1323
- url: "/v1/record/{record_id}/full-stages",
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 recordId;
1332
- let cascade;
1333
- if (showBuildRecordFullStagesRequest !== null && showBuildRecordFullStagesRequest !== undefined) {
1334
- if (showBuildRecordFullStagesRequest instanceof ShowBuildRecordFullStagesRequest_1.ShowBuildRecordFullStagesRequest) {
1335
- recordId = showBuildRecordFullStagesRequest.recordId;
1336
- cascade = showBuildRecordFullStagesRequest.cascade;
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
- recordId = showBuildRecordFullStagesRequest['record_id'];
1340
- cascade = showBuildRecordFullStagesRequest['cascade'];
2667
+ jobId = showJobConfigRequest['job_id'];
2668
+ getAllParams = showJobConfigRequest['get_all_params'];
1341
2669
  }
1342
2670
  }
1343
- if (recordId === null || recordId === undefined) {
1344
- throw new RequiredError('recordId', 'Required parameter recordId was null or undefined when calling showBuildRecordFullStages.');
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 (cascade !== null && cascade !== undefined) {
1347
- localVarQueryParameter['cascade'] = cascade;
2674
+ if (getAllParams !== null && getAllParams !== undefined) {
2675
+ localVarQueryParameter['get_all_params'] = getAllParams;
1348
2676
  }
1349
2677
  options.queryParams = localVarQueryParameter;
1350
- options.pathParams = { 'record_id': recordId, };
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
- showHistoryDetails(showHistoryDetailsRequest) {
2687
+ showJobConfigDiff(showJobConfigDiffRequest) {
1360
2688
  const options = {
1361
2689
  method: "GET",
1362
- url: "/v3/jobs/{job_id}/{build_number}/history-details",
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 buildNumber;
1371
- if (showHistoryDetailsRequest !== null && showHistoryDetailsRequest !== undefined) {
1372
- if (showHistoryDetailsRequest instanceof ShowHistoryDetailsRequest_1.ShowHistoryDetailsRequest) {
1373
- jobId = showHistoryDetailsRequest.jobId;
1374
- buildNumber = showHistoryDetailsRequest.buildNumber;
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 = showHistoryDetailsRequest['job_id'];
1378
- buildNumber = showHistoryDetailsRequest['build_number'];
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 showHistoryDetails.');
2714
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobConfigDiff.');
1383
2715
  }
1384
- if (buildNumber === null || buildNumber === undefined) {
1385
- throw new RequiredError('buildNumber', 'Required parameter buildNumber was null or undefined when calling showHistoryDetails.');
2716
+ if (revisedlNo === null || revisedlNo === undefined) {
2717
+ throw new RequiredError('revisedlNo', 'Required parameter revisedlNo was null or undefined when calling showJobConfigDiff.');
1386
2718
  }
1387
- options.pathParams = { 'job_id': jobId, 'build_number': buildNumber, };
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
- showJobBuildSuccessRatio(showJobBuildSuccessRatioRequest) {
2738
+ showJobInfo(showJobInfoRequest) {
1397
2739
  const options = {
1398
2740
  method: "GET",
1399
- url: "/v1/report/ratio",
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
- let repositoryName;
1409
- let interval;
1410
- let branch;
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 = showJobBuildSuccessRatioRequest['job_id'];
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 showJobBuildSuccessRatio.');
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.queryParams = localVarQueryParameter;
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
  *