tencentcloud-sdk-nodejs 4.0.935 → 4.0.937
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/CHANGELOG.md +554 -0
- package/SERVICE_CHANGELOG.md +633 -168
- package/package.json +1 -1
- package/products.md +31 -31
- package/src/common/sdk_version.ts +1 -1
- package/src/services/apm/v20210622/apm_models.ts +9 -0
- package/src/services/cam/v20190116/cam_client.ts +25 -0
- package/src/services/cam/v20190116/cam_models.ts +101 -0
- package/src/services/cdb/v20170320/cdb_models.ts +6 -4
- package/src/services/cfg/v20210820/cfg_models.ts +1 -1
- package/src/services/cfw/v20190904/cfw_models.ts +42 -2
- package/src/services/dasb/v20191018/dasb_client.ts +20 -7
- package/src/services/dasb/v20191018/dasb_models.ts +222 -137
- package/src/services/dlc/v20210125/dlc_client.ts +5 -2
- package/src/services/dlc/v20210125/dlc_models.ts +200 -88
- package/src/services/dsgc/v20190723/dsgc_models.ts +6 -1
- package/src/services/emr/v20190103/emr_models.ts +1 -1
- package/src/services/ess/v20201111/ess_client.ts +6 -8
- package/src/services/ess/v20201111/ess_models.ts +58 -45
- package/src/services/essbasic/v20210526/essbasic_models.ts +13 -1
- package/src/services/iotexplorer/v20190423/iotexplorer_models.ts +2 -2
- package/src/services/iss/v20230517/iss_client.ts +38 -25
- package/src/services/iss/v20230517/iss_models.ts +49 -6
- package/src/services/mps/v20190612/mps_client.ts +5 -2
- package/src/services/mps/v20190612/mps_models.ts +194 -58
- package/src/services/ocr/v20181119/ocr_models.ts +4 -0
- package/src/services/region/v20220627/region_models.ts +10 -11
- package/src/services/sms/v20210111/sms_models.ts +9 -9
- package/src/services/ssl/v20191205/ssl_models.ts +3 -3
- package/src/services/tat/v20201028/tat_models.ts +5 -0
- package/src/services/tcb/v20180608/tcb_models.ts +1 -1
- package/src/services/tdmq/v20200217/tdmq_models.ts +2 -2
- package/src/services/tke/v20180525/tke_models.ts +4 -0
- package/src/services/tke/v20220501/tke_client.ts +97 -20
- package/src/services/tke/v20220501/tke_models.ts +494 -215
- package/src/services/tmt/v20180321/tmt_models.ts +22 -22
- package/src/services/vdb/v20230616/vdb_client.ts +1 -1
- package/src/services/vdb/v20230616/vdb_models.ts +14 -1
- package/src/services/vod/index.ts +2 -0
- package/src/services/vod/v20180717/vod_models.ts +16 -4
- package/src/services/vod/v20240718/index.ts +6 -0
- package/src/services/vod/v20240718/vod_client.ts +44 -0
- package/src/services/vod/v20240718/vod_models.ts +76 -0
- package/src/services/vpc/v20170312/vpc_models.ts +4 -0
- package/src/services/wedata/v20210820/wedata_client.ts +1 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/apm/v20210622/apm_models.d.ts +9 -0
- package/tencentcloud/services/cam/v20190116/cam_client.d.ts +9 -1
- package/tencentcloud/services/cam/v20190116/cam_client.js +12 -0
- package/tencentcloud/services/cam/v20190116/cam_models.d.ts +96 -0
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +6 -4
- package/tencentcloud/services/cfg/v20210820/cfg_models.d.ts +1 -1
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +42 -2
- package/tencentcloud/services/dasb/v20191018/dasb_client.d.ts +5 -1
- package/tencentcloud/services/dasb/v20191018/dasb_client.js +6 -0
- package/tencentcloud/services/dasb/v20191018/dasb_models.d.ts +219 -137
- package/tencentcloud/services/dlc/v20210125/dlc_client.d.ts +2 -2
- package/tencentcloud/services/dlc/v20210125/dlc_client.js +1 -1
- package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +197 -88
- package/tencentcloud/services/dsgc/v20190723/dsgc_models.d.ts +6 -1
- package/tencentcloud/services/emr/v20190103/emr_models.d.ts +1 -1
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +6 -8
- package/tencentcloud/services/ess/v20201111/ess_client.js +6 -8
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +58 -45
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +13 -1
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +2 -2
- package/tencentcloud/services/iss/v20230517/iss_client.d.ts +13 -9
- package/tencentcloud/services/iss/v20230517/iss_client.js +18 -12
- package/tencentcloud/services/iss/v20230517/iss_models.d.ts +46 -6
- package/tencentcloud/services/mps/v20190612/mps_client.d.ts +1 -1
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +191 -58
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +4 -0
- package/tencentcloud/services/region/v20220627/region_models.d.ts +10 -11
- package/tencentcloud/services/sms/v20210111/sms_models.d.ts +9 -9
- package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +3 -3
- package/tencentcloud/services/tat/v20201028/tat_models.d.ts +5 -0
- package/tencentcloud/services/tcb/v20180608/tcb_models.d.ts +1 -1
- package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +2 -2
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +4 -0
- package/tencentcloud/services/tke/v20220501/tke_client.d.ts +29 -5
- package/tencentcloud/services/tke/v20220501/tke_client.js +42 -6
- package/tencentcloud/services/tke/v20220501/tke_models.d.ts +481 -219
- package/tencentcloud/services/tmt/v20180321/tmt_models.d.ts +22 -22
- package/tencentcloud/services/vdb/v20230616/vdb_client.d.ts +1 -1
- package/tencentcloud/services/vdb/v20230616/vdb_models.d.ts +14 -1
- package/tencentcloud/services/vod/index.d.ts +4 -0
- package/tencentcloud/services/vod/index.js +2 -0
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +16 -4
- package/tencentcloud/services/vod/v20240718/index.d.ts +6 -0
- package/tencentcloud/services/vod/v20240718/index.js +9 -0
- package/tencentcloud/services/vod/v20240718/vod_client.d.ts +14 -0
- package/tencentcloud/services/vod/v20240718/vod_client.js +37 -0
- package/tencentcloud/services/vod/v20240718/vod_models.d.ts +57 -0
- package/tencentcloud/services/vod/v20240718/vod_models.js +18 -0
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +4 -0
- package/tencentcloud/services/wedata/v20210820/wedata_client.d.ts +1 -1
- package/tencentcloud/services/wedata/v20210820/wedata_client.js +1 -1
- package/test/cam.v20190116.test.js +20 -0
- package/test/dasb.v20191018.test.js +10 -0
- package/test/iss.v20230517.test.js +18 -8
- package/test/tke.v20220501.test.js +64 -4
- package/test/vod.v20240718.test.js +31 -0
|
@@ -367,11 +367,11 @@ export interface FileTranslateResponse {
|
|
|
367
367
|
export interface FileTranslateRequest {
|
|
368
368
|
/**
|
|
369
369
|
* 源语言,支持
|
|
370
|
-
zh
|
|
370
|
+
zh:简体中文
|
|
371
371
|
zh-HK:繁体中文
|
|
372
|
-
zh-TW
|
|
373
|
-
zh-TR
|
|
374
|
-
en
|
|
372
|
+
zh-TW:繁体中文
|
|
373
|
+
zh-TR:繁体中文
|
|
374
|
+
en:英语
|
|
375
375
|
ar:阿拉伯语
|
|
376
376
|
de:德语
|
|
377
377
|
es:西班牙语
|
|
@@ -381,28 +381,28 @@ export interface FileTranslateRequest {
|
|
|
381
381
|
pt:葡萄牙语
|
|
382
382
|
ru:俄语
|
|
383
383
|
ko:韩语
|
|
384
|
-
|
|
385
|
-
lo:老挝语
|
|
384
|
+
th:泰语
|
|
386
385
|
*/
|
|
387
386
|
Source: string;
|
|
388
387
|
/**
|
|
389
388
|
* 目标语言,各源语言的目标语言支持列表如下
|
|
390
|
-
zh(简体中文):
|
|
391
|
-
zh-HK
|
|
392
|
-
zh-TW(繁体中文):en
|
|
393
|
-
zh-TR
|
|
394
|
-
en
|
|
395
|
-
ar
|
|
396
|
-
de
|
|
397
|
-
es(西班牙语):zh(简体中文)、zh-HK(繁体中文)、
|
|
398
|
-
fr(法语):zh(简体中文)、zh-HK(繁体中文)、
|
|
399
|
-
it(意大利语):zh(简体中文)、zh-HK(繁体中文)、
|
|
400
|
-
ja(日语):zh(简体中文)、zh-HK(繁体中文)、
|
|
401
|
-
pt(葡萄牙语):zh(简体中文)、zh-HK(繁体中文)、
|
|
402
|
-
ru(俄语):zh(简体中文)、zh-HK(繁体中文)、
|
|
403
|
-
ko(韩语):zh(简体中文)、zh-HK(繁体中文)、
|
|
404
|
-
|
|
405
|
-
|
|
389
|
+
zh(简体中文):en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、it(意大利语)、ja(日语)、pt(葡萄牙语)、ru(俄语)、ko(韩语)、tr(土耳其语)、vi(越南语)、th(泰语)
|
|
390
|
+
zh-HK(繁体中文):en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、it(意大利语)、ja(日语)、pt(葡萄牙语)、ru(俄语)、ko(韩语)、tr(土耳其语)、vi(越南语)、th(泰语)
|
|
391
|
+
zh-TW(繁体中文):en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、it(意大利语)、ja(日语)、pt(葡萄牙语)、ru(俄语)、ko(韩语)、tr(土耳其语)、vi(越南语)、th(泰语)
|
|
392
|
+
zh-TR(繁体中文):en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、it(意大利语)、ja(日语)、pt(葡萄牙语)、ru(俄语)、ko(韩语)、tr(土耳其语)、vi(越南语)、th(泰语)
|
|
393
|
+
en(英语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、it(意大利语)、ja(日语)、pt(葡萄牙语)、ru(俄语)、ko(韩语)、tr(土耳其语)、vi(越南语)、th(泰语)
|
|
394
|
+
ar(阿拉伯语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
|
|
395
|
+
de(德语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
|
|
396
|
+
es(西班牙语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)、fr(法语)
|
|
397
|
+
fr(法语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)、es(西班牙语)
|
|
398
|
+
it(意大利语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
|
|
399
|
+
ja(日语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
|
|
400
|
+
pt(葡萄牙语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
|
|
401
|
+
ru(俄语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
|
|
402
|
+
ko(韩语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
|
|
403
|
+
tr(土耳其语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
|
|
404
|
+
vi(越南语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
|
|
405
|
+
th(泰语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)
|
|
406
406
|
*/
|
|
407
407
|
Target: string;
|
|
408
408
|
/**
|
|
@@ -26,7 +26,7 @@ export declare class Client extends AbstractClient {
|
|
|
26
26
|
/**
|
|
27
27
|
* 实例节点列表
|
|
28
28
|
*/
|
|
29
|
-
DescribeInstanceNodes(req
|
|
29
|
+
DescribeInstanceNodes(req: DescribeInstanceNodesRequest, cb?: (error: string, rep: DescribeInstanceNodesResponse) => void): Promise<DescribeInstanceNodesResponse>;
|
|
30
30
|
/**
|
|
31
31
|
* 本接口(DisassociateSecurityGroups)用于安全组批量解绑实例。
|
|
32
32
|
*/
|
|
@@ -303,7 +303,20 @@ export interface DisassociateSecurityGroupsResponse {
|
|
|
303
303
|
/**
|
|
304
304
|
* DescribeInstanceNodes请求参数结构体
|
|
305
305
|
*/
|
|
306
|
-
export
|
|
306
|
+
export interface DescribeInstanceNodesRequest {
|
|
307
|
+
/**
|
|
308
|
+
* limit
|
|
309
|
+
*/
|
|
310
|
+
Limit?: number;
|
|
311
|
+
/**
|
|
312
|
+
* offset
|
|
313
|
+
*/
|
|
314
|
+
Offset?: number;
|
|
315
|
+
/**
|
|
316
|
+
* component
|
|
317
|
+
*/
|
|
318
|
+
Component?: string;
|
|
319
|
+
}
|
|
307
320
|
/**
|
|
308
321
|
* 实例信息,用于实例列表
|
|
309
322
|
*/
|
|
@@ -3,4 +3,8 @@ export declare const vod: {
|
|
|
3
3
|
Client: typeof import("./v20180717/vod_client").Client;
|
|
4
4
|
Models: typeof import("./v20180717/vod_models");
|
|
5
5
|
};
|
|
6
|
+
v20240718: {
|
|
7
|
+
Client: typeof import("./v20240718/vod_client").Client;
|
|
8
|
+
Models: typeof import("./v20240718/vod_models");
|
|
9
|
+
};
|
|
6
10
|
};
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.vod = void 0;
|
|
4
4
|
const v20180717_1 = require("./v20180717");
|
|
5
|
+
const v20240718_1 = require("./v20240718");
|
|
5
6
|
exports.vod = {
|
|
6
7
|
v20180717: v20180717_1.v20180717,
|
|
8
|
+
v20240718: v20240718_1.v20240718,
|
|
7
9
|
};
|
|
@@ -3323,6 +3323,10 @@ export interface AttachMediaSubtitlesRequest {
|
|
|
3323
3323
|
* 字幕的唯一标识。
|
|
3324
3324
|
*/
|
|
3325
3325
|
SubtitleIds: Array<string>;
|
|
3326
|
+
/**
|
|
3327
|
+
* 默认字幕的唯一标识。不填则不设置默认字幕。
|
|
3328
|
+
*/
|
|
3329
|
+
DefaultSubtitleId?: string;
|
|
3326
3330
|
/**
|
|
3327
3331
|
* <b>点播[应用](/document/product/266/14574) ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</b>
|
|
3328
3332
|
*/
|
|
@@ -14300,21 +14304,21 @@ export interface AdaptiveDynamicStreamingInfoItem {
|
|
|
14300
14304
|
/**
|
|
14301
14305
|
* 转自适应码流规格。
|
|
14302
14306
|
*/
|
|
14303
|
-
Definition
|
|
14307
|
+
Definition?: number;
|
|
14304
14308
|
/**
|
|
14305
14309
|
* 打包格式,取值范围:
|
|
14306
14310
|
<li>HLS;</li>
|
|
14307
14311
|
<li>DASH。</li>
|
|
14308
14312
|
*/
|
|
14309
|
-
Package
|
|
14313
|
+
Package?: string;
|
|
14310
14314
|
/**
|
|
14311
14315
|
* 加密类型。
|
|
14312
14316
|
*/
|
|
14313
|
-
DrmType
|
|
14317
|
+
DrmType?: string;
|
|
14314
14318
|
/**
|
|
14315
14319
|
* 播放地址。
|
|
14316
14320
|
*/
|
|
14317
|
-
Url
|
|
14321
|
+
Url?: string;
|
|
14318
14322
|
/**
|
|
14319
14323
|
* 媒体文件大小,单位:字节。
|
|
14320
14324
|
<li>当媒体文件为 HLS 时,大小是 m3u8 和 ts 文件大小的总和;</li>
|
|
@@ -14337,6 +14341,14 @@ export interface AdaptiveDynamicStreamingInfoItem {
|
|
|
14337
14341
|
* 版权信息。
|
|
14338
14342
|
*/
|
|
14339
14343
|
CopyRightWatermarkText?: string;
|
|
14344
|
+
/**
|
|
14345
|
+
* 字幕信息列表。
|
|
14346
|
+
*/
|
|
14347
|
+
SubtitleSet?: Array<MediaSubtitleItem>;
|
|
14348
|
+
/**
|
|
14349
|
+
* 默认字幕的唯一标识。
|
|
14350
|
+
*/
|
|
14351
|
+
DefaultSubtitleId?: string;
|
|
14340
14352
|
}
|
|
14341
14353
|
/**
|
|
14342
14354
|
* 直播即时剪辑流信息
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.v20240718 = void 0;
|
|
4
|
+
const Models = require("./vod_models");
|
|
5
|
+
const vod_client_1 = require("./vod_client");
|
|
6
|
+
exports.v20240718 = {
|
|
7
|
+
Client: vod_client_1.Client,
|
|
8
|
+
Models: Models
|
|
9
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
|
+
import { ClientConfig } from "../../../common/interface";
|
|
3
|
+
import { CreateStorageCredentialsRequest, CreateStorageCredentialsResponse } from "./vod_models";
|
|
4
|
+
/**
|
|
5
|
+
* vod client
|
|
6
|
+
* @class
|
|
7
|
+
*/
|
|
8
|
+
export declare class Client extends AbstractClient {
|
|
9
|
+
constructor(clientConfig: ClientConfig);
|
|
10
|
+
/**
|
|
11
|
+
* 用于按指定策略,生成专业版应用的临时访问凭证,比如生成用于客户端上传的临时凭证。
|
|
12
|
+
*/
|
|
13
|
+
CreateStorageCredentials(req: CreateStorageCredentialsRequest, cb?: (error: string, rep: CreateStorageCredentialsResponse) => void): Promise<CreateStorageCredentialsResponse>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Client = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing,
|
|
15
|
+
* software distributed under the License is distributed on an
|
|
16
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
17
|
+
* KIND, either express or implied. See the License for the
|
|
18
|
+
* specific language governing permissions and limitations
|
|
19
|
+
* under the License.
|
|
20
|
+
*/
|
|
21
|
+
const abstract_client_1 = require("../../../common/abstract_client");
|
|
22
|
+
/**
|
|
23
|
+
* vod client
|
|
24
|
+
* @class
|
|
25
|
+
*/
|
|
26
|
+
class Client extends abstract_client_1.AbstractClient {
|
|
27
|
+
constructor(clientConfig) {
|
|
28
|
+
super("vod.tencentcloudapi.com", "2024-07-18", clientConfig);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 用于按指定策略,生成专业版应用的临时访问凭证,比如生成用于客户端上传的临时凭证。
|
|
32
|
+
*/
|
|
33
|
+
async CreateStorageCredentials(req, cb) {
|
|
34
|
+
return this.request("CreateStorageCredentials", req, cb);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.Client = Client;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 临时证书。
|
|
3
|
+
*/
|
|
4
|
+
export interface Credentials {
|
|
5
|
+
/**
|
|
6
|
+
* 秘钥 ID。
|
|
7
|
+
*/
|
|
8
|
+
AccessKeyId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* 秘钥 Key。
|
|
11
|
+
*/
|
|
12
|
+
SecretAccessKey?: string;
|
|
13
|
+
/**
|
|
14
|
+
* token。token长度和绑定的策略有关,最长不超过4096字节。
|
|
15
|
+
*/
|
|
16
|
+
SessionToken?: string;
|
|
17
|
+
/**
|
|
18
|
+
* 凭据的过期时间。
|
|
19
|
+
*/
|
|
20
|
+
Expiration?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* CreateStorageCredentials请求参数结构体
|
|
24
|
+
*/
|
|
25
|
+
export interface CreateStorageCredentialsRequest {
|
|
26
|
+
/**
|
|
27
|
+
* <b>点播[应用](/document/product/266/14574) ID。</b>
|
|
28
|
+
*/
|
|
29
|
+
SubAppId: number;
|
|
30
|
+
/**
|
|
31
|
+
* 按照下方语法组装好策略后,先序列化为字符串,再做 urlencode,结果作为 Policy 字段入参。服务端会对该字段做 urldecode,并按解析后的策略授予临时访问凭证权限,请按规范传入参数。
|
|
32
|
+
注意:
|
|
33
|
+
1.策略语法参照[访问管理策略](/document/product/598/10603)。
|
|
34
|
+
2.策略中不能包含 principal 元素。
|
|
35
|
+
3.策略的 action 元素仅支持:<li>name/vod:PutObject;</li><li>name/vod:ListParts;</li><li>name/vod:PostObject;</li><li>name/vod:InitiateMultipartUpload;</li><li>name/vod:UploadPart;</li><li>name/vod:CompleteMultipartUpload;</li><li>name/vod:AbortMultipartUpload;</li><li>name/vod:ListMultipartUploads;</li>4.策略的 resource 元素填写格式为:qcs::vod::uid/[账号AppID]:prefix//[子应用ID]/[存储桶ID]/[存储路径],其中账号AppID、子应用ID、存储桶ID和存储路径要按需填写,其他内容不允许改动,例:qcs::vod::uid/1:prefix//1/1/path。
|
|
36
|
+
|
|
37
|
+
*/
|
|
38
|
+
Policy: string;
|
|
39
|
+
/**
|
|
40
|
+
* 指定临时证书的有效期,单位:秒。
|
|
41
|
+
默认 1800 秒,最大 129600 秒。
|
|
42
|
+
*/
|
|
43
|
+
DurationSeconds?: number;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* CreateStorageCredentials返回参数结构体
|
|
47
|
+
*/
|
|
48
|
+
export interface CreateStorageCredentialsResponse {
|
|
49
|
+
/**
|
|
50
|
+
* 临时访问凭证。
|
|
51
|
+
*/
|
|
52
|
+
Credentials?: Credentials;
|
|
53
|
+
/**
|
|
54
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
55
|
+
*/
|
|
56
|
+
RequestId?: string;
|
|
57
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -15998,6 +15998,10 @@ export interface CreateSecurityGroupWithPoliciesRequest {
|
|
|
15998
15998
|
* 安全组规则集合。
|
|
15999
15999
|
*/
|
|
16000
16000
|
SecurityGroupPolicySet?: SecurityGroupPolicySet;
|
|
16001
|
+
/**
|
|
16002
|
+
* 指定绑定的标签列表,例如:[{"Key": "city", "Value": "shanghai"}]。
|
|
16003
|
+
*/
|
|
16004
|
+
Tags?: Array<Tag>;
|
|
16001
16005
|
}
|
|
16002
16006
|
/**
|
|
16003
16007
|
* ReleaseAddresses请求参数结构体
|
|
@@ -738,7 +738,7 @@ export declare class Client extends AbstractClient {
|
|
|
738
738
|
*/
|
|
739
739
|
DeleteTaskAlarmRegular(req: DeleteTaskAlarmRegularRequest, cb?: (error: string, rep: DeleteTaskAlarmRegularResponse) => void): Promise<DeleteTaskAlarmRegularResponse>;
|
|
740
740
|
/**
|
|
741
|
-
*
|
|
741
|
+
* 获取待提交任务预提交校验信息(注意:工作流编号或者任务编号列表,必须填一项)
|
|
742
742
|
*/
|
|
743
743
|
DescribePendingSubmitTaskList(req: DescribePendingSubmitTaskListRequest, cb?: (error: string, rep: DescribePendingSubmitTaskListResponse) => void): Promise<DescribePendingSubmitTaskListResponse>;
|
|
744
744
|
/**
|
|
@@ -1120,7 +1120,7 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
1120
1120
|
return this.request("DeleteTaskAlarmRegular", req, cb);
|
|
1121
1121
|
}
|
|
1122
1122
|
/**
|
|
1123
|
-
*
|
|
1123
|
+
* 获取待提交任务预提交校验信息(注意:工作流编号或者任务编号列表,必须填一项)
|
|
1124
1124
|
*/
|
|
1125
1125
|
async DescribePendingSubmitTaskList(req, cb) {
|
|
1126
1126
|
return this.request("DescribePendingSubmitTaskList", req, cb);
|
|
@@ -68,6 +68,16 @@ it("cam.v20190116.DeleteRolePermissionsBoundary", async function () {
|
|
|
68
68
|
}
|
|
69
69
|
})
|
|
70
70
|
|
|
71
|
+
it("cam.v20190116.ListReceiver", async function () {
|
|
72
|
+
try {
|
|
73
|
+
const data = await client.ListReceiver({})
|
|
74
|
+
expect(data).to.be.ok
|
|
75
|
+
} catch(error) {
|
|
76
|
+
expect(error.requestId).to.be.ok
|
|
77
|
+
expect(error.code).to.be.ok
|
|
78
|
+
}
|
|
79
|
+
})
|
|
80
|
+
|
|
71
81
|
it("cam.v20190116.ListAttachedGroupPolicies", async function () {
|
|
72
82
|
try {
|
|
73
83
|
const data = await client.ListAttachedGroupPolicies({})
|
|
@@ -728,6 +738,16 @@ it("cam.v20190116.ListGroupsForUser", async function () {
|
|
|
728
738
|
}
|
|
729
739
|
})
|
|
730
740
|
|
|
741
|
+
it("cam.v20190116.DeleteMessageReceiver", async function () {
|
|
742
|
+
try {
|
|
743
|
+
const data = await client.DeleteMessageReceiver({})
|
|
744
|
+
expect(data).to.be.ok
|
|
745
|
+
} catch(error) {
|
|
746
|
+
expect(error.requestId).to.be.ok
|
|
747
|
+
expect(error.code).to.be.ok
|
|
748
|
+
}
|
|
749
|
+
})
|
|
750
|
+
|
|
731
751
|
it("cam.v20190116.GetSAMLProvider", async function () {
|
|
732
752
|
try {
|
|
733
753
|
const data = await client.GetSAMLProvider({})
|
|
@@ -128,6 +128,16 @@ it("dasb.v20191018.DescribeUserGroups", async function () {
|
|
|
128
128
|
}
|
|
129
129
|
})
|
|
130
130
|
|
|
131
|
+
it("dasb.v20191018.DescribeDomains", async function () {
|
|
132
|
+
try {
|
|
133
|
+
const data = await client.DescribeDomains({})
|
|
134
|
+
expect(data).to.be.ok
|
|
135
|
+
} catch(error) {
|
|
136
|
+
expect(error.requestId).to.be.ok
|
|
137
|
+
expect(error.code).to.be.ok
|
|
138
|
+
}
|
|
139
|
+
})
|
|
140
|
+
|
|
131
141
|
it("dasb.v20191018.DeployResource", async function () {
|
|
132
142
|
try {
|
|
133
143
|
const data = await client.DeployResource({})
|
|
@@ -88,9 +88,9 @@ it("iss.v20230517.DescribeDeviceChannel", async function () {
|
|
|
88
88
|
}
|
|
89
89
|
})
|
|
90
90
|
|
|
91
|
-
it("iss.v20230517.
|
|
91
|
+
it("iss.v20230517.AddRecordRetrieveTask", async function () {
|
|
92
92
|
try {
|
|
93
|
-
const data = await client.
|
|
93
|
+
const data = await client.AddRecordRetrieveTask({})
|
|
94
94
|
expect(data).to.be.ok
|
|
95
95
|
} catch(error) {
|
|
96
96
|
expect(error.requestId).to.be.ok
|
|
@@ -338,9 +338,9 @@ it("iss.v20230517.UpdateRecordTemplate", async function () {
|
|
|
338
338
|
}
|
|
339
339
|
})
|
|
340
340
|
|
|
341
|
-
it("iss.v20230517.
|
|
341
|
+
it("iss.v20230517.DeleteRecordBackupTemplate", async function () {
|
|
342
342
|
try {
|
|
343
|
-
const data = await client.
|
|
343
|
+
const data = await client.DeleteRecordBackupTemplate({})
|
|
344
344
|
expect(data).to.be.ok
|
|
345
345
|
} catch(error) {
|
|
346
346
|
expect(error.requestId).to.be.ok
|
|
@@ -478,9 +478,9 @@ it("iss.v20230517.BatchOperateDevice", async function () {
|
|
|
478
478
|
}
|
|
479
479
|
})
|
|
480
480
|
|
|
481
|
-
it("iss.v20230517.
|
|
481
|
+
it("iss.v20230517.CallISAPI", async function () {
|
|
482
482
|
try {
|
|
483
|
-
const data = await client.
|
|
483
|
+
const data = await client.CallISAPI({})
|
|
484
484
|
expect(data).to.be.ok
|
|
485
485
|
} catch(error) {
|
|
486
486
|
expect(error.requestId).to.be.ok
|
|
@@ -528,9 +528,9 @@ it("iss.v20230517.UpgradeGateway", async function () {
|
|
|
528
528
|
}
|
|
529
529
|
})
|
|
530
530
|
|
|
531
|
-
it("iss.v20230517.
|
|
531
|
+
it("iss.v20230517.UpdateOrganization", async function () {
|
|
532
532
|
try {
|
|
533
|
-
const data = await client.
|
|
533
|
+
const data = await client.UpdateOrganization({})
|
|
534
534
|
expect(data).to.be.ok
|
|
535
535
|
} catch(error) {
|
|
536
536
|
expect(error.requestId).to.be.ok
|
|
@@ -668,6 +668,16 @@ it("iss.v20230517.UpdateAITaskStatus", async function () {
|
|
|
668
668
|
}
|
|
669
669
|
})
|
|
670
670
|
|
|
671
|
+
it("iss.v20230517.UpdateUserDevice", async function () {
|
|
672
|
+
try {
|
|
673
|
+
const data = await client.UpdateUserDevice({})
|
|
674
|
+
expect(data).to.be.ok
|
|
675
|
+
} catch(error) {
|
|
676
|
+
expect(error.requestId).to.be.ok
|
|
677
|
+
expect(error.code).to.be.ok
|
|
678
|
+
}
|
|
679
|
+
})
|
|
680
|
+
|
|
671
681
|
it("iss.v20230517.ListRecordBackupPlanDevices", async function () {
|
|
672
682
|
try {
|
|
673
683
|
const data = await client.ListRecordBackupPlanDevices({})
|
|
@@ -28,9 +28,19 @@ it("tke.v20220501.DescribeNodePools", async function () {
|
|
|
28
28
|
}
|
|
29
29
|
})
|
|
30
30
|
|
|
31
|
-
it("tke.v20220501.
|
|
31
|
+
it("tke.v20220501.ModifyNodePool", async function () {
|
|
32
32
|
try {
|
|
33
|
-
const data = await client.
|
|
33
|
+
const data = await client.ModifyNodePool({})
|
|
34
|
+
expect(data).to.be.ok
|
|
35
|
+
} catch(error) {
|
|
36
|
+
expect(error.requestId).to.be.ok
|
|
37
|
+
expect(error.code).to.be.ok
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
it("tke.v20220501.DeleteHealthCheckPolicy", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.DeleteHealthCheckPolicy({})
|
|
34
44
|
expect(data).to.be.ok
|
|
35
45
|
} catch(error) {
|
|
36
46
|
expect(error.requestId).to.be.ok
|
|
@@ -48,9 +58,59 @@ it("tke.v20220501.DeleteNodePool", async function () {
|
|
|
48
58
|
}
|
|
49
59
|
})
|
|
50
60
|
|
|
51
|
-
it("tke.v20220501.
|
|
61
|
+
it("tke.v20220501.DescribeHealthCheckPolicies", async function () {
|
|
52
62
|
try {
|
|
53
|
-
const data = await client.
|
|
63
|
+
const data = await client.DescribeHealthCheckPolicies({})
|
|
64
|
+
expect(data).to.be.ok
|
|
65
|
+
} catch(error) {
|
|
66
|
+
expect(error.requestId).to.be.ok
|
|
67
|
+
expect(error.code).to.be.ok
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
it("tke.v20220501.ModifyHealthCheckPolicy", async function () {
|
|
72
|
+
try {
|
|
73
|
+
const data = await client.ModifyHealthCheckPolicy({})
|
|
74
|
+
expect(data).to.be.ok
|
|
75
|
+
} catch(error) {
|
|
76
|
+
expect(error.requestId).to.be.ok
|
|
77
|
+
expect(error.code).to.be.ok
|
|
78
|
+
}
|
|
79
|
+
})
|
|
80
|
+
|
|
81
|
+
it("tke.v20220501.CreateNodePool", async function () {
|
|
82
|
+
try {
|
|
83
|
+
const data = await client.CreateNodePool({})
|
|
84
|
+
expect(data).to.be.ok
|
|
85
|
+
} catch(error) {
|
|
86
|
+
expect(error.requestId).to.be.ok
|
|
87
|
+
expect(error.code).to.be.ok
|
|
88
|
+
}
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
it("tke.v20220501.DescribeHealthCheckTemplate", async function () {
|
|
92
|
+
try {
|
|
93
|
+
const data = await client.DescribeHealthCheckTemplate({})
|
|
94
|
+
expect(data).to.be.ok
|
|
95
|
+
} catch(error) {
|
|
96
|
+
expect(error.requestId).to.be.ok
|
|
97
|
+
expect(error.code).to.be.ok
|
|
98
|
+
}
|
|
99
|
+
})
|
|
100
|
+
|
|
101
|
+
it("tke.v20220501.DescribeHealthCheckPolicyBindings", async function () {
|
|
102
|
+
try {
|
|
103
|
+
const data = await client.DescribeHealthCheckPolicyBindings({})
|
|
104
|
+
expect(data).to.be.ok
|
|
105
|
+
} catch(error) {
|
|
106
|
+
expect(error.requestId).to.be.ok
|
|
107
|
+
expect(error.code).to.be.ok
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
|
|
111
|
+
it("tke.v20220501.CreateHealthCheckPolicy", async function () {
|
|
112
|
+
try {
|
|
113
|
+
const data = await client.CreateHealthCheckPolicy({})
|
|
54
114
|
expect(data).to.be.ok
|
|
55
115
|
} catch(error) {
|
|
56
116
|
expect(error.requestId).to.be.ok
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.vod.v20240718.Client({
|
|
5
|
+
credential: {
|
|
6
|
+
secretId: process.env.secretId,
|
|
7
|
+
secretKey: process.env.secretKey,
|
|
8
|
+
},
|
|
9
|
+
region: "ap-shanghai",
|
|
10
|
+
profile: {
|
|
11
|
+
signMethod: "TC3-HMAC-SHA256",
|
|
12
|
+
httpProfile: {
|
|
13
|
+
reqMethod: "POST",
|
|
14
|
+
reqTimeout: 30,
|
|
15
|
+
endpoint: "cvm.ap-shanghai.tencentcloudapi.com",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
})
|
|
19
|
+
describe("vod.v20240718.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("vod.v20240718.CreateStorageCredentials", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.CreateStorageCredentials({})
|
|
24
|
+
expect(data).to.be.ok
|
|
25
|
+
} catch(error) {
|
|
26
|
+
expect(error.requestId).to.be.ok
|
|
27
|
+
expect(error.code).to.be.ok
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
})
|