@huaweicloud/huaweicloud-sdk-codeartsbuild 3.1.63 → 3.1.65

Sign up to get free protection for your applications and to get access to all the features.
Files changed (257) hide show
  1. package/package.json +2 -2
  2. package/v3/CodeArtsBuildClient.d.ts +430 -25
  3. package/v3/CodeArtsBuildClient.d.ts.map +1 -1
  4. package/v3/CodeArtsBuildClient.js +894 -78
  5. package/v3/CodeArtsBuildClient.js.map +1 -1
  6. package/v3/model/CreateBuildJobParameter.d.ts +9 -0
  7. package/v3/model/CreateBuildJobParameter.d.ts.map +1 -0
  8. package/v3/model/CreateBuildJobParameter.js +17 -0
  9. package/v3/model/CreateBuildJobParameter.js.map +1 -0
  10. package/v3/model/CreateBuildJobParameterParam.d.ts +11 -0
  11. package/v3/model/CreateBuildJobParameterParam.d.ts.map +1 -0
  12. package/v3/model/CreateBuildJobParameterParam.js +21 -0
  13. package/v3/model/CreateBuildJobParameterParam.js.map +1 -0
  14. package/v3/model/CreateBuildJobRequest.d.ts +7 -0
  15. package/v3/model/CreateBuildJobRequest.d.ts.map +1 -0
  16. package/v3/model/CreateBuildJobRequest.js +13 -0
  17. package/v3/model/CreateBuildJobRequest.js.map +1 -0
  18. package/v3/model/CreateBuildJobRequestBody.d.ts +37 -0
  19. package/v3/model/CreateBuildJobRequestBody.d.ts.map +1 -0
  20. package/v3/model/CreateBuildJobRequestBody.js +83 -0
  21. package/v3/model/CreateBuildJobRequestBody.js.map +1 -0
  22. package/v3/model/CreateBuildJobResponse.d.ts +12 -0
  23. package/v3/model/CreateBuildJobResponse.d.ts.map +1 -0
  24. package/v3/model/CreateBuildJobResponse.js +23 -0
  25. package/v3/model/CreateBuildJobResponse.js.map +1 -0
  26. package/v3/model/CreateBuildJobResponseBodyResult.d.ts +8 -0
  27. package/v3/model/CreateBuildJobResponseBodyResult.d.ts.map +1 -0
  28. package/v3/model/CreateBuildJobResponseBodyResult.js +19 -0
  29. package/v3/model/CreateBuildJobResponseBodyResult.js.map +1 -0
  30. package/v3/model/CreateBuildJobScm.d.ts +36 -0
  31. package/v3/model/CreateBuildJobScm.d.ts.map +1 -0
  32. package/v3/model/CreateBuildJobScm.js +87 -0
  33. package/v3/model/CreateBuildJobScm.js.map +1 -0
  34. package/v3/model/CreateBuildJobSteps.d.ts +20 -0
  35. package/v3/model/CreateBuildJobSteps.d.ts.map +1 -0
  36. package/v3/model/CreateBuildJobSteps.js +37 -0
  37. package/v3/model/CreateBuildJobSteps.js.map +1 -0
  38. package/v3/model/CreateTemplate.d.ts +7 -0
  39. package/v3/model/CreateTemplate.d.ts.map +1 -0
  40. package/v3/model/CreateTemplate.js +14 -0
  41. package/v3/model/CreateTemplate.js.map +1 -0
  42. package/v3/model/CreateTemplateSteps.d.ts +20 -0
  43. package/v3/model/CreateTemplateSteps.d.ts.map +1 -0
  44. package/v3/model/CreateTemplateSteps.js +36 -0
  45. package/v3/model/CreateTemplateSteps.js.map +1 -0
  46. package/v3/model/CreateTemplatesItems.d.ts +60 -0
  47. package/v3/model/CreateTemplatesItems.d.ts.map +1 -0
  48. package/v3/model/CreateTemplatesItems.js +133 -0
  49. package/v3/model/CreateTemplatesItems.js.map +1 -0
  50. package/v3/model/CreateTemplatesRequest.d.ts +7 -0
  51. package/v3/model/CreateTemplatesRequest.d.ts.map +1 -0
  52. package/v3/model/CreateTemplatesRequest.js +13 -0
  53. package/v3/model/CreateTemplatesRequest.js.map +1 -0
  54. package/v3/model/CreateTemplatesRequestBody.d.ts +18 -0
  55. package/v3/model/CreateTemplatesRequestBody.d.ts.map +1 -0
  56. package/v3/model/CreateTemplatesRequestBody.js +37 -0
  57. package/v3/model/CreateTemplatesRequestBody.js.map +1 -0
  58. package/v3/model/CreateTemplatesResponse.d.ts +12 -0
  59. package/v3/model/CreateTemplatesResponse.d.ts.map +1 -0
  60. package/v3/model/CreateTemplatesResponse.js +23 -0
  61. package/v3/model/CreateTemplatesResponse.js.map +1 -0
  62. package/v3/model/DeleteTemplatesRequest.d.ts +6 -0
  63. package/v3/model/DeleteTemplatesRequest.d.ts.map +1 -0
  64. package/v3/model/DeleteTemplatesRequest.js +14 -0
  65. package/v3/model/DeleteTemplatesRequest.js.map +1 -0
  66. package/v3/model/DeleteTemplatesResponse.d.ts +12 -0
  67. package/v3/model/DeleteTemplatesResponse.d.ts.map +1 -0
  68. package/v3/model/DeleteTemplatesResponse.js +23 -0
  69. package/v3/model/DeleteTemplatesResponse.js.map +1 -0
  70. package/v3/model/DisableNoticeRequest.d.ts +12 -0
  71. package/v3/model/DisableNoticeRequest.d.ts.map +1 -0
  72. package/v3/model/DisableNoticeRequest.js +31 -0
  73. package/v3/model/DisableNoticeRequest.js.map +1 -0
  74. package/v3/model/DisableNoticeResponse.d.ts +11 -0
  75. package/v3/model/DisableNoticeResponse.d.ts.map +1 -0
  76. package/v3/model/DisableNoticeResponse.js +23 -0
  77. package/v3/model/DisableNoticeResponse.js.map +1 -0
  78. package/v3/model/DownloadBuildLogRequest.d.ts +12 -0
  79. package/v3/model/DownloadBuildLogRequest.d.ts.map +1 -0
  80. package/v3/model/DownloadBuildLogRequest.js +30 -0
  81. package/v3/model/DownloadBuildLogRequest.js.map +1 -0
  82. package/v3/model/DownloadBuildLogResponse.d.ts +5 -0
  83. package/v3/model/DownloadBuildLogResponse.d.ts.map +1 -0
  84. package/v3/model/DownloadBuildLogResponse.js +11 -0
  85. package/v3/model/DownloadBuildLogResponse.js.map +1 -0
  86. package/v3/model/DownloadTaskLogRequest.d.ts +16 -0
  87. package/v3/model/DownloadTaskLogRequest.d.ts.map +1 -0
  88. package/v3/model/DownloadTaskLogRequest.js +41 -0
  89. package/v3/model/DownloadTaskLogRequest.js.map +1 -0
  90. package/v3/model/DownloadTaskLogResponse.d.ts +5 -0
  91. package/v3/model/DownloadTaskLogResponse.d.ts.map +1 -0
  92. package/v3/model/DownloadTaskLogResponse.js +11 -0
  93. package/v3/model/DownloadTaskLogResponse.js.map +1 -0
  94. package/v3/model/EnableBuildJobRequest.d.ts +8 -0
  95. package/v3/model/EnableBuildJobRequest.d.ts.map +1 -0
  96. package/v3/model/{ResumeBuildJobRequest.js → EnableBuildJobRequest.js} +4 -4
  97. package/v3/model/{ResumeBuildJobRequest.js.map → EnableBuildJobRequest.js.map} +1 -1
  98. package/v3/model/EnableBuildJobResponse.d.ts +7 -0
  99. package/v3/model/EnableBuildJobResponse.d.ts.map +1 -0
  100. package/v3/model/{ResumeBuildJobResponse.js → EnableBuildJobResponse.js} +4 -4
  101. package/v3/model/{ResumeBuildJobResponse.js.map → EnableBuildJobResponse.js.map} +1 -1
  102. package/v3/model/FlowGraphResult.d.ts +10 -0
  103. package/v3/model/FlowGraphResult.d.ts.map +1 -0
  104. package/v3/model/FlowGraphResult.js +17 -0
  105. package/v3/model/FlowGraphResult.js.map +1 -0
  106. package/v3/model/FlowGraphResultEdges.d.ts +8 -0
  107. package/v3/model/FlowGraphResultEdges.d.ts.map +1 -0
  108. package/v3/model/FlowGraphResultEdges.js +17 -0
  109. package/v3/model/FlowGraphResultEdges.js.map +1 -0
  110. package/v3/model/LimitsParam.d.ts +12 -0
  111. package/v3/model/LimitsParam.d.ts.map +1 -0
  112. package/v3/model/LimitsParam.js +27 -0
  113. package/v3/model/LimitsParam.js.map +1 -0
  114. package/v3/model/ListJobConfigRequest.d.ts +12 -0
  115. package/v3/model/ListJobConfigRequest.d.ts.map +1 -0
  116. package/v3/model/ListJobConfigRequest.js +30 -0
  117. package/v3/model/ListJobConfigRequest.js.map +1 -0
  118. package/v3/model/ListJobConfigResponse.d.ts +12 -0
  119. package/v3/model/ListJobConfigResponse.d.ts.map +1 -0
  120. package/v3/model/ListJobConfigResponse.js +23 -0
  121. package/v3/model/ListJobConfigResponse.js.map +1 -0
  122. package/v3/model/ListNoticeRequest.d.ts +8 -0
  123. package/v3/model/ListNoticeRequest.d.ts.map +1 -0
  124. package/v3/model/ListNoticeRequest.js +20 -0
  125. package/v3/model/ListNoticeRequest.js.map +1 -0
  126. package/v3/model/ListNoticeResponse.d.ts +12 -0
  127. package/v3/model/ListNoticeResponse.d.ts.map +1 -0
  128. package/v3/model/ListNoticeResponse.js +23 -0
  129. package/v3/model/ListNoticeResponse.js.map +1 -0
  130. package/v3/model/ListTemplatesRequest.d.ts +12 -0
  131. package/v3/model/ListTemplatesRequest.d.ts.map +1 -0
  132. package/v3/model/ListTemplatesRequest.js +27 -0
  133. package/v3/model/ListTemplatesRequest.js.map +1 -0
  134. package/v3/model/ListTemplatesResponse.d.ts +12 -0
  135. package/v3/model/ListTemplatesResponse.d.ts.map +1 -0
  136. package/v3/model/ListTemplatesResponse.js +23 -0
  137. package/v3/model/ListTemplatesResponse.js.map +1 -0
  138. package/v3/model/OutPutInfoResult.d.ts +29 -0
  139. package/v3/model/OutPutInfoResult.d.ts.map +1 -0
  140. package/v3/model/OutPutInfoResult.js +39 -0
  141. package/v3/model/OutPutInfoResult.js.map +1 -0
  142. package/v3/model/OutPutResult.d.ts +24 -0
  143. package/v3/model/OutPutResult.d.ts.map +1 -0
  144. package/v3/model/OutPutResult.js +55 -0
  145. package/v3/model/OutPutResult.js.map +1 -0
  146. package/v3/model/QueryJobNoticeItems.d.ts +22 -0
  147. package/v3/model/QueryJobNoticeItems.d.ts.map +1 -0
  148. package/v3/model/QueryJobNoticeItems.js +39 -0
  149. package/v3/model/QueryJobNoticeItems.js.map +1 -0
  150. package/v3/model/QueryTemplate.d.ts +7 -0
  151. package/v3/model/QueryTemplate.d.ts.map +1 -0
  152. package/v3/model/QueryTemplate.js +14 -0
  153. package/v3/model/QueryTemplate.js.map +1 -0
  154. package/v3/model/QueryTemplatesItems.d.ts +64 -0
  155. package/v3/model/QueryTemplatesItems.d.ts.map +1 -0
  156. package/v3/model/QueryTemplatesItems.js +143 -0
  157. package/v3/model/QueryTemplatesItems.js.map +1 -0
  158. package/v3/model/QueryTemplatesResult.d.ts +11 -0
  159. package/v3/model/QueryTemplatesResult.d.ts.map +1 -0
  160. package/v3/model/QueryTemplatesResult.js +23 -0
  161. package/v3/model/QueryTemplatesResult.js.map +1 -0
  162. package/v3/model/RecordInfo2Result.d.ts +122 -0
  163. package/v3/model/RecordInfo2Result.d.ts.map +1 -0
  164. package/v3/model/RecordInfo2Result.js +297 -0
  165. package/v3/model/RecordInfo2Result.js.map +1 -0
  166. package/v3/model/RecordInfoResult.d.ts +2 -0
  167. package/v3/model/RecordInfoResult.d.ts.map +1 -1
  168. package/v3/model/RecordInfoResult.js +4 -0
  169. package/v3/model/RecordInfoResult.js.map +1 -1
  170. package/v3/model/ShowFlowGraphRequest.d.ts +8 -0
  171. package/v3/model/ShowFlowGraphRequest.d.ts.map +1 -0
  172. package/v3/model/ShowFlowGraphRequest.js +20 -0
  173. package/v3/model/ShowFlowGraphRequest.js.map +1 -0
  174. package/v3/model/ShowFlowGraphResponse.d.ts +16 -0
  175. package/v3/model/ShowFlowGraphResponse.d.ts.map +1 -0
  176. package/v3/model/ShowFlowGraphResponse.js +33 -0
  177. package/v3/model/ShowFlowGraphResponse.js.map +1 -0
  178. package/v3/model/ShowOutputInfoRequest.d.ts +12 -0
  179. package/v3/model/ShowOutputInfoRequest.d.ts.map +1 -0
  180. package/v3/model/ShowOutputInfoRequest.js +31 -0
  181. package/v3/model/ShowOutputInfoRequest.js.map +1 -0
  182. package/v3/model/ShowOutputInfoResponse.d.ts +12 -0
  183. package/v3/model/ShowOutputInfoResponse.d.ts.map +1 -0
  184. package/v3/model/ShowOutputInfoResponse.js +23 -0
  185. package/v3/model/ShowOutputInfoResponse.js.map +1 -0
  186. package/v3/model/ShowRecordDetailRequest.d.ts +12 -0
  187. package/v3/model/ShowRecordDetailRequest.d.ts.map +1 -0
  188. package/v3/model/ShowRecordDetailRequest.js +31 -0
  189. package/v3/model/ShowRecordDetailRequest.js.map +1 -0
  190. package/v3/model/ShowRecordDetailResponse.d.ts +12 -0
  191. package/v3/model/ShowRecordDetailResponse.d.ts.map +1 -0
  192. package/v3/model/ShowRecordDetailResponse.js +23 -0
  193. package/v3/model/ShowRecordDetailResponse.js.map +1 -0
  194. package/v3/model/StopJobRequest.d.ts +7 -0
  195. package/v3/model/StopJobRequest.d.ts.map +1 -0
  196. package/v3/model/StopJobRequest.js +13 -0
  197. package/v3/model/StopJobRequest.js.map +1 -0
  198. package/v3/model/StopJobRequestBody.d.ts +12 -0
  199. package/v3/model/StopJobRequestBody.d.ts.map +1 -0
  200. package/v3/model/StopJobRequestBody.js +31 -0
  201. package/v3/model/StopJobRequestBody.js.map +1 -0
  202. package/v3/model/StopJobResponse.d.ts +7 -0
  203. package/v3/model/StopJobResponse.d.ts.map +1 -0
  204. package/v3/model/StopJobResponse.js +15 -0
  205. package/v3/model/StopJobResponse.js.map +1 -0
  206. package/v3/model/UpdateBuildJobParameter.d.ts +9 -0
  207. package/v3/model/UpdateBuildJobParameter.d.ts.map +1 -0
  208. package/v3/model/UpdateBuildJobParameter.js +17 -0
  209. package/v3/model/UpdateBuildJobParameter.js.map +1 -0
  210. package/v3/model/UpdateBuildJobParameterParam.d.ts +11 -0
  211. package/v3/model/UpdateBuildJobParameterParam.d.ts.map +1 -0
  212. package/v3/model/UpdateBuildJobParameterParam.js +21 -0
  213. package/v3/model/UpdateBuildJobParameterParam.js.map +1 -0
  214. package/v3/model/UpdateBuildJobRequest.d.ts +7 -0
  215. package/v3/model/UpdateBuildJobRequest.d.ts.map +1 -0
  216. package/v3/model/UpdateBuildJobRequest.js +13 -0
  217. package/v3/model/UpdateBuildJobRequest.js.map +1 -0
  218. package/v3/model/UpdateBuildJobRequestBody.d.ts +41 -0
  219. package/v3/model/UpdateBuildJobRequestBody.d.ts.map +1 -0
  220. package/v3/model/UpdateBuildJobRequestBody.js +94 -0
  221. package/v3/model/UpdateBuildJobRequestBody.js.map +1 -0
  222. package/v3/model/UpdateBuildJobResponse.d.ts +12 -0
  223. package/v3/model/UpdateBuildJobResponse.d.ts.map +1 -0
  224. package/v3/model/UpdateBuildJobResponse.js +23 -0
  225. package/v3/model/UpdateBuildJobResponse.js.map +1 -0
  226. package/v3/model/UpdateBuildJobScm.d.ts +36 -0
  227. package/v3/model/UpdateBuildJobScm.d.ts.map +1 -0
  228. package/v3/model/UpdateBuildJobScm.js +87 -0
  229. package/v3/model/UpdateBuildJobScm.js.map +1 -0
  230. package/v3/model/UpdateBuildJobSteps.d.ts +20 -0
  231. package/v3/model/UpdateBuildJobSteps.d.ts.map +1 -0
  232. package/v3/model/UpdateBuildJobSteps.js +37 -0
  233. package/v3/model/UpdateBuildJobSteps.js.map +1 -0
  234. package/v3/model/UpdateNoticeRequest.d.ts +11 -0
  235. package/v3/model/UpdateNoticeRequest.d.ts.map +1 -0
  236. package/v3/model/UpdateNoticeRequest.js +24 -0
  237. package/v3/model/UpdateNoticeRequest.js.map +1 -0
  238. package/v3/model/UpdateNoticeRequestBody.d.ts +16 -0
  239. package/v3/model/UpdateNoticeRequestBody.d.ts.map +1 -0
  240. package/v3/model/UpdateNoticeRequestBody.js +41 -0
  241. package/v3/model/UpdateNoticeRequestBody.js.map +1 -0
  242. package/v3/model/UpdateNoticeResponse.d.ts +11 -0
  243. package/v3/model/UpdateNoticeResponse.d.ts.map +1 -0
  244. package/v3/model/UpdateNoticeResponse.js +23 -0
  245. package/v3/model/UpdateNoticeResponse.js.map +1 -0
  246. package/v3/model/Vertices.d.ts +28 -0
  247. package/v3/model/Vertices.d.ts.map +1 -0
  248. package/v3/model/Vertices.js +67 -0
  249. package/v3/model/Vertices.js.map +1 -0
  250. package/v3/public-api.d.ts +60 -2
  251. package/v3/public-api.d.ts.map +1 -1
  252. package/v3/public-api.js +60 -2
  253. package/v3/public-api.js.map +1 -1
  254. package/v3/model/ResumeBuildJobRequest.d.ts +0 -8
  255. package/v3/model/ResumeBuildJobRequest.d.ts.map +0 -1
  256. package/v3/model/ResumeBuildJobResponse.d.ts +0 -7
  257. package/v3/model/ResumeBuildJobResponse.d.ts.map +0 -1
@@ -2,12 +2,22 @@
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 CreateBuildJobRequest_1 = require("./model/CreateBuildJobRequest");
6
+ const CreateTemplatesRequest_1 = require("./model/CreateTemplatesRequest");
5
7
  const DeleteBuildJobRequest_1 = require("./model/DeleteBuildJobRequest");
8
+ const DeleteTemplatesRequest_1 = require("./model/DeleteTemplatesRequest");
6
9
  const DisableBuildJobRequest_1 = require("./model/DisableBuildJobRequest");
10
+ const DisableNoticeRequest_1 = require("./model/DisableNoticeRequest");
11
+ const DownloadBuildLogRequest_1 = require("./model/DownloadBuildLogRequest");
7
12
  const DownloadKeystoreRequest_1 = require("./model/DownloadKeystoreRequest");
8
13
  const DownloadLogByRecordIdRequest_1 = require("./model/DownloadLogByRecordIdRequest");
9
- const ResumeBuildJobRequest_1 = require("./model/ResumeBuildJobRequest");
14
+ const DownloadTaskLogRequest_1 = require("./model/DownloadTaskLogRequest");
15
+ const EnableBuildJobRequest_1 = require("./model/EnableBuildJobRequest");
16
+ const ListJobConfigRequest_1 = require("./model/ListJobConfigRequest");
17
+ const ListNoticeRequest_1 = require("./model/ListNoticeRequest");
18
+ const ListTemplatesRequest_1 = require("./model/ListTemplatesRequest");
10
19
  const RunJobRequest_1 = require("./model/RunJobRequest");
20
+ const ShowFlowGraphRequest_1 = require("./model/ShowFlowGraphRequest");
11
21
  const ShowHistoryDetailsRequest_1 = require("./model/ShowHistoryDetailsRequest");
12
22
  const ShowJobListByProjectIdRequest_1 = require("./model/ShowJobListByProjectIdRequest");
13
23
  const ShowJobStatusRequest_1 = require("./model/ShowJobStatusRequest");
@@ -15,8 +25,13 @@ const ShowJobSuccessRatioRequest_1 = require("./model/ShowJobSuccessRatioRequest
15
25
  const ShowLastHistoryRequest_1 = require("./model/ShowLastHistoryRequest");
16
26
  const ShowListHistoryRequest_1 = require("./model/ShowListHistoryRequest");
17
27
  const ShowListPeriodHistoryRequest_1 = require("./model/ShowListPeriodHistoryRequest");
28
+ const ShowOutputInfoRequest_1 = require("./model/ShowOutputInfoRequest");
29
+ const ShowRecordDetailRequest_1 = require("./model/ShowRecordDetailRequest");
18
30
  const ShowRecordInfoRequest_1 = require("./model/ShowRecordInfoRequest");
19
31
  const StopBuildJobRequest_1 = require("./model/StopBuildJobRequest");
32
+ const StopJobRequest_1 = require("./model/StopJobRequest");
33
+ const UpdateBuildJobRequest_1 = require("./model/UpdateBuildJobRequest");
34
+ const UpdateNoticeRequest_1 = require("./model/UpdateNoticeRequest");
20
35
  class CodeArtsBuildClient {
21
36
  static newBuilder() {
22
37
  return new ClientBuilder_1.ClientBuilder(newClient);
@@ -27,13 +42,45 @@ class CodeArtsBuildClient {
27
42
  getPath() {
28
43
  return __dirname;
29
44
  }
45
+ /**
46
+ * 创建构建任务
47
+ *
48
+ * Please refer to HUAWEI cloud API Explorer for details.
49
+ *
50
+ * @summary 创建构建任务
51
+ * @param {CreateBuildJobRequestBody} createBuildJobRequestBody body
52
+ * @param {*} [options] Override http request option.
53
+ * @throws {RequiredError}
54
+ */
55
+ createBuildJob(createBuildJobRequest) {
56
+ const options = (0, exports.ParamCreater)().createBuildJob(createBuildJobRequest);
57
+ // @ts-ignore
58
+ options['responseHeaders'] = [''];
59
+ return this.hcClient.sendRequest(options);
60
+ }
61
+ /**
62
+ * 创建构建模板
63
+ *
64
+ * Please refer to HUAWEI cloud API Explorer for details.
65
+ *
66
+ * @summary 创建构建模板
67
+ * @param {CreateTemplatesRequestBody} createTemplatesRequestBody body
68
+ * @param {*} [options] Override http request option.
69
+ * @throws {RequiredError}
70
+ */
71
+ createTemplates(createTemplatesRequest) {
72
+ const options = (0, exports.ParamCreater)().createTemplates(createTemplatesRequest);
73
+ // @ts-ignore
74
+ options['responseHeaders'] = [''];
75
+ return this.hcClient.sendRequest(options);
76
+ }
30
77
  /**
31
78
  * 删除构建任务
32
79
  *
33
80
  * Please refer to HUAWEI cloud API Explorer for details.
34
81
  *
35
82
  * @summary 删除构建任务
36
- * @param {string} jobId 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
83
+ * @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
37
84
  * @param {*} [options] Override http request option.
38
85
  * @throws {RequiredError}
39
86
  */
@@ -43,13 +90,29 @@ class CodeArtsBuildClient {
43
90
  options['responseHeaders'] = [''];
44
91
  return this.hcClient.sendRequest(options);
45
92
  }
93
+ /**
94
+ * 删除构建模板
95
+ *
96
+ * Please refer to HUAWEI cloud API Explorer for details.
97
+ *
98
+ * @summary 删除构建模板
99
+ * @param {string} uuid uuid
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ deleteTemplates(deleteTemplatesRequest) {
104
+ const options = (0, exports.ParamCreater)().deleteTemplates(deleteTemplatesRequest);
105
+ // @ts-ignore
106
+ options['responseHeaders'] = [''];
107
+ return this.hcClient.sendRequest(options);
108
+ }
46
109
  /**
47
110
  * 禁用构建任务
48
111
  *
49
112
  * Please refer to HUAWEI cloud API Explorer for details.
50
113
  *
51
114
  * @summary 禁用构建任务
52
- * @param {string} jobId 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
115
+ * @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
53
116
  * @param {*} [options] Override http request option.
54
117
  * @throws {RequiredError}
55
118
  */
@@ -59,6 +122,40 @@ class CodeArtsBuildClient {
59
122
  options['responseHeaders'] = [''];
60
123
  return this.hcClient.sendRequest(options);
61
124
  }
125
+ /**
126
+ * 取消通知
127
+ *
128
+ * Please refer to HUAWEI cloud API Explorer for details.
129
+ *
130
+ * @summary 取消通知
131
+ * @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
132
+ * @param {string} noticeType 通知的类型,分为消息,邮件和钉钉
133
+ * @param {*} [options] Override http request option.
134
+ * @throws {RequiredError}
135
+ */
136
+ disableNotice(disableNoticeRequest) {
137
+ const options = (0, exports.ParamCreater)().disableNotice(disableNoticeRequest);
138
+ // @ts-ignore
139
+ options['responseHeaders'] = [''];
140
+ return this.hcClient.sendRequest(options);
141
+ }
142
+ /**
143
+ * 下载全量构建日志
144
+ *
145
+ * Please refer to HUAWEI cloud API Explorer for details.
146
+ *
147
+ * @summary 下载全量构建日志
148
+ * @param {string} recordId 记录ID,36位数字、小写字母、\'-\'组组合。
149
+ * @param {string} [logLevel] 日志等级 值为INFO | DEBUG。
150
+ * @param {*} [options] Override http request option.
151
+ * @throws {RequiredError}
152
+ */
153
+ downloadBuildLog(downloadBuildLogRequest) {
154
+ const options = (0, exports.ParamCreater)().downloadBuildLog(downloadBuildLogRequest);
155
+ // @ts-ignore
156
+ options['responseHeaders'] = [''];
157
+ return this.hcClient.sendRequest(options);
158
+ }
62
159
  /**
63
160
  * 下载指定租户下的KeyStore文件
64
161
  *
@@ -77,17 +174,19 @@ class CodeArtsBuildClient {
77
174
  return this.hcClient.sendRequest(options);
78
175
  }
79
176
  /**
80
- * 下载构建日志
177
+ * 下载全量构建步骤日志
81
178
  *
82
179
  * Please refer to HUAWEI cloud API Explorer for details.
83
180
  *
84
- * @summary 下载构建日志
181
+ * @summary 下载全量构建步骤日志
85
182
  * @param {string} recordId 记录ID,36位数字、小写字母、\'-\'组组合。
183
+ * @param {string} taskName 记录ID,36位数字、小写字母、\'-\'组组合。
184
+ * @param {string} [logLevel] 日志等级 值为INFO | DEBUG。
86
185
  * @param {*} [options] Override http request option.
87
186
  * @throws {RequiredError}
88
187
  */
89
- downloadLogByRecordId(downloadLogByRecordIdRequest) {
90
- const options = (0, exports.ParamCreater)().downloadLogByRecordId(downloadLogByRecordIdRequest);
188
+ downloadTaskLog(downloadTaskLogRequest) {
189
+ const options = (0, exports.ParamCreater)().downloadTaskLog(downloadTaskLogRequest);
91
190
  // @ts-ignore
92
191
  options['responseHeaders'] = [''];
93
192
  return this.hcClient.sendRequest(options);
@@ -98,18 +197,69 @@ class CodeArtsBuildClient {
98
197
  * Please refer to HUAWEI cloud API Explorer for details.
99
198
  *
100
199
  * @summary 恢复构建任务
101
- * @param {string} jobId 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
200
+ * @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
201
+ * @param {*} [options] Override http request option.
202
+ * @throws {RequiredError}
203
+ */
204
+ enableBuildJob(enableBuildJobRequest) {
205
+ const options = (0, exports.ParamCreater)().enableBuildJob(enableBuildJobRequest);
206
+ // @ts-ignore
207
+ options['responseHeaders'] = [''];
208
+ return this.hcClient.sendRequest(options);
209
+ }
210
+ /**
211
+ * 获取构建任务详情
212
+ *
213
+ * Please refer to HUAWEI cloud API Explorer for details.
214
+ *
215
+ * @summary 获取构建任务详情
216
+ * @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
217
+ * @param {string} [getAllParams] 输入\"true\"或者\"false\"来控制返回参数是不是完整的
218
+ * @param {*} [options] Override http request option.
219
+ * @throws {RequiredError}
220
+ */
221
+ listJobConfig(listJobConfigRequest) {
222
+ const options = (0, exports.ParamCreater)().listJobConfig(listJobConfigRequest);
223
+ // @ts-ignore
224
+ options['responseHeaders'] = [''];
225
+ return this.hcClient.sendRequest(options);
226
+ }
227
+ /**
228
+ * 查询通知
229
+ *
230
+ * Please refer to HUAWEI cloud API Explorer for details.
231
+ *
232
+ * @summary 查询通知
233
+ * @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
102
234
  * @param {*} [options] Override http request option.
103
235
  * @throws {RequiredError}
104
236
  */
105
- resumeBuildJob(resumeBuildJobRequest) {
106
- const options = (0, exports.ParamCreater)().resumeBuildJob(resumeBuildJobRequest);
237
+ listNotice(listNoticeRequest) {
238
+ const options = (0, exports.ParamCreater)().listNotice(listNoticeRequest);
107
239
  // @ts-ignore
108
240
  options['responseHeaders'] = [''];
109
241
  return this.hcClient.sendRequest(options);
110
242
  }
111
243
  /**
112
- * 执行构建任务,可传自定义参数。
244
+ * 查询构建模板
245
+ *
246
+ * Please refer to HUAWEI cloud API Explorer for details.
247
+ *
248
+ * @summary 查询构建模板
249
+ * @param {string} [name] 检索的模板的名字模糊查询
250
+ * @param {string} [page] 分页页码, 表示从此页开始查询
251
+ * @param {string} [pageSize] 每页显示的条目数量,page_size小于等于100
252
+ * @param {*} [options] Override http request option.
253
+ * @throws {RequiredError}
254
+ */
255
+ listTemplates(listTemplatesRequest) {
256
+ const options = (0, exports.ParamCreater)().listTemplates(listTemplatesRequest);
257
+ // @ts-ignore
258
+ options['responseHeaders'] = [''];
259
+ return this.hcClient.sendRequest(options);
260
+ }
261
+ /**
262
+ * 执行构建任务,可传自定义参数
113
263
  *
114
264
  * Please refer to HUAWEI cloud API Explorer for details.
115
265
  *
@@ -130,7 +280,7 @@ class CodeArtsBuildClient {
130
280
  * Please refer to HUAWEI cloud API Explorer for details.
131
281
  *
132
282
  * @summary 获取构建历史详情信息接口
133
- * @param {string} jobId 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
283
+ * @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
134
284
  * @param {number} buildNumber 构建任务的构建编号,从1开始,每次构建递增1
135
285
  * @param {*} [options] Override http request option.
136
286
  * @throws {RequiredError}
@@ -147,7 +297,7 @@ class CodeArtsBuildClient {
147
297
  * Please refer to HUAWEI cloud API Explorer for details.
148
298
  *
149
299
  * @summary 查看项目下用户的构建任务列表
150
- * @param {string} projectId CodeArts项目ID,32位数字、小写字母组合。[查询项目列表](https://support.huaweicloud.com/api-projectman/ListProjectsV4.html)
300
+ * @param {string} projectId CodeArts项目ID,32位数字、小写字母组合。
151
301
  * @param {number} pageIndex 分页页码, 表示从此页开始查询, page_index大于等于0
152
302
  * @param {number} pageSize 每页显示的条目数量,page_size小于等于100
153
303
  * @param {*} [options] Override http request option.
@@ -165,7 +315,7 @@ class CodeArtsBuildClient {
165
315
  * Please refer to HUAWEI cloud API Explorer for details.
166
316
  *
167
317
  * @summary 查看任务运行状态
168
- * @param {string} jobId 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
318
+ * @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
169
319
  * @param {*} [options] Override http request option.
170
320
  * @throws {RequiredError}
171
321
  */
@@ -181,7 +331,7 @@ class CodeArtsBuildClient {
181
331
  * Please refer to HUAWEI cloud API Explorer for details.
182
332
  *
183
333
  * @summary 根据开始时间和结束时间查看构建任务的构建成功率
184
- * @param {string} jobId 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
334
+ * @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
185
335
  * @param {string} startTime 区间开始时间,格式yyyy-MM-dd。
186
336
  * @param {string} endTime 区间结束时间,格式yyyy-MM-dd。
187
337
  * @param {*} [options] Override http request option.
@@ -199,7 +349,7 @@ class CodeArtsBuildClient {
199
349
  * Please refer to HUAWEI cloud API Explorer for details.
200
350
  *
201
351
  * @summary 查询指定代码仓库最近一次成功的构建历史
202
- * @param {string} projectId CodeArts项目ID,32位数字、小写字母组合。[查询项目列表](https://support.huaweicloud.com/api-projectman/ListProjectsV4.html)
352
+ * @param {string} projectId CodeArts项目ID,32位数字、小写字母组合。
203
353
  * @param {string} repositoryName 代码仓库名,不支持中文
204
354
  * @param {*} [options] Override http request option.
205
355
  * @throws {RequiredError}
@@ -216,7 +366,7 @@ class CodeArtsBuildClient {
216
366
  * Please refer to HUAWEI cloud API Explorer for details.
217
367
  *
218
368
  * @summary 查看构建任务的构建历史列表
219
- * @param {string} jobId 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
369
+ * @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
220
370
  * @param {number} offset 分页页码, 表示从此页开始查询, offset大于等于0
221
371
  * @param {number} limit 每页显示的条目数量,limit小于等于100
222
372
  * @param {number} interval 距今天的时间区间(单位:天),interval小于等于30
@@ -235,7 +385,7 @@ class CodeArtsBuildClient {
235
385
  * Please refer to HUAWEI cloud API Explorer for details.
236
386
  *
237
387
  * @summary 根据开始时间和结束时间查看构建任务的构建历史列表
238
- * @param {string} jobId 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
388
+ * @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
239
389
  * @param {number} offset 分页页码, 表示从此页开始查询, offset大于等于0
240
390
  * @param {number} limit 每页显示的条目数量,limit小于等于100
241
391
  * @param {string} startTime 区间开始时间,格式yyyy-MM-dd。 开始时间和结束时间间隔不能超过30天
@@ -249,19 +399,36 @@ class CodeArtsBuildClient {
249
399
  options['responseHeaders'] = [''];
250
400
  return this.hcClient.sendRequest(options);
251
401
  }
402
+ /**
403
+ * 获取构建产物详情信息
404
+ *
405
+ * Please refer to HUAWEI cloud API Explorer for details.
406
+ *
407
+ * @summary 获取构建产物详情信息
408
+ * @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
409
+ * @param {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
410
+ * @param {*} [options] Override http request option.
411
+ * @throws {RequiredError}
412
+ */
413
+ showOutputInfo(showOutputInfoRequest) {
414
+ const options = (0, exports.ParamCreater)().showOutputInfo(showOutputInfoRequest);
415
+ // @ts-ignore
416
+ options['responseHeaders'] = [''];
417
+ return this.hcClient.sendRequest(options);
418
+ }
252
419
  /**
253
420
  * 获取构建记录信息
254
421
  *
255
422
  * Please refer to HUAWEI cloud API Explorer for details.
256
423
  *
257
424
  * @summary 获取构建记录信息
258
- * @param {string} jobId 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
425
+ * @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
259
426
  * @param {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
260
427
  * @param {*} [options] Override http request option.
261
428
  * @throws {RequiredError}
262
429
  */
263
- showRecordInfo(showRecordInfoRequest) {
264
- const options = (0, exports.ParamCreater)().showRecordInfo(showRecordInfoRequest);
430
+ showRecordDetail(showRecordDetailRequest) {
431
+ const options = (0, exports.ParamCreater)().showRecordDetail(showRecordDetailRequest);
265
432
  // @ts-ignore
266
433
  options['responseHeaders'] = [''];
267
434
  return this.hcClient.sendRequest(options);
@@ -272,7 +439,7 @@ class CodeArtsBuildClient {
272
439
  * Please refer to HUAWEI cloud API Explorer for details.
273
440
  *
274
441
  * @summary 停止构建任务
275
- * @param {string} jobId 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
442
+ * @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
276
443
  * @param {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
277
444
  * @param {*} [options] Override http request option.
278
445
  * @throws {RequiredError}
@@ -283,10 +450,174 @@ class CodeArtsBuildClient {
283
450
  options['responseHeaders'] = [''];
284
451
  return this.hcClient.sendRequest(options);
285
452
  }
453
+ /**
454
+ * 更新构建任务
455
+ *
456
+ * Please refer to HUAWEI cloud API Explorer for details.
457
+ *
458
+ * @summary 更新构建任务
459
+ * @param {UpdateBuildJobRequestBody} updateBuildJobRequestBody body
460
+ * @param {*} [options] Override http request option.
461
+ * @throws {RequiredError}
462
+ */
463
+ updateBuildJob(updateBuildJobRequest) {
464
+ const options = (0, exports.ParamCreater)().updateBuildJob(updateBuildJobRequest);
465
+ // @ts-ignore
466
+ options['responseHeaders'] = [''];
467
+ return this.hcClient.sendRequest(options);
468
+ }
469
+ /**
470
+ * 更新通知
471
+ *
472
+ * Please refer to HUAWEI cloud API Explorer for details.
473
+ *
474
+ * @summary 更新通知
475
+ * @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
476
+ * @param {UpdateNoticeRequestBody} updateNoticeRequestBody body
477
+ * @param {*} [options] Override http request option.
478
+ * @throws {RequiredError}
479
+ */
480
+ updateNotice(updateNoticeRequest) {
481
+ const options = (0, exports.ParamCreater)().updateNotice(updateNoticeRequest);
482
+ // @ts-ignore
483
+ options['responseHeaders'] = [''];
484
+ return this.hcClient.sendRequest(options);
485
+ }
486
+ /**
487
+ * 下载构建日志(待下线)
488
+ *
489
+ * Please refer to HUAWEI cloud API Explorer for details.
490
+ *
491
+ * @summary 下载构建日志(待下线)
492
+ * @param {string} recordId 记录ID,36位数字、小写字母、\'-\'组组合。
493
+ * @param {*} [options] Override http request option.
494
+ * @throws {RequiredError}
495
+ */
496
+ downloadLogByRecordId(downloadLogByRecordIdRequest) {
497
+ const options = (0, exports.ParamCreater)().downloadLogByRecordId(downloadLogByRecordIdRequest);
498
+ // @ts-ignore
499
+ options['responseHeaders'] = [''];
500
+ return this.hcClient.sendRequest(options);
501
+ }
502
+ /**
503
+ * 获取构建记录的有向无环图(待下线)
504
+ *
505
+ * Please refer to HUAWEI cloud API Explorer for details.
506
+ *
507
+ * @summary 获取构建记录的有向无环图(待下线)
508
+ * @param {string} buildFlowRecordId 父任务构建记录ID
509
+ * @param {*} [options] Override http request option.
510
+ * @throws {RequiredError}
511
+ */
512
+ showFlowGraph(showFlowGraphRequest) {
513
+ const options = (0, exports.ParamCreater)().showFlowGraph(showFlowGraphRequest);
514
+ // @ts-ignore
515
+ options['responseHeaders'] = [''];
516
+ return this.hcClient.sendRequest(options);
517
+ }
518
+ /**
519
+ * 获取构建记录信息(待下线)
520
+ *
521
+ * Please refer to HUAWEI cloud API Explorer for details.
522
+ *
523
+ * @summary 获取构建记录信息(待下线)
524
+ * @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
525
+ * @param {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
526
+ * @param {*} [options] Override http request option.
527
+ * @throws {RequiredError}
528
+ */
529
+ showRecordInfo(showRecordInfoRequest) {
530
+ const options = (0, exports.ParamCreater)().showRecordInfo(showRecordInfoRequest);
531
+ // @ts-ignore
532
+ options['responseHeaders'] = [''];
533
+ return this.hcClient.sendRequest(options);
534
+ }
535
+ /**
536
+ * 停止构建任务(待下线)
537
+ *
538
+ * Please refer to HUAWEI cloud API Explorer for details.
539
+ *
540
+ * @summary 停止构建任务(待下线)
541
+ * @param {StopJobRequestBody} stopJobRequestBody body
542
+ * @param {*} [options] Override http request option.
543
+ * @throws {RequiredError}
544
+ */
545
+ stopJob(stopJobRequest) {
546
+ const options = (0, exports.ParamCreater)().stopJob(stopJobRequest);
547
+ // @ts-ignore
548
+ options['responseHeaders'] = [''];
549
+ return this.hcClient.sendRequest(options);
550
+ }
286
551
  }
287
552
  exports.CodeArtsBuildClient = CodeArtsBuildClient;
288
553
  const ParamCreater = function () {
289
554
  return {
555
+ /**
556
+ * 创建构建任务
557
+ *
558
+ * Please refer to HUAWEI cloud API Explorer for details.
559
+ */
560
+ createBuildJob(createBuildJobRequest) {
561
+ const options = {
562
+ method: "POST",
563
+ url: "/v3/jobs/create",
564
+ contentType: "application/json",
565
+ queryParams: {},
566
+ pathParams: {},
567
+ headers: {},
568
+ data: {}
569
+ };
570
+ const localVarHeaderParameter = {};
571
+ let body;
572
+ if (createBuildJobRequest !== null && createBuildJobRequest !== undefined) {
573
+ if (createBuildJobRequest instanceof CreateBuildJobRequest_1.CreateBuildJobRequest) {
574
+ body = createBuildJobRequest.body;
575
+ }
576
+ else {
577
+ body = createBuildJobRequest['body'];
578
+ }
579
+ }
580
+ if (body === null || body === undefined) {
581
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
582
+ }
583
+ localVarHeaderParameter['Content-Type'] = 'application/json';
584
+ options.data = body !== undefined ? body : {};
585
+ options.headers = localVarHeaderParameter;
586
+ return options;
587
+ },
588
+ /**
589
+ * 创建构建模板
590
+ *
591
+ * Please refer to HUAWEI cloud API Explorer for details.
592
+ */
593
+ createTemplates(createTemplatesRequest) {
594
+ const options = {
595
+ method: "POST",
596
+ url: "/v3/templates/create",
597
+ contentType: "application/json",
598
+ queryParams: {},
599
+ pathParams: {},
600
+ headers: {},
601
+ data: {}
602
+ };
603
+ const localVarHeaderParameter = {};
604
+ let body;
605
+ if (createTemplatesRequest !== null && createTemplatesRequest !== undefined) {
606
+ if (createTemplatesRequest instanceof CreateTemplatesRequest_1.CreateTemplatesRequest) {
607
+ body = createTemplatesRequest.body;
608
+ }
609
+ else {
610
+ body = createTemplatesRequest['body'];
611
+ }
612
+ }
613
+ if (body === null || body === undefined) {
614
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
615
+ }
616
+ localVarHeaderParameter['Content-Type'] = 'application/json';
617
+ options.data = body !== undefined ? body : {};
618
+ options.headers = localVarHeaderParameter;
619
+ return options;
620
+ },
290
621
  /**
291
622
  * 删除构建任务
292
623
  *
@@ -318,6 +649,37 @@ const ParamCreater = function () {
318
649
  options.headers = localVarHeaderParameter;
319
650
  return options;
320
651
  },
652
+ /**
653
+ * 删除构建模板
654
+ *
655
+ * Please refer to HUAWEI cloud API Explorer for details.
656
+ */
657
+ deleteTemplates(deleteTemplatesRequest) {
658
+ const options = {
659
+ method: "DELETE",
660
+ url: "/v3/templates/{uuid}/delete",
661
+ contentType: "application/json",
662
+ queryParams: {},
663
+ pathParams: {},
664
+ headers: {}
665
+ };
666
+ const localVarHeaderParameter = {};
667
+ let uuid;
668
+ if (deleteTemplatesRequest !== null && deleteTemplatesRequest !== undefined) {
669
+ if (deleteTemplatesRequest instanceof DeleteTemplatesRequest_1.DeleteTemplatesRequest) {
670
+ uuid = deleteTemplatesRequest.uuid;
671
+ }
672
+ else {
673
+ uuid = deleteTemplatesRequest['uuid'];
674
+ }
675
+ }
676
+ if (uuid === null || uuid === undefined) {
677
+ throw new RequiredError('uuid', 'Required parameter uuid was null or undefined when calling deleteTemplates.');
678
+ }
679
+ options.pathParams = { 'uuid': uuid, };
680
+ options.headers = localVarHeaderParameter;
681
+ return options;
682
+ },
321
683
  /**
322
684
  * 禁用构建任务
323
685
  *
@@ -343,21 +705,225 @@ const ParamCreater = function () {
343
705
  }
344
706
  }
345
707
  if (jobId === null || jobId === undefined) {
346
- throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling disableBuildJob.');
708
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling disableBuildJob.');
709
+ }
710
+ options.pathParams = { 'job_id': jobId, };
711
+ options.headers = localVarHeaderParameter;
712
+ return options;
713
+ },
714
+ /**
715
+ * 取消通知
716
+ *
717
+ * Please refer to HUAWEI cloud API Explorer for details.
718
+ */
719
+ disableNotice(disableNoticeRequest) {
720
+ const options = {
721
+ method: "POST",
722
+ url: "/v3/jobs/notice/{job_id}/disable",
723
+ contentType: "application/json",
724
+ queryParams: {},
725
+ pathParams: {},
726
+ headers: {}
727
+ };
728
+ const localVarHeaderParameter = {};
729
+ const localVarQueryParameter = {};
730
+ let jobId;
731
+ let noticeType;
732
+ if (disableNoticeRequest !== null && disableNoticeRequest !== undefined) {
733
+ if (disableNoticeRequest instanceof DisableNoticeRequest_1.DisableNoticeRequest) {
734
+ jobId = disableNoticeRequest.jobId;
735
+ noticeType = disableNoticeRequest.noticeType;
736
+ }
737
+ else {
738
+ jobId = disableNoticeRequest['job_id'];
739
+ noticeType = disableNoticeRequest['notice_type'];
740
+ }
741
+ }
742
+ if (jobId === null || jobId === undefined) {
743
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling disableNotice.');
744
+ }
745
+ if (noticeType === null || noticeType === undefined) {
746
+ throw new RequiredError('noticeType', 'Required parameter noticeType was null or undefined when calling disableNotice.');
747
+ }
748
+ if (noticeType !== null && noticeType !== undefined) {
749
+ localVarQueryParameter['notice_type'] = noticeType;
750
+ }
751
+ options.queryParams = localVarQueryParameter;
752
+ options.pathParams = { 'job_id': jobId, };
753
+ options.headers = localVarHeaderParameter;
754
+ return options;
755
+ },
756
+ /**
757
+ * 下载全量构建日志
758
+ *
759
+ * Please refer to HUAWEI cloud API Explorer for details.
760
+ */
761
+ downloadBuildLog(downloadBuildLogRequest) {
762
+ const options = {
763
+ method: "GET",
764
+ url: "/v4/{record_id}/download-log",
765
+ contentType: "application/json",
766
+ queryParams: {},
767
+ pathParams: {},
768
+ headers: {}
769
+ };
770
+ const localVarHeaderParameter = {};
771
+ const localVarQueryParameter = {};
772
+ let recordId;
773
+ let logLevel;
774
+ if (downloadBuildLogRequest !== null && downloadBuildLogRequest !== undefined) {
775
+ if (downloadBuildLogRequest instanceof DownloadBuildLogRequest_1.DownloadBuildLogRequest) {
776
+ recordId = downloadBuildLogRequest.recordId;
777
+ logLevel = downloadBuildLogRequest.logLevel;
778
+ }
779
+ else {
780
+ recordId = downloadBuildLogRequest['record_id'];
781
+ logLevel = downloadBuildLogRequest['log_level'];
782
+ }
783
+ }
784
+ if (recordId === null || recordId === undefined) {
785
+ throw new RequiredError('recordId', 'Required parameter recordId was null or undefined when calling downloadBuildLog.');
786
+ }
787
+ if (logLevel !== null && logLevel !== undefined) {
788
+ localVarQueryParameter['log_level'] = logLevel;
789
+ }
790
+ options.queryParams = localVarQueryParameter;
791
+ options.pathParams = { 'record_id': recordId, };
792
+ options.headers = localVarHeaderParameter;
793
+ return options;
794
+ },
795
+ /**
796
+ * 下载指定租户下的KeyStore文件
797
+ *
798
+ * Please refer to HUAWEI cloud API Explorer for details.
799
+ */
800
+ downloadKeystore(downloadKeystoreRequest) {
801
+ const options = {
802
+ method: "GET",
803
+ url: "/v3/keystore",
804
+ contentType: "application/json",
805
+ queryParams: {},
806
+ pathParams: {},
807
+ headers: {}
808
+ };
809
+ const localVarHeaderParameter = {};
810
+ const localVarQueryParameter = {};
811
+ let fileName;
812
+ let domainId;
813
+ if (downloadKeystoreRequest !== null && downloadKeystoreRequest !== undefined) {
814
+ if (downloadKeystoreRequest instanceof DownloadKeystoreRequest_1.DownloadKeystoreRequest) {
815
+ fileName = downloadKeystoreRequest.fileName;
816
+ domainId = downloadKeystoreRequest.domainId;
817
+ }
818
+ else {
819
+ fileName = downloadKeystoreRequest['file_name'];
820
+ domainId = downloadKeystoreRequest['domain_id'];
821
+ }
822
+ }
823
+ if (fileName === null || fileName === undefined) {
824
+ throw new RequiredError('fileName', 'Required parameter fileName was null or undefined when calling downloadKeystore.');
825
+ }
826
+ if (fileName !== null && fileName !== undefined) {
827
+ localVarQueryParameter['file_name'] = fileName;
828
+ }
829
+ if (domainId === null || domainId === undefined) {
830
+ throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling downloadKeystore.');
831
+ }
832
+ if (domainId !== null && domainId !== undefined) {
833
+ localVarQueryParameter['domain_id'] = domainId;
834
+ }
835
+ options.queryParams = localVarQueryParameter;
836
+ options.headers = localVarHeaderParameter;
837
+ return options;
838
+ },
839
+ /**
840
+ * 下载全量构建步骤日志
841
+ *
842
+ * Please refer to HUAWEI cloud API Explorer for details.
843
+ */
844
+ downloadTaskLog(downloadTaskLogRequest) {
845
+ const options = {
846
+ method: "GET",
847
+ url: "/v4/{record_id}/task-log",
848
+ contentType: "application/json",
849
+ queryParams: {},
850
+ pathParams: {},
851
+ headers: {}
852
+ };
853
+ const localVarHeaderParameter = {};
854
+ const localVarQueryParameter = {};
855
+ let recordId;
856
+ let taskName;
857
+ let logLevel;
858
+ if (downloadTaskLogRequest !== null && downloadTaskLogRequest !== undefined) {
859
+ if (downloadTaskLogRequest instanceof DownloadTaskLogRequest_1.DownloadTaskLogRequest) {
860
+ recordId = downloadTaskLogRequest.recordId;
861
+ taskName = downloadTaskLogRequest.taskName;
862
+ logLevel = downloadTaskLogRequest.logLevel;
863
+ }
864
+ else {
865
+ recordId = downloadTaskLogRequest['record_id'];
866
+ taskName = downloadTaskLogRequest['task_name'];
867
+ logLevel = downloadTaskLogRequest['log_level'];
868
+ }
869
+ }
870
+ if (recordId === null || recordId === undefined) {
871
+ throw new RequiredError('recordId', 'Required parameter recordId was null or undefined when calling downloadTaskLog.');
872
+ }
873
+ if (taskName === null || taskName === undefined) {
874
+ throw new RequiredError('taskName', 'Required parameter taskName was null or undefined when calling downloadTaskLog.');
875
+ }
876
+ if (taskName !== null && taskName !== undefined) {
877
+ localVarQueryParameter['task_name'] = taskName;
878
+ }
879
+ if (logLevel !== null && logLevel !== undefined) {
880
+ localVarQueryParameter['log_level'] = logLevel;
881
+ }
882
+ options.queryParams = localVarQueryParameter;
883
+ options.pathParams = { 'record_id': recordId, };
884
+ options.headers = localVarHeaderParameter;
885
+ return options;
886
+ },
887
+ /**
888
+ * 恢复构建任务
889
+ *
890
+ * Please refer to HUAWEI cloud API Explorer for details.
891
+ */
892
+ enableBuildJob(enableBuildJobRequest) {
893
+ const options = {
894
+ method: "POST",
895
+ url: "/v3/jobs/{job_id}/recover",
896
+ contentType: "application/json",
897
+ queryParams: {},
898
+ pathParams: {},
899
+ headers: {}
900
+ };
901
+ const localVarHeaderParameter = {};
902
+ let jobId;
903
+ if (enableBuildJobRequest !== null && enableBuildJobRequest !== undefined) {
904
+ if (enableBuildJobRequest instanceof EnableBuildJobRequest_1.EnableBuildJobRequest) {
905
+ jobId = enableBuildJobRequest.jobId;
906
+ }
907
+ else {
908
+ jobId = enableBuildJobRequest['job_id'];
909
+ }
910
+ }
911
+ if (jobId === null || jobId === undefined) {
912
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling enableBuildJob.');
347
913
  }
348
914
  options.pathParams = { 'job_id': jobId, };
349
915
  options.headers = localVarHeaderParameter;
350
916
  return options;
351
917
  },
352
918
  /**
353
- * 下载指定租户下的KeyStore文件
919
+ * 获取构建任务详情
354
920
  *
355
921
  * Please refer to HUAWEI cloud API Explorer for details.
356
922
  */
357
- downloadKeystore(downloadKeystoreRequest) {
923
+ listJobConfig(listJobConfigRequest) {
358
924
  const options = {
359
925
  method: "GET",
360
- url: "/v3/keystore",
926
+ url: "/v3/jobs/{job_id}/query",
361
927
  contentType: "application/json",
362
928
  queryParams: {},
363
929
  pathParams: {},
@@ -365,98 +931,106 @@ const ParamCreater = function () {
365
931
  };
366
932
  const localVarHeaderParameter = {};
367
933
  const localVarQueryParameter = {};
368
- let fileName;
369
- let domainId;
370
- if (downloadKeystoreRequest !== null && downloadKeystoreRequest !== undefined) {
371
- if (downloadKeystoreRequest instanceof DownloadKeystoreRequest_1.DownloadKeystoreRequest) {
372
- fileName = downloadKeystoreRequest.fileName;
373
- domainId = downloadKeystoreRequest.domainId;
934
+ let jobId;
935
+ let getAllParams;
936
+ if (listJobConfigRequest !== null && listJobConfigRequest !== undefined) {
937
+ if (listJobConfigRequest instanceof ListJobConfigRequest_1.ListJobConfigRequest) {
938
+ jobId = listJobConfigRequest.jobId;
939
+ getAllParams = listJobConfigRequest.getAllParams;
374
940
  }
375
941
  else {
376
- fileName = downloadKeystoreRequest['file_name'];
377
- domainId = downloadKeystoreRequest['domain_id'];
942
+ jobId = listJobConfigRequest['job_id'];
943
+ getAllParams = listJobConfigRequest['get_all_params'];
378
944
  }
379
945
  }
380
- if (fileName === null || fileName === undefined) {
381
- throw new RequiredError('fileName', 'Required parameter fileName was null or undefined when calling downloadKeystore.');
382
- }
383
- if (fileName !== null && fileName !== undefined) {
384
- localVarQueryParameter['file_name'] = fileName;
385
- }
386
- if (domainId === null || domainId === undefined) {
387
- throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling downloadKeystore.');
946
+ if (jobId === null || jobId === undefined) {
947
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling listJobConfig.');
388
948
  }
389
- if (domainId !== null && domainId !== undefined) {
390
- localVarQueryParameter['domain_id'] = domainId;
949
+ if (getAllParams !== null && getAllParams !== undefined) {
950
+ localVarQueryParameter['get_all_params'] = getAllParams;
391
951
  }
392
952
  options.queryParams = localVarQueryParameter;
953
+ options.pathParams = { 'job_id': jobId, };
393
954
  options.headers = localVarHeaderParameter;
394
955
  return options;
395
956
  },
396
957
  /**
397
- * 下载构建日志
958
+ * 查询通知
398
959
  *
399
960
  * Please refer to HUAWEI cloud API Explorer for details.
400
961
  */
401
- downloadLogByRecordId(downloadLogByRecordIdRequest) {
962
+ listNotice(listNoticeRequest) {
402
963
  const options = {
403
964
  method: "GET",
404
- url: "/v3/{record_id}/download-log",
965
+ url: "/v3/jobs/notice/{job_id}/query",
405
966
  contentType: "application/json",
406
967
  queryParams: {},
407
968
  pathParams: {},
408
969
  headers: {}
409
970
  };
410
971
  const localVarHeaderParameter = {};
411
- let recordId;
412
- if (downloadLogByRecordIdRequest !== null && downloadLogByRecordIdRequest !== undefined) {
413
- if (downloadLogByRecordIdRequest instanceof DownloadLogByRecordIdRequest_1.DownloadLogByRecordIdRequest) {
414
- recordId = downloadLogByRecordIdRequest.recordId;
972
+ let jobId;
973
+ if (listNoticeRequest !== null && listNoticeRequest !== undefined) {
974
+ if (listNoticeRequest instanceof ListNoticeRequest_1.ListNoticeRequest) {
975
+ jobId = listNoticeRequest.jobId;
415
976
  }
416
977
  else {
417
- recordId = downloadLogByRecordIdRequest['record_id'];
978
+ jobId = listNoticeRequest['job_id'];
418
979
  }
419
980
  }
420
- if (recordId === null || recordId === undefined) {
421
- throw new RequiredError('recordId', 'Required parameter recordId was null or undefined when calling downloadLogByRecordId.');
981
+ if (jobId === null || jobId === undefined) {
982
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling listNotice.');
422
983
  }
423
- options.pathParams = { 'record_id': recordId, };
984
+ options.pathParams = { 'job_id': jobId, };
424
985
  options.headers = localVarHeaderParameter;
425
986
  return options;
426
987
  },
427
988
  /**
428
- * 恢复构建任务
989
+ * 查询构建模板
429
990
  *
430
991
  * Please refer to HUAWEI cloud API Explorer for details.
431
992
  */
432
- resumeBuildJob(resumeBuildJobRequest) {
993
+ listTemplates(listTemplatesRequest) {
433
994
  const options = {
434
- method: "POST",
435
- url: "/v3/jobs/{job_id}/recover",
995
+ method: "GET",
996
+ url: "/v3/templates/query",
436
997
  contentType: "application/json",
437
998
  queryParams: {},
438
999
  pathParams: {},
439
1000
  headers: {}
440
1001
  };
441
1002
  const localVarHeaderParameter = {};
442
- let jobId;
443
- if (resumeBuildJobRequest !== null && resumeBuildJobRequest !== undefined) {
444
- if (resumeBuildJobRequest instanceof ResumeBuildJobRequest_1.ResumeBuildJobRequest) {
445
- jobId = resumeBuildJobRequest.jobId;
1003
+ const localVarQueryParameter = {};
1004
+ let name;
1005
+ let page;
1006
+ let pageSize;
1007
+ if (listTemplatesRequest !== null && listTemplatesRequest !== undefined) {
1008
+ if (listTemplatesRequest instanceof ListTemplatesRequest_1.ListTemplatesRequest) {
1009
+ name = listTemplatesRequest.name;
1010
+ page = listTemplatesRequest.page;
1011
+ pageSize = listTemplatesRequest.pageSize;
446
1012
  }
447
1013
  else {
448
- jobId = resumeBuildJobRequest['job_id'];
1014
+ name = listTemplatesRequest['name'];
1015
+ page = listTemplatesRequest['page'];
1016
+ pageSize = listTemplatesRequest['page_size'];
449
1017
  }
450
1018
  }
451
- if (jobId === null || jobId === undefined) {
452
- throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling resumeBuildJob.');
1019
+ if (name !== null && name !== undefined) {
1020
+ localVarQueryParameter['name'] = name;
453
1021
  }
454
- options.pathParams = { 'job_id': jobId, };
1022
+ if (page !== null && page !== undefined) {
1023
+ localVarQueryParameter['page'] = page;
1024
+ }
1025
+ if (pageSize !== null && pageSize !== undefined) {
1026
+ localVarQueryParameter['page_size'] = pageSize;
1027
+ }
1028
+ options.queryParams = localVarQueryParameter;
455
1029
  options.headers = localVarHeaderParameter;
456
1030
  return options;
457
1031
  },
458
1032
  /**
459
- * 执行构建任务,可传自定义参数。
1033
+ * 执行构建任务,可传自定义参数
460
1034
  *
461
1035
  * Please refer to HUAWEI cloud API Explorer for details.
462
1036
  */
@@ -829,15 +1403,52 @@ const ParamCreater = function () {
829
1403
  options.headers = localVarHeaderParameter;
830
1404
  return options;
831
1405
  },
1406
+ /**
1407
+ * 获取构建产物详情信息
1408
+ *
1409
+ * Please refer to HUAWEI cloud API Explorer for details.
1410
+ */
1411
+ showOutputInfo(showOutputInfoRequest) {
1412
+ const options = {
1413
+ method: "GET",
1414
+ url: "/v3/jobs/{job_id}/{build_no}/output-info",
1415
+ contentType: "application/json",
1416
+ queryParams: {},
1417
+ pathParams: {},
1418
+ headers: {}
1419
+ };
1420
+ const localVarHeaderParameter = {};
1421
+ let jobId;
1422
+ let buildNo;
1423
+ if (showOutputInfoRequest !== null && showOutputInfoRequest !== undefined) {
1424
+ if (showOutputInfoRequest instanceof ShowOutputInfoRequest_1.ShowOutputInfoRequest) {
1425
+ jobId = showOutputInfoRequest.jobId;
1426
+ buildNo = showOutputInfoRequest.buildNo;
1427
+ }
1428
+ else {
1429
+ jobId = showOutputInfoRequest['job_id'];
1430
+ buildNo = showOutputInfoRequest['build_no'];
1431
+ }
1432
+ }
1433
+ if (jobId === null || jobId === undefined) {
1434
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showOutputInfo.');
1435
+ }
1436
+ if (buildNo === null || buildNo === undefined) {
1437
+ throw new RequiredError('buildNo', 'Required parameter buildNo was null or undefined when calling showOutputInfo.');
1438
+ }
1439
+ options.pathParams = { 'job_id': jobId, 'build_no': buildNo, };
1440
+ options.headers = localVarHeaderParameter;
1441
+ return options;
1442
+ },
832
1443
  /**
833
1444
  * 获取构建记录信息
834
1445
  *
835
1446
  * Please refer to HUAWEI cloud API Explorer for details.
836
1447
  */
837
- showRecordInfo(showRecordInfoRequest) {
1448
+ showRecordDetail(showRecordDetailRequest) {
838
1449
  const options = {
839
1450
  method: "GET",
840
- url: "/v3/jobs/{job_id}/{build_no}/record-info",
1451
+ url: "/v4/jobs/{job_id}/{build_no}/record-info",
841
1452
  contentType: "application/json",
842
1453
  queryParams: {},
843
1454
  pathParams: {},
@@ -846,21 +1457,21 @@ const ParamCreater = function () {
846
1457
  const localVarHeaderParameter = {};
847
1458
  let jobId;
848
1459
  let buildNo;
849
- if (showRecordInfoRequest !== null && showRecordInfoRequest !== undefined) {
850
- if (showRecordInfoRequest instanceof ShowRecordInfoRequest_1.ShowRecordInfoRequest) {
851
- jobId = showRecordInfoRequest.jobId;
852
- buildNo = showRecordInfoRequest.buildNo;
1460
+ if (showRecordDetailRequest !== null && showRecordDetailRequest !== undefined) {
1461
+ if (showRecordDetailRequest instanceof ShowRecordDetailRequest_1.ShowRecordDetailRequest) {
1462
+ jobId = showRecordDetailRequest.jobId;
1463
+ buildNo = showRecordDetailRequest.buildNo;
853
1464
  }
854
1465
  else {
855
- jobId = showRecordInfoRequest['job_id'];
856
- buildNo = showRecordInfoRequest['build_no'];
1466
+ jobId = showRecordDetailRequest['job_id'];
1467
+ buildNo = showRecordDetailRequest['build_no'];
857
1468
  }
858
1469
  }
859
1470
  if (jobId === null || jobId === undefined) {
860
- throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showRecordInfo.');
1471
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showRecordDetail.');
861
1472
  }
862
1473
  if (buildNo === null || buildNo === undefined) {
863
- throw new RequiredError('buildNo', 'Required parameter buildNo was null or undefined when calling showRecordInfo.');
1474
+ throw new RequiredError('buildNo', 'Required parameter buildNo was null or undefined when calling showRecordDetail.');
864
1475
  }
865
1476
  options.pathParams = { 'job_id': jobId, 'build_no': buildNo, };
866
1477
  options.headers = localVarHeaderParameter;
@@ -903,6 +1514,211 @@ const ParamCreater = function () {
903
1514
  options.headers = localVarHeaderParameter;
904
1515
  return options;
905
1516
  },
1517
+ /**
1518
+ * 更新构建任务
1519
+ *
1520
+ * Please refer to HUAWEI cloud API Explorer for details.
1521
+ */
1522
+ updateBuildJob(updateBuildJobRequest) {
1523
+ const options = {
1524
+ method: "POST",
1525
+ url: "/v3/jobs/update",
1526
+ contentType: "application/json",
1527
+ queryParams: {},
1528
+ pathParams: {},
1529
+ headers: {},
1530
+ data: {}
1531
+ };
1532
+ const localVarHeaderParameter = {};
1533
+ let body;
1534
+ if (updateBuildJobRequest !== null && updateBuildJobRequest !== undefined) {
1535
+ if (updateBuildJobRequest instanceof UpdateBuildJobRequest_1.UpdateBuildJobRequest) {
1536
+ body = updateBuildJobRequest.body;
1537
+ }
1538
+ else {
1539
+ body = updateBuildJobRequest['body'];
1540
+ }
1541
+ }
1542
+ if (body === null || body === undefined) {
1543
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1544
+ }
1545
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1546
+ options.data = body !== undefined ? body : {};
1547
+ options.headers = localVarHeaderParameter;
1548
+ return options;
1549
+ },
1550
+ /**
1551
+ * 更新通知
1552
+ *
1553
+ * Please refer to HUAWEI cloud API Explorer for details.
1554
+ */
1555
+ updateNotice(updateNoticeRequest) {
1556
+ const options = {
1557
+ method: "POST",
1558
+ url: "/v3/jobs/notice/{job_id}/update",
1559
+ contentType: "application/json",
1560
+ queryParams: {},
1561
+ pathParams: {},
1562
+ headers: {},
1563
+ data: {}
1564
+ };
1565
+ const localVarHeaderParameter = {};
1566
+ let body;
1567
+ let jobId;
1568
+ if (updateNoticeRequest !== null && updateNoticeRequest !== undefined) {
1569
+ if (updateNoticeRequest instanceof UpdateNoticeRequest_1.UpdateNoticeRequest) {
1570
+ jobId = updateNoticeRequest.jobId;
1571
+ body = updateNoticeRequest.body;
1572
+ }
1573
+ else {
1574
+ jobId = updateNoticeRequest['job_id'];
1575
+ body = updateNoticeRequest['body'];
1576
+ }
1577
+ }
1578
+ if (jobId === null || jobId === undefined) {
1579
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling updateNotice.');
1580
+ }
1581
+ if (body === null || body === undefined) {
1582
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1583
+ }
1584
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1585
+ options.data = body !== undefined ? body : {};
1586
+ options.pathParams = { 'job_id': jobId, };
1587
+ options.headers = localVarHeaderParameter;
1588
+ return options;
1589
+ },
1590
+ /**
1591
+ * 下载构建日志(待下线)
1592
+ *
1593
+ * Please refer to HUAWEI cloud API Explorer for details.
1594
+ */
1595
+ downloadLogByRecordId(downloadLogByRecordIdRequest) {
1596
+ const options = {
1597
+ method: "GET",
1598
+ url: "/v3/{record_id}/download-log",
1599
+ contentType: "application/json",
1600
+ queryParams: {},
1601
+ pathParams: {},
1602
+ headers: {}
1603
+ };
1604
+ const localVarHeaderParameter = {};
1605
+ let recordId;
1606
+ if (downloadLogByRecordIdRequest !== null && downloadLogByRecordIdRequest !== undefined) {
1607
+ if (downloadLogByRecordIdRequest instanceof DownloadLogByRecordIdRequest_1.DownloadLogByRecordIdRequest) {
1608
+ recordId = downloadLogByRecordIdRequest.recordId;
1609
+ }
1610
+ else {
1611
+ recordId = downloadLogByRecordIdRequest['record_id'];
1612
+ }
1613
+ }
1614
+ if (recordId === null || recordId === undefined) {
1615
+ throw new RequiredError('recordId', 'Required parameter recordId was null or undefined when calling downloadLogByRecordId.');
1616
+ }
1617
+ options.pathParams = { 'record_id': recordId, };
1618
+ options.headers = localVarHeaderParameter;
1619
+ return options;
1620
+ },
1621
+ /**
1622
+ * 获取构建记录的有向无环图(待下线)
1623
+ *
1624
+ * Please refer to HUAWEI cloud API Explorer for details.
1625
+ */
1626
+ showFlowGraph(showFlowGraphRequest) {
1627
+ const options = {
1628
+ method: "GET",
1629
+ url: "/v3/{build_flow_record_id}/flow-graph",
1630
+ contentType: "application/json",
1631
+ queryParams: {},
1632
+ pathParams: {},
1633
+ headers: {}
1634
+ };
1635
+ const localVarHeaderParameter = {};
1636
+ let buildFlowRecordId;
1637
+ if (showFlowGraphRequest !== null && showFlowGraphRequest !== undefined) {
1638
+ if (showFlowGraphRequest instanceof ShowFlowGraphRequest_1.ShowFlowGraphRequest) {
1639
+ buildFlowRecordId = showFlowGraphRequest.buildFlowRecordId;
1640
+ }
1641
+ else {
1642
+ buildFlowRecordId = showFlowGraphRequest['build_flow_record_id'];
1643
+ }
1644
+ }
1645
+ if (buildFlowRecordId === null || buildFlowRecordId === undefined) {
1646
+ throw new RequiredError('buildFlowRecordId', 'Required parameter buildFlowRecordId was null or undefined when calling showFlowGraph.');
1647
+ }
1648
+ options.pathParams = { 'build_flow_record_id': buildFlowRecordId, };
1649
+ options.headers = localVarHeaderParameter;
1650
+ return options;
1651
+ },
1652
+ /**
1653
+ * 获取构建记录信息(待下线)
1654
+ *
1655
+ * Please refer to HUAWEI cloud API Explorer for details.
1656
+ */
1657
+ showRecordInfo(showRecordInfoRequest) {
1658
+ const options = {
1659
+ method: "GET",
1660
+ url: "/v3/jobs/{job_id}/{build_no}/record-info",
1661
+ contentType: "application/json",
1662
+ queryParams: {},
1663
+ pathParams: {},
1664
+ headers: {}
1665
+ };
1666
+ const localVarHeaderParameter = {};
1667
+ let jobId;
1668
+ let buildNo;
1669
+ if (showRecordInfoRequest !== null && showRecordInfoRequest !== undefined) {
1670
+ if (showRecordInfoRequest instanceof ShowRecordInfoRequest_1.ShowRecordInfoRequest) {
1671
+ jobId = showRecordInfoRequest.jobId;
1672
+ buildNo = showRecordInfoRequest.buildNo;
1673
+ }
1674
+ else {
1675
+ jobId = showRecordInfoRequest['job_id'];
1676
+ buildNo = showRecordInfoRequest['build_no'];
1677
+ }
1678
+ }
1679
+ if (jobId === null || jobId === undefined) {
1680
+ throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showRecordInfo.');
1681
+ }
1682
+ if (buildNo === null || buildNo === undefined) {
1683
+ throw new RequiredError('buildNo', 'Required parameter buildNo was null or undefined when calling showRecordInfo.');
1684
+ }
1685
+ options.pathParams = { 'job_id': jobId, 'build_no': buildNo, };
1686
+ options.headers = localVarHeaderParameter;
1687
+ return options;
1688
+ },
1689
+ /**
1690
+ * 停止构建任务(待下线)
1691
+ *
1692
+ * Please refer to HUAWEI cloud API Explorer for details.
1693
+ */
1694
+ stopJob(stopJobRequest) {
1695
+ const options = {
1696
+ method: "POST",
1697
+ url: "/v3/jobs/stop",
1698
+ contentType: "application/json",
1699
+ queryParams: {},
1700
+ pathParams: {},
1701
+ headers: {},
1702
+ data: {}
1703
+ };
1704
+ const localVarHeaderParameter = {};
1705
+ let body;
1706
+ if (stopJobRequest !== null && stopJobRequest !== undefined) {
1707
+ if (stopJobRequest instanceof StopJobRequest_1.StopJobRequest) {
1708
+ body = stopJobRequest.body;
1709
+ }
1710
+ else {
1711
+ body = stopJobRequest['body'];
1712
+ }
1713
+ }
1714
+ if (body === null || body === undefined) {
1715
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1716
+ }
1717
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1718
+ options.data = body !== undefined ? body : {};
1719
+ options.headers = localVarHeaderParameter;
1720
+ return options;
1721
+ },
906
1722
  };
907
1723
  };
908
1724
  exports.ParamCreater = ParamCreater;