@huaweicloud/huaweicloud-sdk-codeartsbuild 3.1.150 → 3.1.151
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 +410 -0
- package/v3/CodeArtsBuildClient.d.ts.map +1 -1
- package/v3/CodeArtsBuildClient.js +902 -20
- package/v3/CodeArtsBuildClient.js.map +1 -1
- package/v3/model/BuildParams.d.ts +11 -0
- package/v3/model/BuildParams.d.ts.map +1 -0
- package/v3/model/BuildParams.js +21 -0
- package/v3/model/BuildParams.js.map +1 -0
- package/v3/model/BuildParamsBodyResult.d.ts +9 -0
- package/v3/model/BuildParamsBodyResult.d.ts.map +1 -0
- package/v3/model/BuildParamsBodyResult.js +19 -0
- package/v3/model/BuildParamsBodyResult.js.map +1 -0
- package/v3/model/BuildRecord.d.ts +116 -0
- package/v3/model/BuildRecord.d.ts.map +1 -0
- package/v3/model/BuildRecord.js +277 -0
- package/v3/model/BuildRecord.js.map +1 -0
- package/v3/model/BuildRecordBuildRecordType.d.ts +18 -0
- package/v3/model/BuildRecordBuildRecordType.d.ts.map +1 -0
- package/v3/model/BuildRecordBuildRecordType.js +43 -0
- package/v3/model/BuildRecordBuildRecordType.js.map +1 -0
- package/v3/model/BuildRecordParameters.d.ts +12 -0
- package/v3/model/BuildRecordParameters.d.ts.map +1 -0
- package/v3/model/BuildRecordParameters.js +25 -0
- package/v3/model/BuildRecordParameters.js.map +1 -0
- package/v3/model/Constraints.d.ts +10 -0
- package/v3/model/Constraints.d.ts.map +1 -0
- package/v3/model/Constraints.js +21 -0
- package/v3/model/Constraints.js.map +1 -0
- package/v3/model/ListBuildInfoRecordByJobIdRequest.d.ts +24 -0
- package/v3/model/ListBuildInfoRecordByJobIdRequest.d.ts.map +1 -0
- package/v3/model/ListBuildInfoRecordByJobIdRequest.js +62 -0
- package/v3/model/ListBuildInfoRecordByJobIdRequest.js.map +1 -0
- package/v3/model/ListBuildInfoRecordByJobIdResponse.d.ts +12 -0
- package/v3/model/ListBuildInfoRecordByJobIdResponse.d.ts.map +1 -0
- package/v3/model/ListBuildInfoRecordByJobIdResponse.js +23 -0
- package/v3/model/ListBuildInfoRecordByJobIdResponse.js.map +1 -0
- package/v3/model/ListOfficialTemplateRequest.d.ts +12 -0
- package/v3/model/ListOfficialTemplateRequest.d.ts.map +1 -0
- package/v3/model/ListOfficialTemplateRequest.js +27 -0
- package/v3/model/ListOfficialTemplateRequest.js.map +1 -0
- package/v3/model/ListOfficialTemplateResponse.d.ts +12 -0
- package/v3/model/ListOfficialTemplateResponse.d.ts.map +1 -0
- package/v3/model/ListOfficialTemplateResponse.js +23 -0
- package/v3/model/ListOfficialTemplateResponse.js.map +1 -0
- package/v3/model/ListOfficialTemplateResult.d.ts +11 -0
- package/v3/model/ListOfficialTemplateResult.d.ts.map +1 -0
- package/v3/model/ListOfficialTemplateResult.js +23 -0
- package/v3/model/ListOfficialTemplateResult.js.map +1 -0
- package/v3/model/ListProjectJobsRequest.d.ts +42 -0
- package/v3/model/ListProjectJobsRequest.d.ts.map +1 -0
- package/v3/model/ListProjectJobsRequest.js +106 -0
- package/v3/model/ListProjectJobsRequest.js.map +1 -0
- package/v3/model/ListProjectJobsResponse.d.ts +10 -0
- package/v3/model/ListProjectJobsResponse.d.ts.map +1 -0
- package/v3/model/ListProjectJobsResponse.js +19 -0
- package/v3/model/ListProjectJobsResponse.js.map +1 -0
- package/v3/model/ListRecyclingJobRequest.d.ts +14 -0
- package/v3/model/ListRecyclingJobRequest.d.ts.map +1 -0
- package/v3/model/ListRecyclingJobRequest.js +33 -0
- package/v3/model/ListRecyclingJobRequest.js.map +1 -0
- package/v3/model/ListRecyclingJobResponse.d.ts +18 -0
- package/v3/model/ListRecyclingJobResponse.d.ts.map +1 -0
- package/v3/model/ListRecyclingJobResponse.js +37 -0
- package/v3/model/ListRecyclingJobResponse.js.map +1 -0
- package/v3/model/Parameter.d.ts +9 -0
- package/v3/model/Parameter.d.ts.map +1 -0
- package/v3/model/Parameter.js +17 -0
- package/v3/model/Parameter.js.map +1 -0
- package/v3/model/Params.d.ts +19 -0
- package/v3/model/Params.d.ts.map +1 -0
- package/v3/model/Params.js +37 -0
- package/v3/model/Params.js.map +1 -0
- package/v3/model/RecyclingJob.d.ts +40 -0
- package/v3/model/RecyclingJob.d.ts.map +1 -0
- package/v3/model/RecyclingJob.js +99 -0
- package/v3/model/RecyclingJob.js.map +1 -0
- package/v3/model/RecyclingJobsResult.d.ts +15 -0
- package/v3/model/RecyclingJobsResult.d.ts.map +1 -0
- package/v3/model/RecyclingJobsResult.js +33 -0
- package/v3/model/RecyclingJobsResult.js.map +1 -0
- package/v3/model/ShowBuildParamsListRequest.d.ts +4 -0
- package/v3/model/ShowBuildParamsListRequest.d.ts.map +1 -0
- package/v3/model/ShowBuildParamsListRequest.js +9 -0
- package/v3/model/ShowBuildParamsListRequest.js.map +1 -0
- package/v3/model/ShowBuildParamsListResponse.d.ts +12 -0
- package/v3/model/ShowBuildParamsListResponse.d.ts.map +1 -0
- package/v3/model/ShowBuildParamsListResponse.js +23 -0
- package/v3/model/ShowBuildParamsListResponse.js.map +1 -0
- package/v3/model/ShowBuildRecordBuildScriptRequest.d.ts +8 -0
- package/v3/model/ShowBuildRecordBuildScriptRequest.d.ts.map +1 -0
- package/v3/model/ShowBuildRecordBuildScriptRequest.js +20 -0
- package/v3/model/ShowBuildRecordBuildScriptRequest.js.map +1 -0
- package/v3/model/ShowBuildRecordBuildScriptResponse.d.ts +11 -0
- package/v3/model/ShowBuildRecordBuildScriptResponse.d.ts.map +1 -0
- package/v3/model/ShowBuildRecordBuildScriptResponse.js +23 -0
- package/v3/model/ShowBuildRecordBuildScriptResponse.js.map +1 -0
- package/v3/model/ShowBuildRecordRequest.d.ts +8 -0
- package/v3/model/ShowBuildRecordRequest.d.ts.map +1 -0
- package/v3/model/ShowBuildRecordRequest.js +20 -0
- package/v3/model/ShowBuildRecordRequest.js.map +1 -0
- package/v3/model/ShowBuildRecordResponse.d.ts +12 -0
- package/v3/model/ShowBuildRecordResponse.d.ts.map +1 -0
- package/v3/model/ShowBuildRecordResponse.js +23 -0
- package/v3/model/ShowBuildRecordResponse.js.map +1 -0
- package/v3/model/ShowImageTemplateListRequest.d.ts +4 -0
- package/v3/model/ShowImageTemplateListRequest.d.ts.map +1 -0
- package/v3/model/ShowImageTemplateListRequest.js +9 -0
- package/v3/model/ShowImageTemplateListRequest.js.map +1 -0
- package/v3/model/ShowImageTemplateListResponse.d.ts +12 -0
- package/v3/model/ShowImageTemplateListResponse.d.ts.map +1 -0
- package/v3/model/ShowImageTemplateListResponse.js +23 -0
- package/v3/model/ShowImageTemplateListResponse.js.map +1 -0
- package/v3/model/ShowImageTemplateListResponseBodyResult.d.ts +9 -0
- package/v3/model/ShowImageTemplateListResponseBodyResult.d.ts.map +1 -0
- package/v3/model/ShowImageTemplateListResponseBodyResult.js +19 -0
- package/v3/model/ShowImageTemplateListResponseBodyResult.js.map +1 -0
- package/v3/model/ShowImageTemplateListResponseBodyResultImageTemplates.d.ts +30 -0
- package/v3/model/ShowImageTemplateListResponseBodyResultImageTemplates.d.ts.map +1 -0
- package/v3/model/ShowImageTemplateListResponseBodyResultImageTemplates.js +71 -0
- package/v3/model/ShowImageTemplateListResponseBodyResultImageTemplates.js.map +1 -0
- package/v3/model/ShowJobBuildTimeRequest.d.ts +16 -0
- package/v3/model/ShowJobBuildTimeRequest.d.ts.map +1 -0
- package/v3/model/ShowJobBuildTimeRequest.js +40 -0
- package/v3/model/ShowJobBuildTimeRequest.js.map +1 -0
- package/v3/model/ShowJobBuildTimeResponse.d.ts +10 -0
- package/v3/model/ShowJobBuildTimeResponse.d.ts.map +1 -0
- package/v3/model/ShowJobBuildTimeResponse.js +19 -0
- package/v3/model/ShowJobBuildTimeResponse.js.map +1 -0
- package/v3/model/ShowJobBuildTimeResult.d.ts +23 -0
- package/v3/model/ShowJobBuildTimeResult.d.ts.map +1 -0
- package/v3/model/ShowJobBuildTimeResult.js +53 -0
- package/v3/model/ShowJobBuildTimeResult.js.map +1 -0
- package/v3/model/ShowJobBuildTimeResultChart.d.ts +20 -0
- package/v3/model/ShowJobBuildTimeResultChart.d.ts.map +1 -0
- package/v3/model/ShowJobBuildTimeResultChart.js +49 -0
- package/v3/model/ShowJobBuildTimeResultChart.js.map +1 -0
- package/v3/model/ShowJobConfigDiffRequest.d.ts +16 -0
- package/v3/model/ShowJobConfigDiffRequest.d.ts.map +1 -0
- package/v3/model/ShowJobConfigDiffRequest.js +42 -0
- package/v3/model/ShowJobConfigDiffRequest.js.map +1 -0
- package/v3/model/ShowJobConfigDiffResponse.d.ts +9 -0
- package/v3/model/ShowJobConfigDiffResponse.d.ts.map +1 -0
- package/v3/model/ShowJobConfigDiffResponse.js +19 -0
- package/v3/model/ShowJobConfigDiffResponse.js.map +1 -0
- package/v3/model/ShowJobConfigRequest.d.ts +12 -0
- package/v3/model/ShowJobConfigRequest.d.ts.map +1 -0
- package/v3/model/ShowJobConfigRequest.js +30 -0
- package/v3/model/ShowJobConfigRequest.js.map +1 -0
- package/v3/model/ShowJobConfigResponse.d.ts +12 -0
- package/v3/model/ShowJobConfigResponse.d.ts.map +1 -0
- package/v3/model/ShowJobConfigResponse.js +23 -0
- package/v3/model/ShowJobConfigResponse.js.map +1 -0
- package/v3/model/ShowJobInfoRequest.d.ts +8 -0
- package/v3/model/ShowJobInfoRequest.d.ts.map +1 -0
- package/v3/model/ShowJobInfoRequest.js +20 -0
- package/v3/model/ShowJobInfoRequest.js.map +1 -0
- package/v3/model/ShowJobInfoResponse.d.ts +12 -0
- package/v3/model/ShowJobInfoResponse.d.ts.map +1 -0
- package/v3/model/ShowJobInfoResponse.js +23 -0
- package/v3/model/ShowJobInfoResponse.js.map +1 -0
- package/v3/model/ShowJobInfoResult.d.ts +86 -0
- package/v3/model/ShowJobInfoResult.d.ts.map +1 -0
- package/v3/model/ShowJobInfoResult.js +211 -0
- package/v3/model/ShowJobInfoResult.js.map +1 -0
- package/v3/model/ShowJobRolePermissionRequest.d.ts +8 -0
- package/v3/model/ShowJobRolePermissionRequest.d.ts.map +1 -0
- package/v3/model/ShowJobRolePermissionRequest.js +20 -0
- package/v3/model/ShowJobRolePermissionRequest.js.map +1 -0
- package/v3/model/ShowJobRolePermissionResponse.d.ts +10 -0
- package/v3/model/ShowJobRolePermissionResponse.d.ts.map +1 -0
- package/v3/model/ShowJobRolePermissionResponse.js +19 -0
- package/v3/model/ShowJobRolePermissionResponse.js.map +1 -0
- package/v3/model/ShowJobRolePermissionResult.d.ts +56 -0
- package/v3/model/ShowJobRolePermissionResult.d.ts.map +1 -0
- package/v3/model/ShowJobRolePermissionResult.js +137 -0
- package/v3/model/ShowJobRolePermissionResult.js.map +1 -0
- package/v3/model/ShowJobSystemParametersRequest.d.ts +4 -0
- package/v3/model/ShowJobSystemParametersRequest.d.ts.map +1 -0
- package/v3/model/ShowJobSystemParametersRequest.js +9 -0
- package/v3/model/ShowJobSystemParametersRequest.js.map +1 -0
- package/v3/model/ShowJobSystemParametersResponse.d.ts +12 -0
- package/v3/model/ShowJobSystemParametersResponse.d.ts.map +1 -0
- package/v3/model/ShowJobSystemParametersResponse.js +23 -0
- package/v3/model/ShowJobSystemParametersResponse.js.map +1 -0
- package/v3/model/ShowProjectPermissionRequest.d.ts +8 -0
- package/v3/model/ShowProjectPermissionRequest.d.ts.map +1 -0
- package/v3/model/ShowProjectPermissionRequest.js +20 -0
- package/v3/model/ShowProjectPermissionRequest.js.map +1 -0
- package/v3/model/ShowProjectPermissionResponse.d.ts +12 -0
- package/v3/model/ShowProjectPermissionResponse.d.ts.map +1 -0
- package/v3/model/ShowProjectPermissionResponse.js +23 -0
- package/v3/model/ShowProjectPermissionResponse.js.map +1 -0
- package/v3/model/ShowUserProjectPermissionResult.d.ts +28 -0
- package/v3/model/ShowUserProjectPermissionResult.d.ts.map +1 -0
- package/v3/model/ShowUserProjectPermissionResult.js +69 -0
- package/v3/model/ShowUserProjectPermissionResult.js.map +1 -0
- package/v3/model/SystemParametersResult.d.ts +12 -0
- package/v3/model/SystemParametersResult.d.ts.map +1 -0
- package/v3/model/SystemParametersResult.js +27 -0
- package/v3/model/SystemParametersResult.js.map +1 -0
- package/v3/model/TemplateList.d.ts +38 -0
- package/v3/model/TemplateList.d.ts.map +1 -0
- package/v3/model/TemplateList.js +79 -0
- package/v3/model/TemplateList.js.map +1 -0
- package/v3/public-api.d.ts +50 -0
- package/v3/public-api.d.ts.map +1 -1
- package/v3/public-api.js +50 -0
- package/v3/public-api.js.map +1 -1
@@ -14,22 +14,34 @@ const DownloadLogByRecordIdRequest_1 = require("./model/DownloadLogByRecordIdReq
|
|
14
14
|
const DownloadRealTimeLogRequest_1 = require("./model/DownloadRealTimeLogRequest");
|
15
15
|
const DownloadTaskLogRequest_1 = require("./model/DownloadTaskLogRequest");
|
16
16
|
const EnableBuildJobRequest_1 = require("./model/EnableBuildJobRequest");
|
17
|
+
const ListBuildInfoRecordByJobIdRequest_1 = require("./model/ListBuildInfoRecordByJobIdRequest");
|
17
18
|
const ListBuildInfoRecordRequest_1 = require("./model/ListBuildInfoRecordRequest");
|
18
19
|
const ListJobConfigRequest_1 = require("./model/ListJobConfigRequest");
|
19
20
|
const ListNoticeRequest_1 = require("./model/ListNoticeRequest");
|
21
|
+
const ListOfficialTemplateRequest_1 = require("./model/ListOfficialTemplateRequest");
|
22
|
+
const ListProjectJobsRequest_1 = require("./model/ListProjectJobsRequest");
|
23
|
+
const ListRecyclingJobRequest_1 = require("./model/ListRecyclingJobRequest");
|
20
24
|
const ListTemplatesRequest_1 = require("./model/ListTemplatesRequest");
|
21
25
|
const RunJobRequest_1 = require("./model/RunJobRequest");
|
26
|
+
const ShowBuildRecordBuildScriptRequest_1 = require("./model/ShowBuildRecordBuildScriptRequest");
|
22
27
|
const ShowBuildRecordFullStagesRequest_1 = require("./model/ShowBuildRecordFullStagesRequest");
|
28
|
+
const ShowBuildRecordRequest_1 = require("./model/ShowBuildRecordRequest");
|
23
29
|
const ShowFlowGraphRequest_1 = require("./model/ShowFlowGraphRequest");
|
24
30
|
const ShowHistoryDetailsRequest_1 = require("./model/ShowHistoryDetailsRequest");
|
25
31
|
const ShowJobBuildSuccessRatioRequest_1 = require("./model/ShowJobBuildSuccessRatioRequest");
|
32
|
+
const ShowJobBuildTimeRequest_1 = require("./model/ShowJobBuildTimeRequest");
|
33
|
+
const ShowJobConfigDiffRequest_1 = require("./model/ShowJobConfigDiffRequest");
|
34
|
+
const ShowJobConfigRequest_1 = require("./model/ShowJobConfigRequest");
|
35
|
+
const ShowJobInfoRequest_1 = require("./model/ShowJobInfoRequest");
|
26
36
|
const ShowJobListByProjectIdRequest_1 = require("./model/ShowJobListByProjectIdRequest");
|
37
|
+
const ShowJobRolePermissionRequest_1 = require("./model/ShowJobRolePermissionRequest");
|
27
38
|
const ShowJobStatusRequest_1 = require("./model/ShowJobStatusRequest");
|
28
39
|
const ShowJobSuccessRatioRequest_1 = require("./model/ShowJobSuccessRatioRequest");
|
29
40
|
const ShowLastHistoryRequest_1 = require("./model/ShowLastHistoryRequest");
|
30
41
|
const ShowListHistoryRequest_1 = require("./model/ShowListHistoryRequest");
|
31
42
|
const ShowListPeriodHistoryRequest_1 = require("./model/ShowListPeriodHistoryRequest");
|
32
43
|
const ShowOutputInfoRequest_1 = require("./model/ShowOutputInfoRequest");
|
44
|
+
const ShowProjectPermissionRequest_1 = require("./model/ShowProjectPermissionRequest");
|
33
45
|
const ShowRecordDetailRequest_1 = require("./model/ShowRecordDetailRequest");
|
34
46
|
const ShowRecordInfoRequest_1 = require("./model/ShowRecordInfoRequest");
|
35
47
|
const ShowReportSummaryRequest_1 = require("./model/ShowReportSummaryRequest");
|
@@ -254,6 +266,26 @@ class CodeArtsBuildClient {
|
|
254
266
|
options['responseHeaders'] = [''];
|
255
267
|
return this.hcClient.sendRequest(options);
|
256
268
|
}
|
269
|
+
/**
|
270
|
+
* 获取任务构建记录列表v1
|
271
|
+
*
|
272
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
273
|
+
*
|
274
|
+
* @summary 获取任务构建记录列表v1
|
275
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
276
|
+
* @param {string} startTime 区间开始时间,格式yyyy-MM-dd HH:mm:ss。
|
277
|
+
* @param {string} endTime 区间结束时间,格式yyyy-MM-dd HH:mm:ss。
|
278
|
+
* @param {number} [pageIndex] 分页页码,表示从此页开始查询, page_index大于等于0
|
279
|
+
* @param {number} [pageSize] 每页显示的条目数量,page_size小于等于100
|
280
|
+
* @param {*} [options] Override http request option.
|
281
|
+
* @throws {RequiredError}
|
282
|
+
*/
|
283
|
+
listBuildInfoRecordByJobId(listBuildInfoRecordByJobIdRequest) {
|
284
|
+
const options = (0, exports.ParamCreater)().listBuildInfoRecordByJobId(listBuildInfoRecordByJobIdRequest);
|
285
|
+
// @ts-ignore
|
286
|
+
options['responseHeaders'] = [''];
|
287
|
+
return this.hcClient.sendRequest(options);
|
288
|
+
}
|
257
289
|
/**
|
258
290
|
* 获取构建任务详情
|
259
291
|
*
|
@@ -287,6 +319,67 @@ class CodeArtsBuildClient {
|
|
287
319
|
options['responseHeaders'] = [''];
|
288
320
|
return this.hcClient.sendRequest(options);
|
289
321
|
}
|
322
|
+
/**
|
323
|
+
* 查询官方模版
|
324
|
+
*
|
325
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
326
|
+
*
|
327
|
+
* @summary 查询官方模版
|
328
|
+
* @param {string} [name] 检索的模板的名字模糊查询
|
329
|
+
* @param {string} [page] 分页页码, 表示从此页开始查询
|
330
|
+
* @param {string} [pageSize] 每页显示的条目数量,page_size小于等于100
|
331
|
+
* @param {*} [options] Override http request option.
|
332
|
+
* @throws {RequiredError}
|
333
|
+
*/
|
334
|
+
listOfficialTemplate(listOfficialTemplateRequest) {
|
335
|
+
const options = (0, exports.ParamCreater)().listOfficialTemplate(listOfficialTemplateRequest);
|
336
|
+
// @ts-ignore
|
337
|
+
options['responseHeaders'] = [''];
|
338
|
+
return this.hcClient.sendRequest(options);
|
339
|
+
}
|
340
|
+
/**
|
341
|
+
* 查询项目任务列表
|
342
|
+
*
|
343
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
344
|
+
*
|
345
|
+
* @summary 查询项目任务列表
|
346
|
+
* @param {string} projectId CodeArts项目ID,32位数字、小写字母组合。
|
347
|
+
* @param {number} pageIndex **参数解释**: 分页页码, 表示从此页开始查询。 **约束限制**: 不涉及。 **取值范围**: 只能使用数字,大于等于0。
|
348
|
+
* @param {number} pageSize **参数解释**: 每页显示的条目数量。 **约束限制**: 不涉及。 **取值范围**: 只能使用数字,小于等于100。
|
349
|
+
* @param {string} [search] 查询条件
|
350
|
+
* @param {string} [sortField] 排序的字段
|
351
|
+
* @param {string} [sortOrder] 排序顺序
|
352
|
+
* @param {string} [creatorId] 创建人ID
|
353
|
+
* @param {string} [buildStatus] 构建状态过滤条件
|
354
|
+
* @param {boolean} [byGroup] 是否分组
|
355
|
+
* @param {string} [groupPathId] 分组ID
|
356
|
+
* @param {*} [options] Override http request option.
|
357
|
+
* @throws {RequiredError}
|
358
|
+
*/
|
359
|
+
listProjectJobs(listProjectJobsRequest) {
|
360
|
+
const options = (0, exports.ParamCreater)().listProjectJobs(listProjectJobsRequest);
|
361
|
+
// @ts-ignore
|
362
|
+
options['responseHeaders'] = [''];
|
363
|
+
return this.hcClient.sendRequest(options);
|
364
|
+
}
|
365
|
+
/**
|
366
|
+
* 查看回收站中删除的构建任务列表
|
367
|
+
*
|
368
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
369
|
+
*
|
370
|
+
* @summary 查看回收站中删除的构建任务列表
|
371
|
+
* @param {number} [pageSize] 每页显示的条目数量,page_size小于等于100
|
372
|
+
* @param {number} [pageNo] 分页页码, 表示从此页开始查询, page_no大于等于1
|
373
|
+
* @param {string} [search] 搜索的任务名称
|
374
|
+
* @param {*} [options] Override http request option.
|
375
|
+
* @throws {RequiredError}
|
376
|
+
*/
|
377
|
+
listRecyclingJob(listRecyclingJobRequest) {
|
378
|
+
const options = (0, exports.ParamCreater)().listRecyclingJob(listRecyclingJobRequest);
|
379
|
+
// @ts-ignore
|
380
|
+
options['responseHeaders'] = [''];
|
381
|
+
return this.hcClient.sendRequest(options);
|
382
|
+
}
|
290
383
|
/**
|
291
384
|
* 查询构建模板
|
292
385
|
*
|
@@ -321,6 +414,53 @@ class CodeArtsBuildClient {
|
|
321
414
|
options['responseHeaders'] = [''];
|
322
415
|
return this.hcClient.sendRequest(options);
|
323
416
|
}
|
417
|
+
/**
|
418
|
+
* 编辑页获取参数类型的接口
|
419
|
+
*
|
420
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
421
|
+
*
|
422
|
+
* @summary 编辑页获取参数类型的接口
|
423
|
+
* @param {*} [options] Override http request option.
|
424
|
+
* @throws {RequiredError}
|
425
|
+
*/
|
426
|
+
showBuildParamsList(showBuildParamsListRequest) {
|
427
|
+
const options = (0, exports.ParamCreater)().showBuildParamsList();
|
428
|
+
// @ts-ignore
|
429
|
+
options['responseHeaders'] = [''];
|
430
|
+
return this.hcClient.sendRequest(options);
|
431
|
+
}
|
432
|
+
/**
|
433
|
+
* 查询指定构建记录详情
|
434
|
+
*
|
435
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
436
|
+
*
|
437
|
+
* @summary 查询指定构建记录详情
|
438
|
+
* @param {string} recordId 记录ID,36位数字、小写字母、\'-\'组组合。
|
439
|
+
* @param {*} [options] Override http request option.
|
440
|
+
* @throws {RequiredError}
|
441
|
+
*/
|
442
|
+
showBuildRecord(showBuildRecordRequest) {
|
443
|
+
const options = (0, exports.ParamCreater)().showBuildRecord(showBuildRecordRequest);
|
444
|
+
// @ts-ignore
|
445
|
+
options['responseHeaders'] = [''];
|
446
|
+
return this.hcClient.sendRequest(options);
|
447
|
+
}
|
448
|
+
/**
|
449
|
+
* 获取构建记录的构建脚本
|
450
|
+
*
|
451
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
452
|
+
*
|
453
|
+
* @summary 获取构建记录的构建脚本
|
454
|
+
* @param {string} recordId 记录ID,36位数字、小写字母、\'-\'组组合。
|
455
|
+
* @param {*} [options] Override http request option.
|
456
|
+
* @throws {RequiredError}
|
457
|
+
*/
|
458
|
+
showBuildRecordBuildScript(showBuildRecordBuildScriptRequest) {
|
459
|
+
const options = (0, exports.ParamCreater)().showBuildRecordBuildScript(showBuildRecordBuildScriptRequest);
|
460
|
+
// @ts-ignore
|
461
|
+
options['responseHeaders'] = [''];
|
462
|
+
return this.hcClient.sendRequest(options);
|
463
|
+
}
|
324
464
|
/**
|
325
465
|
* 获取任务各阶段信息
|
326
466
|
*
|
@@ -355,6 +495,21 @@ class CodeArtsBuildClient {
|
|
355
495
|
options['responseHeaders'] = [''];
|
356
496
|
return this.hcClient.sendRequest(options);
|
357
497
|
}
|
498
|
+
/**
|
499
|
+
* 获取镜像模板列表
|
500
|
+
*
|
501
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
502
|
+
*
|
503
|
+
* @summary 获取镜像模板列表
|
504
|
+
* @param {*} [options] Override http request option.
|
505
|
+
* @throws {RequiredError}
|
506
|
+
*/
|
507
|
+
showImageTemplateList(showImageTemplateListRequest) {
|
508
|
+
const options = (0, exports.ParamCreater)().showImageTemplateList();
|
509
|
+
// @ts-ignore
|
510
|
+
options['responseHeaders'] = [''];
|
511
|
+
return this.hcClient.sendRequest(options);
|
512
|
+
}
|
358
513
|
/**
|
359
514
|
* 查询构建成功率
|
360
515
|
*
|
@@ -374,6 +529,76 @@ class CodeArtsBuildClient {
|
|
374
529
|
options['responseHeaders'] = [''];
|
375
530
|
return this.hcClient.sendRequest(options);
|
376
531
|
}
|
532
|
+
/**
|
533
|
+
* 洞察构建时长
|
534
|
+
*
|
535
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
536
|
+
*
|
537
|
+
* @summary 洞察构建时长
|
538
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
539
|
+
* @param {string} repositoryName 代码仓名称。
|
540
|
+
* @param {number} interval 查询时间,查最近几天的。
|
541
|
+
* @param {string} [branch] 代码仓分支名。
|
542
|
+
* @param {*} [options] Override http request option.
|
543
|
+
* @throws {RequiredError}
|
544
|
+
*/
|
545
|
+
showJobBuildTime(showJobBuildTimeRequest) {
|
546
|
+
const options = (0, exports.ParamCreater)().showJobBuildTime(showJobBuildTimeRequest);
|
547
|
+
// @ts-ignore
|
548
|
+
options['responseHeaders'] = [''];
|
549
|
+
return this.hcClient.sendRequest(options);
|
550
|
+
}
|
551
|
+
/**
|
552
|
+
* 获取构建任务详情
|
553
|
+
*
|
554
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
555
|
+
*
|
556
|
+
* @summary 获取构建任务详情
|
557
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
558
|
+
* @param {string} [getAllParams] 输入\"true\"或者\"false\"来控制返回参数是不是完整的
|
559
|
+
* @param {*} [options] Override http request option.
|
560
|
+
* @throws {RequiredError}
|
561
|
+
*/
|
562
|
+
showJobConfig(showJobConfigRequest) {
|
563
|
+
const options = (0, exports.ParamCreater)().showJobConfig(showJobConfigRequest);
|
564
|
+
// @ts-ignore
|
565
|
+
options['responseHeaders'] = [''];
|
566
|
+
return this.hcClient.sendRequest(options);
|
567
|
+
}
|
568
|
+
/**
|
569
|
+
* 获取构建任务配置的对比差异
|
570
|
+
*
|
571
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
572
|
+
*
|
573
|
+
* @summary 获取构建任务配置的对比差异
|
574
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
575
|
+
* @param {string} revisedlNo 新记录的序号
|
576
|
+
* @param {string} originalNo 原记录的序号
|
577
|
+
* @param {*} [options] Override http request option.
|
578
|
+
* @throws {RequiredError}
|
579
|
+
*/
|
580
|
+
showJobConfigDiff(showJobConfigDiffRequest) {
|
581
|
+
const options = (0, exports.ParamCreater)().showJobConfigDiff(showJobConfigDiffRequest);
|
582
|
+
// @ts-ignore
|
583
|
+
options['responseHeaders'] = [''];
|
584
|
+
return this.hcClient.sendRequest(options);
|
585
|
+
}
|
586
|
+
/**
|
587
|
+
* 查看构建任务构建信息
|
588
|
+
*
|
589
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
590
|
+
*
|
591
|
+
* @summary 查看构建任务构建信息
|
592
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
593
|
+
* @param {*} [options] Override http request option.
|
594
|
+
* @throws {RequiredError}
|
595
|
+
*/
|
596
|
+
showJobInfo(showJobInfoRequest) {
|
597
|
+
const options = (0, exports.ParamCreater)().showJobInfo(showJobInfoRequest);
|
598
|
+
// @ts-ignore
|
599
|
+
options['responseHeaders'] = [''];
|
600
|
+
return this.hcClient.sendRequest(options);
|
601
|
+
}
|
377
602
|
/**
|
378
603
|
* 查看项目下用户的构建任务列表
|
379
604
|
*
|
@@ -392,6 +617,22 @@ class CodeArtsBuildClient {
|
|
392
617
|
options['responseHeaders'] = [''];
|
393
618
|
return this.hcClient.sendRequest(options);
|
394
619
|
}
|
620
|
+
/**
|
621
|
+
* 获取构建任务的角色权限矩阵信息
|
622
|
+
*
|
623
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
624
|
+
*
|
625
|
+
* @summary 获取构建任务的角色权限矩阵信息
|
626
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
627
|
+
* @param {*} [options] Override http request option.
|
628
|
+
* @throws {RequiredError}
|
629
|
+
*/
|
630
|
+
showJobRolePermission(showJobRolePermissionRequest) {
|
631
|
+
const options = (0, exports.ParamCreater)().showJobRolePermission(showJobRolePermissionRequest);
|
632
|
+
// @ts-ignore
|
633
|
+
options['responseHeaders'] = [''];
|
634
|
+
return this.hcClient.sendRequest(options);
|
635
|
+
}
|
395
636
|
/**
|
396
637
|
* 查看任务运行状态
|
397
638
|
*
|
@@ -426,6 +667,21 @@ class CodeArtsBuildClient {
|
|
426
667
|
options['responseHeaders'] = [''];
|
427
668
|
return this.hcClient.sendRequest(options);
|
428
669
|
}
|
670
|
+
/**
|
671
|
+
* 查看系统预定义参数
|
672
|
+
*
|
673
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
674
|
+
*
|
675
|
+
* @summary 查看系统预定义参数
|
676
|
+
* @param {*} [options] Override http request option.
|
677
|
+
* @throws {RequiredError}
|
678
|
+
*/
|
679
|
+
showJobSystemParameters(showJobSystemParametersRequest) {
|
680
|
+
const options = (0, exports.ParamCreater)().showJobSystemParameters();
|
681
|
+
// @ts-ignore
|
682
|
+
options['responseHeaders'] = [''];
|
683
|
+
return this.hcClient.sendRequest(options);
|
684
|
+
}
|
429
685
|
/**
|
430
686
|
* 查询指定代码仓库最近一次成功的构建历史
|
431
687
|
*
|
@@ -499,6 +755,22 @@ class CodeArtsBuildClient {
|
|
499
755
|
options['responseHeaders'] = [''];
|
500
756
|
return this.hcClient.sendRequest(options);
|
501
757
|
}
|
758
|
+
/**
|
759
|
+
* 获取用户权限
|
760
|
+
*
|
761
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
762
|
+
*
|
763
|
+
* @summary 获取用户权限
|
764
|
+
* @param {string} projectId CodeArts项目ID,32位数字、小写字母组合。
|
765
|
+
* @param {*} [options] Override http request option.
|
766
|
+
* @throws {RequiredError}
|
767
|
+
*/
|
768
|
+
showProjectPermission(showProjectPermissionRequest) {
|
769
|
+
const options = (0, exports.ParamCreater)().showProjectPermission(showProjectPermissionRequest);
|
770
|
+
// @ts-ignore
|
771
|
+
options['responseHeaders'] = [''];
|
772
|
+
return this.hcClient.sendRequest(options);
|
773
|
+
}
|
502
774
|
/**
|
503
775
|
* 获取构建记录信息
|
504
776
|
*
|
@@ -1165,6 +1437,69 @@ const ParamCreater = function () {
|
|
1165
1437
|
options.headers = localVarHeaderParameter;
|
1166
1438
|
return options;
|
1167
1439
|
},
|
1440
|
+
/**
|
1441
|
+
* 获取任务构建记录列表v1
|
1442
|
+
*
|
1443
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1444
|
+
*/
|
1445
|
+
listBuildInfoRecordByJobId(listBuildInfoRecordByJobIdRequest) {
|
1446
|
+
const options = {
|
1447
|
+
method: "GET",
|
1448
|
+
url: "/v1/record/{job_id}/list",
|
1449
|
+
contentType: "application/json",
|
1450
|
+
queryParams: {},
|
1451
|
+
pathParams: {},
|
1452
|
+
headers: {}
|
1453
|
+
};
|
1454
|
+
const localVarHeaderParameter = {};
|
1455
|
+
const localVarQueryParameter = {};
|
1456
|
+
let jobId;
|
1457
|
+
let startTime;
|
1458
|
+
let endTime;
|
1459
|
+
let pageIndex;
|
1460
|
+
let pageSize;
|
1461
|
+
if (listBuildInfoRecordByJobIdRequest !== null && listBuildInfoRecordByJobIdRequest !== undefined) {
|
1462
|
+
if (listBuildInfoRecordByJobIdRequest instanceof ListBuildInfoRecordByJobIdRequest_1.ListBuildInfoRecordByJobIdRequest) {
|
1463
|
+
jobId = listBuildInfoRecordByJobIdRequest.jobId;
|
1464
|
+
startTime = listBuildInfoRecordByJobIdRequest.startTime;
|
1465
|
+
endTime = listBuildInfoRecordByJobIdRequest.endTime;
|
1466
|
+
pageIndex = listBuildInfoRecordByJobIdRequest.pageIndex;
|
1467
|
+
pageSize = listBuildInfoRecordByJobIdRequest.pageSize;
|
1468
|
+
}
|
1469
|
+
else {
|
1470
|
+
jobId = listBuildInfoRecordByJobIdRequest['job_id'];
|
1471
|
+
startTime = listBuildInfoRecordByJobIdRequest['start_time'];
|
1472
|
+
endTime = listBuildInfoRecordByJobIdRequest['end_time'];
|
1473
|
+
pageIndex = listBuildInfoRecordByJobIdRequest['page_index'];
|
1474
|
+
pageSize = listBuildInfoRecordByJobIdRequest['page_size'];
|
1475
|
+
}
|
1476
|
+
}
|
1477
|
+
if (jobId === null || jobId === undefined) {
|
1478
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling listBuildInfoRecordByJobId.');
|
1479
|
+
}
|
1480
|
+
if (startTime === null || startTime === undefined) {
|
1481
|
+
throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling listBuildInfoRecordByJobId.');
|
1482
|
+
}
|
1483
|
+
if (startTime !== null && startTime !== undefined) {
|
1484
|
+
localVarQueryParameter['start_time'] = startTime;
|
1485
|
+
}
|
1486
|
+
if (endTime === null || endTime === undefined) {
|
1487
|
+
throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling listBuildInfoRecordByJobId.');
|
1488
|
+
}
|
1489
|
+
if (endTime !== null && endTime !== undefined) {
|
1490
|
+
localVarQueryParameter['end_time'] = endTime;
|
1491
|
+
}
|
1492
|
+
if (pageIndex !== null && pageIndex !== undefined) {
|
1493
|
+
localVarQueryParameter['page_index'] = pageIndex;
|
1494
|
+
}
|
1495
|
+
if (pageSize !== null && pageSize !== undefined) {
|
1496
|
+
localVarQueryParameter['page_size'] = pageSize;
|
1497
|
+
}
|
1498
|
+
options.queryParams = localVarQueryParameter;
|
1499
|
+
options.pathParams = { 'job_id': jobId, };
|
1500
|
+
options.headers = localVarHeaderParameter;
|
1501
|
+
return options;
|
1502
|
+
},
|
1168
1503
|
/**
|
1169
1504
|
* 获取构建任务详情
|
1170
1505
|
*
|
@@ -1236,14 +1571,14 @@ const ParamCreater = function () {
|
|
1236
1571
|
return options;
|
1237
1572
|
},
|
1238
1573
|
/**
|
1239
|
-
*
|
1574
|
+
* 查询官方模版
|
1240
1575
|
*
|
1241
1576
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1242
1577
|
*/
|
1243
|
-
|
1578
|
+
listOfficialTemplate(listOfficialTemplateRequest) {
|
1244
1579
|
const options = {
|
1245
1580
|
method: "GET",
|
1246
|
-
url: "/
|
1581
|
+
url: "/v1/template/officialtemplates",
|
1247
1582
|
contentType: "application/json",
|
1248
1583
|
queryParams: {},
|
1249
1584
|
pathParams: {},
|
@@ -1254,16 +1589,16 @@ const ParamCreater = function () {
|
|
1254
1589
|
let name;
|
1255
1590
|
let page;
|
1256
1591
|
let pageSize;
|
1257
|
-
if (
|
1258
|
-
if (
|
1259
|
-
name =
|
1260
|
-
page =
|
1261
|
-
pageSize =
|
1592
|
+
if (listOfficialTemplateRequest !== null && listOfficialTemplateRequest !== undefined) {
|
1593
|
+
if (listOfficialTemplateRequest instanceof ListOfficialTemplateRequest_1.ListOfficialTemplateRequest) {
|
1594
|
+
name = listOfficialTemplateRequest.name;
|
1595
|
+
page = listOfficialTemplateRequest.page;
|
1596
|
+
pageSize = listOfficialTemplateRequest.pageSize;
|
1262
1597
|
}
|
1263
1598
|
else {
|
1264
|
-
name =
|
1265
|
-
page =
|
1266
|
-
pageSize =
|
1599
|
+
name = listOfficialTemplateRequest['name'];
|
1600
|
+
page = listOfficialTemplateRequest['page'];
|
1601
|
+
pageSize = listOfficialTemplateRequest['page_size'];
|
1267
1602
|
}
|
1268
1603
|
}
|
1269
1604
|
if (name !== null && name !== undefined) {
|
@@ -1280,24 +1615,205 @@ const ParamCreater = function () {
|
|
1280
1615
|
return options;
|
1281
1616
|
},
|
1282
1617
|
/**
|
1283
|
-
*
|
1618
|
+
* 查询项目任务列表
|
1284
1619
|
*
|
1285
1620
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1286
1621
|
*/
|
1287
|
-
|
1622
|
+
listProjectJobs(listProjectJobsRequest) {
|
1288
1623
|
const options = {
|
1289
|
-
method: "
|
1290
|
-
url: "/
|
1624
|
+
method: "GET",
|
1625
|
+
url: "/v1/job/{project_id}/list",
|
1291
1626
|
contentType: "application/json",
|
1292
1627
|
queryParams: {},
|
1293
1628
|
pathParams: {},
|
1294
|
-
headers: {}
|
1295
|
-
data: {}
|
1629
|
+
headers: {}
|
1296
1630
|
};
|
1297
1631
|
const localVarHeaderParameter = {};
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1632
|
+
const localVarQueryParameter = {};
|
1633
|
+
let projectId;
|
1634
|
+
let pageIndex;
|
1635
|
+
let pageSize;
|
1636
|
+
let search;
|
1637
|
+
let sortField;
|
1638
|
+
let sortOrder;
|
1639
|
+
let creatorId;
|
1640
|
+
let buildStatus;
|
1641
|
+
let byGroup;
|
1642
|
+
let groupPathId;
|
1643
|
+
if (listProjectJobsRequest !== null && listProjectJobsRequest !== undefined) {
|
1644
|
+
if (listProjectJobsRequest instanceof ListProjectJobsRequest_1.ListProjectJobsRequest) {
|
1645
|
+
projectId = listProjectJobsRequest.projectId;
|
1646
|
+
pageIndex = listProjectJobsRequest.pageIndex;
|
1647
|
+
pageSize = listProjectJobsRequest.pageSize;
|
1648
|
+
search = listProjectJobsRequest.search;
|
1649
|
+
sortField = listProjectJobsRequest.sortField;
|
1650
|
+
sortOrder = listProjectJobsRequest.sortOrder;
|
1651
|
+
creatorId = listProjectJobsRequest.creatorId;
|
1652
|
+
buildStatus = listProjectJobsRequest.buildStatus;
|
1653
|
+
byGroup = listProjectJobsRequest.byGroup;
|
1654
|
+
groupPathId = listProjectJobsRequest.groupPathId;
|
1655
|
+
}
|
1656
|
+
else {
|
1657
|
+
projectId = listProjectJobsRequest['project_id'];
|
1658
|
+
pageIndex = listProjectJobsRequest['page_index'];
|
1659
|
+
pageSize = listProjectJobsRequest['page_size'];
|
1660
|
+
search = listProjectJobsRequest['search'];
|
1661
|
+
sortField = listProjectJobsRequest['sort_field'];
|
1662
|
+
sortOrder = listProjectJobsRequest['sort_order'];
|
1663
|
+
creatorId = listProjectJobsRequest['creator_id'];
|
1664
|
+
buildStatus = listProjectJobsRequest['build_status'];
|
1665
|
+
byGroup = listProjectJobsRequest['by_group'];
|
1666
|
+
groupPathId = listProjectJobsRequest['group_path_id'];
|
1667
|
+
}
|
1668
|
+
}
|
1669
|
+
if (projectId === null || projectId === undefined) {
|
1670
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listProjectJobs.');
|
1671
|
+
}
|
1672
|
+
if (pageIndex === null || pageIndex === undefined) {
|
1673
|
+
throw new RequiredError('pageIndex', 'Required parameter pageIndex was null or undefined when calling listProjectJobs.');
|
1674
|
+
}
|
1675
|
+
if (pageIndex !== null && pageIndex !== undefined) {
|
1676
|
+
localVarQueryParameter['page_index'] = pageIndex;
|
1677
|
+
}
|
1678
|
+
if (pageSize === null || pageSize === undefined) {
|
1679
|
+
throw new RequiredError('pageSize', 'Required parameter pageSize was null or undefined when calling listProjectJobs.');
|
1680
|
+
}
|
1681
|
+
if (pageSize !== null && pageSize !== undefined) {
|
1682
|
+
localVarQueryParameter['page_size'] = pageSize;
|
1683
|
+
}
|
1684
|
+
if (search !== null && search !== undefined) {
|
1685
|
+
localVarQueryParameter['search'] = search;
|
1686
|
+
}
|
1687
|
+
if (sortField !== null && sortField !== undefined) {
|
1688
|
+
localVarQueryParameter['sort_field'] = sortField;
|
1689
|
+
}
|
1690
|
+
if (sortOrder !== null && sortOrder !== undefined) {
|
1691
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
1692
|
+
}
|
1693
|
+
if (creatorId !== null && creatorId !== undefined) {
|
1694
|
+
localVarQueryParameter['creator_id'] = creatorId;
|
1695
|
+
}
|
1696
|
+
if (buildStatus !== null && buildStatus !== undefined) {
|
1697
|
+
localVarQueryParameter['build_status'] = buildStatus;
|
1698
|
+
}
|
1699
|
+
if (byGroup !== null && byGroup !== undefined) {
|
1700
|
+
localVarQueryParameter['by_group'] = byGroup;
|
1701
|
+
}
|
1702
|
+
if (groupPathId !== null && groupPathId !== undefined) {
|
1703
|
+
localVarQueryParameter['group_path_id'] = groupPathId;
|
1704
|
+
}
|
1705
|
+
options.queryParams = localVarQueryParameter;
|
1706
|
+
options.pathParams = { 'project_id': projectId, };
|
1707
|
+
options.headers = localVarHeaderParameter;
|
1708
|
+
return options;
|
1709
|
+
},
|
1710
|
+
/**
|
1711
|
+
* 查看回收站中删除的构建任务列表
|
1712
|
+
*
|
1713
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1714
|
+
*/
|
1715
|
+
listRecyclingJob(listRecyclingJobRequest) {
|
1716
|
+
const options = {
|
1717
|
+
method: "GET",
|
1718
|
+
url: "/v1/job/recycling-jobs",
|
1719
|
+
contentType: "application/json",
|
1720
|
+
queryParams: {},
|
1721
|
+
pathParams: {},
|
1722
|
+
headers: {}
|
1723
|
+
};
|
1724
|
+
const localVarHeaderParameter = {};
|
1725
|
+
const localVarQueryParameter = {};
|
1726
|
+
let pageSize;
|
1727
|
+
let pageNo;
|
1728
|
+
let search;
|
1729
|
+
if (listRecyclingJobRequest !== null && listRecyclingJobRequest !== undefined) {
|
1730
|
+
if (listRecyclingJobRequest instanceof ListRecyclingJobRequest_1.ListRecyclingJobRequest) {
|
1731
|
+
pageSize = listRecyclingJobRequest.pageSize;
|
1732
|
+
pageNo = listRecyclingJobRequest.pageNo;
|
1733
|
+
search = listRecyclingJobRequest.search;
|
1734
|
+
}
|
1735
|
+
else {
|
1736
|
+
pageSize = listRecyclingJobRequest['page_size'];
|
1737
|
+
pageNo = listRecyclingJobRequest['page_no'];
|
1738
|
+
search = listRecyclingJobRequest['search'];
|
1739
|
+
}
|
1740
|
+
}
|
1741
|
+
if (pageSize !== null && pageSize !== undefined) {
|
1742
|
+
localVarQueryParameter['page_size'] = pageSize;
|
1743
|
+
}
|
1744
|
+
if (pageNo !== null && pageNo !== undefined) {
|
1745
|
+
localVarQueryParameter['page_no'] = pageNo;
|
1746
|
+
}
|
1747
|
+
if (search !== null && search !== undefined) {
|
1748
|
+
localVarQueryParameter['search'] = search;
|
1749
|
+
}
|
1750
|
+
options.queryParams = localVarQueryParameter;
|
1751
|
+
options.headers = localVarHeaderParameter;
|
1752
|
+
return options;
|
1753
|
+
},
|
1754
|
+
/**
|
1755
|
+
* 查询构建模板
|
1756
|
+
*
|
1757
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1758
|
+
*/
|
1759
|
+
listTemplates(listTemplatesRequest) {
|
1760
|
+
const options = {
|
1761
|
+
method: "GET",
|
1762
|
+
url: "/v3/templates/query",
|
1763
|
+
contentType: "application/json",
|
1764
|
+
queryParams: {},
|
1765
|
+
pathParams: {},
|
1766
|
+
headers: {}
|
1767
|
+
};
|
1768
|
+
const localVarHeaderParameter = {};
|
1769
|
+
const localVarQueryParameter = {};
|
1770
|
+
let name;
|
1771
|
+
let page;
|
1772
|
+
let pageSize;
|
1773
|
+
if (listTemplatesRequest !== null && listTemplatesRequest !== undefined) {
|
1774
|
+
if (listTemplatesRequest instanceof ListTemplatesRequest_1.ListTemplatesRequest) {
|
1775
|
+
name = listTemplatesRequest.name;
|
1776
|
+
page = listTemplatesRequest.page;
|
1777
|
+
pageSize = listTemplatesRequest.pageSize;
|
1778
|
+
}
|
1779
|
+
else {
|
1780
|
+
name = listTemplatesRequest['name'];
|
1781
|
+
page = listTemplatesRequest['page'];
|
1782
|
+
pageSize = listTemplatesRequest['page_size'];
|
1783
|
+
}
|
1784
|
+
}
|
1785
|
+
if (name !== null && name !== undefined) {
|
1786
|
+
localVarQueryParameter['name'] = name;
|
1787
|
+
}
|
1788
|
+
if (page !== null && page !== undefined) {
|
1789
|
+
localVarQueryParameter['page'] = page;
|
1790
|
+
}
|
1791
|
+
if (pageSize !== null && pageSize !== undefined) {
|
1792
|
+
localVarQueryParameter['page_size'] = pageSize;
|
1793
|
+
}
|
1794
|
+
options.queryParams = localVarQueryParameter;
|
1795
|
+
options.headers = localVarHeaderParameter;
|
1796
|
+
return options;
|
1797
|
+
},
|
1798
|
+
/**
|
1799
|
+
* 执行构建任务,可传自定义参数
|
1800
|
+
*
|
1801
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1802
|
+
*/
|
1803
|
+
runJob(runJobRequest) {
|
1804
|
+
const options = {
|
1805
|
+
method: "POST",
|
1806
|
+
url: "/v3/jobs/build",
|
1807
|
+
contentType: "application/json",
|
1808
|
+
queryParams: {},
|
1809
|
+
pathParams: {},
|
1810
|
+
headers: {},
|
1811
|
+
data: {}
|
1812
|
+
};
|
1813
|
+
const localVarHeaderParameter = {};
|
1814
|
+
let body;
|
1815
|
+
if (runJobRequest !== null && runJobRequest !== undefined) {
|
1816
|
+
if (runJobRequest instanceof RunJobRequest_1.RunJobRequest) {
|
1301
1817
|
body = runJobRequest.body;
|
1302
1818
|
}
|
1303
1819
|
else {
|
@@ -1312,6 +1828,86 @@ const ParamCreater = function () {
|
|
1312
1828
|
options.headers = localVarHeaderParameter;
|
1313
1829
|
return options;
|
1314
1830
|
},
|
1831
|
+
/**
|
1832
|
+
* 编辑页获取参数类型的接口
|
1833
|
+
*
|
1834
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1835
|
+
*/
|
1836
|
+
showBuildParamsList() {
|
1837
|
+
const options = {
|
1838
|
+
method: "GET",
|
1839
|
+
url: "/v1/job/build-params",
|
1840
|
+
contentType: "application/json",
|
1841
|
+
queryParams: {},
|
1842
|
+
pathParams: {},
|
1843
|
+
headers: {}
|
1844
|
+
};
|
1845
|
+
const localVarHeaderParameter = {};
|
1846
|
+
options.headers = localVarHeaderParameter;
|
1847
|
+
return options;
|
1848
|
+
},
|
1849
|
+
/**
|
1850
|
+
* 查询指定构建记录详情
|
1851
|
+
*
|
1852
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1853
|
+
*/
|
1854
|
+
showBuildRecord(showBuildRecordRequest) {
|
1855
|
+
const options = {
|
1856
|
+
method: "GET",
|
1857
|
+
url: "/v1/record/{record_id}/info",
|
1858
|
+
contentType: "application/json",
|
1859
|
+
queryParams: {},
|
1860
|
+
pathParams: {},
|
1861
|
+
headers: {}
|
1862
|
+
};
|
1863
|
+
const localVarHeaderParameter = {};
|
1864
|
+
let recordId;
|
1865
|
+
if (showBuildRecordRequest !== null && showBuildRecordRequest !== undefined) {
|
1866
|
+
if (showBuildRecordRequest instanceof ShowBuildRecordRequest_1.ShowBuildRecordRequest) {
|
1867
|
+
recordId = showBuildRecordRequest.recordId;
|
1868
|
+
}
|
1869
|
+
else {
|
1870
|
+
recordId = showBuildRecordRequest['record_id'];
|
1871
|
+
}
|
1872
|
+
}
|
1873
|
+
if (recordId === null || recordId === undefined) {
|
1874
|
+
throw new RequiredError('recordId', 'Required parameter recordId was null or undefined when calling showBuildRecord.');
|
1875
|
+
}
|
1876
|
+
options.pathParams = { 'record_id': recordId, };
|
1877
|
+
options.headers = localVarHeaderParameter;
|
1878
|
+
return options;
|
1879
|
+
},
|
1880
|
+
/**
|
1881
|
+
* 获取构建记录的构建脚本
|
1882
|
+
*
|
1883
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1884
|
+
*/
|
1885
|
+
showBuildRecordBuildScript(showBuildRecordBuildScriptRequest) {
|
1886
|
+
const options = {
|
1887
|
+
method: "GET",
|
1888
|
+
url: "/v1/record/{record_id}/build-script",
|
1889
|
+
contentType: "application/json",
|
1890
|
+
queryParams: {},
|
1891
|
+
pathParams: {},
|
1892
|
+
headers: {}
|
1893
|
+
};
|
1894
|
+
const localVarHeaderParameter = {};
|
1895
|
+
let recordId;
|
1896
|
+
if (showBuildRecordBuildScriptRequest !== null && showBuildRecordBuildScriptRequest !== undefined) {
|
1897
|
+
if (showBuildRecordBuildScriptRequest instanceof ShowBuildRecordBuildScriptRequest_1.ShowBuildRecordBuildScriptRequest) {
|
1898
|
+
recordId = showBuildRecordBuildScriptRequest.recordId;
|
1899
|
+
}
|
1900
|
+
else {
|
1901
|
+
recordId = showBuildRecordBuildScriptRequest['record_id'];
|
1902
|
+
}
|
1903
|
+
}
|
1904
|
+
if (recordId === null || recordId === undefined) {
|
1905
|
+
throw new RequiredError('recordId', 'Required parameter recordId was null or undefined when calling showBuildRecordBuildScript.');
|
1906
|
+
}
|
1907
|
+
options.pathParams = { 'record_id': recordId, };
|
1908
|
+
options.headers = localVarHeaderParameter;
|
1909
|
+
return options;
|
1910
|
+
},
|
1315
1911
|
/**
|
1316
1912
|
* 获取任务各阶段信息
|
1317
1913
|
*
|
@@ -1388,6 +1984,24 @@ const ParamCreater = function () {
|
|
1388
1984
|
options.headers = localVarHeaderParameter;
|
1389
1985
|
return options;
|
1390
1986
|
},
|
1987
|
+
/**
|
1988
|
+
* 获取镜像模板列表
|
1989
|
+
*
|
1990
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1991
|
+
*/
|
1992
|
+
showImageTemplateList() {
|
1993
|
+
const options = {
|
1994
|
+
method: "GET",
|
1995
|
+
url: "/v1/image/templates",
|
1996
|
+
contentType: "application/json",
|
1997
|
+
queryParams: {},
|
1998
|
+
pathParams: {},
|
1999
|
+
headers: {}
|
2000
|
+
};
|
2001
|
+
const localVarHeaderParameter = {};
|
2002
|
+
options.headers = localVarHeaderParameter;
|
2003
|
+
return options;
|
2004
|
+
},
|
1391
2005
|
/**
|
1392
2006
|
* 查询构建成功率
|
1393
2007
|
*
|
@@ -1447,6 +2061,186 @@ const ParamCreater = function () {
|
|
1447
2061
|
options.headers = localVarHeaderParameter;
|
1448
2062
|
return options;
|
1449
2063
|
},
|
2064
|
+
/**
|
2065
|
+
* 洞察构建时长
|
2066
|
+
*
|
2067
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2068
|
+
*/
|
2069
|
+
showJobBuildTime(showJobBuildTimeRequest) {
|
2070
|
+
const options = {
|
2071
|
+
method: "GET",
|
2072
|
+
url: "/v1/report/time",
|
2073
|
+
contentType: "application/json",
|
2074
|
+
queryParams: {},
|
2075
|
+
pathParams: {},
|
2076
|
+
headers: {}
|
2077
|
+
};
|
2078
|
+
const localVarHeaderParameter = {};
|
2079
|
+
const localVarQueryParameter = {};
|
2080
|
+
let jobId;
|
2081
|
+
let repositoryName;
|
2082
|
+
let interval;
|
2083
|
+
let branch;
|
2084
|
+
if (showJobBuildTimeRequest !== null && showJobBuildTimeRequest !== undefined) {
|
2085
|
+
if (showJobBuildTimeRequest instanceof ShowJobBuildTimeRequest_1.ShowJobBuildTimeRequest) {
|
2086
|
+
jobId = showJobBuildTimeRequest.jobId;
|
2087
|
+
repositoryName = showJobBuildTimeRequest.repositoryName;
|
2088
|
+
interval = showJobBuildTimeRequest.interval;
|
2089
|
+
branch = showJobBuildTimeRequest.branch;
|
2090
|
+
}
|
2091
|
+
else {
|
2092
|
+
jobId = showJobBuildTimeRequest['job_id'];
|
2093
|
+
repositoryName = showJobBuildTimeRequest['repository_name'];
|
2094
|
+
interval = showJobBuildTimeRequest['interval'];
|
2095
|
+
branch = showJobBuildTimeRequest['branch'];
|
2096
|
+
}
|
2097
|
+
}
|
2098
|
+
if (jobId === null || jobId === undefined) {
|
2099
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobBuildTime.');
|
2100
|
+
}
|
2101
|
+
if (jobId !== null && jobId !== undefined) {
|
2102
|
+
localVarQueryParameter['job_id'] = jobId;
|
2103
|
+
}
|
2104
|
+
if (repositoryName === null || repositoryName === undefined) {
|
2105
|
+
throw new RequiredError('repositoryName', 'Required parameter repositoryName was null or undefined when calling showJobBuildTime.');
|
2106
|
+
}
|
2107
|
+
if (repositoryName !== null && repositoryName !== undefined) {
|
2108
|
+
localVarQueryParameter['repository_name'] = repositoryName;
|
2109
|
+
}
|
2110
|
+
if (interval === null || interval === undefined) {
|
2111
|
+
throw new RequiredError('interval', 'Required parameter interval was null or undefined when calling showJobBuildTime.');
|
2112
|
+
}
|
2113
|
+
if (interval !== null && interval !== undefined) {
|
2114
|
+
localVarQueryParameter['interval'] = interval;
|
2115
|
+
}
|
2116
|
+
if (branch !== null && branch !== undefined) {
|
2117
|
+
localVarQueryParameter['branch'] = branch;
|
2118
|
+
}
|
2119
|
+
options.queryParams = localVarQueryParameter;
|
2120
|
+
options.headers = localVarHeaderParameter;
|
2121
|
+
return options;
|
2122
|
+
},
|
2123
|
+
/**
|
2124
|
+
* 获取构建任务详情
|
2125
|
+
*
|
2126
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2127
|
+
*/
|
2128
|
+
showJobConfig(showJobConfigRequest) {
|
2129
|
+
const options = {
|
2130
|
+
method: "GET",
|
2131
|
+
url: "/v1/job/{job_id}/config",
|
2132
|
+
contentType: "application/json",
|
2133
|
+
queryParams: {},
|
2134
|
+
pathParams: {},
|
2135
|
+
headers: {}
|
2136
|
+
};
|
2137
|
+
const localVarHeaderParameter = {};
|
2138
|
+
const localVarQueryParameter = {};
|
2139
|
+
let jobId;
|
2140
|
+
let getAllParams;
|
2141
|
+
if (showJobConfigRequest !== null && showJobConfigRequest !== undefined) {
|
2142
|
+
if (showJobConfigRequest instanceof ShowJobConfigRequest_1.ShowJobConfigRequest) {
|
2143
|
+
jobId = showJobConfigRequest.jobId;
|
2144
|
+
getAllParams = showJobConfigRequest.getAllParams;
|
2145
|
+
}
|
2146
|
+
else {
|
2147
|
+
jobId = showJobConfigRequest['job_id'];
|
2148
|
+
getAllParams = showJobConfigRequest['get_all_params'];
|
2149
|
+
}
|
2150
|
+
}
|
2151
|
+
if (jobId === null || jobId === undefined) {
|
2152
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobConfig.');
|
2153
|
+
}
|
2154
|
+
if (getAllParams !== null && getAllParams !== undefined) {
|
2155
|
+
localVarQueryParameter['get_all_params'] = getAllParams;
|
2156
|
+
}
|
2157
|
+
options.queryParams = localVarQueryParameter;
|
2158
|
+
options.pathParams = { 'job_id': jobId, };
|
2159
|
+
options.headers = localVarHeaderParameter;
|
2160
|
+
return options;
|
2161
|
+
},
|
2162
|
+
/**
|
2163
|
+
* 获取构建任务配置的对比差异
|
2164
|
+
*
|
2165
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2166
|
+
*/
|
2167
|
+
showJobConfigDiff(showJobConfigDiffRequest) {
|
2168
|
+
const options = {
|
2169
|
+
method: "GET",
|
2170
|
+
url: "/v1/job/{job_id}/diff",
|
2171
|
+
contentType: "application/json",
|
2172
|
+
queryParams: {},
|
2173
|
+
pathParams: {},
|
2174
|
+
headers: {}
|
2175
|
+
};
|
2176
|
+
const localVarHeaderParameter = {};
|
2177
|
+
const localVarQueryParameter = {};
|
2178
|
+
let jobId;
|
2179
|
+
let revisedlNo;
|
2180
|
+
let originalNo;
|
2181
|
+
if (showJobConfigDiffRequest !== null && showJobConfigDiffRequest !== undefined) {
|
2182
|
+
if (showJobConfigDiffRequest instanceof ShowJobConfigDiffRequest_1.ShowJobConfigDiffRequest) {
|
2183
|
+
jobId = showJobConfigDiffRequest.jobId;
|
2184
|
+
revisedlNo = showJobConfigDiffRequest.revisedlNo;
|
2185
|
+
originalNo = showJobConfigDiffRequest.originalNo;
|
2186
|
+
}
|
2187
|
+
else {
|
2188
|
+
jobId = showJobConfigDiffRequest['job_id'];
|
2189
|
+
revisedlNo = showJobConfigDiffRequest['revisedl_no'];
|
2190
|
+
originalNo = showJobConfigDiffRequest['original_no'];
|
2191
|
+
}
|
2192
|
+
}
|
2193
|
+
if (jobId === null || jobId === undefined) {
|
2194
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobConfigDiff.');
|
2195
|
+
}
|
2196
|
+
if (revisedlNo === null || revisedlNo === undefined) {
|
2197
|
+
throw new RequiredError('revisedlNo', 'Required parameter revisedlNo was null or undefined when calling showJobConfigDiff.');
|
2198
|
+
}
|
2199
|
+
if (revisedlNo !== null && revisedlNo !== undefined) {
|
2200
|
+
localVarQueryParameter['revisedl_no'] = revisedlNo;
|
2201
|
+
}
|
2202
|
+
if (originalNo === null || originalNo === undefined) {
|
2203
|
+
throw new RequiredError('originalNo', 'Required parameter originalNo was null or undefined when calling showJobConfigDiff.');
|
2204
|
+
}
|
2205
|
+
if (originalNo !== null && originalNo !== undefined) {
|
2206
|
+
localVarQueryParameter['original_no'] = originalNo;
|
2207
|
+
}
|
2208
|
+
options.queryParams = localVarQueryParameter;
|
2209
|
+
options.pathParams = { 'job_id': jobId, };
|
2210
|
+
options.headers = localVarHeaderParameter;
|
2211
|
+
return options;
|
2212
|
+
},
|
2213
|
+
/**
|
2214
|
+
* 查看构建任务构建信息
|
2215
|
+
*
|
2216
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2217
|
+
*/
|
2218
|
+
showJobInfo(showJobInfoRequest) {
|
2219
|
+
const options = {
|
2220
|
+
method: "GET",
|
2221
|
+
url: "/v1/job/{job_id}/info",
|
2222
|
+
contentType: "application/json",
|
2223
|
+
queryParams: {},
|
2224
|
+
pathParams: {},
|
2225
|
+
headers: {}
|
2226
|
+
};
|
2227
|
+
const localVarHeaderParameter = {};
|
2228
|
+
let jobId;
|
2229
|
+
if (showJobInfoRequest !== null && showJobInfoRequest !== undefined) {
|
2230
|
+
if (showJobInfoRequest instanceof ShowJobInfoRequest_1.ShowJobInfoRequest) {
|
2231
|
+
jobId = showJobInfoRequest.jobId;
|
2232
|
+
}
|
2233
|
+
else {
|
2234
|
+
jobId = showJobInfoRequest['job_id'];
|
2235
|
+
}
|
2236
|
+
}
|
2237
|
+
if (jobId === null || jobId === undefined) {
|
2238
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobInfo.');
|
2239
|
+
}
|
2240
|
+
options.pathParams = { 'job_id': jobId, };
|
2241
|
+
options.headers = localVarHeaderParameter;
|
2242
|
+
return options;
|
2243
|
+
},
|
1450
2244
|
/**
|
1451
2245
|
* 查看项目下用户的构建任务列表
|
1452
2246
|
*
|
@@ -1498,6 +2292,41 @@ const ParamCreater = function () {
|
|
1498
2292
|
options.headers = localVarHeaderParameter;
|
1499
2293
|
return options;
|
1500
2294
|
},
|
2295
|
+
/**
|
2296
|
+
* 获取构建任务的角色权限矩阵信息
|
2297
|
+
*
|
2298
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2299
|
+
*/
|
2300
|
+
showJobRolePermission(showJobRolePermissionRequest) {
|
2301
|
+
const options = {
|
2302
|
+
method: "GET",
|
2303
|
+
url: "/v1/job/permission/role",
|
2304
|
+
contentType: "application/json",
|
2305
|
+
queryParams: {},
|
2306
|
+
pathParams: {},
|
2307
|
+
headers: {}
|
2308
|
+
};
|
2309
|
+
const localVarHeaderParameter = {};
|
2310
|
+
const localVarQueryParameter = {};
|
2311
|
+
let jobId;
|
2312
|
+
if (showJobRolePermissionRequest !== null && showJobRolePermissionRequest !== undefined) {
|
2313
|
+
if (showJobRolePermissionRequest instanceof ShowJobRolePermissionRequest_1.ShowJobRolePermissionRequest) {
|
2314
|
+
jobId = showJobRolePermissionRequest.jobId;
|
2315
|
+
}
|
2316
|
+
else {
|
2317
|
+
jobId = showJobRolePermissionRequest['job_id'];
|
2318
|
+
}
|
2319
|
+
}
|
2320
|
+
if (jobId === null || jobId === undefined) {
|
2321
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobRolePermission.');
|
2322
|
+
}
|
2323
|
+
if (jobId !== null && jobId !== undefined) {
|
2324
|
+
localVarQueryParameter['job_id'] = jobId;
|
2325
|
+
}
|
2326
|
+
options.queryParams = localVarQueryParameter;
|
2327
|
+
options.headers = localVarHeaderParameter;
|
2328
|
+
return options;
|
2329
|
+
},
|
1501
2330
|
/**
|
1502
2331
|
* 查看任务运行状态
|
1503
2332
|
*
|
@@ -1580,6 +2409,24 @@ const ParamCreater = function () {
|
|
1580
2409
|
options.headers = localVarHeaderParameter;
|
1581
2410
|
return options;
|
1582
2411
|
},
|
2412
|
+
/**
|
2413
|
+
* 查看系统预定义参数
|
2414
|
+
*
|
2415
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2416
|
+
*/
|
2417
|
+
showJobSystemParameters() {
|
2418
|
+
const options = {
|
2419
|
+
method: "GET",
|
2420
|
+
url: "/v1/job/system-parameters",
|
2421
|
+
contentType: "application/json",
|
2422
|
+
queryParams: {},
|
2423
|
+
pathParams: {},
|
2424
|
+
headers: {}
|
2425
|
+
};
|
2426
|
+
const localVarHeaderParameter = {};
|
2427
|
+
options.headers = localVarHeaderParameter;
|
2428
|
+
return options;
|
2429
|
+
},
|
1583
2430
|
/**
|
1584
2431
|
* 查询指定代码仓库最近一次成功的构建历史
|
1585
2432
|
*
|
@@ -1788,6 +2635,41 @@ const ParamCreater = function () {
|
|
1788
2635
|
options.headers = localVarHeaderParameter;
|
1789
2636
|
return options;
|
1790
2637
|
},
|
2638
|
+
/**
|
2639
|
+
* 获取用户权限
|
2640
|
+
*
|
2641
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2642
|
+
*/
|
2643
|
+
showProjectPermission(showProjectPermissionRequest) {
|
2644
|
+
const options = {
|
2645
|
+
method: "GET",
|
2646
|
+
url: "/v1/domain/user-permission",
|
2647
|
+
contentType: "application/json",
|
2648
|
+
queryParams: {},
|
2649
|
+
pathParams: {},
|
2650
|
+
headers: {}
|
2651
|
+
};
|
2652
|
+
const localVarHeaderParameter = {};
|
2653
|
+
const localVarQueryParameter = {};
|
2654
|
+
let projectId;
|
2655
|
+
if (showProjectPermissionRequest !== null && showProjectPermissionRequest !== undefined) {
|
2656
|
+
if (showProjectPermissionRequest instanceof ShowProjectPermissionRequest_1.ShowProjectPermissionRequest) {
|
2657
|
+
projectId = showProjectPermissionRequest.projectId;
|
2658
|
+
}
|
2659
|
+
else {
|
2660
|
+
projectId = showProjectPermissionRequest['project_id'];
|
2661
|
+
}
|
2662
|
+
}
|
2663
|
+
if (projectId === null || projectId === undefined) {
|
2664
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling showProjectPermission.');
|
2665
|
+
}
|
2666
|
+
if (projectId !== null && projectId !== undefined) {
|
2667
|
+
localVarQueryParameter['project_id'] = projectId;
|
2668
|
+
}
|
2669
|
+
options.queryParams = localVarQueryParameter;
|
2670
|
+
options.headers = localVarHeaderParameter;
|
2671
|
+
return options;
|
2672
|
+
},
|
1791
2673
|
/**
|
1792
2674
|
* 获取构建记录信息
|
1793
2675
|
*
|