@huaweicloud/huaweicloud-sdk-codeartsbuild 3.1.58 → 3.1.59
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -2
- package/v3/CodeArtsBuildClient.d.ts +158 -0
- package/v3/CodeArtsBuildClient.d.ts.map +1 -1
- package/v3/CodeArtsBuildClient.js +302 -0
- package/v3/CodeArtsBuildClient.js.map +1 -1
- package/v3/model/DeleteBuildJobRequest.d.ts +8 -0
- package/v3/model/DeleteBuildJobRequest.d.ts.map +1 -0
- package/v3/model/DeleteBuildJobRequest.js +20 -0
- package/v3/model/DeleteBuildJobRequest.js.map +1 -0
- package/v3/model/DeleteBuildJobResponse.d.ts +10 -0
- package/v3/model/DeleteBuildJobResponse.d.ts.map +1 -0
- package/v3/model/DeleteBuildJobResponse.js +19 -0
- package/v3/model/DeleteBuildJobResponse.js.map +1 -0
- package/v3/model/DeleteBuildJobResponseBodyResult.d.ts +12 -0
- package/v3/model/DeleteBuildJobResponseBodyResult.d.ts.map +1 -0
- package/v3/model/DeleteBuildJobResponseBodyResult.js +29 -0
- package/v3/model/DeleteBuildJobResponseBodyResult.js.map +1 -0
- package/v3/model/DisableBuildJobRequest.d.ts +8 -0
- package/v3/model/DisableBuildJobRequest.d.ts.map +1 -0
- package/v3/model/DisableBuildJobRequest.js +20 -0
- package/v3/model/DisableBuildJobRequest.js.map +1 -0
- package/v3/model/DisableBuildJobResponse.d.ts +7 -0
- package/v3/model/DisableBuildJobResponse.d.ts.map +1 -0
- package/v3/model/DisableBuildJobResponse.js +15 -0
- package/v3/model/DisableBuildJobResponse.js.map +1 -0
- package/v3/model/DownloadLogByRecordIdRequest.d.ts +8 -0
- package/v3/model/DownloadLogByRecordIdRequest.d.ts.map +1 -0
- package/v3/model/DownloadLogByRecordIdRequest.js +20 -0
- package/v3/model/DownloadLogByRecordIdRequest.js.map +1 -0
- package/v3/model/DownloadLogByRecordIdResponse.d.ts +5 -0
- package/v3/model/DownloadLogByRecordIdResponse.d.ts.map +1 -0
- package/v3/model/DownloadLogByRecordIdResponse.js +11 -0
- package/v3/model/DownloadLogByRecordIdResponse.js.map +1 -0
- package/v3/model/RecordInfoResult.d.ts +120 -0
- package/v3/model/RecordInfoResult.d.ts.map +1 -0
- package/v3/model/RecordInfoResult.js +293 -0
- package/v3/model/RecordInfoResult.js.map +1 -0
- package/v3/model/ResumeBuildJobRequest.d.ts +8 -0
- package/v3/model/ResumeBuildJobRequest.d.ts.map +1 -0
- package/v3/model/ResumeBuildJobRequest.js +20 -0
- package/v3/model/ResumeBuildJobRequest.js.map +1 -0
- package/v3/model/ResumeBuildJobResponse.d.ts +7 -0
- package/v3/model/ResumeBuildJobResponse.d.ts.map +1 -0
- package/v3/model/ResumeBuildJobResponse.js +15 -0
- package/v3/model/ResumeBuildJobResponse.js.map +1 -0
- package/v3/model/ShowRecordInfoRequest.d.ts +12 -0
- package/v3/model/ShowRecordInfoRequest.d.ts.map +1 -0
- package/v3/model/ShowRecordInfoRequest.js +31 -0
- package/v3/model/ShowRecordInfoRequest.js.map +1 -0
- package/v3/model/ShowRecordInfoResponse.d.ts +16 -0
- package/v3/model/ShowRecordInfoResponse.d.ts.map +1 -0
- package/v3/model/ShowRecordInfoResponse.js +33 -0
- package/v3/model/ShowRecordInfoResponse.js.map +1 -0
- package/v3/model/StopBuildJobRequest.d.ts +12 -0
- package/v3/model/StopBuildJobRequest.d.ts.map +1 -0
- package/v3/model/StopBuildJobRequest.js +31 -0
- package/v3/model/StopBuildJobRequest.js.map +1 -0
- package/v3/model/StopBuildJobResponse.d.ts +9 -0
- package/v3/model/StopBuildJobResponse.d.ts.map +1 -0
- package/v3/model/StopBuildJobResponse.js +19 -0
- package/v3/model/StopBuildJobResponse.js.map +1 -0
- package/v3/public-api.d.ts +14 -0
- package/v3/public-api.d.ts.map +1 -1
- package/v3/public-api.js +14 -0
- package/v3/public-api.js.map +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@huaweicloud/huaweicloud-sdk-codeartsbuild",
|
3
|
-
"version": "3.1.
|
3
|
+
"version": "3.1.59",
|
4
4
|
"description": "Huaweicloud SDK for codeartsbuild",
|
5
5
|
"main": "huaweicloud-sdk-codeartsbuild.js",
|
6
6
|
"typings": "huaweicloud-sdk-codeartsbuild.d.ts",
|
@@ -14,7 +14,7 @@
|
|
14
14
|
"author": "HuaweiCloud_SDK",
|
15
15
|
"license": "Apache-2.0",
|
16
16
|
"dependencies": {
|
17
|
-
"@huaweicloud/huaweicloud-sdk-core": "^3.1.
|
17
|
+
"@huaweicloud/huaweicloud-sdk-core": "^3.1.59"
|
18
18
|
},
|
19
19
|
"devDependencies": {
|
20
20
|
"@types/node": "^14.14.37",
|
@@ -1,7 +1,15 @@
|
|
1
1
|
import { HcClient } from "@huaweicloud/huaweicloud-sdk-core/HcClient";
|
2
2
|
import { ClientBuilder } from "@huaweicloud/huaweicloud-sdk-core/ClientBuilder";
|
3
|
+
import { DeleteBuildJobRequest } from './model/DeleteBuildJobRequest';
|
4
|
+
import { DeleteBuildJobResponse } from './model/DeleteBuildJobResponse';
|
5
|
+
import { DisableBuildJobRequest } from './model/DisableBuildJobRequest';
|
6
|
+
import { DisableBuildJobResponse } from './model/DisableBuildJobResponse';
|
3
7
|
import { DownloadKeystoreRequest } from './model/DownloadKeystoreRequest';
|
4
8
|
import { DownloadKeystoreResponse } from './model/DownloadKeystoreResponse';
|
9
|
+
import { DownloadLogByRecordIdRequest } from './model/DownloadLogByRecordIdRequest';
|
10
|
+
import { DownloadLogByRecordIdResponse } from './model/DownloadLogByRecordIdResponse';
|
11
|
+
import { ResumeBuildJobRequest } from './model/ResumeBuildJobRequest';
|
12
|
+
import { ResumeBuildJobResponse } from './model/ResumeBuildJobResponse';
|
5
13
|
import { RunJobRequest } from './model/RunJobRequest';
|
6
14
|
import { RunJobResponse } from './model/RunJobResponse';
|
7
15
|
import { ShowHistoryDetailsRequest } from './model/ShowHistoryDetailsRequest';
|
@@ -18,11 +26,37 @@ import { ShowListHistoryRequest } from './model/ShowListHistoryRequest';
|
|
18
26
|
import { ShowListHistoryResponse } from './model/ShowListHistoryResponse';
|
19
27
|
import { ShowListPeriodHistoryRequest } from './model/ShowListPeriodHistoryRequest';
|
20
28
|
import { ShowListPeriodHistoryResponse } from './model/ShowListPeriodHistoryResponse';
|
29
|
+
import { ShowRecordInfoRequest } from './model/ShowRecordInfoRequest';
|
30
|
+
import { ShowRecordInfoResponse } from './model/ShowRecordInfoResponse';
|
31
|
+
import { StopBuildJobRequest } from './model/StopBuildJobRequest';
|
32
|
+
import { StopBuildJobResponse } from './model/StopBuildJobResponse';
|
21
33
|
export declare class CodeArtsBuildClient {
|
22
34
|
static newBuilder(): ClientBuilder<CodeArtsBuildClient>;
|
23
35
|
private hcClient;
|
24
36
|
constructor(client: HcClient);
|
25
37
|
getPath(): string;
|
38
|
+
/**
|
39
|
+
* 删除构建任务
|
40
|
+
*
|
41
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
42
|
+
*
|
43
|
+
* @summary 删除构建任务
|
44
|
+
* @param {string} jobId 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
45
|
+
* @param {*} [options] Override http request option.
|
46
|
+
* @throws {RequiredError}
|
47
|
+
*/
|
48
|
+
deleteBuildJob(deleteBuildJobRequest?: DeleteBuildJobRequest): Promise<DeleteBuildJobResponse>;
|
49
|
+
/**
|
50
|
+
* 禁用构建任务
|
51
|
+
*
|
52
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
53
|
+
*
|
54
|
+
* @summary 禁用构建任务
|
55
|
+
* @param {string} jobId 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
56
|
+
* @param {*} [options] Override http request option.
|
57
|
+
* @throws {RequiredError}
|
58
|
+
*/
|
59
|
+
disableBuildJob(disableBuildJobRequest?: DisableBuildJobRequest): Promise<DisableBuildJobResponse>;
|
26
60
|
/**
|
27
61
|
* 下载指定租户下的KeyStore文件
|
28
62
|
*
|
@@ -35,6 +69,28 @@ export declare class CodeArtsBuildClient {
|
|
35
69
|
* @throws {RequiredError}
|
36
70
|
*/
|
37
71
|
downloadKeystore(downloadKeystoreRequest?: DownloadKeystoreRequest): Promise<DownloadKeystoreResponse>;
|
72
|
+
/**
|
73
|
+
* 下载构建日志
|
74
|
+
*
|
75
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
76
|
+
*
|
77
|
+
* @summary 下载构建日志
|
78
|
+
* @param {string} recordId 记录ID,36位数字、小写字母、\'-\'组组合。
|
79
|
+
* @param {*} [options] Override http request option.
|
80
|
+
* @throws {RequiredError}
|
81
|
+
*/
|
82
|
+
downloadLogByRecordId(downloadLogByRecordIdRequest?: DownloadLogByRecordIdRequest): Promise<DownloadLogByRecordIdResponse>;
|
83
|
+
/**
|
84
|
+
* 恢复构建任务
|
85
|
+
*
|
86
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
87
|
+
*
|
88
|
+
* @summary 恢复构建任务
|
89
|
+
* @param {string} jobId 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
90
|
+
* @param {*} [options] Override http request option.
|
91
|
+
* @throws {RequiredError}
|
92
|
+
*/
|
93
|
+
resumeBuildJob(resumeBuildJobRequest?: ResumeBuildJobRequest): Promise<ResumeBuildJobResponse>;
|
38
94
|
/**
|
39
95
|
* 执行构建任务,可传自定义参数。
|
40
96
|
*
|
@@ -136,8 +192,58 @@ export declare class CodeArtsBuildClient {
|
|
136
192
|
* @throws {RequiredError}
|
137
193
|
*/
|
138
194
|
showListPeriodHistory(showListPeriodHistoryRequest?: ShowListPeriodHistoryRequest): Promise<ShowListPeriodHistoryResponse>;
|
195
|
+
/**
|
196
|
+
* 获取构建记录信息
|
197
|
+
*
|
198
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
199
|
+
*
|
200
|
+
* @summary 获取构建记录信息
|
201
|
+
* @param {string} jobId 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
202
|
+
* @param {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
|
203
|
+
* @param {*} [options] Override http request option.
|
204
|
+
* @throws {RequiredError}
|
205
|
+
*/
|
206
|
+
showRecordInfo(showRecordInfoRequest?: ShowRecordInfoRequest): Promise<ShowRecordInfoResponse>;
|
207
|
+
/**
|
208
|
+
* 停止构建任务
|
209
|
+
*
|
210
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
211
|
+
*
|
212
|
+
* @summary 停止构建任务
|
213
|
+
* @param {string} jobId 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
214
|
+
* @param {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
|
215
|
+
* @param {*} [options] Override http request option.
|
216
|
+
* @throws {RequiredError}
|
217
|
+
*/
|
218
|
+
stopBuildJob(stopBuildJobRequest?: StopBuildJobRequest): Promise<StopBuildJobResponse>;
|
139
219
|
}
|
140
220
|
export declare const ParamCreater: () => {
|
221
|
+
/**
|
222
|
+
* 删除构建任务
|
223
|
+
*
|
224
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
225
|
+
*/
|
226
|
+
deleteBuildJob(deleteBuildJobRequest?: DeleteBuildJobRequest): {
|
227
|
+
method: string;
|
228
|
+
url: string;
|
229
|
+
contentType: string;
|
230
|
+
queryParams: {};
|
231
|
+
pathParams: {};
|
232
|
+
headers: {};
|
233
|
+
};
|
234
|
+
/**
|
235
|
+
* 禁用构建任务
|
236
|
+
*
|
237
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
238
|
+
*/
|
239
|
+
disableBuildJob(disableBuildJobRequest?: DisableBuildJobRequest): {
|
240
|
+
method: string;
|
241
|
+
url: string;
|
242
|
+
contentType: string;
|
243
|
+
queryParams: {};
|
244
|
+
pathParams: {};
|
245
|
+
headers: {};
|
246
|
+
};
|
141
247
|
/**
|
142
248
|
* 下载指定租户下的KeyStore文件
|
143
249
|
*
|
@@ -151,6 +257,32 @@ export declare const ParamCreater: () => {
|
|
151
257
|
pathParams: {};
|
152
258
|
headers: {};
|
153
259
|
};
|
260
|
+
/**
|
261
|
+
* 下载构建日志
|
262
|
+
*
|
263
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
264
|
+
*/
|
265
|
+
downloadLogByRecordId(downloadLogByRecordIdRequest?: DownloadLogByRecordIdRequest): {
|
266
|
+
method: string;
|
267
|
+
url: string;
|
268
|
+
contentType: string;
|
269
|
+
queryParams: {};
|
270
|
+
pathParams: {};
|
271
|
+
headers: {};
|
272
|
+
};
|
273
|
+
/**
|
274
|
+
* 恢复构建任务
|
275
|
+
*
|
276
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
277
|
+
*/
|
278
|
+
resumeBuildJob(resumeBuildJobRequest?: ResumeBuildJobRequest): {
|
279
|
+
method: string;
|
280
|
+
url: string;
|
281
|
+
contentType: string;
|
282
|
+
queryParams: {};
|
283
|
+
pathParams: {};
|
284
|
+
headers: {};
|
285
|
+
};
|
154
286
|
/**
|
155
287
|
* 执行构建任务,可传自定义参数。
|
156
288
|
*
|
@@ -256,6 +388,32 @@ export declare const ParamCreater: () => {
|
|
256
388
|
pathParams: {};
|
257
389
|
headers: {};
|
258
390
|
};
|
391
|
+
/**
|
392
|
+
* 获取构建记录信息
|
393
|
+
*
|
394
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
395
|
+
*/
|
396
|
+
showRecordInfo(showRecordInfoRequest?: ShowRecordInfoRequest): {
|
397
|
+
method: string;
|
398
|
+
url: string;
|
399
|
+
contentType: string;
|
400
|
+
queryParams: {};
|
401
|
+
pathParams: {};
|
402
|
+
headers: {};
|
403
|
+
};
|
404
|
+
/**
|
405
|
+
* 停止构建任务
|
406
|
+
*
|
407
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
408
|
+
*/
|
409
|
+
stopBuildJob(stopBuildJobRequest?: StopBuildJobRequest): {
|
410
|
+
method: string;
|
411
|
+
url: string;
|
412
|
+
contentType: string;
|
413
|
+
queryParams: {};
|
414
|
+
pathParams: {};
|
415
|
+
headers: {};
|
416
|
+
};
|
259
417
|
};
|
260
418
|
/**
|
261
419
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CodeArtsBuildClient.d.ts","sourceRoot":"","sources":["../../../../services/codeartsbuild/v3/CodeArtsBuildClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAIhF,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;
|
1
|
+
{"version":3,"file":"CodeArtsBuildClient.d.ts","sourceRoot":"","sources":["../../../../services/codeartsbuild/v3/CodeArtsBuildClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAIhF,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,k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,IAAI,EAAE,eAAe,CAAmB;gBACrB,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM;CAGjD"}
|
@@ -2,7 +2,11 @@
|
|
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 DeleteBuildJobRequest_1 = require("./model/DeleteBuildJobRequest");
|
6
|
+
const DisableBuildJobRequest_1 = require("./model/DisableBuildJobRequest");
|
5
7
|
const DownloadKeystoreRequest_1 = require("./model/DownloadKeystoreRequest");
|
8
|
+
const DownloadLogByRecordIdRequest_1 = require("./model/DownloadLogByRecordIdRequest");
|
9
|
+
const ResumeBuildJobRequest_1 = require("./model/ResumeBuildJobRequest");
|
6
10
|
const RunJobRequest_1 = require("./model/RunJobRequest");
|
7
11
|
const ShowHistoryDetailsRequest_1 = require("./model/ShowHistoryDetailsRequest");
|
8
12
|
const ShowJobListByProjectIdRequest_1 = require("./model/ShowJobListByProjectIdRequest");
|
@@ -11,6 +15,8 @@ const ShowJobSuccessRatioRequest_1 = require("./model/ShowJobSuccessRatioRequest
|
|
11
15
|
const ShowLastHistoryRequest_1 = require("./model/ShowLastHistoryRequest");
|
12
16
|
const ShowListHistoryRequest_1 = require("./model/ShowListHistoryRequest");
|
13
17
|
const ShowListPeriodHistoryRequest_1 = require("./model/ShowListPeriodHistoryRequest");
|
18
|
+
const ShowRecordInfoRequest_1 = require("./model/ShowRecordInfoRequest");
|
19
|
+
const StopBuildJobRequest_1 = require("./model/StopBuildJobRequest");
|
14
20
|
class CodeArtsBuildClient {
|
15
21
|
static newBuilder() {
|
16
22
|
return new ClientBuilder_1.ClientBuilder(newClient);
|
@@ -21,6 +27,38 @@ class CodeArtsBuildClient {
|
|
21
27
|
getPath() {
|
22
28
|
return __dirname;
|
23
29
|
}
|
30
|
+
/**
|
31
|
+
* 删除构建任务
|
32
|
+
*
|
33
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
34
|
+
*
|
35
|
+
* @summary 删除构建任务
|
36
|
+
* @param {string} jobId 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
37
|
+
* @param {*} [options] Override http request option.
|
38
|
+
* @throws {RequiredError}
|
39
|
+
*/
|
40
|
+
deleteBuildJob(deleteBuildJobRequest) {
|
41
|
+
const options = (0, exports.ParamCreater)().deleteBuildJob(deleteBuildJobRequest);
|
42
|
+
// @ts-ignore
|
43
|
+
options['responseHeaders'] = [''];
|
44
|
+
return this.hcClient.sendRequest(options);
|
45
|
+
}
|
46
|
+
/**
|
47
|
+
* 禁用构建任务
|
48
|
+
*
|
49
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
50
|
+
*
|
51
|
+
* @summary 禁用构建任务
|
52
|
+
* @param {string} jobId 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
53
|
+
* @param {*} [options] Override http request option.
|
54
|
+
* @throws {RequiredError}
|
55
|
+
*/
|
56
|
+
disableBuildJob(disableBuildJobRequest) {
|
57
|
+
const options = (0, exports.ParamCreater)().disableBuildJob(disableBuildJobRequest);
|
58
|
+
// @ts-ignore
|
59
|
+
options['responseHeaders'] = [''];
|
60
|
+
return this.hcClient.sendRequest(options);
|
61
|
+
}
|
24
62
|
/**
|
25
63
|
* 下载指定租户下的KeyStore文件
|
26
64
|
*
|
@@ -38,6 +76,38 @@ class CodeArtsBuildClient {
|
|
38
76
|
options['responseHeaders'] = [''];
|
39
77
|
return this.hcClient.sendRequest(options);
|
40
78
|
}
|
79
|
+
/**
|
80
|
+
* 下载构建日志
|
81
|
+
*
|
82
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
83
|
+
*
|
84
|
+
* @summary 下载构建日志
|
85
|
+
* @param {string} recordId 记录ID,36位数字、小写字母、\'-\'组组合。
|
86
|
+
* @param {*} [options] Override http request option.
|
87
|
+
* @throws {RequiredError}
|
88
|
+
*/
|
89
|
+
downloadLogByRecordId(downloadLogByRecordIdRequest) {
|
90
|
+
const options = (0, exports.ParamCreater)().downloadLogByRecordId(downloadLogByRecordIdRequest);
|
91
|
+
// @ts-ignore
|
92
|
+
options['responseHeaders'] = [''];
|
93
|
+
return this.hcClient.sendRequest(options);
|
94
|
+
}
|
95
|
+
/**
|
96
|
+
* 恢复构建任务
|
97
|
+
*
|
98
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
99
|
+
*
|
100
|
+
* @summary 恢复构建任务
|
101
|
+
* @param {string} jobId 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
102
|
+
* @param {*} [options] Override http request option.
|
103
|
+
* @throws {RequiredError}
|
104
|
+
*/
|
105
|
+
resumeBuildJob(resumeBuildJobRequest) {
|
106
|
+
const options = (0, exports.ParamCreater)().resumeBuildJob(resumeBuildJobRequest);
|
107
|
+
// @ts-ignore
|
108
|
+
options['responseHeaders'] = [''];
|
109
|
+
return this.hcClient.sendRequest(options);
|
110
|
+
}
|
41
111
|
/**
|
42
112
|
* 执行构建任务,可传自定义参数。
|
43
113
|
*
|
@@ -179,10 +249,106 @@ class CodeArtsBuildClient {
|
|
179
249
|
options['responseHeaders'] = [''];
|
180
250
|
return this.hcClient.sendRequest(options);
|
181
251
|
}
|
252
|
+
/**
|
253
|
+
* 获取构建记录信息
|
254
|
+
*
|
255
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
256
|
+
*
|
257
|
+
* @summary 获取构建记录信息
|
258
|
+
* @param {string} jobId 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
259
|
+
* @param {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
|
260
|
+
* @param {*} [options] Override http request option.
|
261
|
+
* @throws {RequiredError}
|
262
|
+
*/
|
263
|
+
showRecordInfo(showRecordInfoRequest) {
|
264
|
+
const options = (0, exports.ParamCreater)().showRecordInfo(showRecordInfoRequest);
|
265
|
+
// @ts-ignore
|
266
|
+
options['responseHeaders'] = [''];
|
267
|
+
return this.hcClient.sendRequest(options);
|
268
|
+
}
|
269
|
+
/**
|
270
|
+
* 停止构建任务
|
271
|
+
*
|
272
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
273
|
+
*
|
274
|
+
* @summary 停止构建任务
|
275
|
+
* @param {string} jobId 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
276
|
+
* @param {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
|
277
|
+
* @param {*} [options] Override http request option.
|
278
|
+
* @throws {RequiredError}
|
279
|
+
*/
|
280
|
+
stopBuildJob(stopBuildJobRequest) {
|
281
|
+
const options = (0, exports.ParamCreater)().stopBuildJob(stopBuildJobRequest);
|
282
|
+
// @ts-ignore
|
283
|
+
options['responseHeaders'] = [''];
|
284
|
+
return this.hcClient.sendRequest(options);
|
285
|
+
}
|
182
286
|
}
|
183
287
|
exports.CodeArtsBuildClient = CodeArtsBuildClient;
|
184
288
|
const ParamCreater = function () {
|
185
289
|
return {
|
290
|
+
/**
|
291
|
+
* 删除构建任务
|
292
|
+
*
|
293
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
294
|
+
*/
|
295
|
+
deleteBuildJob(deleteBuildJobRequest) {
|
296
|
+
const options = {
|
297
|
+
method: "POST",
|
298
|
+
url: "/v3/jobs/{job_id}/delete",
|
299
|
+
contentType: "application/json",
|
300
|
+
queryParams: {},
|
301
|
+
pathParams: {},
|
302
|
+
headers: {}
|
303
|
+
};
|
304
|
+
const localVarHeaderParameter = {};
|
305
|
+
let jobId;
|
306
|
+
if (deleteBuildJobRequest !== null && deleteBuildJobRequest !== undefined) {
|
307
|
+
if (deleteBuildJobRequest instanceof DeleteBuildJobRequest_1.DeleteBuildJobRequest) {
|
308
|
+
jobId = deleteBuildJobRequest.jobId;
|
309
|
+
}
|
310
|
+
else {
|
311
|
+
jobId = deleteBuildJobRequest['job_id'];
|
312
|
+
}
|
313
|
+
}
|
314
|
+
if (jobId === null || jobId === undefined) {
|
315
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling deleteBuildJob.');
|
316
|
+
}
|
317
|
+
options.pathParams = { 'job_id': jobId, };
|
318
|
+
options.headers = localVarHeaderParameter;
|
319
|
+
return options;
|
320
|
+
},
|
321
|
+
/**
|
322
|
+
* 禁用构建任务
|
323
|
+
*
|
324
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
325
|
+
*/
|
326
|
+
disableBuildJob(disableBuildJobRequest) {
|
327
|
+
const options = {
|
328
|
+
method: "POST",
|
329
|
+
url: "/v3/jobs/{job_id}/disable",
|
330
|
+
contentType: "application/json",
|
331
|
+
queryParams: {},
|
332
|
+
pathParams: {},
|
333
|
+
headers: {}
|
334
|
+
};
|
335
|
+
const localVarHeaderParameter = {};
|
336
|
+
let jobId;
|
337
|
+
if (disableBuildJobRequest !== null && disableBuildJobRequest !== undefined) {
|
338
|
+
if (disableBuildJobRequest instanceof DisableBuildJobRequest_1.DisableBuildJobRequest) {
|
339
|
+
jobId = disableBuildJobRequest.jobId;
|
340
|
+
}
|
341
|
+
else {
|
342
|
+
jobId = disableBuildJobRequest['job_id'];
|
343
|
+
}
|
344
|
+
}
|
345
|
+
if (jobId === null || jobId === undefined) {
|
346
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling disableBuildJob.');
|
347
|
+
}
|
348
|
+
options.pathParams = { 'job_id': jobId, };
|
349
|
+
options.headers = localVarHeaderParameter;
|
350
|
+
return options;
|
351
|
+
},
|
186
352
|
/**
|
187
353
|
* 下载指定租户下的KeyStore文件
|
188
354
|
*
|
@@ -227,6 +393,68 @@ const ParamCreater = function () {
|
|
227
393
|
options.headers = localVarHeaderParameter;
|
228
394
|
return options;
|
229
395
|
},
|
396
|
+
/**
|
397
|
+
* 下载构建日志
|
398
|
+
*
|
399
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
400
|
+
*/
|
401
|
+
downloadLogByRecordId(downloadLogByRecordIdRequest) {
|
402
|
+
const options = {
|
403
|
+
method: "GET",
|
404
|
+
url: "/v3/{record_id}/download-log",
|
405
|
+
contentType: "application/json",
|
406
|
+
queryParams: {},
|
407
|
+
pathParams: {},
|
408
|
+
headers: {}
|
409
|
+
};
|
410
|
+
const localVarHeaderParameter = {};
|
411
|
+
let recordId;
|
412
|
+
if (downloadLogByRecordIdRequest !== null && downloadLogByRecordIdRequest !== undefined) {
|
413
|
+
if (downloadLogByRecordIdRequest instanceof DownloadLogByRecordIdRequest_1.DownloadLogByRecordIdRequest) {
|
414
|
+
recordId = downloadLogByRecordIdRequest.recordId;
|
415
|
+
}
|
416
|
+
else {
|
417
|
+
recordId = downloadLogByRecordIdRequest['record_id'];
|
418
|
+
}
|
419
|
+
}
|
420
|
+
if (recordId === null || recordId === undefined) {
|
421
|
+
throw new RequiredError('recordId', 'Required parameter recordId was null or undefined when calling downloadLogByRecordId.');
|
422
|
+
}
|
423
|
+
options.pathParams = { 'record_id': recordId, };
|
424
|
+
options.headers = localVarHeaderParameter;
|
425
|
+
return options;
|
426
|
+
},
|
427
|
+
/**
|
428
|
+
* 恢复构建任务
|
429
|
+
*
|
430
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
431
|
+
*/
|
432
|
+
resumeBuildJob(resumeBuildJobRequest) {
|
433
|
+
const options = {
|
434
|
+
method: "POST",
|
435
|
+
url: "/v3/jobs/{job_id}/recover",
|
436
|
+
contentType: "application/json",
|
437
|
+
queryParams: {},
|
438
|
+
pathParams: {},
|
439
|
+
headers: {}
|
440
|
+
};
|
441
|
+
const localVarHeaderParameter = {};
|
442
|
+
let jobId;
|
443
|
+
if (resumeBuildJobRequest !== null && resumeBuildJobRequest !== undefined) {
|
444
|
+
if (resumeBuildJobRequest instanceof ResumeBuildJobRequest_1.ResumeBuildJobRequest) {
|
445
|
+
jobId = resumeBuildJobRequest.jobId;
|
446
|
+
}
|
447
|
+
else {
|
448
|
+
jobId = resumeBuildJobRequest['job_id'];
|
449
|
+
}
|
450
|
+
}
|
451
|
+
if (jobId === null || jobId === undefined) {
|
452
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling resumeBuildJob.');
|
453
|
+
}
|
454
|
+
options.pathParams = { 'job_id': jobId, };
|
455
|
+
options.headers = localVarHeaderParameter;
|
456
|
+
return options;
|
457
|
+
},
|
230
458
|
/**
|
231
459
|
* 执行构建任务,可传自定义参数。
|
232
460
|
*
|
@@ -601,6 +829,80 @@ const ParamCreater = function () {
|
|
601
829
|
options.headers = localVarHeaderParameter;
|
602
830
|
return options;
|
603
831
|
},
|
832
|
+
/**
|
833
|
+
* 获取构建记录信息
|
834
|
+
*
|
835
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
836
|
+
*/
|
837
|
+
showRecordInfo(showRecordInfoRequest) {
|
838
|
+
const options = {
|
839
|
+
method: "GET",
|
840
|
+
url: "/v3/jobs/{job_id}/{build_no}/record-info",
|
841
|
+
contentType: "application/json",
|
842
|
+
queryParams: {},
|
843
|
+
pathParams: {},
|
844
|
+
headers: {}
|
845
|
+
};
|
846
|
+
const localVarHeaderParameter = {};
|
847
|
+
let jobId;
|
848
|
+
let buildNo;
|
849
|
+
if (showRecordInfoRequest !== null && showRecordInfoRequest !== undefined) {
|
850
|
+
if (showRecordInfoRequest instanceof ShowRecordInfoRequest_1.ShowRecordInfoRequest) {
|
851
|
+
jobId = showRecordInfoRequest.jobId;
|
852
|
+
buildNo = showRecordInfoRequest.buildNo;
|
853
|
+
}
|
854
|
+
else {
|
855
|
+
jobId = showRecordInfoRequest['job_id'];
|
856
|
+
buildNo = showRecordInfoRequest['build_no'];
|
857
|
+
}
|
858
|
+
}
|
859
|
+
if (jobId === null || jobId === undefined) {
|
860
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showRecordInfo.');
|
861
|
+
}
|
862
|
+
if (buildNo === null || buildNo === undefined) {
|
863
|
+
throw new RequiredError('buildNo', 'Required parameter buildNo was null or undefined when calling showRecordInfo.');
|
864
|
+
}
|
865
|
+
options.pathParams = { 'job_id': jobId, 'build_no': buildNo, };
|
866
|
+
options.headers = localVarHeaderParameter;
|
867
|
+
return options;
|
868
|
+
},
|
869
|
+
/**
|
870
|
+
* 停止构建任务
|
871
|
+
*
|
872
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
873
|
+
*/
|
874
|
+
stopBuildJob(stopBuildJobRequest) {
|
875
|
+
const options = {
|
876
|
+
method: "POST",
|
877
|
+
url: "/v3/jobs/{job_id}/{build_no}/stop",
|
878
|
+
contentType: "application/json",
|
879
|
+
queryParams: {},
|
880
|
+
pathParams: {},
|
881
|
+
headers: {}
|
882
|
+
};
|
883
|
+
const localVarHeaderParameter = {};
|
884
|
+
let jobId;
|
885
|
+
let buildNo;
|
886
|
+
if (stopBuildJobRequest !== null && stopBuildJobRequest !== undefined) {
|
887
|
+
if (stopBuildJobRequest instanceof StopBuildJobRequest_1.StopBuildJobRequest) {
|
888
|
+
jobId = stopBuildJobRequest.jobId;
|
889
|
+
buildNo = stopBuildJobRequest.buildNo;
|
890
|
+
}
|
891
|
+
else {
|
892
|
+
jobId = stopBuildJobRequest['job_id'];
|
893
|
+
buildNo = stopBuildJobRequest['build_no'];
|
894
|
+
}
|
895
|
+
}
|
896
|
+
if (jobId === null || jobId === undefined) {
|
897
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling stopBuildJob.');
|
898
|
+
}
|
899
|
+
if (buildNo === null || buildNo === undefined) {
|
900
|
+
throw new RequiredError('buildNo', 'Required parameter buildNo was null or undefined when calling stopBuildJob.');
|
901
|
+
}
|
902
|
+
options.pathParams = { 'job_id': jobId, 'build_no': buildNo, };
|
903
|
+
options.headers = localVarHeaderParameter;
|
904
|
+
return options;
|
905
|
+
},
|
604
906
|
};
|
605
907
|
};
|
606
908
|
exports.ParamCreater = ParamCreater;
|