@huaweicloud/huaweicloud-sdk-codeartsbuild 3.1.151 → 3.1.152
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/v3/CodeArtsBuildClient.d.ts +298 -0
- package/v3/CodeArtsBuildClient.d.ts.map +1 -1
- package/v3/CodeArtsBuildClient.js +620 -0
- package/v3/CodeArtsBuildClient.js.map +1 -1
- package/v3/model/AddKeystorePermissionResponseBody.d.ts +32 -0
- package/v3/model/AddKeystorePermissionResponseBody.d.ts.map +1 -0
- package/v3/model/AddKeystorePermissionResponseBody.js +75 -0
- package/v3/model/AddKeystorePermissionResponseBody.js.map +1 -0
- package/v3/model/CheckJobNameIsExistsRequest.d.ts +12 -0
- package/v3/model/CheckJobNameIsExistsRequest.d.ts.map +1 -0
- package/v3/model/CheckJobNameIsExistsRequest.js +31 -0
- package/v3/model/CheckJobNameIsExistsRequest.js.map +1 -0
- package/v3/model/CheckJobNameIsExistsResponse.d.ts +9 -0
- package/v3/model/CheckJobNameIsExistsResponse.d.ts.map +1 -0
- package/v3/model/CheckJobNameIsExistsResponse.js +19 -0
- package/v3/model/CheckJobNameIsExistsResponse.js.map +1 -0
- package/v3/model/DownloadKeystoreByNameRequest.d.ts +12 -0
- package/v3/model/DownloadKeystoreByNameRequest.d.ts.map +1 -0
- package/v3/model/DownloadKeystoreByNameRequest.js +30 -0
- package/v3/model/DownloadKeystoreByNameRequest.js.map +1 -0
- package/v3/model/DownloadKeystoreByNameResponse.d.ts +5 -0
- package/v3/model/DownloadKeystoreByNameResponse.d.ts.map +1 -0
- package/v3/model/DownloadKeystoreByNameResponse.js +11 -0
- package/v3/model/DownloadKeystoreByNameResponse.js.map +1 -0
- package/v3/model/ListKeystoreRequest.d.ts +4 -0
- package/v3/model/ListKeystoreRequest.d.ts.map +1 -0
- package/v3/model/ListKeystoreRequest.js +9 -0
- package/v3/model/ListKeystoreRequest.js.map +1 -0
- package/v3/model/ListKeystoreResponse.d.ts +10 -0
- package/v3/model/ListKeystoreResponse.d.ts.map +1 -0
- package/v3/model/ListKeystoreResponse.js +19 -0
- package/v3/model/ListKeystoreResponse.js.map +1 -0
- package/v3/model/ListKeystoreResult.d.ts +10 -0
- package/v3/model/ListKeystoreResult.d.ts.map +1 -0
- package/v3/model/ListKeystoreResult.js +23 -0
- package/v3/model/ListKeystoreResult.js.map +1 -0
- package/v3/model/ListRecordsRequest.d.ts +26 -0
- package/v3/model/ListRecordsRequest.d.ts.map +1 -0
- package/v3/model/ListRecordsRequest.js +60 -0
- package/v3/model/ListRecordsRequest.js.map +1 -0
- package/v3/model/ListRecordsResponse.d.ts +12 -0
- package/v3/model/ListRecordsResponse.d.ts.map +1 -0
- package/v3/model/ListRecordsResponse.js +23 -0
- package/v3/model/ListRecordsResponse.js.map +1 -0
- package/v3/model/ListRecordsResult.d.ts +10 -0
- package/v3/model/ListRecordsResult.d.ts.map +1 -0
- package/v3/model/ListRecordsResult.js +17 -0
- package/v3/model/ListRecordsResult.js.map +1 -0
- package/v3/model/ListRecordsResultPagination.d.ts +10 -0
- package/v3/model/ListRecordsResultPagination.d.ts.map +1 -0
- package/v3/model/ListRecordsResultPagination.js +21 -0
- package/v3/model/ListRecordsResultPagination.js.map +1 -0
- package/v3/model/ListRelatedProjectInfoRequest.d.ts +14 -0
- package/v3/model/ListRelatedProjectInfoRequest.d.ts.map +1 -0
- package/v3/model/ListRelatedProjectInfoRequest.js +33 -0
- package/v3/model/ListRelatedProjectInfoRequest.js.map +1 -0
- package/v3/model/ListRelatedProjectInfoResponse.d.ts +12 -0
- package/v3/model/ListRelatedProjectInfoResponse.d.ts.map +1 -0
- package/v3/model/ListRelatedProjectInfoResponse.js +23 -0
- package/v3/model/ListRelatedProjectInfoResponse.js.map +1 -0
- package/v3/model/ListRelatedProjectInfoResult.d.ts +11 -0
- package/v3/model/ListRelatedProjectInfoResult.d.ts.map +1 -0
- package/v3/model/ListRelatedProjectInfoResult.js +23 -0
- package/v3/model/ListRelatedProjectInfoResult.js.map +1 -0
- package/v3/model/ListRelatedProjectInfoResultProjectInfoList.d.ts +18 -0
- package/v3/model/ListRelatedProjectInfoResultProjectInfoList.d.ts.map +1 -0
- package/v3/model/ListRelatedProjectInfoResultProjectInfoList.js +41 -0
- package/v3/model/ListRelatedProjectInfoResultProjectInfoList.js.map +1 -0
- package/v3/model/ShowBuildInfoRecordRequest.d.ts +12 -0
- package/v3/model/ShowBuildInfoRecordRequest.d.ts.map +1 -0
- package/v3/model/ShowBuildInfoRecordRequest.js +31 -0
- package/v3/model/ShowBuildInfoRecordRequest.js.map +1 -0
- package/v3/model/ShowBuildInfoRecordResponse.d.ts +12 -0
- package/v3/model/ShowBuildInfoRecordResponse.d.ts.map +1 -0
- package/v3/model/ShowBuildInfoRecordResponse.js +23 -0
- package/v3/model/ShowBuildInfoRecordResponse.js.map +1 -0
- package/v3/model/ShowDefaultBuildParametersParams.d.ts +8 -0
- package/v3/model/ShowDefaultBuildParametersParams.d.ts.map +1 -0
- package/v3/model/ShowDefaultBuildParametersParams.js +17 -0
- package/v3/model/ShowDefaultBuildParametersParams.js.map +1 -0
- package/v3/model/ShowDefaultBuildParametersRequest.d.ts +4 -0
- package/v3/model/ShowDefaultBuildParametersRequest.d.ts.map +1 -0
- package/v3/model/ShowDefaultBuildParametersRequest.js +9 -0
- package/v3/model/ShowDefaultBuildParametersRequest.js.map +1 -0
- package/v3/model/ShowDefaultBuildParametersResponse.d.ts +10 -0
- package/v3/model/ShowDefaultBuildParametersResponse.d.ts.map +1 -0
- package/v3/model/ShowDefaultBuildParametersResponse.js +19 -0
- package/v3/model/ShowDefaultBuildParametersResponse.js.map +1 -0
- package/v3/model/ShowDefaultBuildParametersResult.d.ts +9 -0
- package/v3/model/ShowDefaultBuildParametersResult.d.ts.map +1 -0
- package/v3/model/ShowDefaultBuildParametersResult.js +17 -0
- package/v3/model/ShowDefaultBuildParametersResult.js.map +1 -0
- package/v3/model/ShowDockerfileTemplateRequest.d.ts +8 -0
- package/v3/model/ShowDockerfileTemplateRequest.d.ts.map +1 -0
- package/v3/model/ShowDockerfileTemplateRequest.js +20 -0
- package/v3/model/ShowDockerfileTemplateRequest.js.map +1 -0
- package/v3/model/ShowDockerfileTemplateResponse.d.ts +5 -0
- package/v3/model/ShowDockerfileTemplateResponse.d.ts.map +1 -0
- package/v3/model/ShowDockerfileTemplateResponse.js +11 -0
- package/v3/model/ShowDockerfileTemplateResponse.js.map +1 -0
- package/v3/model/ShowJobNoticeConfigInfoRequest.d.ts +8 -0
- package/v3/model/ShowJobNoticeConfigInfoRequest.d.ts.map +1 -0
- package/v3/model/ShowJobNoticeConfigInfoRequest.js +20 -0
- package/v3/model/ShowJobNoticeConfigInfoRequest.js.map +1 -0
- package/v3/model/ShowJobNoticeConfigInfoResponse.d.ts +12 -0
- package/v3/model/ShowJobNoticeConfigInfoResponse.d.ts.map +1 -0
- package/v3/model/ShowJobNoticeConfigInfoResponse.js +23 -0
- package/v3/model/ShowJobNoticeConfigInfoResponse.js.map +1 -0
- package/v3/model/ShowKeystorePermissionRequest.d.ts +14 -0
- package/v3/model/ShowKeystorePermissionRequest.d.ts.map +1 -0
- package/v3/model/ShowKeystorePermissionRequest.js +36 -0
- package/v3/model/ShowKeystorePermissionRequest.js.map +1 -0
- package/v3/model/ShowKeystorePermissionResponse.d.ts +12 -0
- package/v3/model/ShowKeystorePermissionResponse.d.ts.map +1 -0
- package/v3/model/ShowKeystorePermissionResponse.js +23 -0
- package/v3/model/ShowKeystorePermissionResponse.js.map +1 -0
- package/v3/model/ShowKeystorePermissionResponseBodyResult.d.ts +11 -0
- package/v3/model/ShowKeystorePermissionResponseBodyResult.d.ts.map +1 -0
- package/v3/model/ShowKeystorePermissionResponseBodyResult.js +23 -0
- package/v3/model/ShowKeystorePermissionResponseBodyResult.js.map +1 -0
- package/v3/model/ShowRelatedProjectRequest.d.ts +4 -0
- package/v3/model/ShowRelatedProjectRequest.d.ts.map +1 -0
- package/v3/model/ShowRelatedProjectRequest.js +9 -0
- package/v3/model/ShowRelatedProjectRequest.js.map +1 -0
- package/v3/model/ShowRelatedProjectResponse.d.ts +12 -0
- package/v3/model/ShowRelatedProjectResponse.d.ts.map +1 -0
- package/v3/model/ShowRelatedProjectResponse.js +23 -0
- package/v3/model/ShowRelatedProjectResponse.js.map +1 -0
- package/v3/model/ShowRelatedProjectResult.d.ts +11 -0
- package/v3/model/ShowRelatedProjectResult.d.ts.map +1 -0
- package/v3/model/ShowRelatedProjectResult.js +23 -0
- package/v3/model/ShowRelatedProjectResult.js.map +1 -0
- package/v3/model/ShowRelatedProjectResultProjectInfoList.d.ts +20 -0
- package/v3/model/ShowRelatedProjectResultProjectInfoList.d.ts.map +1 -0
- package/v3/model/ShowRelatedProjectResultProjectInfoList.js +47 -0
- package/v3/model/ShowRelatedProjectResultProjectInfoList.js.map +1 -0
- package/v3/public-api.d.ts +33 -0
- package/v3/public-api.d.ts.map +1 -1
- package/v3/public-api.js +33 -0
- package/v3/public-api.js.map +1 -1
@@ -2,6 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.RequiredError = exports.ParamCreater = exports.CodeArtsBuildClient = void 0;
|
4
4
|
const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
|
5
|
+
const CheckJobNameIsExistsRequest_1 = require("./model/CheckJobNameIsExistsRequest");
|
5
6
|
const CreateBuildJobRequest_1 = require("./model/CreateBuildJobRequest");
|
6
7
|
const CreateTemplatesRequest_1 = require("./model/CreateTemplatesRequest");
|
7
8
|
const DeleteBuildJobRequest_1 = require("./model/DeleteBuildJobRequest");
|
@@ -9,6 +10,7 @@ const DeleteTemplatesRequest_1 = require("./model/DeleteTemplatesRequest");
|
|
9
10
|
const DisableBuildJobRequest_1 = require("./model/DisableBuildJobRequest");
|
10
11
|
const DisableNoticeRequest_1 = require("./model/DisableNoticeRequest");
|
11
12
|
const DownloadBuildLogRequest_1 = require("./model/DownloadBuildLogRequest");
|
13
|
+
const DownloadKeystoreByNameRequest_1 = require("./model/DownloadKeystoreByNameRequest");
|
12
14
|
const DownloadKeystoreRequest_1 = require("./model/DownloadKeystoreRequest");
|
13
15
|
const DownloadLogByRecordIdRequest_1 = require("./model/DownloadLogByRecordIdRequest");
|
14
16
|
const DownloadRealTimeLogRequest_1 = require("./model/DownloadRealTimeLogRequest");
|
@@ -20,12 +22,16 @@ const ListJobConfigRequest_1 = require("./model/ListJobConfigRequest");
|
|
20
22
|
const ListNoticeRequest_1 = require("./model/ListNoticeRequest");
|
21
23
|
const ListOfficialTemplateRequest_1 = require("./model/ListOfficialTemplateRequest");
|
22
24
|
const ListProjectJobsRequest_1 = require("./model/ListProjectJobsRequest");
|
25
|
+
const ListRecordsRequest_1 = require("./model/ListRecordsRequest");
|
23
26
|
const ListRecyclingJobRequest_1 = require("./model/ListRecyclingJobRequest");
|
27
|
+
const ListRelatedProjectInfoRequest_1 = require("./model/ListRelatedProjectInfoRequest");
|
24
28
|
const ListTemplatesRequest_1 = require("./model/ListTemplatesRequest");
|
25
29
|
const RunJobRequest_1 = require("./model/RunJobRequest");
|
30
|
+
const ShowBuildInfoRecordRequest_1 = require("./model/ShowBuildInfoRecordRequest");
|
26
31
|
const ShowBuildRecordBuildScriptRequest_1 = require("./model/ShowBuildRecordBuildScriptRequest");
|
27
32
|
const ShowBuildRecordFullStagesRequest_1 = require("./model/ShowBuildRecordFullStagesRequest");
|
28
33
|
const ShowBuildRecordRequest_1 = require("./model/ShowBuildRecordRequest");
|
34
|
+
const ShowDockerfileTemplateRequest_1 = require("./model/ShowDockerfileTemplateRequest");
|
29
35
|
const ShowFlowGraphRequest_1 = require("./model/ShowFlowGraphRequest");
|
30
36
|
const ShowHistoryDetailsRequest_1 = require("./model/ShowHistoryDetailsRequest");
|
31
37
|
const ShowJobBuildSuccessRatioRequest_1 = require("./model/ShowJobBuildSuccessRatioRequest");
|
@@ -34,9 +40,11 @@ const ShowJobConfigDiffRequest_1 = require("./model/ShowJobConfigDiffRequest");
|
|
34
40
|
const ShowJobConfigRequest_1 = require("./model/ShowJobConfigRequest");
|
35
41
|
const ShowJobInfoRequest_1 = require("./model/ShowJobInfoRequest");
|
36
42
|
const ShowJobListByProjectIdRequest_1 = require("./model/ShowJobListByProjectIdRequest");
|
43
|
+
const ShowJobNoticeConfigInfoRequest_1 = require("./model/ShowJobNoticeConfigInfoRequest");
|
37
44
|
const ShowJobRolePermissionRequest_1 = require("./model/ShowJobRolePermissionRequest");
|
38
45
|
const ShowJobStatusRequest_1 = require("./model/ShowJobStatusRequest");
|
39
46
|
const ShowJobSuccessRatioRequest_1 = require("./model/ShowJobSuccessRatioRequest");
|
47
|
+
const ShowKeystorePermissionRequest_1 = require("./model/ShowKeystorePermissionRequest");
|
40
48
|
const ShowLastHistoryRequest_1 = require("./model/ShowLastHistoryRequest");
|
41
49
|
const ShowListHistoryRequest_1 = require("./model/ShowListHistoryRequest");
|
42
50
|
const ShowListPeriodHistoryRequest_1 = require("./model/ShowListPeriodHistoryRequest");
|
@@ -62,6 +70,23 @@ class CodeArtsBuildClient {
|
|
62
70
|
getPath() {
|
63
71
|
return __dirname;
|
64
72
|
}
|
73
|
+
/**
|
74
|
+
* 查看项目下任务名是否存在
|
75
|
+
*
|
76
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
77
|
+
*
|
78
|
+
* @summary 查看项目下任务名是否存在
|
79
|
+
* @param {string} projectId CodeArts项目ID,32位数字、小写字母组合。
|
80
|
+
* @param {string} jobName 任务名称
|
81
|
+
* @param {*} [options] Override http request option.
|
82
|
+
* @throws {RequiredError}
|
83
|
+
*/
|
84
|
+
checkJobNameIsExists(checkJobNameIsExistsRequest) {
|
85
|
+
const options = (0, exports.ParamCreater)().checkJobNameIsExists(checkJobNameIsExistsRequest);
|
86
|
+
// @ts-ignore
|
87
|
+
options['responseHeaders'] = [''];
|
88
|
+
return this.hcClient.sendRequest(options);
|
89
|
+
}
|
65
90
|
/**
|
66
91
|
* 创建构建任务
|
67
92
|
*
|
@@ -193,6 +218,24 @@ class CodeArtsBuildClient {
|
|
193
218
|
options['responseHeaders'] = [''];
|
194
219
|
return this.hcClient.sendRequest(options);
|
195
220
|
}
|
221
|
+
/**
|
222
|
+
* 文件管理文件下载
|
223
|
+
*
|
224
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
225
|
+
*
|
226
|
+
* @summary 文件管理文件下载
|
227
|
+
* @param {string} name 文件名
|
228
|
+
* @param {string} domainId 租户ID
|
229
|
+
* @param {string} id 文件ID
|
230
|
+
* @param {*} [options] Override http request option.
|
231
|
+
* @throws {RequiredError}
|
232
|
+
*/
|
233
|
+
downloadKeystoreByName(downloadKeystoreByNameRequest) {
|
234
|
+
const options = (0, exports.ParamCreater)().downloadKeystoreByName(downloadKeystoreByNameRequest);
|
235
|
+
// @ts-ignore
|
236
|
+
options['responseHeaders'] = [''];
|
237
|
+
return this.hcClient.sendRequest(options);
|
238
|
+
}
|
196
239
|
/**
|
197
240
|
* 下载构建实时日志
|
198
241
|
*
|
@@ -303,6 +346,21 @@ class CodeArtsBuildClient {
|
|
303
346
|
options['responseHeaders'] = [''];
|
304
347
|
return this.hcClient.sendRequest(options);
|
305
348
|
}
|
349
|
+
/**
|
350
|
+
* 查询用户可使用文件
|
351
|
+
*
|
352
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
353
|
+
*
|
354
|
+
* @summary 查询用户可使用文件
|
355
|
+
* @param {*} [options] Override http request option.
|
356
|
+
* @throws {RequiredError}
|
357
|
+
*/
|
358
|
+
listKeystore(listKeystoreRequest) {
|
359
|
+
const options = (0, exports.ParamCreater)().listKeystore();
|
360
|
+
// @ts-ignore
|
361
|
+
options['responseHeaders'] = [''];
|
362
|
+
return this.hcClient.sendRequest(options);
|
363
|
+
}
|
306
364
|
/**
|
307
365
|
* 查询通知
|
308
366
|
*
|
@@ -362,6 +420,29 @@ class CodeArtsBuildClient {
|
|
362
420
|
options['responseHeaders'] = [''];
|
363
421
|
return this.hcClient.sendRequest(options);
|
364
422
|
}
|
423
|
+
/**
|
424
|
+
* 获取指定工程的构建记录列表
|
425
|
+
*
|
426
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
427
|
+
*
|
428
|
+
* @summary 获取指定工程的构建记录列表
|
429
|
+
* @param {string} buildProjectId 构建工程项目ID,36位数字、小写字母组合。
|
430
|
+
* @param {number} [page] 分页页码,表示从此页开始查询,大于等于0
|
431
|
+
* @param {number} [limit] 每页显示的条目数量,小于等于100
|
432
|
+
* @param {Array<string>} [triggers] 需要搜索的触发类型列表
|
433
|
+
* @param {Array<string>} [branches] 需要搜索的分支列表
|
434
|
+
* @param {Array<string>} [tags] 需要搜索的标签列表
|
435
|
+
* @param {string} [fromDate] 查询起止时间,格式:yyyy-MM-dd HH:mm:ss
|
436
|
+
* @param {string} [toDate] 查询结束时间,格式:yyyy-MM-dd HH:mm:ss
|
437
|
+
* @param {*} [options] Override http request option.
|
438
|
+
* @throws {RequiredError}
|
439
|
+
*/
|
440
|
+
listRecords(listRecordsRequest) {
|
441
|
+
const options = (0, exports.ParamCreater)().listRecords(listRecordsRequest);
|
442
|
+
// @ts-ignore
|
443
|
+
options['responseHeaders'] = [''];
|
444
|
+
return this.hcClient.sendRequest(options);
|
445
|
+
}
|
365
446
|
/**
|
366
447
|
* 查看回收站中删除的构建任务列表
|
367
448
|
*
|
@@ -380,6 +461,24 @@ class CodeArtsBuildClient {
|
|
380
461
|
options['responseHeaders'] = [''];
|
381
462
|
return this.hcClient.sendRequest(options);
|
382
463
|
}
|
464
|
+
/**
|
465
|
+
* 获取项目列表
|
466
|
+
*
|
467
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
468
|
+
*
|
469
|
+
* @summary 获取项目列表
|
470
|
+
* @param {number} [pageSize] 每页显示的条目数量,page_size小于等于100
|
471
|
+
* @param {number} [pageNo] 分页页码,表示从此页开始查询, page大于等于1
|
472
|
+
* @param {string} [search] 搜索内容
|
473
|
+
* @param {*} [options] Override http request option.
|
474
|
+
* @throws {RequiredError}
|
475
|
+
*/
|
476
|
+
listRelatedProjectInfo(listRelatedProjectInfoRequest) {
|
477
|
+
const options = (0, exports.ParamCreater)().listRelatedProjectInfo(listRelatedProjectInfoRequest);
|
478
|
+
// @ts-ignore
|
479
|
+
options['responseHeaders'] = [''];
|
480
|
+
return this.hcClient.sendRequest(options);
|
481
|
+
}
|
383
482
|
/**
|
384
483
|
* 查询构建模板
|
385
484
|
*
|
@@ -414,6 +513,23 @@ class CodeArtsBuildClient {
|
|
414
513
|
options['responseHeaders'] = [''];
|
415
514
|
return this.hcClient.sendRequest(options);
|
416
515
|
}
|
516
|
+
/**
|
517
|
+
* 获取任务构建记录列表
|
518
|
+
*
|
519
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
520
|
+
*
|
521
|
+
* @summary 获取任务构建记录列表
|
522
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
523
|
+
* @param {number} buildNo 构建任务的构建编号,从1开始,每次构建递增1
|
524
|
+
* @param {*} [options] Override http request option.
|
525
|
+
* @throws {RequiredError}
|
526
|
+
*/
|
527
|
+
showBuildInfoRecord(showBuildInfoRecordRequest) {
|
528
|
+
const options = (0, exports.ParamCreater)().showBuildInfoRecord(showBuildInfoRecordRequest);
|
529
|
+
// @ts-ignore
|
530
|
+
options['responseHeaders'] = [''];
|
531
|
+
return this.hcClient.sendRequest(options);
|
532
|
+
}
|
417
533
|
/**
|
418
534
|
* 编辑页获取参数类型的接口
|
419
535
|
*
|
@@ -478,6 +594,37 @@ class CodeArtsBuildClient {
|
|
478
594
|
options['responseHeaders'] = [''];
|
479
595
|
return this.hcClient.sendRequest(options);
|
480
596
|
}
|
597
|
+
/**
|
598
|
+
* 获取编译构建默认参数
|
599
|
+
*
|
600
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
601
|
+
*
|
602
|
+
* @summary 获取编译构建默认参数
|
603
|
+
* @param {*} [options] Override http request option.
|
604
|
+
* @throws {RequiredError}
|
605
|
+
*/
|
606
|
+
showDefaultBuildParameters(showDefaultBuildParametersRequest) {
|
607
|
+
const options = (0, exports.ParamCreater)().showDefaultBuildParameters();
|
608
|
+
// @ts-ignore
|
609
|
+
options['responseHeaders'] = [''];
|
610
|
+
return this.hcClient.sendRequest(options);
|
611
|
+
}
|
612
|
+
/**
|
613
|
+
* 获取dockerfileTemplate
|
614
|
+
*
|
615
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
616
|
+
*
|
617
|
+
* @summary 获取dockerfileTemplate
|
618
|
+
* @param {string} imageId 请求体
|
619
|
+
* @param {*} [options] Override http request option.
|
620
|
+
* @throws {RequiredError}
|
621
|
+
*/
|
622
|
+
showDockerfileTemplate(showDockerfileTemplateRequest) {
|
623
|
+
const options = (0, exports.ParamCreater)().showDockerfileTemplate(showDockerfileTemplateRequest);
|
624
|
+
// @ts-ignore
|
625
|
+
options['responseHeaders'] = [''];
|
626
|
+
return this.hcClient.sendRequest(options);
|
627
|
+
}
|
481
628
|
/**
|
482
629
|
* 获取构建历史详情信息接口
|
483
630
|
*
|
@@ -617,6 +764,22 @@ class CodeArtsBuildClient {
|
|
617
764
|
options['responseHeaders'] = [''];
|
618
765
|
return this.hcClient.sendRequest(options);
|
619
766
|
}
|
767
|
+
/**
|
768
|
+
* 获取通知信息
|
769
|
+
*
|
770
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
771
|
+
*
|
772
|
+
* @summary 获取通知信息
|
773
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
774
|
+
* @param {*} [options] Override http request option.
|
775
|
+
* @throws {RequiredError}
|
776
|
+
*/
|
777
|
+
showJobNoticeConfigInfo(showJobNoticeConfigInfoRequest) {
|
778
|
+
const options = (0, exports.ParamCreater)().showJobNoticeConfigInfo(showJobNoticeConfigInfoRequest);
|
779
|
+
// @ts-ignore
|
780
|
+
options['responseHeaders'] = [''];
|
781
|
+
return this.hcClient.sendRequest(options);
|
782
|
+
}
|
620
783
|
/**
|
621
784
|
* 获取构建任务的角色权限矩阵信息
|
622
785
|
*
|
@@ -682,6 +845,24 @@ class CodeArtsBuildClient {
|
|
682
845
|
options['responseHeaders'] = [''];
|
683
846
|
return this.hcClient.sendRequest(options);
|
684
847
|
}
|
848
|
+
/**
|
849
|
+
* 文件管理查询权限
|
850
|
+
*
|
851
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
852
|
+
*
|
853
|
+
* @summary 文件管理查询权限
|
854
|
+
* @param {string} keystoreId 文件秘钥Id
|
855
|
+
* @param {number} pageSize **参数解释**: 每页显示的条目数量。 **约束限制**: 不涉及。 **取值范围**: 只能使用数字,小于等于100。
|
856
|
+
* @param {string} page 分页页码,表示从此页开始查询,page大于等于1
|
857
|
+
* @param {*} [options] Override http request option.
|
858
|
+
* @throws {RequiredError}
|
859
|
+
*/
|
860
|
+
showKeystorePermission(showKeystorePermissionRequest) {
|
861
|
+
const options = (0, exports.ParamCreater)().showKeystorePermission(showKeystorePermissionRequest);
|
862
|
+
// @ts-ignore
|
863
|
+
options['responseHeaders'] = [''];
|
864
|
+
return this.hcClient.sendRequest(options);
|
865
|
+
}
|
685
866
|
/**
|
686
867
|
* 查询指定代码仓库最近一次成功的构建历史
|
687
868
|
*
|
@@ -788,6 +969,21 @@ class CodeArtsBuildClient {
|
|
788
969
|
options['responseHeaders'] = [''];
|
789
970
|
return this.hcClient.sendRequest(options);
|
790
971
|
}
|
972
|
+
/**
|
973
|
+
* 获取当前用户的项目信息列表
|
974
|
+
*
|
975
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
976
|
+
*
|
977
|
+
* @summary 获取当前用户的项目信息列表
|
978
|
+
* @param {*} [options] Override http request option.
|
979
|
+
* @throws {RequiredError}
|
980
|
+
*/
|
981
|
+
showRelatedProject(showRelatedProjectRequest) {
|
982
|
+
const options = (0, exports.ParamCreater)().showRelatedProject();
|
983
|
+
// @ts-ignore
|
984
|
+
options['responseHeaders'] = [''];
|
985
|
+
return this.hcClient.sendRequest(options);
|
986
|
+
}
|
791
987
|
/**
|
792
988
|
* 获取覆盖率接口
|
793
989
|
*
|
@@ -957,6 +1153,50 @@ class CodeArtsBuildClient {
|
|
957
1153
|
exports.CodeArtsBuildClient = CodeArtsBuildClient;
|
958
1154
|
const ParamCreater = function () {
|
959
1155
|
return {
|
1156
|
+
/**
|
1157
|
+
* 查看项目下任务名是否存在
|
1158
|
+
*
|
1159
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1160
|
+
*/
|
1161
|
+
checkJobNameIsExists(checkJobNameIsExistsRequest) {
|
1162
|
+
const options = {
|
1163
|
+
method: "GET",
|
1164
|
+
url: "/v1/job/check/exist",
|
1165
|
+
contentType: "application/json",
|
1166
|
+
queryParams: {},
|
1167
|
+
pathParams: {},
|
1168
|
+
headers: {}
|
1169
|
+
};
|
1170
|
+
const localVarHeaderParameter = {};
|
1171
|
+
const localVarQueryParameter = {};
|
1172
|
+
let projectId;
|
1173
|
+
let jobName;
|
1174
|
+
if (checkJobNameIsExistsRequest !== null && checkJobNameIsExistsRequest !== undefined) {
|
1175
|
+
if (checkJobNameIsExistsRequest instanceof CheckJobNameIsExistsRequest_1.CheckJobNameIsExistsRequest) {
|
1176
|
+
projectId = checkJobNameIsExistsRequest.projectId;
|
1177
|
+
jobName = checkJobNameIsExistsRequest.jobName;
|
1178
|
+
}
|
1179
|
+
else {
|
1180
|
+
projectId = checkJobNameIsExistsRequest['project_id'];
|
1181
|
+
jobName = checkJobNameIsExistsRequest['job_name'];
|
1182
|
+
}
|
1183
|
+
}
|
1184
|
+
if (projectId === null || projectId === undefined) {
|
1185
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling checkJobNameIsExists.');
|
1186
|
+
}
|
1187
|
+
if (projectId !== null && projectId !== undefined) {
|
1188
|
+
localVarQueryParameter['project_id'] = projectId;
|
1189
|
+
}
|
1190
|
+
if (jobName === null || jobName === undefined) {
|
1191
|
+
throw new RequiredError('jobName', 'Required parameter jobName was null or undefined when calling checkJobNameIsExists.');
|
1192
|
+
}
|
1193
|
+
if (jobName !== null && jobName !== undefined) {
|
1194
|
+
localVarQueryParameter['job_name'] = jobName;
|
1195
|
+
}
|
1196
|
+
options.queryParams = localVarQueryParameter;
|
1197
|
+
options.headers = localVarHeaderParameter;
|
1198
|
+
return options;
|
1199
|
+
},
|
960
1200
|
/**
|
961
1201
|
* 创建构建任务
|
962
1202
|
*
|
@@ -1241,6 +1481,59 @@ const ParamCreater = function () {
|
|
1241
1481
|
options.headers = localVarHeaderParameter;
|
1242
1482
|
return options;
|
1243
1483
|
},
|
1484
|
+
/**
|
1485
|
+
* 文件管理文件下载
|
1486
|
+
*
|
1487
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1488
|
+
*/
|
1489
|
+
downloadKeystoreByName(downloadKeystoreByNameRequest) {
|
1490
|
+
const options = {
|
1491
|
+
method: "GET",
|
1492
|
+
url: "/v2/keystore/download",
|
1493
|
+
contentType: "application/json",
|
1494
|
+
queryParams: {},
|
1495
|
+
pathParams: {},
|
1496
|
+
headers: {}
|
1497
|
+
};
|
1498
|
+
const localVarHeaderParameter = {};
|
1499
|
+
const localVarQueryParameter = {};
|
1500
|
+
let name;
|
1501
|
+
let domainId;
|
1502
|
+
let id;
|
1503
|
+
if (downloadKeystoreByNameRequest !== null && downloadKeystoreByNameRequest !== undefined) {
|
1504
|
+
if (downloadKeystoreByNameRequest instanceof DownloadKeystoreByNameRequest_1.DownloadKeystoreByNameRequest) {
|
1505
|
+
name = downloadKeystoreByNameRequest.name;
|
1506
|
+
domainId = downloadKeystoreByNameRequest.domainId;
|
1507
|
+
id = downloadKeystoreByNameRequest.id;
|
1508
|
+
}
|
1509
|
+
else {
|
1510
|
+
name = downloadKeystoreByNameRequest['name'];
|
1511
|
+
domainId = downloadKeystoreByNameRequest['domain_id'];
|
1512
|
+
id = downloadKeystoreByNameRequest['id'];
|
1513
|
+
}
|
1514
|
+
}
|
1515
|
+
if (name === null || name === undefined) {
|
1516
|
+
throw new RequiredError('name', 'Required parameter name was null or undefined when calling downloadKeystoreByName.');
|
1517
|
+
}
|
1518
|
+
if (name !== null && name !== undefined) {
|
1519
|
+
localVarQueryParameter['name'] = name;
|
1520
|
+
}
|
1521
|
+
if (domainId === null || domainId === undefined) {
|
1522
|
+
throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling downloadKeystoreByName.');
|
1523
|
+
}
|
1524
|
+
if (domainId !== null && domainId !== undefined) {
|
1525
|
+
localVarQueryParameter['domain_id'] = domainId;
|
1526
|
+
}
|
1527
|
+
if (id === null || id === undefined) {
|
1528
|
+
throw new RequiredError('id', 'Required parameter id was null or undefined when calling downloadKeystoreByName.');
|
1529
|
+
}
|
1530
|
+
if (id !== null && id !== undefined) {
|
1531
|
+
localVarQueryParameter['id'] = id;
|
1532
|
+
}
|
1533
|
+
options.queryParams = localVarQueryParameter;
|
1534
|
+
options.headers = localVarHeaderParameter;
|
1535
|
+
return options;
|
1536
|
+
},
|
1244
1537
|
/**
|
1245
1538
|
* 下载构建实时日志
|
1246
1539
|
*
|
@@ -1539,6 +1832,24 @@ const ParamCreater = function () {
|
|
1539
1832
|
options.headers = localVarHeaderParameter;
|
1540
1833
|
return options;
|
1541
1834
|
},
|
1835
|
+
/**
|
1836
|
+
* 查询用户可使用文件
|
1837
|
+
*
|
1838
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1839
|
+
*/
|
1840
|
+
listKeystore() {
|
1841
|
+
const options = {
|
1842
|
+
method: "GET",
|
1843
|
+
url: "/v2/keystore/name",
|
1844
|
+
contentType: "application/json",
|
1845
|
+
queryParams: {},
|
1846
|
+
pathParams: {},
|
1847
|
+
headers: {}
|
1848
|
+
};
|
1849
|
+
const localVarHeaderParameter = {};
|
1850
|
+
options.headers = localVarHeaderParameter;
|
1851
|
+
return options;
|
1852
|
+
},
|
1542
1853
|
/**
|
1543
1854
|
* 查询通知
|
1544
1855
|
*
|
@@ -1707,6 +2018,81 @@ const ParamCreater = function () {
|
|
1707
2018
|
options.headers = localVarHeaderParameter;
|
1708
2019
|
return options;
|
1709
2020
|
},
|
2021
|
+
/**
|
2022
|
+
* 获取指定工程的构建记录列表
|
2023
|
+
*
|
2024
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2025
|
+
*/
|
2026
|
+
listRecords(listRecordsRequest) {
|
2027
|
+
const options = {
|
2028
|
+
method: "GET",
|
2029
|
+
url: "/v1/record/{build_project_id}/records",
|
2030
|
+
contentType: "application/json",
|
2031
|
+
queryParams: {},
|
2032
|
+
pathParams: {},
|
2033
|
+
headers: {}
|
2034
|
+
};
|
2035
|
+
const localVarHeaderParameter = {};
|
2036
|
+
const localVarQueryParameter = {};
|
2037
|
+
let buildProjectId;
|
2038
|
+
let page;
|
2039
|
+
let limit;
|
2040
|
+
let triggers;
|
2041
|
+
let branches;
|
2042
|
+
let tags;
|
2043
|
+
let fromDate;
|
2044
|
+
let toDate;
|
2045
|
+
if (listRecordsRequest !== null && listRecordsRequest !== undefined) {
|
2046
|
+
if (listRecordsRequest instanceof ListRecordsRequest_1.ListRecordsRequest) {
|
2047
|
+
buildProjectId = listRecordsRequest.buildProjectId;
|
2048
|
+
page = listRecordsRequest.page;
|
2049
|
+
limit = listRecordsRequest.limit;
|
2050
|
+
triggers = listRecordsRequest.triggers;
|
2051
|
+
branches = listRecordsRequest.branches;
|
2052
|
+
tags = listRecordsRequest.tags;
|
2053
|
+
fromDate = listRecordsRequest.fromDate;
|
2054
|
+
toDate = listRecordsRequest.toDate;
|
2055
|
+
}
|
2056
|
+
else {
|
2057
|
+
buildProjectId = listRecordsRequest['build_project_id'];
|
2058
|
+
page = listRecordsRequest['page'];
|
2059
|
+
limit = listRecordsRequest['limit'];
|
2060
|
+
triggers = listRecordsRequest['triggers'];
|
2061
|
+
branches = listRecordsRequest['branches'];
|
2062
|
+
tags = listRecordsRequest['tags'];
|
2063
|
+
fromDate = listRecordsRequest['from_date'];
|
2064
|
+
toDate = listRecordsRequest['to_date'];
|
2065
|
+
}
|
2066
|
+
}
|
2067
|
+
if (buildProjectId === null || buildProjectId === undefined) {
|
2068
|
+
throw new RequiredError('buildProjectId', 'Required parameter buildProjectId was null or undefined when calling listRecords.');
|
2069
|
+
}
|
2070
|
+
if (page !== null && page !== undefined) {
|
2071
|
+
localVarQueryParameter['page'] = page;
|
2072
|
+
}
|
2073
|
+
if (limit !== null && limit !== undefined) {
|
2074
|
+
localVarQueryParameter['limit'] = limit;
|
2075
|
+
}
|
2076
|
+
if (triggers !== null && triggers !== undefined) {
|
2077
|
+
localVarQueryParameter['triggers'] = triggers;
|
2078
|
+
}
|
2079
|
+
if (branches !== null && branches !== undefined) {
|
2080
|
+
localVarQueryParameter['branches'] = branches;
|
2081
|
+
}
|
2082
|
+
if (tags !== null && tags !== undefined) {
|
2083
|
+
localVarQueryParameter['tags'] = tags;
|
2084
|
+
}
|
2085
|
+
if (fromDate !== null && fromDate !== undefined) {
|
2086
|
+
localVarQueryParameter['from_date'] = fromDate;
|
2087
|
+
}
|
2088
|
+
if (toDate !== null && toDate !== undefined) {
|
2089
|
+
localVarQueryParameter['to_date'] = toDate;
|
2090
|
+
}
|
2091
|
+
options.queryParams = localVarQueryParameter;
|
2092
|
+
options.pathParams = { 'build_project_id': buildProjectId, };
|
2093
|
+
options.headers = localVarHeaderParameter;
|
2094
|
+
return options;
|
2095
|
+
},
|
1710
2096
|
/**
|
1711
2097
|
* 查看回收站中删除的构建任务列表
|
1712
2098
|
*
|
@@ -1751,6 +2137,50 @@ const ParamCreater = function () {
|
|
1751
2137
|
options.headers = localVarHeaderParameter;
|
1752
2138
|
return options;
|
1753
2139
|
},
|
2140
|
+
/**
|
2141
|
+
* 获取项目列表
|
2142
|
+
*
|
2143
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2144
|
+
*/
|
2145
|
+
listRelatedProjectInfo(listRelatedProjectInfoRequest) {
|
2146
|
+
const options = {
|
2147
|
+
method: "GET",
|
2148
|
+
url: "/v1/domain/project/related-page",
|
2149
|
+
contentType: "application/json",
|
2150
|
+
queryParams: {},
|
2151
|
+
pathParams: {},
|
2152
|
+
headers: {}
|
2153
|
+
};
|
2154
|
+
const localVarHeaderParameter = {};
|
2155
|
+
const localVarQueryParameter = {};
|
2156
|
+
let pageSize;
|
2157
|
+
let pageNo;
|
2158
|
+
let search;
|
2159
|
+
if (listRelatedProjectInfoRequest !== null && listRelatedProjectInfoRequest !== undefined) {
|
2160
|
+
if (listRelatedProjectInfoRequest instanceof ListRelatedProjectInfoRequest_1.ListRelatedProjectInfoRequest) {
|
2161
|
+
pageSize = listRelatedProjectInfoRequest.pageSize;
|
2162
|
+
pageNo = listRelatedProjectInfoRequest.pageNo;
|
2163
|
+
search = listRelatedProjectInfoRequest.search;
|
2164
|
+
}
|
2165
|
+
else {
|
2166
|
+
pageSize = listRelatedProjectInfoRequest['page_size'];
|
2167
|
+
pageNo = listRelatedProjectInfoRequest['page_no'];
|
2168
|
+
search = listRelatedProjectInfoRequest['search'];
|
2169
|
+
}
|
2170
|
+
}
|
2171
|
+
if (pageSize !== null && pageSize !== undefined) {
|
2172
|
+
localVarQueryParameter['page_size'] = pageSize;
|
2173
|
+
}
|
2174
|
+
if (pageNo !== null && pageNo !== undefined) {
|
2175
|
+
localVarQueryParameter['page_no'] = pageNo;
|
2176
|
+
}
|
2177
|
+
if (search !== null && search !== undefined) {
|
2178
|
+
localVarQueryParameter['search'] = search;
|
2179
|
+
}
|
2180
|
+
options.queryParams = localVarQueryParameter;
|
2181
|
+
options.headers = localVarHeaderParameter;
|
2182
|
+
return options;
|
2183
|
+
},
|
1754
2184
|
/**
|
1755
2185
|
* 查询构建模板
|
1756
2186
|
*
|
@@ -1828,6 +2258,43 @@ const ParamCreater = function () {
|
|
1828
2258
|
options.headers = localVarHeaderParameter;
|
1829
2259
|
return options;
|
1830
2260
|
},
|
2261
|
+
/**
|
2262
|
+
* 获取任务构建记录列表
|
2263
|
+
*
|
2264
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2265
|
+
*/
|
2266
|
+
showBuildInfoRecord(showBuildInfoRecordRequest) {
|
2267
|
+
const options = {
|
2268
|
+
method: "GET",
|
2269
|
+
url: "/v1/record/{job_id}/{build_no}/build-info-record",
|
2270
|
+
contentType: "application/json",
|
2271
|
+
queryParams: {},
|
2272
|
+
pathParams: {},
|
2273
|
+
headers: {}
|
2274
|
+
};
|
2275
|
+
const localVarHeaderParameter = {};
|
2276
|
+
let jobId;
|
2277
|
+
let buildNo;
|
2278
|
+
if (showBuildInfoRecordRequest !== null && showBuildInfoRecordRequest !== undefined) {
|
2279
|
+
if (showBuildInfoRecordRequest instanceof ShowBuildInfoRecordRequest_1.ShowBuildInfoRecordRequest) {
|
2280
|
+
jobId = showBuildInfoRecordRequest.jobId;
|
2281
|
+
buildNo = showBuildInfoRecordRequest.buildNo;
|
2282
|
+
}
|
2283
|
+
else {
|
2284
|
+
jobId = showBuildInfoRecordRequest['job_id'];
|
2285
|
+
buildNo = showBuildInfoRecordRequest['build_no'];
|
2286
|
+
}
|
2287
|
+
}
|
2288
|
+
if (jobId === null || jobId === undefined) {
|
2289
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showBuildInfoRecord.');
|
2290
|
+
}
|
2291
|
+
if (buildNo === null || buildNo === undefined) {
|
2292
|
+
throw new RequiredError('buildNo', 'Required parameter buildNo was null or undefined when calling showBuildInfoRecord.');
|
2293
|
+
}
|
2294
|
+
options.pathParams = { 'job_id': jobId, 'build_no': buildNo, };
|
2295
|
+
options.headers = localVarHeaderParameter;
|
2296
|
+
return options;
|
2297
|
+
},
|
1831
2298
|
/**
|
1832
2299
|
* 编辑页获取参数类型的接口
|
1833
2300
|
*
|
@@ -1947,6 +2414,59 @@ const ParamCreater = function () {
|
|
1947
2414
|
options.headers = localVarHeaderParameter;
|
1948
2415
|
return options;
|
1949
2416
|
},
|
2417
|
+
/**
|
2418
|
+
* 获取编译构建默认参数
|
2419
|
+
*
|
2420
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2421
|
+
*/
|
2422
|
+
showDefaultBuildParameters() {
|
2423
|
+
const options = {
|
2424
|
+
method: "GET",
|
2425
|
+
url: "/v1/job/default-parameters",
|
2426
|
+
contentType: "application/json",
|
2427
|
+
queryParams: {},
|
2428
|
+
pathParams: {},
|
2429
|
+
headers: {}
|
2430
|
+
};
|
2431
|
+
const localVarHeaderParameter = {};
|
2432
|
+
options.headers = localVarHeaderParameter;
|
2433
|
+
return options;
|
2434
|
+
},
|
2435
|
+
/**
|
2436
|
+
* 获取dockerfileTemplate
|
2437
|
+
*
|
2438
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2439
|
+
*/
|
2440
|
+
showDockerfileTemplate(showDockerfileTemplateRequest) {
|
2441
|
+
const options = {
|
2442
|
+
method: "GET",
|
2443
|
+
url: "/v1/image/dockerfile-template",
|
2444
|
+
contentType: "application/json",
|
2445
|
+
queryParams: {},
|
2446
|
+
pathParams: {},
|
2447
|
+
headers: {}
|
2448
|
+
};
|
2449
|
+
const localVarHeaderParameter = {};
|
2450
|
+
const localVarQueryParameter = {};
|
2451
|
+
let imageId;
|
2452
|
+
if (showDockerfileTemplateRequest !== null && showDockerfileTemplateRequest !== undefined) {
|
2453
|
+
if (showDockerfileTemplateRequest instanceof ShowDockerfileTemplateRequest_1.ShowDockerfileTemplateRequest) {
|
2454
|
+
imageId = showDockerfileTemplateRequest.imageId;
|
2455
|
+
}
|
2456
|
+
else {
|
2457
|
+
imageId = showDockerfileTemplateRequest['image_id'];
|
2458
|
+
}
|
2459
|
+
}
|
2460
|
+
if (imageId === null || imageId === undefined) {
|
2461
|
+
throw new RequiredError('imageId', 'Required parameter imageId was null or undefined when calling showDockerfileTemplate.');
|
2462
|
+
}
|
2463
|
+
if (imageId !== null && imageId !== undefined) {
|
2464
|
+
localVarQueryParameter['image_id'] = imageId;
|
2465
|
+
}
|
2466
|
+
options.queryParams = localVarQueryParameter;
|
2467
|
+
options.headers = localVarHeaderParameter;
|
2468
|
+
return options;
|
2469
|
+
},
|
1950
2470
|
/**
|
1951
2471
|
* 获取构建历史详情信息接口
|
1952
2472
|
*
|
@@ -2292,6 +2812,37 @@ const ParamCreater = function () {
|
|
2292
2812
|
options.headers = localVarHeaderParameter;
|
2293
2813
|
return options;
|
2294
2814
|
},
|
2815
|
+
/**
|
2816
|
+
* 获取通知信息
|
2817
|
+
*
|
2818
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2819
|
+
*/
|
2820
|
+
showJobNoticeConfigInfo(showJobNoticeConfigInfoRequest) {
|
2821
|
+
const options = {
|
2822
|
+
method: "GET",
|
2823
|
+
url: "/v1/job/{job_id}/notice",
|
2824
|
+
contentType: "application/json",
|
2825
|
+
queryParams: {},
|
2826
|
+
pathParams: {},
|
2827
|
+
headers: {}
|
2828
|
+
};
|
2829
|
+
const localVarHeaderParameter = {};
|
2830
|
+
let jobId;
|
2831
|
+
if (showJobNoticeConfigInfoRequest !== null && showJobNoticeConfigInfoRequest !== undefined) {
|
2832
|
+
if (showJobNoticeConfigInfoRequest instanceof ShowJobNoticeConfigInfoRequest_1.ShowJobNoticeConfigInfoRequest) {
|
2833
|
+
jobId = showJobNoticeConfigInfoRequest.jobId;
|
2834
|
+
}
|
2835
|
+
else {
|
2836
|
+
jobId = showJobNoticeConfigInfoRequest['job_id'];
|
2837
|
+
}
|
2838
|
+
}
|
2839
|
+
if (jobId === null || jobId === undefined) {
|
2840
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobNoticeConfigInfo.');
|
2841
|
+
}
|
2842
|
+
options.pathParams = { 'job_id': jobId, };
|
2843
|
+
options.headers = localVarHeaderParameter;
|
2844
|
+
return options;
|
2845
|
+
},
|
2295
2846
|
/**
|
2296
2847
|
* 获取构建任务的角色权限矩阵信息
|
2297
2848
|
*
|
@@ -2427,6 +2978,57 @@ const ParamCreater = function () {
|
|
2427
2978
|
options.headers = localVarHeaderParameter;
|
2428
2979
|
return options;
|
2429
2980
|
},
|
2981
|
+
/**
|
2982
|
+
* 文件管理查询权限
|
2983
|
+
*
|
2984
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2985
|
+
*/
|
2986
|
+
showKeystorePermission(showKeystorePermissionRequest) {
|
2987
|
+
const options = {
|
2988
|
+
method: "GET",
|
2989
|
+
url: "/v2/keystore/permission/{keystore_id}/query",
|
2990
|
+
contentType: "application/json",
|
2991
|
+
queryParams: {},
|
2992
|
+
pathParams: {},
|
2993
|
+
headers: {}
|
2994
|
+
};
|
2995
|
+
const localVarHeaderParameter = {};
|
2996
|
+
const localVarQueryParameter = {};
|
2997
|
+
let keystoreId;
|
2998
|
+
let pageSize;
|
2999
|
+
let page;
|
3000
|
+
if (showKeystorePermissionRequest !== null && showKeystorePermissionRequest !== undefined) {
|
3001
|
+
if (showKeystorePermissionRequest instanceof ShowKeystorePermissionRequest_1.ShowKeystorePermissionRequest) {
|
3002
|
+
keystoreId = showKeystorePermissionRequest.keystoreId;
|
3003
|
+
pageSize = showKeystorePermissionRequest.pageSize;
|
3004
|
+
page = showKeystorePermissionRequest.page;
|
3005
|
+
}
|
3006
|
+
else {
|
3007
|
+
keystoreId = showKeystorePermissionRequest['keystore_id'];
|
3008
|
+
pageSize = showKeystorePermissionRequest['page_size'];
|
3009
|
+
page = showKeystorePermissionRequest['page'];
|
3010
|
+
}
|
3011
|
+
}
|
3012
|
+
if (keystoreId === null || keystoreId === undefined) {
|
3013
|
+
throw new RequiredError('keystoreId', 'Required parameter keystoreId was null or undefined when calling showKeystorePermission.');
|
3014
|
+
}
|
3015
|
+
if (pageSize === null || pageSize === undefined) {
|
3016
|
+
throw new RequiredError('pageSize', 'Required parameter pageSize was null or undefined when calling showKeystorePermission.');
|
3017
|
+
}
|
3018
|
+
if (pageSize !== null && pageSize !== undefined) {
|
3019
|
+
localVarQueryParameter['page_size'] = pageSize;
|
3020
|
+
}
|
3021
|
+
if (page === null || page === undefined) {
|
3022
|
+
throw new RequiredError('page', 'Required parameter page was null or undefined when calling showKeystorePermission.');
|
3023
|
+
}
|
3024
|
+
if (page !== null && page !== undefined) {
|
3025
|
+
localVarQueryParameter['page'] = page;
|
3026
|
+
}
|
3027
|
+
options.queryParams = localVarQueryParameter;
|
3028
|
+
options.pathParams = { 'keystore_id': keystoreId, };
|
3029
|
+
options.headers = localVarHeaderParameter;
|
3030
|
+
return options;
|
3031
|
+
},
|
2430
3032
|
/**
|
2431
3033
|
* 查询指定代码仓库最近一次成功的构建历史
|
2432
3034
|
*
|
@@ -2707,6 +3309,24 @@ const ParamCreater = function () {
|
|
2707
3309
|
options.headers = localVarHeaderParameter;
|
2708
3310
|
return options;
|
2709
3311
|
},
|
3312
|
+
/**
|
3313
|
+
* 获取当前用户的项目信息列表
|
3314
|
+
*
|
3315
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3316
|
+
*/
|
3317
|
+
showRelatedProject() {
|
3318
|
+
const options = {
|
3319
|
+
method: "GET",
|
3320
|
+
url: "/v1/domain/project/related",
|
3321
|
+
contentType: "application/json",
|
3322
|
+
queryParams: {},
|
3323
|
+
pathParams: {},
|
3324
|
+
headers: {}
|
3325
|
+
};
|
3326
|
+
const localVarHeaderParameter = {};
|
3327
|
+
options.headers = localVarHeaderParameter;
|
3328
|
+
return options;
|
3329
|
+
},
|
2710
3330
|
/**
|
2711
3331
|
* 获取覆盖率接口
|
2712
3332
|
*
|