Documentation ¶
Index ¶
- Constants
- type BindDevInfo
- type BindUsrInfo
- type Client
- func (c *Client) CreateAppUsr(request *CreateAppUsrRequest) (response *CreateAppUsrResponse, err error)
- func (c *Client) CreateBinding(request *CreateBindingRequest) (response *CreateBindingResponse, err error)
- func (c *Client) CreateDevToken(request *CreateDevTokenRequest) (response *CreateDevTokenResponse, err error)
- func (c *Client) CreateDevices(request *CreateDevicesRequest) (response *CreateDevicesResponse, err error)
- func (c *Client) CreateGencode(request *CreateGencodeRequest) (response *CreateGencodeResponse, err error)
- func (c *Client) CreateIotDataType(request *CreateIotDataTypeRequest) (response *CreateIotDataTypeResponse, err error)
- func (c *Client) CreateIotModel(request *CreateIotModelRequest) (response *CreateIotModelResponse, err error)
- func (c *Client) CreateProduct(request *CreateProductRequest) (response *CreateProductResponse, err error)
- func (c *Client) CreateTraceIds(request *CreateTraceIdsRequest) (response *CreateTraceIdsResponse, err error)
- func (c *Client) CreateUploadPath(request *CreateUploadPathRequest) (response *CreateUploadPathResponse, err error)
- func (c *Client) CreateUsrToken(request *CreateUsrTokenRequest) (response *CreateUsrTokenResponse, err error)
- func (c *Client) DeleteBinding(request *DeleteBindingRequest) (response *DeleteBindingResponse, err error)
- func (c *Client) DeleteDevice(request *DeleteDeviceRequest) (response *DeleteDeviceResponse, err error)
- func (c *Client) DeleteIotDataType(request *DeleteIotDataTypeRequest) (response *DeleteIotDataTypeResponse, err error)
- func (c *Client) DeleteMessageQueue(request *DeleteMessageQueueRequest) (response *DeleteMessageQueueResponse, err error)
- func (c *Client) DeleteOtaVersion(request *DeleteOtaVersionRequest) (response *DeleteOtaVersionResponse, err error)
- func (c *Client) DeleteProduct(request *DeleteProductRequest) (response *DeleteProductResponse, err error)
- func (c *Client) DeleteTraceIds(request *DeleteTraceIdsRequest) (response *DeleteTraceIdsResponse, err error)
- func (c *Client) DescribeBindDev(request *DescribeBindDevRequest) (response *DescribeBindDevResponse, err error)
- func (c *Client) DescribeBindUsr(request *DescribeBindUsrRequest) (response *DescribeBindUsrResponse, err error)
- func (c *Client) DescribeDevice(request *DescribeDeviceRequest) (response *DescribeDeviceResponse, err error)
- func (c *Client) DescribeDeviceModel(request *DescribeDeviceModelRequest) (response *DescribeDeviceModelResponse, err error)
- func (c *Client) DescribeDevices(request *DescribeDevicesRequest) (response *DescribeDevicesResponse, err error)
- func (c *Client) DescribeIotDataType(request *DescribeIotDataTypeRequest) (response *DescribeIotDataTypeResponse, err error)
- func (c *Client) DescribeIotModel(request *DescribeIotModelRequest) (response *DescribeIotModelResponse, err error)
- func (c *Client) DescribeIotModels(request *DescribeIotModelsRequest) (response *DescribeIotModelsResponse, err error)
- func (c *Client) DescribeLogs(request *DescribeLogsRequest) (response *DescribeLogsResponse, err error)
- func (c *Client) DescribeMessageQueue(request *DescribeMessageQueueRequest) (response *DescribeMessageQueueResponse, err error)
- func (c *Client) DescribeModelDataRet(request *DescribeModelDataRetRequest) (response *DescribeModelDataRetResponse, err error)
- func (c *Client) DescribeOtaVersions(request *DescribeOtaVersionsRequest) (response *DescribeOtaVersionsResponse, err error)
- func (c *Client) DescribeProduct(request *DescribeProductRequest) (response *DescribeProductResponse, err error)
- func (c *Client) DescribeProducts(request *DescribeProductsRequest) (response *DescribeProductsResponse, err error)
- func (c *Client) DescribePubVersions(request *DescribePubVersionsRequest) (response *DescribePubVersionsResponse, err error)
- func (c *Client) DescribeRunLog(request *DescribeRunLogRequest) (response *DescribeRunLogResponse, err error)
- func (c *Client) DescribeTraceIds(request *DescribeTraceIdsRequest) (response *DescribeTraceIdsResponse, err error)
- func (c *Client) DescribeTraceStatus(request *DescribeTraceStatusRequest) (response *DescribeTraceStatusResponse, err error)
- func (c *Client) DisableDevice(request *DisableDeviceRequest) (response *DisableDeviceResponse, err error)
- func (c *Client) DisableDeviceStream(request *DisableDeviceStreamRequest) (response *DisableDeviceStreamResponse, err error)
- func (c *Client) DisableOtaVersion(request *DisableOtaVersionRequest) (response *DisableOtaVersionResponse, err error)
- func (c *Client) ModifyDeviceAction(request *ModifyDeviceActionRequest) (response *ModifyDeviceActionResponse, err error)
- func (c *Client) ModifyDeviceProperty(request *ModifyDevicePropertyRequest) (response *ModifyDevicePropertyResponse, err error)
- func (c *Client) ModifyProduct(request *ModifyProductRequest) (response *ModifyProductResponse, err error)
- func (c *Client) RunDevice(request *RunDeviceRequest) (response *RunDeviceResponse, err error)
- func (c *Client) RunDeviceStream(request *RunDeviceStreamRequest) (response *RunDeviceStreamResponse, err error)
- func (c *Client) RunIotModel(request *RunIotModelRequest) (response *RunIotModelResponse, err error)
- func (c *Client) RunOtaVersion(request *RunOtaVersionRequest) (response *RunOtaVersionResponse, err error)
- func (c *Client) RunTestOtaVersion(request *RunTestOtaVersionRequest) (response *RunTestOtaVersionResponse, err error)
- func (c *Client) SendOnlineMsg(request *SendOnlineMsgRequest) (response *SendOnlineMsgResponse, err error)
- func (c *Client) SetMessageQueue(request *SetMessageQueueRequest) (response *SetMessageQueueResponse, err error)
- func (c *Client) UpgradeDevice(request *UpgradeDeviceRequest) (response *UpgradeDeviceResponse, err error)
- func (c *Client) UploadOtaVersion(request *UploadOtaVersionRequest) (response *UploadOtaVersionResponse, err error)
- type CreateAppUsrRequest
- type CreateAppUsrResponse
- type CreateBindingRequest
- type CreateBindingResponse
- type CreateDevTokenRequest
- type CreateDevTokenResponse
- type CreateDevicesRequest
- type CreateDevicesResponse
- type CreateGencodeRequest
- type CreateGencodeResponse
- type CreateIotDataTypeRequest
- type CreateIotDataTypeResponse
- type CreateIotModelRequest
- type CreateIotModelResponse
- type CreateProductRequest
- type CreateProductResponse
- type CreateTraceIdsRequest
- type CreateTraceIdsResponse
- type CreateUploadPathRequest
- type CreateUploadPathResponse
- type CreateUsrTokenRequest
- type CreateUsrTokenResponse
- type DeleteBindingRequest
- type DeleteBindingResponse
- type DeleteDeviceRequest
- type DeleteDeviceResponse
- type DeleteIotDataTypeRequest
- type DeleteIotDataTypeResponse
- type DeleteMessageQueueRequest
- type DeleteMessageQueueResponse
- type DeleteOtaVersionRequest
- type DeleteOtaVersionResponse
- type DeleteProductRequest
- type DeleteProductResponse
- type DeleteTraceIdsRequest
- type DeleteTraceIdsResponse
- type DescribeBindDevRequest
- type DescribeBindDevResponse
- type DescribeBindUsrRequest
- type DescribeBindUsrResponse
- type DescribeDeviceModelRequest
- type DescribeDeviceModelResponse
- type DescribeDeviceRequest
- type DescribeDeviceResponse
- type DescribeDevicesRequest
- type DescribeDevicesResponse
- type DescribeIotDataTypeRequest
- type DescribeIotDataTypeResponse
- type DescribeIotModelRequest
- type DescribeIotModelResponse
- type DescribeIotModelsRequest
- type DescribeIotModelsResponse
- type DescribeLogsRequest
- type DescribeLogsResponse
- type DescribeMessageQueueRequest
- type DescribeMessageQueueResponse
- type DescribeModelDataRetRequest
- type DescribeModelDataRetResponse
- type DescribeOtaVersionsRequest
- type DescribeOtaVersionsResponse
- type DescribeProductRequest
- type DescribeProductResponse
- type DescribeProductsRequest
- type DescribeProductsResponse
- type DescribePubVersionsRequest
- type DescribePubVersionsResponse
- type DescribeRunLogRequest
- type DescribeRunLogResponse
- type DescribeTraceIdsRequest
- type DescribeTraceIdsResponse
- type DescribeTraceStatusRequest
- type DescribeTraceStatusResponse
- type DevTokenInfo
- type DeviceCertificate
- type DeviceData
- type DeviceModelData
- type DevicesData
- type DisableDeviceRequest
- type DisableDeviceResponse
- type DisableDeviceStreamRequest
- type DisableDeviceStreamResponse
- type DisableOtaVersionRequest
- type DisableOtaVersionResponse
- type IotModelData
- type LogData
- type ModifyDeviceActionRequest
- type ModifyDeviceActionResponse
- type ModifyDevicePropertyRequest
- type ModifyDevicePropertyResponse
- type ModifyProductRequest
- type ModifyProductResponse
- type MsgQueueData
- type OtaPubHistory
- type ProductBase
- type ProductData
- type RunDeviceRequest
- type RunDeviceResponse
- type RunDeviceStreamRequest
- type RunDeviceStreamResponse
- type RunIotModelRequest
- type RunIotModelResponse
- type RunOtaVersionRequest
- type RunOtaVersionResponse
- type RunTestOtaVersionRequest
- type RunTestOtaVersionResponse
- type SendOnlineMsgRequest
- type SendOnlineMsgResponse
- type SetMessageQueueRequest
- type SetMessageQueueResponse
- type TraceStatus
- type UpgradeDeviceRequest
- type UpgradeDeviceResponse
- type UploadOtaVersionRequest
- type UploadOtaVersionResponse
- type VersionData
Constants ¶
const APIVersion = "2019-11-26"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindDevInfo ¶
type BindDevInfo struct { // 设备TID Tid *string `json:"Tid,omitempty" name:"Tid"` // 设备名称 DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"` // 设备型号 // 注意:此字段可能返回 null,表示取不到有效值。 DeviceModel *string `json:"DeviceModel,omitempty" name:"DeviceModel"` // 用户角色,owner:主人,guest:访客 Role *string `json:"Role,omitempty" name:"Role"` }
type BindUsrInfo ¶
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) CreateAppUsr ¶
func (c *Client) CreateAppUsr(request *CreateAppUsrRequest) (response *CreateAppUsrResponse, err error)
本接口(CreateAppUsr)用于接收由厂商云发送过来的注册请求,建立厂商云终端用户与IoT Video终端用户的映射关系。
func (*Client) CreateBinding ¶
func (c *Client) CreateBinding(request *CreateBindingRequest) (response *CreateBindingResponse, err error)
本接口(CreateBinding)用于终端用户和设备进行绑定,具体的应用场景如下:
终端用户与设备具有“强关联”关系。用户与设备绑定之后,用户终端即具备了该设备的访问权限,访问或操作设备时,无需获取设备访问Token。
func (*Client) CreateDevToken ¶
func (c *Client) CreateDevToken(request *CreateDevTokenRequest) (response *CreateDevTokenResponse, err error)
本接口(CreateDevToken)用于以下场景: 终端用户与设备没有强绑定关联关系; 允许终端用户短时或一次性临时访问设备; 当终端用户与设备有强绑定关系时,可以不用调用此接口
func (*Client) CreateDevices ¶
func (c *Client) CreateDevices(request *CreateDevicesRequest) (response *CreateDevicesResponse, err error)
本接口(CreateDevices)用于批量创建新的物联网视频通信设备。 注意:腾讯云不会对设备私钥进行保存,请自行保管好您的设备私钥。
func (*Client) CreateGencode ¶
func (c *Client) CreateGencode(request *CreateGencodeRequest) (response *CreateGencodeResponse, err error)
本接口(CreateGencode)用于生成设备物模型源代码
func (*Client) CreateIotDataType ¶
func (c *Client) CreateIotDataType(request *CreateIotDataTypeRequest) (response *CreateIotDataTypeResponse, err error)
本接口(CreateIotDataType)用于创建自定义物模型数据类型。
func (*Client) CreateIotModel ¶
func (c *Client) CreateIotModel(request *CreateIotModelRequest) (response *CreateIotModelResponse, err error)
本接口(CreateIotModel)用于定义的物模型提交。 该接口实现了物模型草稿箱的功能,保存用户最后一次编辑的物模型数据。
func (*Client) CreateProduct ¶
func (c *Client) CreateProduct(request *CreateProductRequest) (response *CreateProductResponse, err error)
本接口(CreateProduct)用于创建一个新的物联网智能视频产品。
func (*Client) CreateTraceIds ¶
func (c *Client) CreateTraceIds(request *CreateTraceIdsRequest) (response *CreateTraceIdsResponse, err error)
本接口(CreateTraceIds)用于将设备加到日志跟踪白名单。
func (*Client) CreateUploadPath ¶
func (c *Client) CreateUploadPath(request *CreateUploadPathRequest) (response *CreateUploadPathResponse, err error)
本接口(CreateUploadPath)用于获取固件上传路径。
func (*Client) CreateUsrToken ¶
func (c *Client) CreateUsrToken(request *CreateUsrTokenRequest) (response *CreateUsrTokenResponse, err error)
本接口(CreateUsrToken)用于终端用户获取IoT Video平台的accessToken,初始化SDK,连接到IoT Video接入服务器。
func (*Client) DeleteBinding ¶
func (c *Client) DeleteBinding(request *DeleteBindingRequest) (response *DeleteBindingResponse, err error)
本接口(DeleteBinding)用于终端用户和设备进行解绑定。
func (*Client) DeleteDevice ¶
func (c *Client) DeleteDevice(request *DeleteDeviceRequest) (response *DeleteDeviceResponse, err error)
本接口(DeleteDevice)用于删除设备,可进行批量操作,每次操作最多100台设备。
func (*Client) DeleteIotDataType ¶
func (c *Client) DeleteIotDataType(request *DeleteIotDataTypeRequest) (response *DeleteIotDataTypeResponse, err error)
本接口(DeleteIotDataType)用于删除自定义物模型数据类型。
func (*Client) DeleteMessageQueue ¶
func (c *Client) DeleteMessageQueue(request *DeleteMessageQueueRequest) (response *DeleteMessageQueueResponse, err error)
本接口(DeleteMessageQueue)用于删除物联网智能视频产品的转发消息配置信息。
func (*Client) DeleteOtaVersion ¶
func (c *Client) DeleteOtaVersion(request *DeleteOtaVersionRequest) (response *DeleteOtaVersionResponse, err error)
本接口(DeleteOtaVersion)用于删除固件版本信息。
func (*Client) DeleteProduct ¶
func (c *Client) DeleteProduct(request *DeleteProductRequest) (response *DeleteProductResponse, err error)
本接口(DeleteProduct)用于删除一个物联网智能视频产品。
func (*Client) DeleteTraceIds ¶
func (c *Client) DeleteTraceIds(request *DeleteTraceIdsRequest) (response *DeleteTraceIdsResponse, err error)
本接口(DeleteTraceIds)用于将设备从日志跟踪白名单中删除,该接口可批量操作,最多支持同时操作100台设备。
func (*Client) DescribeBindDev ¶
func (c *Client) DescribeBindDev(request *DescribeBindDevRequest) (response *DescribeBindDevResponse, err error)
本接口(DescribeBindDev)用于查询终端用户绑定的设备列表。
func (*Client) DescribeBindUsr ¶
func (c *Client) DescribeBindUsr(request *DescribeBindUsrRequest) (response *DescribeBindUsrResponse, err error)
本接口(DescribeBindUsr)用于查询设备被分享的所有用户列表。
func (*Client) DescribeDevice ¶
func (c *Client) DescribeDevice(request *DescribeDeviceRequest) (response *DescribeDeviceResponse, err error)
本接口(DescribeDevice)获取设备信息。
func (*Client) DescribeDeviceModel ¶
func (c *Client) DescribeDeviceModel(request *DescribeDeviceModelRequest) (response *DescribeDeviceModelResponse, err error)
本接口(DescribeDeviceModel)用于获取设备物模型。
func (*Client) DescribeDevices ¶
func (c *Client) DescribeDevices(request *DescribeDevicesRequest) (response *DescribeDevicesResponse, err error)
本接口(DescribeDevices)用于获取设备信息列表。
func (*Client) DescribeIotDataType ¶
func (c *Client) DescribeIotDataType(request *DescribeIotDataTypeRequest) (response *DescribeIotDataTypeResponse, err error)
本接口(DescribeIotDataType)用于查询自定义的物模型数据类型。
func (*Client) DescribeIotModel ¶
func (c *Client) DescribeIotModel(request *DescribeIotModelRequest) (response *DescribeIotModelResponse, err error)
本接口(DescribeIotModel)用于获取物模型定义详情。
func (*Client) DescribeIotModels ¶
func (c *Client) DescribeIotModels(request *DescribeIotModelsRequest) (response *DescribeIotModelsResponse, err error)
本接口(DescribeIotModels)用于列出物模型历史版本列表。
func (*Client) DescribeLogs ¶
func (c *Client) DescribeLogs(request *DescribeLogsRequest) (response *DescribeLogsResponse, err error)
本接口(DescribeLogs)用于查询设备日志列表。 设备日志最长保留时长为15天,超期自动清除。
func (*Client) DescribeMessageQueue ¶
func (c *Client) DescribeMessageQueue(request *DescribeMessageQueueRequest) (response *DescribeMessageQueueResponse, err error)
本接口(DescribeMessageQueue)用于查询物联网智能视频产品转发消息配置。
func (*Client) DescribeModelDataRet ¶
func (c *Client) DescribeModelDataRet(request *DescribeModelDataRetRequest) (response *DescribeModelDataRetResponse, err error)
本接口(DescribeModelDataRet)用于根据TaskId获取对设备物模型操作最终响应的结果。
func (*Client) DescribeOtaVersions ¶
func (c *Client) DescribeOtaVersions(request *DescribeOtaVersionsRequest) (response *DescribeOtaVersionsResponse, err error)
本接口(DescribeOtaVersions)用于查询固件版本信息列表。
func (*Client) DescribeProduct ¶
func (c *Client) DescribeProduct(request *DescribeProductRequest) (response *DescribeProductResponse, err error)
本接口(DescribeProduct)用于获取单个产品的详细信息。
func (*Client) DescribeProducts ¶
func (c *Client) DescribeProducts(request *DescribeProductsRequest) (response *DescribeProductsResponse, err error)
本接口(DescribeProducts)用于列出用户账号下的物联网智能视频产品列表。
func (*Client) DescribePubVersions ¶
func (c *Client) DescribePubVersions(request *DescribePubVersionsRequest) (response *DescribePubVersionsResponse, err error)
本接口(DescribePubVersions)用于获取某一产品发布过的全部固件版本。
func (*Client) DescribeRunLog ¶
func (c *Client) DescribeRunLog(request *DescribeRunLogRequest) (response *DescribeRunLogResponse, err error)
本接口(DescribeRunLog)用于获取设备运行日志。
func (*Client) DescribeTraceIds ¶
func (c *Client) DescribeTraceIds(request *DescribeTraceIdsRequest) (response *DescribeTraceIdsResponse, err error)
本接口(DescribeTraceIds)用于查询设备日志跟踪白名单。
func (*Client) DescribeTraceStatus ¶
func (c *Client) DescribeTraceStatus(request *DescribeTraceStatusRequest) (response *DescribeTraceStatusResponse, err error)
本接口(DescribeTraceStatus)用于查询指定设备是否在白名单中。
func (*Client) DisableDevice ¶
func (c *Client) DisableDevice(request *DisableDeviceRequest) (response *DisableDeviceResponse, err error)
本接口(DisableDevice)用于禁用设备,可进行批量操作,每次操作最多100台设备。
func (*Client) DisableDeviceStream ¶
func (c *Client) DisableDeviceStream(request *DisableDeviceStreamRequest) (response *DisableDeviceStreamResponse, err error)
本接口(DisableDeviceStream)用于停止设备推流,可进行批量操作,每次操作最多100台设备。
func (*Client) DisableOtaVersion ¶
func (c *Client) DisableOtaVersion(request *DisableOtaVersionRequest) (response *DisableOtaVersionResponse, err error)
本接口(DisableOtaVersion)用于禁用固件版本。
func (*Client) ModifyDeviceAction ¶
func (c *Client) ModifyDeviceAction(request *ModifyDeviceActionRequest) (response *ModifyDeviceActionResponse, err error)
本接口(ModifyDeviceAction)用于修改设备物模型的行为(Action)。
可对ctlVal数据属性进行写入,如:Action.takePhoto.ctlVal,设备在线且成功发送到设备才返回,物模型写入数据时,不需要传入时标信息,平台以当前时标作为数据的时标更新物模型中的时标信息。 注意:
1.若设备当前不在线,会直接返回错误 2.若设备网络出现异常时,消息发送可能超时,超时等待最长时间为3秒 3.value的内容必须与实际物模型的定义一致
func (*Client) ModifyDeviceProperty ¶
func (c *Client) ModifyDeviceProperty(request *ModifyDevicePropertyRequest) (response *ModifyDevicePropertyResponse, err error)
本接口(ModifyDeviceProperty)用于修改设备物模型的属性(ProWritable)。 可对setVal数据属性进行写入,如: ProWritable.Pos.setVal 对于嵌套类型的可写属性,可以仅对其部分数据内容进行写入,如: ProWritable.Pos.setVal.x; 可写属性云端写入成功即返回;云端向设备端发布属性变更参数;若当前设备不在线,在设备下次上线时会自动更新这些属性参数; 物模型写入数据时,不需要传入时标信息,平台以当前时标作为数据的时标更新物模型中的时标信息。
func (*Client) ModifyProduct ¶
func (c *Client) ModifyProduct(request *ModifyProductRequest) (response *ModifyProductResponse, err error)
本接口(ModifyProduct)用于编辑物联网智能视频产品的相关信息。
func (*Client) RunDevice ¶
func (c *Client) RunDevice(request *RunDeviceRequest) (response *RunDeviceResponse, err error)
本接口(RunDevice)用于启用设备,可进行批量操作,每次操作最多100台设备。
func (*Client) RunDeviceStream ¶
func (c *Client) RunDeviceStream(request *RunDeviceStreamRequest) (response *RunDeviceStreamResponse, err error)
本接口(RunDeviceStream)用于开启设备推流,可进行批量操作,每次操作最多100台设备。
func (*Client) RunIotModel ¶
func (c *Client) RunIotModel(request *RunIotModelRequest) (response *RunIotModelResponse, err error)
本接口(RunIotModel)用于对定义的物模型进行发布。
func (*Client) RunOtaVersion ¶
func (c *Client) RunOtaVersion(request *RunOtaVersionRequest) (response *RunOtaVersionResponse, err error)
本接口(RunOtaVersion)用于固件版本正式发布。
func (*Client) RunTestOtaVersion ¶
func (c *Client) RunTestOtaVersion(request *RunTestOtaVersionRequest) (response *RunTestOtaVersionResponse, err error)
本接口(RunTestOtaVersion)用于固件版本测试发布。
func (*Client) SendOnlineMsg ¶
func (c *Client) SendOnlineMsg(request *SendOnlineMsgRequest) (response *SendOnlineMsgResponse, err error)
本接口(SendOnlineMsg)用于向设备发送在线消息。 注意: 若设备当前不在线,会直接返回错误; 若设备网络出现异常时,消息发送可能超时,超时等待最长时间为3秒.waitresp非0情况下,会导致本接口阻塞3秒。
func (*Client) SetMessageQueue ¶
func (c *Client) SetMessageQueue(request *SetMessageQueueRequest) (response *SetMessageQueueResponse, err error)
本接口(SetMessageQueue)用于配置物联网智能视频产品的转发消息队列。
func (*Client) UpgradeDevice ¶
func (c *Client) UpgradeDevice(request *UpgradeDeviceRequest) (response *UpgradeDeviceResponse, err error)
本接口(UpgradeDevice)用于对设备进行固件升级。 该接口向指定的设备下发固件更新指令,可将固件升级到任意版本(可实现固件降级)。 警告:使能UpgradeNow参数存在一定的风险性!建议仅在debug场景下使用!
func (*Client) UploadOtaVersion ¶
func (c *Client) UploadOtaVersion(request *UploadOtaVersionRequest) (response *UploadOtaVersionResponse, err error)
本接口(UploadOtaVersion)接收上传到控制台的固件版本信息。
type CreateAppUsrRequest ¶
type CreateAppUsrRequest struct { *tchttp.BaseRequest // 标识用户的唯一ID,防止同一个用户多次注册 CunionId *string `json:"CunionId,omitempty" name:"CunionId"` }
func NewCreateAppUsrRequest ¶
func NewCreateAppUsrRequest() (request *CreateAppUsrRequest)
func (*CreateAppUsrRequest) FromJsonString ¶
func (r *CreateAppUsrRequest) FromJsonString(s string) error
func (*CreateAppUsrRequest) ToJsonString ¶
func (r *CreateAppUsrRequest) ToJsonString() string
type CreateAppUsrResponse ¶
type CreateAppUsrResponse struct { *tchttp.BaseResponse Response *struct { // 厂商云标识用户的唯一ID CunionId *string `json:"CunionId,omitempty" name:"CunionId"` // 客户的终端用户在IoT Video上的唯一标识ID AccessId *string `json:"AccessId,omitempty" name:"AccessId"` // 用户是否为新创建 NewRegist *bool `json:"NewRegist,omitempty" name:"NewRegist"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateAppUsrResponse ¶
func NewCreateAppUsrResponse() (response *CreateAppUsrResponse)
func (*CreateAppUsrResponse) FromJsonString ¶
func (r *CreateAppUsrResponse) FromJsonString(s string) error
func (*CreateAppUsrResponse) ToJsonString ¶
func (r *CreateAppUsrResponse) ToJsonString() string
type CreateBindingRequest ¶
type CreateBindingRequest struct { *tchttp.BaseRequest // 终端用户在IoT Video上的唯一标识ID AccessId *string `json:"AccessId,omitempty" name:"AccessId"` // 设备TID Tid *string `json:"Tid,omitempty" name:"Tid"` // 用户角色,owner:主人,guest:访客 Role *string `json:"Role,omitempty" name:"Role"` // 是否踢掉之前的主人,true:踢掉;false:不踢掉。当role为owner时,可以不填 ForceBind *bool `json:"ForceBind,omitempty" name:"ForceBind"` }
func NewCreateBindingRequest ¶
func NewCreateBindingRequest() (request *CreateBindingRequest)
func (*CreateBindingRequest) FromJsonString ¶
func (r *CreateBindingRequest) FromJsonString(s string) error
func (*CreateBindingRequest) ToJsonString ¶
func (r *CreateBindingRequest) ToJsonString() string
type CreateBindingResponse ¶
type CreateBindingResponse struct { *tchttp.BaseResponse Response *struct { // 访问设备的AccessToken AccessToken *string `json:"AccessToken,omitempty" name:"AccessToken"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateBindingResponse ¶
func NewCreateBindingResponse() (response *CreateBindingResponse)
func (*CreateBindingResponse) FromJsonString ¶
func (r *CreateBindingResponse) FromJsonString(s string) error
func (*CreateBindingResponse) ToJsonString ¶
func (r *CreateBindingResponse) ToJsonString() string
type CreateDevTokenRequest ¶
type CreateDevTokenRequest struct { *tchttp.BaseRequest // 客户的终端用户在IoT Video上的唯一标识ID AccessId *string `json:"AccessId,omitempty" name:"AccessId"` // 设备TID列表,0<元素数量<=100 Tids []*string `json:"Tids,omitempty" name:"Tids" list` // Token的TTL(time to alive)分钟数 TtlMinutes *uint64 `json:"TtlMinutes,omitempty" name:"TtlMinutes"` }
func NewCreateDevTokenRequest ¶
func NewCreateDevTokenRequest() (request *CreateDevTokenRequest)
func (*CreateDevTokenRequest) FromJsonString ¶
func (r *CreateDevTokenRequest) FromJsonString(s string) error
func (*CreateDevTokenRequest) ToJsonString ¶
func (r *CreateDevTokenRequest) ToJsonString() string
type CreateDevTokenResponse ¶
type CreateDevTokenResponse struct { *tchttp.BaseResponse Response *struct { // 返回的用户token列表 // 注意:此字段可能返回 null,表示取不到有效值。 Data []*DevTokenInfo `json:"Data,omitempty" name:"Data" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateDevTokenResponse ¶
func NewCreateDevTokenResponse() (response *CreateDevTokenResponse)
func (*CreateDevTokenResponse) FromJsonString ¶
func (r *CreateDevTokenResponse) FromJsonString(s string) error
func (*CreateDevTokenResponse) ToJsonString ¶
func (r *CreateDevTokenResponse) ToJsonString() string
type CreateDevicesRequest ¶
type CreateDevicesRequest struct { *tchttp.BaseRequest // 产品ID ProductId *string `json:"ProductId,omitempty" name:"ProductId"` // 创建设备的数量,数量范围1-100 Number *uint64 `json:"Number,omitempty" name:"Number"` // 设备名称前缀,支持英文、数字,不超过10字符 NamePrefix *string `json:"NamePrefix,omitempty" name:"NamePrefix"` // 操作人 Operator *string `json:"Operator,omitempty" name:"Operator"` }
func NewCreateDevicesRequest ¶
func NewCreateDevicesRequest() (request *CreateDevicesRequest)
func (*CreateDevicesRequest) FromJsonString ¶
func (r *CreateDevicesRequest) FromJsonString(s string) error
func (*CreateDevicesRequest) ToJsonString ¶
func (r *CreateDevicesRequest) ToJsonString() string
type CreateDevicesResponse ¶
type CreateDevicesResponse struct { *tchttp.BaseResponse Response *struct { // 新创建设备的认证信息 Data []*DeviceCertificate `json:"Data,omitempty" name:"Data" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateDevicesResponse ¶
func NewCreateDevicesResponse() (response *CreateDevicesResponse)
func (*CreateDevicesResponse) FromJsonString ¶
func (r *CreateDevicesResponse) FromJsonString(s string) error
func (*CreateDevicesResponse) ToJsonString ¶
func (r *CreateDevicesResponse) ToJsonString() string
type CreateGencodeRequest ¶
type CreateGencodeRequest struct { *tchttp.BaseRequest // 产品ID ProductId *string `json:"ProductId,omitempty" name:"ProductId"` // 物模型发布版本号,-1代表最新编辑(未发布)的版本 Revision *int64 `json:"Revision,omitempty" name:"Revision"` }
func NewCreateGencodeRequest ¶
func NewCreateGencodeRequest() (request *CreateGencodeRequest)
func (*CreateGencodeRequest) FromJsonString ¶
func (r *CreateGencodeRequest) FromJsonString(s string) error
func (*CreateGencodeRequest) ToJsonString ¶
func (r *CreateGencodeRequest) ToJsonString() string
type CreateGencodeResponse ¶
type CreateGencodeResponse struct { *tchttp.BaseResponse Response *struct { // 生成的源代码(zip压缩后的base64编码) // 注意:此字段可能返回 null,表示取不到有效值。 ZipCode *string `json:"ZipCode,omitempty" name:"ZipCode"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateGencodeResponse ¶
func NewCreateGencodeResponse() (response *CreateGencodeResponse)
func (*CreateGencodeResponse) FromJsonString ¶
func (r *CreateGencodeResponse) FromJsonString(s string) error
func (*CreateGencodeResponse) ToJsonString ¶
func (r *CreateGencodeResponse) ToJsonString() string
type CreateIotDataTypeRequest ¶
type CreateIotDataTypeRequest struct { *tchttp.BaseRequest // 用户自定义数据类型,json格式的字符串 IotDataType *string `json:"IotDataType,omitempty" name:"IotDataType"` }
func NewCreateIotDataTypeRequest ¶
func NewCreateIotDataTypeRequest() (request *CreateIotDataTypeRequest)
func (*CreateIotDataTypeRequest) FromJsonString ¶
func (r *CreateIotDataTypeRequest) FromJsonString(s string) error
func (*CreateIotDataTypeRequest) ToJsonString ¶
func (r *CreateIotDataTypeRequest) ToJsonString() string
type CreateIotDataTypeResponse ¶
type CreateIotDataTypeResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateIotDataTypeResponse ¶
func NewCreateIotDataTypeResponse() (response *CreateIotDataTypeResponse)
func (*CreateIotDataTypeResponse) FromJsonString ¶
func (r *CreateIotDataTypeResponse) FromJsonString(s string) error
func (*CreateIotDataTypeResponse) ToJsonString ¶
func (r *CreateIotDataTypeResponse) ToJsonString() string
type CreateIotModelRequest ¶
type CreateIotModelRequest struct { *tchttp.BaseRequest // 产品ID ProductId *string `json:"ProductId,omitempty" name:"ProductId"` // 物模型json串 IotModel *string `json:"IotModel,omitempty" name:"IotModel"` }
func NewCreateIotModelRequest ¶
func NewCreateIotModelRequest() (request *CreateIotModelRequest)
func (*CreateIotModelRequest) FromJsonString ¶
func (r *CreateIotModelRequest) FromJsonString(s string) error
func (*CreateIotModelRequest) ToJsonString ¶
func (r *CreateIotModelRequest) ToJsonString() string
type CreateIotModelResponse ¶
type CreateIotModelResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateIotModelResponse ¶
func NewCreateIotModelResponse() (response *CreateIotModelResponse)
func (*CreateIotModelResponse) FromJsonString ¶
func (r *CreateIotModelResponse) FromJsonString(s string) error
func (*CreateIotModelResponse) ToJsonString ¶
func (r *CreateIotModelResponse) ToJsonString() string
type CreateProductRequest ¶
type CreateProductRequest struct { *tchttp.BaseRequest // 产器型号(APP产品,为APP包名) ProductModel *string `json:"ProductModel,omitempty" name:"ProductModel"` // 设备功能码(ypsxth:音频双向通话 ,spdxth:视频单向通话) Features []*string `json:"Features,omitempty" name:"Features" list` // 产品名称 // 仅支持中文、英文、数字、下划线,不超过32个字符 ProductName *string `json:"ProductName,omitempty" name:"ProductName"` // 产品描述信息 // 不支持单引号、双引号、退格符、回车符、换行符、制表符、反斜杠、下划线、“%”、“#”、“$”,不超过128字符 ProductDescription *string `json:"ProductDescription,omitempty" name:"ProductDescription"` // 主芯片产商ID ChipManufactureId *string `json:"ChipManufactureId,omitempty" name:"ChipManufactureId"` // 主芯片ID ChipId *string `json:"ChipId,omitempty" name:"ChipId"` }
func NewCreateProductRequest ¶
func NewCreateProductRequest() (request *CreateProductRequest)
func (*CreateProductRequest) FromJsonString ¶
func (r *CreateProductRequest) FromJsonString(s string) error
func (*CreateProductRequest) ToJsonString ¶
func (r *CreateProductRequest) ToJsonString() string
type CreateProductResponse ¶
type CreateProductResponse struct { *tchttp.BaseResponse Response *struct { // 产品详细信息 Data *ProductBase `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateProductResponse ¶
func NewCreateProductResponse() (response *CreateProductResponse)
func (*CreateProductResponse) FromJsonString ¶
func (r *CreateProductResponse) FromJsonString(s string) error
func (*CreateProductResponse) ToJsonString ¶
func (r *CreateProductResponse) ToJsonString() string
type CreateTraceIdsRequest ¶
type CreateTraceIdsRequest struct { *tchttp.BaseRequest // 设备TID列表 Tids []*string `json:"Tids,omitempty" name:"Tids" list` }
func NewCreateTraceIdsRequest ¶
func NewCreateTraceIdsRequest() (request *CreateTraceIdsRequest)
func (*CreateTraceIdsRequest) FromJsonString ¶
func (r *CreateTraceIdsRequest) FromJsonString(s string) error
func (*CreateTraceIdsRequest) ToJsonString ¶
func (r *CreateTraceIdsRequest) ToJsonString() string
type CreateTraceIdsResponse ¶
type CreateTraceIdsResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateTraceIdsResponse ¶
func NewCreateTraceIdsResponse() (response *CreateTraceIdsResponse)
func (*CreateTraceIdsResponse) FromJsonString ¶
func (r *CreateTraceIdsResponse) FromJsonString(s string) error
func (*CreateTraceIdsResponse) ToJsonString ¶
func (r *CreateTraceIdsResponse) ToJsonString() string
type CreateUploadPathRequest ¶
type CreateUploadPathRequest struct { *tchttp.BaseRequest // 产品ID ProductId *string `json:"ProductId,omitempty" name:"ProductId"` // 固件文件名 FileName *string `json:"FileName,omitempty" name:"FileName"` }
func NewCreateUploadPathRequest ¶
func NewCreateUploadPathRequest() (request *CreateUploadPathRequest)
func (*CreateUploadPathRequest) FromJsonString ¶
func (r *CreateUploadPathRequest) FromJsonString(s string) error
func (*CreateUploadPathRequest) ToJsonString ¶
func (r *CreateUploadPathRequest) ToJsonString() string
type CreateUploadPathResponse ¶
type CreateUploadPathResponse struct { *tchttp.BaseResponse Response *struct { // 固件上传地址URL,用户可将本地的固件文件通过该URL以PUT的请求方式上传。 // 注意:此字段可能返回 null,表示取不到有效值。 Data *string `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateUploadPathResponse ¶
func NewCreateUploadPathResponse() (response *CreateUploadPathResponse)
func (*CreateUploadPathResponse) FromJsonString ¶
func (r *CreateUploadPathResponse) FromJsonString(s string) error
func (*CreateUploadPathResponse) ToJsonString ¶
func (r *CreateUploadPathResponse) ToJsonString() string
type CreateUsrTokenRequest ¶
type CreateUsrTokenRequest struct { *tchttp.BaseRequest // 终端用户在IoT Video上的唯一标识ID AccessId *string `json:"AccessId,omitempty" name:"AccessId"` // 终端唯一ID,用于区分同一个用户的多个终端 UniqueId *string `json:"UniqueId,omitempty" name:"UniqueId"` // Token的TTL(time to alive)分钟数 TtlMinutes *uint64 `json:"TtlMinutes,omitempty" name:"TtlMinutes"` }
func NewCreateUsrTokenRequest ¶
func NewCreateUsrTokenRequest() (request *CreateUsrTokenRequest)
func (*CreateUsrTokenRequest) FromJsonString ¶
func (r *CreateUsrTokenRequest) FromJsonString(s string) error
func (*CreateUsrTokenRequest) ToJsonString ¶
func (r *CreateUsrTokenRequest) ToJsonString() string
type CreateUsrTokenResponse ¶
type CreateUsrTokenResponse struct { *tchttp.BaseResponse Response *struct { // 终端用户在IoT Video上的唯一标识ID AccessId *string `json:"AccessId,omitempty" name:"AccessId"` // IoT Video平台的AccessToken AccessToken *string `json:"AccessToken,omitempty" name:"AccessToken"` // Token的过期时间,单位秒(UTC时间) ExpireTime *uint64 `json:"ExpireTime,omitempty" name:"ExpireTime"` // 终端ID TerminalId *string `json:"TerminalId,omitempty" name:"TerminalId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateUsrTokenResponse ¶
func NewCreateUsrTokenResponse() (response *CreateUsrTokenResponse)
func (*CreateUsrTokenResponse) FromJsonString ¶
func (r *CreateUsrTokenResponse) FromJsonString(s string) error
func (*CreateUsrTokenResponse) ToJsonString ¶
func (r *CreateUsrTokenResponse) ToJsonString() string
type DeleteBindingRequest ¶
type DeleteBindingRequest struct { *tchttp.BaseRequest // 终端用户在IoT Video上的唯一标识ID AccessId *string `json:"AccessId,omitempty" name:"AccessId"` // 设备TID Tid *string `json:"Tid,omitempty" name:"Tid"` // 用户角色,owner:主人,guest:访客 Role *string `json:"Role,omitempty" name:"Role"` }
func NewDeleteBindingRequest ¶
func NewDeleteBindingRequest() (request *DeleteBindingRequest)
func (*DeleteBindingRequest) FromJsonString ¶
func (r *DeleteBindingRequest) FromJsonString(s string) error
func (*DeleteBindingRequest) ToJsonString ¶
func (r *DeleteBindingRequest) ToJsonString() string
type DeleteBindingResponse ¶
type DeleteBindingResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteBindingResponse ¶
func NewDeleteBindingResponse() (response *DeleteBindingResponse)
func (*DeleteBindingResponse) FromJsonString ¶
func (r *DeleteBindingResponse) FromJsonString(s string) error
func (*DeleteBindingResponse) ToJsonString ¶
func (r *DeleteBindingResponse) ToJsonString() string
type DeleteDeviceRequest ¶
type DeleteDeviceRequest struct { *tchttp.BaseRequest // 设备TID列表 Tids []*string `json:"Tids,omitempty" name:"Tids" list` }
func NewDeleteDeviceRequest ¶
func NewDeleteDeviceRequest() (request *DeleteDeviceRequest)
func (*DeleteDeviceRequest) FromJsonString ¶
func (r *DeleteDeviceRequest) FromJsonString(s string) error
func (*DeleteDeviceRequest) ToJsonString ¶
func (r *DeleteDeviceRequest) ToJsonString() string
type DeleteDeviceResponse ¶
type DeleteDeviceResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteDeviceResponse ¶
func NewDeleteDeviceResponse() (response *DeleteDeviceResponse)
func (*DeleteDeviceResponse) FromJsonString ¶
func (r *DeleteDeviceResponse) FromJsonString(s string) error
func (*DeleteDeviceResponse) ToJsonString ¶
func (r *DeleteDeviceResponse) ToJsonString() string
type DeleteIotDataTypeRequest ¶
type DeleteIotDataTypeRequest struct { *tchttp.BaseRequest // 自定义数据类型的标识符 TypeId *string `json:"TypeId,omitempty" name:"TypeId"` }
func NewDeleteIotDataTypeRequest ¶
func NewDeleteIotDataTypeRequest() (request *DeleteIotDataTypeRequest)
func (*DeleteIotDataTypeRequest) FromJsonString ¶
func (r *DeleteIotDataTypeRequest) FromJsonString(s string) error
func (*DeleteIotDataTypeRequest) ToJsonString ¶
func (r *DeleteIotDataTypeRequest) ToJsonString() string
type DeleteIotDataTypeResponse ¶
type DeleteIotDataTypeResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteIotDataTypeResponse ¶
func NewDeleteIotDataTypeResponse() (response *DeleteIotDataTypeResponse)
func (*DeleteIotDataTypeResponse) FromJsonString ¶
func (r *DeleteIotDataTypeResponse) FromJsonString(s string) error
func (*DeleteIotDataTypeResponse) ToJsonString ¶
func (r *DeleteIotDataTypeResponse) ToJsonString() string
type DeleteMessageQueueRequest ¶
type DeleteMessageQueueRequest struct { *tchttp.BaseRequest // 产品ID ProductId *string `json:"ProductId,omitempty" name:"ProductId"` }
func NewDeleteMessageQueueRequest ¶
func NewDeleteMessageQueueRequest() (request *DeleteMessageQueueRequest)
func (*DeleteMessageQueueRequest) FromJsonString ¶
func (r *DeleteMessageQueueRequest) FromJsonString(s string) error
func (*DeleteMessageQueueRequest) ToJsonString ¶
func (r *DeleteMessageQueueRequest) ToJsonString() string
type DeleteMessageQueueResponse ¶
type DeleteMessageQueueResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteMessageQueueResponse ¶
func NewDeleteMessageQueueResponse() (response *DeleteMessageQueueResponse)
func (*DeleteMessageQueueResponse) FromJsonString ¶
func (r *DeleteMessageQueueResponse) FromJsonString(s string) error
func (*DeleteMessageQueueResponse) ToJsonString ¶
func (r *DeleteMessageQueueResponse) ToJsonString() string
type DeleteOtaVersionRequest ¶
type DeleteOtaVersionRequest struct { *tchttp.BaseRequest // 产品ID ProductId *string `json:"ProductId,omitempty" name:"ProductId"` // 固件版本号,格式为x.y.z, x,y 范围0-63,z范围1~524288 OtaVersion *string `json:"OtaVersion,omitempty" name:"OtaVersion"` // 操作人 Operator *string `json:"Operator,omitempty" name:"Operator"` }
func NewDeleteOtaVersionRequest ¶
func NewDeleteOtaVersionRequest() (request *DeleteOtaVersionRequest)
func (*DeleteOtaVersionRequest) FromJsonString ¶
func (r *DeleteOtaVersionRequest) FromJsonString(s string) error
func (*DeleteOtaVersionRequest) ToJsonString ¶
func (r *DeleteOtaVersionRequest) ToJsonString() string
type DeleteOtaVersionResponse ¶
type DeleteOtaVersionResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteOtaVersionResponse ¶
func NewDeleteOtaVersionResponse() (response *DeleteOtaVersionResponse)
func (*DeleteOtaVersionResponse) FromJsonString ¶
func (r *DeleteOtaVersionResponse) FromJsonString(s string) error
func (*DeleteOtaVersionResponse) ToJsonString ¶
func (r *DeleteOtaVersionResponse) ToJsonString() string
type DeleteProductRequest ¶
type DeleteProductRequest struct { *tchttp.BaseRequest // 产品ID ProductId *string `json:"ProductId,omitempty" name:"ProductId"` }
func NewDeleteProductRequest ¶
func NewDeleteProductRequest() (request *DeleteProductRequest)
func (*DeleteProductRequest) FromJsonString ¶
func (r *DeleteProductRequest) FromJsonString(s string) error
func (*DeleteProductRequest) ToJsonString ¶
func (r *DeleteProductRequest) ToJsonString() string
type DeleteProductResponse ¶
type DeleteProductResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteProductResponse ¶
func NewDeleteProductResponse() (response *DeleteProductResponse)
func (*DeleteProductResponse) FromJsonString ¶
func (r *DeleteProductResponse) FromJsonString(s string) error
func (*DeleteProductResponse) ToJsonString ¶
func (r *DeleteProductResponse) ToJsonString() string
type DeleteTraceIdsRequest ¶
type DeleteTraceIdsRequest struct { *tchttp.BaseRequest // 设备TID列表 Tids []*string `json:"Tids,omitempty" name:"Tids" list` }
func NewDeleteTraceIdsRequest ¶
func NewDeleteTraceIdsRequest() (request *DeleteTraceIdsRequest)
func (*DeleteTraceIdsRequest) FromJsonString ¶
func (r *DeleteTraceIdsRequest) FromJsonString(s string) error
func (*DeleteTraceIdsRequest) ToJsonString ¶
func (r *DeleteTraceIdsRequest) ToJsonString() string
type DeleteTraceIdsResponse ¶
type DeleteTraceIdsResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteTraceIdsResponse ¶
func NewDeleteTraceIdsResponse() (response *DeleteTraceIdsResponse)
func (*DeleteTraceIdsResponse) FromJsonString ¶
func (r *DeleteTraceIdsResponse) FromJsonString(s string) error
func (*DeleteTraceIdsResponse) ToJsonString ¶
func (r *DeleteTraceIdsResponse) ToJsonString() string
type DescribeBindDevRequest ¶
type DescribeBindDevRequest struct { *tchttp.BaseRequest // 终端用户在IoT Video上的唯一标识ID AccessId *string `json:"AccessId,omitempty" name:"AccessId"` }
func NewDescribeBindDevRequest ¶
func NewDescribeBindDevRequest() (request *DescribeBindDevRequest)
func (*DescribeBindDevRequest) FromJsonString ¶
func (r *DescribeBindDevRequest) FromJsonString(s string) error
func (*DescribeBindDevRequest) ToJsonString ¶
func (r *DescribeBindDevRequest) ToJsonString() string
type DescribeBindDevResponse ¶
type DescribeBindDevResponse struct { *tchttp.BaseResponse Response *struct { // 绑定的设备列表信息 // 注意:此字段可能返回 null,表示取不到有效值。 Data []*BindDevInfo `json:"Data,omitempty" name:"Data" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeBindDevResponse ¶
func NewDescribeBindDevResponse() (response *DescribeBindDevResponse)
func (*DescribeBindDevResponse) FromJsonString ¶
func (r *DescribeBindDevResponse) FromJsonString(s string) error
func (*DescribeBindDevResponse) ToJsonString ¶
func (r *DescribeBindDevResponse) ToJsonString() string
type DescribeBindUsrRequest ¶
type DescribeBindUsrRequest struct { *tchttp.BaseRequest // 设备主人的AccessId AccessId *string `json:"AccessId,omitempty" name:"AccessId"` // 设备TID Tid *string `json:"Tid,omitempty" name:"Tid"` }
func NewDescribeBindUsrRequest ¶
func NewDescribeBindUsrRequest() (request *DescribeBindUsrRequest)
func (*DescribeBindUsrRequest) FromJsonString ¶
func (r *DescribeBindUsrRequest) FromJsonString(s string) error
func (*DescribeBindUsrRequest) ToJsonString ¶
func (r *DescribeBindUsrRequest) ToJsonString() string
type DescribeBindUsrResponse ¶
type DescribeBindUsrResponse struct { *tchttp.BaseResponse Response *struct { // 具有绑定关系的终端用户信息列表 // 注意:此字段可能返回 null,表示取不到有效值。 Data []*BindUsrInfo `json:"Data,omitempty" name:"Data" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeBindUsrResponse ¶
func NewDescribeBindUsrResponse() (response *DescribeBindUsrResponse)
func (*DescribeBindUsrResponse) FromJsonString ¶
func (r *DescribeBindUsrResponse) FromJsonString(s string) error
func (*DescribeBindUsrResponse) ToJsonString ¶
func (r *DescribeBindUsrResponse) ToJsonString() string
type DescribeDeviceModelRequest ¶
type DescribeDeviceModelRequest struct { *tchttp.BaseRequest // 设备TID Tid *string `json:"Tid,omitempty" name:"Tid"` // 物模型的分支路径 Branch *string `json:"Branch,omitempty" name:"Branch"` }
func NewDescribeDeviceModelRequest ¶
func NewDescribeDeviceModelRequest() (request *DescribeDeviceModelRequest)
func (*DescribeDeviceModelRequest) FromJsonString ¶
func (r *DescribeDeviceModelRequest) FromJsonString(s string) error
func (*DescribeDeviceModelRequest) ToJsonString ¶
func (r *DescribeDeviceModelRequest) ToJsonString() string
type DescribeDeviceModelResponse ¶
type DescribeDeviceModelResponse struct { *tchttp.BaseResponse Response *struct { // 设备物模型信息 // 注意:此字段可能返回 null,表示取不到有效值。 Data *DeviceModelData `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDeviceModelResponse ¶
func NewDescribeDeviceModelResponse() (response *DescribeDeviceModelResponse)
func (*DescribeDeviceModelResponse) FromJsonString ¶
func (r *DescribeDeviceModelResponse) FromJsonString(s string) error
func (*DescribeDeviceModelResponse) ToJsonString ¶
func (r *DescribeDeviceModelResponse) ToJsonString() string
type DescribeDeviceRequest ¶
type DescribeDeviceRequest struct { *tchttp.BaseRequest // 设备TID Tid *string `json:"Tid,omitempty" name:"Tid"` }
func NewDescribeDeviceRequest ¶
func NewDescribeDeviceRequest() (request *DescribeDeviceRequest)
func (*DescribeDeviceRequest) FromJsonString ¶
func (r *DescribeDeviceRequest) FromJsonString(s string) error
func (*DescribeDeviceRequest) ToJsonString ¶
func (r *DescribeDeviceRequest) ToJsonString() string
type DescribeDeviceResponse ¶
type DescribeDeviceResponse struct { *tchttp.BaseResponse Response *struct { // 设备信息 // 注意:此字段可能返回 null,表示取不到有效值。 Data *DeviceData `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDeviceResponse ¶
func NewDescribeDeviceResponse() (response *DescribeDeviceResponse)
func (*DescribeDeviceResponse) FromJsonString ¶
func (r *DescribeDeviceResponse) FromJsonString(s string) error
func (*DescribeDeviceResponse) ToJsonString ¶
func (r *DescribeDeviceResponse) ToJsonString() string
type DescribeDevicesRequest ¶
type DescribeDevicesRequest struct { *tchttp.BaseRequest // 产品ID ProductId *string `json:"ProductId,omitempty" name:"ProductId"` // 是否返回全量数据 // 当该值为false时,返回值中的设备物模型、固件版本、在线状态、最后在线时间字段等字段,都将返回数据类型的零值。 ReturnModel *bool `json:"ReturnModel,omitempty" name:"ReturnModel"` // 分页数量,0<取值范围<=100 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 分页偏移,取值>0 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 指定固件版本号,为空查询此产品下所有设备 OtaVersion *string `json:"OtaVersion,omitempty" name:"OtaVersion"` // 设备名称,支持左前缀模糊匹配 DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"` }
func NewDescribeDevicesRequest ¶
func NewDescribeDevicesRequest() (request *DescribeDevicesRequest)
func (*DescribeDevicesRequest) FromJsonString ¶
func (r *DescribeDevicesRequest) FromJsonString(s string) error
func (*DescribeDevicesRequest) ToJsonString ¶
func (r *DescribeDevicesRequest) ToJsonString() string
type DescribeDevicesResponse ¶
type DescribeDevicesResponse struct { *tchttp.BaseResponse Response *struct { // 设备信息 列表 // 注意:此字段可能返回 null,表示取不到有效值。 Data []*DevicesData `json:"Data,omitempty" name:"Data" list` // 设备总数 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDevicesResponse ¶
func NewDescribeDevicesResponse() (response *DescribeDevicesResponse)
func (*DescribeDevicesResponse) FromJsonString ¶
func (r *DescribeDevicesResponse) FromJsonString(s string) error
func (*DescribeDevicesResponse) ToJsonString ¶
func (r *DescribeDevicesResponse) ToJsonString() string
type DescribeIotDataTypeRequest ¶
type DescribeIotDataTypeRequest struct { *tchttp.BaseRequest // 自定义数据类型的标识符,为空则返回全量自定义类型的列表 TypeId *string `json:"TypeId,omitempty" name:"TypeId"` }
func NewDescribeIotDataTypeRequest ¶
func NewDescribeIotDataTypeRequest() (request *DescribeIotDataTypeRequest)
func (*DescribeIotDataTypeRequest) FromJsonString ¶
func (r *DescribeIotDataTypeRequest) FromJsonString(s string) error
func (*DescribeIotDataTypeRequest) ToJsonString ¶
func (r *DescribeIotDataTypeRequest) ToJsonString() string
type DescribeIotDataTypeResponse ¶
type DescribeIotDataTypeResponse struct { *tchttp.BaseResponse Response *struct { // 自定义数据类型,json格式的字符串 // 注意:此字段可能返回 null,表示取不到有效值。 Data []*string `json:"Data,omitempty" name:"Data" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeIotDataTypeResponse ¶
func NewDescribeIotDataTypeResponse() (response *DescribeIotDataTypeResponse)
func (*DescribeIotDataTypeResponse) FromJsonString ¶
func (r *DescribeIotDataTypeResponse) FromJsonString(s string) error
func (*DescribeIotDataTypeResponse) ToJsonString ¶
func (r *DescribeIotDataTypeResponse) ToJsonString() string
type DescribeIotModelRequest ¶
type DescribeIotModelRequest struct { *tchttp.BaseRequest // 产品ID ProductId *string `json:"ProductId,omitempty" name:"ProductId"` // 物模型版本号, -1表示最新编辑的(未发布) Revision *int64 `json:"Revision,omitempty" name:"Revision"` }
func NewDescribeIotModelRequest ¶
func NewDescribeIotModelRequest() (request *DescribeIotModelRequest)
func (*DescribeIotModelRequest) FromJsonString ¶
func (r *DescribeIotModelRequest) FromJsonString(s string) error
func (*DescribeIotModelRequest) ToJsonString ¶
func (r *DescribeIotModelRequest) ToJsonString() string
type DescribeIotModelResponse ¶
type DescribeIotModelResponse struct { *tchttp.BaseResponse Response *struct { // 物模型定义,json格式的字符串 // 注意:此字段可能返回 null,表示取不到有效值。 Data *string `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeIotModelResponse ¶
func NewDescribeIotModelResponse() (response *DescribeIotModelResponse)
func (*DescribeIotModelResponse) FromJsonString ¶
func (r *DescribeIotModelResponse) FromJsonString(s string) error
func (*DescribeIotModelResponse) ToJsonString ¶
func (r *DescribeIotModelResponse) ToJsonString() string
type DescribeIotModelsRequest ¶
type DescribeIotModelsRequest struct { *tchttp.BaseRequest // 产品ID ProductId *string `json:"ProductId,omitempty" name:"ProductId"` }
func NewDescribeIotModelsRequest ¶
func NewDescribeIotModelsRequest() (request *DescribeIotModelsRequest)
func (*DescribeIotModelsRequest) FromJsonString ¶
func (r *DescribeIotModelsRequest) FromJsonString(s string) error
func (*DescribeIotModelsRequest) ToJsonString ¶
func (r *DescribeIotModelsRequest) ToJsonString() string
type DescribeIotModelsResponse ¶
type DescribeIotModelsResponse struct { *tchttp.BaseResponse Response *struct { // 历史版本列表 // 注意:此字段可能返回 null,表示取不到有效值。 Data []*IotModelData `json:"Data,omitempty" name:"Data" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeIotModelsResponse ¶
func NewDescribeIotModelsResponse() (response *DescribeIotModelsResponse)
func (*DescribeIotModelsResponse) FromJsonString ¶
func (r *DescribeIotModelsResponse) FromJsonString(s string) error
func (*DescribeIotModelsResponse) ToJsonString ¶
func (r *DescribeIotModelsResponse) ToJsonString() string
type DescribeLogsRequest ¶
type DescribeLogsRequest struct { *tchttp.BaseRequest // 设备TID Tid *string `json:"Tid,omitempty" name:"Tid"` // 当前分页的最大条数,0<取值范围<=100 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 分页偏移量,取值范围>0 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 日志类型 1.在线状态变更 2.ProConst变更 3.ProWritable变更 4.Action控制 5.ProReadonly变更 6.Event事件 LogType *uint64 `json:"LogType,omitempty" name:"LogType"` // 查询的起始时间 UNIX时间戳,单位秒 StartTime *uint64 `json:"StartTime,omitempty" name:"StartTime"` // 物模型对象索引,用于模糊查询,字符长度<=255,每层节点的字符长度<=16 DataObject *string `json:"DataObject,omitempty" name:"DataObject"` // 查询的结束时间 UNIX时间戳,单位秒 EndTime *uint64 `json:"EndTime,omitempty" name:"EndTime"` }
func NewDescribeLogsRequest ¶
func NewDescribeLogsRequest() (request *DescribeLogsRequest)
func (*DescribeLogsRequest) FromJsonString ¶
func (r *DescribeLogsRequest) FromJsonString(s string) error
func (*DescribeLogsRequest) ToJsonString ¶
func (r *DescribeLogsRequest) ToJsonString() string
type DescribeLogsResponse ¶
type DescribeLogsResponse struct { *tchttp.BaseResponse Response *struct { // 设备日志信息 // 注意:此字段可能返回 null,表示取不到有效值。 Data []*LogData `json:"Data,omitempty" name:"Data" list` // Data数组所包含的信息条数 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeLogsResponse ¶
func NewDescribeLogsResponse() (response *DescribeLogsResponse)
func (*DescribeLogsResponse) FromJsonString ¶
func (r *DescribeLogsResponse) FromJsonString(s string) error
func (*DescribeLogsResponse) ToJsonString ¶
func (r *DescribeLogsResponse) ToJsonString() string
type DescribeMessageQueueRequest ¶
type DescribeMessageQueueRequest struct { *tchttp.BaseRequest // 产品ID ProductId *string `json:"ProductId,omitempty" name:"ProductId"` }
func NewDescribeMessageQueueRequest ¶
func NewDescribeMessageQueueRequest() (request *DescribeMessageQueueRequest)
func (*DescribeMessageQueueRequest) FromJsonString ¶
func (r *DescribeMessageQueueRequest) FromJsonString(s string) error
func (*DescribeMessageQueueRequest) ToJsonString ¶
func (r *DescribeMessageQueueRequest) ToJsonString() string
type DescribeMessageQueueResponse ¶
type DescribeMessageQueueResponse struct { *tchttp.BaseResponse Response *struct { // 消息队列配置 // 注意:此字段可能返回 null,表示取不到有效值。 Data *MsgQueueData `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeMessageQueueResponse ¶
func NewDescribeMessageQueueResponse() (response *DescribeMessageQueueResponse)
func (*DescribeMessageQueueResponse) FromJsonString ¶
func (r *DescribeMessageQueueResponse) FromJsonString(s string) error
func (*DescribeMessageQueueResponse) ToJsonString ¶
func (r *DescribeMessageQueueResponse) ToJsonString() string
type DescribeModelDataRetRequest ¶
type DescribeModelDataRetRequest struct { *tchttp.BaseRequest // 任务ID TaskId *string `json:"TaskId,omitempty" name:"TaskId"` }
func NewDescribeModelDataRetRequest ¶
func NewDescribeModelDataRetRequest() (request *DescribeModelDataRetRequest)
func (*DescribeModelDataRetRequest) FromJsonString ¶
func (r *DescribeModelDataRetRequest) FromJsonString(s string) error
func (*DescribeModelDataRetRequest) ToJsonString ¶
func (r *DescribeModelDataRetRequest) ToJsonString() string
type DescribeModelDataRetResponse ¶
type DescribeModelDataRetResponse struct { *tchttp.BaseResponse Response *struct { // 设备响应结果 // 注意:此字段可能返回 null,表示取不到有效值。 Data *string `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeModelDataRetResponse ¶
func NewDescribeModelDataRetResponse() (response *DescribeModelDataRetResponse)
func (*DescribeModelDataRetResponse) FromJsonString ¶
func (r *DescribeModelDataRetResponse) FromJsonString(s string) error
func (*DescribeModelDataRetResponse) ToJsonString ¶
func (r *DescribeModelDataRetResponse) ToJsonString() string
type DescribeOtaVersionsRequest ¶
type DescribeOtaVersionsRequest struct { *tchttp.BaseRequest // 分页偏移量 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 每页数量,0<取值范围<=100 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 产品ID,为空时查询客户所有产品的版本信息 ProductId *string `json:"ProductId,omitempty" name:"ProductId"` // 版本号,支持模糊匹配 OtaVersion *string `json:"OtaVersion,omitempty" name:"OtaVersion"` // 版本类型 1未发布 2测试发布 3正式发布 4禁用 PubStatus *uint64 `json:"PubStatus,omitempty" name:"PubStatus"` }
func NewDescribeOtaVersionsRequest ¶
func NewDescribeOtaVersionsRequest() (request *DescribeOtaVersionsRequest)
func (*DescribeOtaVersionsRequest) FromJsonString ¶
func (r *DescribeOtaVersionsRequest) FromJsonString(s string) error
func (*DescribeOtaVersionsRequest) ToJsonString ¶
func (r *DescribeOtaVersionsRequest) ToJsonString() string
type DescribeOtaVersionsResponse ¶
type DescribeOtaVersionsResponse struct { *tchttp.BaseResponse Response *struct { // 版本数量 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // 版本详细信息 // 注意:此字段可能返回 null,表示取不到有效值。 Data []*VersionData `json:"Data,omitempty" name:"Data" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeOtaVersionsResponse ¶
func NewDescribeOtaVersionsResponse() (response *DescribeOtaVersionsResponse)
func (*DescribeOtaVersionsResponse) FromJsonString ¶
func (r *DescribeOtaVersionsResponse) FromJsonString(s string) error
func (*DescribeOtaVersionsResponse) ToJsonString ¶
func (r *DescribeOtaVersionsResponse) ToJsonString() string
type DescribeProductRequest ¶
type DescribeProductRequest struct { *tchttp.BaseRequest // 产品ID ProductId *string `json:"ProductId,omitempty" name:"ProductId"` }
func NewDescribeProductRequest ¶
func NewDescribeProductRequest() (request *DescribeProductRequest)
func (*DescribeProductRequest) FromJsonString ¶
func (r *DescribeProductRequest) FromJsonString(s string) error
func (*DescribeProductRequest) ToJsonString ¶
func (r *DescribeProductRequest) ToJsonString() string
type DescribeProductResponse ¶
type DescribeProductResponse struct { *tchttp.BaseResponse Response *struct { // 产品详情 // 注意:此字段可能返回 null,表示取不到有效值。 Data *ProductData `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeProductResponse ¶
func NewDescribeProductResponse() (response *DescribeProductResponse)
func (*DescribeProductResponse) FromJsonString ¶
func (r *DescribeProductResponse) FromJsonString(s string) error
func (*DescribeProductResponse) ToJsonString ¶
func (r *DescribeProductResponse) ToJsonString() string
type DescribeProductsRequest ¶
type DescribeProductsRequest struct { *tchttp.BaseRequest // 分页大小,当前页面中显示的最大数量,值范围 1-100 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 分页偏移,Offset从0开始 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 产器型号(APP产品,为APP包名) ProductModel *string `json:"ProductModel,omitempty" name:"ProductModel"` // 开始时间 ,UNIX 时间戳,单位秒 StartTime *int64 `json:"StartTime,omitempty" name:"StartTime"` // 结束时间 ,UNIX 时间戳,单位秒 EndTime *int64 `json:"EndTime,omitempty" name:"EndTime"` }
func NewDescribeProductsRequest ¶
func NewDescribeProductsRequest() (request *DescribeProductsRequest)
func (*DescribeProductsRequest) FromJsonString ¶
func (r *DescribeProductsRequest) FromJsonString(s string) error
func (*DescribeProductsRequest) ToJsonString ¶
func (r *DescribeProductsRequest) ToJsonString() string
type DescribeProductsResponse ¶
type DescribeProductsResponse struct { *tchttp.BaseResponse Response *struct { // 产品详细信息列表 // 注意:此字段可能返回 null,表示取不到有效值。 Data []*ProductData `json:"Data,omitempty" name:"Data" list` // 产品总数 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeProductsResponse ¶
func NewDescribeProductsResponse() (response *DescribeProductsResponse)
func (*DescribeProductsResponse) FromJsonString ¶
func (r *DescribeProductsResponse) FromJsonString(s string) error
func (*DescribeProductsResponse) ToJsonString ¶
func (r *DescribeProductsResponse) ToJsonString() string
type DescribePubVersionsRequest ¶
type DescribePubVersionsRequest struct { *tchttp.BaseRequest // 产品ID ProductId *string `json:"ProductId,omitempty" name:"ProductId"` }
func NewDescribePubVersionsRequest ¶
func NewDescribePubVersionsRequest() (request *DescribePubVersionsRequest)
func (*DescribePubVersionsRequest) FromJsonString ¶
func (r *DescribePubVersionsRequest) FromJsonString(s string) error
func (*DescribePubVersionsRequest) ToJsonString ¶
func (r *DescribePubVersionsRequest) ToJsonString() string
type DescribePubVersionsResponse ¶
type DescribePubVersionsResponse struct { *tchttp.BaseResponse Response *struct { // 历史发布的版本列表 // 注意:此字段可能返回 null,表示取不到有效值。 Data []*OtaPubHistory `json:"Data,omitempty" name:"Data" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribePubVersionsResponse ¶
func NewDescribePubVersionsResponse() (response *DescribePubVersionsResponse)
func (*DescribePubVersionsResponse) FromJsonString ¶
func (r *DescribePubVersionsResponse) FromJsonString(s string) error
func (*DescribePubVersionsResponse) ToJsonString ¶
func (r *DescribePubVersionsResponse) ToJsonString() string
type DescribeRunLogRequest ¶
type DescribeRunLogRequest struct { *tchttp.BaseRequest // 设备TID Tid *string `json:"Tid,omitempty" name:"Tid"` }
func NewDescribeRunLogRequest ¶
func NewDescribeRunLogRequest() (request *DescribeRunLogRequest)
func (*DescribeRunLogRequest) FromJsonString ¶
func (r *DescribeRunLogRequest) FromJsonString(s string) error
func (*DescribeRunLogRequest) ToJsonString ¶
func (r *DescribeRunLogRequest) ToJsonString() string
type DescribeRunLogResponse ¶
type DescribeRunLogResponse struct { *tchttp.BaseResponse Response *struct { // 设备运行日志文本信息 // 注意:此字段可能返回 null,表示取不到有效值。 Data *string `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeRunLogResponse ¶
func NewDescribeRunLogResponse() (response *DescribeRunLogResponse)
func (*DescribeRunLogResponse) FromJsonString ¶
func (r *DescribeRunLogResponse) FromJsonString(s string) error
func (*DescribeRunLogResponse) ToJsonString ¶
func (r *DescribeRunLogResponse) ToJsonString() string
type DescribeTraceIdsRequest ¶
type DescribeTraceIdsRequest struct {
*tchttp.BaseRequest
}
func NewDescribeTraceIdsRequest ¶
func NewDescribeTraceIdsRequest() (request *DescribeTraceIdsRequest)
func (*DescribeTraceIdsRequest) FromJsonString ¶
func (r *DescribeTraceIdsRequest) FromJsonString(s string) error
func (*DescribeTraceIdsRequest) ToJsonString ¶
func (r *DescribeTraceIdsRequest) ToJsonString() string
type DescribeTraceIdsResponse ¶
type DescribeTraceIdsResponse struct { *tchttp.BaseResponse Response *struct { // 设备TID列表,列表元素之间以“,”分隔 // 注意:此字段可能返回 null,表示取不到有效值。 Data *string `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeTraceIdsResponse ¶
func NewDescribeTraceIdsResponse() (response *DescribeTraceIdsResponse)
func (*DescribeTraceIdsResponse) FromJsonString ¶
func (r *DescribeTraceIdsResponse) FromJsonString(s string) error
func (*DescribeTraceIdsResponse) ToJsonString ¶
func (r *DescribeTraceIdsResponse) ToJsonString() string
type DescribeTraceStatusRequest ¶
type DescribeTraceStatusRequest struct { *tchttp.BaseRequest // 设备TID列表 Tids []*string `json:"Tids,omitempty" name:"Tids" list` }
func NewDescribeTraceStatusRequest ¶
func NewDescribeTraceStatusRequest() (request *DescribeTraceStatusRequest)
func (*DescribeTraceStatusRequest) FromJsonString ¶
func (r *DescribeTraceStatusRequest) FromJsonString(s string) error
func (*DescribeTraceStatusRequest) ToJsonString ¶
func (r *DescribeTraceStatusRequest) ToJsonString() string
type DescribeTraceStatusResponse ¶
type DescribeTraceStatusResponse struct { *tchttp.BaseResponse Response *struct { // 设备追踪状态列表 // 注意:此字段可能返回 null,表示取不到有效值。 Data []*TraceStatus `json:"Data,omitempty" name:"Data" list` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeTraceStatusResponse ¶
func NewDescribeTraceStatusResponse() (response *DescribeTraceStatusResponse)
func (*DescribeTraceStatusResponse) FromJsonString ¶
func (r *DescribeTraceStatusResponse) FromJsonString(s string) error
func (*DescribeTraceStatusResponse) ToJsonString ¶
func (r *DescribeTraceStatusResponse) ToJsonString() string
type DevTokenInfo ¶
type DevTokenInfo struct { // 客户的终端用户在IotVideo上的唯一标识id AccessId *string `json:"AccessId,omitempty" name:"AccessId"` // 设备TID Tid *string `json:"Tid,omitempty" name:"Tid"` // IotVideo平台的accessToken AccessToken *string `json:"AccessToken,omitempty" name:"AccessToken"` // Token的过期时间,单位秒(UTC时间) ExpireTime *uint64 `json:"ExpireTime,omitempty" name:"ExpireTime"` }
type DeviceCertificate ¶
type DeviceData ¶
type DeviceData struct { // 设备TID // 注意:此字段可能返回 null,表示取不到有效值。 Tid *string `json:"Tid,omitempty" name:"Tid"` // 激活时间 0代表未激活 // 注意:此字段可能返回 null,表示取不到有效值。 ActiveTime *uint64 `json:"ActiveTime,omitempty" name:"ActiveTime"` // 设备是否被禁用 // 注意:此字段可能返回 null,表示取不到有效值。 Disabled *bool `json:"Disabled,omitempty" name:"Disabled"` // 固件版本 // 注意:此字段可能返回 null,表示取不到有效值。 OtaVersion *string `json:"OtaVersion,omitempty" name:"OtaVersion"` // 设备在线状态 // 注意:此字段可能返回 null,表示取不到有效值。 Online *uint64 `json:"Online,omitempty" name:"Online"` // 设备最后上线时间(mqtt连接成功时间),UNIX时间戳,单位秒 // 注意:此字段可能返回 null,表示取不到有效值。 LastOnlineTime *uint64 `json:"LastOnlineTime,omitempty" name:"LastOnlineTime"` // 物模型json数据 // 注意:此字段可能返回 null,表示取不到有效值。 IotModel *string `json:"IotModel,omitempty" name:"IotModel"` // 设备名称 // 注意:此字段可能返回 null,表示取不到有效值。 DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"` // 产品ID // 注意:此字段可能返回 null,表示取不到有效值。 ProductId *string `json:"ProductId,omitempty" name:"ProductId"` // 设备初始证书信息,base64编码 // 注意:此字段可能返回 null,表示取不到有效值。 Certificate *string `json:"Certificate,omitempty" name:"Certificate"` // 设备私钥下载地址 // 注意:此字段可能返回 null,表示取不到有效值。 WhiteBoxSoUrl *string `json:"WhiteBoxSoUrl,omitempty" name:"WhiteBoxSoUrl"` // 设备推流状态 // 注意:此字段可能返回 null,表示取不到有效值。 StreamStatus *bool `json:"StreamStatus,omitempty" name:"StreamStatus"` }
type DeviceModelData ¶
type DevicesData ¶
type DevicesData struct { // 设备TID Tid *string `json:"Tid,omitempty" name:"Tid"` // 设备名称 DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"` // 激活时间 0代表未激活 ActiveTime *uint64 `json:"ActiveTime,omitempty" name:"ActiveTime"` // 设备是否被禁用 Disabled *bool `json:"Disabled,omitempty" name:"Disabled"` // 设备推流状态 StreamStatus *bool `json:"StreamStatus,omitempty" name:"StreamStatus"` // 固件版本 OtaVersion *string `json:"OtaVersion,omitempty" name:"OtaVersion"` // 设备在线状态 Online *uint64 `json:"Online,omitempty" name:"Online"` // 设备最后上线时间(mqtt连接成功时间),UNIX时间戳,单位秒 LastOnlineTime *uint64 `json:"LastOnlineTime,omitempty" name:"LastOnlineTime"` // 物模型json数据 IotModel *string `json:"IotModel,omitempty" name:"IotModel"` // 设备固件最新更新时间,UNIX时间戳,单位秒 LastUpdateTime *uint64 `json:"LastUpdateTime,omitempty" name:"LastUpdateTime"` }
type DisableDeviceRequest ¶
type DisableDeviceRequest struct { *tchttp.BaseRequest // 设备TID ≤100 Tids []*string `json:"Tids,omitempty" name:"Tids" list` }
func NewDisableDeviceRequest ¶
func NewDisableDeviceRequest() (request *DisableDeviceRequest)
func (*DisableDeviceRequest) FromJsonString ¶
func (r *DisableDeviceRequest) FromJsonString(s string) error
func (*DisableDeviceRequest) ToJsonString ¶
func (r *DisableDeviceRequest) ToJsonString() string
type DisableDeviceResponse ¶
type DisableDeviceResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDisableDeviceResponse ¶
func NewDisableDeviceResponse() (response *DisableDeviceResponse)
func (*DisableDeviceResponse) FromJsonString ¶
func (r *DisableDeviceResponse) FromJsonString(s string) error
func (*DisableDeviceResponse) ToJsonString ¶
func (r *DisableDeviceResponse) ToJsonString() string
type DisableDeviceStreamRequest ¶
type DisableDeviceStreamRequest struct { *tchttp.BaseRequest // 设备TID列表 Tids []*string `json:"Tids,omitempty" name:"Tids" list` }
func NewDisableDeviceStreamRequest ¶
func NewDisableDeviceStreamRequest() (request *DisableDeviceStreamRequest)
func (*DisableDeviceStreamRequest) FromJsonString ¶
func (r *DisableDeviceStreamRequest) FromJsonString(s string) error
func (*DisableDeviceStreamRequest) ToJsonString ¶
func (r *DisableDeviceStreamRequest) ToJsonString() string
type DisableDeviceStreamResponse ¶
type DisableDeviceStreamResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDisableDeviceStreamResponse ¶
func NewDisableDeviceStreamResponse() (response *DisableDeviceStreamResponse)
func (*DisableDeviceStreamResponse) FromJsonString ¶
func (r *DisableDeviceStreamResponse) FromJsonString(s string) error
func (*DisableDeviceStreamResponse) ToJsonString ¶
func (r *DisableDeviceStreamResponse) ToJsonString() string
type DisableOtaVersionRequest ¶
type DisableOtaVersionRequest struct { *tchttp.BaseRequest // 产品ID ProductId *string `json:"ProductId,omitempty" name:"ProductId"` // 固件版本号,格式为x.y.z, x,y 范围0-63,z范围1~524288 OtaVersion *string `json:"OtaVersion,omitempty" name:"OtaVersion"` // 操作人 Operator *string `json:"Operator,omitempty" name:"Operator"` }
func NewDisableOtaVersionRequest ¶
func NewDisableOtaVersionRequest() (request *DisableOtaVersionRequest)
func (*DisableOtaVersionRequest) FromJsonString ¶
func (r *DisableOtaVersionRequest) FromJsonString(s string) error
func (*DisableOtaVersionRequest) ToJsonString ¶
func (r *DisableOtaVersionRequest) ToJsonString() string
type DisableOtaVersionResponse ¶
type DisableOtaVersionResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDisableOtaVersionResponse ¶
func NewDisableOtaVersionResponse() (response *DisableOtaVersionResponse)
func (*DisableOtaVersionResponse) FromJsonString ¶
func (r *DisableOtaVersionResponse) FromJsonString(s string) error
func (*DisableOtaVersionResponse) ToJsonString ¶
func (r *DisableOtaVersionResponse) ToJsonString() string
type IotModelData ¶
type LogData ¶
type LogData struct { // 发生时间 UNIX时间戳,单位秒 Occurtime *uint64 `json:"Occurtime,omitempty" name:"Occurtime"` // 日志类型 1在线状态变更 2FP变更 3SP变更 4CO控制 5ST变更 6EV事件 LogType *uint64 `json:"LogType,omitempty" name:"LogType"` // 物模型对象索引 // 注意:此字段可能返回 null,表示取不到有效值。 DataObject *string `json:"DataObject,omitempty" name:"DataObject"` // 物模型旧值 json串 // 注意:此字段可能返回 null,表示取不到有效值。 OldValue *string `json:"OldValue,omitempty" name:"OldValue"` // 物模型新值 json串 // 注意:此字段可能返回 null,表示取不到有效值。 NewValue *string `json:"NewValue,omitempty" name:"NewValue"` }
type ModifyDeviceActionRequest ¶
type ModifyDeviceActionRequest struct { *tchttp.BaseRequest // 设备TID Tid *string `json:"Tid,omitempty" name:"Tid"` // 如果设备处于休眠状态,是否唤醒设备 Wakeup *bool `json:"Wakeup,omitempty" name:"Wakeup"` // 物模型的分支路径 Branch *string `json:"Branch,omitempty" name:"Branch"` // 写入的物模型数据,如果是json需要转义成字符串 Value *string `json:"Value,omitempty" name:"Value"` // Value字段的类型是否为数值(float、int) IsNum *bool `json:"IsNum,omitempty" name:"IsNum"` }
func NewModifyDeviceActionRequest ¶
func NewModifyDeviceActionRequest() (request *ModifyDeviceActionRequest)
func (*ModifyDeviceActionRequest) FromJsonString ¶
func (r *ModifyDeviceActionRequest) FromJsonString(s string) error
func (*ModifyDeviceActionRequest) ToJsonString ¶
func (r *ModifyDeviceActionRequest) ToJsonString() string
type ModifyDeviceActionResponse ¶
type ModifyDeviceActionResponse struct { *tchttp.BaseResponse Response *struct { // 设备端的响应结果 // 注意:此字段可能返回 null,表示取不到有效值。 Data *string `json:"Data,omitempty" name:"Data"` // 任务ID // 若设备端未能及时响应时,会返回此字段,用户可以通过DescribeModelDataRet获取设备的最终响应结果。 // 注意:此字段可能返回 null,表示取不到有效值。 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyDeviceActionResponse ¶
func NewModifyDeviceActionResponse() (response *ModifyDeviceActionResponse)
func (*ModifyDeviceActionResponse) FromJsonString ¶
func (r *ModifyDeviceActionResponse) FromJsonString(s string) error
func (*ModifyDeviceActionResponse) ToJsonString ¶
func (r *ModifyDeviceActionResponse) ToJsonString() string
type ModifyDevicePropertyRequest ¶
type ModifyDevicePropertyRequest struct { *tchttp.BaseRequest // 设备TID Tid *string `json:"Tid,omitempty" name:"Tid"` // 如果设备处于休眠状态,是否唤醒设备 Wakeup *bool `json:"Wakeup,omitempty" name:"Wakeup"` // 物模型的分支路径 Branch *string `json:"Branch,omitempty" name:"Branch"` // 写入的物模型数据,如果是json需要转义成字符串 Value *string `json:"Value,omitempty" name:"Value"` // Value字段是否为数值(float、int) IsNum *bool `json:"IsNum,omitempty" name:"IsNum"` }
func NewModifyDevicePropertyRequest ¶
func NewModifyDevicePropertyRequest() (request *ModifyDevicePropertyRequest)
func (*ModifyDevicePropertyRequest) FromJsonString ¶
func (r *ModifyDevicePropertyRequest) FromJsonString(s string) error
func (*ModifyDevicePropertyRequest) ToJsonString ¶
func (r *ModifyDevicePropertyRequest) ToJsonString() string
type ModifyDevicePropertyResponse ¶
type ModifyDevicePropertyResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyDevicePropertyResponse ¶
func NewModifyDevicePropertyResponse() (response *ModifyDevicePropertyResponse)
func (*ModifyDevicePropertyResponse) FromJsonString ¶
func (r *ModifyDevicePropertyResponse) FromJsonString(s string) error
func (*ModifyDevicePropertyResponse) ToJsonString ¶
func (r *ModifyDevicePropertyResponse) ToJsonString() string
type ModifyProductRequest ¶
type ModifyProductRequest struct { *tchttp.BaseRequest // 产品ID ProductId *string `json:"ProductId,omitempty" name:"ProductId"` // 产品名称 ProductName *string `json:"ProductName,omitempty" name:"ProductName"` // 产品描述 ProductDescription *string `json:"ProductDescription,omitempty" name:"ProductDescription"` }
func NewModifyProductRequest ¶
func NewModifyProductRequest() (request *ModifyProductRequest)
func (*ModifyProductRequest) FromJsonString ¶
func (r *ModifyProductRequest) FromJsonString(s string) error
func (*ModifyProductRequest) ToJsonString ¶
func (r *ModifyProductRequest) ToJsonString() string
type ModifyProductResponse ¶
type ModifyProductResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyProductResponse ¶
func NewModifyProductResponse() (response *ModifyProductResponse)
func (*ModifyProductResponse) FromJsonString ¶
func (r *ModifyProductResponse) FromJsonString(s string) error
func (*ModifyProductResponse) ToJsonString ¶
func (r *ModifyProductResponse) ToJsonString() string
type MsgQueueData ¶
type MsgQueueData struct { // 消息队列类型 1:CMQ 2:kafka MsgQueueType *uint64 `json:"MsgQueueType,omitempty" name:"MsgQueueType"` // 消息类型列表,整型值(0-31)之间以“,”分隔 MsgType *string `json:"MsgType,omitempty" name:"MsgType"` // 主题名称 Topic *string `json:"Topic,omitempty" name:"Topic"` // 实例名称 Instance *string `json:"Instance,omitempty" name:"Instance"` // 消息地域 MsgRegion *string `json:"MsgRegion,omitempty" name:"MsgRegion"` }
type OtaPubHistory ¶
type ProductBase ¶
type ProductBase struct { // 产品ID ProductId *string `json:"ProductId,omitempty" name:"ProductId"` // 产器型号(APP产品,为APP包名) ProductModel *string `json:"ProductModel,omitempty" name:"ProductModel"` // 产品名称 ProductName *string `json:"ProductName,omitempty" name:"ProductName"` // 产品描述信息 ProductDescription *string `json:"ProductDescription,omitempty" name:"ProductDescription"` // 创建时间,UNIX 时间戳,单位秒 CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"` // 物模型发布版本号,0代表物模型尚未发布 IotModelRevision *uint64 `json:"IotModelRevision,omitempty" name:"IotModelRevision"` // 产品密钥 SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"` }
type ProductData ¶
type ProductData struct { // 产品ID // 注意:此字段可能返回 null,表示取不到有效值。 ProductId *string `json:"ProductId,omitempty" name:"ProductId"` // 产品名称 // 注意:此字段可能返回 null,表示取不到有效值。 ProductName *string `json:"ProductName,omitempty" name:"ProductName"` // 产品描述信息 // 注意:此字段可能返回 null,表示取不到有效值。 ProductDescription *string `json:"ProductDescription,omitempty" name:"ProductDescription"` // 创建时间,UNIX 时间戳,单位秒 // 注意:此字段可能返回 null,表示取不到有效值。 CreateTime *int64 `json:"CreateTime,omitempty" name:"CreateTime"` // 物模型发布版本号,0代表物模型尚未发布 // 注意:此字段可能返回 null,表示取不到有效值。 IotModelRevision *int64 `json:"IotModelRevision,omitempty" name:"IotModelRevision"` // 产品密钥 // 注意:此字段可能返回 null,表示取不到有效值。 SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"` // 设备功能码 // 注意:此字段可能返回 null,表示取不到有效值。 Features []*string `json:"Features,omitempty" name:"Features" list` // 产器型号(APP产品,为APP包名) // 注意:此字段可能返回 null,表示取不到有效值。 ProductModel *string `json:"ProductModel,omitempty" name:"ProductModel"` // 主芯片厂商id // 注意:此字段可能返回 null,表示取不到有效值。 ChipManufactureId *string `json:"ChipManufactureId,omitempty" name:"ChipManufactureId"` // 主芯片型号 // 注意:此字段可能返回 null,表示取不到有效值。 ChipId *string `json:"ChipId,omitempty" name:"ChipId"` }
type RunDeviceRequest ¶
type RunDeviceRequest struct { *tchttp.BaseRequest // TID列表 ≤100 Tids []*string `json:"Tids,omitempty" name:"Tids" list` }
func NewRunDeviceRequest ¶
func NewRunDeviceRequest() (request *RunDeviceRequest)
func (*RunDeviceRequest) FromJsonString ¶
func (r *RunDeviceRequest) FromJsonString(s string) error
func (*RunDeviceRequest) ToJsonString ¶
func (r *RunDeviceRequest) ToJsonString() string
type RunDeviceResponse ¶
type RunDeviceResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewRunDeviceResponse ¶
func NewRunDeviceResponse() (response *RunDeviceResponse)
func (*RunDeviceResponse) FromJsonString ¶
func (r *RunDeviceResponse) FromJsonString(s string) error
func (*RunDeviceResponse) ToJsonString ¶
func (r *RunDeviceResponse) ToJsonString() string
type RunDeviceStreamRequest ¶
type RunDeviceStreamRequest struct { *tchttp.BaseRequest // 设备TID 列表 Tids []*string `json:"Tids,omitempty" name:"Tids" list` }
func NewRunDeviceStreamRequest ¶
func NewRunDeviceStreamRequest() (request *RunDeviceStreamRequest)
func (*RunDeviceStreamRequest) FromJsonString ¶
func (r *RunDeviceStreamRequest) FromJsonString(s string) error
func (*RunDeviceStreamRequest) ToJsonString ¶
func (r *RunDeviceStreamRequest) ToJsonString() string
type RunDeviceStreamResponse ¶
type RunDeviceStreamResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewRunDeviceStreamResponse ¶
func NewRunDeviceStreamResponse() (response *RunDeviceStreamResponse)
func (*RunDeviceStreamResponse) FromJsonString ¶
func (r *RunDeviceStreamResponse) FromJsonString(s string) error
func (*RunDeviceStreamResponse) ToJsonString ¶
func (r *RunDeviceStreamResponse) ToJsonString() string
type RunIotModelRequest ¶
type RunIotModelRequest struct { *tchttp.BaseRequest // 产品ID ProductId *string `json:"ProductId,omitempty" name:"ProductId"` // 物模型定义,json格式的字符串 IotModel *string `json:"IotModel,omitempty" name:"IotModel"` }
func NewRunIotModelRequest ¶
func NewRunIotModelRequest() (request *RunIotModelRequest)
func (*RunIotModelRequest) FromJsonString ¶
func (r *RunIotModelRequest) FromJsonString(s string) error
func (*RunIotModelRequest) ToJsonString ¶
func (r *RunIotModelRequest) ToJsonString() string
type RunIotModelResponse ¶
type RunIotModelResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewRunIotModelResponse ¶
func NewRunIotModelResponse() (response *RunIotModelResponse)
func (*RunIotModelResponse) FromJsonString ¶
func (r *RunIotModelResponse) FromJsonString(s string) error
func (*RunIotModelResponse) ToJsonString ¶
func (r *RunIotModelResponse) ToJsonString() string
type RunOtaVersionRequest ¶
type RunOtaVersionRequest struct { *tchttp.BaseRequest // 产品ID ProductId *string `json:"ProductId,omitempty" name:"ProductId"` // 固件版本号,格式为x.y.z, x,y 范围0-63,z范围1~524288 OtaVersion *string `json:"OtaVersion,omitempty" name:"OtaVersion"` // 灰度值,取值范围0-100,为0时相当于暂停发布 GrayValue *uint64 `json:"GrayValue,omitempty" name:"GrayValue"` // 指定的旧版本 OldVersions []*string `json:"OldVersions,omitempty" name:"OldVersions" list` // 操作人 Operator *string `json:"Operator,omitempty" name:"Operator"` }
func NewRunOtaVersionRequest ¶
func NewRunOtaVersionRequest() (request *RunOtaVersionRequest)
func (*RunOtaVersionRequest) FromJsonString ¶
func (r *RunOtaVersionRequest) FromJsonString(s string) error
func (*RunOtaVersionRequest) ToJsonString ¶
func (r *RunOtaVersionRequest) ToJsonString() string
type RunOtaVersionResponse ¶
type RunOtaVersionResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewRunOtaVersionResponse ¶
func NewRunOtaVersionResponse() (response *RunOtaVersionResponse)
func (*RunOtaVersionResponse) FromJsonString ¶
func (r *RunOtaVersionResponse) FromJsonString(s string) error
func (*RunOtaVersionResponse) ToJsonString ¶
func (r *RunOtaVersionResponse) ToJsonString() string
type RunTestOtaVersionRequest ¶
type RunTestOtaVersionRequest struct { *tchttp.BaseRequest // 产品ID ProductId *string `json:"ProductId,omitempty" name:"ProductId"` // 固件版本号,格式为x.y.z, x,y 范围0-63,z范围1~524288 OtaVersion *string `json:"OtaVersion,omitempty" name:"OtaVersion"` // 指定可升级的设备TID Tids []*string `json:"Tids,omitempty" name:"Tids" list` // 操作人 Operator *string `json:"Operator,omitempty" name:"Operator"` }
func NewRunTestOtaVersionRequest ¶
func NewRunTestOtaVersionRequest() (request *RunTestOtaVersionRequest)
func (*RunTestOtaVersionRequest) FromJsonString ¶
func (r *RunTestOtaVersionRequest) FromJsonString(s string) error
func (*RunTestOtaVersionRequest) ToJsonString ¶
func (r *RunTestOtaVersionRequest) ToJsonString() string
type RunTestOtaVersionResponse ¶
type RunTestOtaVersionResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewRunTestOtaVersionResponse ¶
func NewRunTestOtaVersionResponse() (response *RunTestOtaVersionResponse)
func (*RunTestOtaVersionResponse) FromJsonString ¶
func (r *RunTestOtaVersionResponse) FromJsonString(s string) error
func (*RunTestOtaVersionResponse) ToJsonString ¶
func (r *RunTestOtaVersionResponse) ToJsonString() string
type SendOnlineMsgRequest ¶
type SendOnlineMsgRequest struct { *tchttp.BaseRequest // 设备TID Tid *string `json:"Tid,omitempty" name:"Tid"` // 如果设备处于休眠状态,是否唤醒设备 Wakeup *bool `json:"Wakeup,omitempty" name:"Wakeup"` // 等待回应类型 // 0:不等待设备回应直接响应请求; // 1:要求设备确认消息已接收,或等待超时后返回; // 2:要求设备进行响应处理,收到设备的响应数据后,将设备响应数据回应给请求方; WaitResp *uint64 `json:"WaitResp,omitempty" name:"WaitResp"` // 消息主题 MsgTopic *string `json:"MsgTopic,omitempty" name:"MsgTopic"` // 消息内容,最大长度不超过8k字节 MsgContent *string `json:"MsgContent,omitempty" name:"MsgContent"` }
func NewSendOnlineMsgRequest ¶
func NewSendOnlineMsgRequest() (request *SendOnlineMsgRequest)
func (*SendOnlineMsgRequest) FromJsonString ¶
func (r *SendOnlineMsgRequest) FromJsonString(s string) error
func (*SendOnlineMsgRequest) ToJsonString ¶
func (r *SendOnlineMsgRequest) ToJsonString() string
type SendOnlineMsgResponse ¶
type SendOnlineMsgResponse struct { *tchttp.BaseResponse Response *struct { // 若返回此项则表明需要用户用此taskID进行查询请求是否成功(只有waitresp不等于0的情况下才可能会返回该taskID项) TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // 设备响应信息 Data *string `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewSendOnlineMsgResponse ¶
func NewSendOnlineMsgResponse() (response *SendOnlineMsgResponse)
func (*SendOnlineMsgResponse) FromJsonString ¶
func (r *SendOnlineMsgResponse) FromJsonString(s string) error
func (*SendOnlineMsgResponse) ToJsonString ¶
func (r *SendOnlineMsgResponse) ToJsonString() string
type SetMessageQueueRequest ¶
type SetMessageQueueRequest struct { *tchttp.BaseRequest // 产品ID ProductId *string `json:"ProductId,omitempty" name:"ProductId"` // 消息队列类型 1-CMQ; 2-Ckafka MsgQueueType *uint64 `json:"MsgQueueType,omitempty" name:"MsgQueueType"` // 消息类型,整型值(0-31)之间以“,”分隔 // 0:在线状态变更 // 1.固件版本变更 // 2.设置参数变更 // 3.控制状态变更 // 4.状态信息变更 // 5.事件发布 MsgType *string `json:"MsgType,omitempty" name:"MsgType"` // 消息队列主题,不超过32字符 Topic *string `json:"Topic,omitempty" name:"Topic"` // kafka消息队列的实例名,不超过64字符 Instance *string `json:"Instance,omitempty" name:"Instance"` // 消息地域,不超过32字符 MsgRegion *string `json:"MsgRegion,omitempty" name:"MsgRegion"` }
func NewSetMessageQueueRequest ¶
func NewSetMessageQueueRequest() (request *SetMessageQueueRequest)
func (*SetMessageQueueRequest) FromJsonString ¶
func (r *SetMessageQueueRequest) FromJsonString(s string) error
func (*SetMessageQueueRequest) ToJsonString ¶
func (r *SetMessageQueueRequest) ToJsonString() string
type SetMessageQueueResponse ¶
type SetMessageQueueResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewSetMessageQueueResponse ¶
func NewSetMessageQueueResponse() (response *SetMessageQueueResponse)
func (*SetMessageQueueResponse) FromJsonString ¶
func (r *SetMessageQueueResponse) FromJsonString(s string) error
func (*SetMessageQueueResponse) ToJsonString ¶
func (r *SetMessageQueueResponse) ToJsonString() string
type TraceStatus ¶
type UpgradeDeviceRequest ¶
type UpgradeDeviceRequest struct { *tchttp.BaseRequest // 设备TID Tid *string `json:"Tid,omitempty" name:"Tid"` // 固件版本号 OtaVersion *string `json:"OtaVersion,omitempty" name:"OtaVersion"` // 是否立即升级 UpgradeNow *bool `json:"UpgradeNow,omitempty" name:"UpgradeNow"` }
func NewUpgradeDeviceRequest ¶
func NewUpgradeDeviceRequest() (request *UpgradeDeviceRequest)
func (*UpgradeDeviceRequest) FromJsonString ¶
func (r *UpgradeDeviceRequest) FromJsonString(s string) error
func (*UpgradeDeviceRequest) ToJsonString ¶
func (r *UpgradeDeviceRequest) ToJsonString() string
type UpgradeDeviceResponse ¶
type UpgradeDeviceResponse struct { *tchttp.BaseResponse Response *struct { // 设备端返回的数据 // 注意:此字段可能返回 null,表示取不到有效值。 Data *string `json:"Data,omitempty" name:"Data"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUpgradeDeviceResponse ¶
func NewUpgradeDeviceResponse() (response *UpgradeDeviceResponse)
func (*UpgradeDeviceResponse) FromJsonString ¶
func (r *UpgradeDeviceResponse) FromJsonString(s string) error
func (*UpgradeDeviceResponse) ToJsonString ¶
func (r *UpgradeDeviceResponse) ToJsonString() string
type UploadOtaVersionRequest ¶
type UploadOtaVersionRequest struct { *tchttp.BaseRequest // 产品ID ProductId *string `json:"ProductId,omitempty" name:"ProductId"` // 固件版本号,格式为x.y.z, x,y 范围0-63,z范围1~524288 OtaVersion *string `json:"OtaVersion,omitempty" name:"OtaVersion"` // 固件版本URL VersionUrl *string `json:"VersionUrl,omitempty" name:"VersionUrl"` // 文件大小,单位:byte FileSize *uint64 `json:"FileSize,omitempty" name:"FileSize"` // 文件md5校验码(32字符) Md5 *string `json:"Md5,omitempty" name:"Md5"` // 操作人 Operator *string `json:"Operator,omitempty" name:"Operator"` }
func NewUploadOtaVersionRequest ¶
func NewUploadOtaVersionRequest() (request *UploadOtaVersionRequest)
func (*UploadOtaVersionRequest) FromJsonString ¶
func (r *UploadOtaVersionRequest) FromJsonString(s string) error
func (*UploadOtaVersionRequest) ToJsonString ¶
func (r *UploadOtaVersionRequest) ToJsonString() string
type UploadOtaVersionResponse ¶
type UploadOtaVersionResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUploadOtaVersionResponse ¶
func NewUploadOtaVersionResponse() (response *UploadOtaVersionResponse)
func (*UploadOtaVersionResponse) FromJsonString ¶
func (r *UploadOtaVersionResponse) FromJsonString(s string) error
func (*UploadOtaVersionResponse) ToJsonString ¶
func (r *UploadOtaVersionResponse) ToJsonString() string
type VersionData ¶
type VersionData struct { // 产品ID // 注意:此字段可能返回 null,表示取不到有效值。 ProductId *string `json:"ProductId,omitempty" name:"ProductId"` // 固件版本号 // 注意:此字段可能返回 null,表示取不到有效值。 OtaVersion *string `json:"OtaVersion,omitempty" name:"OtaVersion"` // 版本类型 1未发布 2测试发布 3正式发布 4禁用 // 注意:此字段可能返回 null,表示取不到有效值。 PubStatus *uint64 `json:"PubStatus,omitempty" name:"PubStatus"` // 固件版本存储路径URL // 注意:此字段可能返回 null,表示取不到有效值。 VersionUrl *string `json:"VersionUrl,omitempty" name:"VersionUrl"` // 文件大小,byte // 注意:此字段可能返回 null,表示取不到有效值。 FileSize *uint64 `json:"FileSize,omitempty" name:"FileSize"` // 文件校验码 // 注意:此字段可能返回 null,表示取不到有效值。 Md5 *string `json:"Md5,omitempty" name:"Md5"` // 指定的允许升级的旧版本,PubStatus=3时有效 // 注意:此字段可能返回 null,表示取不到有效值。 OldVersions *string `json:"OldVersions,omitempty" name:"OldVersions"` // 指定的允许升级的旧设备id,PubStatus=2时有效 // 注意:此字段可能返回 null,表示取不到有效值。 Tids *string `json:"Tids,omitempty" name:"Tids"` // 灰度值(0-100),PubStatus=3时有效,表示n%的升级总量 // 注意:此字段可能返回 null,表示取不到有效值。 GrayValue *uint64 `json:"GrayValue,omitempty" name:"GrayValue"` // 最近一次发布时间,UNIX时间戳,单位秒 // 注意:此字段可能返回 null,表示取不到有效值。 PublishTime *uint64 `json:"PublishTime,omitempty" name:"PublishTime"` // 此版本激活的设备总数 // 注意:此字段可能返回 null,表示取不到有效值。 ActiveCount *int64 `json:"ActiveCount,omitempty" name:"ActiveCount"` // 此版本在线的设备总数 // 注意:此字段可能返回 null,表示取不到有效值。 OnlineCount *int64 `json:"OnlineCount,omitempty" name:"OnlineCount"` // 上传固件文件的时间,UNIX时间戳,单位秒 // 注意:此字段可能返回 null,表示取不到有效值。 UpdateTime *uint64 `json:"UpdateTime,omitempty" name:"UpdateTime"` // 发布记录的最后变更时间,UNIX时间戳,单位秒 // 注意:此字段可能返回 null,表示取不到有效值。 UploadTime *uint64 `json:"UploadTime,omitempty" name:"UploadTime"` // 该固件版本发布的变更次数 // 注意:此字段可能返回 null,表示取不到有效值。 ModifyTimes *uint64 `json:"ModifyTimes,omitempty" name:"ModifyTimes"` }