tencentcloud-sdk-nodejs 4.0.337 → 4.0.340
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 +414 -0
- package/SERVICE_CHANGELOG.md +399 -33
- package/package.json +1 -1
- package/products.md +23 -22
- package/src/common/sdk_version.ts +1 -1
- package/src/services/antiddos/v20200309/antiddos_client.ts +13 -0
- package/src/services/antiddos/v20200309/antiddos_models.ts +153 -0
- package/src/services/bi/index.ts +5 -0
- package/src/services/bi/v20220105/bi_client.ts +57 -0
- package/src/services/bi/v20220105/bi_models.ts +214 -0
- package/src/services/bi/v20220105/index.ts +6 -0
- package/src/services/cfw/v20190904/cfw_models.ts +5 -0
- package/src/services/ckafka/v20190819/ckafka_client.ts +12 -0
- package/src/services/ckafka/v20190819/ckafka_models.ts +41 -1
- package/src/services/cvm/v20170312/cvm_models.ts +1 -1
- package/src/services/dlc/v20210125/dlc_models.ts +35 -0
- package/src/services/emr/v20190103/emr_client.ts +67 -63
- package/src/services/emr/v20190103/emr_models.ts +2011 -1833
- package/src/services/ess/v20201111/ess_models.ts +26 -8
- package/src/services/faceid/v20180301/faceid_client.ts +1 -1
- package/src/services/faceid/v20180301/faceid_models.ts +5 -4
- package/src/services/gaap/v20180529/gaap_client.ts +68 -28
- package/src/services/gaap/v20180529/gaap_models.ts +280 -68
- package/src/services/index.ts +1 -0
- package/src/services/iotcloud/v20210408/iotcloud_client.ts +608 -68
- package/src/services/iotcloud/v20210408/iotcloud_models.ts +2835 -667
- package/src/services/iotexplorer/v20190423/iotexplorer_client.ts +2 -2
- package/src/services/monitor/v20180724/monitor_models.ts +5 -0
- package/src/services/ocr/v20181119/ocr_client.ts +14 -1
- package/src/services/ocr/v20181119/ocr_models.ts +103 -15
- package/src/services/redis/v20180412/redis_models.ts +1 -1
- package/src/services/ses/v20201002/ses_client.ts +2 -2
- package/src/services/ses/v20201002/ses_models.ts +2 -2
- package/src/services/tiia/v20190529/tiia_models.ts +2 -2
- package/src/services/tke/v20180525/tke_models.ts +15 -0
- package/src/services/trtc/v20190722/trtc_models.ts +6 -6
- package/src/services/tsf/v20180326/tsf_models.ts +6 -0
- package/src/services/vod/v20180717/vod_client.ts +1 -0
- package/src/services/vod/v20180717/vod_models.ts +22 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/antiddos/v20200309/antiddos_client.d.ts +5 -1
- package/tencentcloud/services/antiddos/v20200309/antiddos_client.js +6 -0
- package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +126 -0
- package/tencentcloud/services/bi/index.d.ts +6 -0
- package/tencentcloud/services/bi/index.js +7 -0
- package/tencentcloud/services/bi/v20220105/bi_client.d.ts +18 -0
- package/tencentcloud/services/bi/v20220105/bi_client.js +43 -0
- package/tencentcloud/services/bi/v20220105/bi_models.d.ts +168 -0
- package/tencentcloud/services/bi/v20220105/bi_models.js +18 -0
- package/tencentcloud/services/bi/v20220105/index.d.ts +6 -0
- package/tencentcloud/services/bi/v20220105/index.js +9 -0
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +4 -0
- package/tencentcloud/services/ckafka/v20190819/ckafka_client.d.ts +5 -1
- package/tencentcloud/services/ckafka/v20190819/ckafka_client.js +6 -0
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +35 -1
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +1 -1
- package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +29 -0
- package/tencentcloud/services/emr/v20190103/emr_client.d.ts +1 -1
- package/tencentcloud/services/emr/v20190103/emr_models.d.ts +1757 -1607
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +23 -7
- package/tencentcloud/services/faceid/v20180301/faceid_client.d.ts +1 -1
- package/tencentcloud/services/faceid/v20180301/faceid_client.js +1 -1
- package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +5 -4
- package/tencentcloud/services/gaap/v20180529/gaap_client.d.ts +21 -9
- package/tencentcloud/services/gaap/v20180529/gaap_client.js +30 -12
- package/tencentcloud/services/gaap/v20180529/gaap_models.d.ts +245 -60
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/iotcloud/v20210408/iotcloud_client.d.ts +187 -11
- package/tencentcloud/services/iotcloud/v20210408/iotcloud_client.js +279 -15
- package/tencentcloud/services/iotcloud/v20210408/iotcloud_models.d.ts +2515 -663
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.d.ts +2 -2
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.js +2 -2
- package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +4 -0
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +6 -2
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +7 -1
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +87 -15
- package/tencentcloud/services/redis/v20180412/redis_models.d.ts +1 -1
- package/tencentcloud/services/ses/v20201002/ses_client.d.ts +2 -2
- package/tencentcloud/services/ses/v20201002/ses_client.js +2 -2
- package/tencentcloud/services/ses/v20201002/ses_models.d.ts +2 -2
- package/tencentcloud/services/tiia/v20190529/tiia_models.d.ts +2 -2
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +12 -0
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +6 -6
- package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +5 -0
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +19 -1
- package/test/antiddos.v20200309.test.js +10 -0
- package/test/bi.v20220105.test.js +41 -0
- package/test/ckafka.v20190819.test.js +10 -0
- package/test/gaap.v20180529.test.js +44 -14
- package/test/iotcloud.v20210408.test.js +450 -10
- package/test/ocr.v20181119.test.js +10 -0
|
@@ -1,83 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* PublishMessage请求参数结构体
|
|
3
3
|
*/
|
|
4
|
-
export interface
|
|
5
|
-
/**
|
|
6
|
-
* 日志上下文
|
|
7
|
-
*/
|
|
8
|
-
Context: string;
|
|
9
|
-
/**
|
|
10
|
-
* 是否还有日志,如有仍有日志,下次查询的请求带上当前请求返回的Context
|
|
11
|
-
*/
|
|
12
|
-
Listover: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* 日志列表
|
|
15
|
-
*/
|
|
16
|
-
Results: Array<CLSLogItem>;
|
|
4
|
+
export interface PublishMessageRequest {
|
|
17
5
|
/**
|
|
18
|
-
*
|
|
6
|
+
* 消息发往的主题。命名规则:${ProductId}/${DeviceName}/[a-zA-Z0-9:_-]{1,128}
|
|
19
7
|
*/
|
|
20
|
-
|
|
8
|
+
Topic: string;
|
|
21
9
|
/**
|
|
22
|
-
*
|
|
10
|
+
* 消息内容
|
|
23
11
|
*/
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* DeleteProduct请求参数结构体
|
|
28
|
-
*/
|
|
29
|
-
export interface DeleteProductRequest {
|
|
12
|
+
Payload: string;
|
|
30
13
|
/**
|
|
31
|
-
*
|
|
14
|
+
* 产品ID
|
|
32
15
|
*/
|
|
33
16
|
ProductId: string;
|
|
34
17
|
/**
|
|
35
|
-
*
|
|
36
|
-
*/
|
|
37
|
-
Skey?: string;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* DescribePrivateCABindedProducts请求参数结构体
|
|
41
|
-
*/
|
|
42
|
-
export interface DescribePrivateCABindedProductsRequest {
|
|
43
|
-
/**
|
|
44
|
-
* 证书名称
|
|
45
|
-
*/
|
|
46
|
-
CertName: string;
|
|
47
|
-
/**
|
|
48
|
-
* 查询偏移量
|
|
49
|
-
*/
|
|
50
|
-
Offset: number;
|
|
51
|
-
/**
|
|
52
|
-
* 查询的数据量,默认为20, 最大为200
|
|
53
|
-
*/
|
|
54
|
-
Limit: number;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* DeleteProductPrivateCA返回参数结构体
|
|
58
|
-
*/
|
|
59
|
-
export interface DeleteProductPrivateCAResponse {
|
|
60
|
-
/**
|
|
61
|
-
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
62
|
-
*/
|
|
63
|
-
RequestId?: string;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* UpdatePrivateCA请求参数结构体
|
|
67
|
-
*/
|
|
68
|
-
export interface UpdatePrivateCARequest {
|
|
69
|
-
/**
|
|
70
|
-
* CA证书名称
|
|
18
|
+
* 设备名称
|
|
71
19
|
*/
|
|
72
|
-
|
|
20
|
+
DeviceName: string;
|
|
73
21
|
/**
|
|
74
|
-
*
|
|
22
|
+
* 服务质量等级,取值为0或1
|
|
75
23
|
*/
|
|
76
|
-
|
|
24
|
+
Qos?: number;
|
|
77
25
|
/**
|
|
78
|
-
*
|
|
26
|
+
* Payload内容的编码格式,取值为base64或空。base64表示云端将收到的请求数据进行base64解码后下发到设备,空则直接将原始内容下发到设备
|
|
79
27
|
*/
|
|
80
|
-
|
|
28
|
+
PayloadEncoding?: string;
|
|
81
29
|
}
|
|
82
30
|
/**
|
|
83
31
|
* UpdateDevicesEnableState返回参数结构体
|
|
@@ -88,15 +36,6 @@ export interface UpdateDevicesEnableStateResponse {
|
|
|
88
36
|
*/
|
|
89
37
|
RequestId?: string;
|
|
90
38
|
}
|
|
91
|
-
/**
|
|
92
|
-
* DescribePrivateCA请求参数结构体
|
|
93
|
-
*/
|
|
94
|
-
export interface DescribePrivateCARequest {
|
|
95
|
-
/**
|
|
96
|
-
* 私有化CA名称
|
|
97
|
-
*/
|
|
98
|
-
CertName: string;
|
|
99
|
-
}
|
|
100
39
|
/**
|
|
101
40
|
* DescribeProductCA返回参数结构体
|
|
102
41
|
*/
|
|
@@ -111,83 +50,71 @@ export interface DescribeProductCAResponse {
|
|
|
111
50
|
RequestId?: string;
|
|
112
51
|
}
|
|
113
52
|
/**
|
|
114
|
-
*
|
|
53
|
+
* UpdateProductPrivateCA请求参数结构体
|
|
115
54
|
*/
|
|
116
|
-
export interface
|
|
117
|
-
/**
|
|
118
|
-
* 产品描述
|
|
119
|
-
*/
|
|
120
|
-
ProductDescription?: string;
|
|
121
|
-
/**
|
|
122
|
-
* 加密类型,1表示证书认证,2表示签名认证。如不填写,默认值是1
|
|
123
|
-
*/
|
|
124
|
-
EncryptionType?: string;
|
|
125
|
-
/**
|
|
126
|
-
* 产品所属区域,目前只支持广州(gz)
|
|
127
|
-
*/
|
|
128
|
-
Region?: string;
|
|
129
|
-
/**
|
|
130
|
-
* 产品类型,各个类型值代表的节点-类型如下:
|
|
131
|
-
0 普通产品,2 NB-IoT产品,4 LoRa产品,3 LoRa网关产品,5 普通网关产品 默认值是0
|
|
132
|
-
*/
|
|
133
|
-
ProductType?: number;
|
|
55
|
+
export interface UpdateProductPrivateCARequest {
|
|
134
56
|
/**
|
|
135
|
-
*
|
|
57
|
+
* 产品ID
|
|
136
58
|
*/
|
|
137
|
-
|
|
59
|
+
ProductId: string;
|
|
138
60
|
/**
|
|
139
|
-
*
|
|
61
|
+
* 私有CA证书名称
|
|
140
62
|
*/
|
|
141
|
-
|
|
63
|
+
CertName: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* UnbindDevices请求参数结构体
|
|
67
|
+
*/
|
|
68
|
+
export interface UnbindDevicesRequest {
|
|
142
69
|
/**
|
|
143
|
-
*
|
|
70
|
+
* 网关设备的产品ID
|
|
144
71
|
*/
|
|
145
|
-
|
|
72
|
+
GatewayProductId: string;
|
|
146
73
|
/**
|
|
147
|
-
*
|
|
74
|
+
* 网关设备的设备名
|
|
148
75
|
*/
|
|
149
|
-
|
|
76
|
+
GatewayDeviceName: string;
|
|
150
77
|
/**
|
|
151
|
-
*
|
|
78
|
+
* 产品ID
|
|
152
79
|
*/
|
|
153
|
-
|
|
80
|
+
ProductId: string;
|
|
154
81
|
/**
|
|
155
|
-
*
|
|
82
|
+
* 多个设备名
|
|
156
83
|
*/
|
|
157
|
-
|
|
84
|
+
DeviceNames: Array<string>;
|
|
158
85
|
/**
|
|
159
|
-
*
|
|
86
|
+
* 中兴CLAA设备的解绑需要Skey,普通设备不需要
|
|
160
87
|
*/
|
|
161
|
-
|
|
88
|
+
Skey?: string;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* DescribeDeviceResources请求参数结构体
|
|
92
|
+
*/
|
|
93
|
+
export interface DescribeDeviceResourcesRequest {
|
|
162
94
|
/**
|
|
163
|
-
*
|
|
95
|
+
* 偏移量,Offset从0开始
|
|
164
96
|
*/
|
|
165
|
-
|
|
97
|
+
Offset: number;
|
|
166
98
|
/**
|
|
167
|
-
*
|
|
99
|
+
* 分页的大小,数值范围 10-250
|
|
168
100
|
*/
|
|
169
|
-
|
|
101
|
+
Limit: number;
|
|
170
102
|
/**
|
|
171
|
-
*
|
|
103
|
+
* 产品ID
|
|
172
104
|
*/
|
|
173
|
-
|
|
105
|
+
ProductID?: string;
|
|
174
106
|
/**
|
|
175
|
-
*
|
|
107
|
+
* 需要过滤的设备名称
|
|
176
108
|
*/
|
|
177
|
-
|
|
109
|
+
DeviceName?: string;
|
|
178
110
|
/**
|
|
179
|
-
*
|
|
111
|
+
* 资源搜索开始时间
|
|
180
112
|
*/
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* UpdatePrivateCA返回参数结构体
|
|
185
|
-
*/
|
|
186
|
-
export interface UpdatePrivateCAResponse {
|
|
113
|
+
StartTime?: string;
|
|
187
114
|
/**
|
|
188
|
-
*
|
|
115
|
+
* 资源搜索结束时间
|
|
189
116
|
*/
|
|
190
|
-
|
|
117
|
+
EndTime?: string;
|
|
191
118
|
}
|
|
192
119
|
/**
|
|
193
120
|
* DeletePrivateCA返回参数结构体
|
|
@@ -199,120 +126,138 @@ export interface DeletePrivateCAResponse {
|
|
|
199
126
|
RequestId?: string;
|
|
200
127
|
}
|
|
201
128
|
/**
|
|
202
|
-
*
|
|
129
|
+
* UpdatePrivateCA请求参数结构体
|
|
203
130
|
*/
|
|
204
|
-
export interface
|
|
131
|
+
export interface UpdatePrivateCARequest {
|
|
205
132
|
/**
|
|
206
|
-
*
|
|
133
|
+
* CA证书名称
|
|
207
134
|
*/
|
|
208
|
-
|
|
135
|
+
CertName: string;
|
|
209
136
|
/**
|
|
210
|
-
*
|
|
137
|
+
* CA证书内容
|
|
211
138
|
*/
|
|
212
|
-
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* DeleteProductPrivateCA请求参数结构体
|
|
216
|
-
*/
|
|
217
|
-
export interface DeleteProductPrivateCARequest {
|
|
139
|
+
CertText: string;
|
|
218
140
|
/**
|
|
219
|
-
*
|
|
141
|
+
* 校验CA证书的证书内容
|
|
220
142
|
*/
|
|
221
|
-
|
|
143
|
+
VerifyCertText: string;
|
|
222
144
|
}
|
|
223
145
|
/**
|
|
224
|
-
*
|
|
146
|
+
* BindDevices请求参数结构体
|
|
225
147
|
*/
|
|
226
|
-
export interface
|
|
148
|
+
export interface BindDevicesRequest {
|
|
227
149
|
/**
|
|
228
|
-
*
|
|
150
|
+
* 网关设备的产品ID
|
|
229
151
|
*/
|
|
230
|
-
|
|
152
|
+
GatewayProductId: string;
|
|
231
153
|
/**
|
|
232
|
-
*
|
|
154
|
+
* 网关设备的设备名
|
|
233
155
|
*/
|
|
234
|
-
|
|
156
|
+
GatewayDeviceName: string;
|
|
235
157
|
/**
|
|
236
|
-
*
|
|
158
|
+
* 被绑定设备的产品ID
|
|
237
159
|
*/
|
|
238
160
|
ProductId: string;
|
|
239
161
|
/**
|
|
240
|
-
*
|
|
241
|
-
*/
|
|
242
|
-
RequestId: string;
|
|
243
|
-
/**
|
|
244
|
-
* 结果
|
|
245
|
-
*/
|
|
246
|
-
Result: string;
|
|
247
|
-
/**
|
|
248
|
-
* 模块
|
|
249
|
-
*/
|
|
250
|
-
Scene: string;
|
|
251
|
-
/**
|
|
252
|
-
* 日志时间
|
|
162
|
+
* 被绑定的多个设备名
|
|
253
163
|
*/
|
|
254
|
-
|
|
164
|
+
DeviceNames: Array<string>;
|
|
255
165
|
/**
|
|
256
|
-
*
|
|
166
|
+
* 中兴CLAA设备的绑定需要skey,普通的设备不需要
|
|
257
167
|
*/
|
|
258
|
-
|
|
168
|
+
Skey?: string;
|
|
259
169
|
}
|
|
260
170
|
/**
|
|
261
|
-
*
|
|
171
|
+
* CreatePrivateCA返回参数结构体
|
|
262
172
|
*/
|
|
263
|
-
export interface
|
|
264
|
-
/**
|
|
265
|
-
* 私有CA绑定的产品列表
|
|
266
|
-
*/
|
|
267
|
-
Products: Array<BindProductInfo>;
|
|
173
|
+
export interface CreatePrivateCAResponse {
|
|
268
174
|
/**
|
|
269
175
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
270
176
|
*/
|
|
271
177
|
RequestId?: string;
|
|
272
178
|
}
|
|
273
179
|
/**
|
|
274
|
-
*
|
|
275
|
-
*/
|
|
276
|
-
export interface DeleteDeviceRequest {
|
|
277
|
-
/**
|
|
278
|
-
* 设备所属的产品 ID
|
|
279
|
-
*/
|
|
280
|
-
ProductId: string;
|
|
281
|
-
/**
|
|
282
|
-
* 需要删除的设备名称
|
|
283
|
-
*/
|
|
284
|
-
DeviceName: string;
|
|
285
|
-
/**
|
|
286
|
-
* 删除LoRa设备以及LoRa网关设备需要skey
|
|
287
|
-
*/
|
|
288
|
-
Skey?: string;
|
|
289
|
-
}
|
|
290
|
-
/**
|
|
291
|
-
* DeleteProduct返回参数结构体
|
|
180
|
+
* DescribeProducts请求参数结构体
|
|
292
181
|
*/
|
|
293
|
-
export interface
|
|
182
|
+
export interface DescribeProductsRequest {
|
|
294
183
|
/**
|
|
295
|
-
*
|
|
184
|
+
* 偏移量,Offset从0开始
|
|
296
185
|
*/
|
|
297
|
-
|
|
298
|
-
}
|
|
299
|
-
/**
|
|
300
|
-
* CreatePrivateCA返回参数结构体
|
|
301
|
-
*/
|
|
302
|
-
export interface CreatePrivateCAResponse {
|
|
186
|
+
Offset: number;
|
|
303
187
|
/**
|
|
304
|
-
*
|
|
188
|
+
* 分页大小,当前页面中显示的最大数量,值范围 10-250。
|
|
305
189
|
*/
|
|
306
|
-
|
|
190
|
+
Limit: number;
|
|
307
191
|
}
|
|
308
192
|
/**
|
|
309
|
-
*
|
|
193
|
+
* 创建规则请求包体
|
|
310
194
|
*/
|
|
311
|
-
export interface
|
|
312
|
-
/**
|
|
313
|
-
*
|
|
314
|
-
*/
|
|
315
|
-
|
|
195
|
+
export interface TopicRulePayload {
|
|
196
|
+
/**
|
|
197
|
+
* 规则的SQL语句,如: SELECT * FROM 'pid/dname/event',然后对其进行base64编码,得:U0VMRUNUICogRlJPTSAncGlkL2RuYW1lL2V2ZW50Jw==
|
|
198
|
+
*/
|
|
199
|
+
Sql: string;
|
|
200
|
+
/**
|
|
201
|
+
* 行为的JSON字符串,大部分种类举例如下:
|
|
202
|
+
[
|
|
203
|
+
{
|
|
204
|
+
"republish": {
|
|
205
|
+
"topic": "TEST/test"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"forward": {
|
|
210
|
+
"api": "http://127.0.0.1:8080",
|
|
211
|
+
"token":"xxx"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"ckafka": {
|
|
216
|
+
"instance": {
|
|
217
|
+
"id": "ckafka-test",
|
|
218
|
+
"name": ""
|
|
219
|
+
},
|
|
220
|
+
"topic": {
|
|
221
|
+
"id": "topic-test",
|
|
222
|
+
"name": "test"
|
|
223
|
+
},
|
|
224
|
+
"region": "gz"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"cmqqueue": {
|
|
229
|
+
"queuename": "queue-test-TEST",
|
|
230
|
+
"region": "gz"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"mysql": {
|
|
235
|
+
"instanceid": "cdb-test",
|
|
236
|
+
"region": "gz",
|
|
237
|
+
"username": "test",
|
|
238
|
+
"userpwd": "*****",
|
|
239
|
+
"dbname": "d_mqtt",
|
|
240
|
+
"tablename": "t_test",
|
|
241
|
+
"fieldpairs": [
|
|
242
|
+
{
|
|
243
|
+
"field": "test",
|
|
244
|
+
"value": "test"
|
|
245
|
+
}
|
|
246
|
+
],
|
|
247
|
+
"devicetype": "CUSTOM"
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
]
|
|
251
|
+
*/
|
|
252
|
+
Actions?: string;
|
|
253
|
+
/**
|
|
254
|
+
* 规则描述
|
|
255
|
+
*/
|
|
256
|
+
Description?: string;
|
|
257
|
+
/**
|
|
258
|
+
* 是否禁用规则
|
|
259
|
+
*/
|
|
260
|
+
RuleDisabled?: boolean;
|
|
316
261
|
}
|
|
317
262
|
/**
|
|
318
263
|
* 内容日志项
|
|
@@ -360,33 +305,20 @@ export interface PayloadLogItem {
|
|
|
360
305
|
DateTime: string;
|
|
361
306
|
}
|
|
362
307
|
/**
|
|
363
|
-
*
|
|
308
|
+
* 子产品信息
|
|
364
309
|
*/
|
|
365
|
-
export interface
|
|
310
|
+
export interface BindProductInfo {
|
|
366
311
|
/**
|
|
367
312
|
* 产品ID
|
|
368
313
|
*/
|
|
369
314
|
ProductId: string;
|
|
370
315
|
/**
|
|
371
|
-
*
|
|
316
|
+
* 产品名
|
|
372
317
|
*/
|
|
373
|
-
|
|
318
|
+
ProductName: string;
|
|
374
319
|
}
|
|
375
320
|
/**
|
|
376
|
-
*
|
|
377
|
-
*/
|
|
378
|
-
export interface BindProductInfo {
|
|
379
|
-
/**
|
|
380
|
-
* 产品ID
|
|
381
|
-
*/
|
|
382
|
-
ProductId: string;
|
|
383
|
-
/**
|
|
384
|
-
* 产品名
|
|
385
|
-
*/
|
|
386
|
-
ProductName: string;
|
|
387
|
-
}
|
|
388
|
-
/**
|
|
389
|
-
* DescribeDevices返回参数结构体
|
|
321
|
+
* DescribeDevices返回参数结构体
|
|
390
322
|
*/
|
|
391
323
|
export interface DescribeDevicesResponse {
|
|
392
324
|
/**
|
|
@@ -403,35 +335,9 @@ export interface DescribeDevicesResponse {
|
|
|
403
335
|
RequestId?: string;
|
|
404
336
|
}
|
|
405
337
|
/**
|
|
406
|
-
*
|
|
407
|
-
*/
|
|
408
|
-
export interface DeviceTag {
|
|
409
|
-
/**
|
|
410
|
-
* 属性名称
|
|
411
|
-
*/
|
|
412
|
-
Tag: string;
|
|
413
|
-
/**
|
|
414
|
-
* 属性值的类型,1 int,2 string
|
|
415
|
-
*/
|
|
416
|
-
Type: number;
|
|
417
|
-
/**
|
|
418
|
-
* 属性的值
|
|
419
|
-
*/
|
|
420
|
-
Value: string;
|
|
421
|
-
/**
|
|
422
|
-
* 属性描述名称
|
|
423
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
424
|
-
*/
|
|
425
|
-
Name?: string;
|
|
426
|
-
}
|
|
427
|
-
/**
|
|
428
|
-
* PublishBroadcastMessage返回参数结构体
|
|
338
|
+
* DeleteTopicRule返回参数结构体
|
|
429
339
|
*/
|
|
430
|
-
export interface
|
|
431
|
-
/**
|
|
432
|
-
* 广播消息任务ID
|
|
433
|
-
*/
|
|
434
|
-
TaskId: number;
|
|
340
|
+
export interface DeleteTopicRuleResponse {
|
|
435
341
|
/**
|
|
436
342
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
437
343
|
*/
|
|
@@ -447,90 +353,48 @@ export interface DescribeProductCARequest {
|
|
|
447
353
|
ProductId: string;
|
|
448
354
|
}
|
|
449
355
|
/**
|
|
450
|
-
*
|
|
356
|
+
* 设备标签
|
|
451
357
|
*/
|
|
452
|
-
export interface
|
|
453
|
-
/**
|
|
454
|
-
* CA证书名称
|
|
455
|
-
*/
|
|
456
|
-
CertName: string;
|
|
457
|
-
/**
|
|
458
|
-
* CA证书内容
|
|
459
|
-
*/
|
|
460
|
-
CertText: string;
|
|
358
|
+
export interface DeviceLabel {
|
|
461
359
|
/**
|
|
462
|
-
*
|
|
360
|
+
* 标签标识
|
|
463
361
|
*/
|
|
464
|
-
|
|
465
|
-
}
|
|
466
|
-
/**
|
|
467
|
-
* UpdateDevicePSK返回参数结构体
|
|
468
|
-
*/
|
|
469
|
-
export interface UpdateDevicePSKResponse {
|
|
362
|
+
Key: string;
|
|
470
363
|
/**
|
|
471
|
-
*
|
|
364
|
+
* 标签值
|
|
472
365
|
*/
|
|
473
|
-
|
|
366
|
+
Value: string;
|
|
474
367
|
}
|
|
475
368
|
/**
|
|
476
|
-
*
|
|
369
|
+
* DescribeProductTasks请求参数结构体
|
|
477
370
|
*/
|
|
478
|
-
export interface
|
|
371
|
+
export interface DescribeProductTasksRequest {
|
|
479
372
|
/**
|
|
480
373
|
* 产品ID
|
|
481
374
|
*/
|
|
482
375
|
ProductId: string;
|
|
483
376
|
/**
|
|
484
|
-
*
|
|
485
|
-
*/
|
|
486
|
-
ProductName: string;
|
|
487
|
-
/**
|
|
488
|
-
* 产品元数据
|
|
489
|
-
*/
|
|
490
|
-
ProductMetadata: ProductMetadata;
|
|
491
|
-
/**
|
|
492
|
-
* 产品属性
|
|
493
|
-
*/
|
|
494
|
-
ProductProperties: ProductProperties;
|
|
495
|
-
/**
|
|
496
|
-
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
497
|
-
*/
|
|
498
|
-
RequestId?: string;
|
|
499
|
-
}
|
|
500
|
-
/**
|
|
501
|
-
* DescribeDevice请求参数结构体
|
|
502
|
-
*/
|
|
503
|
-
export interface DescribeDeviceRequest {
|
|
504
|
-
/**
|
|
505
|
-
* 产品ID
|
|
377
|
+
* 产品级别任务列表偏移量
|
|
506
378
|
*/
|
|
507
|
-
|
|
379
|
+
Offset: number;
|
|
508
380
|
/**
|
|
509
|
-
*
|
|
381
|
+
* 产品级别任务列表拉取个数
|
|
510
382
|
*/
|
|
511
|
-
|
|
383
|
+
Limit: number;
|
|
512
384
|
}
|
|
513
385
|
/**
|
|
514
|
-
*
|
|
386
|
+
* UpdateProductPrivateCA返回参数结构体
|
|
515
387
|
*/
|
|
516
|
-
export interface
|
|
517
|
-
/**
|
|
518
|
-
* 设备所属产品id
|
|
519
|
-
*/
|
|
520
|
-
ProductId: string;
|
|
521
|
-
/**
|
|
522
|
-
* 设备名称集合
|
|
523
|
-
*/
|
|
524
|
-
DeviceNames: Array<string>;
|
|
388
|
+
export interface UpdateProductPrivateCAResponse {
|
|
525
389
|
/**
|
|
526
|
-
*
|
|
390
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
527
391
|
*/
|
|
528
|
-
|
|
392
|
+
RequestId?: string;
|
|
529
393
|
}
|
|
530
394
|
/**
|
|
531
|
-
*
|
|
395
|
+
* UpdateDeviceShadow请求参数结构体
|
|
532
396
|
*/
|
|
533
|
-
export interface
|
|
397
|
+
export interface UpdateDeviceShadowRequest {
|
|
534
398
|
/**
|
|
535
399
|
* 产品ID
|
|
536
400
|
*/
|
|
@@ -540,115 +404,99 @@ export interface UpdateDeviceLogLevelRequest {
|
|
|
540
404
|
*/
|
|
541
405
|
DeviceName: string;
|
|
542
406
|
/**
|
|
543
|
-
*
|
|
544
|
-
*/
|
|
545
|
-
LogLevel: number;
|
|
546
|
-
}
|
|
547
|
-
/**
|
|
548
|
-
* 设备标签
|
|
549
|
-
*/
|
|
550
|
-
export interface DeviceLabel {
|
|
551
|
-
/**
|
|
552
|
-
* 标签标识
|
|
407
|
+
* 虚拟设备的状态,JSON字符串格式,由desired结构组成
|
|
553
408
|
*/
|
|
554
|
-
|
|
409
|
+
State: string;
|
|
555
410
|
/**
|
|
556
|
-
*
|
|
411
|
+
* 当前版本号,需要和后台的version保持一致,才能更新成功
|
|
557
412
|
*/
|
|
558
|
-
|
|
413
|
+
ShadowVersion: number;
|
|
559
414
|
}
|
|
560
415
|
/**
|
|
561
|
-
*
|
|
416
|
+
* DescribeGatewayBindDevices返回参数结构体
|
|
562
417
|
*/
|
|
563
|
-
export interface
|
|
418
|
+
export interface DescribeGatewayBindDevicesResponse {
|
|
564
419
|
/**
|
|
565
|
-
*
|
|
420
|
+
* 子设备总数
|
|
566
421
|
*/
|
|
567
|
-
|
|
422
|
+
TotalCount: number;
|
|
568
423
|
/**
|
|
569
|
-
*
|
|
424
|
+
* 子设备信息
|
|
570
425
|
*/
|
|
571
|
-
|
|
426
|
+
Devices: Array<BindDeviceInfo>;
|
|
572
427
|
/**
|
|
573
|
-
*
|
|
428
|
+
* 子设备所属的产品名
|
|
574
429
|
*/
|
|
575
|
-
|
|
430
|
+
ProductName: string;
|
|
431
|
+
/**
|
|
432
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
433
|
+
*/
|
|
434
|
+
RequestId?: string;
|
|
576
435
|
}
|
|
577
436
|
/**
|
|
578
|
-
*
|
|
437
|
+
* 产品资源详细信息
|
|
579
438
|
*/
|
|
580
|
-
export interface
|
|
581
|
-
/**
|
|
582
|
-
* 证书名称
|
|
583
|
-
*/
|
|
584
|
-
CertName: string;
|
|
439
|
+
export interface ProductResourceInfo {
|
|
585
440
|
/**
|
|
586
|
-
*
|
|
441
|
+
* 产品ID
|
|
587
442
|
*/
|
|
588
|
-
|
|
443
|
+
ProductID: string;
|
|
589
444
|
/**
|
|
590
|
-
*
|
|
445
|
+
* 产品名
|
|
591
446
|
*/
|
|
592
|
-
|
|
447
|
+
ProductName: string;
|
|
593
448
|
/**
|
|
594
|
-
*
|
|
449
|
+
* 资源名称
|
|
595
450
|
*/
|
|
596
|
-
|
|
451
|
+
Name: string;
|
|
597
452
|
/**
|
|
598
|
-
*
|
|
453
|
+
* 资源文件md5
|
|
599
454
|
*/
|
|
600
|
-
|
|
455
|
+
Md5: string;
|
|
601
456
|
/**
|
|
602
|
-
*
|
|
457
|
+
* 资源文件大小
|
|
603
458
|
*/
|
|
604
|
-
|
|
459
|
+
Size: number;
|
|
605
460
|
/**
|
|
606
|
-
*
|
|
461
|
+
* 资源文件描述
|
|
462
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
607
463
|
*/
|
|
608
|
-
|
|
464
|
+
Description: string;
|
|
609
465
|
/**
|
|
610
|
-
*
|
|
466
|
+
* 资源创建时间
|
|
611
467
|
*/
|
|
612
|
-
|
|
468
|
+
CreateTime: string;
|
|
613
469
|
}
|
|
614
470
|
/**
|
|
615
|
-
*
|
|
471
|
+
* DescribeFirmware请求参数结构体
|
|
616
472
|
*/
|
|
617
|
-
export interface
|
|
473
|
+
export interface DescribeFirmwareRequest {
|
|
618
474
|
/**
|
|
619
|
-
*
|
|
475
|
+
* 产品ID
|
|
620
476
|
*/
|
|
621
|
-
|
|
477
|
+
ProductId: string;
|
|
478
|
+
/**
|
|
479
|
+
* 固件版本号
|
|
480
|
+
*/
|
|
481
|
+
FirmwareVersion: string;
|
|
622
482
|
}
|
|
623
483
|
/**
|
|
624
|
-
*
|
|
625
|
-
*/
|
|
626
|
-
export declare type DescribePrivateCAsRequest = null;
|
|
627
|
-
/**
|
|
628
|
-
* UpdateDevicePSK请求参数结构体
|
|
484
|
+
* DescribeDeviceResource返回参数结构体
|
|
629
485
|
*/
|
|
630
|
-
export interface
|
|
631
|
-
/**
|
|
632
|
-
* 产品名
|
|
633
|
-
*/
|
|
634
|
-
ProductId: string;
|
|
486
|
+
export interface DescribeDeviceResourceResponse {
|
|
635
487
|
/**
|
|
636
|
-
*
|
|
488
|
+
* 设备资源详情
|
|
637
489
|
*/
|
|
638
|
-
|
|
490
|
+
Result: DeviceResourceInfo;
|
|
639
491
|
/**
|
|
640
|
-
*
|
|
492
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
641
493
|
*/
|
|
642
|
-
|
|
494
|
+
RequestId?: string;
|
|
643
495
|
}
|
|
644
496
|
/**
|
|
645
|
-
*
|
|
497
|
+
* DescribeProductResources请求参数结构体
|
|
646
498
|
*/
|
|
647
|
-
export interface
|
|
648
|
-
/**
|
|
649
|
-
* 需要查看设备列表的产品 ID
|
|
650
|
-
*/
|
|
651
|
-
ProductId: string;
|
|
499
|
+
export interface DescribeProductResourcesRequest {
|
|
652
500
|
/**
|
|
653
501
|
* 偏移量,Offset从0开始
|
|
654
502
|
*/
|
|
@@ -658,604 +506,2608 @@ export interface DescribeDevicesRequest {
|
|
|
658
506
|
*/
|
|
659
507
|
Limit: number;
|
|
660
508
|
/**
|
|
661
|
-
*
|
|
662
|
-
*/
|
|
663
|
-
FirmwareVersion?: string;
|
|
664
|
-
/**
|
|
665
|
-
* 需要过滤的设备名称
|
|
509
|
+
* 需要查看资源列表的产品 ID
|
|
666
510
|
*/
|
|
667
|
-
|
|
511
|
+
ProductID?: string;
|
|
668
512
|
/**
|
|
669
|
-
*
|
|
513
|
+
* 需要过滤的资源名称
|
|
670
514
|
*/
|
|
671
|
-
|
|
515
|
+
Name?: string;
|
|
672
516
|
}
|
|
673
517
|
/**
|
|
674
|
-
*
|
|
518
|
+
* DescribeProduct请求参数结构体
|
|
675
519
|
*/
|
|
676
|
-
export interface
|
|
520
|
+
export interface DescribeProductRequest {
|
|
677
521
|
/**
|
|
678
|
-
*
|
|
522
|
+
* 产品ID
|
|
679
523
|
*/
|
|
680
|
-
|
|
524
|
+
ProductId: string;
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* DescribeProducts返回参数结构体
|
|
528
|
+
*/
|
|
529
|
+
export interface DescribeProductsResponse {
|
|
681
530
|
/**
|
|
682
|
-
*
|
|
531
|
+
* 产品总数
|
|
683
532
|
*/
|
|
684
|
-
|
|
533
|
+
TotalCount: number;
|
|
685
534
|
/**
|
|
686
|
-
*
|
|
535
|
+
* 产品详细信息列表
|
|
687
536
|
*/
|
|
688
|
-
|
|
537
|
+
Products: Array<ProductInfo>;
|
|
689
538
|
/**
|
|
690
539
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
691
540
|
*/
|
|
692
541
|
RequestId?: string;
|
|
693
542
|
}
|
|
694
543
|
/**
|
|
695
|
-
*
|
|
544
|
+
* DescribeDeviceShadow返回参数结构体
|
|
696
545
|
*/
|
|
697
|
-
export interface
|
|
546
|
+
export interface DescribeDeviceShadowResponse {
|
|
698
547
|
/**
|
|
699
|
-
*
|
|
548
|
+
* 设备影子数据
|
|
700
549
|
*/
|
|
701
|
-
|
|
550
|
+
Data: string;
|
|
702
551
|
/**
|
|
703
552
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
704
553
|
*/
|
|
705
554
|
RequestId?: string;
|
|
706
555
|
}
|
|
707
556
|
/**
|
|
708
|
-
*
|
|
557
|
+
* EnableTopicRule返回参数结构体
|
|
709
558
|
*/
|
|
710
|
-
export interface
|
|
559
|
+
export interface EnableTopicRuleResponse {
|
|
711
560
|
/**
|
|
712
561
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
713
562
|
*/
|
|
714
563
|
RequestId?: string;
|
|
715
564
|
}
|
|
716
565
|
/**
|
|
717
|
-
*
|
|
566
|
+
* DescribePushResourceTaskStatistics返回参数结构体
|
|
718
567
|
*/
|
|
719
|
-
export interface
|
|
568
|
+
export interface DescribePushResourceTaskStatisticsResponse {
|
|
720
569
|
/**
|
|
721
|
-
*
|
|
570
|
+
* 推送成功的设备总数
|
|
571
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
722
572
|
*/
|
|
723
|
-
|
|
573
|
+
SuccessTotal: number;
|
|
724
574
|
/**
|
|
725
|
-
*
|
|
575
|
+
* 推送失败的设备总数
|
|
576
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
726
577
|
*/
|
|
727
|
-
|
|
578
|
+
FailureTotal: number;
|
|
728
579
|
/**
|
|
729
|
-
*
|
|
580
|
+
* 正在推送的设备总数
|
|
581
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
730
582
|
*/
|
|
731
|
-
|
|
583
|
+
UpgradingTotal: number;
|
|
732
584
|
/**
|
|
733
585
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
734
586
|
*/
|
|
735
587
|
RequestId?: string;
|
|
736
588
|
}
|
|
737
589
|
/**
|
|
738
|
-
*
|
|
590
|
+
* UpdateDeviceLogLevel请求参数结构体
|
|
739
591
|
*/
|
|
740
|
-
export interface
|
|
592
|
+
export interface UpdateDeviceLogLevelRequest {
|
|
741
593
|
/**
|
|
742
|
-
*
|
|
594
|
+
* 产品ID
|
|
743
595
|
*/
|
|
744
|
-
|
|
596
|
+
ProductId: string;
|
|
745
597
|
/**
|
|
746
|
-
*
|
|
598
|
+
* 设备名称
|
|
747
599
|
*/
|
|
748
|
-
|
|
600
|
+
DeviceName: string;
|
|
749
601
|
/**
|
|
750
|
-
*
|
|
751
|
-
一个典型的查询示例:ProductID:ABCDE12345 DeviceName:test publish
|
|
602
|
+
* 日志级别,0:关闭,1:错误,2:告警,3:信息,4:调试
|
|
752
603
|
*/
|
|
753
|
-
|
|
604
|
+
LogLevel: number;
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
* PublishRRPCMessage请求参数结构体
|
|
608
|
+
*/
|
|
609
|
+
export interface PublishRRPCMessageRequest {
|
|
754
610
|
/**
|
|
755
|
-
*
|
|
611
|
+
* 产品ID
|
|
756
612
|
*/
|
|
757
|
-
|
|
613
|
+
ProductId: string;
|
|
758
614
|
/**
|
|
759
|
-
*
|
|
615
|
+
* 设备名称
|
|
760
616
|
*/
|
|
761
|
-
|
|
617
|
+
DeviceName: string;
|
|
618
|
+
/**
|
|
619
|
+
* 消息内容,utf8编码
|
|
620
|
+
*/
|
|
621
|
+
Payload: string;
|
|
762
622
|
}
|
|
763
623
|
/**
|
|
764
|
-
*
|
|
624
|
+
* 产品属性
|
|
765
625
|
*/
|
|
766
|
-
export interface
|
|
626
|
+
export interface ProductProperties {
|
|
767
627
|
/**
|
|
768
|
-
*
|
|
628
|
+
* 产品描述
|
|
769
629
|
*/
|
|
770
|
-
|
|
630
|
+
ProductDescription?: string;
|
|
771
631
|
/**
|
|
772
|
-
*
|
|
632
|
+
* 加密类型,1表示证书认证,2表示签名认证。如不填写,默认值是1
|
|
773
633
|
*/
|
|
774
|
-
|
|
634
|
+
EncryptionType?: string;
|
|
775
635
|
/**
|
|
776
|
-
*
|
|
636
|
+
* 产品所属区域,目前只支持广州(gz)
|
|
777
637
|
*/
|
|
778
|
-
|
|
638
|
+
Region?: string;
|
|
779
639
|
/**
|
|
780
|
-
*
|
|
640
|
+
* 产品类型,各个类型值代表的节点-类型如下:
|
|
641
|
+
0 普通产品,2 NB-IoT产品,4 LoRa产品,3 LoRa网关产品,5 普通网关产品 默认值是0
|
|
781
642
|
*/
|
|
782
|
-
|
|
643
|
+
ProductType?: number;
|
|
783
644
|
/**
|
|
784
|
-
*
|
|
645
|
+
* 数据格式,取值为json或者custom,默认值是json
|
|
785
646
|
*/
|
|
786
|
-
|
|
647
|
+
Format?: string;
|
|
787
648
|
/**
|
|
788
|
-
*
|
|
649
|
+
* 产品所属平台,默认值是0
|
|
789
650
|
*/
|
|
790
|
-
|
|
651
|
+
Platform?: string;
|
|
791
652
|
/**
|
|
792
|
-
* LoRa
|
|
653
|
+
* LoRa产品运营侧APPEUI,只有LoRa产品需要填写
|
|
793
654
|
*/
|
|
794
|
-
|
|
655
|
+
Appeui?: string;
|
|
795
656
|
/**
|
|
796
|
-
*
|
|
657
|
+
* 产品绑定的物模型ID,-1表示不绑定
|
|
797
658
|
*/
|
|
798
|
-
|
|
659
|
+
ModelId?: string;
|
|
799
660
|
/**
|
|
800
|
-
*
|
|
661
|
+
* 产品绑定的物模型名称
|
|
801
662
|
*/
|
|
802
|
-
|
|
803
|
-
}
|
|
804
|
-
/**
|
|
805
|
-
* ListSDKLog请求参数结构体
|
|
806
|
-
*/
|
|
807
|
-
export interface ListSDKLogRequest {
|
|
663
|
+
ModelName?: string;
|
|
808
664
|
/**
|
|
809
|
-
*
|
|
665
|
+
* 产品密钥,suite产品才会有
|
|
810
666
|
*/
|
|
811
|
-
|
|
667
|
+
ProductKey?: string;
|
|
812
668
|
/**
|
|
813
|
-
*
|
|
669
|
+
* 动态注册类型 0-关闭, 1-预定义设备名 2-动态定义设备名
|
|
814
670
|
*/
|
|
815
|
-
|
|
671
|
+
RegisterType?: number;
|
|
816
672
|
/**
|
|
817
|
-
*
|
|
818
|
-
例如,查询某key的值为value,并且包含某word的日志,该参数为:key:value word。
|
|
819
|
-
键值或文本可以包含多个,以空格隔开。
|
|
820
|
-
其中可以索引的key包括:productid、devicename、loglevel
|
|
821
|
-
一个典型的查询示例:productid:7JK1G72JNE devicename:name publish loglevel:WARN一个典型的查询示例:productid:ABCDE12345 devicename:test scene:SHADOW publish
|
|
673
|
+
* 动态注册产品秘钥
|
|
822
674
|
*/
|
|
823
|
-
|
|
675
|
+
ProductSecret?: string;
|
|
824
676
|
/**
|
|
825
|
-
*
|
|
677
|
+
* RegisterType为2时,设备动态创建的限制数量
|
|
826
678
|
*/
|
|
827
|
-
|
|
679
|
+
RegisterLimit?: number;
|
|
828
680
|
/**
|
|
829
|
-
*
|
|
681
|
+
* 划归的产品,展示为源产品ID,其余为空
|
|
830
682
|
*/
|
|
831
|
-
|
|
683
|
+
OriginProductId?: string;
|
|
684
|
+
/**
|
|
685
|
+
* 私有CA名称
|
|
686
|
+
*/
|
|
687
|
+
PrivateCAName?: string;
|
|
688
|
+
/**
|
|
689
|
+
* 划归的产品,展示为源用户ID,其余为空
|
|
690
|
+
*/
|
|
691
|
+
OriginUserId?: number;
|
|
832
692
|
}
|
|
833
693
|
/**
|
|
834
|
-
*
|
|
694
|
+
* 设备固件更新状态
|
|
835
695
|
*/
|
|
836
|
-
export interface
|
|
696
|
+
export interface DeviceUpdateStatus {
|
|
837
697
|
/**
|
|
838
|
-
*
|
|
698
|
+
* 设备名
|
|
839
699
|
*/
|
|
840
|
-
|
|
700
|
+
DeviceName: string;
|
|
841
701
|
/**
|
|
842
|
-
*
|
|
702
|
+
* 最后处理时间
|
|
843
703
|
*/
|
|
844
|
-
|
|
704
|
+
LastProcessTime: number;
|
|
845
705
|
/**
|
|
846
|
-
*
|
|
706
|
+
* 状态
|
|
847
707
|
*/
|
|
848
|
-
|
|
708
|
+
Status: number;
|
|
849
709
|
/**
|
|
850
|
-
*
|
|
710
|
+
* 错误消息
|
|
851
711
|
*/
|
|
852
|
-
|
|
712
|
+
ErrMsg: string;
|
|
853
713
|
/**
|
|
854
|
-
*
|
|
714
|
+
* 返回码
|
|
855
715
|
*/
|
|
856
|
-
|
|
716
|
+
Retcode: number;
|
|
857
717
|
/**
|
|
858
|
-
*
|
|
718
|
+
* 目标更新版本
|
|
859
719
|
*/
|
|
860
|
-
|
|
720
|
+
DstVersion: string;
|
|
861
721
|
/**
|
|
862
|
-
*
|
|
722
|
+
* 下载中状态时的下载进度
|
|
723
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
863
724
|
*/
|
|
864
|
-
|
|
725
|
+
Percent: number;
|
|
865
726
|
/**
|
|
866
|
-
*
|
|
727
|
+
* 原版本号
|
|
728
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
867
729
|
*/
|
|
868
|
-
|
|
730
|
+
OriVersion: string;
|
|
869
731
|
/**
|
|
870
|
-
*
|
|
732
|
+
* 任务ID
|
|
733
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
871
734
|
*/
|
|
872
|
-
|
|
735
|
+
TaskId: number;
|
|
736
|
+
}
|
|
737
|
+
/**
|
|
738
|
+
* BatchUpdateFirmware返回参数结构体
|
|
739
|
+
*/
|
|
740
|
+
export interface BatchUpdateFirmwareResponse {
|
|
873
741
|
/**
|
|
874
|
-
*
|
|
742
|
+
* 任务ID
|
|
875
743
|
*/
|
|
876
|
-
|
|
744
|
+
TaskId: number;
|
|
877
745
|
/**
|
|
878
|
-
*
|
|
746
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
879
747
|
*/
|
|
880
|
-
|
|
748
|
+
RequestId?: string;
|
|
881
749
|
}
|
|
882
750
|
/**
|
|
883
|
-
*
|
|
751
|
+
* DeleteProduct请求参数结构体
|
|
884
752
|
*/
|
|
885
|
-
export interface
|
|
753
|
+
export interface DeleteProductRequest {
|
|
886
754
|
/**
|
|
887
|
-
*
|
|
755
|
+
* 需要删除的产品 ID
|
|
888
756
|
*/
|
|
889
757
|
ProductId: string;
|
|
890
|
-
}
|
|
891
|
-
/**
|
|
892
|
-
* UpdateProductPrivateCA返回参数结构体
|
|
893
|
-
*/
|
|
894
|
-
export interface UpdateProductPrivateCAResponse {
|
|
895
758
|
/**
|
|
896
|
-
*
|
|
759
|
+
* 删除LoRa产品需要skey
|
|
897
760
|
*/
|
|
898
|
-
|
|
761
|
+
Skey?: string;
|
|
899
762
|
}
|
|
900
763
|
/**
|
|
901
|
-
*
|
|
764
|
+
* 状态统计信息
|
|
902
765
|
*/
|
|
903
|
-
export interface
|
|
766
|
+
export interface StatusStatistic {
|
|
904
767
|
/**
|
|
905
|
-
*
|
|
768
|
+
* 任务状态
|
|
769
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
906
770
|
*/
|
|
907
|
-
|
|
771
|
+
Status: number;
|
|
772
|
+
/**
|
|
773
|
+
* 统计总数
|
|
774
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
775
|
+
*/
|
|
776
|
+
Total: number;
|
|
908
777
|
}
|
|
909
778
|
/**
|
|
910
|
-
*
|
|
779
|
+
* DeleteProductPrivateCA返回参数结构体
|
|
911
780
|
*/
|
|
912
|
-
export interface
|
|
781
|
+
export interface DeleteProductPrivateCAResponse {
|
|
913
782
|
/**
|
|
914
783
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
915
784
|
*/
|
|
916
785
|
RequestId?: string;
|
|
917
786
|
}
|
|
918
787
|
/**
|
|
919
|
-
*
|
|
788
|
+
* DownloadDeviceResource请求参数结构体
|
|
920
789
|
*/
|
|
921
|
-
export interface
|
|
790
|
+
export interface DownloadDeviceResourceRequest {
|
|
922
791
|
/**
|
|
923
|
-
*
|
|
792
|
+
* 产品ID
|
|
924
793
|
*/
|
|
925
|
-
|
|
794
|
+
ProductID: string;
|
|
795
|
+
/**
|
|
796
|
+
* 资源名称
|
|
797
|
+
*/
|
|
798
|
+
Name: string;
|
|
799
|
+
/**
|
|
800
|
+
* 设备名称
|
|
801
|
+
*/
|
|
802
|
+
DeviceName: string;
|
|
926
803
|
}
|
|
927
804
|
/**
|
|
928
|
-
*
|
|
805
|
+
* DescribeDeviceResource请求参数结构体
|
|
929
806
|
*/
|
|
930
|
-
export interface
|
|
807
|
+
export interface DescribeDeviceResourceRequest {
|
|
931
808
|
/**
|
|
932
|
-
*
|
|
809
|
+
* 设备名称
|
|
933
810
|
*/
|
|
934
811
|
DeviceName: string;
|
|
935
812
|
/**
|
|
936
|
-
*
|
|
813
|
+
* 产品ID
|
|
937
814
|
*/
|
|
938
|
-
|
|
815
|
+
ProductID?: string;
|
|
939
816
|
/**
|
|
940
|
-
*
|
|
817
|
+
* 具体的设备资源名称
|
|
941
818
|
*/
|
|
942
|
-
|
|
819
|
+
Name?: string;
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
* EditFirmware请求参数结构体
|
|
823
|
+
*/
|
|
824
|
+
export interface EditFirmwareRequest {
|
|
943
825
|
/**
|
|
944
|
-
*
|
|
826
|
+
* 产品ID。
|
|
945
827
|
*/
|
|
946
|
-
|
|
828
|
+
ProductId: string;
|
|
947
829
|
/**
|
|
948
|
-
*
|
|
830
|
+
* 固件版本号。
|
|
949
831
|
*/
|
|
950
|
-
|
|
832
|
+
FirmwareVersion: string;
|
|
951
833
|
/**
|
|
952
|
-
*
|
|
834
|
+
* 固件名称。
|
|
953
835
|
*/
|
|
954
|
-
|
|
836
|
+
FirmwareName: string;
|
|
955
837
|
/**
|
|
956
|
-
*
|
|
838
|
+
* 固件描述
|
|
957
839
|
*/
|
|
958
|
-
|
|
840
|
+
FirmwareDescription?: string;
|
|
841
|
+
}
|
|
842
|
+
/**
|
|
843
|
+
* 子设备信息
|
|
844
|
+
*/
|
|
845
|
+
export interface BindDeviceInfo {
|
|
959
846
|
/**
|
|
960
|
-
*
|
|
847
|
+
* 产品ID
|
|
961
848
|
*/
|
|
962
|
-
|
|
849
|
+
ProductId: string;
|
|
963
850
|
/**
|
|
964
|
-
*
|
|
851
|
+
* 设备名
|
|
965
852
|
*/
|
|
966
|
-
|
|
853
|
+
DeviceName: string;
|
|
967
854
|
/**
|
|
968
|
-
*
|
|
855
|
+
* 设备Tag
|
|
969
856
|
*/
|
|
970
|
-
|
|
857
|
+
Tags: Array<DeviceTag>;
|
|
971
858
|
/**
|
|
972
|
-
*
|
|
859
|
+
* 子设备绑定时间
|
|
860
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
973
861
|
*/
|
|
974
|
-
|
|
862
|
+
BindTime: number;
|
|
863
|
+
}
|
|
864
|
+
/**
|
|
865
|
+
* ResetDeviceState请求参数结构体
|
|
866
|
+
*/
|
|
867
|
+
export interface ResetDeviceStateRequest {
|
|
975
868
|
/**
|
|
976
|
-
*
|
|
869
|
+
* 产品ID
|
|
977
870
|
*/
|
|
978
|
-
|
|
871
|
+
ProductId: string;
|
|
979
872
|
/**
|
|
980
|
-
*
|
|
873
|
+
* 设备名称
|
|
981
874
|
*/
|
|
982
|
-
|
|
875
|
+
DeviceNames: Array<string>;
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* DescribeDeviceClientKey请求参数结构体
|
|
879
|
+
*/
|
|
880
|
+
export interface DescribeDeviceClientKeyRequest {
|
|
983
881
|
/**
|
|
984
|
-
*
|
|
882
|
+
* 所属产品的Id
|
|
985
883
|
*/
|
|
986
|
-
|
|
884
|
+
ProductId: string;
|
|
987
885
|
/**
|
|
988
|
-
*
|
|
886
|
+
* 设备名称
|
|
989
887
|
*/
|
|
990
|
-
|
|
888
|
+
DeviceName: string;
|
|
889
|
+
}
|
|
890
|
+
/**
|
|
891
|
+
* CLS日志
|
|
892
|
+
*/
|
|
893
|
+
export interface CLSLogItem {
|
|
991
894
|
/**
|
|
992
|
-
*
|
|
993
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
895
|
+
* 日志内容
|
|
994
896
|
*/
|
|
995
|
-
|
|
897
|
+
Content: string;
|
|
996
898
|
/**
|
|
997
|
-
*
|
|
998
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
899
|
+
* 设备名称
|
|
999
900
|
*/
|
|
1000
|
-
|
|
901
|
+
DeviceName: string;
|
|
1001
902
|
/**
|
|
1002
|
-
*
|
|
1003
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
903
|
+
* 产品ID
|
|
1004
904
|
*/
|
|
1005
|
-
|
|
905
|
+
ProductId: string;
|
|
1006
906
|
/**
|
|
1007
|
-
*
|
|
1008
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
907
|
+
* 请求ID
|
|
1009
908
|
*/
|
|
1010
|
-
|
|
909
|
+
RequestId: string;
|
|
1011
910
|
/**
|
|
1012
|
-
*
|
|
1013
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
911
|
+
* 结果
|
|
1014
912
|
*/
|
|
1015
|
-
|
|
913
|
+
Result: string;
|
|
1016
914
|
/**
|
|
1017
|
-
*
|
|
1018
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
915
|
+
* 模块
|
|
1019
916
|
*/
|
|
1020
|
-
|
|
917
|
+
Scene: string;
|
|
1021
918
|
/**
|
|
1022
|
-
*
|
|
1023
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
919
|
+
* 日志时间
|
|
1024
920
|
*/
|
|
1025
|
-
|
|
921
|
+
Time: string;
|
|
1026
922
|
/**
|
|
1027
|
-
*
|
|
1028
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
923
|
+
* 腾讯云账号
|
|
1029
924
|
*/
|
|
1030
|
-
|
|
925
|
+
Userid: string;
|
|
926
|
+
}
|
|
927
|
+
/**
|
|
928
|
+
* DeleteDevice请求参数结构体
|
|
929
|
+
*/
|
|
930
|
+
export interface DeleteDeviceRequest {
|
|
1031
931
|
/**
|
|
1032
|
-
*
|
|
1033
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
932
|
+
* 设备所属的产品 ID
|
|
1034
933
|
*/
|
|
1035
|
-
|
|
934
|
+
ProductId: string;
|
|
935
|
+
/**
|
|
936
|
+
* 需要删除的设备名称
|
|
937
|
+
*/
|
|
938
|
+
DeviceName: string;
|
|
939
|
+
/**
|
|
940
|
+
* 删除LoRa设备以及LoRa网关设备需要skey
|
|
941
|
+
*/
|
|
942
|
+
Skey?: string;
|
|
1036
943
|
}
|
|
1037
944
|
/**
|
|
1038
|
-
*
|
|
945
|
+
* DescribeFirmwareTaskDistribution请求参数结构体
|
|
1039
946
|
*/
|
|
1040
|
-
export interface
|
|
947
|
+
export interface DescribeFirmwareTaskDistributionRequest {
|
|
1041
948
|
/**
|
|
1042
|
-
*
|
|
949
|
+
* 产品ID
|
|
1043
950
|
*/
|
|
1044
|
-
ProductId:
|
|
951
|
+
ProductId: string;
|
|
1045
952
|
/**
|
|
1046
|
-
*
|
|
953
|
+
* 固件版本号
|
|
1047
954
|
*/
|
|
1048
|
-
|
|
955
|
+
FirmwareVersion: string;
|
|
956
|
+
/**
|
|
957
|
+
* 固件升级任务ID
|
|
958
|
+
*/
|
|
959
|
+
TaskId: number;
|
|
1049
960
|
}
|
|
1050
961
|
/**
|
|
1051
|
-
*
|
|
962
|
+
* DescribeFirmwareTaskDevices请求参数结构体
|
|
1052
963
|
*/
|
|
1053
|
-
export interface
|
|
964
|
+
export interface DescribeFirmwareTaskDevicesRequest {
|
|
1054
965
|
/**
|
|
1055
966
|
* 产品ID
|
|
1056
967
|
*/
|
|
1057
968
|
ProductId: string;
|
|
1058
969
|
/**
|
|
1059
|
-
*
|
|
970
|
+
* 固件版本
|
|
1060
971
|
*/
|
|
1061
|
-
|
|
972
|
+
FirmwareVersion?: string;
|
|
1062
973
|
/**
|
|
1063
|
-
*
|
|
974
|
+
* 筛选条件
|
|
1064
975
|
*/
|
|
1065
|
-
|
|
976
|
+
Filters?: Array<SearchKeyword>;
|
|
1066
977
|
/**
|
|
1067
|
-
*
|
|
978
|
+
* 查询偏移量
|
|
1068
979
|
*/
|
|
1069
|
-
|
|
980
|
+
Offset?: number;
|
|
1070
981
|
/**
|
|
1071
|
-
*
|
|
982
|
+
* 查询的数量
|
|
1072
983
|
*/
|
|
1073
|
-
|
|
984
|
+
Limit?: number;
|
|
1074
985
|
}
|
|
1075
986
|
/**
|
|
1076
|
-
*
|
|
987
|
+
* DescribeFirmware返回参数结构体
|
|
1077
988
|
*/
|
|
1078
|
-
export interface
|
|
989
|
+
export interface DescribeFirmwareResponse {
|
|
1079
990
|
/**
|
|
1080
|
-
*
|
|
991
|
+
* 固件版本号
|
|
1081
992
|
*/
|
|
1082
|
-
|
|
993
|
+
Version: string;
|
|
1083
994
|
/**
|
|
1084
|
-
*
|
|
995
|
+
* 产品ID
|
|
1085
996
|
*/
|
|
1086
|
-
|
|
997
|
+
ProductId: string;
|
|
1087
998
|
/**
|
|
1088
|
-
*
|
|
1089
|
-
|
|
999
|
+
* 固件名称
|
|
1000
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1090
1001
|
*/
|
|
1091
|
-
|
|
1002
|
+
Name: string;
|
|
1092
1003
|
/**
|
|
1093
|
-
*
|
|
1004
|
+
* 固件描述
|
|
1005
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1094
1006
|
*/
|
|
1095
|
-
|
|
1007
|
+
Description: string;
|
|
1096
1008
|
/**
|
|
1097
|
-
*
|
|
1009
|
+
* 固件Md5值
|
|
1010
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1098
1011
|
*/
|
|
1099
|
-
|
|
1100
|
-
}
|
|
1101
|
-
/**
|
|
1102
|
-
* DescribeDevice返回参数结构体
|
|
1103
|
-
*/
|
|
1104
|
-
export interface DescribeDeviceResponse {
|
|
1012
|
+
Md5sum: string;
|
|
1105
1013
|
/**
|
|
1106
|
-
*
|
|
1014
|
+
* 固件上传的秒级时间戳
|
|
1015
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1107
1016
|
*/
|
|
1108
|
-
|
|
1017
|
+
Createtime: number;
|
|
1109
1018
|
/**
|
|
1110
|
-
*
|
|
1019
|
+
* 产品名称
|
|
1111
1020
|
*/
|
|
1112
|
-
|
|
1021
|
+
ProductName: string;
|
|
1113
1022
|
/**
|
|
1114
|
-
*
|
|
1023
|
+
* 固件类型。选项:mcu、module
|
|
1115
1024
|
*/
|
|
1116
|
-
|
|
1025
|
+
FwType: string;
|
|
1117
1026
|
/**
|
|
1118
|
-
*
|
|
1027
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1119
1028
|
*/
|
|
1120
|
-
|
|
1029
|
+
RequestId?: string;
|
|
1030
|
+
}
|
|
1031
|
+
/**
|
|
1032
|
+
* DescribeResourceTasks请求参数结构体
|
|
1033
|
+
*/
|
|
1034
|
+
export interface DescribeResourceTasksRequest {
|
|
1121
1035
|
/**
|
|
1122
|
-
*
|
|
1036
|
+
* 产品ID
|
|
1123
1037
|
*/
|
|
1124
|
-
|
|
1038
|
+
ProductID: string;
|
|
1125
1039
|
/**
|
|
1126
|
-
*
|
|
1040
|
+
* 资源名称
|
|
1127
1041
|
*/
|
|
1128
|
-
|
|
1042
|
+
Name: string;
|
|
1129
1043
|
/**
|
|
1130
|
-
*
|
|
1044
|
+
* 查询偏移量
|
|
1131
1045
|
*/
|
|
1132
|
-
|
|
1046
|
+
Offset: number;
|
|
1133
1047
|
/**
|
|
1134
|
-
*
|
|
1048
|
+
* 返回查询结果条数
|
|
1135
1049
|
*/
|
|
1136
|
-
|
|
1050
|
+
Limit: number;
|
|
1137
1051
|
/**
|
|
1138
|
-
*
|
|
1052
|
+
* 搜索过滤条件
|
|
1139
1053
|
*/
|
|
1140
|
-
|
|
1054
|
+
Filters?: Array<SearchKeyword>;
|
|
1055
|
+
}
|
|
1056
|
+
/**
|
|
1057
|
+
* CreateMultiDevicesTask请求参数结构体
|
|
1058
|
+
*/
|
|
1059
|
+
export interface CreateMultiDevicesTaskRequest {
|
|
1141
1060
|
/**
|
|
1142
|
-
*
|
|
1061
|
+
* 产品ID
|
|
1143
1062
|
*/
|
|
1144
|
-
|
|
1063
|
+
ProductId: string;
|
|
1145
1064
|
/**
|
|
1146
|
-
*
|
|
1065
|
+
* 参数类型 cosfile-文件上传 random-随机创建
|
|
1147
1066
|
*/
|
|
1148
|
-
|
|
1067
|
+
ParametersType: string;
|
|
1149
1068
|
/**
|
|
1150
|
-
*
|
|
1069
|
+
* 文件上传类型时文件名
|
|
1151
1070
|
*/
|
|
1152
|
-
|
|
1071
|
+
FileName?: string;
|
|
1153
1072
|
/**
|
|
1154
|
-
*
|
|
1073
|
+
* 文件上传类型时文件大小
|
|
1155
1074
|
*/
|
|
1156
|
-
|
|
1075
|
+
FileSize?: number;
|
|
1157
1076
|
/**
|
|
1158
|
-
*
|
|
1077
|
+
* 随机创建时设备创建个数
|
|
1159
1078
|
*/
|
|
1160
|
-
|
|
1079
|
+
BatchCount?: number;
|
|
1161
1080
|
/**
|
|
1162
|
-
*
|
|
1081
|
+
* 文件上传类型时文件md5值
|
|
1163
1082
|
*/
|
|
1164
|
-
|
|
1083
|
+
Hash?: string;
|
|
1084
|
+
}
|
|
1085
|
+
/**
|
|
1086
|
+
* DeleteDeviceResource返回参数结构体
|
|
1087
|
+
*/
|
|
1088
|
+
export interface DeleteDeviceResourceResponse {
|
|
1165
1089
|
/**
|
|
1166
|
-
*
|
|
1167
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
1090
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1168
1091
|
*/
|
|
1169
|
-
|
|
1092
|
+
RequestId?: string;
|
|
1093
|
+
}
|
|
1094
|
+
/**
|
|
1095
|
+
* DescribeFirmwareTaskStatistics返回参数结构体
|
|
1096
|
+
*/
|
|
1097
|
+
export interface DescribeFirmwareTaskStatisticsResponse {
|
|
1170
1098
|
/**
|
|
1171
|
-
*
|
|
1099
|
+
* 升级成功的设备总数
|
|
1172
1100
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1173
1101
|
*/
|
|
1174
|
-
|
|
1102
|
+
SuccessTotal: number;
|
|
1175
1103
|
/**
|
|
1176
|
-
*
|
|
1104
|
+
* 升级失败的设备总数
|
|
1177
1105
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1178
1106
|
*/
|
|
1179
|
-
|
|
1107
|
+
FailureTotal: number;
|
|
1180
1108
|
/**
|
|
1181
|
-
*
|
|
1109
|
+
* 正在升级的设备总数
|
|
1182
1110
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1183
1111
|
*/
|
|
1184
|
-
|
|
1112
|
+
UpgradingTotal: number;
|
|
1185
1113
|
/**
|
|
1186
|
-
*
|
|
1187
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
1114
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1188
1115
|
*/
|
|
1189
|
-
|
|
1116
|
+
RequestId?: string;
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* DescribePushResourceTaskStatistics请求参数结构体
|
|
1120
|
+
*/
|
|
1121
|
+
export interface DescribePushResourceTaskStatisticsRequest {
|
|
1190
1122
|
/**
|
|
1191
|
-
*
|
|
1192
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
1123
|
+
* 产品ID
|
|
1193
1124
|
*/
|
|
1194
|
-
|
|
1125
|
+
ProductID: string;
|
|
1195
1126
|
/**
|
|
1196
|
-
*
|
|
1197
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
1127
|
+
* 资源名称
|
|
1198
1128
|
*/
|
|
1199
|
-
|
|
1129
|
+
Name: string;
|
|
1130
|
+
}
|
|
1131
|
+
/**
|
|
1132
|
+
* UpdateDevicesEnableState请求参数结构体
|
|
1133
|
+
*/
|
|
1134
|
+
export interface UpdateDevicesEnableStateRequest {
|
|
1200
1135
|
/**
|
|
1201
|
-
*
|
|
1202
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
1136
|
+
* 设备所属产品id
|
|
1203
1137
|
*/
|
|
1204
|
-
|
|
1138
|
+
ProductId: string;
|
|
1205
1139
|
/**
|
|
1206
|
-
*
|
|
1207
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
1140
|
+
* 设备名称集合
|
|
1208
1141
|
*/
|
|
1209
|
-
|
|
1142
|
+
DeviceNames: Array<string>;
|
|
1210
1143
|
/**
|
|
1211
|
-
*
|
|
1212
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
1144
|
+
* 要设置的设备状态,1为启用,0为禁用
|
|
1213
1145
|
*/
|
|
1214
|
-
|
|
1146
|
+
Status: number;
|
|
1147
|
+
}
|
|
1148
|
+
/**
|
|
1149
|
+
* ListSDKLog请求参数结构体
|
|
1150
|
+
*/
|
|
1151
|
+
export interface ListSDKLogRequest {
|
|
1152
|
+
/**
|
|
1153
|
+
* 日志开始时间
|
|
1154
|
+
*/
|
|
1155
|
+
MinTime: number;
|
|
1156
|
+
/**
|
|
1157
|
+
* 日志结束时间
|
|
1158
|
+
*/
|
|
1159
|
+
MaxTime: number;
|
|
1160
|
+
/**
|
|
1161
|
+
* 查询关键字,可以同时支持键值查询和文本查询,
|
|
1162
|
+
例如,查询某key的值为value,并且包含某word的日志,该参数为:key:value word。
|
|
1163
|
+
键值或文本可以包含多个,以空格隔开。
|
|
1164
|
+
其中可以索引的key包括:productid、devicename、loglevel
|
|
1165
|
+
一个典型的查询示例:productid:7JK1G72JNE devicename:name publish loglevel:WARN一个典型的查询示例:productid:ABCDE12345 devicename:test scene:SHADOW publish
|
|
1166
|
+
*/
|
|
1167
|
+
Keywords: string;
|
|
1168
|
+
/**
|
|
1169
|
+
* 日志检索上下文
|
|
1170
|
+
*/
|
|
1171
|
+
Context?: string;
|
|
1172
|
+
/**
|
|
1173
|
+
* 查询条数
|
|
1174
|
+
*/
|
|
1175
|
+
MaxNum?: number;
|
|
1176
|
+
}
|
|
1177
|
+
/**
|
|
1178
|
+
* SetProductsForbiddenStatus返回参数结构体
|
|
1179
|
+
*/
|
|
1180
|
+
export interface SetProductsForbiddenStatusResponse {
|
|
1215
1181
|
/**
|
|
1216
1182
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1217
1183
|
*/
|
|
1218
1184
|
RequestId?: string;
|
|
1219
1185
|
}
|
|
1220
1186
|
/**
|
|
1221
|
-
*
|
|
1187
|
+
* CreateProduct返回参数结构体
|
|
1222
1188
|
*/
|
|
1223
|
-
export interface
|
|
1189
|
+
export interface CreateProductResponse {
|
|
1224
1190
|
/**
|
|
1225
|
-
*
|
|
1191
|
+
* 产品名称
|
|
1192
|
+
*/
|
|
1193
|
+
ProductName: string;
|
|
1194
|
+
/**
|
|
1195
|
+
* 产品 ID,腾讯云生成全局唯一 ID
|
|
1226
1196
|
*/
|
|
1227
1197
|
ProductId: string;
|
|
1228
1198
|
/**
|
|
1229
|
-
*
|
|
1199
|
+
* 产品属性
|
|
1230
1200
|
*/
|
|
1231
|
-
|
|
1201
|
+
ProductProperties: ProductProperties;
|
|
1232
1202
|
/**
|
|
1233
|
-
*
|
|
1203
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1234
1204
|
*/
|
|
1235
|
-
|
|
1205
|
+
RequestId?: string;
|
|
1206
|
+
}
|
|
1207
|
+
/**
|
|
1208
|
+
* 代理订阅信息
|
|
1209
|
+
*/
|
|
1210
|
+
export interface BrokerSubscribe {
|
|
1236
1211
|
/**
|
|
1237
|
-
*
|
|
1212
|
+
* 产品ID
|
|
1238
1213
|
*/
|
|
1239
|
-
|
|
1214
|
+
ProductId: string;
|
|
1215
|
+
/**
|
|
1216
|
+
* 设备名
|
|
1217
|
+
*/
|
|
1218
|
+
DeviceName: string;
|
|
1240
1219
|
}
|
|
1241
1220
|
/**
|
|
1242
|
-
*
|
|
1221
|
+
* DescribeProductResource返回参数结构体
|
|
1243
1222
|
*/
|
|
1244
|
-
export interface
|
|
1223
|
+
export interface DescribeProductResourceResponse {
|
|
1245
1224
|
/**
|
|
1246
|
-
*
|
|
1225
|
+
* 资源详情
|
|
1226
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1247
1227
|
*/
|
|
1248
|
-
|
|
1228
|
+
Result: ProductResourceInfo;
|
|
1249
1229
|
/**
|
|
1250
|
-
*
|
|
1230
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1251
1231
|
*/
|
|
1252
|
-
|
|
1232
|
+
RequestId?: string;
|
|
1233
|
+
}
|
|
1234
|
+
/**
|
|
1235
|
+
* CancelDeviceFirmwareTask返回参数结构体
|
|
1236
|
+
*/
|
|
1237
|
+
export interface CancelDeviceFirmwareTaskResponse {
|
|
1253
1238
|
/**
|
|
1254
|
-
*
|
|
1239
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1255
1240
|
*/
|
|
1256
|
-
|
|
1241
|
+
RequestId?: string;
|
|
1242
|
+
}
|
|
1243
|
+
/**
|
|
1244
|
+
* CreateTopicPolicy返回参数结构体
|
|
1245
|
+
*/
|
|
1246
|
+
export interface CreateTopicPolicyResponse {
|
|
1257
1247
|
/**
|
|
1258
1248
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1259
1249
|
*/
|
|
1260
1250
|
RequestId?: string;
|
|
1261
1251
|
}
|
|
1252
|
+
/**
|
|
1253
|
+
* RetryDeviceFirmwareTask返回参数结构体
|
|
1254
|
+
*/
|
|
1255
|
+
export interface RetryDeviceFirmwareTaskResponse {
|
|
1256
|
+
/**
|
|
1257
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1258
|
+
*/
|
|
1259
|
+
RequestId?: string;
|
|
1260
|
+
}
|
|
1261
|
+
/**
|
|
1262
|
+
* CreateDevice返回参数结构体
|
|
1263
|
+
*/
|
|
1264
|
+
export interface CreateDeviceResponse {
|
|
1265
|
+
/**
|
|
1266
|
+
* 设备名称
|
|
1267
|
+
*/
|
|
1268
|
+
DeviceName: string;
|
|
1269
|
+
/**
|
|
1270
|
+
* 对称加密密钥,base64编码。采用对称加密时返回该参数
|
|
1271
|
+
*/
|
|
1272
|
+
DevicePsk: string;
|
|
1273
|
+
/**
|
|
1274
|
+
* 设备证书,用于 TLS 建立链接时校验客户端身份。采用非对称加密时返回该参数
|
|
1275
|
+
*/
|
|
1276
|
+
DeviceCert: string;
|
|
1277
|
+
/**
|
|
1278
|
+
* 设备私钥,用于 TLS 建立链接时校验客户端身份,腾讯云后台不保存,请妥善保管。采用非对称加密时返回该参数
|
|
1279
|
+
*/
|
|
1280
|
+
DevicePrivateKey: string;
|
|
1281
|
+
/**
|
|
1282
|
+
* LoRa设备的DevEui,当设备是LoRa设备时,会返回该字段
|
|
1283
|
+
*/
|
|
1284
|
+
LoraDevEui: string;
|
|
1285
|
+
/**
|
|
1286
|
+
* LoRa设备的MoteType,当设备是LoRa设备时,会返回该字段
|
|
1287
|
+
*/
|
|
1288
|
+
LoraMoteType: number;
|
|
1289
|
+
/**
|
|
1290
|
+
* LoRa设备的AppKey,当设备是LoRa设备时,会返回该字段
|
|
1291
|
+
*/
|
|
1292
|
+
LoraAppKey: string;
|
|
1293
|
+
/**
|
|
1294
|
+
* LoRa设备的NwkKey,当设备是LoRa设备时,会返回该字段
|
|
1295
|
+
*/
|
|
1296
|
+
LoraNwkKey: string;
|
|
1297
|
+
/**
|
|
1298
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1299
|
+
*/
|
|
1300
|
+
RequestId?: string;
|
|
1301
|
+
}
|
|
1302
|
+
/**
|
|
1303
|
+
* CreateDevice请求参数结构体
|
|
1304
|
+
*/
|
|
1305
|
+
export interface CreateDeviceRequest {
|
|
1306
|
+
/**
|
|
1307
|
+
* 产品 ID 。创建产品时腾讯云为用户分配全局唯一的 ID
|
|
1308
|
+
*/
|
|
1309
|
+
ProductId: string;
|
|
1310
|
+
/**
|
|
1311
|
+
* 设备名称。命名规则:[a-zA-Z0-9:_-]{1,48}。
|
|
1312
|
+
*/
|
|
1313
|
+
DeviceName: string;
|
|
1314
|
+
/**
|
|
1315
|
+
* 设备属性
|
|
1316
|
+
*/
|
|
1317
|
+
Attribute?: Attribute;
|
|
1318
|
+
/**
|
|
1319
|
+
* 是否使用自定义PSK,默认不使用
|
|
1320
|
+
*/
|
|
1321
|
+
DefinedPsk?: string;
|
|
1322
|
+
/**
|
|
1323
|
+
* 运营商类型,当产品是NB-IoT产品时,此字段必填。1表示中国电信,2表示中国移动,3表示中国联通
|
|
1324
|
+
*/
|
|
1325
|
+
Isp?: number;
|
|
1326
|
+
/**
|
|
1327
|
+
* IMEI,当产品是NB-IoT产品时,此字段必填
|
|
1328
|
+
*/
|
|
1329
|
+
Imei?: string;
|
|
1330
|
+
/**
|
|
1331
|
+
* LoRa设备的DevEui,当创建LoRa时,此字段必填
|
|
1332
|
+
*/
|
|
1333
|
+
LoraDevEui?: string;
|
|
1334
|
+
/**
|
|
1335
|
+
* LoRa设备的MoteType
|
|
1336
|
+
*/
|
|
1337
|
+
LoraMoteType?: number;
|
|
1338
|
+
/**
|
|
1339
|
+
* 创建LoRa设备需要skey
|
|
1340
|
+
*/
|
|
1341
|
+
Skey?: string;
|
|
1342
|
+
/**
|
|
1343
|
+
* LoRa设备的AppKey
|
|
1344
|
+
*/
|
|
1345
|
+
LoraAppKey?: string;
|
|
1346
|
+
/**
|
|
1347
|
+
* 私有CA创建的设备证书
|
|
1348
|
+
*/
|
|
1349
|
+
TlsCrt?: string;
|
|
1350
|
+
}
|
|
1351
|
+
/**
|
|
1352
|
+
* DescribeProductTask请求参数结构体
|
|
1353
|
+
*/
|
|
1354
|
+
export interface DescribeProductTaskRequest {
|
|
1355
|
+
/**
|
|
1356
|
+
* 产品ID
|
|
1357
|
+
*/
|
|
1358
|
+
ProductId: string;
|
|
1359
|
+
/**
|
|
1360
|
+
* 任务ID
|
|
1361
|
+
*/
|
|
1362
|
+
TaskId: number;
|
|
1363
|
+
}
|
|
1364
|
+
/**
|
|
1365
|
+
* DescribeFirmwareTask返回参数结构体
|
|
1366
|
+
*/
|
|
1367
|
+
export interface DescribeFirmwareTaskResponse {
|
|
1368
|
+
/**
|
|
1369
|
+
* 固件任务ID
|
|
1370
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1371
|
+
*/
|
|
1372
|
+
TaskId: number;
|
|
1373
|
+
/**
|
|
1374
|
+
* 固件任务状态
|
|
1375
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1376
|
+
*/
|
|
1377
|
+
Status: number;
|
|
1378
|
+
/**
|
|
1379
|
+
* 固件任务创建时间,单位:秒
|
|
1380
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1381
|
+
*/
|
|
1382
|
+
CreateTime: number;
|
|
1383
|
+
/**
|
|
1384
|
+
* 固件任务升级类型
|
|
1385
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1386
|
+
*/
|
|
1387
|
+
Type: number;
|
|
1388
|
+
/**
|
|
1389
|
+
* 产品名称
|
|
1390
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1391
|
+
*/
|
|
1392
|
+
ProductName: string;
|
|
1393
|
+
/**
|
|
1394
|
+
* 固件任务升级模式。originalVersion(按版本号升级)、filename(提交文件升级)、devicenames(按设备名称升级)
|
|
1395
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1396
|
+
*/
|
|
1397
|
+
UpgradeMode: string;
|
|
1398
|
+
/**
|
|
1399
|
+
* 产品ID
|
|
1400
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1401
|
+
*/
|
|
1402
|
+
ProductId: string;
|
|
1403
|
+
/**
|
|
1404
|
+
* 升级前版本号
|
|
1405
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1406
|
+
*/
|
|
1407
|
+
OriginalVersion: string;
|
|
1408
|
+
/**
|
|
1409
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1410
|
+
*/
|
|
1411
|
+
RequestId?: string;
|
|
1412
|
+
}
|
|
1413
|
+
/**
|
|
1414
|
+
* CreateProduct请求参数结构体
|
|
1415
|
+
*/
|
|
1416
|
+
export interface CreateProductRequest {
|
|
1417
|
+
/**
|
|
1418
|
+
* 产品名称,名称不能和已经存在的产品名称重复。命名规则:[a-zA-Z0-9:_-]{1,32}
|
|
1419
|
+
*/
|
|
1420
|
+
ProductName: string;
|
|
1421
|
+
/**
|
|
1422
|
+
* 产品属性
|
|
1423
|
+
*/
|
|
1424
|
+
ProductProperties?: ProductProperties;
|
|
1425
|
+
/**
|
|
1426
|
+
* 创建CLAA产品时,需要Skey
|
|
1427
|
+
*/
|
|
1428
|
+
Skey?: string;
|
|
1429
|
+
}
|
|
1430
|
+
/**
|
|
1431
|
+
* DescribeFirmwareTasks请求参数结构体
|
|
1432
|
+
*/
|
|
1433
|
+
export interface DescribeFirmwareTasksRequest {
|
|
1434
|
+
/**
|
|
1435
|
+
* 产品ID
|
|
1436
|
+
*/
|
|
1437
|
+
ProductId: string;
|
|
1438
|
+
/**
|
|
1439
|
+
* 固件版本号
|
|
1440
|
+
*/
|
|
1441
|
+
FirmwareVersion: string;
|
|
1442
|
+
/**
|
|
1443
|
+
* 查询偏移量
|
|
1444
|
+
*/
|
|
1445
|
+
Offset: number;
|
|
1446
|
+
/**
|
|
1447
|
+
* 返回查询结果条数
|
|
1448
|
+
*/
|
|
1449
|
+
Limit: number;
|
|
1450
|
+
/**
|
|
1451
|
+
* 搜索过滤条件
|
|
1452
|
+
*/
|
|
1453
|
+
Filters?: Array<SearchKeyword>;
|
|
1454
|
+
}
|
|
1455
|
+
/**
|
|
1456
|
+
* DisableTopicRule返回参数结构体
|
|
1457
|
+
*/
|
|
1458
|
+
export interface DisableTopicRuleResponse {
|
|
1459
|
+
/**
|
|
1460
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1461
|
+
*/
|
|
1462
|
+
RequestId?: string;
|
|
1463
|
+
}
|
|
1464
|
+
/**
|
|
1465
|
+
* GetCOSURL请求参数结构体
|
|
1466
|
+
*/
|
|
1467
|
+
export interface GetCOSURLRequest {
|
|
1468
|
+
/**
|
|
1469
|
+
* 产品ID
|
|
1470
|
+
*/
|
|
1471
|
+
ProductId: string;
|
|
1472
|
+
/**
|
|
1473
|
+
* 固件版本
|
|
1474
|
+
*/
|
|
1475
|
+
FirmwareVersion: string;
|
|
1476
|
+
/**
|
|
1477
|
+
* 固件版本大小
|
|
1478
|
+
*/
|
|
1479
|
+
FileSize?: number;
|
|
1480
|
+
}
|
|
1481
|
+
/**
|
|
1482
|
+
* UpdateTopicPolicy返回参数结构体
|
|
1483
|
+
*/
|
|
1484
|
+
export interface UpdateTopicPolicyResponse {
|
|
1485
|
+
/**
|
|
1486
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1487
|
+
*/
|
|
1488
|
+
RequestId?: string;
|
|
1489
|
+
}
|
|
1490
|
+
/**
|
|
1491
|
+
* DescribeProductTask返回参数结构体
|
|
1492
|
+
*/
|
|
1493
|
+
export interface DescribeProductTaskResponse {
|
|
1494
|
+
/**
|
|
1495
|
+
* 产品任务详细信息
|
|
1496
|
+
*/
|
|
1497
|
+
TaskInfo: ProductTaskInfo;
|
|
1498
|
+
/**
|
|
1499
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1500
|
+
*/
|
|
1501
|
+
RequestId?: string;
|
|
1502
|
+
}
|
|
1503
|
+
/**
|
|
1504
|
+
* DescribeDevice返回参数结构体
|
|
1505
|
+
*/
|
|
1506
|
+
export interface DescribeDeviceResponse {
|
|
1507
|
+
/**
|
|
1508
|
+
* 设备名
|
|
1509
|
+
*/
|
|
1510
|
+
DeviceName: string;
|
|
1511
|
+
/**
|
|
1512
|
+
* 设备是否在线,0不在线,1在线
|
|
1513
|
+
*/
|
|
1514
|
+
Online: number;
|
|
1515
|
+
/**
|
|
1516
|
+
* 设备登录时间
|
|
1517
|
+
*/
|
|
1518
|
+
LoginTime: number;
|
|
1519
|
+
/**
|
|
1520
|
+
* 设备固件版本
|
|
1521
|
+
*/
|
|
1522
|
+
Version: string;
|
|
1523
|
+
/**
|
|
1524
|
+
* 设备最后更新时间
|
|
1525
|
+
*/
|
|
1526
|
+
LastUpdateTime: number;
|
|
1527
|
+
/**
|
|
1528
|
+
* 设备证书
|
|
1529
|
+
*/
|
|
1530
|
+
DeviceCert: string;
|
|
1531
|
+
/**
|
|
1532
|
+
* 设备密钥
|
|
1533
|
+
*/
|
|
1534
|
+
DevicePsk: string;
|
|
1535
|
+
/**
|
|
1536
|
+
* 设备属性
|
|
1537
|
+
*/
|
|
1538
|
+
Tags: Array<DeviceTag>;
|
|
1539
|
+
/**
|
|
1540
|
+
* 设备类型
|
|
1541
|
+
*/
|
|
1542
|
+
DeviceType: number;
|
|
1543
|
+
/**
|
|
1544
|
+
* 国际移动设备识别码 IMEI
|
|
1545
|
+
*/
|
|
1546
|
+
Imei: string;
|
|
1547
|
+
/**
|
|
1548
|
+
* 运营商类型
|
|
1549
|
+
*/
|
|
1550
|
+
Isp: number;
|
|
1551
|
+
/**
|
|
1552
|
+
* IP地址
|
|
1553
|
+
*/
|
|
1554
|
+
ConnIP: number;
|
|
1555
|
+
/**
|
|
1556
|
+
* NB IoT运营商处的DeviceID
|
|
1557
|
+
*/
|
|
1558
|
+
NbiotDeviceID: string;
|
|
1559
|
+
/**
|
|
1560
|
+
* Lora设备的dev eui
|
|
1561
|
+
*/
|
|
1562
|
+
LoraDevEui: string;
|
|
1563
|
+
/**
|
|
1564
|
+
* Lora设备的mote type
|
|
1565
|
+
*/
|
|
1566
|
+
LoraMoteType: number;
|
|
1567
|
+
/**
|
|
1568
|
+
* 设备的sdk日志等级
|
|
1569
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1570
|
+
*/
|
|
1571
|
+
LogLevel: number;
|
|
1572
|
+
/**
|
|
1573
|
+
* 首次上线时间
|
|
1574
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1575
|
+
*/
|
|
1576
|
+
FirstOnlineTime: number;
|
|
1577
|
+
/**
|
|
1578
|
+
* 最近下线时间
|
|
1579
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1580
|
+
*/
|
|
1581
|
+
LastOfflineTime: number;
|
|
1582
|
+
/**
|
|
1583
|
+
* 设备创建时间
|
|
1584
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1585
|
+
*/
|
|
1586
|
+
CreateTime: number;
|
|
1587
|
+
/**
|
|
1588
|
+
* 设备证书获取状态,0 未获取过设备密钥, 1 已获取过设备密钥
|
|
1589
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1590
|
+
*/
|
|
1591
|
+
CertState: number;
|
|
1592
|
+
/**
|
|
1593
|
+
* 设备启用状态
|
|
1594
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1595
|
+
*/
|
|
1596
|
+
EnableState: number;
|
|
1597
|
+
/**
|
|
1598
|
+
* 设备标签
|
|
1599
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1600
|
+
*/
|
|
1601
|
+
Labels: Array<DeviceLabel>;
|
|
1602
|
+
/**
|
|
1603
|
+
* MQTT客户端IP地址
|
|
1604
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1605
|
+
*/
|
|
1606
|
+
ClientIP: string;
|
|
1607
|
+
/**
|
|
1608
|
+
* 设备固件更新时间
|
|
1609
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1610
|
+
*/
|
|
1611
|
+
FirmwareUpdateTime: number;
|
|
1612
|
+
/**
|
|
1613
|
+
* 创建者账号ID
|
|
1614
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1615
|
+
*/
|
|
1616
|
+
CreateUserId: number;
|
|
1617
|
+
/**
|
|
1618
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1619
|
+
*/
|
|
1620
|
+
RequestId?: string;
|
|
1621
|
+
}
|
|
1622
|
+
/**
|
|
1623
|
+
* PublishBroadcastMessage请求参数结构体
|
|
1624
|
+
*/
|
|
1625
|
+
export interface PublishBroadcastMessageRequest {
|
|
1626
|
+
/**
|
|
1627
|
+
* 产品ID
|
|
1628
|
+
*/
|
|
1629
|
+
ProductId: string;
|
|
1630
|
+
/**
|
|
1631
|
+
* 消息内容
|
|
1632
|
+
*/
|
|
1633
|
+
Payload: string;
|
|
1634
|
+
/**
|
|
1635
|
+
* 消息质量等级
|
|
1636
|
+
*/
|
|
1637
|
+
Qos: number;
|
|
1638
|
+
/**
|
|
1639
|
+
* Payload内容的编码格式,取值为base64或空。base64表示云端将收到的请求数据进行base64解码后下发到设备,空则直接将原始内容下发到设备
|
|
1640
|
+
*/
|
|
1641
|
+
PayloadEncoding?: string;
|
|
1642
|
+
}
|
|
1643
|
+
/**
|
|
1644
|
+
* ListLog返回参数结构体
|
|
1645
|
+
*/
|
|
1646
|
+
export interface ListLogResponse {
|
|
1647
|
+
/**
|
|
1648
|
+
* 日志上下文
|
|
1649
|
+
*/
|
|
1650
|
+
Context: string;
|
|
1651
|
+
/**
|
|
1652
|
+
* 是否还有日志,如有仍有日志,下次查询的请求带上当前请求返回的Context
|
|
1653
|
+
*/
|
|
1654
|
+
Listover: boolean;
|
|
1655
|
+
/**
|
|
1656
|
+
* 日志列表
|
|
1657
|
+
*/
|
|
1658
|
+
Results: Array<CLSLogItem>;
|
|
1659
|
+
/**
|
|
1660
|
+
* 日志总条数
|
|
1661
|
+
*/
|
|
1662
|
+
TotalCount: number;
|
|
1663
|
+
/**
|
|
1664
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1665
|
+
*/
|
|
1666
|
+
RequestId?: string;
|
|
1667
|
+
}
|
|
1668
|
+
/**
|
|
1669
|
+
* RetryDeviceFirmwareTask请求参数结构体
|
|
1670
|
+
*/
|
|
1671
|
+
export interface RetryDeviceFirmwareTaskRequest {
|
|
1672
|
+
/**
|
|
1673
|
+
* 产品ID
|
|
1674
|
+
*/
|
|
1675
|
+
ProductId: string;
|
|
1676
|
+
/**
|
|
1677
|
+
* 设备名称
|
|
1678
|
+
*/
|
|
1679
|
+
DeviceName: string;
|
|
1680
|
+
/**
|
|
1681
|
+
* 固件版本号
|
|
1682
|
+
*/
|
|
1683
|
+
FirmwareVersion: string;
|
|
1684
|
+
/**
|
|
1685
|
+
* 固件升级任务ID
|
|
1686
|
+
*/
|
|
1687
|
+
TaskId: number;
|
|
1688
|
+
}
|
|
1689
|
+
/**
|
|
1690
|
+
* DescribeFirmwareTaskDevices返回参数结构体
|
|
1691
|
+
*/
|
|
1692
|
+
export interface DescribeFirmwareTaskDevicesResponse {
|
|
1693
|
+
/**
|
|
1694
|
+
* 固件升级任务的设备总数
|
|
1695
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1696
|
+
*/
|
|
1697
|
+
Total: number;
|
|
1698
|
+
/**
|
|
1699
|
+
* 固件升级任务的设备列表
|
|
1700
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1701
|
+
*/
|
|
1702
|
+
Devices: Array<DeviceUpdateStatus>;
|
|
1703
|
+
/**
|
|
1704
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1705
|
+
*/
|
|
1706
|
+
RequestId?: string;
|
|
1707
|
+
}
|
|
1708
|
+
/**
|
|
1709
|
+
* DescribeFirmwareTasks返回参数结构体
|
|
1710
|
+
*/
|
|
1711
|
+
export interface DescribeFirmwareTasksResponse {
|
|
1712
|
+
/**
|
|
1713
|
+
* 固件升级任务列表
|
|
1714
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1715
|
+
*/
|
|
1716
|
+
TaskInfos: Array<FirmwareTaskInfo>;
|
|
1717
|
+
/**
|
|
1718
|
+
* 固件升级任务总数
|
|
1719
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1720
|
+
*/
|
|
1721
|
+
Total: number;
|
|
1722
|
+
/**
|
|
1723
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1724
|
+
*/
|
|
1725
|
+
RequestId?: string;
|
|
1726
|
+
}
|
|
1727
|
+
/**
|
|
1728
|
+
* DescribePrivateCA请求参数结构体
|
|
1729
|
+
*/
|
|
1730
|
+
export interface DescribePrivateCARequest {
|
|
1731
|
+
/**
|
|
1732
|
+
* 私有化CA名称
|
|
1733
|
+
*/
|
|
1734
|
+
CertName: string;
|
|
1735
|
+
}
|
|
1736
|
+
/**
|
|
1737
|
+
* GetCOSURL返回参数结构体
|
|
1738
|
+
*/
|
|
1739
|
+
export interface GetCOSURLResponse {
|
|
1740
|
+
/**
|
|
1741
|
+
* 固件URL
|
|
1742
|
+
*/
|
|
1743
|
+
Url: string;
|
|
1744
|
+
/**
|
|
1745
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1746
|
+
*/
|
|
1747
|
+
RequestId?: string;
|
|
1748
|
+
}
|
|
1749
|
+
/**
|
|
1750
|
+
* UpdateDeviceAvailableState返回参数结构体
|
|
1751
|
+
*/
|
|
1752
|
+
export interface UpdateDeviceAvailableStateResponse {
|
|
1753
|
+
/**
|
|
1754
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1755
|
+
*/
|
|
1756
|
+
RequestId?: string;
|
|
1757
|
+
}
|
|
1758
|
+
/**
|
|
1759
|
+
* EditFirmware返回参数结构体
|
|
1760
|
+
*/
|
|
1761
|
+
export interface EditFirmwareResponse {
|
|
1762
|
+
/**
|
|
1763
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1764
|
+
*/
|
|
1765
|
+
RequestId?: string;
|
|
1766
|
+
}
|
|
1767
|
+
/**
|
|
1768
|
+
* ListSDKLog返回参数结构体
|
|
1769
|
+
*/
|
|
1770
|
+
export interface ListSDKLogResponse {
|
|
1771
|
+
/**
|
|
1772
|
+
* 日志检索上下文
|
|
1773
|
+
*/
|
|
1774
|
+
Context: string;
|
|
1775
|
+
/**
|
|
1776
|
+
* 是否还有日志,如有仍有日志,下次查询的请求带上当前请求返回的Context
|
|
1777
|
+
*/
|
|
1778
|
+
Listover: boolean;
|
|
1779
|
+
/**
|
|
1780
|
+
* 日志列表
|
|
1781
|
+
*/
|
|
1782
|
+
Results: Array<SDKLogItem>;
|
|
1783
|
+
/**
|
|
1784
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1785
|
+
*/
|
|
1786
|
+
RequestId?: string;
|
|
1787
|
+
}
|
|
1788
|
+
/**
|
|
1789
|
+
* UpdateDevicePSK请求参数结构体
|
|
1790
|
+
*/
|
|
1791
|
+
export interface UpdateDevicePSKRequest {
|
|
1792
|
+
/**
|
|
1793
|
+
* 产品名
|
|
1794
|
+
*/
|
|
1795
|
+
ProductId: string;
|
|
1796
|
+
/**
|
|
1797
|
+
* 设备名
|
|
1798
|
+
*/
|
|
1799
|
+
DeviceName: string;
|
|
1800
|
+
/**
|
|
1801
|
+
* 设备的psk
|
|
1802
|
+
*/
|
|
1803
|
+
Psk: string;
|
|
1804
|
+
}
|
|
1805
|
+
/**
|
|
1806
|
+
* DeleteProductPrivateCA请求参数结构体
|
|
1807
|
+
*/
|
|
1808
|
+
export interface DeleteProductPrivateCARequest {
|
|
1809
|
+
/**
|
|
1810
|
+
* 产品ID
|
|
1811
|
+
*/
|
|
1812
|
+
ProductId: string;
|
|
1813
|
+
}
|
|
1814
|
+
/**
|
|
1815
|
+
* UpdateDeviceAvailableState请求参数结构体
|
|
1816
|
+
*/
|
|
1817
|
+
export interface UpdateDeviceAvailableStateRequest {
|
|
1818
|
+
/**
|
|
1819
|
+
* 设备所属产品id
|
|
1820
|
+
*/
|
|
1821
|
+
ProductId: string;
|
|
1822
|
+
/**
|
|
1823
|
+
* 设备名称
|
|
1824
|
+
*/
|
|
1825
|
+
DeviceName: string;
|
|
1826
|
+
/**
|
|
1827
|
+
* 要设置的设备状态,1为启用,0为禁用
|
|
1828
|
+
*/
|
|
1829
|
+
EnableState: number;
|
|
1830
|
+
}
|
|
1831
|
+
/**
|
|
1832
|
+
* GetUserResourceInfo返回参数结构体
|
|
1833
|
+
*/
|
|
1834
|
+
export interface GetUserResourceInfoResponse {
|
|
1835
|
+
/**
|
|
1836
|
+
* 已使用的资源字节数
|
|
1837
|
+
*/
|
|
1838
|
+
UsedSize: number;
|
|
1839
|
+
/**
|
|
1840
|
+
* 可以使用资源的总大小
|
|
1841
|
+
*/
|
|
1842
|
+
Limit: number;
|
|
1843
|
+
/**
|
|
1844
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1845
|
+
*/
|
|
1846
|
+
RequestId?: string;
|
|
1847
|
+
}
|
|
1848
|
+
/**
|
|
1849
|
+
* DescribePrivateCABindedProducts返回参数结构体
|
|
1850
|
+
*/
|
|
1851
|
+
export interface DescribePrivateCABindedProductsResponse {
|
|
1852
|
+
/**
|
|
1853
|
+
* 私有CA绑定的产品列表
|
|
1854
|
+
*/
|
|
1855
|
+
Products: Array<BindProductInfo>;
|
|
1856
|
+
/**
|
|
1857
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1858
|
+
*/
|
|
1859
|
+
RequestId?: string;
|
|
1860
|
+
}
|
|
1861
|
+
/**
|
|
1862
|
+
* DeleteProduct返回参数结构体
|
|
1863
|
+
*/
|
|
1864
|
+
export interface DeleteProductResponse {
|
|
1865
|
+
/**
|
|
1866
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1867
|
+
*/
|
|
1868
|
+
RequestId?: string;
|
|
1869
|
+
}
|
|
1870
|
+
/**
|
|
1871
|
+
* ListLogPayload返回参数结构体
|
|
1872
|
+
*/
|
|
1873
|
+
export interface ListLogPayloadResponse {
|
|
1874
|
+
/**
|
|
1875
|
+
* 日志上下文
|
|
1876
|
+
*/
|
|
1877
|
+
Context: string;
|
|
1878
|
+
/**
|
|
1879
|
+
* 是否还有日志,如有仍有日志,下次查询的请求带上当前请求返回的Context
|
|
1880
|
+
*/
|
|
1881
|
+
Listover: boolean;
|
|
1882
|
+
/**
|
|
1883
|
+
* 日志列表
|
|
1884
|
+
*/
|
|
1885
|
+
Results: Array<PayloadLogItem>;
|
|
1886
|
+
/**
|
|
1887
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1888
|
+
*/
|
|
1889
|
+
RequestId?: string;
|
|
1890
|
+
}
|
|
1891
|
+
/**
|
|
1892
|
+
* SetProductsForbiddenStatus请求参数结构体
|
|
1893
|
+
*/
|
|
1894
|
+
export interface SetProductsForbiddenStatusRequest {
|
|
1895
|
+
/**
|
|
1896
|
+
* 要设置禁用状态的产品列表
|
|
1897
|
+
*/
|
|
1898
|
+
ProductId: Array<string>;
|
|
1899
|
+
/**
|
|
1900
|
+
* 0启用,1禁用
|
|
1901
|
+
*/
|
|
1902
|
+
Status: number;
|
|
1903
|
+
}
|
|
1904
|
+
/**
|
|
1905
|
+
* DownloadDeviceResource返回参数结构体
|
|
1906
|
+
*/
|
|
1907
|
+
export interface DownloadDeviceResourceResponse {
|
|
1908
|
+
/**
|
|
1909
|
+
* 设备资源的cos链接
|
|
1910
|
+
*/
|
|
1911
|
+
Url: string;
|
|
1912
|
+
/**
|
|
1913
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1914
|
+
*/
|
|
1915
|
+
RequestId?: string;
|
|
1916
|
+
}
|
|
1917
|
+
/**
|
|
1918
|
+
* 产品详细信息
|
|
1919
|
+
*/
|
|
1920
|
+
export interface ProductInfo {
|
|
1921
|
+
/**
|
|
1922
|
+
* 产品ID
|
|
1923
|
+
*/
|
|
1924
|
+
ProductId: string;
|
|
1925
|
+
/**
|
|
1926
|
+
* 产品名
|
|
1927
|
+
*/
|
|
1928
|
+
ProductName: string;
|
|
1929
|
+
/**
|
|
1930
|
+
* 产品元数据
|
|
1931
|
+
*/
|
|
1932
|
+
ProductMetadata: ProductMetadata;
|
|
1933
|
+
/**
|
|
1934
|
+
* 产品属性
|
|
1935
|
+
*/
|
|
1936
|
+
ProductProperties: ProductProperties;
|
|
1937
|
+
}
|
|
1938
|
+
/**
|
|
1939
|
+
* DescribeFirmwareTaskDistribution返回参数结构体
|
|
1940
|
+
*/
|
|
1941
|
+
export interface DescribeFirmwareTaskDistributionResponse {
|
|
1942
|
+
/**
|
|
1943
|
+
* 固件升级任务状态分布信息
|
|
1944
|
+
*/
|
|
1945
|
+
StatusInfos: Array<StatusStatistic>;
|
|
1946
|
+
/**
|
|
1947
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1948
|
+
*/
|
|
1949
|
+
RequestId?: string;
|
|
1950
|
+
}
|
|
1951
|
+
/**
|
|
1952
|
+
* PublishBroadcastMessage返回参数结构体
|
|
1953
|
+
*/
|
|
1954
|
+
export interface PublishBroadcastMessageResponse {
|
|
1955
|
+
/**
|
|
1956
|
+
* 广播消息任务ID
|
|
1957
|
+
*/
|
|
1958
|
+
TaskId: number;
|
|
1959
|
+
/**
|
|
1960
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1961
|
+
*/
|
|
1962
|
+
RequestId?: string;
|
|
1963
|
+
}
|
|
1964
|
+
/**
|
|
1965
|
+
* CreatePrivateCA请求参数结构体
|
|
1966
|
+
*/
|
|
1967
|
+
export interface CreatePrivateCARequest {
|
|
1968
|
+
/**
|
|
1969
|
+
* CA证书名称
|
|
1970
|
+
*/
|
|
1971
|
+
CertName: string;
|
|
1972
|
+
/**
|
|
1973
|
+
* CA证书内容
|
|
1974
|
+
*/
|
|
1975
|
+
CertText: string;
|
|
1976
|
+
/**
|
|
1977
|
+
* 校验CA证书的证书内容
|
|
1978
|
+
*/
|
|
1979
|
+
VerifyCertText: string;
|
|
1980
|
+
}
|
|
1981
|
+
/**
|
|
1982
|
+
* UpdateDevicePSK返回参数结构体
|
|
1983
|
+
*/
|
|
1984
|
+
export interface UpdateDevicePSKResponse {
|
|
1985
|
+
/**
|
|
1986
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1987
|
+
*/
|
|
1988
|
+
RequestId?: string;
|
|
1989
|
+
}
|
|
1990
|
+
/**
|
|
1991
|
+
* DescribeDevice请求参数结构体
|
|
1992
|
+
*/
|
|
1993
|
+
export interface DescribeDeviceRequest {
|
|
1994
|
+
/**
|
|
1995
|
+
* 产品ID
|
|
1996
|
+
*/
|
|
1997
|
+
ProductId: string;
|
|
1998
|
+
/**
|
|
1999
|
+
* 设备名
|
|
2000
|
+
*/
|
|
2001
|
+
DeviceName: string;
|
|
2002
|
+
}
|
|
2003
|
+
/**
|
|
2004
|
+
* CreateMultiDevicesTask返回参数结构体
|
|
2005
|
+
*/
|
|
2006
|
+
export interface CreateMultiDevicesTaskResponse {
|
|
2007
|
+
/**
|
|
2008
|
+
* 任务ID
|
|
2009
|
+
*/
|
|
2010
|
+
Id: number;
|
|
2011
|
+
/**
|
|
2012
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2013
|
+
*/
|
|
2014
|
+
RequestId?: string;
|
|
2015
|
+
}
|
|
2016
|
+
/**
|
|
2017
|
+
* DescribeProductResources返回参数结构体
|
|
2018
|
+
*/
|
|
2019
|
+
export interface DescribeProductResourcesResponse {
|
|
2020
|
+
/**
|
|
2021
|
+
* 资源总数
|
|
2022
|
+
*/
|
|
2023
|
+
TotalCount: number;
|
|
2024
|
+
/**
|
|
2025
|
+
* 资源详情
|
|
2026
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2027
|
+
*/
|
|
2028
|
+
Result: Array<ProductResourceInfo>;
|
|
2029
|
+
/**
|
|
2030
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2031
|
+
*/
|
|
2032
|
+
RequestId?: string;
|
|
2033
|
+
}
|
|
2034
|
+
/**
|
|
2035
|
+
* UpdateProductDynamicRegister请求参数结构体
|
|
2036
|
+
*/
|
|
2037
|
+
export interface UpdateProductDynamicRegisterRequest {
|
|
2038
|
+
/**
|
|
2039
|
+
* 产品Id
|
|
2040
|
+
*/
|
|
2041
|
+
ProductId: string;
|
|
2042
|
+
/**
|
|
2043
|
+
* 动态注册类型,0-关闭 1-预创建设备 2-自动创建设备
|
|
2044
|
+
*/
|
|
2045
|
+
RegisterType: number;
|
|
2046
|
+
/**
|
|
2047
|
+
* 动态注册设备上限
|
|
2048
|
+
*/
|
|
2049
|
+
RegisterLimit: number;
|
|
2050
|
+
}
|
|
2051
|
+
/**
|
|
2052
|
+
* CreateTopicPolicy请求参数结构体
|
|
2053
|
+
*/
|
|
2054
|
+
export interface CreateTopicPolicyRequest {
|
|
2055
|
+
/**
|
|
2056
|
+
* 产品自身ID
|
|
2057
|
+
*/
|
|
2058
|
+
ProductId: string;
|
|
2059
|
+
/**
|
|
2060
|
+
* Topic名称
|
|
2061
|
+
*/
|
|
2062
|
+
TopicName: string;
|
|
2063
|
+
/**
|
|
2064
|
+
* Topic权限,1发布,2订阅,3订阅和发布
|
|
2065
|
+
*/
|
|
2066
|
+
Privilege: number;
|
|
2067
|
+
/**
|
|
2068
|
+
* 代理订阅信息,网关产品为绑定的子产品创建topic时需要填写,内容为子产品的ID和设备信息。
|
|
2069
|
+
*/
|
|
2070
|
+
BrokerSubscribe?: BrokerSubscribe;
|
|
2071
|
+
}
|
|
2072
|
+
/**
|
|
2073
|
+
* DescribeProductResource请求参数结构体
|
|
2074
|
+
*/
|
|
2075
|
+
export interface DescribeProductResourceRequest {
|
|
2076
|
+
/**
|
|
2077
|
+
* 需要查看资源列表的产品 ID
|
|
2078
|
+
*/
|
|
2079
|
+
ProductID?: string;
|
|
2080
|
+
/**
|
|
2081
|
+
* 需要过滤的资源名称
|
|
2082
|
+
*/
|
|
2083
|
+
Name?: string;
|
|
2084
|
+
}
|
|
2085
|
+
/**
|
|
2086
|
+
* 产品级任务详细信息
|
|
2087
|
+
*/
|
|
2088
|
+
export interface ProductTaskInfo {
|
|
2089
|
+
/**
|
|
2090
|
+
* 任务ID
|
|
2091
|
+
*/
|
|
2092
|
+
Id: number;
|
|
2093
|
+
/**
|
|
2094
|
+
* 任务类型 0-批量创建设备类型
|
|
2095
|
+
*/
|
|
2096
|
+
Type: number;
|
|
2097
|
+
/**
|
|
2098
|
+
* 任务状态 0-创建中 1-待执行 2-执行中 3-执行失败 4-子任务部分失败 5-执行成功
|
|
2099
|
+
*/
|
|
2100
|
+
State: number;
|
|
2101
|
+
/**
|
|
2102
|
+
* 任务参数类型 cosfile-文件输入 random-随机生成
|
|
2103
|
+
*/
|
|
2104
|
+
ParametersType: string;
|
|
2105
|
+
/**
|
|
2106
|
+
* 任务参数
|
|
2107
|
+
*/
|
|
2108
|
+
Parameters: string;
|
|
2109
|
+
/**
|
|
2110
|
+
* 任务执行结果类型 cosfile-文件输出 errmsg-错误信息
|
|
2111
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2112
|
+
*/
|
|
2113
|
+
ResultType: string;
|
|
2114
|
+
/**
|
|
2115
|
+
* 任务执行结果
|
|
2116
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2117
|
+
*/
|
|
2118
|
+
Result: string;
|
|
2119
|
+
/**
|
|
2120
|
+
* 子任务总个数
|
|
2121
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2122
|
+
*/
|
|
2123
|
+
BatchCount: number;
|
|
2124
|
+
/**
|
|
2125
|
+
* 子任务已执行个数
|
|
2126
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2127
|
+
*/
|
|
2128
|
+
BatchOffset: number;
|
|
2129
|
+
/**
|
|
2130
|
+
* 任务创建时间
|
|
2131
|
+
*/
|
|
2132
|
+
CreateTime: number;
|
|
2133
|
+
/**
|
|
2134
|
+
* 任务更新时间
|
|
2135
|
+
*/
|
|
2136
|
+
UpdateTime: number;
|
|
2137
|
+
/**
|
|
2138
|
+
* 任务完成时间
|
|
2139
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2140
|
+
*/
|
|
2141
|
+
CompleteTime: number;
|
|
2142
|
+
}
|
|
2143
|
+
/**
|
|
2144
|
+
* ReplaceTopicRule请求参数结构体
|
|
2145
|
+
*/
|
|
2146
|
+
export interface ReplaceTopicRuleRequest {
|
|
2147
|
+
/**
|
|
2148
|
+
* 规则名称
|
|
2149
|
+
*/
|
|
2150
|
+
RuleName: string;
|
|
2151
|
+
/**
|
|
2152
|
+
* 替换的规则包体
|
|
2153
|
+
*/
|
|
2154
|
+
TopicRulePayload: TopicRulePayload;
|
|
2155
|
+
}
|
|
2156
|
+
/**
|
|
2157
|
+
* PublishRRPCMessage返回参数结构体
|
|
2158
|
+
*/
|
|
2159
|
+
export interface PublishRRPCMessageResponse {
|
|
2160
|
+
/**
|
|
2161
|
+
* RRPC消息ID
|
|
2162
|
+
*/
|
|
2163
|
+
MessageId: number;
|
|
2164
|
+
/**
|
|
2165
|
+
* 设备回复的消息内容,采用base64编码
|
|
2166
|
+
*/
|
|
2167
|
+
PayloadBase64: string;
|
|
2168
|
+
/**
|
|
2169
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2170
|
+
*/
|
|
2171
|
+
RequestId?: string;
|
|
2172
|
+
}
|
|
2173
|
+
/**
|
|
2174
|
+
* UpdateTopicPolicy请求参数结构体
|
|
2175
|
+
*/
|
|
2176
|
+
export interface UpdateTopicPolicyRequest {
|
|
2177
|
+
/**
|
|
2178
|
+
* 产品ID
|
|
2179
|
+
*/
|
|
2180
|
+
ProductId: string;
|
|
2181
|
+
/**
|
|
2182
|
+
* 更新前Topic名
|
|
2183
|
+
*/
|
|
2184
|
+
TopicName: string;
|
|
2185
|
+
/**
|
|
2186
|
+
* 更新后Topic名
|
|
2187
|
+
*/
|
|
2188
|
+
NewTopicName: string;
|
|
2189
|
+
/**
|
|
2190
|
+
* Topic权限
|
|
2191
|
+
*/
|
|
2192
|
+
Privilege: number;
|
|
2193
|
+
/**
|
|
2194
|
+
* 代理订阅信息
|
|
2195
|
+
*/
|
|
2196
|
+
BrokerSubscribe?: BrokerSubscribe;
|
|
2197
|
+
}
|
|
2198
|
+
/**
|
|
2199
|
+
* UpdatePrivateCA返回参数结构体
|
|
2200
|
+
*/
|
|
2201
|
+
export interface UpdatePrivateCAResponse {
|
|
2202
|
+
/**
|
|
2203
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2204
|
+
*/
|
|
2205
|
+
RequestId?: string;
|
|
2206
|
+
}
|
|
2207
|
+
/**
|
|
2208
|
+
* 设备属性
|
|
2209
|
+
*/
|
|
2210
|
+
export interface Attribute {
|
|
2211
|
+
/**
|
|
2212
|
+
* 属性列表
|
|
2213
|
+
*/
|
|
2214
|
+
Tags?: Array<DeviceTag>;
|
|
2215
|
+
}
|
|
2216
|
+
/**
|
|
2217
|
+
* DescribeDeviceResources返回参数结构体
|
|
2218
|
+
*/
|
|
2219
|
+
export interface DescribeDeviceResourcesResponse {
|
|
2220
|
+
/**
|
|
2221
|
+
* 资源总数
|
|
2222
|
+
*/
|
|
2223
|
+
TotalCount: number;
|
|
2224
|
+
/**
|
|
2225
|
+
* 资源列表
|
|
2226
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2227
|
+
*/
|
|
2228
|
+
Result: Array<DeviceResourceInfo>;
|
|
2229
|
+
/**
|
|
2230
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2231
|
+
*/
|
|
2232
|
+
RequestId?: string;
|
|
2233
|
+
}
|
|
2234
|
+
/**
|
|
2235
|
+
* UploadFirmware返回参数结构体
|
|
2236
|
+
*/
|
|
2237
|
+
export interface UploadFirmwareResponse {
|
|
2238
|
+
/**
|
|
2239
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2240
|
+
*/
|
|
2241
|
+
RequestId?: string;
|
|
2242
|
+
}
|
|
2243
|
+
/**
|
|
2244
|
+
* DeleteTopicRule请求参数结构体
|
|
2245
|
+
*/
|
|
2246
|
+
export interface DeleteTopicRuleRequest {
|
|
2247
|
+
/**
|
|
2248
|
+
* 规则名
|
|
2249
|
+
*/
|
|
2250
|
+
RuleName: string;
|
|
2251
|
+
}
|
|
2252
|
+
/**
|
|
2253
|
+
* ReplaceTopicRule返回参数结构体
|
|
2254
|
+
*/
|
|
2255
|
+
export interface ReplaceTopicRuleResponse {
|
|
2256
|
+
/**
|
|
2257
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2258
|
+
*/
|
|
2259
|
+
RequestId?: string;
|
|
2260
|
+
}
|
|
2261
|
+
/**
|
|
2262
|
+
* CancelDeviceFirmwareTask请求参数结构体
|
|
2263
|
+
*/
|
|
2264
|
+
export interface CancelDeviceFirmwareTaskRequest {
|
|
2265
|
+
/**
|
|
2266
|
+
* 产品ID
|
|
2267
|
+
*/
|
|
2268
|
+
ProductId: string;
|
|
2269
|
+
/**
|
|
2270
|
+
* 设备名称
|
|
2271
|
+
*/
|
|
2272
|
+
DeviceName: string;
|
|
2273
|
+
/**
|
|
2274
|
+
* 固件版本号
|
|
2275
|
+
*/
|
|
2276
|
+
FirmwareVersion: string;
|
|
2277
|
+
/**
|
|
2278
|
+
* 固件升级任务ID
|
|
2279
|
+
*/
|
|
2280
|
+
TaskId: number;
|
|
2281
|
+
}
|
|
2282
|
+
/**
|
|
2283
|
+
* DeleteDeviceResource请求参数结构体
|
|
2284
|
+
*/
|
|
2285
|
+
export interface DeleteDeviceResourceRequest {
|
|
2286
|
+
/**
|
|
2287
|
+
* 产品ID
|
|
2288
|
+
*/
|
|
2289
|
+
ProductID: string;
|
|
2290
|
+
/**
|
|
2291
|
+
* 资源名称
|
|
2292
|
+
*/
|
|
2293
|
+
Name: string;
|
|
2294
|
+
/**
|
|
2295
|
+
* 设备名称
|
|
2296
|
+
*/
|
|
2297
|
+
DeviceName: string;
|
|
2298
|
+
}
|
|
2299
|
+
/**
|
|
2300
|
+
* DescribeDeviceShadow请求参数结构体
|
|
2301
|
+
*/
|
|
2302
|
+
export interface DescribeDeviceShadowRequest {
|
|
2303
|
+
/**
|
|
2304
|
+
* 产品 ID
|
|
2305
|
+
*/
|
|
2306
|
+
ProductId: string;
|
|
2307
|
+
/**
|
|
2308
|
+
* 设备名称。命名规则:[a-zA-Z0-9:_-]{1,60}
|
|
2309
|
+
*/
|
|
2310
|
+
DeviceName: string;
|
|
2311
|
+
}
|
|
2312
|
+
/**
|
|
2313
|
+
* UpdateProductDynamicRegister返回参数结构体
|
|
2314
|
+
*/
|
|
2315
|
+
export interface UpdateProductDynamicRegisterResponse {
|
|
2316
|
+
/**
|
|
2317
|
+
* 动态注册类型,0-关闭 1-预创建设备 2-自动创建设备
|
|
2318
|
+
*/
|
|
2319
|
+
RegisterType: number;
|
|
2320
|
+
/**
|
|
2321
|
+
* 动态注册产品密钥
|
|
2322
|
+
*/
|
|
2323
|
+
ProductSecret: string;
|
|
2324
|
+
/**
|
|
2325
|
+
* 动态注册设备上限
|
|
2326
|
+
*/
|
|
2327
|
+
RegisterLimit: number;
|
|
2328
|
+
/**
|
|
2329
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2330
|
+
*/
|
|
2331
|
+
RequestId?: string;
|
|
2332
|
+
}
|
|
2333
|
+
/**
|
|
2334
|
+
* UnbindDevices返回参数结构体
|
|
2335
|
+
*/
|
|
2336
|
+
export interface UnbindDevicesResponse {
|
|
2337
|
+
/**
|
|
2338
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2339
|
+
*/
|
|
2340
|
+
RequestId?: string;
|
|
2341
|
+
}
|
|
2342
|
+
/**
|
|
2343
|
+
* DescribePrivateCABindedProducts请求参数结构体
|
|
2344
|
+
*/
|
|
2345
|
+
export interface DescribePrivateCABindedProductsRequest {
|
|
2346
|
+
/**
|
|
2347
|
+
* 证书名称
|
|
2348
|
+
*/
|
|
2349
|
+
CertName: string;
|
|
2350
|
+
/**
|
|
2351
|
+
* 查询偏移量
|
|
2352
|
+
*/
|
|
2353
|
+
Offset: number;
|
|
2354
|
+
/**
|
|
2355
|
+
* 查询的数据量,默认为20, 最大为200
|
|
2356
|
+
*/
|
|
2357
|
+
Limit: number;
|
|
2358
|
+
}
|
|
2359
|
+
/**
|
|
2360
|
+
* DescribePrivateCAs返回参数结构体
|
|
2361
|
+
*/
|
|
2362
|
+
export interface DescribePrivateCAsResponse {
|
|
2363
|
+
/**
|
|
2364
|
+
* 私有CA证书列表
|
|
2365
|
+
*/
|
|
2366
|
+
CAs: Array<CertInfo>;
|
|
2367
|
+
/**
|
|
2368
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2369
|
+
*/
|
|
2370
|
+
RequestId?: string;
|
|
2371
|
+
}
|
|
2372
|
+
/**
|
|
2373
|
+
* 设备详细信息
|
|
2374
|
+
*/
|
|
2375
|
+
export interface DeviceInfo {
|
|
2376
|
+
/**
|
|
2377
|
+
* 设备名
|
|
2378
|
+
*/
|
|
2379
|
+
DeviceName: string;
|
|
2380
|
+
/**
|
|
2381
|
+
* 设备是否在线,0不在线,1在线
|
|
2382
|
+
*/
|
|
2383
|
+
Online: number;
|
|
2384
|
+
/**
|
|
2385
|
+
* 设备登录时间
|
|
2386
|
+
*/
|
|
2387
|
+
LoginTime: number;
|
|
2388
|
+
/**
|
|
2389
|
+
* 设备版本
|
|
2390
|
+
*/
|
|
2391
|
+
Version: string;
|
|
2392
|
+
/**
|
|
2393
|
+
* 设备证书,证书加密的设备返回
|
|
2394
|
+
*/
|
|
2395
|
+
DeviceCert: string;
|
|
2396
|
+
/**
|
|
2397
|
+
* 设备密钥,密钥加密的设备返回
|
|
2398
|
+
*/
|
|
2399
|
+
DevicePsk: string;
|
|
2400
|
+
/**
|
|
2401
|
+
* 设备属性
|
|
2402
|
+
*/
|
|
2403
|
+
Tags: Array<DeviceTag>;
|
|
2404
|
+
/**
|
|
2405
|
+
* 设备类型
|
|
2406
|
+
*/
|
|
2407
|
+
DeviceType: number;
|
|
2408
|
+
/**
|
|
2409
|
+
* 国际移动设备识别码 IMEI
|
|
2410
|
+
*/
|
|
2411
|
+
Imei: string;
|
|
2412
|
+
/**
|
|
2413
|
+
* 运营商类型
|
|
2414
|
+
*/
|
|
2415
|
+
Isp: number;
|
|
2416
|
+
/**
|
|
2417
|
+
* NB IOT运营商处的DeviceID
|
|
2418
|
+
*/
|
|
2419
|
+
NbiotDeviceID: string;
|
|
2420
|
+
/**
|
|
2421
|
+
* IP地址
|
|
2422
|
+
*/
|
|
2423
|
+
ConnIP: number;
|
|
2424
|
+
/**
|
|
2425
|
+
* 设备最后更新时间
|
|
2426
|
+
*/
|
|
2427
|
+
LastUpdateTime: number;
|
|
2428
|
+
/**
|
|
2429
|
+
* LoRa设备的dev eui
|
|
2430
|
+
*/
|
|
2431
|
+
LoraDevEui: string;
|
|
2432
|
+
/**
|
|
2433
|
+
* LoRa设备的Mote type
|
|
2434
|
+
*/
|
|
2435
|
+
LoraMoteType: number;
|
|
2436
|
+
/**
|
|
2437
|
+
* 首次上线时间
|
|
2438
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2439
|
+
*/
|
|
2440
|
+
FirstOnlineTime: number;
|
|
2441
|
+
/**
|
|
2442
|
+
* 最近下线时间
|
|
2443
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2444
|
+
*/
|
|
2445
|
+
LastOfflineTime: number;
|
|
2446
|
+
/**
|
|
2447
|
+
* 设备创建时间
|
|
2448
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2449
|
+
*/
|
|
2450
|
+
CreateTime: number;
|
|
2451
|
+
/**
|
|
2452
|
+
* 设备日志级别
|
|
2453
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2454
|
+
*/
|
|
2455
|
+
LogLevel: number;
|
|
2456
|
+
/**
|
|
2457
|
+
* 设备证书获取状态, 1 已获取过设备密钥,0 未获取过设备密钥
|
|
2458
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2459
|
+
*/
|
|
2460
|
+
CertState: number;
|
|
2461
|
+
/**
|
|
2462
|
+
* 设备可用状态,0禁用,1启用
|
|
2463
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2464
|
+
*/
|
|
2465
|
+
EnableState: number;
|
|
2466
|
+
/**
|
|
2467
|
+
* 设备标签
|
|
2468
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2469
|
+
*/
|
|
2470
|
+
Labels: Array<DeviceLabel>;
|
|
2471
|
+
/**
|
|
2472
|
+
* MQTT客户端IP地址
|
|
2473
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2474
|
+
*/
|
|
2475
|
+
ClientIP: string;
|
|
2476
|
+
/**
|
|
2477
|
+
* ota最后更新时间
|
|
2478
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2479
|
+
*/
|
|
2480
|
+
FirmwareUpdateTime: number;
|
|
2481
|
+
}
|
|
2482
|
+
/**
|
|
2483
|
+
* CreateTaskFileUrl请求参数结构体
|
|
2484
|
+
*/
|
|
2485
|
+
export interface CreateTaskFileUrlRequest {
|
|
2486
|
+
/**
|
|
2487
|
+
* 产品ID
|
|
2488
|
+
*/
|
|
2489
|
+
ProductId: string;
|
|
2490
|
+
}
|
|
2491
|
+
/**
|
|
2492
|
+
* UpdateDeviceShadow返回参数结构体
|
|
2493
|
+
*/
|
|
2494
|
+
export interface UpdateDeviceShadowResponse {
|
|
2495
|
+
/**
|
|
2496
|
+
* 设备影子数据,JSON字符串格式
|
|
2497
|
+
*/
|
|
2498
|
+
Data: string;
|
|
2499
|
+
/**
|
|
2500
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2501
|
+
*/
|
|
2502
|
+
RequestId?: string;
|
|
2503
|
+
}
|
|
2504
|
+
/**
|
|
2505
|
+
* BatchUpdateFirmware请求参数结构体
|
|
2506
|
+
*/
|
|
2507
|
+
export interface BatchUpdateFirmwareRequest {
|
|
2508
|
+
/**
|
|
2509
|
+
* 产品ID
|
|
2510
|
+
*/
|
|
2511
|
+
ProductId: string;
|
|
2512
|
+
/**
|
|
2513
|
+
* 固件新版本号
|
|
2514
|
+
*/
|
|
2515
|
+
FirmwareVersion: string;
|
|
2516
|
+
/**
|
|
2517
|
+
* 固件原版本号,根据文件列表升级固件不需要填写此参数
|
|
2518
|
+
*/
|
|
2519
|
+
FirmwareOriVersion?: string;
|
|
2520
|
+
/**
|
|
2521
|
+
* 升级方式,0 静默升级 1 用户确认升级。 不填默认为静默升级方式
|
|
2522
|
+
*/
|
|
2523
|
+
UpgradeMethod?: number;
|
|
2524
|
+
/**
|
|
2525
|
+
* 设备列表文件名称,根据文件列表升级固件需要填写此参数
|
|
2526
|
+
*/
|
|
2527
|
+
FileName?: string;
|
|
2528
|
+
/**
|
|
2529
|
+
* 设备列表的文件md5值
|
|
2530
|
+
*/
|
|
2531
|
+
FileMd5?: string;
|
|
2532
|
+
/**
|
|
2533
|
+
* 设备列表的文件大小值
|
|
2534
|
+
*/
|
|
2535
|
+
FileSize?: number;
|
|
2536
|
+
/**
|
|
2537
|
+
* 需要升级的设备名称列表
|
|
2538
|
+
*/
|
|
2539
|
+
DeviceNames?: Array<string>;
|
|
2540
|
+
/**
|
|
2541
|
+
* 固件升级任务,默认超时时间。 最小取值60秒,最大为3600秒
|
|
2542
|
+
*/
|
|
2543
|
+
TimeoutInterval?: number;
|
|
2544
|
+
}
|
|
2545
|
+
/**
|
|
2546
|
+
* X509证书信息
|
|
2547
|
+
*/
|
|
2548
|
+
export interface CertInfo {
|
|
2549
|
+
/**
|
|
2550
|
+
* 证书名称
|
|
2551
|
+
*/
|
|
2552
|
+
CertName: string;
|
|
2553
|
+
/**
|
|
2554
|
+
* 证书的序列号,16进制编码
|
|
2555
|
+
*/
|
|
2556
|
+
CertSN: string;
|
|
2557
|
+
/**
|
|
2558
|
+
* 证书颁发着名称
|
|
2559
|
+
*/
|
|
2560
|
+
IssuerName: string;
|
|
2561
|
+
/**
|
|
2562
|
+
* 证书主题
|
|
2563
|
+
*/
|
|
2564
|
+
Subject: string;
|
|
2565
|
+
/**
|
|
2566
|
+
* 证书创建时间,秒级时间戳
|
|
2567
|
+
*/
|
|
2568
|
+
CreateTime: number;
|
|
2569
|
+
/**
|
|
2570
|
+
* 证书生效时间,秒级时间戳
|
|
2571
|
+
*/
|
|
2572
|
+
EffectiveTime: number;
|
|
2573
|
+
/**
|
|
2574
|
+
* 证书失效时间,秒级时间戳
|
|
2575
|
+
*/
|
|
2576
|
+
ExpireTime: number;
|
|
2577
|
+
/**
|
|
2578
|
+
* X509证书内容
|
|
2579
|
+
*/
|
|
2580
|
+
CertText: string;
|
|
2581
|
+
}
|
|
2582
|
+
/**
|
|
2583
|
+
* GetUserResourceInfo请求参数结构体
|
|
2584
|
+
*/
|
|
2585
|
+
export declare type GetUserResourceInfoRequest = null;
|
|
2586
|
+
/**
|
|
2587
|
+
* 设备属性
|
|
2588
|
+
*/
|
|
2589
|
+
export interface DeviceTag {
|
|
2590
|
+
/**
|
|
2591
|
+
* 属性名称
|
|
2592
|
+
*/
|
|
2593
|
+
Tag: string;
|
|
2594
|
+
/**
|
|
2595
|
+
* 属性值的类型,1 int,2 string
|
|
2596
|
+
*/
|
|
2597
|
+
Type: number;
|
|
2598
|
+
/**
|
|
2599
|
+
* 属性的值
|
|
2600
|
+
*/
|
|
2601
|
+
Value: string;
|
|
2602
|
+
/**
|
|
2603
|
+
* 属性描述名称
|
|
2604
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2605
|
+
*/
|
|
2606
|
+
Name?: string;
|
|
2607
|
+
}
|
|
2608
|
+
/**
|
|
2609
|
+
* ListLog请求参数结构体
|
|
2610
|
+
*/
|
|
2611
|
+
export interface ListLogRequest {
|
|
2612
|
+
/**
|
|
2613
|
+
* 日志开始时间,毫秒级时间戳
|
|
2614
|
+
*/
|
|
2615
|
+
MinTime: number;
|
|
2616
|
+
/**
|
|
2617
|
+
* 日志结束时间,毫秒级时间戳
|
|
2618
|
+
*/
|
|
2619
|
+
MaxTime: number;
|
|
2620
|
+
/**
|
|
2621
|
+
* 查询关键字,可以同时支持键值查询和文本查询,例如,查询某key的值为value,并且包含某word的日志,该参数为:key:value word。键值或文本可以包含多个,以空格隔开。其中可以索引的key包括:requestid、productid、devicename、scene、content。
|
|
2622
|
+
一个典型的查询示例:productid:ABCDE12345 devicename:test scene:SHADOW content:Device%20connect publish
|
|
2623
|
+
*/
|
|
2624
|
+
Keywords?: string;
|
|
2625
|
+
/**
|
|
2626
|
+
* 日志检索上下文
|
|
2627
|
+
*/
|
|
2628
|
+
Context?: string;
|
|
2629
|
+
/**
|
|
2630
|
+
* 查询条数
|
|
2631
|
+
*/
|
|
2632
|
+
MaxNum?: number;
|
|
2633
|
+
}
|
|
2634
|
+
/**
|
|
2635
|
+
* 产品元数据
|
|
2636
|
+
*/
|
|
2637
|
+
export interface ProductMetadata {
|
|
2638
|
+
/**
|
|
2639
|
+
* 产品创建时间
|
|
2640
|
+
*/
|
|
2641
|
+
CreationDate: number;
|
|
2642
|
+
}
|
|
2643
|
+
/**
|
|
2644
|
+
* DescribeProduct返回参数结构体
|
|
2645
|
+
*/
|
|
2646
|
+
export interface DescribeProductResponse {
|
|
2647
|
+
/**
|
|
2648
|
+
* 产品ID
|
|
2649
|
+
*/
|
|
2650
|
+
ProductId: string;
|
|
2651
|
+
/**
|
|
2652
|
+
* 产品名
|
|
2653
|
+
*/
|
|
2654
|
+
ProductName: string;
|
|
2655
|
+
/**
|
|
2656
|
+
* 产品元数据
|
|
2657
|
+
*/
|
|
2658
|
+
ProductMetadata: ProductMetadata;
|
|
2659
|
+
/**
|
|
2660
|
+
* 产品属性
|
|
2661
|
+
*/
|
|
2662
|
+
ProductProperties: ProductProperties;
|
|
2663
|
+
/**
|
|
2664
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2665
|
+
*/
|
|
2666
|
+
RequestId?: string;
|
|
2667
|
+
}
|
|
2668
|
+
/**
|
|
2669
|
+
* DescribeGatewayBindDevices请求参数结构体
|
|
2670
|
+
*/
|
|
2671
|
+
export interface DescribeGatewayBindDevicesRequest {
|
|
2672
|
+
/**
|
|
2673
|
+
* 网关设备的产品ID
|
|
2674
|
+
*/
|
|
2675
|
+
GatewayProductId: string;
|
|
2676
|
+
/**
|
|
2677
|
+
* 网关设备的设备名
|
|
2678
|
+
*/
|
|
2679
|
+
GatewayDeviceName: string;
|
|
2680
|
+
/**
|
|
2681
|
+
* 偏移量,Offset从0开始
|
|
2682
|
+
*/
|
|
2683
|
+
Offset: number;
|
|
2684
|
+
/**
|
|
2685
|
+
* 分页的页大小
|
|
2686
|
+
*/
|
|
2687
|
+
Limit: number;
|
|
2688
|
+
/**
|
|
2689
|
+
* LoRa产品的ID
|
|
2690
|
+
*/
|
|
2691
|
+
ProductId?: string;
|
|
2692
|
+
}
|
|
2693
|
+
/**
|
|
2694
|
+
* SDK日志项
|
|
2695
|
+
*/
|
|
2696
|
+
export interface SDKLogItem {
|
|
2697
|
+
/**
|
|
2698
|
+
* 产品ID
|
|
2699
|
+
*/
|
|
2700
|
+
ProductId: string;
|
|
2701
|
+
/**
|
|
2702
|
+
* 设备名称
|
|
2703
|
+
*/
|
|
2704
|
+
DeviceName: string;
|
|
2705
|
+
/**
|
|
2706
|
+
* 日志等级
|
|
2707
|
+
*/
|
|
2708
|
+
Level: string;
|
|
2709
|
+
/**
|
|
2710
|
+
* 日志时间
|
|
2711
|
+
*/
|
|
2712
|
+
DateTime: string;
|
|
2713
|
+
/**
|
|
2714
|
+
* 日志内容
|
|
2715
|
+
*/
|
|
2716
|
+
Content: string;
|
|
2717
|
+
}
|
|
2718
|
+
/**
|
|
2719
|
+
* PublishMessage返回参数结构体
|
|
2720
|
+
*/
|
|
2721
|
+
export interface PublishMessageResponse {
|
|
2722
|
+
/**
|
|
2723
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2724
|
+
*/
|
|
2725
|
+
RequestId?: string;
|
|
2726
|
+
}
|
|
2727
|
+
/**
|
|
2728
|
+
* DescribePrivateCAs请求参数结构体
|
|
2729
|
+
*/
|
|
2730
|
+
export declare type DescribePrivateCAsRequest = null;
|
|
2731
|
+
/**
|
|
2732
|
+
* BindDevices返回参数结构体
|
|
2733
|
+
*/
|
|
2734
|
+
export interface BindDevicesResponse {
|
|
2735
|
+
/**
|
|
2736
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2737
|
+
*/
|
|
2738
|
+
RequestId?: string;
|
|
2739
|
+
}
|
|
2740
|
+
/**
|
|
2741
|
+
* 重置设备状态结果
|
|
2742
|
+
*/
|
|
2743
|
+
export interface ResetDeviceResult {
|
|
2744
|
+
/**
|
|
2745
|
+
* 设备名
|
|
2746
|
+
*/
|
|
2747
|
+
DeviceName: string;
|
|
2748
|
+
/**
|
|
2749
|
+
* 是否成功
|
|
2750
|
+
*/
|
|
2751
|
+
Success: boolean;
|
|
2752
|
+
/**
|
|
2753
|
+
* 失败原因
|
|
2754
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2755
|
+
*/
|
|
2756
|
+
Reason: string;
|
|
2757
|
+
}
|
|
2758
|
+
/**
|
|
2759
|
+
* 搜索关键词
|
|
2760
|
+
*/
|
|
2761
|
+
export interface SearchKeyword {
|
|
2762
|
+
/**
|
|
2763
|
+
* 搜索条件的Key
|
|
2764
|
+
*/
|
|
2765
|
+
Key: string;
|
|
2766
|
+
/**
|
|
2767
|
+
* 搜索条件的值
|
|
2768
|
+
*/
|
|
2769
|
+
Value?: string;
|
|
2770
|
+
}
|
|
2771
|
+
/**
|
|
2772
|
+
* DescribeDevices请求参数结构体
|
|
2773
|
+
*/
|
|
2774
|
+
export interface DescribeDevicesRequest {
|
|
2775
|
+
/**
|
|
2776
|
+
* 需要查看设备列表的产品 ID
|
|
2777
|
+
*/
|
|
2778
|
+
ProductId: string;
|
|
2779
|
+
/**
|
|
2780
|
+
* 偏移量,Offset从0开始
|
|
2781
|
+
*/
|
|
2782
|
+
Offset: number;
|
|
2783
|
+
/**
|
|
2784
|
+
* 分页的大小,数值范围 10-250
|
|
2785
|
+
*/
|
|
2786
|
+
Limit: number;
|
|
2787
|
+
/**
|
|
2788
|
+
* 设备固件版本号,若不带此参数会返回所有固件版本的设备。传"None-FirmwareVersion"查询无版本号的设备
|
|
2789
|
+
*/
|
|
2790
|
+
FirmwareVersion?: string;
|
|
2791
|
+
/**
|
|
2792
|
+
* 需要过滤的设备名称
|
|
2793
|
+
*/
|
|
2794
|
+
DeviceName?: string;
|
|
2795
|
+
/**
|
|
2796
|
+
* 设备是否启用,0禁用状态1启用状态,默认不区分
|
|
2797
|
+
*/
|
|
2798
|
+
EnableState?: number;
|
|
2799
|
+
}
|
|
2800
|
+
/**
|
|
2801
|
+
* DescribeDeviceClientKey返回参数结构体
|
|
2802
|
+
*/
|
|
2803
|
+
export interface DescribeDeviceClientKeyResponse {
|
|
2804
|
+
/**
|
|
2805
|
+
* 设备的私钥
|
|
2806
|
+
*/
|
|
2807
|
+
ClientKey: string;
|
|
2808
|
+
/**
|
|
2809
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2810
|
+
*/
|
|
2811
|
+
RequestId?: string;
|
|
2812
|
+
}
|
|
2813
|
+
/**
|
|
2814
|
+
* DescribePrivateCA返回参数结构体
|
|
2815
|
+
*/
|
|
2816
|
+
export interface DescribePrivateCAResponse {
|
|
2817
|
+
/**
|
|
2818
|
+
* 私有化CA详情
|
|
2819
|
+
*/
|
|
2820
|
+
CA: CertInfo;
|
|
2821
|
+
/**
|
|
2822
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2823
|
+
*/
|
|
2824
|
+
RequestId?: string;
|
|
2825
|
+
}
|
|
2826
|
+
/**
|
|
2827
|
+
* UploadFirmware请求参数结构体
|
|
2828
|
+
*/
|
|
2829
|
+
export interface UploadFirmwareRequest {
|
|
2830
|
+
/**
|
|
2831
|
+
* 产品ID
|
|
2832
|
+
*/
|
|
2833
|
+
ProductId: string;
|
|
2834
|
+
/**
|
|
2835
|
+
* 固件版本号
|
|
2836
|
+
*/
|
|
2837
|
+
FirmwareVersion: string;
|
|
2838
|
+
/**
|
|
2839
|
+
* 固件的MD5值
|
|
2840
|
+
*/
|
|
2841
|
+
Md5sum: string;
|
|
2842
|
+
/**
|
|
2843
|
+
* 固件的大小
|
|
2844
|
+
*/
|
|
2845
|
+
FileSize: number;
|
|
2846
|
+
/**
|
|
2847
|
+
* 固件名称
|
|
2848
|
+
*/
|
|
2849
|
+
FirmwareName?: string;
|
|
2850
|
+
/**
|
|
2851
|
+
* 固件描述
|
|
2852
|
+
*/
|
|
2853
|
+
FirmwareDescription?: string;
|
|
2854
|
+
}
|
|
2855
|
+
/**
|
|
2856
|
+
* UpdateDeviceLogLevel返回参数结构体
|
|
2857
|
+
*/
|
|
2858
|
+
export interface UpdateDeviceLogLevelResponse {
|
|
2859
|
+
/**
|
|
2860
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2861
|
+
*/
|
|
2862
|
+
RequestId?: string;
|
|
2863
|
+
}
|
|
2864
|
+
/**
|
|
2865
|
+
* DisableTopicRule请求参数结构体
|
|
2866
|
+
*/
|
|
2867
|
+
export interface DisableTopicRuleRequest {
|
|
2868
|
+
/**
|
|
2869
|
+
* 规则名称
|
|
2870
|
+
*/
|
|
2871
|
+
RuleName: string;
|
|
2872
|
+
}
|
|
2873
|
+
/**
|
|
2874
|
+
* ResetDeviceState返回参数结构体
|
|
2875
|
+
*/
|
|
2876
|
+
export interface ResetDeviceStateResponse {
|
|
2877
|
+
/**
|
|
2878
|
+
* 批量重置设备成功数
|
|
2879
|
+
*/
|
|
2880
|
+
SuccessCount: number;
|
|
2881
|
+
/**
|
|
2882
|
+
* 批量重置设备结果
|
|
2883
|
+
*/
|
|
2884
|
+
ResetDeviceResults: Array<ResetDeviceResult>;
|
|
2885
|
+
/**
|
|
2886
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2887
|
+
*/
|
|
2888
|
+
RequestId?: string;
|
|
2889
|
+
}
|
|
2890
|
+
/**
|
|
2891
|
+
* 固件升级任务信息
|
|
2892
|
+
*/
|
|
2893
|
+
export interface FirmwareTaskInfo {
|
|
2894
|
+
/**
|
|
2895
|
+
* 任务ID
|
|
2896
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2897
|
+
*/
|
|
2898
|
+
TaskId: number;
|
|
2899
|
+
/**
|
|
2900
|
+
* 任务状态
|
|
2901
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2902
|
+
*/
|
|
2903
|
+
Status: number;
|
|
2904
|
+
/**
|
|
2905
|
+
* 任务类型
|
|
2906
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2907
|
+
*/
|
|
2908
|
+
Type: number;
|
|
2909
|
+
/**
|
|
2910
|
+
* 任务创建时间
|
|
2911
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2912
|
+
*/
|
|
2913
|
+
CreateTime: number;
|
|
2914
|
+
}
|
|
2915
|
+
/**
|
|
2916
|
+
* CreateTopicRule返回参数结构体
|
|
2917
|
+
*/
|
|
2918
|
+
export interface CreateTopicRuleResponse {
|
|
2919
|
+
/**
|
|
2920
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2921
|
+
*/
|
|
2922
|
+
RequestId?: string;
|
|
2923
|
+
}
|
|
2924
|
+
/**
|
|
2925
|
+
* ListLogPayload请求参数结构体
|
|
2926
|
+
*/
|
|
2927
|
+
export interface ListLogPayloadRequest {
|
|
2928
|
+
/**
|
|
2929
|
+
* 日志开始时间,毫秒级时间戳
|
|
2930
|
+
*/
|
|
2931
|
+
MinTime: number;
|
|
2932
|
+
/**
|
|
2933
|
+
* 日志结束时间,毫秒级时间戳
|
|
2934
|
+
*/
|
|
2935
|
+
MaxTime: number;
|
|
2936
|
+
/**
|
|
2937
|
+
* 查询关键字,可以同时支持键值查询和文本查询,例如,查询某key的值为value,并且包含某word的日志,该参数为:key:value word。键值或文本可以包含多个,以空格隔开。其中可以索引的key比如:RequestID、ProductID、DeviceName等。
|
|
2938
|
+
一个典型的查询示例:ProductID:ABCDE12345 DeviceName:test publish
|
|
2939
|
+
*/
|
|
2940
|
+
Keywords: string;
|
|
2941
|
+
/**
|
|
2942
|
+
* 日志检索上下文
|
|
2943
|
+
*/
|
|
2944
|
+
Context?: string;
|
|
2945
|
+
/**
|
|
2946
|
+
* 日志最大条数
|
|
2947
|
+
*/
|
|
2948
|
+
MaxNum?: number;
|
|
2949
|
+
}
|
|
2950
|
+
/**
|
|
2951
|
+
* CreateTopicRule请求参数结构体
|
|
2952
|
+
*/
|
|
2953
|
+
export interface CreateTopicRuleRequest {
|
|
2954
|
+
/**
|
|
2955
|
+
* 规则名称
|
|
2956
|
+
*/
|
|
2957
|
+
RuleName: string;
|
|
2958
|
+
/**
|
|
2959
|
+
* 规则内容
|
|
2960
|
+
*/
|
|
2961
|
+
TopicRulePayload: TopicRulePayload;
|
|
2962
|
+
}
|
|
2963
|
+
/**
|
|
2964
|
+
* DescribeResourceTasks返回参数结构体
|
|
2965
|
+
*/
|
|
2966
|
+
export interface DescribeResourceTasksResponse {
|
|
2967
|
+
/**
|
|
2968
|
+
* 资源任务列表
|
|
2969
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2970
|
+
*/
|
|
2971
|
+
TaskInfos: Array<FirmwareTaskInfo>;
|
|
2972
|
+
/**
|
|
2973
|
+
* 资源任务总数
|
|
2974
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2975
|
+
*/
|
|
2976
|
+
Total: number;
|
|
2977
|
+
/**
|
|
2978
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2979
|
+
*/
|
|
2980
|
+
RequestId?: string;
|
|
2981
|
+
}
|
|
2982
|
+
/**
|
|
2983
|
+
* DescribeFirmwareTaskStatistics请求参数结构体
|
|
2984
|
+
*/
|
|
2985
|
+
export interface DescribeFirmwareTaskStatisticsRequest {
|
|
2986
|
+
/**
|
|
2987
|
+
* 产品ID
|
|
2988
|
+
*/
|
|
2989
|
+
ProductId: string;
|
|
2990
|
+
/**
|
|
2991
|
+
* 固件版本号
|
|
2992
|
+
*/
|
|
2993
|
+
FirmwareVersion: string;
|
|
2994
|
+
}
|
|
2995
|
+
/**
|
|
2996
|
+
* DeleteDevice返回参数结构体
|
|
2997
|
+
*/
|
|
2998
|
+
export interface DeleteDeviceResponse {
|
|
2999
|
+
/**
|
|
3000
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3001
|
+
*/
|
|
3002
|
+
RequestId?: string;
|
|
3003
|
+
}
|
|
3004
|
+
/**
|
|
3005
|
+
* DeletePrivateCA请求参数结构体
|
|
3006
|
+
*/
|
|
3007
|
+
export interface DeletePrivateCARequest {
|
|
3008
|
+
/**
|
|
3009
|
+
* 私有CA证书名称
|
|
3010
|
+
*/
|
|
3011
|
+
CertName: string;
|
|
3012
|
+
}
|
|
3013
|
+
/**
|
|
3014
|
+
* CreateTaskFileUrl返回参数结构体
|
|
3015
|
+
*/
|
|
3016
|
+
export interface CreateTaskFileUrlResponse {
|
|
3017
|
+
/**
|
|
3018
|
+
* 任务文件上传链接
|
|
3019
|
+
*/
|
|
3020
|
+
Url: string;
|
|
3021
|
+
/**
|
|
3022
|
+
* 任务文件名
|
|
3023
|
+
*/
|
|
3024
|
+
FileName: string;
|
|
3025
|
+
/**
|
|
3026
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3027
|
+
*/
|
|
3028
|
+
RequestId?: string;
|
|
3029
|
+
}
|
|
3030
|
+
/**
|
|
3031
|
+
* DescribeProductTasks返回参数结构体
|
|
3032
|
+
*/
|
|
3033
|
+
export interface DescribeProductTasksResponse {
|
|
3034
|
+
/**
|
|
3035
|
+
* 符合条件的任务总个数
|
|
3036
|
+
*/
|
|
3037
|
+
TotalCount: number;
|
|
3038
|
+
/**
|
|
3039
|
+
* 任务详细信息列表
|
|
3040
|
+
*/
|
|
3041
|
+
TaskInfos: Array<ProductTaskInfo>;
|
|
3042
|
+
/**
|
|
3043
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3044
|
+
*/
|
|
3045
|
+
RequestId?: string;
|
|
3046
|
+
}
|
|
3047
|
+
/**
|
|
3048
|
+
* EnableTopicRule请求参数结构体
|
|
3049
|
+
*/
|
|
3050
|
+
export interface EnableTopicRuleRequest {
|
|
3051
|
+
/**
|
|
3052
|
+
* 规则名称
|
|
3053
|
+
*/
|
|
3054
|
+
RuleName: string;
|
|
3055
|
+
}
|
|
3056
|
+
/**
|
|
3057
|
+
* 设备资源详细信息
|
|
3058
|
+
*/
|
|
3059
|
+
export interface DeviceResourceInfo {
|
|
3060
|
+
/**
|
|
3061
|
+
* 产品ID
|
|
3062
|
+
*/
|
|
3063
|
+
ProductID: string;
|
|
3064
|
+
/**
|
|
3065
|
+
* 产品名
|
|
3066
|
+
*/
|
|
3067
|
+
ProductName: string;
|
|
3068
|
+
/**
|
|
3069
|
+
* 资源名称
|
|
3070
|
+
*/
|
|
3071
|
+
Name: string;
|
|
3072
|
+
/**
|
|
3073
|
+
* 资源文件md5
|
|
3074
|
+
*/
|
|
3075
|
+
Md5: string;
|
|
3076
|
+
/**
|
|
3077
|
+
* 资源文件大小
|
|
3078
|
+
*/
|
|
3079
|
+
Size: number;
|
|
3080
|
+
/**
|
|
3081
|
+
* 资源更新时间
|
|
3082
|
+
*/
|
|
3083
|
+
UpdateTime: string;
|
|
3084
|
+
/**
|
|
3085
|
+
* 设备名称
|
|
3086
|
+
*/
|
|
3087
|
+
DeviceName: string;
|
|
3088
|
+
/**
|
|
3089
|
+
* 设备资源上传状态
|
|
3090
|
+
*/
|
|
3091
|
+
Status: number;
|
|
3092
|
+
/**
|
|
3093
|
+
* 设备资源上传百分比
|
|
3094
|
+
*/
|
|
3095
|
+
Percent: number;
|
|
3096
|
+
}
|
|
3097
|
+
/**
|
|
3098
|
+
* DescribeFirmwareTask请求参数结构体
|
|
3099
|
+
*/
|
|
3100
|
+
export interface DescribeFirmwareTaskRequest {
|
|
3101
|
+
/**
|
|
3102
|
+
* 产品ID
|
|
3103
|
+
*/
|
|
3104
|
+
ProductId: string;
|
|
3105
|
+
/**
|
|
3106
|
+
* 固件版本号
|
|
3107
|
+
*/
|
|
3108
|
+
FirmwareVersion: string;
|
|
3109
|
+
/**
|
|
3110
|
+
* 固件任务ID
|
|
3111
|
+
*/
|
|
3112
|
+
TaskId: number;
|
|
3113
|
+
}
|