tencentcloud-sdk-nodejs 4.0.757 → 4.0.758
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 +109 -0
- package/README.md +3 -2
- package/SERVICE_CHANGELOG.md +135 -60
- package/package.json +1 -1
- package/products.md +9 -8
- package/src/common/sdk_version.ts +1 -1
- package/src/services/cdwdoris/v20211228/cdwdoris_client.ts +1 -1
- package/src/services/cdwdoris/v20211228/cdwdoris_models.ts +2 -2
- package/src/services/eb/v20210416/eb_models.ts +2 -2
- package/src/services/ess/v20201111/ess_models.ts +9 -1
- package/src/services/essbasic/v20210526/essbasic_models.ts +10 -3
- package/src/services/index.ts +1 -0
- package/src/services/ioa/index.ts +5 -0
- package/src/services/ioa/v20220601/index.ts +6 -0
- package/src/services/ioa/v20220601/ioa_client.ts +49 -0
- package/src/services/ioa/v20220601/ioa_models.ts +213 -0
- package/src/services/lcic/v20220817/lcic_models.ts +8 -0
- package/src/services/teo/v20220901/teo_models.ts +27 -16
- package/src/services/tsf/v20180326/tsf_client.ts +1 -1
- package/src/services/tsf/v20180326/tsf_models.ts +5 -5
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/cdwdoris/v20211228/cdwdoris_client.d.ts +1 -1
- package/tencentcloud/services/cdwdoris/v20211228/cdwdoris_client.js +1 -1
- package/tencentcloud/services/cdwdoris/v20211228/cdwdoris_models.d.ts +2 -2
- package/tencentcloud/services/eb/v20210416/eb_models.d.ts +2 -2
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +9 -1
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +10 -3
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/ioa/index.d.ts +6 -0
- package/tencentcloud/services/ioa/index.js +7 -0
- package/tencentcloud/services/ioa/v20220601/index.d.ts +6 -0
- package/tencentcloud/services/ioa/v20220601/index.js +9 -0
- package/tencentcloud/services/ioa/v20220601/ioa_client.d.ts +14 -0
- package/tencentcloud/services/ioa/v20220601/ioa_client.js +37 -0
- package/tencentcloud/services/ioa/v20220601/ioa_models.d.ts +189 -0
- package/tencentcloud/services/ioa/v20220601/ioa_models.js +18 -0
- package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +8 -0
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +27 -16
- package/tencentcloud/services/tsf/v20180326/tsf_client.d.ts +1 -1
- package/tencentcloud/services/tsf/v20180326/tsf_client.js +1 -1
- package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +5 -5
- package/test/ioa.v20220601.test.js +31 -0
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sort 排序字段
|
|
3
|
+
*/
|
|
4
|
+
export interface Sort {
|
|
5
|
+
/**
|
|
6
|
+
* 排序字段
|
|
7
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8
|
+
*/
|
|
9
|
+
Field?: string;
|
|
10
|
+
/**
|
|
11
|
+
* 排序方式
|
|
12
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
13
|
+
*/
|
|
14
|
+
Order?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* 分页的data数据
|
|
18
|
+
*/
|
|
19
|
+
export interface DescribeDevicesPageRsp {
|
|
20
|
+
/**
|
|
21
|
+
* 数据分页信息
|
|
22
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
23
|
+
*/
|
|
24
|
+
Paging?: Paging;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* FilterGroups 条件过滤组
|
|
28
|
+
*/
|
|
29
|
+
export interface FilterGroup {
|
|
30
|
+
/**
|
|
31
|
+
* Filters 条件过滤
|
|
32
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
33
|
+
*/
|
|
34
|
+
Filters?: Array<Filter>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* DescribeDevices返回参数结构体
|
|
38
|
+
*/
|
|
39
|
+
export interface DescribeDevicesResponse {
|
|
40
|
+
/**
|
|
41
|
+
* 分页的data数据
|
|
42
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
43
|
+
*/
|
|
44
|
+
Data?: DescribeDevicesPageRsp;
|
|
45
|
+
/**
|
|
46
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
47
|
+
*/
|
|
48
|
+
RequestId?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Filters 条件过滤
|
|
52
|
+
*/
|
|
53
|
+
export interface Filter {
|
|
54
|
+
/**
|
|
55
|
+
* 过滤字段
|
|
56
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
57
|
+
*/
|
|
58
|
+
Field?: string;
|
|
59
|
+
/**
|
|
60
|
+
* 过滤方式 eq:等于,net:不等于,like,nlike,gt:大于,lt:小于,egt:大于等于,elt:小于等于
|
|
61
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
62
|
+
*/
|
|
63
|
+
Operator?: string;
|
|
64
|
+
/**
|
|
65
|
+
* 过滤条件
|
|
66
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
67
|
+
*/
|
|
68
|
+
Values?: Array<string>;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* DescribeDevices请求参数结构体
|
|
72
|
+
*/
|
|
73
|
+
export interface DescribeDevicesRequest {
|
|
74
|
+
/**
|
|
75
|
+
* 过滤条件<br>
|
|
76
|
+
<li>Ip - String - 是否必填:否 - 操作符: eq - 排序支持:否- 按照Ip进行过滤。</li>
|
|
77
|
+
<li>MacAddr - String - 是否必填:否 - 操作符: eq - 排序支持:否- 按照mac地址进行过滤。</li>
|
|
78
|
+
<li>IoaUserName - String - 是否必填:否 - 操作符: eq - 排序支持:否- 按照ioa用户名进行过滤。</li>
|
|
79
|
+
分页参数<br>
|
|
80
|
+
<li>PageNum 从1开始,小于等于0时使用默认参数。</li>
|
|
81
|
+
<li>PageSize 最大值5000,最好不超过100。</li>
|
|
82
|
+
*/
|
|
83
|
+
Condition?: Condition;
|
|
84
|
+
/**
|
|
85
|
+
* 私有化默认分组id-名称-操作系统
|
|
86
|
+
1 全网终端 Win
|
|
87
|
+
2 未分组终端 Win
|
|
88
|
+
30000000 服务器 Win
|
|
89
|
+
40000101 全网终端 Linux
|
|
90
|
+
40000102 未分组终端 Linux
|
|
91
|
+
40000103 服务器 Linux
|
|
92
|
+
40000201 全网终端 macOS
|
|
93
|
+
40000202 未分组终端 macOS
|
|
94
|
+
40000203 服务器 macOS
|
|
95
|
+
40000401 全网终端 Android
|
|
96
|
+
40000402 未分组终端 Android
|
|
97
|
+
40000501 全网终端 iOS
|
|
98
|
+
40000502 未分组终端 iOS
|
|
99
|
+
*/
|
|
100
|
+
GroupId?: number;
|
|
101
|
+
/**
|
|
102
|
+
* 系统类型(0: win,1:linux,2: mac,3: win_srv,4:android,5:ios 默认值0)
|
|
103
|
+
*/
|
|
104
|
+
OsType?: number;
|
|
105
|
+
/**
|
|
106
|
+
* 在线状态 2 在线 0,1 离线
|
|
107
|
+
*/
|
|
108
|
+
OnlineStatus?: number;
|
|
109
|
+
/**
|
|
110
|
+
* 过滤条件--兼容旧接口,参数同Condition
|
|
111
|
+
*/
|
|
112
|
+
Filters?: Array<Filter>;
|
|
113
|
+
/**
|
|
114
|
+
* 排序字段--兼容旧接口,参数同Condition
|
|
115
|
+
*/
|
|
116
|
+
Sort?: Sort;
|
|
117
|
+
/**
|
|
118
|
+
* 获取第几页--兼容旧接口,参数同Condition(只支持32位)
|
|
119
|
+
*/
|
|
120
|
+
PageNum?: number;
|
|
121
|
+
/**
|
|
122
|
+
* 每页获取数--兼容旧接口,参数同Condition(只支持32位)
|
|
123
|
+
*/
|
|
124
|
+
PageSize?: number;
|
|
125
|
+
/**
|
|
126
|
+
* 授权状态 4未授权 5已授权
|
|
127
|
+
*/
|
|
128
|
+
Status?: number;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* 数据分页信息
|
|
132
|
+
*/
|
|
133
|
+
export interface Paging {
|
|
134
|
+
/**
|
|
135
|
+
* 每页条数(只支持32位)
|
|
136
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
137
|
+
*/
|
|
138
|
+
PageSize?: number;
|
|
139
|
+
/**
|
|
140
|
+
* 页码(只支持32位)
|
|
141
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
142
|
+
*/
|
|
143
|
+
PageNum?: number;
|
|
144
|
+
/**
|
|
145
|
+
* 总页数(只支持32位)
|
|
146
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
147
|
+
*/
|
|
148
|
+
PageCount?: number;
|
|
149
|
+
/**
|
|
150
|
+
* 记录总数
|
|
151
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
152
|
+
*/
|
|
153
|
+
Total?: number;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* - [ ] 过滤条件<br>
|
|
157
|
+
|
|
158
|
+
<li>Name - String - 是否必填:否 - 操作符: ilike - 排序支持:否- 根据分组名称进行查询。</li>
|
|
159
|
+
分页参数<br>
|
|
160
|
+
<li>PageNum 从1开始,小于等于0时使用默认参数。</li>
|
|
161
|
+
<li>PageSize 最大值5000,最好不超过100。</li>
|
|
162
|
+
*/
|
|
163
|
+
export interface Condition {
|
|
164
|
+
/**
|
|
165
|
+
* Filters 条件过滤
|
|
166
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
167
|
+
*/
|
|
168
|
+
Filters?: Array<Filter>;
|
|
169
|
+
/**
|
|
170
|
+
* FilterGroups 条件过滤组
|
|
171
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
172
|
+
*/
|
|
173
|
+
FilterGroups?: Array<FilterGroup>;
|
|
174
|
+
/**
|
|
175
|
+
* Sort 排序字段
|
|
176
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
177
|
+
*/
|
|
178
|
+
Sort?: Sort;
|
|
179
|
+
/**
|
|
180
|
+
* PageSize 每页获取数(只支持32位)
|
|
181
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
182
|
+
*/
|
|
183
|
+
PageSize?: number;
|
|
184
|
+
/**
|
|
185
|
+
* PageNum 获取第几页(只支持32位)
|
|
186
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
187
|
+
*/
|
|
188
|
+
PageNum?: number;
|
|
189
|
+
}
|
|
@@ -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 });
|
|
@@ -124,6 +124,10 @@ export interface CreateRoomRequest {
|
|
|
124
124
|
* 是否自动开始上课:0 不自动上课(默认) 1 自动上课 live_type=1的时候有效
|
|
125
125
|
*/
|
|
126
126
|
EnableAutoStart?: number;
|
|
127
|
+
/**
|
|
128
|
+
* 录制文件背景图片,支持png、jpg、jpeg、bmp格式,暂不支持透明通道
|
|
129
|
+
*/
|
|
130
|
+
RecordBackground?: string;
|
|
127
131
|
}
|
|
128
132
|
/**
|
|
129
133
|
* DescribeQuestionList请求参数结构体
|
|
@@ -2026,6 +2030,10 @@ export interface DescribeRoomResponse {
|
|
|
2026
2030
|
* 是否自动开始上课:0 不自动上课(默认) 1 自动上课 live_type=1的时候有效
|
|
2027
2031
|
*/
|
|
2028
2032
|
EnableAutoStart?: number;
|
|
2033
|
+
/**
|
|
2034
|
+
* 录制文件背景图片,支持png、jpg、jpeg、bmp格式,暂不支持透明通道
|
|
2035
|
+
*/
|
|
2036
|
+
RecordBackground?: string;
|
|
2029
2037
|
/**
|
|
2030
2038
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2031
2039
|
*/
|
|
@@ -1110,41 +1110,52 @@ export interface OriginInfo {
|
|
|
1110
1110
|
/**
|
|
1111
1111
|
* 源站类型,取值有:
|
|
1112
1112
|
<li>IP_DOMAIN:IPV4、IPV6 或域名类型源站;</li>
|
|
1113
|
-
<li>COS
|
|
1113
|
+
<li>COS:腾讯云 COS 对象存储源站;</li>
|
|
1114
|
+
<li>AWS_S3:AWS S3 对象存储源站;</li>
|
|
1114
1115
|
<li>ORIGIN_GROUP:源站组类型源站;</li>
|
|
1115
|
-
|
|
1116
|
-
<li>
|
|
1117
|
-
<li>
|
|
1116
|
+
<li>VODEO:云点播(混合云版);</li>
|
|
1117
|
+
<li>SPACE:源站卸载,当前仅白名单开放;</li>
|
|
1118
|
+
<li>LB:负载均衡,当前仅白名单开放。</li>
|
|
1118
1119
|
*/
|
|
1119
1120
|
OriginType: string;
|
|
1120
1121
|
/**
|
|
1121
|
-
*
|
|
1122
|
+
* 源站地址,根据 OriginType 的取值分为以下情况:
|
|
1123
|
+
<li>当 OriginType = IP_DOMAIN 时,该参数请填写 IPv4、IPv6 地址或域名;</li>
|
|
1124
|
+
<li>当 OriginType = COS 时,该参数请填写 COS 桶的访问域名;</li>
|
|
1125
|
+
<li>当 OriginType = AWS_S3,该参数请填写 S3 桶的访问域名;</li>
|
|
1126
|
+
<li>当 OriginType = ORIGIN_GROUP 时,该参数请填写源站组 ID;</li>
|
|
1127
|
+
<li>当 OriginType = VODEO 时,如果 VodeoDistributionRange = ALL,则该参数填写 "all-buckets-in-vodeo-application";如果 VodeoDistributionRange = Bucket,则该参数请填写对应存储桶域名;</li>
|
|
1128
|
+
<li>当 OriginType = LB 时,该参数请填写负载均衡实例 ID,该功能当前仅白名单开放;</li>
|
|
1129
|
+
<li>当 OriginType = SPACE 时,该参数请填写源站卸载空间 ID,该功能当前仅白名单开放。</li>
|
|
1122
1130
|
*/
|
|
1123
1131
|
Origin: string;
|
|
1124
1132
|
/**
|
|
1125
|
-
* 备用源站组 ID
|
|
1133
|
+
* 备用源站组 ID,该参数仅在 OriginType = ORIGIN_GROUP 时生效,该字段为旧版能力,调用后控制台无法进行配置修改,如需使用请提交工单咨询。
|
|
1126
1134
|
*/
|
|
1127
1135
|
BackupOrigin?: string;
|
|
1128
1136
|
/**
|
|
1129
|
-
*
|
|
1137
|
+
* 指定是否允许访问私有对象存储源站,该参数仅当源站类型 OriginType = COS 或 AWS_S3 时会生效,取值有:
|
|
1130
1138
|
<li>on:使用私有鉴权;</li>
|
|
1131
|
-
<li>off:不使用私有鉴权。</li
|
|
1139
|
+
<li>off:不使用私有鉴权。</li>
|
|
1140
|
+
不填写时,默认值为off。
|
|
1132
1141
|
*/
|
|
1133
1142
|
PrivateAccess?: string;
|
|
1134
1143
|
/**
|
|
1135
|
-
*
|
|
1144
|
+
* 私有鉴权使用参数,该参数仅当源站类型 PrivateAccess = on 时会生效。
|
|
1136
1145
|
*/
|
|
1137
1146
|
PrivateParameters?: Array<PrivateParameter>;
|
|
1138
1147
|
/**
|
|
1139
|
-
*
|
|
1148
|
+
* VODEO 子应用 ID。该参数当 OriginType = VODEO 时必填。
|
|
1140
1149
|
*/
|
|
1141
1150
|
VodeoSubAppId?: number;
|
|
1142
1151
|
/**
|
|
1143
|
-
*
|
|
1152
|
+
* VODEO 分发范围,该参数当 OriginType = VODEO 时必填。取值有:
|
|
1153
|
+
<li>All:当前应用下所有存储桶;</li>
|
|
1154
|
+
<li>Bucket:指定的某一个存储桶。</li>
|
|
1144
1155
|
*/
|
|
1145
1156
|
VodeoDistributionRange?: string;
|
|
1146
1157
|
/**
|
|
1147
|
-
*
|
|
1158
|
+
* VODEO 存储桶 ID,该参数当 OriginType = VODEO 且 VodeoDistributionRange = Bucket 时必填。
|
|
1148
1159
|
*/
|
|
1149
1160
|
VodeoBucketId?: string;
|
|
1150
1161
|
}
|
|
@@ -6775,14 +6786,14 @@ export interface Resource {
|
|
|
6775
6786
|
Type?: string;
|
|
6776
6787
|
}
|
|
6777
6788
|
/**
|
|
6778
|
-
*
|
|
6789
|
+
* 对象存储源站私有鉴权参数
|
|
6779
6790
|
*/
|
|
6780
6791
|
export interface PrivateParameter {
|
|
6781
6792
|
/**
|
|
6782
6793
|
* 私有鉴权参数名称,取值有:
|
|
6783
|
-
<li>AccessKeyId:鉴权参数Access Key ID;</li>
|
|
6784
|
-
<li>SecretAccessKey:鉴权参数Secret Access Key;</li>
|
|
6785
|
-
<li>SignatureVersion:鉴权版本,v2或者v4;</li>
|
|
6794
|
+
<li>AccessKeyId:鉴权参数 Access Key ID;</li>
|
|
6795
|
+
<li>SecretAccessKey:鉴权参数 Secret Access Key;</li>
|
|
6796
|
+
<li>SignatureVersion:鉴权版本,v2 或者 v4;</li>
|
|
6786
6797
|
<li>Region:存储桶地域。</li>
|
|
6787
6798
|
*/
|
|
6788
6799
|
Name: string;
|
|
@@ -132,7 +132,7 @@ export declare class Client extends AbstractClient {
|
|
|
132
132
|
*/
|
|
133
133
|
DescribeFileConfigs(req: DescribeFileConfigsRequest, cb?: (error: string, rep: DescribeFileConfigsResponse) => void): Promise<DescribeFileConfigsResponse>;
|
|
134
134
|
/**
|
|
135
|
-
*
|
|
135
|
+
* 创建参数模版,并返回模版详细信息
|
|
136
136
|
*/
|
|
137
137
|
CreateConfigTemplateWithDetailResp(req: CreateConfigTemplateWithDetailRespRequest, cb?: (error: string, rep: CreateConfigTemplateWithDetailRespResponse) => void): Promise<CreateConfigTemplateWithDetailRespResponse>;
|
|
138
138
|
/**
|
|
@@ -214,7 +214,7 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
214
214
|
return this.request("DescribeFileConfigs", req, cb);
|
|
215
215
|
}
|
|
216
216
|
/**
|
|
217
|
-
*
|
|
217
|
+
* 创建参数模版,并返回模版详细信息
|
|
218
218
|
*/
|
|
219
219
|
async CreateConfigTemplateWithDetailResp(req, cb) {
|
|
220
220
|
return this.request("CreateConfigTemplateWithDetailResp", req, cb);
|
|
@@ -3604,7 +3604,7 @@ export interface DescribeSimpleApplicationsRequest {
|
|
|
3604
3604
|
*/
|
|
3605
3605
|
export interface DescribeDeliveryConfigByGroupIdResponse {
|
|
3606
3606
|
/**
|
|
3607
|
-
* 投递
|
|
3607
|
+
* 投递kafka配置项
|
|
3608
3608
|
*/
|
|
3609
3609
|
Result?: SimpleKafkaDeliveryConfig;
|
|
3610
3610
|
/**
|
|
@@ -10420,11 +10420,11 @@ export interface DescribeInvocationMetricScatterPlotRequest {
|
|
|
10420
10420
|
*/
|
|
10421
10421
|
Period?: number;
|
|
10422
10422
|
/**
|
|
10423
|
-
*
|
|
10423
|
+
* 查询指标维度, 不能为空。可选 NamespaceId, GroupId, InstanceId, OperationName, ServiceName, PeerServiceName, PeerOperationName
|
|
10424
10424
|
*/
|
|
10425
10425
|
MetricDimensions?: Array<MetricDimension>;
|
|
10426
10426
|
/**
|
|
10427
|
-
*
|
|
10427
|
+
* 查询指标名, 不能为空。仅支持 range_count_duratioin 为 key 下的 sum 方法
|
|
10428
10428
|
*/
|
|
10429
10429
|
Metrics?: Array<Metric>;
|
|
10430
10430
|
/**
|
|
@@ -12241,10 +12241,10 @@ export interface DescribeUnitApiUseDetailResponse {
|
|
|
12241
12241
|
*/
|
|
12242
12242
|
export interface DescribeInvocationMetricScatterPlotResponse {
|
|
12243
12243
|
/**
|
|
12244
|
-
*
|
|
12244
|
+
* 多值时间统计指标
|
|
12245
12245
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12246
12246
|
*/
|
|
12247
|
-
Result
|
|
12247
|
+
Result?: InvocationMetricScatterPlot;
|
|
12248
12248
|
/**
|
|
12249
12249
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
12250
12250
|
*/
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.ioa.v20220601.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("ioa.v20220601.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("ioa.v20220601.DescribeDevices", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.DescribeDevices({})
|
|
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
|
+
})
|