Documentation ¶
Index ¶
- Constants
- type ActivateRuleRequest
- type ActivateRuleResponse
- type AddDeviceRequest
- type AddDeviceResponse
- type AddProductRequest
- type AddProductResponse
- type AddRuleRequest
- type AddRuleResponse
- type AddTopicRequest
- type AddTopicResponse
- type AddUserRequest
- type AddUserResponse
- type AppAddUserRequest
- type AppAddUserResponse
- type AppUser
- type Client
- func (c *Client) ActivateRule(request *ActivateRuleRequest) (response *ActivateRuleResponse, err error)
- func (c *Client) AddDevice(request *AddDeviceRequest) (response *AddDeviceResponse, err error)
- func (c *Client) AddProduct(request *AddProductRequest) (response *AddProductResponse, err error)
- func (c *Client) AddRule(request *AddRuleRequest) (response *AddRuleResponse, err error)
- func (c *Client) AddTopic(request *AddTopicRequest) (response *AddTopicResponse, err error)
- func (c *Client) AddUser(request *AddUserRequest) (response *AddUserResponse, err error)
- func (c *Client) AppAddUser(request *AppAddUserRequest) (response *AppAddUserResponse, err error)
- func (c *Client) DeactivateRule(request *DeactivateRuleRequest) (response *DeactivateRuleResponse, err error)
- func (c *Client) DeleteDevice(request *DeleteDeviceRequest) (response *DeleteDeviceResponse, err error)
- func (c *Client) DeleteProduct(request *DeleteProductRequest) (response *DeleteProductResponse, err error)
- func (c *Client) DeleteRule(request *DeleteRuleRequest) (response *DeleteRuleResponse, err error)
- func (c *Client) DeleteTopic(request *DeleteTopicRequest) (response *DeleteTopicResponse, err error)
- func (c *Client) GetDataHistory(request *GetDataHistoryRequest) (response *GetDataHistoryResponse, err error)
- func (c *Client) GetDevice(request *GetDeviceRequest) (response *GetDeviceResponse, err error)
- func (c *Client) GetDeviceData(request *GetDeviceDataRequest) (response *GetDeviceDataResponse, err error)
- func (c *Client) GetDeviceLog(request *GetDeviceLogRequest) (response *GetDeviceLogResponse, err error)
- func (c *Client) GetDeviceStatuses(request *GetDeviceStatusesRequest) (response *GetDeviceStatusesResponse, err error)
- func (c *Client) GetDevices(request *GetDevicesRequest) (response *GetDevicesResponse, err error)
- func (c *Client) GetProduct(request *GetProductRequest) (response *GetProductResponse, err error)
- func (c *Client) GetProducts(request *GetProductsRequest) (response *GetProductsResponse, err error)
- func (c *Client) GetRule(request *GetRuleRequest) (response *GetRuleResponse, err error)
- func (c *Client) GetRules(request *GetRulesRequest) (response *GetRulesResponse, err error)
- func (c *Client) GetTopic(request *GetTopicRequest) (response *GetTopicResponse, err error)
- func (c *Client) GetTopics(request *GetTopicsRequest) (response *GetTopicsResponse, err error)
- func (c *Client) GetUser(request *GetUserRequest) (response *GetUserResponse, err error)
- func (c *Client) IssueDeviceControl(request *IssueDeviceControlRequest) (response *IssueDeviceControlResponse, err error)
- func (c *Client) PublishMsg(request *PublishMsgRequest) (response *PublishMsgResponse, err error)
- func (c *Client) ResetDevice(request *ResetDeviceRequest) (response *ResetDeviceResponse, err error)
- func (c *Client) UpdateProduct(request *UpdateProductRequest) (response *UpdateProductResponse, err error)
- func (c *Client) UpdateRule(request *UpdateRuleRequest) (response *UpdateRuleResponse, err error)
- type DeactivateRuleRequest
- type DeactivateRuleResponse
- type DeleteDeviceRequest
- type DeleteDeviceResponse
- type DeleteProductRequest
- type DeleteProductResponse
- type DeleteRuleRequest
- type DeleteRuleResponse
- type DeleteTopicRequest
- type DeleteTopicResponse
- type Device
- type DeviceStatus
- type GetDataHistoryRequest
- type GetDataHistoryResponse
- type GetDeviceDataRequest
- type GetDeviceDataResponse
- type GetDeviceLogRequest
- type GetDeviceLogResponse
- type GetDeviceRequest
- type GetDeviceResponse
- type GetDeviceStatusesRequest
- type GetDeviceStatusesResponse
- type GetDevicesRequest
- type GetDevicesResponse
- type GetProductRequest
- type GetProductResponse
- type GetProductsRequest
- type GetProductsResponse
- type GetRuleRequest
- type GetRuleResponse
- type GetRulesRequest
- type GetRulesResponse
- type GetTopicRequest
- type GetTopicResponse
- type GetTopicsRequest
- type GetTopicsResponse
- type GetUserRequest
- type GetUserResponse
- type IssueDeviceControlRequest
- type IssueDeviceControlResponse
- type Object
- type Product
- type PublishMsgRequest
- type PublishMsgResponse
- type ResetDeviceRequest
- type ResetDeviceResponse
- type Rule
- type RuleQuery
- type Topic
- type UpdateProductRequest
- type UpdateProductResponse
- type UpdateRuleRequest
- type UpdateRuleResponse
- type User
Constants ¶
const APIVersion = "2018-01-23"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivateRuleRequest ¶
type ActivateRuleRequest struct { *tchttp.BaseRequest // 规则Id RuleId *string `json:"RuleId" name:"RuleId"` }
func NewActivateRuleRequest ¶
func NewActivateRuleRequest() (request *ActivateRuleRequest)
func (*ActivateRuleRequest) FromJsonString ¶
func (r *ActivateRuleRequest) FromJsonString(s string) error
func (*ActivateRuleRequest) ToJsonString ¶
func (r *ActivateRuleRequest) ToJsonString() string
type ActivateRuleResponse ¶
type ActivateRuleResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewActivateRuleResponse ¶
func NewActivateRuleResponse() (response *ActivateRuleResponse)
func (*ActivateRuleResponse) FromJsonString ¶
func (r *ActivateRuleResponse) FromJsonString(s string) error
func (*ActivateRuleResponse) ToJsonString ¶
func (r *ActivateRuleResponse) ToJsonString() string
type AddDeviceRequest ¶
type AddDeviceRequest struct { *tchttp.BaseRequest // 产品Id ProductId *string `json:"ProductId" name:"ProductId"` // 设备名称,唯一标识某产品下的一个设备 DeviceName *string `json:"DeviceName" name:"DeviceName"` }
func NewAddDeviceRequest ¶
func NewAddDeviceRequest() (request *AddDeviceRequest)
func (*AddDeviceRequest) FromJsonString ¶
func (r *AddDeviceRequest) FromJsonString(s string) error
func (*AddDeviceRequest) ToJsonString ¶
func (r *AddDeviceRequest) ToJsonString() string
type AddDeviceResponse ¶
type AddDeviceResponse struct { *tchttp.BaseResponse Response *struct { // 设备信息 Device *Device `json:"Device" name:"Device"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewAddDeviceResponse ¶
func NewAddDeviceResponse() (response *AddDeviceResponse)
func (*AddDeviceResponse) FromJsonString ¶
func (r *AddDeviceResponse) FromJsonString(s string) error
func (*AddDeviceResponse) ToJsonString ¶
func (r *AddDeviceResponse) ToJsonString() string
type AddProductRequest ¶
type AddProductRequest struct { *tchttp.BaseRequest // 产品名称,同一区域产品名称需唯一,支持中文、英文字母、中划线和下划线,长度不超过31个字符,中文占两个字符 Name *string `json:"Name" name:"Name"` // 产品描述 Description *string `json:"Description" name:"Description"` // 鉴权模式(1:动态令牌,推荐使用动态令牌) AuthType *uint64 `json:"AuthType" name:"AuthType"` // 数据模版(json数组) DataTemplate []*string `json:"DataTemplate" name:"DataTemplate" list` // 数据协议(native表示自定义,template表示数据模板,默认值为template) DataProtocol *string `json:"DataProtocol" name:"DataProtocol"` }
func NewAddProductRequest ¶
func NewAddProductRequest() (request *AddProductRequest)
func (*AddProductRequest) FromJsonString ¶
func (r *AddProductRequest) FromJsonString(s string) error
func (*AddProductRequest) ToJsonString ¶
func (r *AddProductRequest) ToJsonString() string
type AddProductResponse ¶
type AddProductResponse struct { *tchttp.BaseResponse Response *struct { // 产品信息 Product *Product `json:"Product" name:"Product"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewAddProductResponse ¶
func NewAddProductResponse() (response *AddProductResponse)
func (*AddProductResponse) FromJsonString ¶
func (r *AddProductResponse) FromJsonString(s string) error
func (*AddProductResponse) ToJsonString ¶
func (r *AddProductResponse) ToJsonString() string
type AddRuleRequest ¶
type AddRuleRequest struct { *tchttp.BaseRequest // 名称 Name *string `json:"Name" name:"Name"` // 描述 Description *string `json:"Description" name:"Description"` // 查询 Query *RuleQuery `json:"Query" name:"Query"` // 转发 Actions []*Object `json:"Actions" name:"Actions" list` }
func NewAddRuleRequest ¶
func NewAddRuleRequest() (request *AddRuleRequest)
func (*AddRuleRequest) FromJsonString ¶
func (r *AddRuleRequest) FromJsonString(s string) error
func (*AddRuleRequest) ToJsonString ¶
func (r *AddRuleRequest) ToJsonString() string
type AddRuleResponse ¶
type AddRuleResponse struct { *tchttp.BaseResponse Response *struct { // 规则 Rule *Rule `json:"Rule" name:"Rule"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewAddRuleResponse ¶
func NewAddRuleResponse() (response *AddRuleResponse)
func (*AddRuleResponse) FromJsonString ¶
func (r *AddRuleResponse) FromJsonString(s string) error
func (*AddRuleResponse) ToJsonString ¶
func (r *AddRuleResponse) ToJsonString() string
type AddTopicRequest ¶
type AddTopicRequest struct { *tchttp.BaseRequest // 产品Id ProductId *string `json:"ProductId" name:"ProductId"` // Topic名称 TopicName *string `json:"TopicName" name:"TopicName"` }
func NewAddTopicRequest ¶
func NewAddTopicRequest() (request *AddTopicRequest)
func (*AddTopicRequest) FromJsonString ¶
func (r *AddTopicRequest) FromJsonString(s string) error
func (*AddTopicRequest) ToJsonString ¶
func (r *AddTopicRequest) ToJsonString() string
type AddTopicResponse ¶
type AddTopicResponse struct { *tchttp.BaseResponse Response *struct { // Topic信息 Topic *Topic `json:"Topic" name:"Topic"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewAddTopicResponse ¶
func NewAddTopicResponse() (response *AddTopicResponse)
func (*AddTopicResponse) FromJsonString ¶
func (r *AddTopicResponse) FromJsonString(s string) error
func (*AddTopicResponse) ToJsonString ¶
func (r *AddTopicResponse) ToJsonString() string
type AddUserRequest ¶
type AddUserRequest struct {
*tchttp.BaseRequest
}
func NewAddUserRequest ¶
func NewAddUserRequest() (request *AddUserRequest)
func (*AddUserRequest) FromJsonString ¶
func (r *AddUserRequest) FromJsonString(s string) error
func (*AddUserRequest) ToJsonString ¶
func (r *AddUserRequest) ToJsonString() string
type AddUserResponse ¶
type AddUserResponse struct { *tchttp.BaseResponse Response *struct { // 用户信息 User *User `json:"User" name:"User"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewAddUserResponse ¶
func NewAddUserResponse() (response *AddUserResponse)
func (*AddUserResponse) FromJsonString ¶
func (r *AddUserResponse) FromJsonString(s string) error
func (*AddUserResponse) ToJsonString ¶
func (r *AddUserResponse) ToJsonString() string
type AppAddUserRequest ¶
type AppAddUserRequest struct { *tchttp.BaseRequest // 用户名 UserName *string `json:"UserName" name:"UserName"` // 密码 Password *string `json:"Password" name:"Password"` }
func NewAppAddUserRequest ¶
func NewAppAddUserRequest() (request *AppAddUserRequest)
func (*AppAddUserRequest) FromJsonString ¶
func (r *AppAddUserRequest) FromJsonString(s string) error
func (*AppAddUserRequest) ToJsonString ¶
func (r *AppAddUserRequest) ToJsonString() string
type AppAddUserResponse ¶
type AppAddUserResponse struct { *tchttp.BaseResponse Response *struct { // 应用用户 AppUser *AppUser `json:"AppUser" name:"AppUser"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewAppAddUserResponse ¶
func NewAppAddUserResponse() (response *AppAddUserResponse)
func (*AppAddUserResponse) FromJsonString ¶
func (r *AppAddUserResponse) FromJsonString(s string) error
func (*AppAddUserResponse) ToJsonString ¶
func (r *AppAddUserResponse) ToJsonString() string
type AppUser ¶
type AppUser struct { // 应用Id ApplicationId *string `json:"ApplicationId" name:"ApplicationId"` // 用户名 UserName *string `json:"UserName" name:"UserName"` // 昵称 NickName *string `json:"NickName" name:"NickName"` // 绑定设备列表 Devices []*Object `json:"Devices" name:"Devices" list` // 创建时间 CreateTime *string `json:"CreateTime" name:"CreateTime"` // 修改时间 UpdateTime *string `json:"UpdateTime" name:"UpdateTime"` }
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
func (*Client) ActivateRule ¶
func (c *Client) ActivateRule(request *ActivateRuleRequest) (response *ActivateRuleResponse, err error)
启用规则
func (*Client) AddDevice ¶
func (c *Client) AddDevice(request *AddDeviceRequest) (response *AddDeviceResponse, err error)
提供在指定的产品Id下创建一个设备的能力,生成设备名称与设备秘钥。
func (*Client) AddProduct ¶
func (c *Client) AddProduct(request *AddProductRequest) (response *AddProductResponse, err error)
本接口(AddProduct)用于创建、定义某款硬件产品。
func (*Client) AddRule ¶
func (c *Client) AddRule(request *AddRuleRequest) (response *AddRuleResponse, err error)
新增规则
func (*Client) AddTopic ¶
func (c *Client) AddTopic(request *AddTopicRequest) (response *AddTopicResponse, err error)
新增Topic,用于设备或应用发布消息至该Topic或订阅该Topic的消息。
func (*Client) AddUser ¶
func (c *Client) AddUser(request *AddUserRequest) (response *AddUserResponse, err error)
注册用户
func (*Client) AppAddUser ¶
func (c *Client) AppAddUser(request *AppAddUserRequest) (response *AppAddUserResponse, err error)
注册应用用户
func (*Client) DeactivateRule ¶
func (c *Client) DeactivateRule(request *DeactivateRuleRequest) (response *DeactivateRuleResponse, err error)
禁用规则
func (*Client) DeleteDevice ¶
func (c *Client) DeleteDevice(request *DeleteDeviceRequest) (response *DeleteDeviceResponse, err error)
提供在指定的产品Id下删除一个设备的能力。
func (*Client) DeleteProduct ¶
func (c *Client) DeleteProduct(request *DeleteProductRequest) (response *DeleteProductResponse, err error)
删除用户指定的产品Id对应的信息。
func (*Client) DeleteRule ¶
func (c *Client) DeleteRule(request *DeleteRuleRequest) (response *DeleteRuleResponse, err error)
删除规则
func (*Client) DeleteTopic ¶
func (c *Client) DeleteTopic(request *DeleteTopicRequest) (response *DeleteTopicResponse, err error)
删除Topic
func (*Client) GetDataHistory ¶
func (c *Client) GetDataHistory(request *GetDataHistoryRequest) (response *GetDataHistoryResponse, err error)
批量获取设备某一段时间范围的设备上报数据。该接口只允许使用数据模板类型的产品通过REST API方式同步设备上报数据至用户的应用系统。
func (*Client) GetDevice ¶
func (c *Client) GetDevice(request *GetDeviceRequest) (response *GetDeviceResponse, err error)
提供查询某个设备详细信息的能力。
func (*Client) GetDeviceData ¶
func (c *Client) GetDeviceData(request *GetDeviceDataRequest) (response *GetDeviceDataResponse, err error)
获取某个设备当前上报到云端的数据,该接口适用于使用数据模板协议的产品。
func (*Client) GetDeviceLog ¶
func (c *Client) GetDeviceLog(request *GetDeviceLogRequest) (response *GetDeviceLogResponse, err error)
批量获取设备与云端的详细通信日志,该接口适用于使用数据模板类型的产品。
func (*Client) GetDeviceStatuses ¶
func (c *Client) GetDeviceStatuses(request *GetDeviceStatusesRequest) (response *GetDeviceStatusesResponse, err error)
批量获取设备的当前状态,状态包括在线、离线或未激活状态。
func (*Client) GetDevices ¶
func (c *Client) GetDevices(request *GetDevicesRequest) (response *GetDevicesResponse, err error)
提供分页查询某个产品Id下设备信息的能力。
func (*Client) GetProduct ¶
func (c *Client) GetProduct(request *GetProductRequest) (response *GetProductResponse, err error)
获取产品定义的详细信息,包括产品名称、产品描述,鉴权模式等信息。
func (*Client) GetProducts ¶
func (c *Client) GetProducts(request *GetProductsRequest) (response *GetProductsResponse, err error)
获取用户在物联网套件所创建的所有产品信息。
func (*Client) GetRule ¶
func (c *Client) GetRule(request *GetRuleRequest) (response *GetRuleResponse, err error)
获取转发规则信息
func (*Client) GetRules ¶
func (c *Client) GetRules(request *GetRulesRequest) (response *GetRulesResponse, err error)
获取转发规则列表
func (*Client) GetTopic ¶
func (c *Client) GetTopic(request *GetTopicRequest) (response *GetTopicResponse, err error)
获取Topic信息
func (*Client) GetTopics ¶
func (c *Client) GetTopics(request *GetTopicsRequest) (response *GetTopicsResponse, err error)
获取Topic列表
func (*Client) GetUser ¶
func (c *Client) GetUser(request *GetUserRequest) (response *GetUserResponse, err error)
获取用户信息
func (*Client) IssueDeviceControl ¶
func (c *Client) IssueDeviceControl(request *IssueDeviceControlRequest) (response *IssueDeviceControlResponse, err error)
提供下发控制指令到指定设备的能力,该接口适用于使用数据模板类型的产品。
func (*Client) PublishMsg ¶
func (c *Client) PublishMsg(request *PublishMsgRequest) (response *PublishMsgResponse, err error)
提供向指定的Topic发布消息的能力,常用于向设备下发控制指令;该接口只适用于数据协议为“自定义”类型的产品,使用数据模板类型的产品需使用IssueDeviceControl接口
func (*Client) ResetDevice ¶
func (c *Client) ResetDevice(request *ResetDeviceRequest) (response *ResetDeviceResponse, err error)
重置设备操作,将会为设备生成新的证书及清空最新数据,需谨慎操作。
func (*Client) UpdateProduct ¶
func (c *Client) UpdateProduct(request *UpdateProductRequest) (response *UpdateProductResponse, err error)
提供修改产品信息及数据模板的能力。
func (*Client) UpdateRule ¶
func (c *Client) UpdateRule(request *UpdateRuleRequest) (response *UpdateRuleResponse, err error)
更新规则
type DeactivateRuleRequest ¶
type DeactivateRuleRequest struct { *tchttp.BaseRequest // 规则Id RuleId *string `json:"RuleId" name:"RuleId"` }
func NewDeactivateRuleRequest ¶
func NewDeactivateRuleRequest() (request *DeactivateRuleRequest)
func (*DeactivateRuleRequest) FromJsonString ¶
func (r *DeactivateRuleRequest) FromJsonString(s string) error
func (*DeactivateRuleRequest) ToJsonString ¶
func (r *DeactivateRuleRequest) ToJsonString() string
type DeactivateRuleResponse ¶
type DeactivateRuleResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewDeactivateRuleResponse ¶
func NewDeactivateRuleResponse() (response *DeactivateRuleResponse)
func (*DeactivateRuleResponse) FromJsonString ¶
func (r *DeactivateRuleResponse) FromJsonString(s string) error
func (*DeactivateRuleResponse) ToJsonString ¶
func (r *DeactivateRuleResponse) ToJsonString() string
type DeleteDeviceRequest ¶
type DeleteDeviceRequest struct { *tchttp.BaseRequest // 产品Id ProductId *string `json:"ProductId" name:"ProductId"` // 设备名称 DeviceName *string `json:"DeviceName" name:"DeviceName"` }
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" 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 DeleteProductRequest ¶
type DeleteProductRequest struct { *tchttp.BaseRequest // 产品Id ProductId *string `json:"ProductId" 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" 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 DeleteRuleRequest ¶
type DeleteRuleRequest struct { *tchttp.BaseRequest // 规则Id RuleId *string `json:"RuleId" name:"RuleId"` }
func NewDeleteRuleRequest ¶
func NewDeleteRuleRequest() (request *DeleteRuleRequest)
func (*DeleteRuleRequest) FromJsonString ¶
func (r *DeleteRuleRequest) FromJsonString(s string) error
func (*DeleteRuleRequest) ToJsonString ¶
func (r *DeleteRuleRequest) ToJsonString() string
type DeleteRuleResponse ¶
type DeleteRuleResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewDeleteRuleResponse ¶
func NewDeleteRuleResponse() (response *DeleteRuleResponse)
func (*DeleteRuleResponse) FromJsonString ¶
func (r *DeleteRuleResponse) FromJsonString(s string) error
func (*DeleteRuleResponse) ToJsonString ¶
func (r *DeleteRuleResponse) ToJsonString() string
type DeleteTopicRequest ¶
type DeleteTopicRequest struct { *tchttp.BaseRequest // TopicId TopicId *string `json:"TopicId" name:"TopicId"` // 产品Id ProductId *string `json:"ProductId" name:"ProductId"` }
func NewDeleteTopicRequest ¶
func NewDeleteTopicRequest() (request *DeleteTopicRequest)
func (*DeleteTopicRequest) FromJsonString ¶
func (r *DeleteTopicRequest) FromJsonString(s string) error
func (*DeleteTopicRequest) ToJsonString ¶
func (r *DeleteTopicRequest) ToJsonString() string
type DeleteTopicResponse ¶
type DeleteTopicResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewDeleteTopicResponse ¶
func NewDeleteTopicResponse() (response *DeleteTopicResponse)
func (*DeleteTopicResponse) FromJsonString ¶
func (r *DeleteTopicResponse) FromJsonString(s string) error
func (*DeleteTopicResponse) ToJsonString ¶
func (r *DeleteTopicResponse) ToJsonString() string
type Device ¶
type Device struct { // 产品Id ProductId *string `json:"ProductId" name:"ProductId"` // 设备名称 DeviceName *string `json:"DeviceName" name:"DeviceName"` // 设备密钥 DeviceSecret *string `json:"DeviceSecret" name:"DeviceSecret"` // 更新时间 UpdateTime *string `json:"UpdateTime" name:"UpdateTime"` // 创建时间 CreateTime *string `json:"CreateTime" name:"CreateTime"` // 设备信息 DeviceInfo *Object `json:"DeviceInfo" name:"DeviceInfo"` }
type DeviceStatus ¶
type GetDataHistoryRequest ¶
type GetDataHistoryRequest struct { *tchttp.BaseRequest // 产品Id ProductId *string `json:"ProductId" name:"ProductId"` // 设备名称列表,允许最多一次100台 DeviceNames []*string `json:"DeviceNames" name:"DeviceNames" list` // 查询开始时间 StartTime *string `json:"StartTime" name:"StartTime"` // 查询结束时间 EndTime *string `json:"EndTime" name:"EndTime"` // 查询数据量 Size []*uint64 `json:"Size" name:"Size" list` // 时间排序(desc/asc) Order *string `json:"Order" name:"Order"` // 查询游标 ScrollId *string `json:"ScrollId" name:"ScrollId"` }
func NewGetDataHistoryRequest ¶
func NewGetDataHistoryRequest() (request *GetDataHistoryRequest)
func (*GetDataHistoryRequest) FromJsonString ¶
func (r *GetDataHistoryRequest) FromJsonString(s string) error
func (*GetDataHistoryRequest) ToJsonString ¶
func (r *GetDataHistoryRequest) ToJsonString() string
type GetDataHistoryResponse ¶
type GetDataHistoryResponse struct { *tchttp.BaseResponse Response *struct { // 数据历史 DataHistory []*Object `json:"DataHistory" name:"DataHistory" list` // 查询游标 ScrollId *string `json:"ScrollId" name:"ScrollId"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewGetDataHistoryResponse ¶
func NewGetDataHistoryResponse() (response *GetDataHistoryResponse)
func (*GetDataHistoryResponse) FromJsonString ¶
func (r *GetDataHistoryResponse) FromJsonString(s string) error
func (*GetDataHistoryResponse) ToJsonString ¶
func (r *GetDataHistoryResponse) ToJsonString() string
type GetDeviceDataRequest ¶
type GetDeviceDataRequest struct { *tchttp.BaseRequest // 产品Id ProductId *string `json:"ProductId" name:"ProductId"` // 设备名称 DeviceName *string `json:"DeviceName" name:"DeviceName"` }
func NewGetDeviceDataRequest ¶
func NewGetDeviceDataRequest() (request *GetDeviceDataRequest)
func (*GetDeviceDataRequest) FromJsonString ¶
func (r *GetDeviceDataRequest) FromJsonString(s string) error
func (*GetDeviceDataRequest) ToJsonString ¶
func (r *GetDeviceDataRequest) ToJsonString() string
type GetDeviceDataResponse ¶
type GetDeviceDataResponse struct { *tchttp.BaseResponse Response *struct { // 设备数据 DeviceData *Object `json:"DeviceData" name:"DeviceData"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewGetDeviceDataResponse ¶
func NewGetDeviceDataResponse() (response *GetDeviceDataResponse)
func (*GetDeviceDataResponse) FromJsonString ¶
func (r *GetDeviceDataResponse) FromJsonString(s string) error
func (*GetDeviceDataResponse) ToJsonString ¶
func (r *GetDeviceDataResponse) ToJsonString() string
type GetDeviceLogRequest ¶
type GetDeviceLogRequest struct { *tchttp.BaseRequest // 产品Id ProductId *string `json:"ProductId" name:"ProductId"` // 设备名称列表,最大支持100台 DeviceNames []*string `json:"DeviceNames" name:"DeviceNames" list` // 查询开始时间 StartTime *string `json:"StartTime" name:"StartTime"` // 查询结束时间 EndTime *string `json:"EndTime" name:"EndTime"` // 查询数据量 Size *uint64 `json:"Size" name:"Size"` // 时间排序(desc/asc) Order *string `json:"Order" name:"Order"` // 查询游标 ScrollId *string `json:"ScrollId" name:"ScrollId"` // 日志类型(comm/status) Type *string `json:"Type" name:"Type"` }
func NewGetDeviceLogRequest ¶
func NewGetDeviceLogRequest() (request *GetDeviceLogRequest)
func (*GetDeviceLogRequest) FromJsonString ¶
func (r *GetDeviceLogRequest) FromJsonString(s string) error
func (*GetDeviceLogRequest) ToJsonString ¶
func (r *GetDeviceLogRequest) ToJsonString() string
type GetDeviceLogResponse ¶
type GetDeviceLogResponse struct { *tchttp.BaseResponse Response *struct { // 设备日志 DeviceLog []*Object `json:"DeviceLog" name:"DeviceLog" list` // 查询游标 ScrollId []*string `json:"ScrollId" name:"ScrollId" list` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewGetDeviceLogResponse ¶
func NewGetDeviceLogResponse() (response *GetDeviceLogResponse)
func (*GetDeviceLogResponse) FromJsonString ¶
func (r *GetDeviceLogResponse) FromJsonString(s string) error
func (*GetDeviceLogResponse) ToJsonString ¶
func (r *GetDeviceLogResponse) ToJsonString() string
type GetDeviceRequest ¶
type GetDeviceRequest struct { *tchttp.BaseRequest // 产品Id ProductId *string `json:"ProductId" name:"ProductId"` // 设备名称 DeviceName *string `json:"DeviceName" name:"DeviceName"` }
func NewGetDeviceRequest ¶
func NewGetDeviceRequest() (request *GetDeviceRequest)
func (*GetDeviceRequest) FromJsonString ¶
func (r *GetDeviceRequest) FromJsonString(s string) error
func (*GetDeviceRequest) ToJsonString ¶
func (r *GetDeviceRequest) ToJsonString() string
type GetDeviceResponse ¶
type GetDeviceResponse struct { *tchttp.BaseResponse Response *struct { // 设备信息 Device *Device `json:"Device" name:"Device"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewGetDeviceResponse ¶
func NewGetDeviceResponse() (response *GetDeviceResponse)
func (*GetDeviceResponse) FromJsonString ¶
func (r *GetDeviceResponse) FromJsonString(s string) error
func (*GetDeviceResponse) ToJsonString ¶
func (r *GetDeviceResponse) ToJsonString() string
type GetDeviceStatusesRequest ¶
type GetDeviceStatusesRequest struct { *tchttp.BaseRequest // 产品ID ProductId *string `json:"ProductId" name:"ProductId"` // 设备名称列表(单次限制1000个设备) DeviceNames []*string `json:"DeviceNames" name:"DeviceNames" list` }
func NewGetDeviceStatusesRequest ¶
func NewGetDeviceStatusesRequest() (request *GetDeviceStatusesRequest)
func (*GetDeviceStatusesRequest) FromJsonString ¶
func (r *GetDeviceStatusesRequest) FromJsonString(s string) error
func (*GetDeviceStatusesRequest) ToJsonString ¶
func (r *GetDeviceStatusesRequest) ToJsonString() string
type GetDeviceStatusesResponse ¶
type GetDeviceStatusesResponse struct { *tchttp.BaseResponse Response *struct { // 设备状态列表 DeviceStatuses []*DeviceStatus `json:"DeviceStatuses" name:"DeviceStatuses" list` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewGetDeviceStatusesResponse ¶
func NewGetDeviceStatusesResponse() (response *GetDeviceStatusesResponse)
func (*GetDeviceStatusesResponse) FromJsonString ¶
func (r *GetDeviceStatusesResponse) FromJsonString(s string) error
func (*GetDeviceStatusesResponse) ToJsonString ¶
func (r *GetDeviceStatusesResponse) ToJsonString() string
type GetDevicesRequest ¶
type GetDevicesRequest struct { *tchttp.BaseRequest // 产品Id ProductId *string `json:"ProductId" name:"ProductId"` // 偏移 Offset *uint64 `json:"Offset" name:"Offset"` // 长度 Length *uint64 `json:"Length" name:"Length"` }
func NewGetDevicesRequest ¶
func NewGetDevicesRequest() (request *GetDevicesRequest)
func (*GetDevicesRequest) FromJsonString ¶
func (r *GetDevicesRequest) FromJsonString(s string) error
func (*GetDevicesRequest) ToJsonString ¶
func (r *GetDevicesRequest) ToJsonString() string
type GetDevicesResponse ¶
type GetDevicesResponse struct { *tchttp.BaseResponse Response *struct { // 设备列表 Devices []*Device `json:"Devices" name:"Devices" list` // 设备总数 Total *uint64 `json:"Total" name:"Total"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewGetDevicesResponse ¶
func NewGetDevicesResponse() (response *GetDevicesResponse)
func (*GetDevicesResponse) FromJsonString ¶
func (r *GetDevicesResponse) FromJsonString(s string) error
func (*GetDevicesResponse) ToJsonString ¶
func (r *GetDevicesResponse) ToJsonString() string
type GetProductRequest ¶
type GetProductRequest struct { *tchttp.BaseRequest // 产品Id ProductId *string `json:"ProductId" name:"ProductId"` }
func NewGetProductRequest ¶
func NewGetProductRequest() (request *GetProductRequest)
func (*GetProductRequest) FromJsonString ¶
func (r *GetProductRequest) FromJsonString(s string) error
func (*GetProductRequest) ToJsonString ¶
func (r *GetProductRequest) ToJsonString() string
type GetProductResponse ¶
type GetProductResponse struct { *tchttp.BaseResponse Response *struct { // 产品信息 Product *Product `json:"Product" name:"Product"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewGetProductResponse ¶
func NewGetProductResponse() (response *GetProductResponse)
func (*GetProductResponse) FromJsonString ¶
func (r *GetProductResponse) FromJsonString(s string) error
func (*GetProductResponse) ToJsonString ¶
func (r *GetProductResponse) ToJsonString() string
type GetProductsRequest ¶
type GetProductsRequest struct { *tchttp.BaseRequest // 偏移 Offset *uint64 `json:"Offset" name:"Offset"` // 长度 Length *uint64 `json:"Length" name:"Length"` }
func NewGetProductsRequest ¶
func NewGetProductsRequest() (request *GetProductsRequest)
func (*GetProductsRequest) FromJsonString ¶
func (r *GetProductsRequest) FromJsonString(s string) error
func (*GetProductsRequest) ToJsonString ¶
func (r *GetProductsRequest) ToJsonString() string
type GetProductsResponse ¶
type GetProductsResponse struct { *tchttp.BaseResponse Response *struct { // Product列表 Products []*Product `json:"Products" name:"Products" list` // Product总数 Total *uint64 `json:"Total" name:"Total"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewGetProductsResponse ¶
func NewGetProductsResponse() (response *GetProductsResponse)
func (*GetProductsResponse) FromJsonString ¶
func (r *GetProductsResponse) FromJsonString(s string) error
func (*GetProductsResponse) ToJsonString ¶
func (r *GetProductsResponse) ToJsonString() string
type GetRuleRequest ¶
type GetRuleRequest struct { *tchttp.BaseRequest // 规则Id RuleId *string `json:"RuleId" name:"RuleId"` }
func NewGetRuleRequest ¶
func NewGetRuleRequest() (request *GetRuleRequest)
func (*GetRuleRequest) FromJsonString ¶
func (r *GetRuleRequest) FromJsonString(s string) error
func (*GetRuleRequest) ToJsonString ¶
func (r *GetRuleRequest) ToJsonString() string
type GetRuleResponse ¶
type GetRuleResponse struct { *tchttp.BaseResponse Response *struct { // 规则 Rule *Rule `json:"Rule" name:"Rule"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewGetRuleResponse ¶
func NewGetRuleResponse() (response *GetRuleResponse)
func (*GetRuleResponse) FromJsonString ¶
func (r *GetRuleResponse) FromJsonString(s string) error
func (*GetRuleResponse) ToJsonString ¶
func (r *GetRuleResponse) ToJsonString() string
type GetRulesRequest ¶
type GetRulesRequest struct { *tchttp.BaseRequest // 偏移 Offset *uint64 `json:"Offset" name:"Offset"` // 长度 Length *uint64 `json:"Length" name:"Length"` }
func NewGetRulesRequest ¶
func NewGetRulesRequest() (request *GetRulesRequest)
func (*GetRulesRequest) FromJsonString ¶
func (r *GetRulesRequest) FromJsonString(s string) error
func (*GetRulesRequest) ToJsonString ¶
func (r *GetRulesRequest) ToJsonString() string
type GetRulesResponse ¶
type GetRulesResponse struct { *tchttp.BaseResponse Response *struct { // 规则列表 Rules []*Rule `json:"Rules" name:"Rules" list` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewGetRulesResponse ¶
func NewGetRulesResponse() (response *GetRulesResponse)
func (*GetRulesResponse) FromJsonString ¶
func (r *GetRulesResponse) FromJsonString(s string) error
func (*GetRulesResponse) ToJsonString ¶
func (r *GetRulesResponse) ToJsonString() string
type GetTopicRequest ¶
type GetTopicRequest struct { *tchttp.BaseRequest // TopicId TopicId *string `json:"TopicId" name:"TopicId"` // 产品Id ProductId *string `json:"ProductId" name:"ProductId"` }
func NewGetTopicRequest ¶
func NewGetTopicRequest() (request *GetTopicRequest)
func (*GetTopicRequest) FromJsonString ¶
func (r *GetTopicRequest) FromJsonString(s string) error
func (*GetTopicRequest) ToJsonString ¶
func (r *GetTopicRequest) ToJsonString() string
type GetTopicResponse ¶
type GetTopicResponse struct { *tchttp.BaseResponse Response *struct { // Topic信息 Topic *Topic `json:"Topic" name:"Topic"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewGetTopicResponse ¶
func NewGetTopicResponse() (response *GetTopicResponse)
func (*GetTopicResponse) FromJsonString ¶
func (r *GetTopicResponse) FromJsonString(s string) error
func (*GetTopicResponse) ToJsonString ¶
func (r *GetTopicResponse) ToJsonString() string
type GetTopicsRequest ¶
type GetTopicsRequest struct { *tchttp.BaseRequest // 产品Id ProductId *string `json:"ProductId" name:"ProductId"` // 偏移 Offset *uint64 `json:"Offset" name:"Offset"` // 长度 Length *uint64 `json:"Length" name:"Length"` }
func NewGetTopicsRequest ¶
func NewGetTopicsRequest() (request *GetTopicsRequest)
func (*GetTopicsRequest) FromJsonString ¶
func (r *GetTopicsRequest) FromJsonString(s string) error
func (*GetTopicsRequest) ToJsonString ¶
func (r *GetTopicsRequest) ToJsonString() string
type GetTopicsResponse ¶
type GetTopicsResponse struct { *tchttp.BaseResponse Response *struct { // Topic列表 Topics []*Topic `json:"Topics" name:"Topics" list` // Topic总数 Total *uint64 `json:"Total" name:"Total"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewGetTopicsResponse ¶
func NewGetTopicsResponse() (response *GetTopicsResponse)
func (*GetTopicsResponse) FromJsonString ¶
func (r *GetTopicsResponse) FromJsonString(s string) error
func (*GetTopicsResponse) ToJsonString ¶
func (r *GetTopicsResponse) ToJsonString() string
type GetUserRequest ¶
type GetUserRequest struct {
*tchttp.BaseRequest
}
func NewGetUserRequest ¶
func NewGetUserRequest() (request *GetUserRequest)
func (*GetUserRequest) FromJsonString ¶
func (r *GetUserRequest) FromJsonString(s string) error
func (*GetUserRequest) ToJsonString ¶
func (r *GetUserRequest) ToJsonString() string
type GetUserResponse ¶
type GetUserResponse struct { *tchttp.BaseResponse Response *struct { // 用户信息 User *User `json:"User" name:"User"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewGetUserResponse ¶
func NewGetUserResponse() (response *GetUserResponse)
func (*GetUserResponse) FromJsonString ¶
func (r *GetUserResponse) FromJsonString(s string) error
func (*GetUserResponse) ToJsonString ¶
func (r *GetUserResponse) ToJsonString() string
type IssueDeviceControlRequest ¶
type IssueDeviceControlRequest struct { *tchttp.BaseRequest // 产品Id ProductId *string `json:"ProductId" name:"ProductId"` // 设备名称 DeviceName *string `json:"DeviceName" name:"DeviceName"` // 控制数据(json) ControlData *string `json:"ControlData" name:"ControlData"` }
func NewIssueDeviceControlRequest ¶
func NewIssueDeviceControlRequest() (request *IssueDeviceControlRequest)
func (*IssueDeviceControlRequest) FromJsonString ¶
func (r *IssueDeviceControlRequest) FromJsonString(s string) error
func (*IssueDeviceControlRequest) ToJsonString ¶
func (r *IssueDeviceControlRequest) ToJsonString() string
type IssueDeviceControlResponse ¶
type IssueDeviceControlResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewIssueDeviceControlResponse ¶
func NewIssueDeviceControlResponse() (response *IssueDeviceControlResponse)
func (*IssueDeviceControlResponse) FromJsonString ¶
func (r *IssueDeviceControlResponse) FromJsonString(s string) error
func (*IssueDeviceControlResponse) ToJsonString ¶
func (r *IssueDeviceControlResponse) ToJsonString() string
type Product ¶
type Product struct { // 产品Id ProductId *string `json:"ProductId" name:"ProductId"` // 产品Key ProductKey *string `json:"ProductKey" name:"ProductKey"` // 产品直连密钥 ProductSecret *string `json:"ProductSecret" name:"ProductSecret"` // AppId AppId *uint64 `json:"AppId" name:"AppId"` // 产品名称 Name *string `json:"Name" name:"Name"` // 产品描述 Description *string `json:"Description" name:"Description"` // 连接域名 Domain *string `json:"Domain" name:"Domain"` // 产品规格 Standard *uint64 `json:"Standard" name:"Standard"` // 鉴权类型(0:直连,1:Token) AuthType *uint64 `json:"AuthType" name:"AuthType"` // 删除(0未删除) Deleted *uint64 `json:"Deleted" name:"Deleted"` // 备注 Message *string `json:"Message" name:"Message"` // 创建时间 CreateTime *string `json:"CreateTime" name:"CreateTime"` // 更新时间 UpdateTime *string `json:"UpdateTime" name:"UpdateTime"` // 数据模版 DataTemplate *Object `json:"DataTemplate" name:"DataTemplate"` }
type PublishMsgRequest ¶
type PublishMsgRequest struct { *tchttp.BaseRequest // Topic Topic *string `json:"Topic" name:"Topic"` // 消息内容 Message *string `json:"Message" name:"Message"` // Qos(目前QoS支持0与1) Qos *int64 `json:"Qos" name:"Qos"` }
func NewPublishMsgRequest ¶
func NewPublishMsgRequest() (request *PublishMsgRequest)
func (*PublishMsgRequest) FromJsonString ¶
func (r *PublishMsgRequest) FromJsonString(s string) error
func (*PublishMsgRequest) ToJsonString ¶
func (r *PublishMsgRequest) ToJsonString() string
type PublishMsgResponse ¶
type PublishMsgResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewPublishMsgResponse ¶
func NewPublishMsgResponse() (response *PublishMsgResponse)
func (*PublishMsgResponse) FromJsonString ¶
func (r *PublishMsgResponse) FromJsonString(s string) error
func (*PublishMsgResponse) ToJsonString ¶
func (r *PublishMsgResponse) ToJsonString() string
type ResetDeviceRequest ¶
type ResetDeviceRequest struct { *tchttp.BaseRequest // 产品Id ProductId *string `json:"ProductId" name:"ProductId"` // 设备名称 DeviceName *string `json:"DeviceName" name:"DeviceName"` }
func NewResetDeviceRequest ¶
func NewResetDeviceRequest() (request *ResetDeviceRequest)
func (*ResetDeviceRequest) FromJsonString ¶
func (r *ResetDeviceRequest) FromJsonString(s string) error
func (*ResetDeviceRequest) ToJsonString ¶
func (r *ResetDeviceRequest) ToJsonString() string
type ResetDeviceResponse ¶
type ResetDeviceResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewResetDeviceResponse ¶
func NewResetDeviceResponse() (response *ResetDeviceResponse)
func (*ResetDeviceResponse) FromJsonString ¶
func (r *ResetDeviceResponse) FromJsonString(s string) error
func (*ResetDeviceResponse) ToJsonString ¶
func (r *ResetDeviceResponse) ToJsonString() string
type Rule ¶
type Rule struct { // 规则Id RuleId *string `json:"RuleId" name:"RuleId"` // AppId AppId *uint64 `json:"AppId" name:"AppId"` // 名称 Name *string `json:"Name" name:"Name"` // 描述 Description *string `json:"Description" name:"Description"` // 查询 Query *RuleQuery `json:"Query" name:"Query"` // 转发 Actions []*Object `json:"Actions" name:"Actions" list` // 已启动 Active *uint64 `json:"Active" name:"Active"` // 已删除 Deleted *uint64 `json:"Deleted" name:"Deleted"` // 创建时间 CreateTime *string `json:"CreateTime" name:"CreateTime"` // 更新时间 UpdateTime *string `json:"UpdateTime" name:"UpdateTime"` }
type Topic ¶
type Topic struct { // TopicId TopicId *string `json:"TopicId" name:"TopicId"` // Topic名称 TopicName *string `json:"TopicName" name:"TopicName"` // 产品Id ProductId *string `json:"ProductId" name:"ProductId"` // 消息最大生命周期 MsgLife *uint64 `json:"MsgLife" name:"MsgLife"` // 消息最大大小 MsgSize *uint64 `json:"MsgSize" name:"MsgSize"` // 消息最大数量 MsgCount *uint64 `json:"MsgCount" name:"MsgCount"` // 已删除 Deleted *uint64 `json:"Deleted" name:"Deleted"` // Topic完整路径 Path *string `json:"Path" name:"Path"` // 创建时间 CreateTime *string `json:"CreateTime" name:"CreateTime"` // 更新时间 UpdateTime *string `json:"UpdateTime" name:"UpdateTime"` }
type UpdateProductRequest ¶
type UpdateProductRequest struct { *tchttp.BaseRequest // 产品Id ProductId *string `json:"ProductId" name:"ProductId"` // 产品名称 Name *string `json:"Name" name:"Name"` // 产品描述 Description *string `json:"Description" name:"Description"` // 数据模版(json) DataTemplate *string `json:"DataTemplate" name:"DataTemplate"` }
func NewUpdateProductRequest ¶
func NewUpdateProductRequest() (request *UpdateProductRequest)
func (*UpdateProductRequest) FromJsonString ¶
func (r *UpdateProductRequest) FromJsonString(s string) error
func (*UpdateProductRequest) ToJsonString ¶
func (r *UpdateProductRequest) ToJsonString() string
type UpdateProductResponse ¶
type UpdateProductResponse struct { *tchttp.BaseResponse Response *struct { // 更新后的产品信息 Product *Product `json:"Product" name:"Product"` // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewUpdateProductResponse ¶
func NewUpdateProductResponse() (response *UpdateProductResponse)
func (*UpdateProductResponse) FromJsonString ¶
func (r *UpdateProductResponse) FromJsonString(s string) error
func (*UpdateProductResponse) ToJsonString ¶
func (r *UpdateProductResponse) ToJsonString() string
type UpdateRuleRequest ¶
type UpdateRuleRequest struct { *tchttp.BaseRequest // 规则Id RuleId *string `json:"RuleId" name:"RuleId"` // 名称 Name *string `json:"Name" name:"Name"` // 描述 Description *string `json:"Description" name:"Description"` // 查询 Query *RuleQuery `json:"Query" name:"Query"` // 转发 Actions []*Object `json:"Actions" name:"Actions" list` }
func NewUpdateRuleRequest ¶
func NewUpdateRuleRequest() (request *UpdateRuleRequest)
func (*UpdateRuleRequest) FromJsonString ¶
func (r *UpdateRuleRequest) FromJsonString(s string) error
func (*UpdateRuleRequest) ToJsonString ¶
func (r *UpdateRuleRequest) ToJsonString() string
type UpdateRuleResponse ¶
type UpdateRuleResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。 RequestId *string `json:"RequestId" name:"RequestId"` } `json:"Response"` }
func NewUpdateRuleResponse ¶
func NewUpdateRuleResponse() (response *UpdateRuleResponse)
func (*UpdateRuleResponse) FromJsonString ¶
func (r *UpdateRuleResponse) FromJsonString(s string) error
func (*UpdateRuleResponse) ToJsonString ¶
func (r *UpdateRuleResponse) ToJsonString() string
type User ¶
type User struct { // app_id AppId *uint64 `json:"AppId" name:"AppId"` // 用户类型(1:国内,2:国际) Area *uint64 `json:"Area" name:"Area"` // 计费类型(日结、月结) BillingType *string `json:"BillingType" name:"BillingType"` // 用户状态(0:正常,1:欠费,2:恶意) Status *uint64 `json:"Status" name:"Status"` // 备注信息 Message *string `json:"Message" name:"Message"` // 创建时间 CreateTime *string `json:"CreateTime" name:"CreateTime"` // 修改时间 UpdateTime *string `json:"UpdateTime" name:"UpdateTime"` }