@huaweicloud/huaweicloud-sdk-live 3.1.172 → 3.1.173
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/v1/LiveClient.d.ts +275 -0
- package/v1/LiveClient.d.ts.map +1 -1
- package/v1/LiveClient.js +569 -0
- package/v1/LiveClient.js.map +1 -1
- package/v1/model/CreateWatermarkRuleRequest.d.ts +7 -0
- package/v1/model/CreateWatermarkRuleRequest.d.ts.map +1 -0
- package/v1/model/CreateWatermarkRuleRequest.js +13 -0
- package/v1/model/CreateWatermarkRuleRequest.js.map +1 -0
- package/v1/model/CreateWatermarkRuleResponse.d.ts +34 -0
- package/v1/model/CreateWatermarkRuleResponse.d.ts.map +1 -0
- package/v1/model/CreateWatermarkRuleResponse.js +77 -0
- package/v1/model/CreateWatermarkRuleResponse.js.map +1 -0
- package/v1/model/CreateWatermarkTemplateRequest.d.ts +7 -0
- package/v1/model/CreateWatermarkTemplateRequest.d.ts.map +1 -0
- package/v1/model/CreateWatermarkTemplateRequest.js +13 -0
- package/v1/model/CreateWatermarkTemplateRequest.js.map +1 -0
- package/v1/model/CreateWatermarkTemplateResponse.d.ts +39 -0
- package/v1/model/CreateWatermarkTemplateResponse.d.ts.map +1 -0
- package/v1/model/CreateWatermarkTemplateResponse.js +72 -0
- package/v1/model/CreateWatermarkTemplateResponse.js.map +1 -0
- package/v1/model/DashPackageItem.d.ts +34 -1
- package/v1/model/DashPackageItem.d.ts.map +1 -1
- package/v1/model/DashPackageItem.js +81 -2
- package/v1/model/DashPackageItem.js.map +1 -1
- package/v1/model/DeleteWatermarkRuleRequest.d.ts +6 -0
- package/v1/model/DeleteWatermarkRuleRequest.d.ts.map +1 -0
- package/v1/model/DeleteWatermarkRuleRequest.js +14 -0
- package/v1/model/DeleteWatermarkRuleRequest.js.map +1 -0
- package/v1/model/DeleteWatermarkRuleResponse.d.ts +9 -0
- package/v1/model/DeleteWatermarkRuleResponse.d.ts.map +1 -0
- package/v1/model/DeleteWatermarkRuleResponse.js +21 -0
- package/v1/model/DeleteWatermarkRuleResponse.js.map +1 -0
- package/v1/model/DeleteWatermarkTemplateRequest.d.ts +6 -0
- package/v1/model/DeleteWatermarkTemplateRequest.d.ts.map +1 -0
- package/v1/model/DeleteWatermarkTemplateRequest.js +14 -0
- package/v1/model/DeleteWatermarkTemplateRequest.js.map +1 -0
- package/v1/model/DeleteWatermarkTemplateResponse.d.ts +9 -0
- package/v1/model/DeleteWatermarkTemplateResponse.d.ts.map +1 -0
- package/v1/model/DeleteWatermarkTemplateResponse.js +21 -0
- package/v1/model/DeleteWatermarkTemplateResponse.js.map +1 -0
- package/v1/model/HlsPackageItem.d.ts +34 -1
- package/v1/model/HlsPackageItem.d.ts.map +1 -1
- package/v1/model/HlsPackageItem.js +81 -2
- package/v1/model/HlsPackageItem.js.map +1 -1
- package/v1/model/ListWatermarkRuleRequest.d.ts +22 -0
- package/v1/model/ListWatermarkRuleRequest.d.ts.map +1 -0
- package/v1/model/ListWatermarkRuleRequest.js +49 -0
- package/v1/model/ListWatermarkRuleRequest.js.map +1 -0
- package/v1/model/ListWatermarkRuleResponse.d.ts +16 -0
- package/v1/model/ListWatermarkRuleResponse.d.ts.map +1 -0
- package/v1/model/ListWatermarkRuleResponse.js +35 -0
- package/v1/model/ListWatermarkRuleResponse.js.map +1 -0
- package/v1/model/ListWatermarkTemplateRequest.d.ts +20 -0
- package/v1/model/ListWatermarkTemplateRequest.d.ts.map +1 -0
- package/v1/model/ListWatermarkTemplateRequest.js +34 -0
- package/v1/model/ListWatermarkTemplateRequest.js.map +1 -0
- package/v1/model/ListWatermarkTemplateResponse.d.ts +16 -0
- package/v1/model/ListWatermarkTemplateResponse.d.ts.map +1 -0
- package/v1/model/ListWatermarkTemplateResponse.js +35 -0
- package/v1/model/ListWatermarkTemplateResponse.js.map +1 -0
- package/v1/model/ModifyWatermarkRule.d.ts +11 -0
- package/v1/model/ModifyWatermarkRule.d.ts.map +1 -0
- package/v1/model/ModifyWatermarkRule.js +24 -0
- package/v1/model/ModifyWatermarkRule.js.map +1 -0
- package/v1/model/MssPackageItem.d.ts +34 -1
- package/v1/model/MssPackageItem.d.ts.map +1 -1
- package/v1/model/MssPackageItem.js +81 -2
- package/v1/model/MssPackageItem.js.map +1 -1
- package/v1/model/ObsFileAddr.d.ts +1 -1
- package/v1/model/ObsFileAddr.d.ts.map +1 -1
- package/v1/model/ObsFileAddr.js +1 -2
- package/v1/model/ObsFileAddr.js.map +1 -1
- package/v1/model/ShowWatermarkRuleRequest.d.ts +6 -0
- package/v1/model/ShowWatermarkRuleRequest.d.ts.map +1 -0
- package/v1/model/ShowWatermarkRuleRequest.js +14 -0
- package/v1/model/ShowWatermarkRuleRequest.js.map +1 -0
- package/v1/model/ShowWatermarkRuleResponse.d.ts +34 -0
- package/v1/model/ShowWatermarkRuleResponse.d.ts.map +1 -0
- package/v1/model/ShowWatermarkRuleResponse.js +77 -0
- package/v1/model/ShowWatermarkRuleResponse.js.map +1 -0
- package/v1/model/ShowWatermarkTemplateRequest.d.ts +6 -0
- package/v1/model/ShowWatermarkTemplateRequest.d.ts.map +1 -0
- package/v1/model/ShowWatermarkTemplateRequest.js +14 -0
- package/v1/model/ShowWatermarkTemplateRequest.js.map +1 -0
- package/v1/model/ShowWatermarkTemplateResponse.d.ts +39 -0
- package/v1/model/ShowWatermarkTemplateResponse.d.ts.map +1 -0
- package/v1/model/ShowWatermarkTemplateResponse.js +72 -0
- package/v1/model/ShowWatermarkTemplateResponse.js.map +1 -0
- package/v1/model/UpdateWatermarkRuleRequest.d.ts +9 -0
- package/v1/model/UpdateWatermarkRuleRequest.d.ts.map +1 -0
- package/v1/model/UpdateWatermarkRuleRequest.js +18 -0
- package/v1/model/UpdateWatermarkRuleRequest.js.map +1 -0
- package/v1/model/UpdateWatermarkRuleResponse.d.ts +34 -0
- package/v1/model/UpdateWatermarkRuleResponse.d.ts.map +1 -0
- package/v1/model/UpdateWatermarkRuleResponse.js +77 -0
- package/v1/model/UpdateWatermarkRuleResponse.js.map +1 -0
- package/v1/model/UpdateWatermarkTemplateRequest.d.ts +9 -0
- package/v1/model/UpdateWatermarkTemplateRequest.d.ts.map +1 -0
- package/v1/model/UpdateWatermarkTemplateRequest.js +18 -0
- package/v1/model/UpdateWatermarkTemplateRequest.js.map +1 -0
- package/v1/model/UpdateWatermarkTemplateResponse.d.ts +39 -0
- package/v1/model/UpdateWatermarkTemplateResponse.d.ts.map +1 -0
- package/v1/model/UpdateWatermarkTemplateResponse.js +72 -0
- package/v1/model/UpdateWatermarkTemplateResponse.js.map +1 -0
- package/v1/model/WatermarkLocation.d.ts +25 -0
- package/v1/model/WatermarkLocation.d.ts.map +1 -0
- package/v1/model/WatermarkLocation.js +45 -0
- package/v1/model/WatermarkLocation.js.map +1 -0
- package/v1/model/WatermarkRule.d.ts +29 -0
- package/v1/model/WatermarkRule.d.ts.map +1 -0
- package/v1/model/WatermarkRule.js +67 -0
- package/v1/model/WatermarkRule.js.map +1 -0
- package/v1/model/WatermarkTemplate.d.ts +34 -0
- package/v1/model/WatermarkTemplate.d.ts.map +1 -0
- package/v1/model/WatermarkTemplate.js +61 -0
- package/v1/model/WatermarkTemplate.js.map +1 -0
- package/v1/model/WordWaterMarkInfo.d.ts +27 -0
- package/v1/model/WordWaterMarkInfo.d.ts.map +1 -0
- package/v1/model/WordWaterMarkInfo.js +63 -0
- package/v1/model/WordWaterMarkInfo.js.map +1 -0
- package/v1/public-api.d.ts +25 -0
- package/v1/public-api.d.ts.map +1 -1
- package/v1/public-api.js +25 -0
- package/v1/public-api.js.map +1 -1
package/v1/LiveClient.js
CHANGED
|
@@ -18,6 +18,8 @@ const CreateStreamForbiddenOnceRequest_1 = require("./model/CreateStreamForbidde
|
|
|
18
18
|
const CreateStreamForbiddenRequest_1 = require("./model/CreateStreamForbiddenRequest");
|
|
19
19
|
const CreateTranscodingsTemplateRequest_1 = require("./model/CreateTranscodingsTemplateRequest");
|
|
20
20
|
const CreateUrlAuthchainRequest_1 = require("./model/CreateUrlAuthchainRequest");
|
|
21
|
+
const CreateWatermarkRuleRequest_1 = require("./model/CreateWatermarkRuleRequest");
|
|
22
|
+
const CreateWatermarkTemplateRequest_1 = require("./model/CreateWatermarkTemplateRequest");
|
|
21
23
|
const DeleteDomainHttpsCertRequest_1 = require("./model/DeleteDomainHttpsCertRequest");
|
|
22
24
|
const DeleteDomainKeyChainRequest_1 = require("./model/DeleteDomainKeyChainRequest");
|
|
23
25
|
const DeleteDomainMappingRequest_1 = require("./model/DeleteDomainMappingRequest");
|
|
@@ -34,6 +36,8 @@ const DeleteScheduleRecordTasksRequest_1 = require("./model/DeleteScheduleRecord
|
|
|
34
36
|
const DeleteSnapshotConfigRequest_1 = require("./model/DeleteSnapshotConfigRequest");
|
|
35
37
|
const DeleteStreamForbiddenRequest_1 = require("./model/DeleteStreamForbiddenRequest");
|
|
36
38
|
const DeleteTranscodingsTemplateRequest_1 = require("./model/DeleteTranscodingsTemplateRequest");
|
|
39
|
+
const DeleteWatermarkRuleRequest_1 = require("./model/DeleteWatermarkRuleRequest");
|
|
40
|
+
const DeleteWatermarkTemplateRequest_1 = require("./model/DeleteWatermarkTemplateRequest");
|
|
37
41
|
const ListCesDimsInfoRequest_1 = require("./model/ListCesDimsInfoRequest");
|
|
38
42
|
const ListCesInstanceRequest_1 = require("./model/ListCesInstanceRequest");
|
|
39
43
|
const ListDelayConfigRequest_1 = require("./model/ListDelayConfigRequest");
|
|
@@ -52,6 +56,8 @@ const ListRecordRulesRequest_1 = require("./model/ListRecordRulesRequest");
|
|
|
52
56
|
const ListScheduleRecordTasksRequest_1 = require("./model/ListScheduleRecordTasksRequest");
|
|
53
57
|
const ListSnapshotConfigsRequest_1 = require("./model/ListSnapshotConfigsRequest");
|
|
54
58
|
const ListStreamForbiddenRequest_1 = require("./model/ListStreamForbiddenRequest");
|
|
59
|
+
const ListWatermarkRuleRequest_1 = require("./model/ListWatermarkRuleRequest");
|
|
60
|
+
const ListWatermarkTemplateRequest_1 = require("./model/ListWatermarkTemplateRequest");
|
|
55
61
|
const ModifyFlowOutputRequest_1 = require("./model/ModifyFlowOutputRequest");
|
|
56
62
|
const ModifyFlowSourcesRequest_1 = require("./model/ModifyFlowSourcesRequest");
|
|
57
63
|
const ModifyFlowStartRequest_1 = require("./model/ModifyFlowStartRequest");
|
|
@@ -76,6 +82,8 @@ const ShowRecordCallbackConfigRequest_1 = require("./model/ShowRecordCallbackCon
|
|
|
76
82
|
const ShowRecordRuleRequest_1 = require("./model/ShowRecordRuleRequest");
|
|
77
83
|
const ShowRefererChainRequest_1 = require("./model/ShowRefererChainRequest");
|
|
78
84
|
const ShowTranscodingsTemplateRequest_1 = require("./model/ShowTranscodingsTemplateRequest");
|
|
85
|
+
const ShowWatermarkRuleRequest_1 = require("./model/ShowWatermarkRuleRequest");
|
|
86
|
+
const ShowWatermarkTemplateRequest_1 = require("./model/ShowWatermarkTemplateRequest");
|
|
79
87
|
const UpdateDelayConfigRequest_1 = require("./model/UpdateDelayConfigRequest");
|
|
80
88
|
const UpdateDomainHttpsCertRequest_1 = require("./model/UpdateDomainHttpsCertRequest");
|
|
81
89
|
const UpdateDomainIp6SwitchRequest_1 = require("./model/UpdateDomainIp6SwitchRequest");
|
|
@@ -93,6 +101,8 @@ const UpdateRecordRuleRequest_1 = require("./model/UpdateRecordRuleRequest");
|
|
|
93
101
|
const UpdateSnapshotConfigRequest_1 = require("./model/UpdateSnapshotConfigRequest");
|
|
94
102
|
const UpdateStreamForbiddenRequest_1 = require("./model/UpdateStreamForbiddenRequest");
|
|
95
103
|
const UpdateTranscodingsTemplateRequest_1 = require("./model/UpdateTranscodingsTemplateRequest");
|
|
104
|
+
const UpdateWatermarkRuleRequest_1 = require("./model/UpdateWatermarkRuleRequest");
|
|
105
|
+
const UpdateWatermarkTemplateRequest_1 = require("./model/UpdateWatermarkTemplateRequest");
|
|
96
106
|
class LiveClient {
|
|
97
107
|
static newBuilder() {
|
|
98
108
|
let client = new ClientBuilder_1.ClientBuilder(newClient);
|
|
@@ -329,6 +339,38 @@ class LiveClient {
|
|
|
329
339
|
options['responseHeaders'] = [''];
|
|
330
340
|
return this.hcClient.sendRequest(options);
|
|
331
341
|
}
|
|
342
|
+
/**
|
|
343
|
+
* 创建水印规则接口,必须先创建水印模板
|
|
344
|
+
*
|
|
345
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
346
|
+
*
|
|
347
|
+
* @summary 创建水印规则
|
|
348
|
+
* @param {WatermarkRule} createWatermarkRuleRequestBody 水印规则
|
|
349
|
+
* @param {*} [options] Override http request option.
|
|
350
|
+
* @throws {RequiredError}
|
|
351
|
+
*/
|
|
352
|
+
createWatermarkRule(createWatermarkRuleRequest) {
|
|
353
|
+
const options = (0, exports.ParamCreater)().createWatermarkRule(createWatermarkRuleRequest);
|
|
354
|
+
// @ts-ignore
|
|
355
|
+
options['responseHeaders'] = ['X-request-id'];
|
|
356
|
+
return this.hcClient.sendRequest(options);
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* 创建水印模板接口,需要绑定水印规则才生效
|
|
360
|
+
*
|
|
361
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
362
|
+
*
|
|
363
|
+
* @summary 创建水印模板
|
|
364
|
+
* @param {WatermarkTemplate} createWatermarkTemplateRequestBody 水印模板
|
|
365
|
+
* @param {*} [options] Override http request option.
|
|
366
|
+
* @throws {RequiredError}
|
|
367
|
+
*/
|
|
368
|
+
createWatermarkTemplate(createWatermarkTemplateRequest) {
|
|
369
|
+
const options = (0, exports.ParamCreater)().createWatermarkTemplate(createWatermarkTemplateRequest);
|
|
370
|
+
// @ts-ignore
|
|
371
|
+
options['responseHeaders'] = ['X-request-id'];
|
|
372
|
+
return this.hcClient.sendRequest(options);
|
|
373
|
+
}
|
|
332
374
|
/**
|
|
333
375
|
* 删除域名。只有在域名停用(off)状态时才能删除。
|
|
334
376
|
*
|
|
@@ -543,6 +585,38 @@ class LiveClient {
|
|
|
543
585
|
options['responseHeaders'] = [''];
|
|
544
586
|
return this.hcClient.sendRequest(options);
|
|
545
587
|
}
|
|
588
|
+
/**
|
|
589
|
+
* 删除水印规则接口
|
|
590
|
+
*
|
|
591
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
592
|
+
*
|
|
593
|
+
* @summary 删除水印规则
|
|
594
|
+
* @param {string} id 规则ID
|
|
595
|
+
* @param {*} [options] Override http request option.
|
|
596
|
+
* @throws {RequiredError}
|
|
597
|
+
*/
|
|
598
|
+
deleteWatermarkRule(deleteWatermarkRuleRequest) {
|
|
599
|
+
const options = (0, exports.ParamCreater)().deleteWatermarkRule(deleteWatermarkRuleRequest);
|
|
600
|
+
// @ts-ignore
|
|
601
|
+
options['responseHeaders'] = ['X-request-id'];
|
|
602
|
+
return this.hcClient.sendRequest(options);
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* 删除水印模板接口
|
|
606
|
+
*
|
|
607
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
608
|
+
*
|
|
609
|
+
* @summary 删除水印模板
|
|
610
|
+
* @param {string} id 模板ID
|
|
611
|
+
* @param {*} [options] Override http request option.
|
|
612
|
+
* @throws {RequiredError}
|
|
613
|
+
*/
|
|
614
|
+
deleteWatermarkTemplate(deleteWatermarkTemplateRequest) {
|
|
615
|
+
const options = (0, exports.ParamCreater)().deleteWatermarkTemplate(deleteWatermarkTemplateRequest);
|
|
616
|
+
// @ts-ignore
|
|
617
|
+
options['responseHeaders'] = ['X-request-id'];
|
|
618
|
+
return this.hcClient.sendRequest(options);
|
|
619
|
+
}
|
|
546
620
|
/**
|
|
547
621
|
* 查询播放域名延时配置。
|
|
548
622
|
*
|
|
@@ -806,6 +880,47 @@ class LiveClient {
|
|
|
806
880
|
options['responseHeaders'] = [''];
|
|
807
881
|
return this.hcClient.sendRequest(options);
|
|
808
882
|
}
|
|
883
|
+
/**
|
|
884
|
+
* 查询水印规则列表接口,通过指定条件,查询满足条件的水印规则列表。
|
|
885
|
+
*
|
|
886
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
887
|
+
*
|
|
888
|
+
* @summary 查询水印规则列表
|
|
889
|
+
* @param {string} [templateId] 水印模板ID
|
|
890
|
+
* @param {string} [domain] 推流域名
|
|
891
|
+
* @param {string} [app] 推流appname
|
|
892
|
+
* @param {string} [channelId] OTT场景,频道ID
|
|
893
|
+
* @param {string} [stream] OTT场景,填转码模板ID,云直播填流名
|
|
894
|
+
* @param {number} [offset] 偏移量,表示从此偏移量开始查询,offset大于等于0
|
|
895
|
+
* @param {number} [limit] 每页记录数,取值范围[1,100],默认值10
|
|
896
|
+
* @param {*} [options] Override http request option.
|
|
897
|
+
* @throws {RequiredError}
|
|
898
|
+
*/
|
|
899
|
+
listWatermarkRule(listWatermarkRuleRequest) {
|
|
900
|
+
const options = (0, exports.ParamCreater)().listWatermarkRule(listWatermarkRuleRequest);
|
|
901
|
+
// @ts-ignore
|
|
902
|
+
options['responseHeaders'] = ['X-request-id'];
|
|
903
|
+
return this.hcClient.sendRequest(options);
|
|
904
|
+
}
|
|
905
|
+
/**
|
|
906
|
+
* 查询水印模板列表接口,通过指定条件,查询满足条件的水印模板列表。
|
|
907
|
+
*
|
|
908
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
909
|
+
*
|
|
910
|
+
* @summary 查询水印模板列表
|
|
911
|
+
* @param {string} [name] 水印模板名称
|
|
912
|
+
* @param {'cloud_live' | 'media_live'} [scene] 区分媒体直播还是云直播,默认云直播,默认查询cloud_live
|
|
913
|
+
* @param {number} [offset] 偏移量,表示从此偏移量开始查询,offset大于等于0
|
|
914
|
+
* @param {number} [limit] 每页记录数,取值范围[1,100],默认值10
|
|
915
|
+
* @param {*} [options] Override http request option.
|
|
916
|
+
* @throws {RequiredError}
|
|
917
|
+
*/
|
|
918
|
+
listWatermarkTemplate(listWatermarkTemplateRequest) {
|
|
919
|
+
const options = (0, exports.ParamCreater)().listWatermarkTemplate(listWatermarkTemplateRequest);
|
|
920
|
+
// @ts-ignore
|
|
921
|
+
options['responseHeaders'] = ['X-request-id'];
|
|
922
|
+
return this.hcClient.sendRequest(options);
|
|
923
|
+
}
|
|
809
924
|
/**
|
|
810
925
|
* 更新转推输出
|
|
811
926
|
*
|
|
@@ -1057,6 +1172,38 @@ class LiveClient {
|
|
|
1057
1172
|
options['responseHeaders'] = [''];
|
|
1058
1173
|
return this.hcClient.sendRequest(options);
|
|
1059
1174
|
}
|
|
1175
|
+
/**
|
|
1176
|
+
* 查询水印模板规则接口
|
|
1177
|
+
*
|
|
1178
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1179
|
+
*
|
|
1180
|
+
* @summary 查询水印规则配置
|
|
1181
|
+
* @param {string} id 规则ID
|
|
1182
|
+
* @param {*} [options] Override http request option.
|
|
1183
|
+
* @throws {RequiredError}
|
|
1184
|
+
*/
|
|
1185
|
+
showWatermarkRule(showWatermarkRuleRequest) {
|
|
1186
|
+
const options = (0, exports.ParamCreater)().showWatermarkRule(showWatermarkRuleRequest);
|
|
1187
|
+
// @ts-ignore
|
|
1188
|
+
options['responseHeaders'] = ['X-request-id'];
|
|
1189
|
+
return this.hcClient.sendRequest(options);
|
|
1190
|
+
}
|
|
1191
|
+
/**
|
|
1192
|
+
* 查询水印模板详情接口
|
|
1193
|
+
*
|
|
1194
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1195
|
+
*
|
|
1196
|
+
* @summary 查询水印模板配置
|
|
1197
|
+
* @param {string} id 模板ID
|
|
1198
|
+
* @param {*} [options] Override http request option.
|
|
1199
|
+
* @throws {RequiredError}
|
|
1200
|
+
*/
|
|
1201
|
+
showWatermarkTemplate(showWatermarkTemplateRequest) {
|
|
1202
|
+
const options = (0, exports.ParamCreater)().showWatermarkTemplate(showWatermarkTemplateRequest);
|
|
1203
|
+
// @ts-ignore
|
|
1204
|
+
options['responseHeaders'] = ['X-request-id'];
|
|
1205
|
+
return this.hcClient.sendRequest(options);
|
|
1206
|
+
}
|
|
1060
1207
|
/**
|
|
1061
1208
|
* 修改播放域名延时配置。
|
|
1062
1209
|
*
|
|
@@ -1289,6 +1436,40 @@ class LiveClient {
|
|
|
1289
1436
|
options['responseHeaders'] = [''];
|
|
1290
1437
|
return this.hcClient.sendRequest(options);
|
|
1291
1438
|
}
|
|
1439
|
+
/**
|
|
1440
|
+
* 修改水印规则接口,修改后实时生效,只能修改Location
|
|
1441
|
+
*
|
|
1442
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1443
|
+
*
|
|
1444
|
+
* @summary 修改水印规则
|
|
1445
|
+
* @param {string} id 规则ID,在创建成功后返回
|
|
1446
|
+
* @param {ModifyWatermarkRule} updateWatermarkRuleRequestBody 水印规则配置
|
|
1447
|
+
* @param {*} [options] Override http request option.
|
|
1448
|
+
* @throws {RequiredError}
|
|
1449
|
+
*/
|
|
1450
|
+
updateWatermarkRule(updateWatermarkRuleRequest) {
|
|
1451
|
+
const options = (0, exports.ParamCreater)().updateWatermarkRule(updateWatermarkRuleRequest);
|
|
1452
|
+
// @ts-ignore
|
|
1453
|
+
options['responseHeaders'] = ['X-request-id'];
|
|
1454
|
+
return this.hcClient.sendRequest(options);
|
|
1455
|
+
}
|
|
1456
|
+
/**
|
|
1457
|
+
* 修改水印模板接口,修改后实时生效
|
|
1458
|
+
*
|
|
1459
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1460
|
+
*
|
|
1461
|
+
* @summary 修改水印模板
|
|
1462
|
+
* @param {string} id 模板ID,在创建成功后返回
|
|
1463
|
+
* @param {WatermarkTemplate} updateWatermarkTemplateRequestBody 水印模板配置
|
|
1464
|
+
* @param {*} [options] Override http request option.
|
|
1465
|
+
* @throws {RequiredError}
|
|
1466
|
+
*/
|
|
1467
|
+
updateWatermarkTemplate(updateWatermarkTemplateRequest) {
|
|
1468
|
+
const options = (0, exports.ParamCreater)().updateWatermarkTemplate(updateWatermarkTemplateRequest);
|
|
1469
|
+
// @ts-ignore
|
|
1470
|
+
options['responseHeaders'] = ['X-request-id'];
|
|
1471
|
+
return this.hcClient.sendRequest(options);
|
|
1472
|
+
}
|
|
1292
1473
|
/**
|
|
1293
1474
|
* 新增维度配置信息查询API
|
|
1294
1475
|
*
|
|
@@ -2151,6 +2332,72 @@ const ParamCreater = function () {
|
|
|
2151
2332
|
options.headers = localVarHeaderParameter;
|
|
2152
2333
|
return options;
|
|
2153
2334
|
},
|
|
2335
|
+
/**
|
|
2336
|
+
* 创建水印规则接口,必须先创建水印模板
|
|
2337
|
+
*
|
|
2338
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2339
|
+
*/
|
|
2340
|
+
createWatermarkRule(createWatermarkRuleRequest) {
|
|
2341
|
+
const options = {
|
|
2342
|
+
method: "POST",
|
|
2343
|
+
url: "/v1/{project_id}/watermark/rules",
|
|
2344
|
+
contentType: "application/json; charset=UTF-8",
|
|
2345
|
+
queryParams: {},
|
|
2346
|
+
pathParams: {},
|
|
2347
|
+
headers: {},
|
|
2348
|
+
data: {}
|
|
2349
|
+
};
|
|
2350
|
+
const localVarHeaderParameter = {};
|
|
2351
|
+
let body;
|
|
2352
|
+
if (createWatermarkRuleRequest !== null && createWatermarkRuleRequest !== undefined) {
|
|
2353
|
+
if (createWatermarkRuleRequest instanceof CreateWatermarkRuleRequest_1.CreateWatermarkRuleRequest) {
|
|
2354
|
+
body = createWatermarkRuleRequest.body;
|
|
2355
|
+
}
|
|
2356
|
+
else {
|
|
2357
|
+
body = createWatermarkRuleRequest['body'];
|
|
2358
|
+
}
|
|
2359
|
+
}
|
|
2360
|
+
if (body === null || body === undefined) {
|
|
2361
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2362
|
+
}
|
|
2363
|
+
localVarHeaderParameter['Content-Type'] = 'application/json; charset=UTF-8';
|
|
2364
|
+
options.data = body !== undefined ? body : {};
|
|
2365
|
+
options.headers = localVarHeaderParameter;
|
|
2366
|
+
return options;
|
|
2367
|
+
},
|
|
2368
|
+
/**
|
|
2369
|
+
* 创建水印模板接口,需要绑定水印规则才生效
|
|
2370
|
+
*
|
|
2371
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2372
|
+
*/
|
|
2373
|
+
createWatermarkTemplate(createWatermarkTemplateRequest) {
|
|
2374
|
+
const options = {
|
|
2375
|
+
method: "POST",
|
|
2376
|
+
url: "/v1/{project_id}/watermark/templates",
|
|
2377
|
+
contentType: "application/json; charset=UTF-8",
|
|
2378
|
+
queryParams: {},
|
|
2379
|
+
pathParams: {},
|
|
2380
|
+
headers: {},
|
|
2381
|
+
data: {}
|
|
2382
|
+
};
|
|
2383
|
+
const localVarHeaderParameter = {};
|
|
2384
|
+
let body;
|
|
2385
|
+
if (createWatermarkTemplateRequest !== null && createWatermarkTemplateRequest !== undefined) {
|
|
2386
|
+
if (createWatermarkTemplateRequest instanceof CreateWatermarkTemplateRequest_1.CreateWatermarkTemplateRequest) {
|
|
2387
|
+
body = createWatermarkTemplateRequest.body;
|
|
2388
|
+
}
|
|
2389
|
+
else {
|
|
2390
|
+
body = createWatermarkTemplateRequest['body'];
|
|
2391
|
+
}
|
|
2392
|
+
}
|
|
2393
|
+
if (body === null || body === undefined) {
|
|
2394
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2395
|
+
}
|
|
2396
|
+
localVarHeaderParameter['Content-Type'] = 'application/json; charset=UTF-8';
|
|
2397
|
+
options.data = body !== undefined ? body : {};
|
|
2398
|
+
options.headers = localVarHeaderParameter;
|
|
2399
|
+
return options;
|
|
2400
|
+
},
|
|
2154
2401
|
/**
|
|
2155
2402
|
* 删除域名。只有在域名停用(off)状态时才能删除。
|
|
2156
2403
|
*
|
|
@@ -2652,6 +2899,68 @@ const ParamCreater = function () {
|
|
|
2652
2899
|
options.headers = localVarHeaderParameter;
|
|
2653
2900
|
return options;
|
|
2654
2901
|
},
|
|
2902
|
+
/**
|
|
2903
|
+
* 删除水印规则接口
|
|
2904
|
+
*
|
|
2905
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2906
|
+
*/
|
|
2907
|
+
deleteWatermarkRule(deleteWatermarkRuleRequest) {
|
|
2908
|
+
const options = {
|
|
2909
|
+
method: "DELETE",
|
|
2910
|
+
url: "/v1/{project_id}/watermark/rules/{id}",
|
|
2911
|
+
contentType: "application/json",
|
|
2912
|
+
queryParams: {},
|
|
2913
|
+
pathParams: {},
|
|
2914
|
+
headers: {}
|
|
2915
|
+
};
|
|
2916
|
+
const localVarHeaderParameter = {};
|
|
2917
|
+
let id;
|
|
2918
|
+
if (deleteWatermarkRuleRequest !== null && deleteWatermarkRuleRequest !== undefined) {
|
|
2919
|
+
if (deleteWatermarkRuleRequest instanceof DeleteWatermarkRuleRequest_1.DeleteWatermarkRuleRequest) {
|
|
2920
|
+
id = deleteWatermarkRuleRequest.id;
|
|
2921
|
+
}
|
|
2922
|
+
else {
|
|
2923
|
+
id = deleteWatermarkRuleRequest['id'];
|
|
2924
|
+
}
|
|
2925
|
+
}
|
|
2926
|
+
if (id === null || id === undefined) {
|
|
2927
|
+
throw new RequiredError('id', 'Required parameter id was null or undefined when calling deleteWatermarkRule.');
|
|
2928
|
+
}
|
|
2929
|
+
options.pathParams = { 'id': id, };
|
|
2930
|
+
options.headers = localVarHeaderParameter;
|
|
2931
|
+
return options;
|
|
2932
|
+
},
|
|
2933
|
+
/**
|
|
2934
|
+
* 删除水印模板接口
|
|
2935
|
+
*
|
|
2936
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2937
|
+
*/
|
|
2938
|
+
deleteWatermarkTemplate(deleteWatermarkTemplateRequest) {
|
|
2939
|
+
const options = {
|
|
2940
|
+
method: "DELETE",
|
|
2941
|
+
url: "/v1/{project_id}/watermark/templates/{id}",
|
|
2942
|
+
contentType: "application/json",
|
|
2943
|
+
queryParams: {},
|
|
2944
|
+
pathParams: {},
|
|
2945
|
+
headers: {}
|
|
2946
|
+
};
|
|
2947
|
+
const localVarHeaderParameter = {};
|
|
2948
|
+
let id;
|
|
2949
|
+
if (deleteWatermarkTemplateRequest !== null && deleteWatermarkTemplateRequest !== undefined) {
|
|
2950
|
+
if (deleteWatermarkTemplateRequest instanceof DeleteWatermarkTemplateRequest_1.DeleteWatermarkTemplateRequest) {
|
|
2951
|
+
id = deleteWatermarkTemplateRequest.id;
|
|
2952
|
+
}
|
|
2953
|
+
else {
|
|
2954
|
+
id = deleteWatermarkTemplateRequest['id'];
|
|
2955
|
+
}
|
|
2956
|
+
}
|
|
2957
|
+
if (id === null || id === undefined) {
|
|
2958
|
+
throw new RequiredError('id', 'Required parameter id was null or undefined when calling deleteWatermarkTemplate.');
|
|
2959
|
+
}
|
|
2960
|
+
options.pathParams = { 'id': id, };
|
|
2961
|
+
options.headers = localVarHeaderParameter;
|
|
2962
|
+
return options;
|
|
2963
|
+
},
|
|
2655
2964
|
/**
|
|
2656
2965
|
* 查询播放域名延时配置。
|
|
2657
2966
|
*
|
|
@@ -3358,6 +3667,124 @@ const ParamCreater = function () {
|
|
|
3358
3667
|
options.headers = localVarHeaderParameter;
|
|
3359
3668
|
return options;
|
|
3360
3669
|
},
|
|
3670
|
+
/**
|
|
3671
|
+
* 查询水印规则列表接口,通过指定条件,查询满足条件的水印规则列表。
|
|
3672
|
+
*
|
|
3673
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3674
|
+
*/
|
|
3675
|
+
listWatermarkRule(listWatermarkRuleRequest) {
|
|
3676
|
+
const options = {
|
|
3677
|
+
method: "GET",
|
|
3678
|
+
url: "/v1/{project_id}/watermark/rules",
|
|
3679
|
+
contentType: "application/json",
|
|
3680
|
+
queryParams: {},
|
|
3681
|
+
pathParams: {},
|
|
3682
|
+
headers: {}
|
|
3683
|
+
};
|
|
3684
|
+
const localVarHeaderParameter = {};
|
|
3685
|
+
const localVarQueryParameter = {};
|
|
3686
|
+
let templateId;
|
|
3687
|
+
let domain;
|
|
3688
|
+
let app;
|
|
3689
|
+
let channelId;
|
|
3690
|
+
let stream;
|
|
3691
|
+
let offset;
|
|
3692
|
+
let limit;
|
|
3693
|
+
if (listWatermarkRuleRequest !== null && listWatermarkRuleRequest !== undefined) {
|
|
3694
|
+
if (listWatermarkRuleRequest instanceof ListWatermarkRuleRequest_1.ListWatermarkRuleRequest) {
|
|
3695
|
+
templateId = listWatermarkRuleRequest.templateId;
|
|
3696
|
+
domain = listWatermarkRuleRequest.domain;
|
|
3697
|
+
app = listWatermarkRuleRequest.app;
|
|
3698
|
+
channelId = listWatermarkRuleRequest.channelId;
|
|
3699
|
+
stream = listWatermarkRuleRequest.stream;
|
|
3700
|
+
offset = listWatermarkRuleRequest.offset;
|
|
3701
|
+
limit = listWatermarkRuleRequest.limit;
|
|
3702
|
+
}
|
|
3703
|
+
else {
|
|
3704
|
+
templateId = listWatermarkRuleRequest['template_id'];
|
|
3705
|
+
domain = listWatermarkRuleRequest['domain'];
|
|
3706
|
+
app = listWatermarkRuleRequest['app'];
|
|
3707
|
+
channelId = listWatermarkRuleRequest['channel_id'];
|
|
3708
|
+
stream = listWatermarkRuleRequest['stream'];
|
|
3709
|
+
offset = listWatermarkRuleRequest['offset'];
|
|
3710
|
+
limit = listWatermarkRuleRequest['limit'];
|
|
3711
|
+
}
|
|
3712
|
+
}
|
|
3713
|
+
if (templateId !== null && templateId !== undefined) {
|
|
3714
|
+
localVarQueryParameter['template_id'] = templateId;
|
|
3715
|
+
}
|
|
3716
|
+
if (domain !== null && domain !== undefined) {
|
|
3717
|
+
localVarQueryParameter['domain'] = domain;
|
|
3718
|
+
}
|
|
3719
|
+
if (app !== null && app !== undefined) {
|
|
3720
|
+
localVarQueryParameter['app'] = app;
|
|
3721
|
+
}
|
|
3722
|
+
if (channelId !== null && channelId !== undefined) {
|
|
3723
|
+
localVarQueryParameter['channel_id'] = channelId;
|
|
3724
|
+
}
|
|
3725
|
+
if (stream !== null && stream !== undefined) {
|
|
3726
|
+
localVarQueryParameter['stream'] = stream;
|
|
3727
|
+
}
|
|
3728
|
+
if (offset !== null && offset !== undefined) {
|
|
3729
|
+
localVarQueryParameter['offset'] = offset;
|
|
3730
|
+
}
|
|
3731
|
+
if (limit !== null && limit !== undefined) {
|
|
3732
|
+
localVarQueryParameter['limit'] = limit;
|
|
3733
|
+
}
|
|
3734
|
+
options.queryParams = localVarQueryParameter;
|
|
3735
|
+
options.headers = localVarHeaderParameter;
|
|
3736
|
+
return options;
|
|
3737
|
+
},
|
|
3738
|
+
/**
|
|
3739
|
+
* 查询水印模板列表接口,通过指定条件,查询满足条件的水印模板列表。
|
|
3740
|
+
*
|
|
3741
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3742
|
+
*/
|
|
3743
|
+
listWatermarkTemplate(listWatermarkTemplateRequest) {
|
|
3744
|
+
const options = {
|
|
3745
|
+
method: "GET",
|
|
3746
|
+
url: "/v1/{project_id}/watermark/templates",
|
|
3747
|
+
contentType: "application/json",
|
|
3748
|
+
queryParams: {},
|
|
3749
|
+
pathParams: {},
|
|
3750
|
+
headers: {}
|
|
3751
|
+
};
|
|
3752
|
+
const localVarHeaderParameter = {};
|
|
3753
|
+
const localVarQueryParameter = {};
|
|
3754
|
+
let name;
|
|
3755
|
+
let scene;
|
|
3756
|
+
let offset;
|
|
3757
|
+
let limit;
|
|
3758
|
+
if (listWatermarkTemplateRequest !== null && listWatermarkTemplateRequest !== undefined) {
|
|
3759
|
+
if (listWatermarkTemplateRequest instanceof ListWatermarkTemplateRequest_1.ListWatermarkTemplateRequest) {
|
|
3760
|
+
name = listWatermarkTemplateRequest.name;
|
|
3761
|
+
scene = listWatermarkTemplateRequest.scene;
|
|
3762
|
+
offset = listWatermarkTemplateRequest.offset;
|
|
3763
|
+
limit = listWatermarkTemplateRequest.limit;
|
|
3764
|
+
}
|
|
3765
|
+
else {
|
|
3766
|
+
name = listWatermarkTemplateRequest['name'];
|
|
3767
|
+
scene = listWatermarkTemplateRequest['scene'];
|
|
3768
|
+
offset = listWatermarkTemplateRequest['offset'];
|
|
3769
|
+
limit = listWatermarkTemplateRequest['limit'];
|
|
3770
|
+
}
|
|
3771
|
+
}
|
|
3772
|
+
if (name !== null && name !== undefined) {
|
|
3773
|
+
localVarQueryParameter['name'] = name;
|
|
3774
|
+
}
|
|
3775
|
+
if (scene !== null && scene !== undefined) {
|
|
3776
|
+
localVarQueryParameter['scene'] = scene;
|
|
3777
|
+
}
|
|
3778
|
+
if (offset !== null && offset !== undefined) {
|
|
3779
|
+
localVarQueryParameter['offset'] = offset;
|
|
3780
|
+
}
|
|
3781
|
+
if (limit !== null && limit !== undefined) {
|
|
3782
|
+
localVarQueryParameter['limit'] = limit;
|
|
3783
|
+
}
|
|
3784
|
+
options.queryParams = localVarQueryParameter;
|
|
3785
|
+
options.headers = localVarHeaderParameter;
|
|
3786
|
+
return options;
|
|
3787
|
+
},
|
|
3361
3788
|
/**
|
|
3362
3789
|
* 更新转推输出
|
|
3363
3790
|
*
|
|
@@ -3954,6 +4381,68 @@ const ParamCreater = function () {
|
|
|
3954
4381
|
options.headers = localVarHeaderParameter;
|
|
3955
4382
|
return options;
|
|
3956
4383
|
},
|
|
4384
|
+
/**
|
|
4385
|
+
* 查询水印模板规则接口
|
|
4386
|
+
*
|
|
4387
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4388
|
+
*/
|
|
4389
|
+
showWatermarkRule(showWatermarkRuleRequest) {
|
|
4390
|
+
const options = {
|
|
4391
|
+
method: "GET",
|
|
4392
|
+
url: "/v1/{project_id}/watermark/rules/{id}",
|
|
4393
|
+
contentType: "application/json",
|
|
4394
|
+
queryParams: {},
|
|
4395
|
+
pathParams: {},
|
|
4396
|
+
headers: {}
|
|
4397
|
+
};
|
|
4398
|
+
const localVarHeaderParameter = {};
|
|
4399
|
+
let id;
|
|
4400
|
+
if (showWatermarkRuleRequest !== null && showWatermarkRuleRequest !== undefined) {
|
|
4401
|
+
if (showWatermarkRuleRequest instanceof ShowWatermarkRuleRequest_1.ShowWatermarkRuleRequest) {
|
|
4402
|
+
id = showWatermarkRuleRequest.id;
|
|
4403
|
+
}
|
|
4404
|
+
else {
|
|
4405
|
+
id = showWatermarkRuleRequest['id'];
|
|
4406
|
+
}
|
|
4407
|
+
}
|
|
4408
|
+
if (id === null || id === undefined) {
|
|
4409
|
+
throw new RequiredError('id', 'Required parameter id was null or undefined when calling showWatermarkRule.');
|
|
4410
|
+
}
|
|
4411
|
+
options.pathParams = { 'id': id, };
|
|
4412
|
+
options.headers = localVarHeaderParameter;
|
|
4413
|
+
return options;
|
|
4414
|
+
},
|
|
4415
|
+
/**
|
|
4416
|
+
* 查询水印模板详情接口
|
|
4417
|
+
*
|
|
4418
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4419
|
+
*/
|
|
4420
|
+
showWatermarkTemplate(showWatermarkTemplateRequest) {
|
|
4421
|
+
const options = {
|
|
4422
|
+
method: "GET",
|
|
4423
|
+
url: "/v1/{project_id}/watermark/templates/{id}",
|
|
4424
|
+
contentType: "application/json",
|
|
4425
|
+
queryParams: {},
|
|
4426
|
+
pathParams: {},
|
|
4427
|
+
headers: {}
|
|
4428
|
+
};
|
|
4429
|
+
const localVarHeaderParameter = {};
|
|
4430
|
+
let id;
|
|
4431
|
+
if (showWatermarkTemplateRequest !== null && showWatermarkTemplateRequest !== undefined) {
|
|
4432
|
+
if (showWatermarkTemplateRequest instanceof ShowWatermarkTemplateRequest_1.ShowWatermarkTemplateRequest) {
|
|
4433
|
+
id = showWatermarkTemplateRequest.id;
|
|
4434
|
+
}
|
|
4435
|
+
else {
|
|
4436
|
+
id = showWatermarkTemplateRequest['id'];
|
|
4437
|
+
}
|
|
4438
|
+
}
|
|
4439
|
+
if (id === null || id === undefined) {
|
|
4440
|
+
throw new RequiredError('id', 'Required parameter id was null or undefined when calling showWatermarkTemplate.');
|
|
4441
|
+
}
|
|
4442
|
+
options.pathParams = { 'id': id, };
|
|
4443
|
+
options.headers = localVarHeaderParameter;
|
|
4444
|
+
return options;
|
|
4445
|
+
},
|
|
3957
4446
|
/**
|
|
3958
4447
|
* 修改播放域名延时配置。
|
|
3959
4448
|
*
|
|
@@ -4463,6 +4952,86 @@ const ParamCreater = function () {
|
|
|
4463
4952
|
options.headers = localVarHeaderParameter;
|
|
4464
4953
|
return options;
|
|
4465
4954
|
},
|
|
4955
|
+
/**
|
|
4956
|
+
* 修改水印规则接口,修改后实时生效,只能修改Location
|
|
4957
|
+
*
|
|
4958
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4959
|
+
*/
|
|
4960
|
+
updateWatermarkRule(updateWatermarkRuleRequest) {
|
|
4961
|
+
const options = {
|
|
4962
|
+
method: "PUT",
|
|
4963
|
+
url: "/v1/{project_id}/watermark/rules/{id}",
|
|
4964
|
+
contentType: "application/json; charset=UTF-8",
|
|
4965
|
+
queryParams: {},
|
|
4966
|
+
pathParams: {},
|
|
4967
|
+
headers: {},
|
|
4968
|
+
data: {}
|
|
4969
|
+
};
|
|
4970
|
+
const localVarHeaderParameter = {};
|
|
4971
|
+
let body;
|
|
4972
|
+
let id;
|
|
4973
|
+
if (updateWatermarkRuleRequest !== null && updateWatermarkRuleRequest !== undefined) {
|
|
4974
|
+
if (updateWatermarkRuleRequest instanceof UpdateWatermarkRuleRequest_1.UpdateWatermarkRuleRequest) {
|
|
4975
|
+
id = updateWatermarkRuleRequest.id;
|
|
4976
|
+
body = updateWatermarkRuleRequest.body;
|
|
4977
|
+
}
|
|
4978
|
+
else {
|
|
4979
|
+
id = updateWatermarkRuleRequest['id'];
|
|
4980
|
+
body = updateWatermarkRuleRequest['body'];
|
|
4981
|
+
}
|
|
4982
|
+
}
|
|
4983
|
+
if (id === null || id === undefined) {
|
|
4984
|
+
throw new RequiredError('id', 'Required parameter id was null or undefined when calling updateWatermarkRule.');
|
|
4985
|
+
}
|
|
4986
|
+
if (body === null || body === undefined) {
|
|
4987
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
4988
|
+
}
|
|
4989
|
+
localVarHeaderParameter['Content-Type'] = 'application/json; charset=UTF-8';
|
|
4990
|
+
options.data = body !== undefined ? body : {};
|
|
4991
|
+
options.pathParams = { 'id': id, };
|
|
4992
|
+
options.headers = localVarHeaderParameter;
|
|
4993
|
+
return options;
|
|
4994
|
+
},
|
|
4995
|
+
/**
|
|
4996
|
+
* 修改水印模板接口,修改后实时生效
|
|
4997
|
+
*
|
|
4998
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4999
|
+
*/
|
|
5000
|
+
updateWatermarkTemplate(updateWatermarkTemplateRequest) {
|
|
5001
|
+
const options = {
|
|
5002
|
+
method: "PUT",
|
|
5003
|
+
url: "/v1/{project_id}/watermark/templates/{id}",
|
|
5004
|
+
contentType: "application/json; charset=UTF-8",
|
|
5005
|
+
queryParams: {},
|
|
5006
|
+
pathParams: {},
|
|
5007
|
+
headers: {},
|
|
5008
|
+
data: {}
|
|
5009
|
+
};
|
|
5010
|
+
const localVarHeaderParameter = {};
|
|
5011
|
+
let body;
|
|
5012
|
+
let id;
|
|
5013
|
+
if (updateWatermarkTemplateRequest !== null && updateWatermarkTemplateRequest !== undefined) {
|
|
5014
|
+
if (updateWatermarkTemplateRequest instanceof UpdateWatermarkTemplateRequest_1.UpdateWatermarkTemplateRequest) {
|
|
5015
|
+
id = updateWatermarkTemplateRequest.id;
|
|
5016
|
+
body = updateWatermarkTemplateRequest.body;
|
|
5017
|
+
}
|
|
5018
|
+
else {
|
|
5019
|
+
id = updateWatermarkTemplateRequest['id'];
|
|
5020
|
+
body = updateWatermarkTemplateRequest['body'];
|
|
5021
|
+
}
|
|
5022
|
+
}
|
|
5023
|
+
if (id === null || id === undefined) {
|
|
5024
|
+
throw new RequiredError('id', 'Required parameter id was null or undefined when calling updateWatermarkTemplate.');
|
|
5025
|
+
}
|
|
5026
|
+
if (body === null || body === undefined) {
|
|
5027
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
5028
|
+
}
|
|
5029
|
+
localVarHeaderParameter['Content-Type'] = 'application/json; charset=UTF-8';
|
|
5030
|
+
options.data = body !== undefined ? body : {};
|
|
5031
|
+
options.pathParams = { 'id': id, };
|
|
5032
|
+
options.headers = localVarHeaderParameter;
|
|
5033
|
+
return options;
|
|
5034
|
+
},
|
|
4466
5035
|
/**
|
|
4467
5036
|
* 新增维度配置信息查询API
|
|
4468
5037
|
*
|