1// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//    http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package v20201215
16
17import (
18    "encoding/json"
19    tcerr "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors"
20    tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http"
21)
22
23type AIModelApplication struct {
24
25	// 产品ID
26	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
27
28	// 产品名称
29	ProductName *string `json:"ProductName,omitempty" name:"ProductName"`
30
31	// 申请状态:1-已申请;2-已取消;3-已拒绝;4-已通过
32	Status *uint64 `json:"Status,omitempty" name:"Status"`
33}
34
35type AIModelInfo struct {
36
37	// 产品ID
38	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
39
40	// 产品名称
41	ProductName *string `json:"ProductName,omitempty" name:"ProductName"`
42
43	// 申请状态:1-已申请;2-已取消;3-已拒绝;4-已通过
44	Status *uint64 `json:"Status,omitempty" name:"Status"`
45
46	// 可调用数量
47	Total *uint64 `json:"Total,omitempty" name:"Total"`
48
49	// 已调用数量
50	Used *uint64 `json:"Used,omitempty" name:"Used"`
51
52	// 申请时间
53	ApplyTime *uint64 `json:"ApplyTime,omitempty" name:"ApplyTime"`
54
55	// 审批通过时间
56	ApprovalTime *uint64 `json:"ApprovalTime,omitempty" name:"ApprovalTime"`
57}
58
59type AIModelUsageInfo struct {
60
61	// 开通时间
62	CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"`
63
64	// 资源总量
65	Total *uint64 `json:"Total,omitempty" name:"Total"`
66
67	// 已使用资源数量
68	Used *uint64 `json:"Used,omitempty" name:"Used"`
69}
70
71type ActionHistory struct {
72
73	// 设备名称
74	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
75
76	// 动作Id
77	ActionId *string `json:"ActionId,omitempty" name:"ActionId"`
78
79	// 动作名称
80	ActionName *string `json:"ActionName,omitempty" name:"ActionName"`
81
82	// 请求时间
83	ReqTime *uint64 `json:"ReqTime,omitempty" name:"ReqTime"`
84
85	// 响应时间
86	RspTime *uint64 `json:"RspTime,omitempty" name:"RspTime"`
87
88	// 输入参数
89	// 注意:此字段可能返回 null,表示取不到有效值。
90	InputParams *string `json:"InputParams,omitempty" name:"InputParams"`
91
92	// 输出参数
93	// 注意:此字段可能返回 null,表示取不到有效值。
94	OutputParams *string `json:"OutputParams,omitempty" name:"OutputParams"`
95
96	// 调用方式
97	Calling *string `json:"Calling,omitempty" name:"Calling"`
98
99	// 调用Id
100	ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"`
101
102	// 调用状态
103	Status *string `json:"Status,omitempty" name:"Status"`
104}
105
106type ApplyAIModelRequest struct {
107	*tchttp.BaseRequest
108
109	// AI模型ID
110	ModelId *string `json:"ModelId,omitempty" name:"ModelId"`
111
112	// 产品ID
113	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
114}
115
116func (r *ApplyAIModelRequest) ToJsonString() string {
117    b, _ := json.Marshal(r)
118    return string(b)
119}
120
121// FromJsonString It is highly **NOT** recommended to use this function
122// because it has no param check, nor strict type check
123func (r *ApplyAIModelRequest) FromJsonString(s string) error {
124	f := make(map[string]interface{})
125	if err := json.Unmarshal([]byte(s), &f); err != nil {
126		return err
127	}
128	delete(f, "ModelId")
129	delete(f, "ProductId")
130	if len(f) > 0 {
131		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ApplyAIModelRequest has unknown keys!", "")
132	}
133	return json.Unmarshal([]byte(s), &r)
134}
135
136type ApplyAIModelResponse struct {
137	*tchttp.BaseResponse
138	Response *struct {
139
140		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
141		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
142	} `json:"Response"`
143}
144
145func (r *ApplyAIModelResponse) ToJsonString() string {
146    b, _ := json.Marshal(r)
147    return string(b)
148}
149
150// FromJsonString It is highly **NOT** recommended to use this function
151// because it has no param check, nor strict type check
152func (r *ApplyAIModelResponse) FromJsonString(s string) error {
153	return json.Unmarshal([]byte(s), &r)
154}
155
156type BalanceTransaction struct {
157
158	// 账户类型:1-设备接入 2-云存。
159	AccountType *uint64 `json:"AccountType,omitempty" name:"AccountType"`
160
161	// 账户变更类型:Rechareg-充值;CreateOrder-新购。
162	Operation *string `json:"Operation,omitempty" name:"Operation"`
163
164	// 流水ID。
165	DealId *string `json:"DealId,omitempty" name:"DealId"`
166
167	// 变更金额,单位:分(人民币)。
168	Amount *uint64 `json:"Amount,omitempty" name:"Amount"`
169
170	// 变更后账户余额,单位:分(人民币)。
171	Balance *uint64 `json:"Balance,omitempty" name:"Balance"`
172
173	// 变更时间。
174	OperationTime *int64 `json:"OperationTime,omitempty" name:"OperationTime"`
175}
176
177type BatchUpdateFirmwareRequest struct {
178	*tchttp.BaseRequest
179
180	// 产品ID
181	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
182
183	// 固件新版本号
184	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`
185
186	// 固件原版本号,根据文件列表升级固件不需要填写此参数
187	FirmwareOriVersion *string `json:"FirmwareOriVersion,omitempty" name:"FirmwareOriVersion"`
188
189	// 升级方式,0 静默升级  1 用户确认升级。 不填默认为静默升级方式
190	UpgradeMethod *uint64 `json:"UpgradeMethod,omitempty" name:"UpgradeMethod"`
191
192	// 设备列表文件名称,根据文件列表升级固件需要填写此参数
193	FileName *string `json:"FileName,omitempty" name:"FileName"`
194
195	// 设备列表的文件md5值
196	FileMd5 *string `json:"FileMd5,omitempty" name:"FileMd5"`
197
198	// 设备列表的文件大小值
199	FileSize *uint64 `json:"FileSize,omitempty" name:"FileSize"`
200
201	// 需要升级的设备名称列表
202	DeviceNames []*string `json:"DeviceNames,omitempty" name:"DeviceNames"`
203}
204
205func (r *BatchUpdateFirmwareRequest) ToJsonString() string {
206    b, _ := json.Marshal(r)
207    return string(b)
208}
209
210// FromJsonString It is highly **NOT** recommended to use this function
211// because it has no param check, nor strict type check
212func (r *BatchUpdateFirmwareRequest) FromJsonString(s string) error {
213	f := make(map[string]interface{})
214	if err := json.Unmarshal([]byte(s), &f); err != nil {
215		return err
216	}
217	delete(f, "ProductID")
218	delete(f, "FirmwareVersion")
219	delete(f, "FirmwareOriVersion")
220	delete(f, "UpgradeMethod")
221	delete(f, "FileName")
222	delete(f, "FileMd5")
223	delete(f, "FileSize")
224	delete(f, "DeviceNames")
225	if len(f) > 0 {
226		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "BatchUpdateFirmwareRequest has unknown keys!", "")
227	}
228	return json.Unmarshal([]byte(s), &r)
229}
230
231type BatchUpdateFirmwareResponse struct {
232	*tchttp.BaseResponse
233	Response *struct {
234
235		// 任务ID
236		TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"`
237
238		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
239		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
240	} `json:"Response"`
241}
242
243func (r *BatchUpdateFirmwareResponse) ToJsonString() string {
244    b, _ := json.Marshal(r)
245    return string(b)
246}
247
248// FromJsonString It is highly **NOT** recommended to use this function
249// because it has no param check, nor strict type check
250func (r *BatchUpdateFirmwareResponse) FromJsonString(s string) error {
251	return json.Unmarshal([]byte(s), &r)
252}
253
254type BindCloudStorageUserRequest struct {
255	*tchttp.BaseRequest
256
257	// 产品ID
258	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
259
260	// 设备名称
261	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
262
263	// 用户ID
264	UserId *string `json:"UserId,omitempty" name:"UserId"`
265}
266
267func (r *BindCloudStorageUserRequest) ToJsonString() string {
268    b, _ := json.Marshal(r)
269    return string(b)
270}
271
272// FromJsonString It is highly **NOT** recommended to use this function
273// because it has no param check, nor strict type check
274func (r *BindCloudStorageUserRequest) FromJsonString(s string) error {
275	f := make(map[string]interface{})
276	if err := json.Unmarshal([]byte(s), &f); err != nil {
277		return err
278	}
279	delete(f, "ProductId")
280	delete(f, "DeviceName")
281	delete(f, "UserId")
282	if len(f) > 0 {
283		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "BindCloudStorageUserRequest has unknown keys!", "")
284	}
285	return json.Unmarshal([]byte(s), &r)
286}
287
288type BindCloudStorageUserResponse struct {
289	*tchttp.BaseResponse
290	Response *struct {
291
292		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
293		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
294	} `json:"Response"`
295}
296
297func (r *BindCloudStorageUserResponse) ToJsonString() string {
298    b, _ := json.Marshal(r)
299    return string(b)
300}
301
302// FromJsonString It is highly **NOT** recommended to use this function
303// because it has no param check, nor strict type check
304func (r *BindCloudStorageUserResponse) FromJsonString(s string) error {
305	return json.Unmarshal([]byte(s), &r)
306}
307
308type CancelAIModelApplicationRequest struct {
309	*tchttp.BaseRequest
310
311	// AI模型ID
312	ModelId *string `json:"ModelId,omitempty" name:"ModelId"`
313
314	// 产品ID
315	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
316}
317
318func (r *CancelAIModelApplicationRequest) ToJsonString() string {
319    b, _ := json.Marshal(r)
320    return string(b)
321}
322
323// FromJsonString It is highly **NOT** recommended to use this function
324// because it has no param check, nor strict type check
325func (r *CancelAIModelApplicationRequest) FromJsonString(s string) error {
326	f := make(map[string]interface{})
327	if err := json.Unmarshal([]byte(s), &f); err != nil {
328		return err
329	}
330	delete(f, "ModelId")
331	delete(f, "ProductId")
332	if len(f) > 0 {
333		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CancelAIModelApplicationRequest has unknown keys!", "")
334	}
335	return json.Unmarshal([]byte(s), &r)
336}
337
338type CancelAIModelApplicationResponse struct {
339	*tchttp.BaseResponse
340	Response *struct {
341
342		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
343		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
344	} `json:"Response"`
345}
346
347func (r *CancelAIModelApplicationResponse) ToJsonString() string {
348    b, _ := json.Marshal(r)
349    return string(b)
350}
351
352// FromJsonString It is highly **NOT** recommended to use this function
353// because it has no param check, nor strict type check
354func (r *CancelAIModelApplicationResponse) FromJsonString(s string) error {
355	return json.Unmarshal([]byte(s), &r)
356}
357
358type CancelDeviceFirmwareTaskRequest struct {
359	*tchttp.BaseRequest
360
361	// 产品ID
362	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
363
364	// 设备名称
365	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
366
367	// 固件版本号
368	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`
369
370	// 固件升级任务ID
371	TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"`
372}
373
374func (r *CancelDeviceFirmwareTaskRequest) ToJsonString() string {
375    b, _ := json.Marshal(r)
376    return string(b)
377}
378
379// FromJsonString It is highly **NOT** recommended to use this function
380// because it has no param check, nor strict type check
381func (r *CancelDeviceFirmwareTaskRequest) FromJsonString(s string) error {
382	f := make(map[string]interface{})
383	if err := json.Unmarshal([]byte(s), &f); err != nil {
384		return err
385	}
386	delete(f, "ProductID")
387	delete(f, "DeviceName")
388	delete(f, "FirmwareVersion")
389	delete(f, "TaskId")
390	if len(f) > 0 {
391		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CancelDeviceFirmwareTaskRequest has unknown keys!", "")
392	}
393	return json.Unmarshal([]byte(s), &r)
394}
395
396type CancelDeviceFirmwareTaskResponse struct {
397	*tchttp.BaseResponse
398	Response *struct {
399
400		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
401		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
402	} `json:"Response"`
403}
404
405func (r *CancelDeviceFirmwareTaskResponse) ToJsonString() string {
406    b, _ := json.Marshal(r)
407    return string(b)
408}
409
410// FromJsonString It is highly **NOT** recommended to use this function
411// because it has no param check, nor strict type check
412func (r *CancelDeviceFirmwareTaskResponse) FromJsonString(s string) error {
413	return json.Unmarshal([]byte(s), &r)
414}
415
416type CheckForwardAuthRequest struct {
417	*tchttp.BaseRequest
418
419	// 控制台Skey
420	Skey *string `json:"Skey,omitempty" name:"Skey"`
421
422	// 队列类型 0.CMQ  1.Ckafka
423	QueueType *uint64 `json:"QueueType,omitempty" name:"QueueType"`
424}
425
426func (r *CheckForwardAuthRequest) ToJsonString() string {
427    b, _ := json.Marshal(r)
428    return string(b)
429}
430
431// FromJsonString It is highly **NOT** recommended to use this function
432// because it has no param check, nor strict type check
433func (r *CheckForwardAuthRequest) FromJsonString(s string) error {
434	f := make(map[string]interface{})
435	if err := json.Unmarshal([]byte(s), &f); err != nil {
436		return err
437	}
438	delete(f, "Skey")
439	delete(f, "QueueType")
440	if len(f) > 0 {
441		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CheckForwardAuthRequest has unknown keys!", "")
442	}
443	return json.Unmarshal([]byte(s), &r)
444}
445
446type CheckForwardAuthResponse struct {
447	*tchttp.BaseResponse
448	Response *struct {
449
450		// 腾讯云账号
451		Endpoint *string `json:"Endpoint,omitempty" name:"Endpoint"`
452
453		// 结果
454		Result *uint64 `json:"Result,omitempty" name:"Result"`
455
456		// 产品ID
457		Productid *string `json:"Productid,omitempty" name:"Productid"`
458
459		// 错误消息
460		ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"`
461
462		// 队列类型 0.CMQ  1.Ckafka
463		QueueType *uint64 `json:"QueueType,omitempty" name:"QueueType"`
464
465		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
466		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
467	} `json:"Response"`
468}
469
470func (r *CheckForwardAuthResponse) ToJsonString() string {
471    b, _ := json.Marshal(r)
472    return string(b)
473}
474
475// FromJsonString It is highly **NOT** recommended to use this function
476// because it has no param check, nor strict type check
477func (r *CheckForwardAuthResponse) FromJsonString(s string) error {
478	return json.Unmarshal([]byte(s), &r)
479}
480
481type CloudStorageEvent struct {
482
483	// 事件起始时间(Unix 时间戳,秒级
484	StartTime *uint64 `json:"StartTime,omitempty" name:"StartTime"`
485
486	// 事件结束时间(Unix 时间戳,秒级
487	EndTime *uint64 `json:"EndTime,omitempty" name:"EndTime"`
488
489	// 事件缩略图
490	Thumbnail *string `json:"Thumbnail,omitempty" name:"Thumbnail"`
491
492	// 事件ID
493	EventId *string `json:"EventId,omitempty" name:"EventId"`
494}
495
496type CloudStorageTimeData struct {
497
498	// 云存时间轴信息列表
499	TimeList []*CloudStorageTimeInfo `json:"TimeList,omitempty" name:"TimeList"`
500
501	// 播放地址
502	VideoURL *string `json:"VideoURL,omitempty" name:"VideoURL"`
503}
504
505type CloudStorageTimeInfo struct {
506
507	// 开始时间
508	StartTime *uint64 `json:"StartTime,omitempty" name:"StartTime"`
509
510	// 结束时间
511	EndTime *uint64 `json:"EndTime,omitempty" name:"EndTime"`
512}
513
514type CloudStorageUserInfo struct {
515
516	// 用户ID
517	UserId *string `json:"UserId,omitempty" name:"UserId"`
518}
519
520type ControlDeviceDataRequest struct {
521	*tchttp.BaseRequest
522
523	// 产品ID
524	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
525
526	// 设备名称
527	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
528
529	// 属性数据, JSON格式字符串, 注意字段需要在物模型属性里定义
530	Data *string `json:"Data,omitempty" name:"Data"`
531
532	// 请求类型 , 不填该参数或者 desired 表示下发属性给设备,  reported 表示模拟设备上报属性
533	Method *string `json:"Method,omitempty" name:"Method"`
534
535	// 上报数据UNIX时间戳(毫秒), 仅对Method:reported有效
536	DataTimestamp *int64 `json:"DataTimestamp,omitempty" name:"DataTimestamp"`
537}
538
539func (r *ControlDeviceDataRequest) ToJsonString() string {
540    b, _ := json.Marshal(r)
541    return string(b)
542}
543
544// FromJsonString It is highly **NOT** recommended to use this function
545// because it has no param check, nor strict type check
546func (r *ControlDeviceDataRequest) FromJsonString(s string) error {
547	f := make(map[string]interface{})
548	if err := json.Unmarshal([]byte(s), &f); err != nil {
549		return err
550	}
551	delete(f, "ProductId")
552	delete(f, "DeviceName")
553	delete(f, "Data")
554	delete(f, "Method")
555	delete(f, "DataTimestamp")
556	if len(f) > 0 {
557		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ControlDeviceDataRequest has unknown keys!", "")
558	}
559	return json.Unmarshal([]byte(s), &r)
560}
561
562type ControlDeviceDataResponse struct {
563	*tchttp.BaseResponse
564	Response *struct {
565
566		// 返回信息
567		Data *string `json:"Data,omitempty" name:"Data"`
568
569		// JSON字符串, 返回下发控制的结果信息,
570	// Sent = 1 表示设备已经在线并且订阅了控制下发的mqtt topic
571	// 注意:此字段可能返回 null,表示取不到有效值。
572		Result *string `json:"Result,omitempty" name:"Result"`
573
574		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
575		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
576	} `json:"Response"`
577}
578
579func (r *ControlDeviceDataResponse) ToJsonString() string {
580    b, _ := json.Marshal(r)
581    return string(b)
582}
583
584// FromJsonString It is highly **NOT** recommended to use this function
585// because it has no param check, nor strict type check
586func (r *ControlDeviceDataResponse) FromJsonString(s string) error {
587	return json.Unmarshal([]byte(s), &r)
588}
589
590type CreateAIDetectionRequest struct {
591	*tchttp.BaseRequest
592
593	// 产品ID
594	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
595
596	// 设备名称
597	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
598
599	// AI模型ID
600	ModelId *string `json:"ModelId,omitempty" name:"ModelId"`
601
602	// 图片上传的开始时间
603	StartTime *uint64 `json:"StartTime,omitempty" name:"StartTime"`
604
605	// 图片上传的结束时间
606	EndTime *uint64 `json:"EndTime,omitempty" name:"EndTime"`
607}
608
609func (r *CreateAIDetectionRequest) ToJsonString() string {
610    b, _ := json.Marshal(r)
611    return string(b)
612}
613
614// FromJsonString It is highly **NOT** recommended to use this function
615// because it has no param check, nor strict type check
616func (r *CreateAIDetectionRequest) FromJsonString(s string) error {
617	f := make(map[string]interface{})
618	if err := json.Unmarshal([]byte(s), &f); err != nil {
619		return err
620	}
621	delete(f, "ProductId")
622	delete(f, "DeviceName")
623	delete(f, "ModelId")
624	delete(f, "StartTime")
625	delete(f, "EndTime")
626	if len(f) > 0 {
627		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateAIDetectionRequest has unknown keys!", "")
628	}
629	return json.Unmarshal([]byte(s), &r)
630}
631
632type CreateAIDetectionResponse struct {
633	*tchttp.BaseResponse
634	Response *struct {
635
636		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
637		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
638	} `json:"Response"`
639}
640
641func (r *CreateAIDetectionResponse) ToJsonString() string {
642    b, _ := json.Marshal(r)
643    return string(b)
644}
645
646// FromJsonString It is highly **NOT** recommended to use this function
647// because it has no param check, nor strict type check
648func (r *CreateAIDetectionResponse) FromJsonString(s string) error {
649	return json.Unmarshal([]byte(s), &r)
650}
651
652type CreateBatchRequest struct {
653	*tchttp.BaseRequest
654
655	// 产品ID
656	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
657
658	// 批次创建的设备数量
659	DevNum *uint64 `json:"DevNum,omitempty" name:"DevNum"`
660
661	// 批次创建的设备前缀。不超过24个字符
662	DevPre *string `json:"DevPre,omitempty" name:"DevPre"`
663}
664
665func (r *CreateBatchRequest) ToJsonString() string {
666    b, _ := json.Marshal(r)
667    return string(b)
668}
669
670// FromJsonString It is highly **NOT** recommended to use this function
671// because it has no param check, nor strict type check
672func (r *CreateBatchRequest) FromJsonString(s string) error {
673	f := make(map[string]interface{})
674	if err := json.Unmarshal([]byte(s), &f); err != nil {
675		return err
676	}
677	delete(f, "ProductId")
678	delete(f, "DevNum")
679	delete(f, "DevPre")
680	if len(f) > 0 {
681		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateBatchRequest has unknown keys!", "")
682	}
683	return json.Unmarshal([]byte(s), &r)
684}
685
686type CreateBatchResponse struct {
687	*tchttp.BaseResponse
688	Response *struct {
689
690		// 批次ID
691		BatchId *uint64 `json:"BatchId,omitempty" name:"BatchId"`
692
693		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
694		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
695	} `json:"Response"`
696}
697
698func (r *CreateBatchResponse) ToJsonString() string {
699    b, _ := json.Marshal(r)
700    return string(b)
701}
702
703// FromJsonString It is highly **NOT** recommended to use this function
704// because it has no param check, nor strict type check
705func (r *CreateBatchResponse) FromJsonString(s string) error {
706	return json.Unmarshal([]byte(s), &r)
707}
708
709type CreateCOSCredentialsRequest struct {
710	*tchttp.BaseRequest
711
712	// 产品ID
713	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
714
715	// 设备名称
716	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
717}
718
719func (r *CreateCOSCredentialsRequest) ToJsonString() string {
720    b, _ := json.Marshal(r)
721    return string(b)
722}
723
724// FromJsonString It is highly **NOT** recommended to use this function
725// because it has no param check, nor strict type check
726func (r *CreateCOSCredentialsRequest) FromJsonString(s string) error {
727	f := make(map[string]interface{})
728	if err := json.Unmarshal([]byte(s), &f); err != nil {
729		return err
730	}
731	delete(f, "ProductId")
732	delete(f, "DeviceName")
733	if len(f) > 0 {
734		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateCOSCredentialsRequest has unknown keys!", "")
735	}
736	return json.Unmarshal([]byte(s), &r)
737}
738
739type CreateCOSCredentialsResponse struct {
740	*tchttp.BaseResponse
741	Response *struct {
742
743		// COS存储桶名称
744		StorageBucket *string `json:"StorageBucket,omitempty" name:"StorageBucket"`
745
746		// COS存储桶区域
747		StorageRegion *string `json:"StorageRegion,omitempty" name:"StorageRegion"`
748
749		// COS存储桶路径
750		StoragePath *string `json:"StoragePath,omitempty" name:"StoragePath"`
751
752		// COS上传用的SecretID
753		SecretID *string `json:"SecretID,omitempty" name:"SecretID"`
754
755		// COS上传用的SecretKey
756		SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"`
757
758		// COS上传用的Token
759		Token *string `json:"Token,omitempty" name:"Token"`
760
761		// 密钥信息过期时间
762		ExpiredTime *uint64 `json:"ExpiredTime,omitempty" name:"ExpiredTime"`
763
764		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
765		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
766	} `json:"Response"`
767}
768
769func (r *CreateCOSCredentialsResponse) ToJsonString() string {
770    b, _ := json.Marshal(r)
771    return string(b)
772}
773
774// FromJsonString It is highly **NOT** recommended to use this function
775// because it has no param check, nor strict type check
776func (r *CreateCOSCredentialsResponse) FromJsonString(s string) error {
777	return json.Unmarshal([]byte(s), &r)
778}
779
780type CreateCloudStorageRequest struct {
781	*tchttp.BaseRequest
782
783	// 产品ID
784	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
785
786	// 设备名称
787	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
788
789	// 云存套餐ID:
790	// yc1m3d : 全时3天存储月套餐。
791	// yc1m7d : 全时7天存储月套餐。
792	// yc1m30d :全时30天存储月套餐。
793	// yc1y3d :全时3天存储年套餐。
794	// yc1y7d :全时7天存储年套餐。
795	// yc1y30d :全时30天存储年套餐。
796	// ye1m3d :事件3天存储月套餐。
797	// ye1m7d :事件7天存储月套餐。
798	// ye1m30d :事件30天存储月套餐 。
799	// ye1y3d :事件3天存储年套餐。
800	// ye1y7d :事件7天存储年套餐。
801	// ye1y30d :事件30天存储年套餐。
802	// yc1w7d : 全时7天存储周套餐。
803	// ye1w7d : 事件7天存储周套餐。
804	PackageId *string `json:"PackageId,omitempty" name:"PackageId"`
805
806	// 如果当前设备已开启云存套餐,Override=1会使用新套餐覆盖原有套餐。不传此参数则默认为0。
807	Override *uint64 `json:"Override,omitempty" name:"Override"`
808}
809
810func (r *CreateCloudStorageRequest) ToJsonString() string {
811    b, _ := json.Marshal(r)
812    return string(b)
813}
814
815// FromJsonString It is highly **NOT** recommended to use this function
816// because it has no param check, nor strict type check
817func (r *CreateCloudStorageRequest) FromJsonString(s string) error {
818	f := make(map[string]interface{})
819	if err := json.Unmarshal([]byte(s), &f); err != nil {
820		return err
821	}
822	delete(f, "ProductId")
823	delete(f, "DeviceName")
824	delete(f, "PackageId")
825	delete(f, "Override")
826	if len(f) > 0 {
827		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateCloudStorageRequest has unknown keys!", "")
828	}
829	return json.Unmarshal([]byte(s), &r)
830}
831
832type CreateCloudStorageResponse struct {
833	*tchttp.BaseResponse
834	Response *struct {
835
836		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
837		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
838	} `json:"Response"`
839}
840
841func (r *CreateCloudStorageResponse) ToJsonString() string {
842    b, _ := json.Marshal(r)
843    return string(b)
844}
845
846// FromJsonString It is highly **NOT** recommended to use this function
847// because it has no param check, nor strict type check
848func (r *CreateCloudStorageResponse) FromJsonString(s string) error {
849	return json.Unmarshal([]byte(s), &r)
850}
851
852type CreateDataForwardRequest struct {
853	*tchttp.BaseRequest
854
855	// 产品ID。
856	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
857
858	// 转发地址。
859	ForwardAddr *string `json:"ForwardAddr,omitempty" name:"ForwardAddr"`
860
861	// 1-数据信息转发 2-设备上下线状态转发 3-数据信息转发&设备上下线状态转发
862	DataChose *int64 `json:"DataChose,omitempty" name:"DataChose"`
863}
864
865func (r *CreateDataForwardRequest) ToJsonString() string {
866    b, _ := json.Marshal(r)
867    return string(b)
868}
869
870// FromJsonString It is highly **NOT** recommended to use this function
871// because it has no param check, nor strict type check
872func (r *CreateDataForwardRequest) FromJsonString(s string) error {
873	f := make(map[string]interface{})
874	if err := json.Unmarshal([]byte(s), &f); err != nil {
875		return err
876	}
877	delete(f, "ProductId")
878	delete(f, "ForwardAddr")
879	delete(f, "DataChose")
880	if len(f) > 0 {
881		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateDataForwardRequest has unknown keys!", "")
882	}
883	return json.Unmarshal([]byte(s), &r)
884}
885
886type CreateDataForwardResponse struct {
887	*tchttp.BaseResponse
888	Response *struct {
889
890		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
891		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
892	} `json:"Response"`
893}
894
895func (r *CreateDataForwardResponse) ToJsonString() string {
896    b, _ := json.Marshal(r)
897    return string(b)
898}
899
900// FromJsonString It is highly **NOT** recommended to use this function
901// because it has no param check, nor strict type check
902func (r *CreateDataForwardResponse) FromJsonString(s string) error {
903	return json.Unmarshal([]byte(s), &r)
904}
905
906type CreateForwardRuleRequest struct {
907	*tchttp.BaseRequest
908
909	// 产品ID
910	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
911
912	// 消息类型
913	MsgType *uint64 `json:"MsgType,omitempty" name:"MsgType"`
914
915	// 控制台Skey
916	Skey *string `json:"Skey,omitempty" name:"Skey"`
917
918	// 队列区域
919	QueueRegion *string `json:"QueueRegion,omitempty" name:"QueueRegion"`
920
921	// 队列类型 0.CMQ  1.Ckafka
922	QueueType *uint64 `json:"QueueType,omitempty" name:"QueueType"`
923
924	// 临时密钥
925	Consecretid *string `json:"Consecretid,omitempty" name:"Consecretid"`
926
927	// 实例ID
928	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
929
930	// 实例名称
931	InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
932
933	// 队列或主题ID
934	QueueID *string `json:"QueueID,omitempty" name:"QueueID"`
935
936	// 队列或主题名称
937	QueueName *string `json:"QueueName,omitempty" name:"QueueName"`
938}
939
940func (r *CreateForwardRuleRequest) ToJsonString() string {
941    b, _ := json.Marshal(r)
942    return string(b)
943}
944
945// FromJsonString It is highly **NOT** recommended to use this function
946// because it has no param check, nor strict type check
947func (r *CreateForwardRuleRequest) FromJsonString(s string) error {
948	f := make(map[string]interface{})
949	if err := json.Unmarshal([]byte(s), &f); err != nil {
950		return err
951	}
952	delete(f, "ProductID")
953	delete(f, "MsgType")
954	delete(f, "Skey")
955	delete(f, "QueueRegion")
956	delete(f, "QueueType")
957	delete(f, "Consecretid")
958	delete(f, "InstanceId")
959	delete(f, "InstanceName")
960	delete(f, "QueueID")
961	delete(f, "QueueName")
962	if len(f) > 0 {
963		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateForwardRuleRequest has unknown keys!", "")
964	}
965	return json.Unmarshal([]byte(s), &r)
966}
967
968type CreateForwardRuleResponse struct {
969	*tchttp.BaseResponse
970	Response *struct {
971
972		// 腾讯云账号
973		Endpoint *string `json:"Endpoint,omitempty" name:"Endpoint"`
974
975		// 队列名
976		QueueName *string `json:"QueueName,omitempty" name:"QueueName"`
977
978		// 产品ID
979		ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
980
981		// 消息类型
982		MsgType *uint64 `json:"MsgType,omitempty" name:"MsgType"`
983
984		// 结果
985		Result *uint64 `json:"Result,omitempty" name:"Result"`
986
987		// 角色名称
988		RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
989
990		// 角色ID
991		RoleID *uint64 `json:"RoleID,omitempty" name:"RoleID"`
992
993		// 队列区
994		QueueRegion *string `json:"QueueRegion,omitempty" name:"QueueRegion"`
995
996		// 消息队列的类型。 0:CMQ,1:CKafaka
997		QueueType *uint64 `json:"QueueType,omitempty" name:"QueueType"`
998
999		// 实例id, 目前只有Ckafaka会用到
1000		InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
1001
1002		// 实例名称,目前只有Ckafaka会用到
1003		InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
1004
1005		// 错误消息
1006		ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"`
1007
1008		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1009		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1010	} `json:"Response"`
1011}
1012
1013func (r *CreateForwardRuleResponse) ToJsonString() string {
1014    b, _ := json.Marshal(r)
1015    return string(b)
1016}
1017
1018// FromJsonString It is highly **NOT** recommended to use this function
1019// because it has no param check, nor strict type check
1020func (r *CreateForwardRuleResponse) FromJsonString(s string) error {
1021	return json.Unmarshal([]byte(s), &r)
1022}
1023
1024type CreateProductRequest struct {
1025	*tchttp.BaseRequest
1026
1027	// 产品名称
1028	ProductName *string `json:"ProductName,omitempty" name:"ProductName"`
1029
1030	// 产品设备类型 1.普通设备 2.NVR设备
1031	DeviceType *uint64 `json:"DeviceType,omitempty" name:"DeviceType"`
1032
1033	// 产品有效期
1034	ProductVaildYears *uint64 `json:"ProductVaildYears,omitempty" name:"ProductVaildYears"`
1035
1036	// 设备功能码 ypsxth音频双向通话 spdxth视频单向通话
1037	Features []*string `json:"Features,omitempty" name:"Features"`
1038
1039	// 设备操作系统 Linux
1040	ChipOs *string `json:"ChipOs,omitempty" name:"ChipOs"`
1041
1042	// 芯片厂商id
1043	ChipManufactureId *string `json:"ChipManufactureId,omitempty" name:"ChipManufactureId"`
1044
1045	// 芯片id
1046	ChipId *string `json:"ChipId,omitempty" name:"ChipId"`
1047
1048	// 产品描述信息
1049	ProductDescription *string `json:"ProductDescription,omitempty" name:"ProductDescription"`
1050
1051	// 认证方式 只支持取值为2 psk认证
1052	EncryptionType *uint64 `json:"EncryptionType,omitempty" name:"EncryptionType"`
1053}
1054
1055func (r *CreateProductRequest) ToJsonString() string {
1056    b, _ := json.Marshal(r)
1057    return string(b)
1058}
1059
1060// FromJsonString It is highly **NOT** recommended to use this function
1061// because it has no param check, nor strict type check
1062func (r *CreateProductRequest) FromJsonString(s string) error {
1063	f := make(map[string]interface{})
1064	if err := json.Unmarshal([]byte(s), &f); err != nil {
1065		return err
1066	}
1067	delete(f, "ProductName")
1068	delete(f, "DeviceType")
1069	delete(f, "ProductVaildYears")
1070	delete(f, "Features")
1071	delete(f, "ChipOs")
1072	delete(f, "ChipManufactureId")
1073	delete(f, "ChipId")
1074	delete(f, "ProductDescription")
1075	delete(f, "EncryptionType")
1076	if len(f) > 0 {
1077		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateProductRequest has unknown keys!", "")
1078	}
1079	return json.Unmarshal([]byte(s), &r)
1080}
1081
1082type CreateProductResponse struct {
1083	*tchttp.BaseResponse
1084	Response *struct {
1085
1086		// 产品详情
1087		Data *VideoProduct `json:"Data,omitempty" name:"Data"`
1088
1089		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1090		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1091	} `json:"Response"`
1092}
1093
1094func (r *CreateProductResponse) ToJsonString() string {
1095    b, _ := json.Marshal(r)
1096    return string(b)
1097}
1098
1099// FromJsonString It is highly **NOT** recommended to use this function
1100// because it has no param check, nor strict type check
1101func (r *CreateProductResponse) FromJsonString(s string) error {
1102	return json.Unmarshal([]byte(s), &r)
1103}
1104
1105type CreateTaskFileUrlRequest struct {
1106	*tchttp.BaseRequest
1107
1108	// 产品ID
1109	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
1110}
1111
1112func (r *CreateTaskFileUrlRequest) ToJsonString() string {
1113    b, _ := json.Marshal(r)
1114    return string(b)
1115}
1116
1117// FromJsonString It is highly **NOT** recommended to use this function
1118// because it has no param check, nor strict type check
1119func (r *CreateTaskFileUrlRequest) FromJsonString(s string) error {
1120	f := make(map[string]interface{})
1121	if err := json.Unmarshal([]byte(s), &f); err != nil {
1122		return err
1123	}
1124	delete(f, "ProductId")
1125	if len(f) > 0 {
1126		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateTaskFileUrlRequest has unknown keys!", "")
1127	}
1128	return json.Unmarshal([]byte(s), &r)
1129}
1130
1131type CreateTaskFileUrlResponse struct {
1132	*tchttp.BaseResponse
1133	Response *struct {
1134
1135		// 任务文件上传链接
1136		Url *string `json:"Url,omitempty" name:"Url"`
1137
1138		// 任务文件名
1139		FileName *string `json:"FileName,omitempty" name:"FileName"`
1140
1141		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1142		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1143	} `json:"Response"`
1144}
1145
1146func (r *CreateTaskFileUrlResponse) ToJsonString() string {
1147    b, _ := json.Marshal(r)
1148    return string(b)
1149}
1150
1151// FromJsonString It is highly **NOT** recommended to use this function
1152// because it has no param check, nor strict type check
1153func (r *CreateTaskFileUrlResponse) FromJsonString(s string) error {
1154	return json.Unmarshal([]byte(s), &r)
1155}
1156
1157type DataForward struct {
1158
1159	// 产品ID。
1160	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
1161
1162	// 转发地址。
1163	ForwardAddr *string `json:"ForwardAddr,omitempty" name:"ForwardAddr"`
1164
1165	// 转发状态。
1166	Status *int64 `json:"Status,omitempty" name:"Status"`
1167
1168	// 创建时间。
1169	CreateTime *int64 `json:"CreateTime,omitempty" name:"CreateTime"`
1170
1171	// 更新时间。
1172	UpdateTime *int64 `json:"UpdateTime,omitempty" name:"UpdateTime"`
1173
1174	// 1-数据信息转发 2-设备上下线状态转发 3-数据信息转发&设备上下线状态转发
1175	// 注意:此字段可能返回 null,表示取不到有效值。
1176	DataChose *int64 `json:"DataChose,omitempty" name:"DataChose"`
1177}
1178
1179type DeleteDeviceRequest struct {
1180	*tchttp.BaseRequest
1181
1182	// 产品ID。
1183	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
1184
1185	// 设备名称。
1186	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
1187}
1188
1189func (r *DeleteDeviceRequest) ToJsonString() string {
1190    b, _ := json.Marshal(r)
1191    return string(b)
1192}
1193
1194// FromJsonString It is highly **NOT** recommended to use this function
1195// because it has no param check, nor strict type check
1196func (r *DeleteDeviceRequest) FromJsonString(s string) error {
1197	f := make(map[string]interface{})
1198	if err := json.Unmarshal([]byte(s), &f); err != nil {
1199		return err
1200	}
1201	delete(f, "ProductId")
1202	delete(f, "DeviceName")
1203	if len(f) > 0 {
1204		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteDeviceRequest has unknown keys!", "")
1205	}
1206	return json.Unmarshal([]byte(s), &r)
1207}
1208
1209type DeleteDeviceResponse struct {
1210	*tchttp.BaseResponse
1211	Response *struct {
1212
1213		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1214		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1215	} `json:"Response"`
1216}
1217
1218func (r *DeleteDeviceResponse) ToJsonString() string {
1219    b, _ := json.Marshal(r)
1220    return string(b)
1221}
1222
1223// FromJsonString It is highly **NOT** recommended to use this function
1224// because it has no param check, nor strict type check
1225func (r *DeleteDeviceResponse) FromJsonString(s string) error {
1226	return json.Unmarshal([]byte(s), &r)
1227}
1228
1229type DeleteFirmwareRequest struct {
1230	*tchttp.BaseRequest
1231
1232	// 产品ID
1233	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
1234
1235	// 固件版本
1236	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`
1237}
1238
1239func (r *DeleteFirmwareRequest) ToJsonString() string {
1240    b, _ := json.Marshal(r)
1241    return string(b)
1242}
1243
1244// FromJsonString It is highly **NOT** recommended to use this function
1245// because it has no param check, nor strict type check
1246func (r *DeleteFirmwareRequest) FromJsonString(s string) error {
1247	f := make(map[string]interface{})
1248	if err := json.Unmarshal([]byte(s), &f); err != nil {
1249		return err
1250	}
1251	delete(f, "ProductID")
1252	delete(f, "FirmwareVersion")
1253	if len(f) > 0 {
1254		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteFirmwareRequest has unknown keys!", "")
1255	}
1256	return json.Unmarshal([]byte(s), &r)
1257}
1258
1259type DeleteFirmwareResponse struct {
1260	*tchttp.BaseResponse
1261	Response *struct {
1262
1263		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1264		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1265	} `json:"Response"`
1266}
1267
1268func (r *DeleteFirmwareResponse) ToJsonString() string {
1269    b, _ := json.Marshal(r)
1270    return string(b)
1271}
1272
1273// FromJsonString It is highly **NOT** recommended to use this function
1274// because it has no param check, nor strict type check
1275func (r *DeleteFirmwareResponse) FromJsonString(s string) error {
1276	return json.Unmarshal([]byte(s), &r)
1277}
1278
1279type DeleteForwardRuleRequest struct {
1280	*tchttp.BaseRequest
1281
1282	// 产品ID
1283	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
1284
1285	// 控制台Skey
1286	Skey *string `json:"Skey,omitempty" name:"Skey"`
1287
1288	// 队列类型
1289	QueueType *uint64 `json:"QueueType,omitempty" name:"QueueType"`
1290
1291	// 队列名称
1292	QueueName *string `json:"QueueName,omitempty" name:"QueueName"`
1293}
1294
1295func (r *DeleteForwardRuleRequest) ToJsonString() string {
1296    b, _ := json.Marshal(r)
1297    return string(b)
1298}
1299
1300// FromJsonString It is highly **NOT** recommended to use this function
1301// because it has no param check, nor strict type check
1302func (r *DeleteForwardRuleRequest) FromJsonString(s string) error {
1303	f := make(map[string]interface{})
1304	if err := json.Unmarshal([]byte(s), &f); err != nil {
1305		return err
1306	}
1307	delete(f, "ProductID")
1308	delete(f, "Skey")
1309	delete(f, "QueueType")
1310	delete(f, "QueueName")
1311	if len(f) > 0 {
1312		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteForwardRuleRequest has unknown keys!", "")
1313	}
1314	return json.Unmarshal([]byte(s), &r)
1315}
1316
1317type DeleteForwardRuleResponse struct {
1318	*tchttp.BaseResponse
1319	Response *struct {
1320
1321		// 腾讯云账号
1322		Endpoint *string `json:"Endpoint,omitempty" name:"Endpoint"`
1323
1324		// 队列名称
1325		QueueName *string `json:"QueueName,omitempty" name:"QueueName"`
1326
1327		// 产品ID
1328		ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
1329
1330		// 删除结果 0成功 其他不成功
1331		Result *uint64 `json:"Result,omitempty" name:"Result"`
1332
1333		// 错误消息
1334		ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"`
1335
1336		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1337		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1338	} `json:"Response"`
1339}
1340
1341func (r *DeleteForwardRuleResponse) ToJsonString() string {
1342    b, _ := json.Marshal(r)
1343    return string(b)
1344}
1345
1346// FromJsonString It is highly **NOT** recommended to use this function
1347// because it has no param check, nor strict type check
1348func (r *DeleteForwardRuleResponse) FromJsonString(s string) error {
1349	return json.Unmarshal([]byte(s), &r)
1350}
1351
1352type DeleteProductRequest struct {
1353	*tchttp.BaseRequest
1354
1355	// 产品ID
1356	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
1357}
1358
1359func (r *DeleteProductRequest) ToJsonString() string {
1360    b, _ := json.Marshal(r)
1361    return string(b)
1362}
1363
1364// FromJsonString It is highly **NOT** recommended to use this function
1365// because it has no param check, nor strict type check
1366func (r *DeleteProductRequest) FromJsonString(s string) error {
1367	f := make(map[string]interface{})
1368	if err := json.Unmarshal([]byte(s), &f); err != nil {
1369		return err
1370	}
1371	delete(f, "ProductId")
1372	if len(f) > 0 {
1373		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteProductRequest has unknown keys!", "")
1374	}
1375	return json.Unmarshal([]byte(s), &r)
1376}
1377
1378type DeleteProductResponse struct {
1379	*tchttp.BaseResponse
1380	Response *struct {
1381
1382		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1383		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1384	} `json:"Response"`
1385}
1386
1387func (r *DeleteProductResponse) ToJsonString() string {
1388    b, _ := json.Marshal(r)
1389    return string(b)
1390}
1391
1392// FromJsonString It is highly **NOT** recommended to use this function
1393// because it has no param check, nor strict type check
1394func (r *DeleteProductResponse) FromJsonString(s string) error {
1395	return json.Unmarshal([]byte(s), &r)
1396}
1397
1398type DescribeAIModelApplicationsRequest struct {
1399	*tchttp.BaseRequest
1400
1401	// 模型ID
1402	ModelId *string `json:"ModelId,omitempty" name:"ModelId"`
1403
1404	// 分页的大小,最大100
1405	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
1406
1407	// 偏移量,Offset从0开始
1408	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
1409
1410	// 产品ID
1411	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
1412}
1413
1414func (r *DescribeAIModelApplicationsRequest) ToJsonString() string {
1415    b, _ := json.Marshal(r)
1416    return string(b)
1417}
1418
1419// FromJsonString It is highly **NOT** recommended to use this function
1420// because it has no param check, nor strict type check
1421func (r *DescribeAIModelApplicationsRequest) FromJsonString(s string) error {
1422	f := make(map[string]interface{})
1423	if err := json.Unmarshal([]byte(s), &f); err != nil {
1424		return err
1425	}
1426	delete(f, "ModelId")
1427	delete(f, "Limit")
1428	delete(f, "Offset")
1429	delete(f, "ProductId")
1430	if len(f) > 0 {
1431		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAIModelApplicationsRequest has unknown keys!", "")
1432	}
1433	return json.Unmarshal([]byte(s), &r)
1434}
1435
1436type DescribeAIModelApplicationsResponse struct {
1437	*tchttp.BaseResponse
1438	Response *struct {
1439
1440		// 申请记录数量
1441		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
1442
1443		// 申请记录数组
1444		Applications []*AIModelApplication `json:"Applications,omitempty" name:"Applications"`
1445
1446		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1447		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1448	} `json:"Response"`
1449}
1450
1451func (r *DescribeAIModelApplicationsResponse) ToJsonString() string {
1452    b, _ := json.Marshal(r)
1453    return string(b)
1454}
1455
1456// FromJsonString It is highly **NOT** recommended to use this function
1457// because it has no param check, nor strict type check
1458func (r *DescribeAIModelApplicationsResponse) FromJsonString(s string) error {
1459	return json.Unmarshal([]byte(s), &r)
1460}
1461
1462type DescribeAIModelChannelRequest struct {
1463	*tchttp.BaseRequest
1464
1465	// 模型ID
1466	ModelId *string `json:"ModelId,omitempty" name:"ModelId"`
1467
1468	// 产品ID
1469	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
1470}
1471
1472func (r *DescribeAIModelChannelRequest) ToJsonString() string {
1473    b, _ := json.Marshal(r)
1474    return string(b)
1475}
1476
1477// FromJsonString It is highly **NOT** recommended to use this function
1478// because it has no param check, nor strict type check
1479func (r *DescribeAIModelChannelRequest) FromJsonString(s string) error {
1480	f := make(map[string]interface{})
1481	if err := json.Unmarshal([]byte(s), &f); err != nil {
1482		return err
1483	}
1484	delete(f, "ModelId")
1485	delete(f, "ProductId")
1486	if len(f) > 0 {
1487		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAIModelChannelRequest has unknown keys!", "")
1488	}
1489	return json.Unmarshal([]byte(s), &r)
1490}
1491
1492type DescribeAIModelChannelResponse struct {
1493	*tchttp.BaseResponse
1494	Response *struct {
1495
1496		// 推送类型。ckafka:消息队列;forward:http/https推送
1497		Type *string `json:"Type,omitempty" name:"Type"`
1498
1499		// 第三方推送地址
1500	// 注意:此字段可能返回 null,表示取不到有效值。
1501		ForwardAddress *string `json:"ForwardAddress,omitempty" name:"ForwardAddress"`
1502
1503		// 第三方推送密钥
1504	// 注意:此字段可能返回 null,表示取不到有效值。
1505		ForwardKey *string `json:"ForwardKey,omitempty" name:"ForwardKey"`
1506
1507		// ckafka地域
1508	// 注意:此字段可能返回 null,表示取不到有效值。
1509		CKafkaRegion *string `json:"CKafkaRegion,omitempty" name:"CKafkaRegion"`
1510
1511		// ckafka实例
1512	// 注意:此字段可能返回 null,表示取不到有效值。
1513		CKafkaInstance *string `json:"CKafkaInstance,omitempty" name:"CKafkaInstance"`
1514
1515		// ckafka订阅主题
1516	// 注意:此字段可能返回 null,表示取不到有效值。
1517		CKafkaTopic *string `json:"CKafkaTopic,omitempty" name:"CKafkaTopic"`
1518
1519		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1520		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1521	} `json:"Response"`
1522}
1523
1524func (r *DescribeAIModelChannelResponse) ToJsonString() string {
1525    b, _ := json.Marshal(r)
1526    return string(b)
1527}
1528
1529// FromJsonString It is highly **NOT** recommended to use this function
1530// because it has no param check, nor strict type check
1531func (r *DescribeAIModelChannelResponse) FromJsonString(s string) error {
1532	return json.Unmarshal([]byte(s), &r)
1533}
1534
1535type DescribeAIModelUsageRequest struct {
1536	*tchttp.BaseRequest
1537
1538	// 模型ID
1539	ModelId *string `json:"ModelId,omitempty" name:"ModelId"`
1540
1541	// 产品ID
1542	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
1543
1544	// 偏移量,从0开始
1545	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
1546
1547	// 分页的大小,最大100
1548	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
1549}
1550
1551func (r *DescribeAIModelUsageRequest) ToJsonString() string {
1552    b, _ := json.Marshal(r)
1553    return string(b)
1554}
1555
1556// FromJsonString It is highly **NOT** recommended to use this function
1557// because it has no param check, nor strict type check
1558func (r *DescribeAIModelUsageRequest) FromJsonString(s string) error {
1559	f := make(map[string]interface{})
1560	if err := json.Unmarshal([]byte(s), &f); err != nil {
1561		return err
1562	}
1563	delete(f, "ModelId")
1564	delete(f, "ProductId")
1565	delete(f, "Offset")
1566	delete(f, "Limit")
1567	if len(f) > 0 {
1568		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAIModelUsageRequest has unknown keys!", "")
1569	}
1570	return json.Unmarshal([]byte(s), &r)
1571}
1572
1573type DescribeAIModelUsageResponse struct {
1574	*tchttp.BaseResponse
1575	Response *struct {
1576
1577		// AI模型资源包总量
1578		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
1579
1580		// AI模型资源包信息数组
1581		UsageInfo []*AIModelUsageInfo `json:"UsageInfo,omitempty" name:"UsageInfo"`
1582
1583		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1584		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1585	} `json:"Response"`
1586}
1587
1588func (r *DescribeAIModelUsageResponse) ToJsonString() string {
1589    b, _ := json.Marshal(r)
1590    return string(b)
1591}
1592
1593// FromJsonString It is highly **NOT** recommended to use this function
1594// because it has no param check, nor strict type check
1595func (r *DescribeAIModelUsageResponse) FromJsonString(s string) error {
1596	return json.Unmarshal([]byte(s), &r)
1597}
1598
1599type DescribeAIModelsRequest struct {
1600	*tchttp.BaseRequest
1601
1602	// 模型ID
1603	ModelId *string `json:"ModelId,omitempty" name:"ModelId"`
1604
1605	// 申请状态:1-已申请;2-已取消;3-已拒绝;4-已通过
1606	Status *uint64 `json:"Status,omitempty" name:"Status"`
1607
1608	// 偏移量,Offset从0开始
1609	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
1610
1611	// 分页的大小,最大100
1612	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
1613}
1614
1615func (r *DescribeAIModelsRequest) ToJsonString() string {
1616    b, _ := json.Marshal(r)
1617    return string(b)
1618}
1619
1620// FromJsonString It is highly **NOT** recommended to use this function
1621// because it has no param check, nor strict type check
1622func (r *DescribeAIModelsRequest) FromJsonString(s string) error {
1623	f := make(map[string]interface{})
1624	if err := json.Unmarshal([]byte(s), &f); err != nil {
1625		return err
1626	}
1627	delete(f, "ModelId")
1628	delete(f, "Status")
1629	delete(f, "Offset")
1630	delete(f, "Limit")
1631	if len(f) > 0 {
1632		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAIModelsRequest has unknown keys!", "")
1633	}
1634	return json.Unmarshal([]byte(s), &r)
1635}
1636
1637type DescribeAIModelsResponse struct {
1638	*tchttp.BaseResponse
1639	Response *struct {
1640
1641		// AI模型数量
1642		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
1643
1644		// AI模型信息数组
1645		Models []*AIModelInfo `json:"Models,omitempty" name:"Models"`
1646
1647		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1648		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1649	} `json:"Response"`
1650}
1651
1652func (r *DescribeAIModelsResponse) ToJsonString() string {
1653    b, _ := json.Marshal(r)
1654    return string(b)
1655}
1656
1657// FromJsonString It is highly **NOT** recommended to use this function
1658// because it has no param check, nor strict type check
1659func (r *DescribeAIModelsResponse) FromJsonString(s string) error {
1660	return json.Unmarshal([]byte(s), &r)
1661}
1662
1663type DescribeBalanceRequest struct {
1664	*tchttp.BaseRequest
1665
1666	// 账户类型:1-设备接入;2-云存。
1667	AccountType *uint64 `json:"AccountType,omitempty" name:"AccountType"`
1668}
1669
1670func (r *DescribeBalanceRequest) ToJsonString() string {
1671    b, _ := json.Marshal(r)
1672    return string(b)
1673}
1674
1675// FromJsonString It is highly **NOT** recommended to use this function
1676// because it has no param check, nor strict type check
1677func (r *DescribeBalanceRequest) FromJsonString(s string) error {
1678	f := make(map[string]interface{})
1679	if err := json.Unmarshal([]byte(s), &f); err != nil {
1680		return err
1681	}
1682	delete(f, "AccountType")
1683	if len(f) > 0 {
1684		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeBalanceRequest has unknown keys!", "")
1685	}
1686	return json.Unmarshal([]byte(s), &r)
1687}
1688
1689type DescribeBalanceResponse struct {
1690	*tchttp.BaseResponse
1691	Response *struct {
1692
1693		// 账户余额,单位:分(人民币)。
1694		Balance *uint64 `json:"Balance,omitempty" name:"Balance"`
1695
1696		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1697		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1698	} `json:"Response"`
1699}
1700
1701func (r *DescribeBalanceResponse) ToJsonString() string {
1702    b, _ := json.Marshal(r)
1703    return string(b)
1704}
1705
1706// FromJsonString It is highly **NOT** recommended to use this function
1707// because it has no param check, nor strict type check
1708func (r *DescribeBalanceResponse) FromJsonString(s string) error {
1709	return json.Unmarshal([]byte(s), &r)
1710}
1711
1712type DescribeBalanceTransactionsRequest struct {
1713	*tchttp.BaseRequest
1714
1715	// 账户类型:1-设备接入;2-云存。
1716	AccountType *uint64 `json:"AccountType,omitempty" name:"AccountType"`
1717
1718	// 分页游标开始,默认为0开始拉取第一条。
1719	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
1720
1721	// 分页每页数量。
1722	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
1723
1724	// 流水类型:All-全部类型;Recharge-充值;CreateOrder-新购。默认为All
1725	Operation *string `json:"Operation,omitempty" name:"Operation"`
1726}
1727
1728func (r *DescribeBalanceTransactionsRequest) ToJsonString() string {
1729    b, _ := json.Marshal(r)
1730    return string(b)
1731}
1732
1733// FromJsonString It is highly **NOT** recommended to use this function
1734// because it has no param check, nor strict type check
1735func (r *DescribeBalanceTransactionsRequest) FromJsonString(s string) error {
1736	f := make(map[string]interface{})
1737	if err := json.Unmarshal([]byte(s), &f); err != nil {
1738		return err
1739	}
1740	delete(f, "AccountType")
1741	delete(f, "Offset")
1742	delete(f, "Limit")
1743	delete(f, "Operation")
1744	if len(f) > 0 {
1745		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeBalanceTransactionsRequest has unknown keys!", "")
1746	}
1747	return json.Unmarshal([]byte(s), &r)
1748}
1749
1750type DescribeBalanceTransactionsResponse struct {
1751	*tchttp.BaseResponse
1752	Response *struct {
1753
1754		// 账户流水总数。
1755		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
1756
1757		// 账户流水详情数组。
1758		Transactions []*BalanceTransaction `json:"Transactions,omitempty" name:"Transactions"`
1759
1760		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1761		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1762	} `json:"Response"`
1763}
1764
1765func (r *DescribeBalanceTransactionsResponse) ToJsonString() string {
1766    b, _ := json.Marshal(r)
1767    return string(b)
1768}
1769
1770// FromJsonString It is highly **NOT** recommended to use this function
1771// because it has no param check, nor strict type check
1772func (r *DescribeBalanceTransactionsResponse) FromJsonString(s string) error {
1773	return json.Unmarshal([]byte(s), &r)
1774}
1775
1776type DescribeBatchRequest struct {
1777	*tchttp.BaseRequest
1778
1779	// 批次ID
1780	BatchId *uint64 `json:"BatchId,omitempty" name:"BatchId"`
1781}
1782
1783func (r *DescribeBatchRequest) ToJsonString() string {
1784    b, _ := json.Marshal(r)
1785    return string(b)
1786}
1787
1788// FromJsonString It is highly **NOT** recommended to use this function
1789// because it has no param check, nor strict type check
1790func (r *DescribeBatchRequest) FromJsonString(s string) error {
1791	f := make(map[string]interface{})
1792	if err := json.Unmarshal([]byte(s), &f); err != nil {
1793		return err
1794	}
1795	delete(f, "BatchId")
1796	if len(f) > 0 {
1797		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeBatchRequest has unknown keys!", "")
1798	}
1799	return json.Unmarshal([]byte(s), &r)
1800}
1801
1802type DescribeBatchResponse struct {
1803	*tchttp.BaseResponse
1804	Response *struct {
1805
1806		// 批次详情
1807		Data *VideoBatch `json:"Data,omitempty" name:"Data"`
1808
1809		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1810		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1811	} `json:"Response"`
1812}
1813
1814func (r *DescribeBatchResponse) ToJsonString() string {
1815    b, _ := json.Marshal(r)
1816    return string(b)
1817}
1818
1819// FromJsonString It is highly **NOT** recommended to use this function
1820// because it has no param check, nor strict type check
1821func (r *DescribeBatchResponse) FromJsonString(s string) error {
1822	return json.Unmarshal([]byte(s), &r)
1823}
1824
1825type DescribeBatchsRequest struct {
1826	*tchttp.BaseRequest
1827
1828	// 产品ID
1829	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
1830
1831	// 分页的大小,最大100
1832	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
1833
1834	// 偏移量,Offset从0开始
1835	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
1836}
1837
1838func (r *DescribeBatchsRequest) ToJsonString() string {
1839    b, _ := json.Marshal(r)
1840    return string(b)
1841}
1842
1843// FromJsonString It is highly **NOT** recommended to use this function
1844// because it has no param check, nor strict type check
1845func (r *DescribeBatchsRequest) FromJsonString(s string) error {
1846	f := make(map[string]interface{})
1847	if err := json.Unmarshal([]byte(s), &f); err != nil {
1848		return err
1849	}
1850	delete(f, "ProductId")
1851	delete(f, "Limit")
1852	delete(f, "Offset")
1853	if len(f) > 0 {
1854		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeBatchsRequest has unknown keys!", "")
1855	}
1856	return json.Unmarshal([]byte(s), &r)
1857}
1858
1859type DescribeBatchsResponse struct {
1860	*tchttp.BaseResponse
1861	Response *struct {
1862
1863		// 批次数量
1864		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
1865
1866		// 批次列表详情
1867		Data []*VideoBatch `json:"Data,omitempty" name:"Data"`
1868
1869		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1870		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1871	} `json:"Response"`
1872}
1873
1874func (r *DescribeBatchsResponse) ToJsonString() string {
1875    b, _ := json.Marshal(r)
1876    return string(b)
1877}
1878
1879// FromJsonString It is highly **NOT** recommended to use this function
1880// because it has no param check, nor strict type check
1881func (r *DescribeBatchsResponse) FromJsonString(s string) error {
1882	return json.Unmarshal([]byte(s), &r)
1883}
1884
1885type DescribeCategoryRequest struct {
1886	*tchttp.BaseRequest
1887
1888	// Category ID。
1889	Id *int64 `json:"Id,omitempty" name:"Id"`
1890}
1891
1892func (r *DescribeCategoryRequest) ToJsonString() string {
1893    b, _ := json.Marshal(r)
1894    return string(b)
1895}
1896
1897// FromJsonString It is highly **NOT** recommended to use this function
1898// because it has no param check, nor strict type check
1899func (r *DescribeCategoryRequest) FromJsonString(s string) error {
1900	f := make(map[string]interface{})
1901	if err := json.Unmarshal([]byte(s), &f); err != nil {
1902		return err
1903	}
1904	delete(f, "Id")
1905	if len(f) > 0 {
1906		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeCategoryRequest has unknown keys!", "")
1907	}
1908	return json.Unmarshal([]byte(s), &r)
1909}
1910
1911type DescribeCategoryResponse struct {
1912	*tchttp.BaseResponse
1913	Response *struct {
1914
1915		// Category详情
1916		Data *ProductTemplate `json:"Data,omitempty" name:"Data"`
1917
1918		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1919		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1920	} `json:"Response"`
1921}
1922
1923func (r *DescribeCategoryResponse) ToJsonString() string {
1924    b, _ := json.Marshal(r)
1925    return string(b)
1926}
1927
1928// FromJsonString It is highly **NOT** recommended to use this function
1929// because it has no param check, nor strict type check
1930func (r *DescribeCategoryResponse) FromJsonString(s string) error {
1931	return json.Unmarshal([]byte(s), &r)
1932}
1933
1934type DescribeCloudStorageDateRequest struct {
1935	*tchttp.BaseRequest
1936
1937	// 产品ID
1938	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
1939
1940	// 设备名称
1941	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
1942
1943	// 用户ID
1944	UserId *string `json:"UserId,omitempty" name:"UserId"`
1945}
1946
1947func (r *DescribeCloudStorageDateRequest) ToJsonString() string {
1948    b, _ := json.Marshal(r)
1949    return string(b)
1950}
1951
1952// FromJsonString It is highly **NOT** recommended to use this function
1953// because it has no param check, nor strict type check
1954func (r *DescribeCloudStorageDateRequest) FromJsonString(s string) error {
1955	f := make(map[string]interface{})
1956	if err := json.Unmarshal([]byte(s), &f); err != nil {
1957		return err
1958	}
1959	delete(f, "ProductId")
1960	delete(f, "DeviceName")
1961	delete(f, "UserId")
1962	if len(f) > 0 {
1963		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeCloudStorageDateRequest has unknown keys!", "")
1964	}
1965	return json.Unmarshal([]byte(s), &r)
1966}
1967
1968type DescribeCloudStorageDateResponse struct {
1969	*tchttp.BaseResponse
1970	Response *struct {
1971
1972		// 云存日期数组,["2021-01-05","2021-01-06"]
1973		Data []*string `json:"Data,omitempty" name:"Data"`
1974
1975		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1976		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1977	} `json:"Response"`
1978}
1979
1980func (r *DescribeCloudStorageDateResponse) ToJsonString() string {
1981    b, _ := json.Marshal(r)
1982    return string(b)
1983}
1984
1985// FromJsonString It is highly **NOT** recommended to use this function
1986// because it has no param check, nor strict type check
1987func (r *DescribeCloudStorageDateResponse) FromJsonString(s string) error {
1988	return json.Unmarshal([]byte(s), &r)
1989}
1990
1991type DescribeCloudStorageEventsRequest struct {
1992	*tchttp.BaseRequest
1993
1994	// 产品ID
1995	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
1996
1997	// 设备名称
1998	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
1999
2000	// 起始时间(Unix 时间戳,秒级), 为0 表示 当前时间 - 24h
2001	StartTime *uint64 `json:"StartTime,omitempty" name:"StartTime"`
2002
2003	// 结束时间(Unix 时间戳,秒级), 为0 表示当前时间
2004	EndTime *uint64 `json:"EndTime,omitempty" name:"EndTime"`
2005
2006	// 请求上下文, 用作查询游标
2007	Context *string `json:"Context,omitempty" name:"Context"`
2008
2009	// 单次获取的历史数据项目的最大数量, 缺省10
2010	Size *uint64 `json:"Size,omitempty" name:"Size"`
2011
2012	// 事件标识符,可以用来指定查询特定的事件,如果不指定,则查询所有事件。
2013	EventId *string `json:"EventId,omitempty" name:"EventId"`
2014
2015	// 用户ID
2016	UserId *string `json:"UserId,omitempty" name:"UserId"`
2017}
2018
2019func (r *DescribeCloudStorageEventsRequest) ToJsonString() string {
2020    b, _ := json.Marshal(r)
2021    return string(b)
2022}
2023
2024// FromJsonString It is highly **NOT** recommended to use this function
2025// because it has no param check, nor strict type check
2026func (r *DescribeCloudStorageEventsRequest) FromJsonString(s string) error {
2027	f := make(map[string]interface{})
2028	if err := json.Unmarshal([]byte(s), &f); err != nil {
2029		return err
2030	}
2031	delete(f, "ProductId")
2032	delete(f, "DeviceName")
2033	delete(f, "StartTime")
2034	delete(f, "EndTime")
2035	delete(f, "Context")
2036	delete(f, "Size")
2037	delete(f, "EventId")
2038	delete(f, "UserId")
2039	if len(f) > 0 {
2040		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeCloudStorageEventsRequest has unknown keys!", "")
2041	}
2042	return json.Unmarshal([]byte(s), &r)
2043}
2044
2045type DescribeCloudStorageEventsResponse struct {
2046	*tchttp.BaseResponse
2047	Response *struct {
2048
2049		// 云存事件列表
2050		Events []*CloudStorageEvent `json:"Events,omitempty" name:"Events"`
2051
2052		// 请求上下文, 用作查询游标
2053		Context *string `json:"Context,omitempty" name:"Context"`
2054
2055		// 拉取结果是否已经结束
2056		Listover *bool `json:"Listover,omitempty" name:"Listover"`
2057
2058		// 拉取结果数量
2059		Total *uint64 `json:"Total,omitempty" name:"Total"`
2060
2061		// 视频播放URL
2062		VideoURL *string `json:"VideoURL,omitempty" name:"VideoURL"`
2063
2064		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2065		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2066	} `json:"Response"`
2067}
2068
2069func (r *DescribeCloudStorageEventsResponse) ToJsonString() string {
2070    b, _ := json.Marshal(r)
2071    return string(b)
2072}
2073
2074// FromJsonString It is highly **NOT** recommended to use this function
2075// because it has no param check, nor strict type check
2076func (r *DescribeCloudStorageEventsResponse) FromJsonString(s string) error {
2077	return json.Unmarshal([]byte(s), &r)
2078}
2079
2080type DescribeCloudStorageRequest struct {
2081	*tchttp.BaseRequest
2082
2083	// 产品ID
2084	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
2085
2086	// 设备名称
2087	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
2088
2089	// 云存用户ID
2090	UserId *string `json:"UserId,omitempty" name:"UserId"`
2091}
2092
2093func (r *DescribeCloudStorageRequest) ToJsonString() string {
2094    b, _ := json.Marshal(r)
2095    return string(b)
2096}
2097
2098// FromJsonString It is highly **NOT** recommended to use this function
2099// because it has no param check, nor strict type check
2100func (r *DescribeCloudStorageRequest) FromJsonString(s string) error {
2101	f := make(map[string]interface{})
2102	if err := json.Unmarshal([]byte(s), &f); err != nil {
2103		return err
2104	}
2105	delete(f, "ProductId")
2106	delete(f, "DeviceName")
2107	delete(f, "UserId")
2108	if len(f) > 0 {
2109		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeCloudStorageRequest has unknown keys!", "")
2110	}
2111	return json.Unmarshal([]byte(s), &r)
2112}
2113
2114type DescribeCloudStorageResponse struct {
2115	*tchttp.BaseResponse
2116	Response *struct {
2117
2118		// 云存开启状态,1为开启,0为未开启或已过期
2119		Status *uint64 `json:"Status,omitempty" name:"Status"`
2120
2121		// 云存类型,1为全时云存,2为事件云存
2122		Type *uint64 `json:"Type,omitempty" name:"Type"`
2123
2124		// 云存套餐过期时间
2125		ExpireTime *uint64 `json:"ExpireTime,omitempty" name:"ExpireTime"`
2126
2127		// 云存回看时长
2128		ShiftDuration *uint64 `json:"ShiftDuration,omitempty" name:"ShiftDuration"`
2129
2130		// 云存用户ID
2131	// 注意:此字段可能返回 null,表示取不到有效值。
2132		UserId *string `json:"UserId,omitempty" name:"UserId"`
2133
2134		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2135		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2136	} `json:"Response"`
2137}
2138
2139func (r *DescribeCloudStorageResponse) ToJsonString() string {
2140    b, _ := json.Marshal(r)
2141    return string(b)
2142}
2143
2144// FromJsonString It is highly **NOT** recommended to use this function
2145// because it has no param check, nor strict type check
2146func (r *DescribeCloudStorageResponse) FromJsonString(s string) error {
2147	return json.Unmarshal([]byte(s), &r)
2148}
2149
2150type DescribeCloudStorageThumbnailRequest struct {
2151	*tchttp.BaseRequest
2152
2153	// 产品ID
2154	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
2155
2156	// 设备名称
2157	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
2158
2159	// 缩略图文件名
2160	Thumbnail *string `json:"Thumbnail,omitempty" name:"Thumbnail"`
2161}
2162
2163func (r *DescribeCloudStorageThumbnailRequest) ToJsonString() string {
2164    b, _ := json.Marshal(r)
2165    return string(b)
2166}
2167
2168// FromJsonString It is highly **NOT** recommended to use this function
2169// because it has no param check, nor strict type check
2170func (r *DescribeCloudStorageThumbnailRequest) FromJsonString(s string) error {
2171	f := make(map[string]interface{})
2172	if err := json.Unmarshal([]byte(s), &f); err != nil {
2173		return err
2174	}
2175	delete(f, "ProductId")
2176	delete(f, "DeviceName")
2177	delete(f, "Thumbnail")
2178	if len(f) > 0 {
2179		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeCloudStorageThumbnailRequest has unknown keys!", "")
2180	}
2181	return json.Unmarshal([]byte(s), &r)
2182}
2183
2184type DescribeCloudStorageThumbnailResponse struct {
2185	*tchttp.BaseResponse
2186	Response *struct {
2187
2188		// 缩略图访问地址
2189		ThumbnailURL *string `json:"ThumbnailURL,omitempty" name:"ThumbnailURL"`
2190
2191		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2192		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2193	} `json:"Response"`
2194}
2195
2196func (r *DescribeCloudStorageThumbnailResponse) ToJsonString() string {
2197    b, _ := json.Marshal(r)
2198    return string(b)
2199}
2200
2201// FromJsonString It is highly **NOT** recommended to use this function
2202// because it has no param check, nor strict type check
2203func (r *DescribeCloudStorageThumbnailResponse) FromJsonString(s string) error {
2204	return json.Unmarshal([]byte(s), &r)
2205}
2206
2207type DescribeCloudStorageTimeRequest struct {
2208	*tchttp.BaseRequest
2209
2210	// 产品ID
2211	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
2212
2213	// 设备名称
2214	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
2215
2216	// 云存日期,例如"2020-01-05"
2217	Date *string `json:"Date,omitempty" name:"Date"`
2218
2219	// 开始时间,unix时间
2220	StartTime *uint64 `json:"StartTime,omitempty" name:"StartTime"`
2221
2222	// 结束时间,unix时间
2223	EndTime *uint64 `json:"EndTime,omitempty" name:"EndTime"`
2224
2225	// 用户ID
2226	UserId *string `json:"UserId,omitempty" name:"UserId"`
2227}
2228
2229func (r *DescribeCloudStorageTimeRequest) ToJsonString() string {
2230    b, _ := json.Marshal(r)
2231    return string(b)
2232}
2233
2234// FromJsonString It is highly **NOT** recommended to use this function
2235// because it has no param check, nor strict type check
2236func (r *DescribeCloudStorageTimeRequest) FromJsonString(s string) error {
2237	f := make(map[string]interface{})
2238	if err := json.Unmarshal([]byte(s), &f); err != nil {
2239		return err
2240	}
2241	delete(f, "ProductId")
2242	delete(f, "DeviceName")
2243	delete(f, "Date")
2244	delete(f, "StartTime")
2245	delete(f, "EndTime")
2246	delete(f, "UserId")
2247	if len(f) > 0 {
2248		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeCloudStorageTimeRequest has unknown keys!", "")
2249	}
2250	return json.Unmarshal([]byte(s), &r)
2251}
2252
2253type DescribeCloudStorageTimeResponse struct {
2254	*tchttp.BaseResponse
2255	Response *struct {
2256
2257		// 接口返回数据
2258		Data *CloudStorageTimeData `json:"Data,omitempty" name:"Data"`
2259
2260		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2261		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2262	} `json:"Response"`
2263}
2264
2265func (r *DescribeCloudStorageTimeResponse) ToJsonString() string {
2266    b, _ := json.Marshal(r)
2267    return string(b)
2268}
2269
2270// FromJsonString It is highly **NOT** recommended to use this function
2271// because it has no param check, nor strict type check
2272func (r *DescribeCloudStorageTimeResponse) FromJsonString(s string) error {
2273	return json.Unmarshal([]byte(s), &r)
2274}
2275
2276type DescribeCloudStorageUsersRequest struct {
2277	*tchttp.BaseRequest
2278
2279	// 产品ID
2280	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
2281
2282	// 设备名称
2283	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
2284
2285	// 分页拉取数量
2286	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
2287
2288	// 分页拉取偏移
2289	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
2290}
2291
2292func (r *DescribeCloudStorageUsersRequest) ToJsonString() string {
2293    b, _ := json.Marshal(r)
2294    return string(b)
2295}
2296
2297// FromJsonString It is highly **NOT** recommended to use this function
2298// because it has no param check, nor strict type check
2299func (r *DescribeCloudStorageUsersRequest) FromJsonString(s string) error {
2300	f := make(map[string]interface{})
2301	if err := json.Unmarshal([]byte(s), &f); err != nil {
2302		return err
2303	}
2304	delete(f, "ProductId")
2305	delete(f, "DeviceName")
2306	delete(f, "Limit")
2307	delete(f, "Offset")
2308	if len(f) > 0 {
2309		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeCloudStorageUsersRequest has unknown keys!", "")
2310	}
2311	return json.Unmarshal([]byte(s), &r)
2312}
2313
2314type DescribeCloudStorageUsersResponse struct {
2315	*tchttp.BaseResponse
2316	Response *struct {
2317
2318		// 用户总数
2319		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
2320
2321		// 用户信息
2322		Users []*CloudStorageUserInfo `json:"Users,omitempty" name:"Users"`
2323
2324		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2325		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2326	} `json:"Response"`
2327}
2328
2329func (r *DescribeCloudStorageUsersResponse) ToJsonString() string {
2330    b, _ := json.Marshal(r)
2331    return string(b)
2332}
2333
2334// FromJsonString It is highly **NOT** recommended to use this function
2335// because it has no param check, nor strict type check
2336func (r *DescribeCloudStorageUsersResponse) FromJsonString(s string) error {
2337	return json.Unmarshal([]byte(s), &r)
2338}
2339
2340type DescribeDataForwardListRequest struct {
2341	*tchttp.BaseRequest
2342
2343	// 产品ID列表
2344	ProductIds *string `json:"ProductIds,omitempty" name:"ProductIds"`
2345}
2346
2347func (r *DescribeDataForwardListRequest) ToJsonString() string {
2348    b, _ := json.Marshal(r)
2349    return string(b)
2350}
2351
2352// FromJsonString It is highly **NOT** recommended to use this function
2353// because it has no param check, nor strict type check
2354func (r *DescribeDataForwardListRequest) FromJsonString(s string) error {
2355	f := make(map[string]interface{})
2356	if err := json.Unmarshal([]byte(s), &f); err != nil {
2357		return err
2358	}
2359	delete(f, "ProductIds")
2360	if len(f) > 0 {
2361		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDataForwardListRequest has unknown keys!", "")
2362	}
2363	return json.Unmarshal([]byte(s), &r)
2364}
2365
2366type DescribeDataForwardListResponse struct {
2367	*tchttp.BaseResponse
2368	Response *struct {
2369
2370		// 数据转发列表。
2371	// 注意:此字段可能返回 null,表示取不到有效值。
2372		DataForwardList []*DataForward `json:"DataForwardList,omitempty" name:"DataForwardList"`
2373
2374		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2375		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2376	} `json:"Response"`
2377}
2378
2379func (r *DescribeDataForwardListResponse) ToJsonString() string {
2380    b, _ := json.Marshal(r)
2381    return string(b)
2382}
2383
2384// FromJsonString It is highly **NOT** recommended to use this function
2385// because it has no param check, nor strict type check
2386func (r *DescribeDataForwardListResponse) FromJsonString(s string) error {
2387	return json.Unmarshal([]byte(s), &r)
2388}
2389
2390type DescribeDeviceActionHistoryRequest struct {
2391	*tchttp.BaseRequest
2392
2393	// 产品Id
2394	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
2395
2396	// 设备名称
2397	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
2398
2399	// 开始范围的 unix 毫秒时间戳
2400	MinTime *uint64 `json:"MinTime,omitempty" name:"MinTime"`
2401
2402	// 结束范围的 unix 毫秒时间戳
2403	MaxTime *uint64 `json:"MaxTime,omitempty" name:"MaxTime"`
2404
2405	// 动作Id
2406	ActionId *string `json:"ActionId,omitempty" name:"ActionId"`
2407
2408	// 查询条数 默认为0 最大不超过500
2409	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
2410
2411	// 游标,标识查询位置。
2412	Context *string `json:"Context,omitempty" name:"Context"`
2413}
2414
2415func (r *DescribeDeviceActionHistoryRequest) ToJsonString() string {
2416    b, _ := json.Marshal(r)
2417    return string(b)
2418}
2419
2420// FromJsonString It is highly **NOT** recommended to use this function
2421// because it has no param check, nor strict type check
2422func (r *DescribeDeviceActionHistoryRequest) FromJsonString(s string) error {
2423	f := make(map[string]interface{})
2424	if err := json.Unmarshal([]byte(s), &f); err != nil {
2425		return err
2426	}
2427	delete(f, "ProductId")
2428	delete(f, "DeviceName")
2429	delete(f, "MinTime")
2430	delete(f, "MaxTime")
2431	delete(f, "ActionId")
2432	delete(f, "Limit")
2433	delete(f, "Context")
2434	if len(f) > 0 {
2435		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDeviceActionHistoryRequest has unknown keys!", "")
2436	}
2437	return json.Unmarshal([]byte(s), &r)
2438}
2439
2440type DescribeDeviceActionHistoryResponse struct {
2441	*tchttp.BaseResponse
2442	Response *struct {
2443
2444		// 总条数
2445		TotalCounts *uint64 `json:"TotalCounts,omitempty" name:"TotalCounts"`
2446
2447		// 动作历史
2448	// 注意:此字段可能返回 null,表示取不到有效值。
2449		ActionHistories []*ActionHistory `json:"ActionHistories,omitempty" name:"ActionHistories"`
2450
2451		// 用于标识查询结果的上下文,翻页用。
2452	// 注意:此字段可能返回 null,表示取不到有效值。
2453		Context *string `json:"Context,omitempty" name:"Context"`
2454
2455		// 搜索结果是否已经结束。
2456	// 注意:此字段可能返回 null,表示取不到有效值。
2457		Listover *bool `json:"Listover,omitempty" name:"Listover"`
2458
2459		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2460		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2461	} `json:"Response"`
2462}
2463
2464func (r *DescribeDeviceActionHistoryResponse) ToJsonString() string {
2465    b, _ := json.Marshal(r)
2466    return string(b)
2467}
2468
2469// FromJsonString It is highly **NOT** recommended to use this function
2470// because it has no param check, nor strict type check
2471func (r *DescribeDeviceActionHistoryResponse) FromJsonString(s string) error {
2472	return json.Unmarshal([]byte(s), &r)
2473}
2474
2475type DescribeDeviceCommLogRequest struct {
2476	*tchttp.BaseRequest
2477
2478	// 开始时间 13位时间戳 单位毫秒
2479	MinTime *uint64 `json:"MinTime,omitempty" name:"MinTime"`
2480
2481	// 结束时间 13位时间戳 单位毫秒
2482	MaxTime *uint64 `json:"MaxTime,omitempty" name:"MaxTime"`
2483
2484	// 产品ID
2485	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
2486
2487	// 设备名称
2488	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
2489
2490	// 返回条数 默认为50
2491	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
2492
2493	// 检索上下文
2494	Context *string `json:"Context,omitempty" name:"Context"`
2495
2496	// 类型:shadow 下行,device 上行 默认为空则全部查询
2497	Type *string `json:"Type,omitempty" name:"Type"`
2498}
2499
2500func (r *DescribeDeviceCommLogRequest) ToJsonString() string {
2501    b, _ := json.Marshal(r)
2502    return string(b)
2503}
2504
2505// FromJsonString It is highly **NOT** recommended to use this function
2506// because it has no param check, nor strict type check
2507func (r *DescribeDeviceCommLogRequest) FromJsonString(s string) error {
2508	f := make(map[string]interface{})
2509	if err := json.Unmarshal([]byte(s), &f); err != nil {
2510		return err
2511	}
2512	delete(f, "MinTime")
2513	delete(f, "MaxTime")
2514	delete(f, "ProductId")
2515	delete(f, "DeviceName")
2516	delete(f, "Limit")
2517	delete(f, "Context")
2518	delete(f, "Type")
2519	if len(f) > 0 {
2520		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDeviceCommLogRequest has unknown keys!", "")
2521	}
2522	return json.Unmarshal([]byte(s), &r)
2523}
2524
2525type DescribeDeviceCommLogResponse struct {
2526	*tchttp.BaseResponse
2527	Response *struct {
2528
2529		// 数据是否已全部返回,true 表示数据全部返回,false 表示还有数据待返回,可将 Context 作为入参,继续查询返回结果。
2530		Listover *bool `json:"Listover,omitempty" name:"Listover"`
2531
2532		// 检索上下文,当 ListOver 为false时,可以用此上下文,继续读取后续数据
2533		Context *string `json:"Context,omitempty" name:"Context"`
2534
2535		// 日志数据结果数组,返回对应时间点及取值。
2536		Results []*DeviceCommLogItem `json:"Results,omitempty" name:"Results"`
2537
2538		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2539		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2540	} `json:"Response"`
2541}
2542
2543func (r *DescribeDeviceCommLogResponse) ToJsonString() string {
2544    b, _ := json.Marshal(r)
2545    return string(b)
2546}
2547
2548// FromJsonString It is highly **NOT** recommended to use this function
2549// because it has no param check, nor strict type check
2550func (r *DescribeDeviceCommLogResponse) FromJsonString(s string) error {
2551	return json.Unmarshal([]byte(s), &r)
2552}
2553
2554type DescribeDeviceDataHistoryRequest struct {
2555	*tchttp.BaseRequest
2556
2557	// 区间开始时间(Unix 时间戳,毫秒级)
2558	MinTime *uint64 `json:"MinTime,omitempty" name:"MinTime"`
2559
2560	// 区间结束时间(Unix 时间戳,毫秒级)
2561	MaxTime *uint64 `json:"MaxTime,omitempty" name:"MaxTime"`
2562
2563	// 产品ID
2564	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
2565
2566	// 设备名称
2567	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
2568
2569	// 属性字段名称,对应数据模板中功能属性的标识符
2570	FieldName *string `json:"FieldName,omitempty" name:"FieldName"`
2571
2572	// 返回条数
2573	Limit []*uint64 `json:"Limit,omitempty" name:"Limit"`
2574
2575	// 检索上下文
2576	Context *string `json:"Context,omitempty" name:"Context"`
2577}
2578
2579func (r *DescribeDeviceDataHistoryRequest) ToJsonString() string {
2580    b, _ := json.Marshal(r)
2581    return string(b)
2582}
2583
2584// FromJsonString It is highly **NOT** recommended to use this function
2585// because it has no param check, nor strict type check
2586func (r *DescribeDeviceDataHistoryRequest) FromJsonString(s string) error {
2587	f := make(map[string]interface{})
2588	if err := json.Unmarshal([]byte(s), &f); err != nil {
2589		return err
2590	}
2591	delete(f, "MinTime")
2592	delete(f, "MaxTime")
2593	delete(f, "ProductId")
2594	delete(f, "DeviceName")
2595	delete(f, "FieldName")
2596	delete(f, "Limit")
2597	delete(f, "Context")
2598	if len(f) > 0 {
2599		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDeviceDataHistoryRequest has unknown keys!", "")
2600	}
2601	return json.Unmarshal([]byte(s), &r)
2602}
2603
2604type DescribeDeviceDataHistoryResponse struct {
2605	*tchttp.BaseResponse
2606	Response *struct {
2607
2608		// 属性字段名称,对应数据模板中功能属性的标识符
2609	// 注意:此字段可能返回 null,表示取不到有效值。
2610		FieldName *string `json:"FieldName,omitempty" name:"FieldName"`
2611
2612		// 数据是否已全部返回,true 表示数据全部返回,false 表示还有数据待返回,可将 Context 作为入参,继续查询返回结果。
2613	// 注意:此字段可能返回 null,表示取不到有效值。
2614		Listover *bool `json:"Listover,omitempty" name:"Listover"`
2615
2616		// 检索上下文,当 ListOver 为false时,可以用此上下文,继续读取后续数据
2617	// 注意:此字段可能返回 null,表示取不到有效值。
2618		Context *string `json:"Context,omitempty" name:"Context"`
2619
2620		// 历史数据结果数组,返回对应时间点及取值。
2621	// 注意:此字段可能返回 null,表示取不到有效值。
2622		Results []*DeviceDataHistoryItem `json:"Results,omitempty" name:"Results"`
2623
2624		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2625		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2626	} `json:"Response"`
2627}
2628
2629func (r *DescribeDeviceDataHistoryResponse) ToJsonString() string {
2630    b, _ := json.Marshal(r)
2631    return string(b)
2632}
2633
2634// FromJsonString It is highly **NOT** recommended to use this function
2635// because it has no param check, nor strict type check
2636func (r *DescribeDeviceDataHistoryResponse) FromJsonString(s string) error {
2637	return json.Unmarshal([]byte(s), &r)
2638}
2639
2640type DescribeDeviceDataRequest struct {
2641	*tchttp.BaseRequest
2642
2643	// 产品ID
2644	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
2645
2646	// 设备名称
2647	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
2648}
2649
2650func (r *DescribeDeviceDataRequest) ToJsonString() string {
2651    b, _ := json.Marshal(r)
2652    return string(b)
2653}
2654
2655// FromJsonString It is highly **NOT** recommended to use this function
2656// because it has no param check, nor strict type check
2657func (r *DescribeDeviceDataRequest) FromJsonString(s string) error {
2658	f := make(map[string]interface{})
2659	if err := json.Unmarshal([]byte(s), &f); err != nil {
2660		return err
2661	}
2662	delete(f, "ProductId")
2663	delete(f, "DeviceName")
2664	if len(f) > 0 {
2665		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDeviceDataRequest has unknown keys!", "")
2666	}
2667	return json.Unmarshal([]byte(s), &r)
2668}
2669
2670type DescribeDeviceDataResponse struct {
2671	*tchttp.BaseResponse
2672	Response *struct {
2673
2674		// 设备数据
2675		Data *string `json:"Data,omitempty" name:"Data"`
2676
2677		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2678		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2679	} `json:"Response"`
2680}
2681
2682func (r *DescribeDeviceDataResponse) ToJsonString() string {
2683    b, _ := json.Marshal(r)
2684    return string(b)
2685}
2686
2687// FromJsonString It is highly **NOT** recommended to use this function
2688// because it has no param check, nor strict type check
2689func (r *DescribeDeviceDataResponse) FromJsonString(s string) error {
2690	return json.Unmarshal([]byte(s), &r)
2691}
2692
2693type DescribeDeviceEventHistoryRequest struct {
2694	*tchttp.BaseRequest
2695
2696	// 产品ID
2697	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
2698
2699	// 设备名称
2700	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
2701
2702	// 搜索的事件类型:alert 表示告警,fault 表示故障,info 表示信息,为空则表示查询上述所有类型事件
2703	Type *string `json:"Type,omitempty" name:"Type"`
2704
2705	// 起始时间(Unix 时间戳,秒级), 为0 表示 当前时间 - 24h
2706	StartTime *uint64 `json:"StartTime,omitempty" name:"StartTime"`
2707
2708	// 结束时间(Unix 时间戳,秒级), 为0 表示当前时间
2709	EndTime *uint64 `json:"EndTime,omitempty" name:"EndTime"`
2710
2711	// 搜索上下文, 用作查询游标
2712	Context *string `json:"Context,omitempty" name:"Context"`
2713
2714	// 单次获取的历史数据项目的最大数量, 缺省10
2715	Size *uint64 `json:"Size,omitempty" name:"Size"`
2716
2717	// 事件标识符,可以用来指定查询特定的事件,如果不指定,则查询所有事件。
2718	EventId *string `json:"EventId,omitempty" name:"EventId"`
2719}
2720
2721func (r *DescribeDeviceEventHistoryRequest) ToJsonString() string {
2722    b, _ := json.Marshal(r)
2723    return string(b)
2724}
2725
2726// FromJsonString It is highly **NOT** recommended to use this function
2727// because it has no param check, nor strict type check
2728func (r *DescribeDeviceEventHistoryRequest) FromJsonString(s string) error {
2729	f := make(map[string]interface{})
2730	if err := json.Unmarshal([]byte(s), &f); err != nil {
2731		return err
2732	}
2733	delete(f, "ProductId")
2734	delete(f, "DeviceName")
2735	delete(f, "Type")
2736	delete(f, "StartTime")
2737	delete(f, "EndTime")
2738	delete(f, "Context")
2739	delete(f, "Size")
2740	delete(f, "EventId")
2741	if len(f) > 0 {
2742		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDeviceEventHistoryRequest has unknown keys!", "")
2743	}
2744	return json.Unmarshal([]byte(s), &r)
2745}
2746
2747type DescribeDeviceEventHistoryResponse struct {
2748	*tchttp.BaseResponse
2749	Response *struct {
2750
2751		// 搜索上下文, 用作查询游标
2752	// 注意:此字段可能返回 null,表示取不到有效值。
2753		Context *string `json:"Context,omitempty" name:"Context"`
2754
2755		// 搜索结果数量
2756	// 注意:此字段可能返回 null,表示取不到有效值。
2757		Total *uint64 `json:"Total,omitempty" name:"Total"`
2758
2759		// 搜索结果是否已经结束
2760	// 注意:此字段可能返回 null,表示取不到有效值。
2761		Listover *bool `json:"Listover,omitempty" name:"Listover"`
2762
2763		// 搜集结果集
2764	// 注意:此字段可能返回 null,表示取不到有效值。
2765		EventHistory []*EventHistoryItem `json:"EventHistory,omitempty" name:"EventHistory"`
2766
2767		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2768		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2769	} `json:"Response"`
2770}
2771
2772func (r *DescribeDeviceEventHistoryResponse) ToJsonString() string {
2773    b, _ := json.Marshal(r)
2774    return string(b)
2775}
2776
2777// FromJsonString It is highly **NOT** recommended to use this function
2778// because it has no param check, nor strict type check
2779func (r *DescribeDeviceEventHistoryResponse) FromJsonString(s string) error {
2780	return json.Unmarshal([]byte(s), &r)
2781}
2782
2783type DescribeDeviceRequest struct {
2784	*tchttp.BaseRequest
2785
2786	// 产品ID
2787	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
2788
2789	// 设备名
2790	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
2791}
2792
2793func (r *DescribeDeviceRequest) ToJsonString() string {
2794    b, _ := json.Marshal(r)
2795    return string(b)
2796}
2797
2798// FromJsonString It is highly **NOT** recommended to use this function
2799// because it has no param check, nor strict type check
2800func (r *DescribeDeviceRequest) FromJsonString(s string) error {
2801	f := make(map[string]interface{})
2802	if err := json.Unmarshal([]byte(s), &f); err != nil {
2803		return err
2804	}
2805	delete(f, "ProductId")
2806	delete(f, "DeviceName")
2807	if len(f) > 0 {
2808		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDeviceRequest has unknown keys!", "")
2809	}
2810	return json.Unmarshal([]byte(s), &r)
2811}
2812
2813type DescribeDeviceResponse struct {
2814	*tchttp.BaseResponse
2815	Response *struct {
2816
2817		// 设备名
2818		DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
2819
2820		// 设备是否在线,0不在线,1在线,2获取失败,3未激活
2821		Online *uint64 `json:"Online,omitempty" name:"Online"`
2822
2823		// 设备最后上线时间
2824		LoginTime *uint64 `json:"LoginTime,omitempty" name:"LoginTime"`
2825
2826		// 设备密钥
2827		DevicePsk *string `json:"DevicePsk,omitempty" name:"DevicePsk"`
2828
2829		// 设备启用状态
2830		EnableState *uint64 `json:"EnableState,omitempty" name:"EnableState"`
2831
2832		// 设备过期时间
2833		ExpireTime *uint64 `json:"ExpireTime,omitempty" name:"ExpireTime"`
2834
2835		// 设备的sdk日志等级,0:关闭,1:错误,2:告警,3:信息,4:调试
2836	// 注意:此字段可能返回 null,表示取不到有效值。
2837		LogLevel *uint64 `json:"LogLevel,omitempty" name:"LogLevel"`
2838
2839		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2840		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2841	} `json:"Response"`
2842}
2843
2844func (r *DescribeDeviceResponse) ToJsonString() string {
2845    b, _ := json.Marshal(r)
2846    return string(b)
2847}
2848
2849// FromJsonString It is highly **NOT** recommended to use this function
2850// because it has no param check, nor strict type check
2851func (r *DescribeDeviceResponse) FromJsonString(s string) error {
2852	return json.Unmarshal([]byte(s), &r)
2853}
2854
2855type DescribeDeviceStatusLogRequest struct {
2856	*tchttp.BaseRequest
2857
2858	// 开始时间(毫秒)
2859	MinTime *uint64 `json:"MinTime,omitempty" name:"MinTime"`
2860
2861	// 结束时间(毫秒)
2862	MaxTime *uint64 `json:"MaxTime,omitempty" name:"MaxTime"`
2863
2864	// 产品ID
2865	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
2866
2867	// 设备名称
2868	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
2869
2870	// 返回条数
2871	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
2872
2873	// 检索上下文
2874	Context *string `json:"Context,omitempty" name:"Context"`
2875}
2876
2877func (r *DescribeDeviceStatusLogRequest) ToJsonString() string {
2878    b, _ := json.Marshal(r)
2879    return string(b)
2880}
2881
2882// FromJsonString It is highly **NOT** recommended to use this function
2883// because it has no param check, nor strict type check
2884func (r *DescribeDeviceStatusLogRequest) FromJsonString(s string) error {
2885	f := make(map[string]interface{})
2886	if err := json.Unmarshal([]byte(s), &f); err != nil {
2887		return err
2888	}
2889	delete(f, "MinTime")
2890	delete(f, "MaxTime")
2891	delete(f, "ProductId")
2892	delete(f, "DeviceName")
2893	delete(f, "Limit")
2894	delete(f, "Context")
2895	if len(f) > 0 {
2896		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDeviceStatusLogRequest has unknown keys!", "")
2897	}
2898	return json.Unmarshal([]byte(s), &r)
2899}
2900
2901type DescribeDeviceStatusLogResponse struct {
2902	*tchttp.BaseResponse
2903	Response *struct {
2904
2905		// 数据是否已全部返回,true 表示数据全部返回,false 表示还有数据待返回,可将 Context 作为入参,继续查询返回结果。
2906	// 注意:此字段可能返回 null,表示取不到有效值。
2907		Listover *bool `json:"Listover,omitempty" name:"Listover"`
2908
2909		// 检索上下文,当 ListOver 为false时,可以用此上下文,继续读取后续数据
2910	// 注意:此字段可能返回 null,表示取不到有效值。
2911		Context *string `json:"Context,omitempty" name:"Context"`
2912
2913		// 日志数据结果数组,返回对应时间点及取值。
2914	// 注意:此字段可能返回 null,表示取不到有效值。
2915		Results []*DeviceStatusLogItem `json:"Results,omitempty" name:"Results"`
2916
2917		// 日志数据结果总条数
2918	// 注意:此字段可能返回 null,表示取不到有效值。
2919		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
2920
2921		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2922		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2923	} `json:"Response"`
2924}
2925
2926func (r *DescribeDeviceStatusLogResponse) ToJsonString() string {
2927    b, _ := json.Marshal(r)
2928    return string(b)
2929}
2930
2931// FromJsonString It is highly **NOT** recommended to use this function
2932// because it has no param check, nor strict type check
2933func (r *DescribeDeviceStatusLogResponse) FromJsonString(s string) error {
2934	return json.Unmarshal([]byte(s), &r)
2935}
2936
2937type DescribeDevicesRequest struct {
2938	*tchttp.BaseRequest
2939
2940	// 需要查看设备列表的产品 ID
2941	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
2942
2943	// 偏移量,Offset从0开始
2944	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
2945
2946	// 分页的大小,最大100
2947	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
2948
2949	// 需要过滤的设备名称
2950	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
2951}
2952
2953func (r *DescribeDevicesRequest) ToJsonString() string {
2954    b, _ := json.Marshal(r)
2955    return string(b)
2956}
2957
2958// FromJsonString It is highly **NOT** recommended to use this function
2959// because it has no param check, nor strict type check
2960func (r *DescribeDevicesRequest) FromJsonString(s string) error {
2961	f := make(map[string]interface{})
2962	if err := json.Unmarshal([]byte(s), &f); err != nil {
2963		return err
2964	}
2965	delete(f, "ProductId")
2966	delete(f, "Offset")
2967	delete(f, "Limit")
2968	delete(f, "DeviceName")
2969	if len(f) > 0 {
2970		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDevicesRequest has unknown keys!", "")
2971	}
2972	return json.Unmarshal([]byte(s), &r)
2973}
2974
2975type DescribeDevicesResponse struct {
2976	*tchttp.BaseResponse
2977	Response *struct {
2978
2979		// 设备总数
2980		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
2981
2982		// 设备详细信息列表
2983		Devices []*DeviceInfo `json:"Devices,omitempty" name:"Devices"`
2984
2985		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2986		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
2987	} `json:"Response"`
2988}
2989
2990func (r *DescribeDevicesResponse) ToJsonString() string {
2991    b, _ := json.Marshal(r)
2992    return string(b)
2993}
2994
2995// FromJsonString It is highly **NOT** recommended to use this function
2996// because it has no param check, nor strict type check
2997func (r *DescribeDevicesResponse) FromJsonString(s string) error {
2998	return json.Unmarshal([]byte(s), &r)
2999}
3000
3001type DescribeFirmwareRequest struct {
3002	*tchttp.BaseRequest
3003
3004	// 产品ID
3005	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
3006
3007	// 固件版本号
3008	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`
3009}
3010
3011func (r *DescribeFirmwareRequest) ToJsonString() string {
3012    b, _ := json.Marshal(r)
3013    return string(b)
3014}
3015
3016// FromJsonString It is highly **NOT** recommended to use this function
3017// because it has no param check, nor strict type check
3018func (r *DescribeFirmwareRequest) FromJsonString(s string) error {
3019	f := make(map[string]interface{})
3020	if err := json.Unmarshal([]byte(s), &f); err != nil {
3021		return err
3022	}
3023	delete(f, "ProductID")
3024	delete(f, "FirmwareVersion")
3025	if len(f) > 0 {
3026		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeFirmwareRequest has unknown keys!", "")
3027	}
3028	return json.Unmarshal([]byte(s), &r)
3029}
3030
3031type DescribeFirmwareResponse struct {
3032	*tchttp.BaseResponse
3033	Response *struct {
3034
3035		// 固件版本号
3036		Version *string `json:"Version,omitempty" name:"Version"`
3037
3038		// 产品ID
3039		ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
3040
3041		// 固件名称
3042	// 注意:此字段可能返回 null,表示取不到有效值。
3043		Name *string `json:"Name,omitempty" name:"Name"`
3044
3045		// 固件描述
3046	// 注意:此字段可能返回 null,表示取不到有效值。
3047		Description *string `json:"Description,omitempty" name:"Description"`
3048
3049		// 固件Md5值
3050	// 注意:此字段可能返回 null,表示取不到有效值。
3051		Md5sum *string `json:"Md5sum,omitempty" name:"Md5sum"`
3052
3053		// 固件上传的秒级时间戳
3054	// 注意:此字段可能返回 null,表示取不到有效值。
3055		Createtime *uint64 `json:"Createtime,omitempty" name:"Createtime"`
3056
3057		// 产品名称
3058		ProductName *string `json:"ProductName,omitempty" name:"ProductName"`
3059
3060		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3061		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3062	} `json:"Response"`
3063}
3064
3065func (r *DescribeFirmwareResponse) ToJsonString() string {
3066    b, _ := json.Marshal(r)
3067    return string(b)
3068}
3069
3070// FromJsonString It is highly **NOT** recommended to use this function
3071// because it has no param check, nor strict type check
3072func (r *DescribeFirmwareResponse) FromJsonString(s string) error {
3073	return json.Unmarshal([]byte(s), &r)
3074}
3075
3076type DescribeFirmwareTaskDevicesRequest struct {
3077	*tchttp.BaseRequest
3078
3079	// 产品ID
3080	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
3081
3082	// 固件版本
3083	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`
3084
3085	// 筛选条件
3086	Filters []*SearchKeyword `json:"Filters,omitempty" name:"Filters"`
3087
3088	// 查询偏移量 默认为0
3089	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
3090
3091	// 查询的数量 默认为50
3092	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
3093}
3094
3095func (r *DescribeFirmwareTaskDevicesRequest) ToJsonString() string {
3096    b, _ := json.Marshal(r)
3097    return string(b)
3098}
3099
3100// FromJsonString It is highly **NOT** recommended to use this function
3101// because it has no param check, nor strict type check
3102func (r *DescribeFirmwareTaskDevicesRequest) FromJsonString(s string) error {
3103	f := make(map[string]interface{})
3104	if err := json.Unmarshal([]byte(s), &f); err != nil {
3105		return err
3106	}
3107	delete(f, "ProductID")
3108	delete(f, "FirmwareVersion")
3109	delete(f, "Filters")
3110	delete(f, "Offset")
3111	delete(f, "Limit")
3112	if len(f) > 0 {
3113		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeFirmwareTaskDevicesRequest has unknown keys!", "")
3114	}
3115	return json.Unmarshal([]byte(s), &r)
3116}
3117
3118type DescribeFirmwareTaskDevicesResponse struct {
3119	*tchttp.BaseResponse
3120	Response *struct {
3121
3122		// 固件升级任务的设备总数
3123	// 注意:此字段可能返回 null,表示取不到有效值。
3124		Total *uint64 `json:"Total,omitempty" name:"Total"`
3125
3126		// 固件升级任务的设备列表
3127		Devices []*DeviceUpdateStatus `json:"Devices,omitempty" name:"Devices"`
3128
3129		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3130		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3131	} `json:"Response"`
3132}
3133
3134func (r *DescribeFirmwareTaskDevicesResponse) ToJsonString() string {
3135    b, _ := json.Marshal(r)
3136    return string(b)
3137}
3138
3139// FromJsonString It is highly **NOT** recommended to use this function
3140// because it has no param check, nor strict type check
3141func (r *DescribeFirmwareTaskDevicesResponse) FromJsonString(s string) error {
3142	return json.Unmarshal([]byte(s), &r)
3143}
3144
3145type DescribeFirmwareTaskDistributionRequest struct {
3146	*tchttp.BaseRequest
3147
3148	// 产品ID
3149	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
3150
3151	// 固件版本号
3152	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`
3153
3154	// 固件升级任务ID
3155	TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"`
3156}
3157
3158func (r *DescribeFirmwareTaskDistributionRequest) ToJsonString() string {
3159    b, _ := json.Marshal(r)
3160    return string(b)
3161}
3162
3163// FromJsonString It is highly **NOT** recommended to use this function
3164// because it has no param check, nor strict type check
3165func (r *DescribeFirmwareTaskDistributionRequest) FromJsonString(s string) error {
3166	f := make(map[string]interface{})
3167	if err := json.Unmarshal([]byte(s), &f); err != nil {
3168		return err
3169	}
3170	delete(f, "ProductID")
3171	delete(f, "FirmwareVersion")
3172	delete(f, "TaskId")
3173	if len(f) > 0 {
3174		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeFirmwareTaskDistributionRequest has unknown keys!", "")
3175	}
3176	return json.Unmarshal([]byte(s), &r)
3177}
3178
3179type DescribeFirmwareTaskDistributionResponse struct {
3180	*tchttp.BaseResponse
3181	Response *struct {
3182
3183		// 固件升级任务状态分布信息
3184		StatusInfos []*StatusStatistic `json:"StatusInfos,omitempty" name:"StatusInfos"`
3185
3186		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3187		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3188	} `json:"Response"`
3189}
3190
3191func (r *DescribeFirmwareTaskDistributionResponse) ToJsonString() string {
3192    b, _ := json.Marshal(r)
3193    return string(b)
3194}
3195
3196// FromJsonString It is highly **NOT** recommended to use this function
3197// because it has no param check, nor strict type check
3198func (r *DescribeFirmwareTaskDistributionResponse) FromJsonString(s string) error {
3199	return json.Unmarshal([]byte(s), &r)
3200}
3201
3202type DescribeFirmwareTaskRequest struct {
3203	*tchttp.BaseRequest
3204
3205	// 产品ID
3206	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
3207
3208	// 固件版本号
3209	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`
3210
3211	// 固件任务ID
3212	TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"`
3213}
3214
3215func (r *DescribeFirmwareTaskRequest) ToJsonString() string {
3216    b, _ := json.Marshal(r)
3217    return string(b)
3218}
3219
3220// FromJsonString It is highly **NOT** recommended to use this function
3221// because it has no param check, nor strict type check
3222func (r *DescribeFirmwareTaskRequest) FromJsonString(s string) error {
3223	f := make(map[string]interface{})
3224	if err := json.Unmarshal([]byte(s), &f); err != nil {
3225		return err
3226	}
3227	delete(f, "ProductID")
3228	delete(f, "FirmwareVersion")
3229	delete(f, "TaskId")
3230	if len(f) > 0 {
3231		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeFirmwareTaskRequest has unknown keys!", "")
3232	}
3233	return json.Unmarshal([]byte(s), &r)
3234}
3235
3236type DescribeFirmwareTaskResponse struct {
3237	*tchttp.BaseResponse
3238	Response *struct {
3239
3240		// 固件任务ID
3241	// 注意:此字段可能返回 null,表示取不到有效值。
3242		TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"`
3243
3244		// 固件任务状态
3245	// 注意:此字段可能返回 null,表示取不到有效值。
3246		Status *int64 `json:"Status,omitempty" name:"Status"`
3247
3248		// 固件任务创建时间,单位:秒
3249	// 注意:此字段可能返回 null,表示取不到有效值。
3250		CreateTime *int64 `json:"CreateTime,omitempty" name:"CreateTime"`
3251
3252		// 固件任务升级类型
3253	// 注意:此字段可能返回 null,表示取不到有效值。
3254		Type *int64 `json:"Type,omitempty" name:"Type"`
3255
3256		// 产品名称
3257	// 注意:此字段可能返回 null,表示取不到有效值。
3258		ProductName *string `json:"ProductName,omitempty" name:"ProductName"`
3259
3260		// 固件任务升级模式。originalVersion(按版本号升级)、filename(提交文件升级)、devicenames(按设备名称升级)
3261	// 注意:此字段可能返回 null,表示取不到有效值。
3262		UpgradeMode *string `json:"UpgradeMode,omitempty" name:"UpgradeMode"`
3263
3264		// 产品ID
3265	// 注意:此字段可能返回 null,表示取不到有效值。
3266		ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
3267
3268		// 原始固件版本号,在UpgradeMode是originalVersion升级模式下会返回
3269	// 注意:此字段可能返回 null,表示取不到有效值。
3270		OriginalVersion *string `json:"OriginalVersion,omitempty" name:"OriginalVersion"`
3271
3272		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3273		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3274	} `json:"Response"`
3275}
3276
3277func (r *DescribeFirmwareTaskResponse) ToJsonString() string {
3278    b, _ := json.Marshal(r)
3279    return string(b)
3280}
3281
3282// FromJsonString It is highly **NOT** recommended to use this function
3283// because it has no param check, nor strict type check
3284func (r *DescribeFirmwareTaskResponse) FromJsonString(s string) error {
3285	return json.Unmarshal([]byte(s), &r)
3286}
3287
3288type DescribeFirmwareTaskStatisticsRequest struct {
3289	*tchttp.BaseRequest
3290
3291	// 产品ID
3292	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
3293
3294	// 固件版本号
3295	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`
3296}
3297
3298func (r *DescribeFirmwareTaskStatisticsRequest) ToJsonString() string {
3299    b, _ := json.Marshal(r)
3300    return string(b)
3301}
3302
3303// FromJsonString It is highly **NOT** recommended to use this function
3304// because it has no param check, nor strict type check
3305func (r *DescribeFirmwareTaskStatisticsRequest) FromJsonString(s string) error {
3306	f := make(map[string]interface{})
3307	if err := json.Unmarshal([]byte(s), &f); err != nil {
3308		return err
3309	}
3310	delete(f, "ProductID")
3311	delete(f, "FirmwareVersion")
3312	if len(f) > 0 {
3313		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeFirmwareTaskStatisticsRequest has unknown keys!", "")
3314	}
3315	return json.Unmarshal([]byte(s), &r)
3316}
3317
3318type DescribeFirmwareTaskStatisticsResponse struct {
3319	*tchttp.BaseResponse
3320	Response *struct {
3321
3322		// 升级成功的设备总数
3323	// 注意:此字段可能返回 null,表示取不到有效值。
3324		SuccessTotal *uint64 `json:"SuccessTotal,omitempty" name:"SuccessTotal"`
3325
3326		// 升级失败的设备总数
3327	// 注意:此字段可能返回 null,表示取不到有效值。
3328		FailureTotal *uint64 `json:"FailureTotal,omitempty" name:"FailureTotal"`
3329
3330		// 正在升级的设备总数
3331	// 注意:此字段可能返回 null,表示取不到有效值。
3332		UpgradingTotal *uint64 `json:"UpgradingTotal,omitempty" name:"UpgradingTotal"`
3333
3334		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3335		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3336	} `json:"Response"`
3337}
3338
3339func (r *DescribeFirmwareTaskStatisticsResponse) ToJsonString() string {
3340    b, _ := json.Marshal(r)
3341    return string(b)
3342}
3343
3344// FromJsonString It is highly **NOT** recommended to use this function
3345// because it has no param check, nor strict type check
3346func (r *DescribeFirmwareTaskStatisticsResponse) FromJsonString(s string) error {
3347	return json.Unmarshal([]byte(s), &r)
3348}
3349
3350type DescribeFirmwareTasksRequest struct {
3351	*tchttp.BaseRequest
3352
3353	// 产品ID
3354	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
3355
3356	// 固件版本号
3357	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`
3358
3359	// 查询偏移量
3360	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
3361
3362	// 返回查询结果条数
3363	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
3364
3365	// 搜索过滤条件
3366	Filters []*SearchKeyword `json:"Filters,omitempty" name:"Filters"`
3367}
3368
3369func (r *DescribeFirmwareTasksRequest) ToJsonString() string {
3370    b, _ := json.Marshal(r)
3371    return string(b)
3372}
3373
3374// FromJsonString It is highly **NOT** recommended to use this function
3375// because it has no param check, nor strict type check
3376func (r *DescribeFirmwareTasksRequest) FromJsonString(s string) error {
3377	f := make(map[string]interface{})
3378	if err := json.Unmarshal([]byte(s), &f); err != nil {
3379		return err
3380	}
3381	delete(f, "ProductID")
3382	delete(f, "FirmwareVersion")
3383	delete(f, "Offset")
3384	delete(f, "Limit")
3385	delete(f, "Filters")
3386	if len(f) > 0 {
3387		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeFirmwareTasksRequest has unknown keys!", "")
3388	}
3389	return json.Unmarshal([]byte(s), &r)
3390}
3391
3392type DescribeFirmwareTasksResponse struct {
3393	*tchttp.BaseResponse
3394	Response *struct {
3395
3396		// 固件升级任务列表
3397	// 注意:此字段可能返回 null,表示取不到有效值。
3398		TaskInfos []*FirmwareTaskInfo `json:"TaskInfos,omitempty" name:"TaskInfos"`
3399
3400		// 固件升级任务总数
3401	// 注意:此字段可能返回 null,表示取不到有效值。
3402		Total *uint64 `json:"Total,omitempty" name:"Total"`
3403
3404		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3405		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3406	} `json:"Response"`
3407}
3408
3409func (r *DescribeFirmwareTasksResponse) ToJsonString() string {
3410    b, _ := json.Marshal(r)
3411    return string(b)
3412}
3413
3414// FromJsonString It is highly **NOT** recommended to use this function
3415// because it has no param check, nor strict type check
3416func (r *DescribeFirmwareTasksResponse) FromJsonString(s string) error {
3417	return json.Unmarshal([]byte(s), &r)
3418}
3419
3420type DescribeForwardRuleRequest struct {
3421	*tchttp.BaseRequest
3422
3423	// 产品ID
3424	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
3425
3426	// 控制台Skey
3427	Skey *string `json:"Skey,omitempty" name:"Skey"`
3428
3429	// 队列类型,0:CMQ,1:Ckafka
3430	QueueType *uint64 `json:"QueueType,omitempty" name:"QueueType"`
3431
3432	// 临时密钥
3433	Consecretid *string `json:"Consecretid,omitempty" name:"Consecretid"`
3434}
3435
3436func (r *DescribeForwardRuleRequest) ToJsonString() string {
3437    b, _ := json.Marshal(r)
3438    return string(b)
3439}
3440
3441// FromJsonString It is highly **NOT** recommended to use this function
3442// because it has no param check, nor strict type check
3443func (r *DescribeForwardRuleRequest) FromJsonString(s string) error {
3444	f := make(map[string]interface{})
3445	if err := json.Unmarshal([]byte(s), &f); err != nil {
3446		return err
3447	}
3448	delete(f, "ProductID")
3449	delete(f, "Skey")
3450	delete(f, "QueueType")
3451	delete(f, "Consecretid")
3452	if len(f) > 0 {
3453		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeForwardRuleRequest has unknown keys!", "")
3454	}
3455	return json.Unmarshal([]byte(s), &r)
3456}
3457
3458type DescribeForwardRuleResponse struct {
3459	*tchttp.BaseResponse
3460	Response *struct {
3461
3462		// 腾讯云账号
3463		Endpoint *string `json:"Endpoint,omitempty" name:"Endpoint"`
3464
3465		// 队列名称
3466		QueueName *string `json:"QueueName,omitempty" name:"QueueName"`
3467
3468		// 产品ID
3469		ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
3470
3471		// 消息类型 1设备上报信息 2设备状态变化通知 3为全选
3472		MsgType *uint64 `json:"MsgType,omitempty" name:"MsgType"`
3473
3474		// 结果 2表示禁用 其他为成功
3475		Result *uint64 `json:"Result,omitempty" name:"Result"`
3476
3477		// 角色名
3478		RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
3479
3480		// 角色ID
3481		RoleID *uint64 `json:"RoleID,omitempty" name:"RoleID"`
3482
3483		// 队列区域
3484		QueueRegion *string `json:"QueueRegion,omitempty" name:"QueueRegion"`
3485
3486		// 队列类型,0:CMQ,1:Ckafka
3487		QueueType *uint64 `json:"QueueType,omitempty" name:"QueueType"`
3488
3489		// 实例id, 目前只有Ckafaka会用到
3490		InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
3491
3492		// 实例名称,目前只有Ckafaka会用到
3493		InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
3494
3495		// 错误消息
3496		ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"`
3497
3498		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3499		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3500	} `json:"Response"`
3501}
3502
3503func (r *DescribeForwardRuleResponse) ToJsonString() string {
3504    b, _ := json.Marshal(r)
3505    return string(b)
3506}
3507
3508// FromJsonString It is highly **NOT** recommended to use this function
3509// because it has no param check, nor strict type check
3510func (r *DescribeForwardRuleResponse) FromJsonString(s string) error {
3511	return json.Unmarshal([]byte(s), &r)
3512}
3513
3514type DescribeModelDefinitionRequest struct {
3515	*tchttp.BaseRequest
3516
3517	// 产品ID
3518	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
3519}
3520
3521func (r *DescribeModelDefinitionRequest) ToJsonString() string {
3522    b, _ := json.Marshal(r)
3523    return string(b)
3524}
3525
3526// FromJsonString It is highly **NOT** recommended to use this function
3527// because it has no param check, nor strict type check
3528func (r *DescribeModelDefinitionRequest) FromJsonString(s string) error {
3529	f := make(map[string]interface{})
3530	if err := json.Unmarshal([]byte(s), &f); err != nil {
3531		return err
3532	}
3533	delete(f, "ProductId")
3534	if len(f) > 0 {
3535		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeModelDefinitionRequest has unknown keys!", "")
3536	}
3537	return json.Unmarshal([]byte(s), &r)
3538}
3539
3540type DescribeModelDefinitionResponse struct {
3541	*tchttp.BaseResponse
3542	Response *struct {
3543
3544		// 产品数据模板
3545		Model *ProductModelDefinition `json:"Model,omitempty" name:"Model"`
3546
3547		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3548		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3549	} `json:"Response"`
3550}
3551
3552func (r *DescribeModelDefinitionResponse) ToJsonString() string {
3553    b, _ := json.Marshal(r)
3554    return string(b)
3555}
3556
3557// FromJsonString It is highly **NOT** recommended to use this function
3558// because it has no param check, nor strict type check
3559func (r *DescribeModelDefinitionResponse) FromJsonString(s string) error {
3560	return json.Unmarshal([]byte(s), &r)
3561}
3562
3563type DescribeProductRequest struct {
3564	*tchttp.BaseRequest
3565
3566	// 产品id
3567	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
3568}
3569
3570func (r *DescribeProductRequest) ToJsonString() string {
3571    b, _ := json.Marshal(r)
3572    return string(b)
3573}
3574
3575// FromJsonString It is highly **NOT** recommended to use this function
3576// because it has no param check, nor strict type check
3577func (r *DescribeProductRequest) FromJsonString(s string) error {
3578	f := make(map[string]interface{})
3579	if err := json.Unmarshal([]byte(s), &f); err != nil {
3580		return err
3581	}
3582	delete(f, "ProductId")
3583	if len(f) > 0 {
3584		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeProductRequest has unknown keys!", "")
3585	}
3586	return json.Unmarshal([]byte(s), &r)
3587}
3588
3589type DescribeProductResponse struct {
3590	*tchttp.BaseResponse
3591	Response *struct {
3592
3593		// 产品详情
3594		Data *VideoProduct `json:"Data,omitempty" name:"Data"`
3595
3596		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3597		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3598	} `json:"Response"`
3599}
3600
3601func (r *DescribeProductResponse) ToJsonString() string {
3602    b, _ := json.Marshal(r)
3603    return string(b)
3604}
3605
3606// FromJsonString It is highly **NOT** recommended to use this function
3607// because it has no param check, nor strict type check
3608func (r *DescribeProductResponse) FromJsonString(s string) error {
3609	return json.Unmarshal([]byte(s), &r)
3610}
3611
3612type DescribeProductsRequest struct {
3613	*tchttp.BaseRequest
3614
3615	// 分页的大小,最大100
3616	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
3617
3618	// 偏移量,Offset从0开始
3619	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
3620}
3621
3622func (r *DescribeProductsRequest) ToJsonString() string {
3623    b, _ := json.Marshal(r)
3624    return string(b)
3625}
3626
3627// FromJsonString It is highly **NOT** recommended to use this function
3628// because it has no param check, nor strict type check
3629func (r *DescribeProductsRequest) FromJsonString(s string) error {
3630	f := make(map[string]interface{})
3631	if err := json.Unmarshal([]byte(s), &f); err != nil {
3632		return err
3633	}
3634	delete(f, "Limit")
3635	delete(f, "Offset")
3636	if len(f) > 0 {
3637		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeProductsRequest has unknown keys!", "")
3638	}
3639	return json.Unmarshal([]byte(s), &r)
3640}
3641
3642type DescribeProductsResponse struct {
3643	*tchttp.BaseResponse
3644	Response *struct {
3645
3646		// 总数
3647		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
3648
3649		// 产品详情列表
3650		Data []*VideoProduct `json:"Data,omitempty" name:"Data"`
3651
3652		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3653		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3654	} `json:"Response"`
3655}
3656
3657func (r *DescribeProductsResponse) ToJsonString() string {
3658    b, _ := json.Marshal(r)
3659    return string(b)
3660}
3661
3662// FromJsonString It is highly **NOT** recommended to use this function
3663// because it has no param check, nor strict type check
3664func (r *DescribeProductsResponse) FromJsonString(s string) error {
3665	return json.Unmarshal([]byte(s), &r)
3666}
3667
3668type DescribeSDKLogRequest struct {
3669	*tchttp.BaseRequest
3670
3671	// 日志开始时间
3672	MinTime *uint64 `json:"MinTime,omitempty" name:"MinTime"`
3673
3674	// 日志结束时间
3675	MaxTime *uint64 `json:"MaxTime,omitempty" name:"MaxTime"`
3676
3677	// 查询关键字,可以同时支持键值查询和文本查询,
3678	// 例如,查询某key的值为value,并且包含某word的日志,该参数为:key:value word。
3679	// 键值或文本可以包含多个,以空格隔开。
3680	// 其中可以索引的key包括:productid、devicename、loglevel
3681	// 一个典型的查询示例:productid:7JK1G72JNE devicename:name publish loglevel:WARN一个典型的查询示例:productid:ABCDE12345 devicename:test scene:SHADOW publish
3682	Keywords *string `json:"Keywords,omitempty" name:"Keywords"`
3683
3684	// 日志检索上下文
3685	Context *string `json:"Context,omitempty" name:"Context"`
3686
3687	// 查询条数
3688	MaxNum *uint64 `json:"MaxNum,omitempty" name:"MaxNum"`
3689}
3690
3691func (r *DescribeSDKLogRequest) ToJsonString() string {
3692    b, _ := json.Marshal(r)
3693    return string(b)
3694}
3695
3696// FromJsonString It is highly **NOT** recommended to use this function
3697// because it has no param check, nor strict type check
3698func (r *DescribeSDKLogRequest) FromJsonString(s string) error {
3699	f := make(map[string]interface{})
3700	if err := json.Unmarshal([]byte(s), &f); err != nil {
3701		return err
3702	}
3703	delete(f, "MinTime")
3704	delete(f, "MaxTime")
3705	delete(f, "Keywords")
3706	delete(f, "Context")
3707	delete(f, "MaxNum")
3708	if len(f) > 0 {
3709		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeSDKLogRequest has unknown keys!", "")
3710	}
3711	return json.Unmarshal([]byte(s), &r)
3712}
3713
3714type DescribeSDKLogResponse struct {
3715	*tchttp.BaseResponse
3716	Response *struct {
3717
3718		// 日志检索上下文
3719		Context *string `json:"Context,omitempty" name:"Context"`
3720
3721		// 是否还有日志,如有仍有日志,下次查询的请求带上当前请求返回的Context
3722		Listover *bool `json:"Listover,omitempty" name:"Listover"`
3723
3724		// 日志列表
3725		Results []*SDKLogItem `json:"Results,omitempty" name:"Results"`
3726
3727		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3728		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3729	} `json:"Response"`
3730}
3731
3732func (r *DescribeSDKLogResponse) ToJsonString() string {
3733    b, _ := json.Marshal(r)
3734    return string(b)
3735}
3736
3737// FromJsonString It is highly **NOT** recommended to use this function
3738// because it has no param check, nor strict type check
3739func (r *DescribeSDKLogResponse) FromJsonString(s string) error {
3740	return json.Unmarshal([]byte(s), &r)
3741}
3742
3743type DeviceCommLogItem struct {
3744
3745	// 时间
3746	Time *string `json:"Time,omitempty" name:"Time"`
3747
3748	// 日志类型,device 设备上行,shadow 服务端下行。
3749	Type *string `json:"Type,omitempty" name:"Type"`
3750
3751	// 通讯数据。
3752	Data *string `json:"Data,omitempty" name:"Data"`
3753}
3754
3755type DeviceDataHistoryItem struct {
3756
3757	// 时间点,毫秒时间戳
3758	Time *string `json:"Time,omitempty" name:"Time"`
3759
3760	// 字段取值
3761	Value *string `json:"Value,omitempty" name:"Value"`
3762}
3763
3764type DeviceInfo struct {
3765
3766	// 设备名
3767	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
3768
3769	// 设备是否在线,0不在线,1在线,2获取失败,3未激活
3770	Online *uint64 `json:"Online,omitempty" name:"Online"`
3771
3772	// 设备最后上线时间
3773	LoginTime *uint64 `json:"LoginTime,omitempty" name:"LoginTime"`
3774
3775	// 设备密钥
3776	DevicePsk *string `json:"DevicePsk,omitempty" name:"DevicePsk"`
3777
3778	// 设备启用状态 0为停用 1为可用
3779	EnableState *uint64 `json:"EnableState,omitempty" name:"EnableState"`
3780
3781	// 设备过期时间
3782	ExpireTime *uint64 `json:"ExpireTime,omitempty" name:"ExpireTime"`
3783}
3784
3785type DeviceStatusLogItem struct {
3786
3787	// 时间
3788	Time *string `json:"Time,omitempty" name:"Time"`
3789
3790	// 状态类型: Online 上线,Offline 下线
3791	Type *string `json:"Type,omitempty" name:"Type"`
3792
3793	// 日志信息
3794	Data *string `json:"Data,omitempty" name:"Data"`
3795}
3796
3797type DeviceUpdateStatus struct {
3798
3799	// 设备名
3800	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
3801
3802	// 最后处理时间
3803	LastProcessTime *uint64 `json:"LastProcessTime,omitempty" name:"LastProcessTime"`
3804
3805	// 状态
3806	Status *uint64 `json:"Status,omitempty" name:"Status"`
3807
3808	// 错误消息
3809	ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"`
3810
3811	// 返回码
3812	Retcode *int64 `json:"Retcode,omitempty" name:"Retcode"`
3813
3814	// 目标更新版本
3815	DstVersion *string `json:"DstVersion,omitempty" name:"DstVersion"`
3816
3817	// 下载中状态时的下载进度
3818	// 注意:此字段可能返回 null,表示取不到有效值。
3819	Percent *uint64 `json:"Percent,omitempty" name:"Percent"`
3820
3821	// 原版本号
3822	// 注意:此字段可能返回 null,表示取不到有效值。
3823	OriVersion *string `json:"OriVersion,omitempty" name:"OriVersion"`
3824
3825	// 任务ID
3826	// 注意:此字段可能返回 null,表示取不到有效值。
3827	TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"`
3828}
3829
3830type EditFirmwareRequest struct {
3831	*tchttp.BaseRequest
3832
3833	// 产品ID。
3834	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
3835
3836	// 固件版本号。
3837	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`
3838
3839	// 固件名称。
3840	FirmwareName *string `json:"FirmwareName,omitempty" name:"FirmwareName"`
3841
3842	// 固件描述。
3843	FirmwareDescription *string `json:"FirmwareDescription,omitempty" name:"FirmwareDescription"`
3844}
3845
3846func (r *EditFirmwareRequest) ToJsonString() string {
3847    b, _ := json.Marshal(r)
3848    return string(b)
3849}
3850
3851// FromJsonString It is highly **NOT** recommended to use this function
3852// because it has no param check, nor strict type check
3853func (r *EditFirmwareRequest) FromJsonString(s string) error {
3854	f := make(map[string]interface{})
3855	if err := json.Unmarshal([]byte(s), &f); err != nil {
3856		return err
3857	}
3858	delete(f, "ProductID")
3859	delete(f, "FirmwareVersion")
3860	delete(f, "FirmwareName")
3861	delete(f, "FirmwareDescription")
3862	if len(f) > 0 {
3863		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "EditFirmwareRequest has unknown keys!", "")
3864	}
3865	return json.Unmarshal([]byte(s), &r)
3866}
3867
3868type EditFirmwareResponse struct {
3869	*tchttp.BaseResponse
3870	Response *struct {
3871
3872		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3873		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3874	} `json:"Response"`
3875}
3876
3877func (r *EditFirmwareResponse) ToJsonString() string {
3878    b, _ := json.Marshal(r)
3879    return string(b)
3880}
3881
3882// FromJsonString It is highly **NOT** recommended to use this function
3883// because it has no param check, nor strict type check
3884func (r *EditFirmwareResponse) FromJsonString(s string) error {
3885	return json.Unmarshal([]byte(s), &r)
3886}
3887
3888type EventHistoryItem struct {
3889
3890	// 事件的时间戳
3891	// 注意:此字段可能返回 null,表示取不到有效值。
3892	TimeStamp *int64 `json:"TimeStamp,omitempty" name:"TimeStamp"`
3893
3894	// 事件的产品ID
3895	// 注意:此字段可能返回 null,表示取不到有效值。
3896	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
3897
3898	// 事件的设备名称
3899	// 注意:此字段可能返回 null,表示取不到有效值。
3900	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
3901
3902	// 事件的标识符ID
3903	// 注意:此字段可能返回 null,表示取不到有效值。
3904	EventId *string `json:"EventId,omitempty" name:"EventId"`
3905
3906	// 事件的类型
3907	// 注意:此字段可能返回 null,表示取不到有效值。
3908	Type *string `json:"Type,omitempty" name:"Type"`
3909
3910	// 事件的数据
3911	// 注意:此字段可能返回 null,表示取不到有效值。
3912	Data *string `json:"Data,omitempty" name:"Data"`
3913}
3914
3915type FirmwareInfo struct {
3916
3917	// 固件版本
3918	Version *string `json:"Version,omitempty" name:"Version"`
3919
3920	// 固件MD5值
3921	Md5sum *string `json:"Md5sum,omitempty" name:"Md5sum"`
3922
3923	// 固件创建时间
3924	CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"`
3925
3926	// 产品名称
3927	ProductName *string `json:"ProductName,omitempty" name:"ProductName"`
3928
3929	// 固件名称
3930	Name *string `json:"Name,omitempty" name:"Name"`
3931
3932	// 固件描述
3933	Description *string `json:"Description,omitempty" name:"Description"`
3934
3935	// 产品ID
3936	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
3937}
3938
3939type FirmwareTaskInfo struct {
3940
3941	// 任务ID
3942	// 注意:此字段可能返回 null,表示取不到有效值。
3943	TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"`
3944
3945	// 任务状态
3946	// 注意:此字段可能返回 null,表示取不到有效值。
3947	Status *int64 `json:"Status,omitempty" name:"Status"`
3948
3949	// 任务类型
3950	// 注意:此字段可能返回 null,表示取不到有效值。
3951	Type *int64 `json:"Type,omitempty" name:"Type"`
3952
3953	// 任务创建时间
3954	// 注意:此字段可能返回 null,表示取不到有效值。
3955	CreateTime *int64 `json:"CreateTime,omitempty" name:"CreateTime"`
3956}
3957
3958type GenerateSignedVideoURLRequest struct {
3959	*tchttp.BaseRequest
3960
3961	// 视频播放原始URL地址
3962	VideoURL *string `json:"VideoURL,omitempty" name:"VideoURL"`
3963
3964	// 播放链接过期时间
3965	ExpireTime *uint64 `json:"ExpireTime,omitempty" name:"ExpireTime"`
3966}
3967
3968func (r *GenerateSignedVideoURLRequest) ToJsonString() string {
3969    b, _ := json.Marshal(r)
3970    return string(b)
3971}
3972
3973// FromJsonString It is highly **NOT** recommended to use this function
3974// because it has no param check, nor strict type check
3975func (r *GenerateSignedVideoURLRequest) FromJsonString(s string) error {
3976	f := make(map[string]interface{})
3977	if err := json.Unmarshal([]byte(s), &f); err != nil {
3978		return err
3979	}
3980	delete(f, "VideoURL")
3981	delete(f, "ExpireTime")
3982	if len(f) > 0 {
3983		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GenerateSignedVideoURLRequest has unknown keys!", "")
3984	}
3985	return json.Unmarshal([]byte(s), &r)
3986}
3987
3988type GenerateSignedVideoURLResponse struct {
3989	*tchttp.BaseResponse
3990	Response *struct {
3991
3992		// 视频防盗链播放URL
3993		SignedVideoURL *string `json:"SignedVideoURL,omitempty" name:"SignedVideoURL"`
3994
3995		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3996		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
3997	} `json:"Response"`
3998}
3999
4000func (r *GenerateSignedVideoURLResponse) ToJsonString() string {
4001    b, _ := json.Marshal(r)
4002    return string(b)
4003}
4004
4005// FromJsonString It is highly **NOT** recommended to use this function
4006// because it has no param check, nor strict type check
4007func (r *GenerateSignedVideoURLResponse) FromJsonString(s string) error {
4008	return json.Unmarshal([]byte(s), &r)
4009}
4010
4011type GetAllFirmwareVersionRequest struct {
4012	*tchttp.BaseRequest
4013
4014	// 产品ID
4015	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
4016}
4017
4018func (r *GetAllFirmwareVersionRequest) ToJsonString() string {
4019    b, _ := json.Marshal(r)
4020    return string(b)
4021}
4022
4023// FromJsonString It is highly **NOT** recommended to use this function
4024// because it has no param check, nor strict type check
4025func (r *GetAllFirmwareVersionRequest) FromJsonString(s string) error {
4026	f := make(map[string]interface{})
4027	if err := json.Unmarshal([]byte(s), &f); err != nil {
4028		return err
4029	}
4030	delete(f, "ProductID")
4031	if len(f) > 0 {
4032		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetAllFirmwareVersionRequest has unknown keys!", "")
4033	}
4034	return json.Unmarshal([]byte(s), &r)
4035}
4036
4037type GetAllFirmwareVersionResponse struct {
4038	*tchttp.BaseResponse
4039	Response *struct {
4040
4041		// 固件可用版本列表
4042		Version []*string `json:"Version,omitempty" name:"Version"`
4043
4044		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4045		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
4046	} `json:"Response"`
4047}
4048
4049func (r *GetAllFirmwareVersionResponse) ToJsonString() string {
4050    b, _ := json.Marshal(r)
4051    return string(b)
4052}
4053
4054// FromJsonString It is highly **NOT** recommended to use this function
4055// because it has no param check, nor strict type check
4056func (r *GetAllFirmwareVersionResponse) FromJsonString(s string) error {
4057	return json.Unmarshal([]byte(s), &r)
4058}
4059
4060type GetFirmwareURLRequest struct {
4061	*tchttp.BaseRequest
4062
4063	// 产品ID
4064	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
4065
4066	// 固件版本
4067	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`
4068}
4069
4070func (r *GetFirmwareURLRequest) ToJsonString() string {
4071    b, _ := json.Marshal(r)
4072    return string(b)
4073}
4074
4075// FromJsonString It is highly **NOT** recommended to use this function
4076// because it has no param check, nor strict type check
4077func (r *GetFirmwareURLRequest) FromJsonString(s string) error {
4078	f := make(map[string]interface{})
4079	if err := json.Unmarshal([]byte(s), &f); err != nil {
4080		return err
4081	}
4082	delete(f, "ProductID")
4083	delete(f, "FirmwareVersion")
4084	if len(f) > 0 {
4085		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetFirmwareURLRequest has unknown keys!", "")
4086	}
4087	return json.Unmarshal([]byte(s), &r)
4088}
4089
4090type GetFirmwareURLResponse struct {
4091	*tchttp.BaseResponse
4092	Response *struct {
4093
4094		// 固件URL
4095		Url *string `json:"Url,omitempty" name:"Url"`
4096
4097		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4098		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
4099	} `json:"Response"`
4100}
4101
4102func (r *GetFirmwareURLResponse) ToJsonString() string {
4103    b, _ := json.Marshal(r)
4104    return string(b)
4105}
4106
4107// FromJsonString It is highly **NOT** recommended to use this function
4108// because it has no param check, nor strict type check
4109func (r *GetFirmwareURLResponse) FromJsonString(s string) error {
4110	return json.Unmarshal([]byte(s), &r)
4111}
4112
4113type ImportModelDefinitionRequest struct {
4114	*tchttp.BaseRequest
4115
4116	// 产品ID
4117	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
4118
4119	// 数据模板定义
4120	ModelSchema *string `json:"ModelSchema,omitempty" name:"ModelSchema"`
4121}
4122
4123func (r *ImportModelDefinitionRequest) ToJsonString() string {
4124    b, _ := json.Marshal(r)
4125    return string(b)
4126}
4127
4128// FromJsonString It is highly **NOT** recommended to use this function
4129// because it has no param check, nor strict type check
4130func (r *ImportModelDefinitionRequest) FromJsonString(s string) error {
4131	f := make(map[string]interface{})
4132	if err := json.Unmarshal([]byte(s), &f); err != nil {
4133		return err
4134	}
4135	delete(f, "ProductId")
4136	delete(f, "ModelSchema")
4137	if len(f) > 0 {
4138		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ImportModelDefinitionRequest has unknown keys!", "")
4139	}
4140	return json.Unmarshal([]byte(s), &r)
4141}
4142
4143type ImportModelDefinitionResponse struct {
4144	*tchttp.BaseResponse
4145	Response *struct {
4146
4147		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4148		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
4149	} `json:"Response"`
4150}
4151
4152func (r *ImportModelDefinitionResponse) ToJsonString() string {
4153    b, _ := json.Marshal(r)
4154    return string(b)
4155}
4156
4157// FromJsonString It is highly **NOT** recommended to use this function
4158// because it has no param check, nor strict type check
4159func (r *ImportModelDefinitionResponse) FromJsonString(s string) error {
4160	return json.Unmarshal([]byte(s), &r)
4161}
4162
4163type InheritCloudStorageUserRequest struct {
4164	*tchttp.BaseRequest
4165
4166	// 产品ID
4167	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
4168
4169	// 设备名称
4170	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
4171
4172	// 原始用户ID
4173	UserId *string `json:"UserId,omitempty" name:"UserId"`
4174
4175	// 目标用户ID
4176	ToUserId *string `json:"ToUserId,omitempty" name:"ToUserId"`
4177}
4178
4179func (r *InheritCloudStorageUserRequest) ToJsonString() string {
4180    b, _ := json.Marshal(r)
4181    return string(b)
4182}
4183
4184// FromJsonString It is highly **NOT** recommended to use this function
4185// because it has no param check, nor strict type check
4186func (r *InheritCloudStorageUserRequest) FromJsonString(s string) error {
4187	f := make(map[string]interface{})
4188	if err := json.Unmarshal([]byte(s), &f); err != nil {
4189		return err
4190	}
4191	delete(f, "ProductId")
4192	delete(f, "DeviceName")
4193	delete(f, "UserId")
4194	delete(f, "ToUserId")
4195	if len(f) > 0 {
4196		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "InheritCloudStorageUserRequest has unknown keys!", "")
4197	}
4198	return json.Unmarshal([]byte(s), &r)
4199}
4200
4201type InheritCloudStorageUserResponse struct {
4202	*tchttp.BaseResponse
4203	Response *struct {
4204
4205		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4206		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
4207	} `json:"Response"`
4208}
4209
4210func (r *InheritCloudStorageUserResponse) ToJsonString() string {
4211    b, _ := json.Marshal(r)
4212    return string(b)
4213}
4214
4215// FromJsonString It is highly **NOT** recommended to use this function
4216// because it has no param check, nor strict type check
4217func (r *InheritCloudStorageUserResponse) FromJsonString(s string) error {
4218	return json.Unmarshal([]byte(s), &r)
4219}
4220
4221type ListFirmwaresRequest struct {
4222	*tchttp.BaseRequest
4223
4224	// 获取的页数
4225	PageNum *uint64 `json:"PageNum,omitempty" name:"PageNum"`
4226
4227	// 分页的大小
4228	PageSize *uint64 `json:"PageSize,omitempty" name:"PageSize"`
4229
4230	// 产品ID
4231	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
4232
4233	// 搜索过滤条件
4234	Filters []*SearchKeyword `json:"Filters,omitempty" name:"Filters"`
4235}
4236
4237func (r *ListFirmwaresRequest) ToJsonString() string {
4238    b, _ := json.Marshal(r)
4239    return string(b)
4240}
4241
4242// FromJsonString It is highly **NOT** recommended to use this function
4243// because it has no param check, nor strict type check
4244func (r *ListFirmwaresRequest) FromJsonString(s string) error {
4245	f := make(map[string]interface{})
4246	if err := json.Unmarshal([]byte(s), &f); err != nil {
4247		return err
4248	}
4249	delete(f, "PageNum")
4250	delete(f, "PageSize")
4251	delete(f, "ProductID")
4252	delete(f, "Filters")
4253	if len(f) > 0 {
4254		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListFirmwaresRequest has unknown keys!", "")
4255	}
4256	return json.Unmarshal([]byte(s), &r)
4257}
4258
4259type ListFirmwaresResponse struct {
4260	*tchttp.BaseResponse
4261	Response *struct {
4262
4263		// 固件总数
4264		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
4265
4266		// 固件列表
4267		Firmwares []*FirmwareInfo `json:"Firmwares,omitempty" name:"Firmwares"`
4268
4269		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4270		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
4271	} `json:"Response"`
4272}
4273
4274func (r *ListFirmwaresResponse) ToJsonString() string {
4275    b, _ := json.Marshal(r)
4276    return string(b)
4277}
4278
4279// FromJsonString It is highly **NOT** recommended to use this function
4280// because it has no param check, nor strict type check
4281func (r *ListFirmwaresResponse) FromJsonString(s string) error {
4282	return json.Unmarshal([]byte(s), &r)
4283}
4284
4285type ModifyDataForwardRequest struct {
4286	*tchttp.BaseRequest
4287
4288	// 产品ID。
4289	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
4290
4291	// 转发地址。
4292	ForwardAddr *string `json:"ForwardAddr,omitempty" name:"ForwardAddr"`
4293
4294	// 1-数据信息转发 2-设备上下线状态转发 3-数据信息转发&设备上下线状态转发
4295	DataChose *int64 `json:"DataChose,omitempty" name:"DataChose"`
4296}
4297
4298func (r *ModifyDataForwardRequest) ToJsonString() string {
4299    b, _ := json.Marshal(r)
4300    return string(b)
4301}
4302
4303// FromJsonString It is highly **NOT** recommended to use this function
4304// because it has no param check, nor strict type check
4305func (r *ModifyDataForwardRequest) FromJsonString(s string) error {
4306	f := make(map[string]interface{})
4307	if err := json.Unmarshal([]byte(s), &f); err != nil {
4308		return err
4309	}
4310	delete(f, "ProductId")
4311	delete(f, "ForwardAddr")
4312	delete(f, "DataChose")
4313	if len(f) > 0 {
4314		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyDataForwardRequest has unknown keys!", "")
4315	}
4316	return json.Unmarshal([]byte(s), &r)
4317}
4318
4319type ModifyDataForwardResponse struct {
4320	*tchttp.BaseResponse
4321	Response *struct {
4322
4323		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4324		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
4325	} `json:"Response"`
4326}
4327
4328func (r *ModifyDataForwardResponse) ToJsonString() string {
4329    b, _ := json.Marshal(r)
4330    return string(b)
4331}
4332
4333// FromJsonString It is highly **NOT** recommended to use this function
4334// because it has no param check, nor strict type check
4335func (r *ModifyDataForwardResponse) FromJsonString(s string) error {
4336	return json.Unmarshal([]byte(s), &r)
4337}
4338
4339type ModifyDataForwardStatusRequest struct {
4340	*tchttp.BaseRequest
4341
4342	// 产品ID。
4343	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
4344
4345	// 转发状态,1启用,0禁用。
4346	Status *int64 `json:"Status,omitempty" name:"Status"`
4347}
4348
4349func (r *ModifyDataForwardStatusRequest) ToJsonString() string {
4350    b, _ := json.Marshal(r)
4351    return string(b)
4352}
4353
4354// FromJsonString It is highly **NOT** recommended to use this function
4355// because it has no param check, nor strict type check
4356func (r *ModifyDataForwardStatusRequest) FromJsonString(s string) error {
4357	f := make(map[string]interface{})
4358	if err := json.Unmarshal([]byte(s), &f); err != nil {
4359		return err
4360	}
4361	delete(f, "ProductId")
4362	delete(f, "Status")
4363	if len(f) > 0 {
4364		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyDataForwardStatusRequest has unknown keys!", "")
4365	}
4366	return json.Unmarshal([]byte(s), &r)
4367}
4368
4369type ModifyDataForwardStatusResponse struct {
4370	*tchttp.BaseResponse
4371	Response *struct {
4372
4373		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4374		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
4375	} `json:"Response"`
4376}
4377
4378func (r *ModifyDataForwardStatusResponse) ToJsonString() string {
4379    b, _ := json.Marshal(r)
4380    return string(b)
4381}
4382
4383// FromJsonString It is highly **NOT** recommended to use this function
4384// because it has no param check, nor strict type check
4385func (r *ModifyDataForwardStatusResponse) FromJsonString(s string) error {
4386	return json.Unmarshal([]byte(s), &r)
4387}
4388
4389type ModifyDeviceLogLevelRequest struct {
4390	*tchttp.BaseRequest
4391
4392	// 产品ID
4393	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
4394
4395	// 设备名称
4396	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
4397
4398	// 日志级别,0:关闭,1:错误,2:告警,3:信息,4:调试
4399	LogLevel *uint64 `json:"LogLevel,omitempty" name:"LogLevel"`
4400}
4401
4402func (r *ModifyDeviceLogLevelRequest) ToJsonString() string {
4403    b, _ := json.Marshal(r)
4404    return string(b)
4405}
4406
4407// FromJsonString It is highly **NOT** recommended to use this function
4408// because it has no param check, nor strict type check
4409func (r *ModifyDeviceLogLevelRequest) FromJsonString(s string) error {
4410	f := make(map[string]interface{})
4411	if err := json.Unmarshal([]byte(s), &f); err != nil {
4412		return err
4413	}
4414	delete(f, "ProductId")
4415	delete(f, "DeviceName")
4416	delete(f, "LogLevel")
4417	if len(f) > 0 {
4418		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyDeviceLogLevelRequest has unknown keys!", "")
4419	}
4420	return json.Unmarshal([]byte(s), &r)
4421}
4422
4423type ModifyDeviceLogLevelResponse struct {
4424	*tchttp.BaseResponse
4425	Response *struct {
4426
4427		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4428		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
4429	} `json:"Response"`
4430}
4431
4432func (r *ModifyDeviceLogLevelResponse) ToJsonString() string {
4433    b, _ := json.Marshal(r)
4434    return string(b)
4435}
4436
4437// FromJsonString It is highly **NOT** recommended to use this function
4438// because it has no param check, nor strict type check
4439func (r *ModifyDeviceLogLevelResponse) FromJsonString(s string) error {
4440	return json.Unmarshal([]byte(s), &r)
4441}
4442
4443type ModifyDeviceRequest struct {
4444	*tchttp.BaseRequest
4445
4446	// 设备所属产品id
4447	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
4448
4449	// 设备名称
4450	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
4451
4452	// 要设置的设备状态,1为启用,0为禁用
4453	EnableState *uint64 `json:"EnableState,omitempty" name:"EnableState"`
4454}
4455
4456func (r *ModifyDeviceRequest) ToJsonString() string {
4457    b, _ := json.Marshal(r)
4458    return string(b)
4459}
4460
4461// FromJsonString It is highly **NOT** recommended to use this function
4462// because it has no param check, nor strict type check
4463func (r *ModifyDeviceRequest) FromJsonString(s string) error {
4464	f := make(map[string]interface{})
4465	if err := json.Unmarshal([]byte(s), &f); err != nil {
4466		return err
4467	}
4468	delete(f, "ProductId")
4469	delete(f, "DeviceName")
4470	delete(f, "EnableState")
4471	if len(f) > 0 {
4472		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyDeviceRequest has unknown keys!", "")
4473	}
4474	return json.Unmarshal([]byte(s), &r)
4475}
4476
4477type ModifyDeviceResponse struct {
4478	*tchttp.BaseResponse
4479	Response *struct {
4480
4481		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4482		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
4483	} `json:"Response"`
4484}
4485
4486func (r *ModifyDeviceResponse) ToJsonString() string {
4487    b, _ := json.Marshal(r)
4488    return string(b)
4489}
4490
4491// FromJsonString It is highly **NOT** recommended to use this function
4492// because it has no param check, nor strict type check
4493func (r *ModifyDeviceResponse) FromJsonString(s string) error {
4494	return json.Unmarshal([]byte(s), &r)
4495}
4496
4497type ModifyForwardRuleRequest struct {
4498	*tchttp.BaseRequest
4499
4500	// 产品ID
4501	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
4502
4503	// 消息类型
4504	MsgType *uint64 `json:"MsgType,omitempty" name:"MsgType"`
4505
4506	// 控制台Skey
4507	Skey *string `json:"Skey,omitempty" name:"Skey"`
4508
4509	// 队列区域
4510	QueueRegion *string `json:"QueueRegion,omitempty" name:"QueueRegion"`
4511
4512	// 队列类型 0.CMQ 1.CKafka
4513	QueueType *uint64 `json:"QueueType,omitempty" name:"QueueType"`
4514
4515	// 临时密钥
4516	Consecretid *string `json:"Consecretid,omitempty" name:"Consecretid"`
4517
4518	// 实例ID
4519	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
4520
4521	// 实例名称
4522	InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"`
4523
4524	// 队列或主题ID
4525	QueueID *string `json:"QueueID,omitempty" name:"QueueID"`
4526
4527	// 队列或主题名称
4528	QueueName *string `json:"QueueName,omitempty" name:"QueueName"`
4529}
4530
4531func (r *ModifyForwardRuleRequest) ToJsonString() string {
4532    b, _ := json.Marshal(r)
4533    return string(b)
4534}
4535
4536// FromJsonString It is highly **NOT** recommended to use this function
4537// because it has no param check, nor strict type check
4538func (r *ModifyForwardRuleRequest) FromJsonString(s string) error {
4539	f := make(map[string]interface{})
4540	if err := json.Unmarshal([]byte(s), &f); err != nil {
4541		return err
4542	}
4543	delete(f, "ProductID")
4544	delete(f, "MsgType")
4545	delete(f, "Skey")
4546	delete(f, "QueueRegion")
4547	delete(f, "QueueType")
4548	delete(f, "Consecretid")
4549	delete(f, "InstanceId")
4550	delete(f, "InstanceName")
4551	delete(f, "QueueID")
4552	delete(f, "QueueName")
4553	if len(f) > 0 {
4554		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyForwardRuleRequest has unknown keys!", "")
4555	}
4556	return json.Unmarshal([]byte(s), &r)
4557}
4558
4559type ModifyForwardRuleResponse struct {
4560	*tchttp.BaseResponse
4561	Response *struct {
4562
4563		// 腾讯云账号
4564		Endpoint *string `json:"Endpoint,omitempty" name:"Endpoint"`
4565
4566		// 产品ID
4567		ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
4568
4569		// 结果
4570		Result *uint64 `json:"Result,omitempty" name:"Result"`
4571
4572		// 错误信息
4573		ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"`
4574
4575		// 队列类型 0.CMQ 1.CKafka
4576		QueueType *uint64 `json:"QueueType,omitempty" name:"QueueType"`
4577
4578		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4579		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
4580	} `json:"Response"`
4581}
4582
4583func (r *ModifyForwardRuleResponse) ToJsonString() string {
4584    b, _ := json.Marshal(r)
4585    return string(b)
4586}
4587
4588// FromJsonString It is highly **NOT** recommended to use this function
4589// because it has no param check, nor strict type check
4590func (r *ModifyForwardRuleResponse) FromJsonString(s string) error {
4591	return json.Unmarshal([]byte(s), &r)
4592}
4593
4594type ModifyModelDefinitionRequest struct {
4595	*tchttp.BaseRequest
4596
4597	// 产品ID
4598	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
4599
4600	// 数据模板定义
4601	ModelSchema *string `json:"ModelSchema,omitempty" name:"ModelSchema"`
4602}
4603
4604func (r *ModifyModelDefinitionRequest) ToJsonString() string {
4605    b, _ := json.Marshal(r)
4606    return string(b)
4607}
4608
4609// FromJsonString It is highly **NOT** recommended to use this function
4610// because it has no param check, nor strict type check
4611func (r *ModifyModelDefinitionRequest) FromJsonString(s string) error {
4612	f := make(map[string]interface{})
4613	if err := json.Unmarshal([]byte(s), &f); err != nil {
4614		return err
4615	}
4616	delete(f, "ProductId")
4617	delete(f, "ModelSchema")
4618	if len(f) > 0 {
4619		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyModelDefinitionRequest has unknown keys!", "")
4620	}
4621	return json.Unmarshal([]byte(s), &r)
4622}
4623
4624type ModifyModelDefinitionResponse struct {
4625	*tchttp.BaseResponse
4626	Response *struct {
4627
4628		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4629		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
4630	} `json:"Response"`
4631}
4632
4633func (r *ModifyModelDefinitionResponse) ToJsonString() string {
4634    b, _ := json.Marshal(r)
4635    return string(b)
4636}
4637
4638// FromJsonString It is highly **NOT** recommended to use this function
4639// because it has no param check, nor strict type check
4640func (r *ModifyModelDefinitionResponse) FromJsonString(s string) error {
4641	return json.Unmarshal([]byte(s), &r)
4642}
4643
4644type ModifyProductRequest struct {
4645	*tchttp.BaseRequest
4646
4647	// 产品id
4648	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
4649
4650	// 修改的产品名称 (支持中文、英文、数字、下划线组合,最多不超过20个字符)
4651	ProductName *string `json:"ProductName,omitempty" name:"ProductName"`
4652
4653	// 修改的产品描述 (最多不超过128个字符)
4654	ProductDescription *string `json:"ProductDescription,omitempty" name:"ProductDescription"`
4655}
4656
4657func (r *ModifyProductRequest) ToJsonString() string {
4658    b, _ := json.Marshal(r)
4659    return string(b)
4660}
4661
4662// FromJsonString It is highly **NOT** recommended to use this function
4663// because it has no param check, nor strict type check
4664func (r *ModifyProductRequest) FromJsonString(s string) error {
4665	f := make(map[string]interface{})
4666	if err := json.Unmarshal([]byte(s), &f); err != nil {
4667		return err
4668	}
4669	delete(f, "ProductId")
4670	delete(f, "ProductName")
4671	delete(f, "ProductDescription")
4672	if len(f) > 0 {
4673		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyProductRequest has unknown keys!", "")
4674	}
4675	return json.Unmarshal([]byte(s), &r)
4676}
4677
4678type ModifyProductResponse struct {
4679	*tchttp.BaseResponse
4680	Response *struct {
4681
4682		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4683		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
4684	} `json:"Response"`
4685}
4686
4687func (r *ModifyProductResponse) ToJsonString() string {
4688    b, _ := json.Marshal(r)
4689    return string(b)
4690}
4691
4692// FromJsonString It is highly **NOT** recommended to use this function
4693// because it has no param check, nor strict type check
4694func (r *ModifyProductResponse) FromJsonString(s string) error {
4695	return json.Unmarshal([]byte(s), &r)
4696}
4697
4698type ProductModelDefinition struct {
4699
4700	// 产品ID
4701	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
4702
4703	// 模型定义
4704	ModelDefine *string `json:"ModelDefine,omitempty" name:"ModelDefine"`
4705
4706	// 更新时间,秒级时间戳
4707	UpdateTime *int64 `json:"UpdateTime,omitempty" name:"UpdateTime"`
4708
4709	// 创建时间,秒级时间戳
4710	CreateTime *int64 `json:"CreateTime,omitempty" name:"CreateTime"`
4711
4712	// 产品所属分类的模型快照(产品创建时刻的)
4713	// 注意:此字段可能返回 null,表示取不到有效值。
4714	CategoryModel *string `json:"CategoryModel,omitempty" name:"CategoryModel"`
4715
4716	// 产品的连接类型的模型
4717	// 注意:此字段可能返回 null,表示取不到有效值。
4718	NetTypeModel *string `json:"NetTypeModel,omitempty" name:"NetTypeModel"`
4719}
4720
4721type ProductTemplate struct {
4722
4723	// 实体ID
4724	Id *int64 `json:"Id,omitempty" name:"Id"`
4725
4726	// 分类字段
4727	CategoryKey *string `json:"CategoryKey,omitempty" name:"CategoryKey"`
4728
4729	// 分类名称
4730	CategoryName *string `json:"CategoryName,omitempty" name:"CategoryName"`
4731
4732	// 上层实体ID
4733	ParentId *int64 `json:"ParentId,omitempty" name:"ParentId"`
4734
4735	// 物模型
4736	ModelTemplate *string `json:"ModelTemplate,omitempty" name:"ModelTemplate"`
4737
4738	// 排列顺序
4739	// 注意:此字段可能返回 null,表示取不到有效值。
4740	ListOrder *int64 `json:"ListOrder,omitempty" name:"ListOrder"`
4741
4742	// 分类图标地址
4743	// 注意:此字段可能返回 null,表示取不到有效值。
4744	IconUrl *string `json:"IconUrl,omitempty" name:"IconUrl"`
4745
4746	// 九宫格图片地址
4747	// 注意:此字段可能返回 null,表示取不到有效值。
4748	IconUrlGrid *string `json:"IconUrlGrid,omitempty" name:"IconUrlGrid"`
4749}
4750
4751type PublishMessageRequest struct {
4752	*tchttp.BaseRequest
4753
4754	// 产品ID
4755	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
4756
4757	// 设备名称
4758	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
4759
4760	// 消息发往的主题
4761	Topic *string `json:"Topic,omitempty" name:"Topic"`
4762
4763	// 云端下发到设备的控制报文
4764	Payload *string `json:"Payload,omitempty" name:"Payload"`
4765
4766	// 消息服务质量等级,取值为0或1
4767	Qos *uint64 `json:"Qos,omitempty" name:"Qos"`
4768
4769	// Payload的内容编码格式,取值为base64或空。base64表示云端将接收到的base64编码后的报文再转换成二进制报文下发至设备,为空表示不作转换,透传下发至设备
4770	PayloadEncoding *string `json:"PayloadEncoding,omitempty" name:"PayloadEncoding"`
4771}
4772
4773func (r *PublishMessageRequest) ToJsonString() string {
4774    b, _ := json.Marshal(r)
4775    return string(b)
4776}
4777
4778// FromJsonString It is highly **NOT** recommended to use this function
4779// because it has no param check, nor strict type check
4780func (r *PublishMessageRequest) FromJsonString(s string) error {
4781	f := make(map[string]interface{})
4782	if err := json.Unmarshal([]byte(s), &f); err != nil {
4783		return err
4784	}
4785	delete(f, "ProductId")
4786	delete(f, "DeviceName")
4787	delete(f, "Topic")
4788	delete(f, "Payload")
4789	delete(f, "Qos")
4790	delete(f, "PayloadEncoding")
4791	if len(f) > 0 {
4792		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "PublishMessageRequest has unknown keys!", "")
4793	}
4794	return json.Unmarshal([]byte(s), &r)
4795}
4796
4797type PublishMessageResponse struct {
4798	*tchttp.BaseResponse
4799	Response *struct {
4800
4801		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4802		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
4803	} `json:"Response"`
4804}
4805
4806func (r *PublishMessageResponse) ToJsonString() string {
4807    b, _ := json.Marshal(r)
4808    return string(b)
4809}
4810
4811// FromJsonString It is highly **NOT** recommended to use this function
4812// because it has no param check, nor strict type check
4813func (r *PublishMessageResponse) FromJsonString(s string) error {
4814	return json.Unmarshal([]byte(s), &r)
4815}
4816
4817type ReportAliveDeviceRequest struct {
4818	*tchttp.BaseRequest
4819
4820	// 产品ID
4821	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
4822
4823	// 设备名称
4824	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
4825}
4826
4827func (r *ReportAliveDeviceRequest) ToJsonString() string {
4828    b, _ := json.Marshal(r)
4829    return string(b)
4830}
4831
4832// FromJsonString It is highly **NOT** recommended to use this function
4833// because it has no param check, nor strict type check
4834func (r *ReportAliveDeviceRequest) FromJsonString(s string) error {
4835	f := make(map[string]interface{})
4836	if err := json.Unmarshal([]byte(s), &f); err != nil {
4837		return err
4838	}
4839	delete(f, "ProductId")
4840	delete(f, "DeviceName")
4841	if len(f) > 0 {
4842		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ReportAliveDeviceRequest has unknown keys!", "")
4843	}
4844	return json.Unmarshal([]byte(s), &r)
4845}
4846
4847type ReportAliveDeviceResponse struct {
4848	*tchttp.BaseResponse
4849	Response *struct {
4850
4851		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4852		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
4853	} `json:"Response"`
4854}
4855
4856func (r *ReportAliveDeviceResponse) ToJsonString() string {
4857    b, _ := json.Marshal(r)
4858    return string(b)
4859}
4860
4861// FromJsonString It is highly **NOT** recommended to use this function
4862// because it has no param check, nor strict type check
4863func (r *ReportAliveDeviceResponse) FromJsonString(s string) error {
4864	return json.Unmarshal([]byte(s), &r)
4865}
4866
4867type ResetCloudStorageRequest struct {
4868	*tchttp.BaseRequest
4869
4870	// 产品ID
4871	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
4872
4873	// 设备名称
4874	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
4875}
4876
4877func (r *ResetCloudStorageRequest) ToJsonString() string {
4878    b, _ := json.Marshal(r)
4879    return string(b)
4880}
4881
4882// FromJsonString It is highly **NOT** recommended to use this function
4883// because it has no param check, nor strict type check
4884func (r *ResetCloudStorageRequest) FromJsonString(s string) error {
4885	f := make(map[string]interface{})
4886	if err := json.Unmarshal([]byte(s), &f); err != nil {
4887		return err
4888	}
4889	delete(f, "ProductId")
4890	delete(f, "DeviceName")
4891	if len(f) > 0 {
4892		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ResetCloudStorageRequest has unknown keys!", "")
4893	}
4894	return json.Unmarshal([]byte(s), &r)
4895}
4896
4897type ResetCloudStorageResponse struct {
4898	*tchttp.BaseResponse
4899	Response *struct {
4900
4901		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4902		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
4903	} `json:"Response"`
4904}
4905
4906func (r *ResetCloudStorageResponse) ToJsonString() string {
4907    b, _ := json.Marshal(r)
4908    return string(b)
4909}
4910
4911// FromJsonString It is highly **NOT** recommended to use this function
4912// because it has no param check, nor strict type check
4913func (r *ResetCloudStorageResponse) FromJsonString(s string) error {
4914	return json.Unmarshal([]byte(s), &r)
4915}
4916
4917type RetryDeviceFirmwareTaskRequest struct {
4918	*tchttp.BaseRequest
4919
4920	// 产品ID
4921	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
4922
4923	// 设备名称
4924	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
4925
4926	// 固件版本号
4927	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`
4928
4929	// 固件升级任务ID
4930	TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"`
4931}
4932
4933func (r *RetryDeviceFirmwareTaskRequest) ToJsonString() string {
4934    b, _ := json.Marshal(r)
4935    return string(b)
4936}
4937
4938// FromJsonString It is highly **NOT** recommended to use this function
4939// because it has no param check, nor strict type check
4940func (r *RetryDeviceFirmwareTaskRequest) FromJsonString(s string) error {
4941	f := make(map[string]interface{})
4942	if err := json.Unmarshal([]byte(s), &f); err != nil {
4943		return err
4944	}
4945	delete(f, "ProductID")
4946	delete(f, "DeviceName")
4947	delete(f, "FirmwareVersion")
4948	delete(f, "TaskId")
4949	if len(f) > 0 {
4950		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RetryDeviceFirmwareTaskRequest has unknown keys!", "")
4951	}
4952	return json.Unmarshal([]byte(s), &r)
4953}
4954
4955type RetryDeviceFirmwareTaskResponse struct {
4956	*tchttp.BaseResponse
4957	Response *struct {
4958
4959		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4960		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
4961	} `json:"Response"`
4962}
4963
4964func (r *RetryDeviceFirmwareTaskResponse) ToJsonString() string {
4965    b, _ := json.Marshal(r)
4966    return string(b)
4967}
4968
4969// FromJsonString It is highly **NOT** recommended to use this function
4970// because it has no param check, nor strict type check
4971func (r *RetryDeviceFirmwareTaskResponse) FromJsonString(s string) error {
4972	return json.Unmarshal([]byte(s), &r)
4973}
4974
4975type SDKLogItem struct {
4976
4977	// 产品ID
4978	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
4979
4980	// 设备名称
4981	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
4982
4983	// 日志等级
4984	Level *string `json:"Level,omitempty" name:"Level"`
4985
4986	// 日志时间
4987	DateTime *string `json:"DateTime,omitempty" name:"DateTime"`
4988
4989	// 日志内容
4990	Content *string `json:"Content,omitempty" name:"Content"`
4991}
4992
4993type SearchKeyword struct {
4994
4995	// 搜索条件的Key
4996	Key *string `json:"Key,omitempty" name:"Key"`
4997
4998	// 搜索条件的值
4999	Value *string `json:"Value,omitempty" name:"Value"`
5000}
5001
5002type SetForwardAuthRequest struct {
5003	*tchttp.BaseRequest
5004
5005	// 控制台Skey
5006	Skey *string `json:"Skey,omitempty" name:"Skey"`
5007
5008	// 消息队列类型  0.CMQ 1.CKafka
5009	QueueType *uint64 `json:"QueueType,omitempty" name:"QueueType"`
5010}
5011
5012func (r *SetForwardAuthRequest) ToJsonString() string {
5013    b, _ := json.Marshal(r)
5014    return string(b)
5015}
5016
5017// FromJsonString It is highly **NOT** recommended to use this function
5018// because it has no param check, nor strict type check
5019func (r *SetForwardAuthRequest) FromJsonString(s string) error {
5020	f := make(map[string]interface{})
5021	if err := json.Unmarshal([]byte(s), &f); err != nil {
5022		return err
5023	}
5024	delete(f, "Skey")
5025	delete(f, "QueueType")
5026	if len(f) > 0 {
5027		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SetForwardAuthRequest has unknown keys!", "")
5028	}
5029	return json.Unmarshal([]byte(s), &r)
5030}
5031
5032type SetForwardAuthResponse struct {
5033	*tchttp.BaseResponse
5034	Response *struct {
5035
5036		// 腾讯云账号
5037		Endpoint *string `json:"Endpoint,omitempty" name:"Endpoint"`
5038
5039		// 结果
5040		Result *uint64 `json:"Result,omitempty" name:"Result"`
5041
5042		// 角色名
5043		RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
5044
5045		// 角色ID
5046		RoleID *uint64 `json:"RoleID,omitempty" name:"RoleID"`
5047
5048		// 消息队列类型  0.CMQ 1.CKafka
5049		QueueType *uint64 `json:"QueueType,omitempty" name:"QueueType"`
5050
5051		// 错误消息
5052		ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"`
5053
5054		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5055		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
5056	} `json:"Response"`
5057}
5058
5059func (r *SetForwardAuthResponse) ToJsonString() string {
5060    b, _ := json.Marshal(r)
5061    return string(b)
5062}
5063
5064// FromJsonString It is highly **NOT** recommended to use this function
5065// because it has no param check, nor strict type check
5066func (r *SetForwardAuthResponse) FromJsonString(s string) error {
5067	return json.Unmarshal([]byte(s), &r)
5068}
5069
5070type StatusStatistic struct {
5071
5072	// 任务状态
5073	// 注意:此字段可能返回 null,表示取不到有效值。
5074	Status *uint64 `json:"Status,omitempty" name:"Status"`
5075
5076	// 统计总数
5077	// 注意:此字段可能返回 null,表示取不到有效值。
5078	Total *uint64 `json:"Total,omitempty" name:"Total"`
5079}
5080
5081type TransferCloudStorageRequest struct {
5082	*tchttp.BaseRequest
5083
5084	// 产品ID
5085	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
5086
5087	// 已开通云存的设备名称
5088	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
5089
5090	// 未开通云存的设备名称
5091	ToDeviceName *string `json:"ToDeviceName,omitempty" name:"ToDeviceName"`
5092}
5093
5094func (r *TransferCloudStorageRequest) ToJsonString() string {
5095    b, _ := json.Marshal(r)
5096    return string(b)
5097}
5098
5099// FromJsonString It is highly **NOT** recommended to use this function
5100// because it has no param check, nor strict type check
5101func (r *TransferCloudStorageRequest) FromJsonString(s string) error {
5102	f := make(map[string]interface{})
5103	if err := json.Unmarshal([]byte(s), &f); err != nil {
5104		return err
5105	}
5106	delete(f, "ProductId")
5107	delete(f, "DeviceName")
5108	delete(f, "ToDeviceName")
5109	if len(f) > 0 {
5110		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "TransferCloudStorageRequest has unknown keys!", "")
5111	}
5112	return json.Unmarshal([]byte(s), &r)
5113}
5114
5115type TransferCloudStorageResponse struct {
5116	*tchttp.BaseResponse
5117	Response *struct {
5118
5119		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5120		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
5121	} `json:"Response"`
5122}
5123
5124func (r *TransferCloudStorageResponse) ToJsonString() string {
5125    b, _ := json.Marshal(r)
5126    return string(b)
5127}
5128
5129// FromJsonString It is highly **NOT** recommended to use this function
5130// because it has no param check, nor strict type check
5131func (r *TransferCloudStorageResponse) FromJsonString(s string) error {
5132	return json.Unmarshal([]byte(s), &r)
5133}
5134
5135type UpdateAIModelChannelRequest struct {
5136	*tchttp.BaseRequest
5137
5138	// 模型ID
5139	ModelId *string `json:"ModelId,omitempty" name:"ModelId"`
5140
5141	// 产品ID
5142	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
5143
5144	// 推送类型。ckafka:消息队列;forward:http/https推送
5145	Type *string `json:"Type,omitempty" name:"Type"`
5146
5147	// 第三方推送地址
5148	ForwardAddress *string `json:"ForwardAddress,omitempty" name:"ForwardAddress"`
5149
5150	// 第三方推送密钥,不填写则腾讯云自动生成。
5151	ForwardKey *string `json:"ForwardKey,omitempty" name:"ForwardKey"`
5152
5153	// ckafka地域
5154	CKafkaRegion *string `json:"CKafkaRegion,omitempty" name:"CKafkaRegion"`
5155
5156	// ckafka实例
5157	CKafkaInstance *string `json:"CKafkaInstance,omitempty" name:"CKafkaInstance"`
5158
5159	// ckafka订阅主题
5160	CKafkaTopic *string `json:"CKafkaTopic,omitempty" name:"CKafkaTopic"`
5161}
5162
5163func (r *UpdateAIModelChannelRequest) ToJsonString() string {
5164    b, _ := json.Marshal(r)
5165    return string(b)
5166}
5167
5168// FromJsonString It is highly **NOT** recommended to use this function
5169// because it has no param check, nor strict type check
5170func (r *UpdateAIModelChannelRequest) FromJsonString(s string) error {
5171	f := make(map[string]interface{})
5172	if err := json.Unmarshal([]byte(s), &f); err != nil {
5173		return err
5174	}
5175	delete(f, "ModelId")
5176	delete(f, "ProductId")
5177	delete(f, "Type")
5178	delete(f, "ForwardAddress")
5179	delete(f, "ForwardKey")
5180	delete(f, "CKafkaRegion")
5181	delete(f, "CKafkaInstance")
5182	delete(f, "CKafkaTopic")
5183	if len(f) > 0 {
5184		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateAIModelChannelRequest has unknown keys!", "")
5185	}
5186	return json.Unmarshal([]byte(s), &r)
5187}
5188
5189type UpdateAIModelChannelResponse struct {
5190	*tchttp.BaseResponse
5191	Response *struct {
5192
5193		// 第三方推送密钥,如果选择自动生成则会返回此字段
5194	// 注意:此字段可能返回 null,表示取不到有效值。
5195		ForwardKey *string `json:"ForwardKey,omitempty" name:"ForwardKey"`
5196
5197		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5198		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
5199	} `json:"Response"`
5200}
5201
5202func (r *UpdateAIModelChannelResponse) ToJsonString() string {
5203    b, _ := json.Marshal(r)
5204    return string(b)
5205}
5206
5207// FromJsonString It is highly **NOT** recommended to use this function
5208// because it has no param check, nor strict type check
5209func (r *UpdateAIModelChannelResponse) FromJsonString(s string) error {
5210	return json.Unmarshal([]byte(s), &r)
5211}
5212
5213type UploadFirmwareRequest struct {
5214	*tchttp.BaseRequest
5215
5216	// 产品ID
5217	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`
5218
5219	// 固件版本号
5220	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`
5221
5222	// 固件的MD5值
5223	Md5sum *string `json:"Md5sum,omitempty" name:"Md5sum"`
5224
5225	// 固件的大小
5226	FileSize *uint64 `json:"FileSize,omitempty" name:"FileSize"`
5227
5228	// 固件名称
5229	FirmwareName *string `json:"FirmwareName,omitempty" name:"FirmwareName"`
5230
5231	// 固件描述
5232	FirmwareDescription *string `json:"FirmwareDescription,omitempty" name:"FirmwareDescription"`
5233}
5234
5235func (r *UploadFirmwareRequest) ToJsonString() string {
5236    b, _ := json.Marshal(r)
5237    return string(b)
5238}
5239
5240// FromJsonString It is highly **NOT** recommended to use this function
5241// because it has no param check, nor strict type check
5242func (r *UploadFirmwareRequest) FromJsonString(s string) error {
5243	f := make(map[string]interface{})
5244	if err := json.Unmarshal([]byte(s), &f); err != nil {
5245		return err
5246	}
5247	delete(f, "ProductID")
5248	delete(f, "FirmwareVersion")
5249	delete(f, "Md5sum")
5250	delete(f, "FileSize")
5251	delete(f, "FirmwareName")
5252	delete(f, "FirmwareDescription")
5253	if len(f) > 0 {
5254		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UploadFirmwareRequest has unknown keys!", "")
5255	}
5256	return json.Unmarshal([]byte(s), &r)
5257}
5258
5259type UploadFirmwareResponse struct {
5260	*tchttp.BaseResponse
5261	Response *struct {
5262
5263		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5264		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
5265	} `json:"Response"`
5266}
5267
5268func (r *UploadFirmwareResponse) ToJsonString() string {
5269    b, _ := json.Marshal(r)
5270    return string(b)
5271}
5272
5273// FromJsonString It is highly **NOT** recommended to use this function
5274// because it has no param check, nor strict type check
5275func (r *UploadFirmwareResponse) FromJsonString(s string) error {
5276	return json.Unmarshal([]byte(s), &r)
5277}
5278
5279type VideoBatch struct {
5280
5281	// 批次ID
5282	Id *uint64 `json:"Id,omitempty" name:"Id"`
5283
5284	// 用户ID
5285	UserId *string `json:"UserId,omitempty" name:"UserId"`
5286
5287	// 产品ID
5288	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
5289
5290	// 状态:1:待创建设备 2:创建中 3:已完成
5291	Status *uint64 `json:"Status,omitempty" name:"Status"`
5292
5293	// 设备前缀
5294	DevPre *string `json:"DevPre,omitempty" name:"DevPre"`
5295
5296	// 设备数量
5297	DevNum *uint64 `json:"DevNum,omitempty" name:"DevNum"`
5298
5299	// 已创建设备数量
5300	DevNumCreated *uint64 `json:"DevNumCreated,omitempty" name:"DevNumCreated"`
5301
5302	// 批次下载地址
5303	BatchURL *string `json:"BatchURL,omitempty" name:"BatchURL"`
5304
5305	// 创建时间。unix时间戳
5306	CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"`
5307
5308	// 修改时间。unix时间戳
5309	UpdateTime *uint64 `json:"UpdateTime,omitempty" name:"UpdateTime"`
5310}
5311
5312type VideoProduct struct {
5313
5314	// 产品ID
5315	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
5316
5317	// 产品名称
5318	ProductName *string `json:"ProductName,omitempty" name:"ProductName"`
5319
5320	// 产品设备类型(普通设备)	1.普通设备
5321	DeviceType *uint64 `json:"DeviceType,omitempty" name:"DeviceType"`
5322
5323	// 认证方式:2:PSK
5324	EncryptionType *uint64 `json:"EncryptionType,omitempty" name:"EncryptionType"`
5325
5326	// 设备功能码
5327	Features []*string `json:"Features,omitempty" name:"Features"`
5328
5329	// 操作系统
5330	ChipOs *string `json:"ChipOs,omitempty" name:"ChipOs"`
5331
5332	// 芯片厂商id
5333	ChipManufactureId *string `json:"ChipManufactureId,omitempty" name:"ChipManufactureId"`
5334
5335	// 芯片id
5336	ChipId *string `json:"ChipId,omitempty" name:"ChipId"`
5337
5338	// 产品描述信息
5339	ProductDescription *string `json:"ProductDescription,omitempty" name:"ProductDescription"`
5340
5341	// 创建时间unix时间戳
5342	CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"`
5343
5344	// 修改时间unix时间戳
5345	UpdateTime *uint64 `json:"UpdateTime,omitempty" name:"UpdateTime"`
5346}
5347
5348type WakeUpDeviceRequest struct {
5349	*tchttp.BaseRequest
5350
5351	// 产品ID
5352	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
5353
5354	// 设备名称
5355	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
5356}
5357
5358func (r *WakeUpDeviceRequest) ToJsonString() string {
5359    b, _ := json.Marshal(r)
5360    return string(b)
5361}
5362
5363// FromJsonString It is highly **NOT** recommended to use this function
5364// because it has no param check, nor strict type check
5365func (r *WakeUpDeviceRequest) FromJsonString(s string) error {
5366	f := make(map[string]interface{})
5367	if err := json.Unmarshal([]byte(s), &f); err != nil {
5368		return err
5369	}
5370	delete(f, "ProductId")
5371	delete(f, "DeviceName")
5372	if len(f) > 0 {
5373		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "WakeUpDeviceRequest has unknown keys!", "")
5374	}
5375	return json.Unmarshal([]byte(s), &r)
5376}
5377
5378type WakeUpDeviceResponse struct {
5379	*tchttp.BaseResponse
5380	Response *struct {
5381
5382		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5383		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
5384	} `json:"Response"`
5385}
5386
5387func (r *WakeUpDeviceResponse) ToJsonString() string {
5388    b, _ := json.Marshal(r)
5389    return string(b)
5390}
5391
5392// FromJsonString It is highly **NOT** recommended to use this function
5393// because it has no param check, nor strict type check
5394func (r *WakeUpDeviceResponse) FromJsonString(s string) error {
5395	return json.Unmarshal([]byte(s), &r)
5396}
5397