tencentcloud-sdk-nodejs 4.0.935 → 4.0.936
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 +223 -0
- package/SERVICE_CHANGELOG.md +292 -212
- package/package.json +1 -1
- package/products.md +16 -16
- package/src/common/sdk_version.ts +1 -1
- package/src/services/cfg/v20210820/cfg_models.ts +1 -1
- package/src/services/cfw/v20190904/cfw_models.ts +42 -2
- package/src/services/ess/v20201111/ess_client.ts +5 -7
- package/src/services/ess/v20201111/ess_models.ts +28 -37
- 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 +128 -55
- package/src/services/ocr/v20181119/ocr_models.ts +4 -0
- package/src/services/sms/v20210111/sms_models.ts +9 -9
- package/src/services/ssl/v20191205/ssl_models.ts +3 -3
- 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/vod/index.ts +2 -0
- 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/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- 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/ess/v20201111/ess_client.d.ts +5 -7
- package/tencentcloud/services/ess/v20201111/ess_client.js +5 -7
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +28 -37
- 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 +125 -55
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +4 -0
- 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/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/vod/index.d.ts +4 -0
- package/tencentcloud/services/vod/index.js +2 -0
- 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/test/iss.v20230517.test.js +18 -8
- package/test/tke.v20220501.test.js +64 -4
- package/test/vod.v20240718.test.js +31 -0
|
@@ -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
|
};
|
|
@@ -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请求参数结构体
|
|
@@ -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
|
+
})
|