@huaweicloud/huaweicloud-sdk-codeartsbuild 3.1.156 → 3.1.157
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 +117 -1
- package/v3/CodeArtsBuildClient.d.ts.map +1 -1
- package/v3/CodeArtsBuildClient.js +281 -2
- package/v3/CodeArtsBuildClient.js.map +1 -1
- package/v3/model/AddKeystorePermissionRequest.d.ts +7 -0
- package/v3/model/AddKeystorePermissionRequest.d.ts.map +1 -0
- package/v3/model/AddKeystorePermissionRequest.js +13 -0
- package/v3/model/AddKeystorePermissionRequest.js.map +1 -0
- package/v3/model/AddKeystorePermissionRequestBody.d.ts +26 -0
- package/v3/model/AddKeystorePermissionRequestBody.d.ts.map +1 -0
- package/v3/model/AddKeystorePermissionRequestBody.js +68 -0
- package/v3/model/AddKeystorePermissionRequestBody.js.map +1 -0
- package/v3/model/AddKeystorePermissionResponse.d.ts +11 -0
- package/v3/model/AddKeystorePermissionResponse.d.ts.map +1 -0
- package/v3/model/AddKeystorePermissionResponse.js +23 -0
- package/v3/model/AddKeystorePermissionResponse.js.map +1 -0
- package/v3/model/JobPipelineInfoItems.d.ts +26 -0
- package/v3/model/JobPipelineInfoItems.d.ts.map +1 -0
- package/v3/model/JobPipelineInfoItems.js +57 -0
- package/v3/model/JobPipelineInfoItems.js.map +1 -0
- package/v3/model/JobPipelineInfoParameters.d.ts +13 -0
- package/v3/model/JobPipelineInfoParameters.d.ts.map +1 -0
- package/v3/model/JobPipelineInfoParameters.js +25 -0
- package/v3/model/JobPipelineInfoParameters.js.map +1 -0
- package/v3/model/JobPipelineInfoParamsItems.d.ts +8 -0
- package/v3/model/JobPipelineInfoParamsItems.d.ts.map +1 -0
- package/v3/model/JobPipelineInfoParamsItems.js +17 -0
- package/v3/model/JobPipelineInfoParamsItems.js.map +1 -0
- package/v3/model/ListJobRequest.d.ts +26 -0
- package/v3/model/ListJobRequest.d.ts.map +1 -1
- package/v3/model/ListJobRequest.js +64 -0
- package/v3/model/ListJobRequest.js.map +1 -1
- package/v3/model/ShowJobPipelineInfoRequest.d.ts +14 -0
- package/v3/model/ShowJobPipelineInfoRequest.d.ts.map +1 -0
- package/v3/model/ShowJobPipelineInfoRequest.js +34 -0
- package/v3/model/ShowJobPipelineInfoRequest.js.map +1 -0
- package/v3/model/ShowJobPipelineInfoResponse.d.ts +12 -0
- package/v3/model/ShowJobPipelineInfoResponse.d.ts.map +1 -0
- package/v3/model/ShowJobPipelineInfoResponse.js +23 -0
- package/v3/model/ShowJobPipelineInfoResponse.js.map +1 -0
- package/v3/model/StopTheJobRequest.d.ts +12 -0
- package/v3/model/StopTheJobRequest.d.ts.map +1 -0
- package/v3/model/StopTheJobRequest.js +30 -0
- package/v3/model/StopTheJobRequest.js.map +1 -0
- package/v3/model/StopTheJobResponse.d.ts +7 -0
- package/v3/model/StopTheJobResponse.d.ts.map +1 -0
- package/v3/model/StopTheJobResponse.js +15 -0
- package/v3/model/StopTheJobResponse.js.map +1 -0
- package/v3/model/UpdateKeystorePermissionRequest.d.ts +7 -0
- package/v3/model/UpdateKeystorePermissionRequest.d.ts.map +1 -0
- package/v3/model/UpdateKeystorePermissionRequest.js +13 -0
- package/v3/model/UpdateKeystorePermissionRequest.js.map +1 -0
- package/v3/model/UpdateKeystorePermissionRequestBody.d.ts +26 -0
- package/v3/model/UpdateKeystorePermissionRequestBody.d.ts.map +1 -0
- package/v3/model/UpdateKeystorePermissionRequestBody.js +67 -0
- package/v3/model/UpdateKeystorePermissionRequestBody.js.map +1 -0
- package/v3/model/UpdateKeystorePermissionResponse.d.ts +11 -0
- package/v3/model/UpdateKeystorePermissionResponse.d.ts.map +1 -0
- package/v3/model/UpdateKeystorePermissionResponse.js +23 -0
- package/v3/model/UpdateKeystorePermissionResponse.js.map +1 -0
- package/v3/public-api.d.ts +13 -0
- package/v3/public-api.d.ts.map +1 -1
- package/v3/public-api.js +13 -0
- package/v3/public-api.js.map +1 -1
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.RequiredError = exports.ParamCreater = exports.CodeArtsBuildClient = void 0;
|
7
7
|
const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
|
8
8
|
const form_data_1 = __importDefault(require("form-data"));
|
9
|
+
const AddKeystorePermissionRequest_1 = require("./model/AddKeystorePermissionRequest");
|
9
10
|
const CheckJobNameIsExistsRequest_1 = require("./model/CheckJobNameIsExistsRequest");
|
10
11
|
const CheckWebhookUrlRequest_1 = require("./model/CheckWebhookUrlRequest");
|
11
12
|
const CopyJobRequest_1 = require("./model/CopyJobRequest");
|
@@ -38,6 +39,7 @@ const ListBuildInfoRecordRequest_1 = require("./model/ListBuildInfoRecordRequest
|
|
38
39
|
const ListBuildParameterRequest_1 = require("./model/ListBuildParameterRequest");
|
39
40
|
const ListCustomTemplateRequest_1 = require("./model/ListCustomTemplateRequest");
|
40
41
|
const ListJobConfigRequest_1 = require("./model/ListJobConfigRequest");
|
42
|
+
const ListJobRequest_1 = require("./model/ListJobRequest");
|
41
43
|
const ListJunitCoverageSummaryRequest_1 = require("./model/ListJunitCoverageSummaryRequest");
|
42
44
|
const ListKeystoreSearchRequest_1 = require("./model/ListKeystoreSearchRequest");
|
43
45
|
const ListNoticeRequest_1 = require("./model/ListNoticeRequest");
|
@@ -74,6 +76,7 @@ const ShowJobConfigRequest_1 = require("./model/ShowJobConfigRequest");
|
|
74
76
|
const ShowJobInfoRequest_1 = require("./model/ShowJobInfoRequest");
|
75
77
|
const ShowJobListByProjectIdRequest_1 = require("./model/ShowJobListByProjectIdRequest");
|
76
78
|
const ShowJobNoticeConfigInfoRequest_1 = require("./model/ShowJobNoticeConfigInfoRequest");
|
79
|
+
const ShowJobPipelineInfoRequest_1 = require("./model/ShowJobPipelineInfoRequest");
|
77
80
|
const ShowJobRolePermissionRequest_1 = require("./model/ShowJobRolePermissionRequest");
|
78
81
|
const ShowJobStatusRequest_1 = require("./model/ShowJobStatusRequest");
|
79
82
|
const ShowJobStepStatusRequest_1 = require("./model/ShowJobStepStatusRequest");
|
@@ -94,7 +97,9 @@ const ShowUserOverPackageQuotaRequest_1 = require("./model/ShowUserOverPackageQu
|
|
94
97
|
const ShowYamlTemplateRequest_1 = require("./model/ShowYamlTemplateRequest");
|
95
98
|
const StopBuildJobRequest_1 = require("./model/StopBuildJobRequest");
|
96
99
|
const StopJobRequest_1 = require("./model/StopJobRequest");
|
100
|
+
const StopTheJobRequest_1 = require("./model/StopTheJobRequest");
|
97
101
|
const UpdateBuildJobRequest_1 = require("./model/UpdateBuildJobRequest");
|
102
|
+
const UpdateKeystorePermissionRequest_1 = require("./model/UpdateKeystorePermissionRequest");
|
98
103
|
const UpdateKeystoreRequest_1 = require("./model/UpdateKeystoreRequest");
|
99
104
|
const UpdateNewJobRequest_1 = require("./model/UpdateNewJobRequest");
|
100
105
|
const UpdateNoticeRequest_1 = require("./model/UpdateNoticeRequest");
|
@@ -884,11 +889,18 @@ class CodeArtsBuildClient {
|
|
884
889
|
* Please refer to HUAWEI cloud API Explorer for details.
|
885
890
|
*
|
886
891
|
* @summary 查看用户全部的构建任务列表
|
892
|
+
* @param {number} [pageIndex] 分页页码,表示从此页开始查询,page_index大于等于0
|
893
|
+
* @param {number} [pageSize] 每页显示的条目数量,page_size小于等于100
|
894
|
+
* @param {string} [search] 查询关键字
|
895
|
+
* @param {string} [sortField] 排序字段
|
896
|
+
* @param {string} [sortOrder] 排序方式(ASC|DESC)
|
897
|
+
* @param {string} [creatorId] 创建人
|
898
|
+
* @param {string} [buildStatus] 构建状态
|
887
899
|
* @param {*} [options] Override http request option.
|
888
900
|
* @throws {RequiredError}
|
889
901
|
*/
|
890
902
|
listJob(listJobRequest) {
|
891
|
-
const options = (0, exports.ParamCreater)().listJob();
|
903
|
+
const options = (0, exports.ParamCreater)().listJob(listJobRequest);
|
892
904
|
// @ts-ignore
|
893
905
|
options['responseHeaders'] = [''];
|
894
906
|
return this.hcClient.sendRequest(options);
|
@@ -1132,6 +1144,24 @@ class CodeArtsBuildClient {
|
|
1132
1144
|
options['responseHeaders'] = [''];
|
1133
1145
|
return this.hcClient.sendRequest(options);
|
1134
1146
|
}
|
1147
|
+
/**
|
1148
|
+
* 流水线查看构建任务信息
|
1149
|
+
*
|
1150
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1151
|
+
*
|
1152
|
+
* @summary 流水线查看构建任务信息
|
1153
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
1154
|
+
* @param {string} [all] 输入\"true\"或者\"false\"来控制返回参数是不是完整的
|
1155
|
+
* @param {string} [checkParamUsed] 移除未使用的参数
|
1156
|
+
* @param {*} [options] Override http request option.
|
1157
|
+
* @throws {RequiredError}
|
1158
|
+
*/
|
1159
|
+
showJobPipelineInfo(showJobPipelineInfoRequest) {
|
1160
|
+
const options = (0, exports.ParamCreater)().showJobPipelineInfo(showJobPipelineInfoRequest);
|
1161
|
+
// @ts-ignore
|
1162
|
+
options['responseHeaders'] = [''];
|
1163
|
+
return this.hcClient.sendRequest(options);
|
1164
|
+
}
|
1135
1165
|
/**
|
1136
1166
|
* 获取构建任务的角色权限矩阵信息
|
1137
1167
|
*
|
@@ -1213,6 +1243,23 @@ class CodeArtsBuildClient {
|
|
1213
1243
|
options['responseHeaders'] = [''];
|
1214
1244
|
return this.hcClient.sendRequest(options);
|
1215
1245
|
}
|
1246
|
+
/**
|
1247
|
+
* 停止构建任务v1
|
1248
|
+
*
|
1249
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1250
|
+
*
|
1251
|
+
* @summary 停止构建任务v1
|
1252
|
+
* @param {string} jobId 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
1253
|
+
* @param {number} [buildNo] 构建任务的构建编号,从1开始,每次构建递增1
|
1254
|
+
* @param {*} [options] Override http request option.
|
1255
|
+
* @throws {RequiredError}
|
1256
|
+
*/
|
1257
|
+
stopTheJob(stopTheJobRequest) {
|
1258
|
+
const options = (0, exports.ParamCreater)().stopTheJob(stopTheJobRequest);
|
1259
|
+
// @ts-ignore
|
1260
|
+
options['responseHeaders'] = [''];
|
1261
|
+
return this.hcClient.sendRequest(options);
|
1262
|
+
}
|
1216
1263
|
/**
|
1217
1264
|
* 更新构建任务
|
1218
1265
|
*
|
@@ -1229,6 +1276,22 @@ class CodeArtsBuildClient {
|
|
1229
1276
|
options['responseHeaders'] = [''];
|
1230
1277
|
return this.hcClient.sendRequest(options);
|
1231
1278
|
}
|
1279
|
+
/**
|
1280
|
+
* 添加文件权限
|
1281
|
+
*
|
1282
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1283
|
+
*
|
1284
|
+
* @summary 添加文件权限
|
1285
|
+
* @param {AddKeystorePermissionRequestBody} addKeystorePermissionRequestBody body
|
1286
|
+
* @param {*} [options] Override http request option.
|
1287
|
+
* @throws {RequiredError}
|
1288
|
+
*/
|
1289
|
+
addKeystorePermission(addKeystorePermissionRequest) {
|
1290
|
+
const options = (0, exports.ParamCreater)().addKeystorePermission(addKeystorePermissionRequest);
|
1291
|
+
// @ts-ignore
|
1292
|
+
options['responseHeaders'] = [''];
|
1293
|
+
return this.hcClient.sendRequest(options);
|
1294
|
+
}
|
1232
1295
|
/**
|
1233
1296
|
* 删除文件管理文件
|
1234
1297
|
*
|
@@ -1347,6 +1410,22 @@ class CodeArtsBuildClient {
|
|
1347
1410
|
options['responseHeaders'] = [''];
|
1348
1411
|
return this.hcClient.sendRequest(options);
|
1349
1412
|
}
|
1413
|
+
/**
|
1414
|
+
* 配置文件权限
|
1415
|
+
*
|
1416
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1417
|
+
*
|
1418
|
+
* @summary 配置文件权限
|
1419
|
+
* @param {UpdateKeystorePermissionRequestBody} updateKeystorePermissionRequestBody body
|
1420
|
+
* @param {*} [options] Override http request option.
|
1421
|
+
* @throws {RequiredError}
|
1422
|
+
*/
|
1423
|
+
updateKeystorePermission(updateKeystorePermissionRequest) {
|
1424
|
+
const options = (0, exports.ParamCreater)().updateKeystorePermission(updateKeystorePermissionRequest);
|
1425
|
+
// @ts-ignore
|
1426
|
+
options['responseHeaders'] = [''];
|
1427
|
+
return this.hcClient.sendRequest(options);
|
1428
|
+
}
|
1350
1429
|
/**
|
1351
1430
|
* 上传文件
|
1352
1431
|
*
|
@@ -3566,7 +3645,7 @@ const ParamCreater = function () {
|
|
3566
3645
|
*
|
3567
3646
|
* Please refer to HUAWEI cloud API Explorer for details.
|
3568
3647
|
*/
|
3569
|
-
listJob() {
|
3648
|
+
listJob(listJobRequest) {
|
3570
3649
|
const options = {
|
3571
3650
|
method: "GET",
|
3572
3651
|
url: "/v1/job/list",
|
@@ -3576,6 +3655,56 @@ const ParamCreater = function () {
|
|
3576
3655
|
headers: {}
|
3577
3656
|
};
|
3578
3657
|
const localVarHeaderParameter = {};
|
3658
|
+
const localVarQueryParameter = {};
|
3659
|
+
let pageIndex;
|
3660
|
+
let pageSize;
|
3661
|
+
let search;
|
3662
|
+
let sortField;
|
3663
|
+
let sortOrder;
|
3664
|
+
let creatorId;
|
3665
|
+
let buildStatus;
|
3666
|
+
if (listJobRequest !== null && listJobRequest !== undefined) {
|
3667
|
+
if (listJobRequest instanceof ListJobRequest_1.ListJobRequest) {
|
3668
|
+
pageIndex = listJobRequest.pageIndex;
|
3669
|
+
pageSize = listJobRequest.pageSize;
|
3670
|
+
search = listJobRequest.search;
|
3671
|
+
sortField = listJobRequest.sortField;
|
3672
|
+
sortOrder = listJobRequest.sortOrder;
|
3673
|
+
creatorId = listJobRequest.creatorId;
|
3674
|
+
buildStatus = listJobRequest.buildStatus;
|
3675
|
+
}
|
3676
|
+
else {
|
3677
|
+
pageIndex = listJobRequest['page_index'];
|
3678
|
+
pageSize = listJobRequest['page_size'];
|
3679
|
+
search = listJobRequest['search'];
|
3680
|
+
sortField = listJobRequest['sort_field'];
|
3681
|
+
sortOrder = listJobRequest['sort_order'];
|
3682
|
+
creatorId = listJobRequest['creator_id'];
|
3683
|
+
buildStatus = listJobRequest['build_status'];
|
3684
|
+
}
|
3685
|
+
}
|
3686
|
+
if (pageIndex !== null && pageIndex !== undefined) {
|
3687
|
+
localVarQueryParameter['page_index'] = pageIndex;
|
3688
|
+
}
|
3689
|
+
if (pageSize !== null && pageSize !== undefined) {
|
3690
|
+
localVarQueryParameter['page_size'] = pageSize;
|
3691
|
+
}
|
3692
|
+
if (search !== null && search !== undefined) {
|
3693
|
+
localVarQueryParameter['search'] = search;
|
3694
|
+
}
|
3695
|
+
if (sortField !== null && sortField !== undefined) {
|
3696
|
+
localVarQueryParameter['sort_field'] = sortField;
|
3697
|
+
}
|
3698
|
+
if (sortOrder !== null && sortOrder !== undefined) {
|
3699
|
+
localVarQueryParameter['sort_order'] = sortOrder;
|
3700
|
+
}
|
3701
|
+
if (creatorId !== null && creatorId !== undefined) {
|
3702
|
+
localVarQueryParameter['creator_id'] = creatorId;
|
3703
|
+
}
|
3704
|
+
if (buildStatus !== null && buildStatus !== undefined) {
|
3705
|
+
localVarQueryParameter['build_status'] = buildStatus;
|
3706
|
+
}
|
3707
|
+
options.queryParams = localVarQueryParameter;
|
3579
3708
|
options.headers = localVarHeaderParameter;
|
3580
3709
|
return options;
|
3581
3710
|
},
|
@@ -4121,6 +4250,51 @@ const ParamCreater = function () {
|
|
4121
4250
|
options.headers = localVarHeaderParameter;
|
4122
4251
|
return options;
|
4123
4252
|
},
|
4253
|
+
/**
|
4254
|
+
* 流水线查看构建任务信息
|
4255
|
+
*
|
4256
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
4257
|
+
*/
|
4258
|
+
showJobPipelineInfo(showJobPipelineInfoRequest) {
|
4259
|
+
const options = {
|
4260
|
+
method: "GET",
|
4261
|
+
url: "/v1/job/{job_id}/pipeline-info",
|
4262
|
+
contentType: "application/json",
|
4263
|
+
queryParams: {},
|
4264
|
+
pathParams: {},
|
4265
|
+
headers: {}
|
4266
|
+
};
|
4267
|
+
const localVarHeaderParameter = {};
|
4268
|
+
const localVarQueryParameter = {};
|
4269
|
+
let jobId;
|
4270
|
+
let all;
|
4271
|
+
let checkParamUsed;
|
4272
|
+
if (showJobPipelineInfoRequest !== null && showJobPipelineInfoRequest !== undefined) {
|
4273
|
+
if (showJobPipelineInfoRequest instanceof ShowJobPipelineInfoRequest_1.ShowJobPipelineInfoRequest) {
|
4274
|
+
jobId = showJobPipelineInfoRequest.jobId;
|
4275
|
+
all = showJobPipelineInfoRequest.all;
|
4276
|
+
checkParamUsed = showJobPipelineInfoRequest.checkParamUsed;
|
4277
|
+
}
|
4278
|
+
else {
|
4279
|
+
jobId = showJobPipelineInfoRequest['job_id'];
|
4280
|
+
all = showJobPipelineInfoRequest['all'];
|
4281
|
+
checkParamUsed = showJobPipelineInfoRequest['check_param_used'];
|
4282
|
+
}
|
4283
|
+
}
|
4284
|
+
if (jobId === null || jobId === undefined) {
|
4285
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showJobPipelineInfo.');
|
4286
|
+
}
|
4287
|
+
if (all !== null && all !== undefined) {
|
4288
|
+
localVarQueryParameter['all'] = all;
|
4289
|
+
}
|
4290
|
+
if (checkParamUsed !== null && checkParamUsed !== undefined) {
|
4291
|
+
localVarQueryParameter['check_param_used'] = checkParamUsed;
|
4292
|
+
}
|
4293
|
+
options.queryParams = localVarQueryParameter;
|
4294
|
+
options.pathParams = { 'job_id': jobId, };
|
4295
|
+
options.headers = localVarHeaderParameter;
|
4296
|
+
return options;
|
4297
|
+
},
|
4124
4298
|
/**
|
4125
4299
|
* 获取构建任务的角色权限矩阵信息
|
4126
4300
|
*
|
@@ -4288,6 +4462,45 @@ const ParamCreater = function () {
|
|
4288
4462
|
options.headers = localVarHeaderParameter;
|
4289
4463
|
return options;
|
4290
4464
|
},
|
4465
|
+
/**
|
4466
|
+
* 停止构建任务v1
|
4467
|
+
*
|
4468
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
4469
|
+
*/
|
4470
|
+
stopTheJob(stopTheJobRequest) {
|
4471
|
+
const options = {
|
4472
|
+
method: "POST",
|
4473
|
+
url: "/v1/job/{job_id}/stop",
|
4474
|
+
contentType: "application/json",
|
4475
|
+
queryParams: {},
|
4476
|
+
pathParams: {},
|
4477
|
+
headers: {}
|
4478
|
+
};
|
4479
|
+
const localVarHeaderParameter = {};
|
4480
|
+
const localVarQueryParameter = {};
|
4481
|
+
let jobId;
|
4482
|
+
let buildNo;
|
4483
|
+
if (stopTheJobRequest !== null && stopTheJobRequest !== undefined) {
|
4484
|
+
if (stopTheJobRequest instanceof StopTheJobRequest_1.StopTheJobRequest) {
|
4485
|
+
jobId = stopTheJobRequest.jobId;
|
4486
|
+
buildNo = stopTheJobRequest.buildNo;
|
4487
|
+
}
|
4488
|
+
else {
|
4489
|
+
jobId = stopTheJobRequest['job_id'];
|
4490
|
+
buildNo = stopTheJobRequest['build_no'];
|
4491
|
+
}
|
4492
|
+
}
|
4493
|
+
if (jobId === null || jobId === undefined) {
|
4494
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling stopTheJob.');
|
4495
|
+
}
|
4496
|
+
if (buildNo !== null && buildNo !== undefined) {
|
4497
|
+
localVarQueryParameter['build_no'] = buildNo;
|
4498
|
+
}
|
4499
|
+
options.queryParams = localVarQueryParameter;
|
4500
|
+
options.pathParams = { 'job_id': jobId, };
|
4501
|
+
options.headers = localVarHeaderParameter;
|
4502
|
+
return options;
|
4503
|
+
},
|
4291
4504
|
/**
|
4292
4505
|
* 更新构建任务
|
4293
4506
|
*
|
@@ -4321,6 +4534,39 @@ const ParamCreater = function () {
|
|
4321
4534
|
options.headers = localVarHeaderParameter;
|
4322
4535
|
return options;
|
4323
4536
|
},
|
4537
|
+
/**
|
4538
|
+
* 添加文件权限
|
4539
|
+
*
|
4540
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
4541
|
+
*/
|
4542
|
+
addKeystorePermission(addKeystorePermissionRequest) {
|
4543
|
+
const options = {
|
4544
|
+
method: "POST",
|
4545
|
+
url: "/v2/keystore/permission/add",
|
4546
|
+
contentType: "application/json",
|
4547
|
+
queryParams: {},
|
4548
|
+
pathParams: {},
|
4549
|
+
headers: {},
|
4550
|
+
data: {}
|
4551
|
+
};
|
4552
|
+
const localVarHeaderParameter = {};
|
4553
|
+
let body;
|
4554
|
+
if (addKeystorePermissionRequest !== null && addKeystorePermissionRequest !== undefined) {
|
4555
|
+
if (addKeystorePermissionRequest instanceof AddKeystorePermissionRequest_1.AddKeystorePermissionRequest) {
|
4556
|
+
body = addKeystorePermissionRequest.body;
|
4557
|
+
}
|
4558
|
+
else {
|
4559
|
+
body = addKeystorePermissionRequest['body'];
|
4560
|
+
}
|
4561
|
+
}
|
4562
|
+
if (body === null || body === undefined) {
|
4563
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
4564
|
+
}
|
4565
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
4566
|
+
options.data = body !== undefined ? body : {};
|
4567
|
+
options.headers = localVarHeaderParameter;
|
4568
|
+
return options;
|
4569
|
+
},
|
4324
4570
|
/**
|
4325
4571
|
* 删除文件管理文件
|
4326
4572
|
*
|
@@ -4589,6 +4835,39 @@ const ParamCreater = function () {
|
|
4589
4835
|
options.headers = localVarHeaderParameter;
|
4590
4836
|
return options;
|
4591
4837
|
},
|
4838
|
+
/**
|
4839
|
+
* 配置文件权限
|
4840
|
+
*
|
4841
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
4842
|
+
*/
|
4843
|
+
updateKeystorePermission(updateKeystorePermissionRequest) {
|
4844
|
+
const options = {
|
4845
|
+
method: "POST",
|
4846
|
+
url: "/v2/keystore/permission/edit",
|
4847
|
+
contentType: "application/json",
|
4848
|
+
queryParams: {},
|
4849
|
+
pathParams: {},
|
4850
|
+
headers: {},
|
4851
|
+
data: {}
|
4852
|
+
};
|
4853
|
+
const localVarHeaderParameter = {};
|
4854
|
+
let body;
|
4855
|
+
if (updateKeystorePermissionRequest !== null && updateKeystorePermissionRequest !== undefined) {
|
4856
|
+
if (updateKeystorePermissionRequest instanceof UpdateKeystorePermissionRequest_1.UpdateKeystorePermissionRequest) {
|
4857
|
+
body = updateKeystorePermissionRequest.body;
|
4858
|
+
}
|
4859
|
+
else {
|
4860
|
+
body = updateKeystorePermissionRequest['body'];
|
4861
|
+
}
|
4862
|
+
}
|
4863
|
+
if (body === null || body === undefined) {
|
4864
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
4865
|
+
}
|
4866
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
4867
|
+
options.data = body !== undefined ? body : {};
|
4868
|
+
options.headers = localVarHeaderParameter;
|
4869
|
+
return options;
|
4870
|
+
},
|
4592
4871
|
/**
|
4593
4872
|
* 上传文件
|
4594
4873
|
*
|