tencentcloud-sdk-nodejs-cam 4.1.116 → 4.1.136
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/README.md
CHANGED
|
@@ -62,6 +62,8 @@ npm install tencentcloud-sdk-slim-nodejs --save
|
|
|
62
62
|
|
|
63
63
|
1. clone 代码到本地:
|
|
64
64
|
```
|
|
65
|
+
git clone https://cnb.cool/tencent/cloud/api/sdk/tencentcloud-sdk-nodejs
|
|
66
|
+
# 或者
|
|
65
67
|
git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
66
68
|
# 或者
|
|
67
69
|
git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
@@ -135,7 +137,7 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
|
135
137
|
// ...
|
|
136
138
|
```
|
|
137
139
|
|
|
138
|
-
实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](
|
|
140
|
+
实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](src/common/interface.ts)。
|
|
139
141
|
|
|
140
142
|
## Common Client
|
|
141
143
|
|
|
@@ -143,17 +145,17 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
|
143
145
|
|
|
144
146
|
**注意,您必须明确知道您调用的接口所需参数,否则可能会调用失败。**
|
|
145
147
|
|
|
146
|
-
详细使用请参阅示例:[使用 Common Client 进行调用](
|
|
148
|
+
详细使用请参阅示例:[使用 Common Client 进行调用](examples/common)
|
|
147
149
|
|
|
148
150
|
## 更多示例
|
|
149
151
|
|
|
150
|
-
请参考 [examples](
|
|
152
|
+
请参考 [examples](examples) 目录。
|
|
151
153
|
|
|
152
154
|
# 相关配置
|
|
153
155
|
|
|
154
156
|
## 代理
|
|
155
157
|
|
|
156
|
-
如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](
|
|
158
|
+
如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
|
|
157
159
|
|
|
158
160
|
# 凭证管理
|
|
159
161
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-sdk-nodejs-cam",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.136",
|
|
4
4
|
"description": "腾讯云 API NODEJS SDK",
|
|
5
5
|
"main": "./tencentcloud/index.js",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"build:es": "tsc -p tsconfig.es.json",
|
|
13
13
|
"build:slim": "node ./scripts/build_slim.js",
|
|
14
14
|
"prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
|
|
15
|
-
"clean": "rimraf tencentcloud es"
|
|
15
|
+
"clean": "rimraf tencentcloud es",
|
|
16
|
+
"test:common": "vitest run"
|
|
16
17
|
},
|
|
17
18
|
"engines": {
|
|
18
19
|
"node": ">=10"
|
|
@@ -44,9 +45,9 @@
|
|
|
44
45
|
"url": "https://github.com/tencentcloud/tencentcloud-sdk-nodejs"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
|
-
"@types/
|
|
48
|
+
"@types/ini": "^4.1.1",
|
|
48
49
|
"@types/json-bigint": "^1.0.1",
|
|
49
|
-
"@types/node": "^
|
|
50
|
+
"@types/node": "^18.0.0",
|
|
50
51
|
"@types/node-fetch": "^2.5.7",
|
|
51
52
|
"@types/uuid": "^9.0.8",
|
|
52
53
|
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
|
@@ -61,6 +62,7 @@
|
|
|
61
62
|
"prettier": "^2.3.0",
|
|
62
63
|
"rimraf": "^5.0.10",
|
|
63
64
|
"ts-node": "^8.10.2",
|
|
64
|
-
"typescript": "^
|
|
65
|
+
"typescript": "^5.9.2",
|
|
66
|
+
"vitest": "2.1.9"
|
|
65
67
|
}
|
|
66
68
|
}
|
|
@@ -231,7 +231,6 @@ export interface DescribeRoleListResponse {
|
|
|
231
231
|
export interface UpdatePolicyResponse {
|
|
232
232
|
/**
|
|
233
233
|
* 策略id,入参是PolicyName时,才会返回
|
|
234
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
235
234
|
*/
|
|
236
235
|
PolicyId?: number;
|
|
237
236
|
/**
|
|
@@ -490,7 +489,7 @@ export interface UpdateRoleDescriptionResponse {
|
|
|
490
489
|
/**
|
|
491
490
|
* GetAccountSummary请求参数结构体
|
|
492
491
|
*/
|
|
493
|
-
export
|
|
492
|
+
export type GetAccountSummaryRequest = null;
|
|
494
493
|
/**
|
|
495
494
|
* DeletePolicy返回参数结构体
|
|
496
495
|
*/
|
|
@@ -605,7 +604,7 @@ export interface DescribeRoleListRequest {
|
|
|
605
604
|
/**
|
|
606
605
|
* DescribeUserSAMLConfig请求参数结构体
|
|
607
606
|
*/
|
|
608
|
-
export
|
|
607
|
+
export type DescribeUserSAMLConfigRequest = null;
|
|
609
608
|
/**
|
|
610
609
|
* DeleteMessageReceiver返回参数结构体
|
|
611
610
|
*/
|
|
@@ -785,7 +784,7 @@ export interface DeleteUserPermissionsBoundaryRequest {
|
|
|
785
784
|
/**
|
|
786
785
|
* ListSAMLProviders请求参数结构体
|
|
787
786
|
*/
|
|
788
|
-
export
|
|
787
|
+
export type ListSAMLProvidersRequest = null;
|
|
789
788
|
/**
|
|
790
789
|
* UpdateRoleSessionDuration请求参数结构体
|
|
791
790
|
*/
|
|
@@ -1930,7 +1929,7 @@ export interface ListReceiverRequest {
|
|
|
1930
1929
|
/**
|
|
1931
1930
|
* DisableUserSSO请求参数结构体
|
|
1932
1931
|
*/
|
|
1933
|
-
export
|
|
1932
|
+
export type DisableUserSSORequest = null;
|
|
1934
1933
|
/**
|
|
1935
1934
|
* ListPoliciesGrantingServiceAccess请求参数结构体
|
|
1936
1935
|
*/
|
|
@@ -2483,7 +2482,7 @@ export interface CreateServiceLinkedRoleResponse {
|
|
|
2483
2482
|
/**
|
|
2484
2483
|
* ListUsers请求参数结构体
|
|
2485
2484
|
*/
|
|
2486
|
-
export
|
|
2485
|
+
export type ListUsersRequest = null;
|
|
2487
2486
|
/**
|
|
2488
2487
|
* ListCollaborators请求参数结构体
|
|
2489
2488
|
*/
|
|
@@ -2983,7 +2982,7 @@ export interface GetPolicyRequest {
|
|
|
2983
2982
|
/**
|
|
2984
2983
|
* DescribeSafeAuthFlagIntl请求参数结构体
|
|
2985
2984
|
*/
|
|
2986
|
-
export
|
|
2985
|
+
export type DescribeSafeAuthFlagIntlRequest = null;
|
|
2987
2986
|
/**
|
|
2988
2987
|
* SetDefaultPolicyVersion请求参数结构体
|
|
2989
2988
|
*/
|
|
@@ -3069,7 +3068,7 @@ export interface DetachRolePolicyResponse {
|
|
|
3069
3068
|
/**
|
|
3070
3069
|
* DescribeUserOIDCConfig请求参数结构体
|
|
3071
3070
|
*/
|
|
3072
|
-
export
|
|
3071
|
+
export type DescribeUserOIDCConfigRequest = null;
|
|
3073
3072
|
/**
|
|
3074
3073
|
* CreateOIDCConfig返回参数结构体
|
|
3075
3074
|
*/
|
|
@@ -3360,11 +3359,11 @@ export interface GetPolicyResponse {
|
|
|
3360
3359
|
/**
|
|
3361
3360
|
* GetUserAppId请求参数结构体
|
|
3362
3361
|
*/
|
|
3363
|
-
export
|
|
3362
|
+
export type GetUserAppIdRequest = null;
|
|
3364
3363
|
/**
|
|
3365
3364
|
* DescribeSafeAuthFlag请求参数结构体
|
|
3366
3365
|
*/
|
|
3367
|
-
export
|
|
3366
|
+
export type DescribeSafeAuthFlagRequest = null;
|
|
3368
3367
|
/**
|
|
3369
3368
|
* DeleteServiceLinkedRole请求参数结构体
|
|
3370
3369
|
*/
|