v20180614

package
v3.0.233+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2018-06-14"

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {

	// 属性列表
	Tags []*DeviceTag `json:"Tags,omitempty" name:"Tags" list`
}

type BatchPublishMessage

type BatchPublishMessage struct {

	// 消息发往的主题。为 Topic 权限中去除 ProductID 和 DeviceName 的部分,如 “event”
	Topic *string `json:"Topic,omitempty" name:"Topic"`

	// 消息内容
	Payload *string `json:"Payload,omitempty" name:"Payload"`
}

type BatchUpdateShadow

type BatchUpdateShadow struct {

	// 设备影子的期望状态,格式为 Json 对象序列化之后的字符串
	Desired *string `json:"Desired,omitempty" name:"Desired"`
}

type BindDevicesRequest

type BindDevicesRequest struct {
	*tchttp.BaseRequest

	// 网关设备的产品ID
	GatewayProductId *string `json:"GatewayProductId,omitempty" name:"GatewayProductId"`

	// 网关设备的设备名
	GatewayDeviceName *string `json:"GatewayDeviceName,omitempty" name:"GatewayDeviceName"`

	// 被绑定设备的产品ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 被绑定的多个设备名
	DeviceNames []*string `json:"DeviceNames,omitempty" name:"DeviceNames" list`

	// 中兴CLAA设备的绑定需要skey,普通的设备不需要
	Skey *string `json:"Skey,omitempty" name:"Skey"`
}

func NewBindDevicesRequest

func NewBindDevicesRequest() (request *BindDevicesRequest)

func (*BindDevicesRequest) FromJsonString

func (r *BindDevicesRequest) FromJsonString(s string) error

func (*BindDevicesRequest) ToJsonString

func (r *BindDevicesRequest) ToJsonString() string

type BindDevicesResponse

type BindDevicesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewBindDevicesResponse

func NewBindDevicesResponse() (response *BindDevicesResponse)

func (*BindDevicesResponse) FromJsonString

func (r *BindDevicesResponse) FromJsonString(s string) error

func (*BindDevicesResponse) ToJsonString

func (r *BindDevicesResponse) ToJsonString() string

type BrokerSubscribe

type BrokerSubscribe struct {

	// 产品ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 设备名
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
}

type CancelTaskRequest

type CancelTaskRequest struct {
	*tchttp.BaseRequest

	// 任务 ID
	Id *string `json:"Id,omitempty" name:"Id"`
}

func NewCancelTaskRequest

func NewCancelTaskRequest() (request *CancelTaskRequest)

func (*CancelTaskRequest) FromJsonString

func (r *CancelTaskRequest) FromJsonString(s string) error

func (*CancelTaskRequest) ToJsonString

func (r *CancelTaskRequest) ToJsonString() string

type CancelTaskResponse

type CancelTaskResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCancelTaskResponse

func NewCancelTaskResponse() (response *CancelTaskResponse)

func (*CancelTaskResponse) FromJsonString

func (r *CancelTaskResponse) FromJsonString(s string) error

func (*CancelTaskResponse) ToJsonString

func (r *CancelTaskResponse) ToJsonString() string

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) BindDevices

func (c *Client) BindDevices(request *BindDevicesRequest) (response *BindDevicesResponse, err error)

本接口(BindDevices)用于网关设备批量绑定子设备

func (*Client) CancelTask

func (c *Client) CancelTask(request *CancelTaskRequest) (response *CancelTaskResponse, err error)

本接口(CancelTask)用于取消一个未被调度的任务。

func (*Client) CreateDevice

func (c *Client) CreateDevice(request *CreateDeviceRequest) (response *CreateDeviceResponse, err error)

本接口(CreateDevice)用于新建一个物联网通信设备。

func (*Client) CreateLoraDevice

func (c *Client) CreateLoraDevice(request *CreateLoraDeviceRequest) (response *CreateLoraDeviceResponse, err error)

创建lora类型的设备

func (*Client) CreateMultiDevice

func (c *Client) CreateMultiDevice(request *CreateMultiDeviceRequest) (response *CreateMultiDeviceResponse, err error)

本接口(CreateMultiDevice)用于批量创建物联云设备。

func (*Client) CreateMultiDevicesTask

func (c *Client) CreateMultiDevicesTask(request *CreateMultiDevicesTaskRequest) (response *CreateMultiDevicesTaskResponse, err error)

本接口(CreateMultiDevicesTask)用于创建产品级别的批量创建设备任务

func (*Client) CreateProduct

func (c *Client) CreateProduct(request *CreateProductRequest) (response *CreateProductResponse, err error)

本接口(CreateProduct)用于创建一个新的物联网通信产品

func (*Client) CreateTask

func (c *Client) CreateTask(request *CreateTaskRequest) (response *CreateTaskResponse, err error)

本接口(CreateTask)用于创建一个批量任务。目前此接口可以创建批量更新影子以及批量下发消息的任务

func (*Client) CreateTaskFileUrl

func (c *Client) CreateTaskFileUrl(request *CreateTaskFileUrlRequest) (response *CreateTaskFileUrlResponse, err error)

本接口(CreateTaskFileUrl)用于获取产品级任务文件上传链接

func (*Client) CreateTopicPolicy

func (c *Client) CreateTopicPolicy(request *CreateTopicPolicyRequest) (response *CreateTopicPolicyResponse, err error)

本接口(CreateTopicPolicy)用于创建一个Topic

func (*Client) CreateTopicRule

func (c *Client) CreateTopicRule(request *CreateTopicRuleRequest) (response *CreateTopicRuleResponse, err error)

本接口(CreateTopicRule)用于创建一个规则

func (*Client) DeleteDevice

func (c *Client) DeleteDevice(request *DeleteDeviceRequest) (response *DeleteDeviceResponse, err error)

本接口(DeleteDevice)用于删除物联网通信设备。

func (*Client) DeleteLoraDevice

func (c *Client) DeleteLoraDevice(request *DeleteLoraDeviceRequest) (response *DeleteLoraDeviceResponse, err error)

删除lora类型的设备

func (*Client) DeleteProduct

func (c *Client) DeleteProduct(request *DeleteProductRequest) (response *DeleteProductResponse, err error)

本接口(DeleteProduct)用于删除一个物联网通信产品

func (*Client) DeleteTopicRule

func (c *Client) DeleteTopicRule(request *DeleteTopicRuleRequest) (response *DeleteTopicRuleResponse, err error)

本接口(DeleteTopicRule)用于删除规则

func (*Client) DescribeDevice

func (c *Client) DescribeDevice(request *DescribeDeviceRequest) (response *DescribeDeviceResponse, err error)

本接口(DescribeDevice)用于查看设备信息

func (*Client) DescribeDeviceClientKey

func (c *Client) DescribeDeviceClientKey(request *DescribeDeviceClientKeyRequest) (response *DescribeDeviceClientKeyResponse, err error)

获取证书认证类型设备的私钥,刚生成或者重置设备后仅可调用一次

func (*Client) DescribeDeviceShadow

func (c *Client) DescribeDeviceShadow(request *DescribeDeviceShadowRequest) (response *DescribeDeviceShadowResponse, err error)

本接口(DescribeDeviceShadow)用于查询虚拟设备信息。

func (*Client) DescribeDevices

func (c *Client) DescribeDevices(request *DescribeDevicesRequest) (response *DescribeDevicesResponse, err error)

本接口(DescribeDevices)用于查询物联网通信设备的设备列表。

func (*Client) DescribeLoraDevice

func (c *Client) DescribeLoraDevice(request *DescribeLoraDeviceRequest) (response *DescribeLoraDeviceResponse, err error)

获取lora类型设备的详细信息

func (*Client) DescribeMultiDevTask

func (c *Client) DescribeMultiDevTask(request *DescribeMultiDevTaskRequest) (response *DescribeMultiDevTaskResponse, err error)

本接口(DescribeMultiDevTask)用于查询批量创建设备任务的执行状态。

func (*Client) DescribeMultiDevices

func (c *Client) DescribeMultiDevices(request *DescribeMultiDevicesRequest) (response *DescribeMultiDevicesResponse, err error)

本接口(DescribeMultiDevices)用于查询批量创建设备的执行结果。

func (*Client) DescribeProductTask

func (c *Client) DescribeProductTask(request *DescribeProductTaskRequest) (response *DescribeProductTaskResponse, err error)

本接口(DescribeProductTask)用于查看产品级别的任务信息

func (*Client) DescribeProductTasks

func (c *Client) DescribeProductTasks(request *DescribeProductTasksRequest) (response *DescribeProductTasksResponse, err error)

本接口(DescribeProductTasks)用于查看产品级别的任务列表

func (*Client) DescribeProducts

func (c *Client) DescribeProducts(request *DescribeProductsRequest) (response *DescribeProductsResponse, err error)

本接口(DescribeProducts)用于列出产品列表。

func (*Client) DescribeTask

func (c *Client) DescribeTask(request *DescribeTaskRequest) (response *DescribeTaskResponse, err error)

本接口(DescribeTask)用于查询一个已创建任务的详情,任务保留一个月

func (*Client) DescribeTasks

func (c *Client) DescribeTasks(request *DescribeTasksRequest) (response *DescribeTasksResponse, err error)

本接口(DescribeTasks)用于查询已创建的任务列表,任务保留一个月

func (*Client) DisableTopicRule

func (c *Client) DisableTopicRule(request *DisableTopicRuleRequest) (response *DisableTopicRuleResponse, err error)

本接口(DisableTopicRule)用于禁用规则

func (*Client) EnableTopicRule

func (c *Client) EnableTopicRule(request *EnableTopicRuleRequest) (response *EnableTopicRuleResponse, err error)

本接口(EnableTopicRule)用于启用规则

func (*Client) PublishAsDevice

func (c *Client) PublishAsDevice(request *PublishAsDeviceRequest) (response *PublishAsDeviceResponse, err error)

模拟lora类型的设备端向服务器端发送消息

func (*Client) PublishBroadcastMessage

func (c *Client) PublishBroadcastMessage(request *PublishBroadcastMessageRequest) (response *PublishBroadcastMessageResponse, err error)

发布广播消息

func (*Client) PublishMessage

func (c *Client) PublishMessage(request *PublishMessageRequest) (response *PublishMessageResponse, err error)

本接口(PublishMessage)用于向某个主题发消息。

func (*Client) PublishRRPCMessage

func (c *Client) PublishRRPCMessage(request *PublishRRPCMessageRequest) (response *PublishRRPCMessageResponse, err error)

发布RRPC消息

func (*Client) PublishToDevice

func (c *Client) PublishToDevice(request *PublishToDeviceRequest) (response *PublishToDeviceResponse, err error)

服务器端下发消息给lora类型的设备

func (*Client) ReplaceTopicRule

func (c *Client) ReplaceTopicRule(request *ReplaceTopicRuleRequest) (response *ReplaceTopicRuleResponse, err error)

本接口(ReplaceTopicRule)用于修改替换规则

func (*Client) ResetDeviceState

func (c *Client) ResetDeviceState(request *ResetDeviceStateRequest) (response *ResetDeviceStateResponse, err error)

重置设备的连接状态

func (*Client) UnbindDevices

func (c *Client) UnbindDevices(request *UnbindDevicesRequest) (response *UnbindDevicesResponse, err error)

本接口(UnbindDevices)用于网关设备批量解绑子设备

func (*Client) UpdateDeviceAvailableState

func (c *Client) UpdateDeviceAvailableState(request *UpdateDeviceAvailableStateRequest) (response *UpdateDeviceAvailableStateResponse, err error)

启用或者禁用设备

func (*Client) UpdateDeviceShadow

func (c *Client) UpdateDeviceShadow(request *UpdateDeviceShadowRequest) (response *UpdateDeviceShadowResponse, err error)

本接口(UpdateDeviceShadow)用于更新虚拟设备信息。

func (*Client) UpdateTopicPolicy

func (c *Client) UpdateTopicPolicy(request *UpdateTopicPolicyRequest) (response *UpdateTopicPolicyResponse, err error)

本接口(UpdateTopicPolicy)用于更新Topic信息

type CreateDeviceRequest

type CreateDeviceRequest struct {
	*tchttp.BaseRequest

	// 产品 ID 。创建产品时腾讯云为用户分配全局唯一的 ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 设备名称。命名规则:[a-zA-Z0-9:_-]{1,48}。
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

	// 设备属性
	Attribute *Attribute `json:"Attribute,omitempty" name:"Attribute"`

	// 是否使用自定义PSK,默认不使用
	DefinedPsk *string `json:"DefinedPsk,omitempty" name:"DefinedPsk"`

	// 运营商类型,当产品是NB-IoT产品时,此字段必填。1表示中国电信,2表示中国移动,3表示中国联通
	Isp *uint64 `json:"Isp,omitempty" name:"Isp"`

	// IMEI,当产品是NB-IoT产品时,此字段必填
	Imei *string `json:"Imei,omitempty" name:"Imei"`

	// LoRa设备的DevEui,当创建LoRa时,此字段必填
	LoraDevEui *string `json:"LoraDevEui,omitempty" name:"LoraDevEui"`

	// LoRa设备的MoteType
	LoraMoteType *uint64 `json:"LoraMoteType,omitempty" name:"LoraMoteType"`

	// 创建LoRa设备需要skey
	Skey *string `json:"Skey,omitempty" name:"Skey"`

	// LoRa设备的AppKey
	LoraAppKey *string `json:"LoraAppKey,omitempty" name:"LoraAppKey"`
}

func NewCreateDeviceRequest

func NewCreateDeviceRequest() (request *CreateDeviceRequest)

func (*CreateDeviceRequest) FromJsonString

func (r *CreateDeviceRequest) FromJsonString(s string) error

func (*CreateDeviceRequest) ToJsonString

func (r *CreateDeviceRequest) ToJsonString() string

type CreateDeviceResponse

type CreateDeviceResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 设备名称
		DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

		// 对称加密密钥,base64编码。采用对称加密时返回该参数
		DevicePsk *string `json:"DevicePsk,omitempty" name:"DevicePsk"`

		// 设备证书,用于 TLS 建立链接时校验客户端身份。采用非对称加密时返回该参数
		DeviceCert *string `json:"DeviceCert,omitempty" name:"DeviceCert"`

		// 设备私钥,用于 TLS 建立链接时校验客户端身份,腾讯云后台不保存,请妥善保管。采用非对称加密时返回该参数
		DevicePrivateKey *string `json:"DevicePrivateKey,omitempty" name:"DevicePrivateKey"`

		// LoRa设备的DevEui,当设备是LoRa设备时,会返回该字段
		LoraDevEui *string `json:"LoraDevEui,omitempty" name:"LoraDevEui"`

		// LoRa设备的MoteType,当设备是LoRa设备时,会返回该字段
		LoraMoteType *uint64 `json:"LoraMoteType,omitempty" name:"LoraMoteType"`

		// LoRa设备的AppKey,当设备是LoRa设备时,会返回该字段
		LoraAppKey *string `json:"LoraAppKey,omitempty" name:"LoraAppKey"`

		// LoRa设备的NwkKey,当设备是LoRa设备时,会返回该字段
		LoraNwkKey *string `json:"LoraNwkKey,omitempty" name:"LoraNwkKey"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateDeviceResponse

func NewCreateDeviceResponse() (response *CreateDeviceResponse)

func (*CreateDeviceResponse) FromJsonString

func (r *CreateDeviceResponse) FromJsonString(s string) error

func (*CreateDeviceResponse) ToJsonString

func (r *CreateDeviceResponse) ToJsonString() string

type CreateLoraDeviceRequest

type CreateLoraDeviceRequest struct {
	*tchttp.BaseRequest

	// 产品 ID ,创建产品时腾讯云为用户分配全局唯一的 ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 设备名称
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

	// 设备类型 ,目前支持A、B、C三种
	DeviceType *string `json:"DeviceType,omitempty" name:"DeviceType"`

	// LoRa应用UUID
	AppEui *string `json:"AppEui,omitempty" name:"AppEui"`

	// LoRa设备UUID
	DeviceEui *string `json:"DeviceEui,omitempty" name:"DeviceEui"`

	// LoRa应用密钥
	AppKey *string `json:"AppKey,omitempty" name:"AppKey"`

	// LoRa设备验证密钥
	AuthKey *string `json:"AuthKey,omitempty" name:"AuthKey"`

	// 设备备注
	Memo *string `json:"Memo,omitempty" name:"Memo"`
}

func NewCreateLoraDeviceRequest

func NewCreateLoraDeviceRequest() (request *CreateLoraDeviceRequest)

func (*CreateLoraDeviceRequest) FromJsonString

func (r *CreateLoraDeviceRequest) FromJsonString(s string) error

func (*CreateLoraDeviceRequest) ToJsonString

func (r *CreateLoraDeviceRequest) ToJsonString() string

type CreateLoraDeviceResponse

type CreateLoraDeviceResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// LoRa应用UUID
		AppEui *string `json:"AppEui,omitempty" name:"AppEui"`

		// LoRa设备UUID
		DeviceEui *string `json:"DeviceEui,omitempty" name:"DeviceEui"`

		// 设备类型,目前支持A、B、C三种
		ClassType *string `json:"ClassType,omitempty" name:"ClassType"`

		// 设备名称
		DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateLoraDeviceResponse

func NewCreateLoraDeviceResponse() (response *CreateLoraDeviceResponse)

func (*CreateLoraDeviceResponse) FromJsonString

func (r *CreateLoraDeviceResponse) FromJsonString(s string) error

func (*CreateLoraDeviceResponse) ToJsonString

func (r *CreateLoraDeviceResponse) ToJsonString() string

type CreateMultiDeviceRequest

type CreateMultiDeviceRequest struct {
	*tchttp.BaseRequest

	// 产品 ID。创建产品时腾讯云为用户分配全局唯一的 ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 批量创建的设备名数组,单次最多创建 100 个设备。命名规则:[a-zA-Z0-9:_-]{1,48}
	DeviceNames []*string `json:"DeviceNames,omitempty" name:"DeviceNames" list`
}

func NewCreateMultiDeviceRequest

func NewCreateMultiDeviceRequest() (request *CreateMultiDeviceRequest)

func (*CreateMultiDeviceRequest) FromJsonString

func (r *CreateMultiDeviceRequest) FromJsonString(s string) error

func (*CreateMultiDeviceRequest) ToJsonString

func (r *CreateMultiDeviceRequest) ToJsonString() string

type CreateMultiDeviceResponse

type CreateMultiDeviceResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 任务ID,腾讯云生成全局唯一的任务 ID,有效期一个月,一个月之后任务失效。可以调用获取创建多设备任务状态接口获取该任务的执行状态,当状态为成功时,可以调用获取创建多设备任务结果接口获取该任务的结果
		TaskId *string `json:"TaskId,omitempty" name:"TaskId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateMultiDeviceResponse

func NewCreateMultiDeviceResponse() (response *CreateMultiDeviceResponse)

func (*CreateMultiDeviceResponse) FromJsonString

func (r *CreateMultiDeviceResponse) FromJsonString(s string) error

func (*CreateMultiDeviceResponse) ToJsonString

func (r *CreateMultiDeviceResponse) ToJsonString() string

type CreateMultiDevicesTaskRequest

type CreateMultiDevicesTaskRequest struct {
	*tchttp.BaseRequest

	// 产品ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 参数类型 cosfile-文件上传 random-随机创建
	ParametersType *string `json:"ParametersType,omitempty" name:"ParametersType"`

	// 文件上传类型时文件名
	FileName *string `json:"FileName,omitempty" name:"FileName"`

	// 文件上传类型时文件大小
	FileSize *uint64 `json:"FileSize,omitempty" name:"FileSize"`

	// 随机创建时设备创建个数
	BatchCount *uint64 `json:"BatchCount,omitempty" name:"BatchCount"`

	// 文件上传类型时文件md5值
	Hash *string `json:"Hash,omitempty" name:"Hash"`
}

func NewCreateMultiDevicesTaskRequest

func NewCreateMultiDevicesTaskRequest() (request *CreateMultiDevicesTaskRequest)

func (*CreateMultiDevicesTaskRequest) FromJsonString

func (r *CreateMultiDevicesTaskRequest) FromJsonString(s string) error

func (*CreateMultiDevicesTaskRequest) ToJsonString

func (r *CreateMultiDevicesTaskRequest) ToJsonString() string

type CreateMultiDevicesTaskResponse

type CreateMultiDevicesTaskResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 任务ID
		Id *uint64 `json:"Id,omitempty" name:"Id"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateMultiDevicesTaskResponse

func NewCreateMultiDevicesTaskResponse() (response *CreateMultiDevicesTaskResponse)

func (*CreateMultiDevicesTaskResponse) FromJsonString

func (r *CreateMultiDevicesTaskResponse) FromJsonString(s string) error

func (*CreateMultiDevicesTaskResponse) ToJsonString

func (r *CreateMultiDevicesTaskResponse) ToJsonString() string

type CreateProductRequest

type CreateProductRequest struct {
	*tchttp.BaseRequest

	// 产品名称,名称不能和已经存在的产品名称重复。命名规则:[a-zA-Z0-9:_-]{1,32}
	ProductName *string `json:"ProductName,omitempty" name:"ProductName"`

	// 产品属性
	ProductProperties *ProductProperties `json:"ProductProperties,omitempty" name:"ProductProperties"`

	// 创建CLAA产品时,需要Skey
	Skey *string `json:"Skey,omitempty" name:"Skey"`
}

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 {

		// 产品名称
		ProductName *string `json:"ProductName,omitempty" name:"ProductName"`

		// 产品 ID,腾讯云生成全局唯一 ID
		ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

		// 产品属性
		ProductProperties *ProductProperties `json:"ProductProperties,omitempty" name:"ProductProperties"`

		// 唯一请求 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 CreateTaskFileUrlRequest

type CreateTaskFileUrlRequest struct {
	*tchttp.BaseRequest

	// 产品ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
}

func NewCreateTaskFileUrlRequest

func NewCreateTaskFileUrlRequest() (request *CreateTaskFileUrlRequest)

func (*CreateTaskFileUrlRequest) FromJsonString

func (r *CreateTaskFileUrlRequest) FromJsonString(s string) error

func (*CreateTaskFileUrlRequest) ToJsonString

func (r *CreateTaskFileUrlRequest) ToJsonString() string

type CreateTaskFileUrlResponse

type CreateTaskFileUrlResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 任务文件上传链接
		Url *string `json:"Url,omitempty" name:"Url"`

		// 任务文件名
		FileName *string `json:"FileName,omitempty" name:"FileName"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateTaskFileUrlResponse

func NewCreateTaskFileUrlResponse() (response *CreateTaskFileUrlResponse)

func (*CreateTaskFileUrlResponse) FromJsonString

func (r *CreateTaskFileUrlResponse) FromJsonString(s string) error

func (*CreateTaskFileUrlResponse) ToJsonString

func (r *CreateTaskFileUrlResponse) ToJsonString() string

type CreateTaskRequest

type CreateTaskRequest struct {
	*tchttp.BaseRequest

	// 任务类型,取值为 “UpdateShadow” 或者 “PublishMessage”
	TaskType *string `json:"TaskType,omitempty" name:"TaskType"`

	// 执行任务的产品ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 执行任务的设备名的正则表达式
	DeviceNameFilter *string `json:"DeviceNameFilter,omitempty" name:"DeviceNameFilter"`

	// 任务开始执行的时间。 取值为 Unix 时间戳,单位秒,且需大于等于当前时间时间戳,0为系统当前时间时间戳,即立即执行,最大为当前时间86400秒后,超过则取值为当前时间86400秒后
	ScheduleTimeInSeconds *uint64 `json:"ScheduleTimeInSeconds,omitempty" name:"ScheduleTimeInSeconds"`

	// 任务描述细节,描述见下 Task
	Tasks *Task `json:"Tasks,omitempty" name:"Tasks"`

	// 最长执行时间,单位秒,被调度后超过此时间仍未有结果则视为任务失败。取值为0-86400,默认为86400
	MaxExecutionTimeInSeconds *uint64 `json:"MaxExecutionTimeInSeconds,omitempty" name:"MaxExecutionTimeInSeconds"`
}

func NewCreateTaskRequest

func NewCreateTaskRequest() (request *CreateTaskRequest)

func (*CreateTaskRequest) FromJsonString

func (r *CreateTaskRequest) FromJsonString(s string) error

func (*CreateTaskRequest) ToJsonString

func (r *CreateTaskRequest) ToJsonString() string

type CreateTaskResponse

type CreateTaskResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 创建的任务ID
		TaskId *string `json:"TaskId,omitempty" name:"TaskId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateTaskResponse

func NewCreateTaskResponse() (response *CreateTaskResponse)

func (*CreateTaskResponse) FromJsonString

func (r *CreateTaskResponse) FromJsonString(s string) error

func (*CreateTaskResponse) ToJsonString

func (r *CreateTaskResponse) ToJsonString() string

type CreateTopicPolicyRequest

type CreateTopicPolicyRequest struct {
	*tchttp.BaseRequest

	// 产品自身ID
	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`

	// Topic名称
	TopicName *string `json:"TopicName,omitempty" name:"TopicName"`

	// Topic权限,1发布,2订阅,3订阅和发布
	Privilege *uint64 `json:"Privilege,omitempty" name:"Privilege"`

	// 代理订阅信息,网关产品为绑定的子产品创建topic时需要填写,内容为子产品的ID和设备信息。
	BrokerSubscribe *BrokerSubscribe `json:"BrokerSubscribe,omitempty" name:"BrokerSubscribe"`
}

func NewCreateTopicPolicyRequest

func NewCreateTopicPolicyRequest() (request *CreateTopicPolicyRequest)

func (*CreateTopicPolicyRequest) FromJsonString

func (r *CreateTopicPolicyRequest) FromJsonString(s string) error

func (*CreateTopicPolicyRequest) ToJsonString

func (r *CreateTopicPolicyRequest) ToJsonString() string

type CreateTopicPolicyResponse

type CreateTopicPolicyResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateTopicPolicyResponse

func NewCreateTopicPolicyResponse() (response *CreateTopicPolicyResponse)

func (*CreateTopicPolicyResponse) FromJsonString

func (r *CreateTopicPolicyResponse) FromJsonString(s string) error

func (*CreateTopicPolicyResponse) ToJsonString

func (r *CreateTopicPolicyResponse) ToJsonString() string

type CreateTopicRuleRequest

type CreateTopicRuleRequest struct {
	*tchttp.BaseRequest

	// 规则名称
	RuleName *string `json:"RuleName,omitempty" name:"RuleName"`

	// 规则内容
	TopicRulePayload *TopicRulePayload `json:"TopicRulePayload,omitempty" name:"TopicRulePayload"`
}

func NewCreateTopicRuleRequest

func NewCreateTopicRuleRequest() (request *CreateTopicRuleRequest)

func (*CreateTopicRuleRequest) FromJsonString

func (r *CreateTopicRuleRequest) FromJsonString(s string) error

func (*CreateTopicRuleRequest) ToJsonString

func (r *CreateTopicRuleRequest) ToJsonString() string

type CreateTopicRuleResponse

type CreateTopicRuleResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateTopicRuleResponse

func NewCreateTopicRuleResponse() (response *CreateTopicRuleResponse)

func (*CreateTopicRuleResponse) FromJsonString

func (r *CreateTopicRuleResponse) FromJsonString(s string) error

func (*CreateTopicRuleResponse) ToJsonString

func (r *CreateTopicRuleResponse) ToJsonString() string

type DeleteDeviceRequest

type DeleteDeviceRequest struct {
	*tchttp.BaseRequest

	// 设备所属的产品 ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 需要删除的设备名称
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

	// 删除LoRa设备以及LoRa网关设备需要skey
	Skey *string `json:"Skey,omitempty" name:"Skey"`
}

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 DeleteLoraDeviceRequest

type DeleteLoraDeviceRequest struct {
	*tchttp.BaseRequest

	// 设备所属产品ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 设备名称
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
}

func NewDeleteLoraDeviceRequest

func NewDeleteLoraDeviceRequest() (request *DeleteLoraDeviceRequest)

func (*DeleteLoraDeviceRequest) FromJsonString

func (r *DeleteLoraDeviceRequest) FromJsonString(s string) error

func (*DeleteLoraDeviceRequest) ToJsonString

func (r *DeleteLoraDeviceRequest) ToJsonString() string

type DeleteLoraDeviceResponse

type DeleteLoraDeviceResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteLoraDeviceResponse

func NewDeleteLoraDeviceResponse() (response *DeleteLoraDeviceResponse)

func (*DeleteLoraDeviceResponse) FromJsonString

func (r *DeleteLoraDeviceResponse) FromJsonString(s string) error

func (*DeleteLoraDeviceResponse) ToJsonString

func (r *DeleteLoraDeviceResponse) ToJsonString() string

type DeleteProductRequest

type DeleteProductRequest struct {
	*tchttp.BaseRequest

	// 需要删除的产品 ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 删除LoRa产品需要skey
	Skey *string `json:"Skey,omitempty" name:"Skey"`
}

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 DeleteTopicRuleRequest

type DeleteTopicRuleRequest struct {
	*tchttp.BaseRequest

	// 规则名
	RuleName *string `json:"RuleName,omitempty" name:"RuleName"`
}

func NewDeleteTopicRuleRequest

func NewDeleteTopicRuleRequest() (request *DeleteTopicRuleRequest)

func (*DeleteTopicRuleRequest) FromJsonString

func (r *DeleteTopicRuleRequest) FromJsonString(s string) error

func (*DeleteTopicRuleRequest) ToJsonString

func (r *DeleteTopicRuleRequest) ToJsonString() string

type DeleteTopicRuleResponse

type DeleteTopicRuleResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteTopicRuleResponse

func NewDeleteTopicRuleResponse() (response *DeleteTopicRuleResponse)

func (*DeleteTopicRuleResponse) FromJsonString

func (r *DeleteTopicRuleResponse) FromJsonString(s string) error

func (*DeleteTopicRuleResponse) ToJsonString

func (r *DeleteTopicRuleResponse) ToJsonString() string

type DescribeDeviceClientKeyRequest

type DescribeDeviceClientKeyRequest struct {
	*tchttp.BaseRequest

	// 所属产品的Id
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 设备名称
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
}

func NewDescribeDeviceClientKeyRequest

func NewDescribeDeviceClientKeyRequest() (request *DescribeDeviceClientKeyRequest)

func (*DescribeDeviceClientKeyRequest) FromJsonString

func (r *DescribeDeviceClientKeyRequest) FromJsonString(s string) error

func (*DescribeDeviceClientKeyRequest) ToJsonString

func (r *DescribeDeviceClientKeyRequest) ToJsonString() string

type DescribeDeviceClientKeyResponse

type DescribeDeviceClientKeyResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 设备的私钥
		ClientKey *string `json:"ClientKey,omitempty" name:"ClientKey"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeDeviceClientKeyResponse

func NewDescribeDeviceClientKeyResponse() (response *DescribeDeviceClientKeyResponse)

func (*DescribeDeviceClientKeyResponse) FromJsonString

func (r *DescribeDeviceClientKeyResponse) FromJsonString(s string) error

func (*DescribeDeviceClientKeyResponse) ToJsonString

func (r *DescribeDeviceClientKeyResponse) ToJsonString() string

type DescribeDeviceRequest

type DescribeDeviceRequest struct {
	*tchttp.BaseRequest

	// 产品ID
	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`

	// 设备名
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
}

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 {

		// 设备名
		DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

		// 设备是否在线,0不在线,1在线
		Online *uint64 `json:"Online,omitempty" name:"Online"`

		// 设备登录时间
		LoginTime *uint64 `json:"LoginTime,omitempty" name:"LoginTime"`

		// 设备固件版本
		Version *string `json:"Version,omitempty" name:"Version"`

		// 设备最后更新时间
		LastUpdateTime *uint64 `json:"LastUpdateTime,omitempty" name:"LastUpdateTime"`

		// 设备证书
		DeviceCert *string `json:"DeviceCert,omitempty" name:"DeviceCert"`

		// 设备密钥
		DevicePsk *string `json:"DevicePsk,omitempty" name:"DevicePsk"`

		// 设备属性
		Tags []*DeviceTag `json:"Tags,omitempty" name:"Tags" list`

		// 设备类型
		DeviceType *uint64 `json:"DeviceType,omitempty" name:"DeviceType"`

		// 国际移动设备识别码 IMEI
		Imei *string `json:"Imei,omitempty" name:"Imei"`

		// 运营商类型
		Isp *uint64 `json:"Isp,omitempty" name:"Isp"`

		// IP地址
		ConnIP *uint64 `json:"ConnIP,omitempty" name:"ConnIP"`

		// NB IoT运营商处的DeviceID
		NbiotDeviceID *string `json:"NbiotDeviceID,omitempty" name:"NbiotDeviceID"`

		// Lora设备的dev eui
		LoraDevEui *string `json:"LoraDevEui,omitempty" name:"LoraDevEui"`

		// Lora设备的mote type
		LoraMoteType *uint64 `json:"LoraMoteType,omitempty" name:"LoraMoteType"`

		// 设备的sdk日志等级
		// 注意:此字段可能返回 null,表示取不到有效值。
		LogLevel *uint64 `json:"LogLevel,omitempty" name:"LogLevel"`

		// 首次上线时间
		// 注意:此字段可能返回 null,表示取不到有效值。
		FirstOnlineTime *uint64 `json:"FirstOnlineTime,omitempty" name:"FirstOnlineTime"`

		// 最近下线时间
		// 注意:此字段可能返回 null,表示取不到有效值。
		LastOfflineTime *uint64 `json:"LastOfflineTime,omitempty" name:"LastOfflineTime"`

		// 设备创建时间
		// 注意:此字段可能返回 null,表示取不到有效值。
		CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"`

		// 设备证书获取状态,0 未获取过设备密钥, 1 已获取过设备密钥
		// 注意:此字段可能返回 null,表示取不到有效值。
		CertState *uint64 `json:"CertState,omitempty" name:"CertState"`

		// 设备启用状态
		// 注意:此字段可能返回 null,表示取不到有效值。
		EnableState *uint64 `json:"EnableState,omitempty" name:"EnableState"`

		// 设备标签
		// 注意:此字段可能返回 null,表示取不到有效值。
		Labels []*DeviceLabel `json:"Labels,omitempty" name:"Labels" list`

		// MQTT客户端IP地址
		// 注意:此字段可能返回 null,表示取不到有效值。
		ClientIP *string `json:"ClientIP,omitempty" name:"ClientIP"`

		// 设备固件更新时间
		// 注意:此字段可能返回 null,表示取不到有效值。
		FirmwareUpdateTime *uint64 `json:"FirmwareUpdateTime,omitempty" name:"FirmwareUpdateTime"`

		// 唯一请求 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 DescribeDeviceShadowRequest

type DescribeDeviceShadowRequest struct {
	*tchttp.BaseRequest

	// 产品 ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 设备名称。命名规则:[a-zA-Z0-9:_-]{1,48}
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
}

func NewDescribeDeviceShadowRequest

func NewDescribeDeviceShadowRequest() (request *DescribeDeviceShadowRequest)

func (*DescribeDeviceShadowRequest) FromJsonString

func (r *DescribeDeviceShadowRequest) FromJsonString(s string) error

func (*DescribeDeviceShadowRequest) ToJsonString

func (r *DescribeDeviceShadowRequest) ToJsonString() string

type DescribeDeviceShadowResponse

type DescribeDeviceShadowResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 设备影子数据
		Data *string `json:"Data,omitempty" name:"Data"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeDeviceShadowResponse

func NewDescribeDeviceShadowResponse() (response *DescribeDeviceShadowResponse)

func (*DescribeDeviceShadowResponse) FromJsonString

func (r *DescribeDeviceShadowResponse) FromJsonString(s string) error

func (*DescribeDeviceShadowResponse) ToJsonString

func (r *DescribeDeviceShadowResponse) ToJsonString() string

type DescribeDevicesRequest

type DescribeDevicesRequest struct {
	*tchttp.BaseRequest

	// 需要查看设备列表的产品 ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 偏移量,Offset从0开始
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`

	// 分页的大小,数值范围 10-250
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`

	// 设备固件版本号,若不带此参数会返回所有固件版本的设备。传"None-FirmwareVersion"查询无版本号的设备
	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`

	// 需要过滤的设备名称
	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 {

		// 设备总数
		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 设备详细信息列表
		Devices []*DeviceInfo `json:"Devices,omitempty" name:"Devices" list`

		// 唯一请求 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 DescribeLoraDeviceRequest

type DescribeLoraDeviceRequest struct {
	*tchttp.BaseRequest

	// 产品id
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 设备名称
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
}

func NewDescribeLoraDeviceRequest

func NewDescribeLoraDeviceRequest() (request *DescribeLoraDeviceRequest)

func (*DescribeLoraDeviceRequest) FromJsonString

func (r *DescribeLoraDeviceRequest) FromJsonString(s string) error

func (*DescribeLoraDeviceRequest) ToJsonString

func (r *DescribeLoraDeviceRequest) ToJsonString() string

type DescribeLoraDeviceResponse

type DescribeLoraDeviceResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 设备名称
		DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

		// LoRa应用UUID
		AppEui *string `json:"AppEui,omitempty" name:"AppEui"`

		// LoRa设备UUID
		DeviceEui *string `json:"DeviceEui,omitempty" name:"DeviceEui"`

		// LoRa应用密钥
		AppKey *string `json:"AppKey,omitempty" name:"AppKey"`

		// 设备类型,目前支持A、B、C三种
		ClassType *string `json:"ClassType,omitempty" name:"ClassType"`

		// 设备所属产品id
		ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeLoraDeviceResponse

func NewDescribeLoraDeviceResponse() (response *DescribeLoraDeviceResponse)

func (*DescribeLoraDeviceResponse) FromJsonString

func (r *DescribeLoraDeviceResponse) FromJsonString(s string) error

func (*DescribeLoraDeviceResponse) ToJsonString

func (r *DescribeLoraDeviceResponse) ToJsonString() string

type DescribeMultiDevTaskRequest

type DescribeMultiDevTaskRequest struct {
	*tchttp.BaseRequest

	// 任务 ID,由批量创建设备接口返回
	TaskId *string `json:"TaskId,omitempty" name:"TaskId"`

	// 产品 ID,创建产品时腾讯云为用户分配全局唯一的 ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
}

func NewDescribeMultiDevTaskRequest

func NewDescribeMultiDevTaskRequest() (request *DescribeMultiDevTaskRequest)

func (*DescribeMultiDevTaskRequest) FromJsonString

func (r *DescribeMultiDevTaskRequest) FromJsonString(s string) error

func (*DescribeMultiDevTaskRequest) ToJsonString

func (r *DescribeMultiDevTaskRequest) ToJsonString() string

type DescribeMultiDevTaskResponse

type DescribeMultiDevTaskResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 任务 ID
		TaskId *string `json:"TaskId,omitempty" name:"TaskId"`

		// 任务是否完成。0 代表任务未开始,1 代表任务正在执行,2 代表任务已完成
		TaskStatus *uint64 `json:"TaskStatus,omitempty" name:"TaskStatus"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeMultiDevTaskResponse

func NewDescribeMultiDevTaskResponse() (response *DescribeMultiDevTaskResponse)

func (*DescribeMultiDevTaskResponse) FromJsonString

func (r *DescribeMultiDevTaskResponse) FromJsonString(s string) error

func (*DescribeMultiDevTaskResponse) ToJsonString

func (r *DescribeMultiDevTaskResponse) ToJsonString() string

type DescribeMultiDevicesRequest

type DescribeMultiDevicesRequest struct {
	*tchttp.BaseRequest

	// 产品 ID,创建产品时腾讯云为用户分配全局唯一的 ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 任务 ID,由批量创建设备接口返回
	TaskId *string `json:"TaskId,omitempty" name:"TaskId"`

	// 分页偏移
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`

	// 分页大小,每页返回的设备个数
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeMultiDevicesRequest

func NewDescribeMultiDevicesRequest() (request *DescribeMultiDevicesRequest)

func (*DescribeMultiDevicesRequest) FromJsonString

func (r *DescribeMultiDevicesRequest) FromJsonString(s string) error

func (*DescribeMultiDevicesRequest) ToJsonString

func (r *DescribeMultiDevicesRequest) ToJsonString() string

type DescribeMultiDevicesResponse

type DescribeMultiDevicesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 任务 ID,由批量创建设备接口返回
		TaskId *string `json:"TaskId,omitempty" name:"TaskId"`

		// 设备详细信息列表
		DevicesInfo []*MultiDevicesInfo `json:"DevicesInfo,omitempty" name:"DevicesInfo" list`

		// 该任务创建设备的总数
		TotalDevNum *uint64 `json:"TotalDevNum,omitempty" name:"TotalDevNum"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeMultiDevicesResponse

func NewDescribeMultiDevicesResponse() (response *DescribeMultiDevicesResponse)

func (*DescribeMultiDevicesResponse) FromJsonString

func (r *DescribeMultiDevicesResponse) FromJsonString(s string) error

func (*DescribeMultiDevicesResponse) ToJsonString

func (r *DescribeMultiDevicesResponse) ToJsonString() string

type DescribeProductTaskRequest

type DescribeProductTaskRequest struct {
	*tchttp.BaseRequest

	// 产品ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 任务ID
	TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"`
}

func NewDescribeProductTaskRequest

func NewDescribeProductTaskRequest() (request *DescribeProductTaskRequest)

func (*DescribeProductTaskRequest) FromJsonString

func (r *DescribeProductTaskRequest) FromJsonString(s string) error

func (*DescribeProductTaskRequest) ToJsonString

func (r *DescribeProductTaskRequest) ToJsonString() string

type DescribeProductTaskResponse

type DescribeProductTaskResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 产品任务详细信息
		TaskInfo *ProductTaskInfo `json:"TaskInfo,omitempty" name:"TaskInfo"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeProductTaskResponse

func NewDescribeProductTaskResponse() (response *DescribeProductTaskResponse)

func (*DescribeProductTaskResponse) FromJsonString

func (r *DescribeProductTaskResponse) FromJsonString(s string) error

func (*DescribeProductTaskResponse) ToJsonString

func (r *DescribeProductTaskResponse) ToJsonString() string

type DescribeProductTasksRequest

type DescribeProductTasksRequest struct {
	*tchttp.BaseRequest

	// 产品ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 产品级别任务列表偏移量
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`

	// 产品级别任务列表拉取个数
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeProductTasksRequest

func NewDescribeProductTasksRequest() (request *DescribeProductTasksRequest)

func (*DescribeProductTasksRequest) FromJsonString

func (r *DescribeProductTasksRequest) FromJsonString(s string) error

func (*DescribeProductTasksRequest) ToJsonString

func (r *DescribeProductTasksRequest) ToJsonString() string

type DescribeProductTasksResponse

type DescribeProductTasksResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 符合条件的任务总个数
		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 任务详细信息列表
		TaskInfos []*ProductTaskInfo `json:"TaskInfos,omitempty" name:"TaskInfos" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeProductTasksResponse

func NewDescribeProductTasksResponse() (response *DescribeProductTasksResponse)

func (*DescribeProductTasksResponse) FromJsonString

func (r *DescribeProductTasksResponse) FromJsonString(s string) error

func (*DescribeProductTasksResponse) ToJsonString

func (r *DescribeProductTasksResponse) ToJsonString() string

type DescribeProductsRequest

type DescribeProductsRequest struct {
	*tchttp.BaseRequest

	// 偏移量,Offset从0开始
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`

	// 分页大小,当前页面中显示的最大数量,值范围 10-250。
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}

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 {

		// 产品总数
		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 产品详细信息列表
		Products []*ProductInfo `json:"Products,omitempty" name:"Products" list`

		// 唯一请求 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 DescribeTaskRequest

type DescribeTaskRequest struct {
	*tchttp.BaseRequest

	// 任务ID
	Id *string `json:"Id,omitempty" name:"Id"`
}

func NewDescribeTaskRequest

func NewDescribeTaskRequest() (request *DescribeTaskRequest)

func (*DescribeTaskRequest) FromJsonString

func (r *DescribeTaskRequest) FromJsonString(s string) error

func (*DescribeTaskRequest) ToJsonString

func (r *DescribeTaskRequest) ToJsonString() string

type DescribeTaskResponse

type DescribeTaskResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 任务类型,目前取值为 “UpdateShadow” 或者 “PublishMessage”
		Type *string `json:"Type,omitempty" name:"Type"`

		// 任务 ID
		Id *string `json:"Id,omitempty" name:"Id"`

		// 产品 ID
		ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

		// 状态。1表示等待处理,2表示调度处理中,3表示已完成,4表示失败,5表示已取消
		Status *uint64 `json:"Status,omitempty" name:"Status"`

		// 任务创建时间,Unix 时间戳
		CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"`

		// 最后任务更新时间,Unix 时间戳
		UpdateTime *uint64 `json:"UpdateTime,omitempty" name:"UpdateTime"`

		// 任务完成时间,Unix 时间戳
		DoneTime *uint64 `json:"DoneTime,omitempty" name:"DoneTime"`

		// 被调度时间,Unix 时间戳
		ScheduleTime *uint64 `json:"ScheduleTime,omitempty" name:"ScheduleTime"`

		// 返回的错误码
		RetCode *uint64 `json:"RetCode,omitempty" name:"RetCode"`

		// 返回的错误信息
		ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"`

		// 完成任务的设备比例
		Percent *uint64 `json:"Percent,omitempty" name:"Percent"`

		// 匹配到的需执行任务的设备数目
		AllDeviceCnt *uint64 `json:"AllDeviceCnt,omitempty" name:"AllDeviceCnt"`

		// 已完成任务的设备数目
		DoneDeviceCnt *uint64 `json:"DoneDeviceCnt,omitempty" name:"DoneDeviceCnt"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeTaskResponse

func NewDescribeTaskResponse() (response *DescribeTaskResponse)

func (*DescribeTaskResponse) FromJsonString

func (r *DescribeTaskResponse) FromJsonString(s string) error

func (*DescribeTaskResponse) ToJsonString

func (r *DescribeTaskResponse) ToJsonString() string

type DescribeTasksRequest

type DescribeTasksRequest struct {
	*tchttp.BaseRequest

	// 偏移量,从0开始
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`

	// 分页的大小,数值范围 1-250
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeTasksRequest

func NewDescribeTasksRequest() (request *DescribeTasksRequest)

func (*DescribeTasksRequest) FromJsonString

func (r *DescribeTasksRequest) FromJsonString(s string) error

func (*DescribeTasksRequest) ToJsonString

func (r *DescribeTasksRequest) ToJsonString() string

type DescribeTasksResponse

type DescribeTasksResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 用户一个月内创建的任务总数
		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 此页任务对象的数组,按创建时间排序
		Tasks []*TaskInfo `json:"Tasks,omitempty" name:"Tasks" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeTasksResponse

func NewDescribeTasksResponse() (response *DescribeTasksResponse)

func (*DescribeTasksResponse) FromJsonString

func (r *DescribeTasksResponse) FromJsonString(s string) error

func (*DescribeTasksResponse) ToJsonString

func (r *DescribeTasksResponse) ToJsonString() string

type DeviceInfo

type DeviceInfo struct {

	// 设备名
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

	// 设备是否在线,0不在线,1在线
	Online *uint64 `json:"Online,omitempty" name:"Online"`

	// 设备登录时间
	LoginTime *uint64 `json:"LoginTime,omitempty" name:"LoginTime"`

	// 设备版本
	Version *string `json:"Version,omitempty" name:"Version"`

	// 设备证书,证书加密的设备返回
	DeviceCert *string `json:"DeviceCert,omitempty" name:"DeviceCert"`

	// 设备密钥,密钥加密的设备返回
	DevicePsk *string `json:"DevicePsk,omitempty" name:"DevicePsk"`

	// 设备属性
	Tags []*DeviceTag `json:"Tags,omitempty" name:"Tags" list`

	// 设备类型
	DeviceType *uint64 `json:"DeviceType,omitempty" name:"DeviceType"`

	// 国际移动设备识别码 IMEI
	Imei *string `json:"Imei,omitempty" name:"Imei"`

	// 运营商类型
	Isp *uint64 `json:"Isp,omitempty" name:"Isp"`

	// NB IOT运营商处的DeviceID
	NbiotDeviceID *string `json:"NbiotDeviceID,omitempty" name:"NbiotDeviceID"`

	// IP地址
	ConnIP *uint64 `json:"ConnIP,omitempty" name:"ConnIP"`

	// 设备最后更新时间
	LastUpdateTime *uint64 `json:"LastUpdateTime,omitempty" name:"LastUpdateTime"`

	// LoRa设备的dev eui
	LoraDevEui *string `json:"LoraDevEui,omitempty" name:"LoraDevEui"`

	// LoRa设备的Mote type
	LoraMoteType *uint64 `json:"LoraMoteType,omitempty" name:"LoraMoteType"`

	// 首次上线时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	FirstOnlineTime *uint64 `json:"FirstOnlineTime,omitempty" name:"FirstOnlineTime"`

	// 最近下线时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	LastOfflineTime *uint64 `json:"LastOfflineTime,omitempty" name:"LastOfflineTime"`

	// 设备创建时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"`

	// 设备日志级别
	// 注意:此字段可能返回 null,表示取不到有效值。
	LogLevel *uint64 `json:"LogLevel,omitempty" name:"LogLevel"`

	// 设备证书获取状态, 1 已获取过设备密钥,0 未获取过设备密钥
	// 注意:此字段可能返回 null,表示取不到有效值。
	CertState *uint64 `json:"CertState,omitempty" name:"CertState"`

	// 设备可用状态,0禁用,1启用
	// 注意:此字段可能返回 null,表示取不到有效值。
	EnableState *uint64 `json:"EnableState,omitempty" name:"EnableState"`

	// 设备标签
	// 注意:此字段可能返回 null,表示取不到有效值。
	Labels []*DeviceLabel `json:"Labels,omitempty" name:"Labels" list`

	// MQTT客户端IP地址
	// 注意:此字段可能返回 null,表示取不到有效值。
	ClientIP *string `json:"ClientIP,omitempty" name:"ClientIP"`

	// ota最后更新时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	FirmwareUpdateTime *uint64 `json:"FirmwareUpdateTime,omitempty" name:"FirmwareUpdateTime"`
}

type DeviceLabel

type DeviceLabel struct {

	// 标签标识
	Key *string `json:"Key,omitempty" name:"Key"`

	// 标签值
	Value *string `json:"Value,omitempty" name:"Value"`
}

type DeviceTag

type DeviceTag struct {

	// 属性名称
	Tag *string `json:"Tag,omitempty" name:"Tag"`

	// 属性值的类型,1 int,2 string
	Type *uint64 `json:"Type,omitempty" name:"Type"`

	// 属性的值
	Value *string `json:"Value,omitempty" name:"Value"`

	// 属性描述名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	Name *string `json:"Name,omitempty" name:"Name"`
}

type DisableTopicRuleRequest

type DisableTopicRuleRequest struct {
	*tchttp.BaseRequest

	// 规则名称
	RuleName *string `json:"RuleName,omitempty" name:"RuleName"`
}

func NewDisableTopicRuleRequest

func NewDisableTopicRuleRequest() (request *DisableTopicRuleRequest)

func (*DisableTopicRuleRequest) FromJsonString

func (r *DisableTopicRuleRequest) FromJsonString(s string) error

func (*DisableTopicRuleRequest) ToJsonString

func (r *DisableTopicRuleRequest) ToJsonString() string

type DisableTopicRuleResponse

type DisableTopicRuleResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDisableTopicRuleResponse

func NewDisableTopicRuleResponse() (response *DisableTopicRuleResponse)

func (*DisableTopicRuleResponse) FromJsonString

func (r *DisableTopicRuleResponse) FromJsonString(s string) error

func (*DisableTopicRuleResponse) ToJsonString

func (r *DisableTopicRuleResponse) ToJsonString() string

type EnableTopicRuleRequest

type EnableTopicRuleRequest struct {
	*tchttp.BaseRequest

	// 规则名称
	RuleName *string `json:"RuleName,omitempty" name:"RuleName"`
}

func NewEnableTopicRuleRequest

func NewEnableTopicRuleRequest() (request *EnableTopicRuleRequest)

func (*EnableTopicRuleRequest) FromJsonString

func (r *EnableTopicRuleRequest) FromJsonString(s string) error

func (*EnableTopicRuleRequest) ToJsonString

func (r *EnableTopicRuleRequest) ToJsonString() string

type EnableTopicRuleResponse

type EnableTopicRuleResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewEnableTopicRuleResponse

func NewEnableTopicRuleResponse() (response *EnableTopicRuleResponse)

func (*EnableTopicRuleResponse) FromJsonString

func (r *EnableTopicRuleResponse) FromJsonString(s string) error

func (*EnableTopicRuleResponse) ToJsonString

func (r *EnableTopicRuleResponse) ToJsonString() string

type MultiDevicesInfo

type MultiDevicesInfo struct {

	// 设备名
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

	// 对称加密密钥,base64 编码,采用对称加密时返回该参数
	DevicePsk *string `json:"DevicePsk,omitempty" name:"DevicePsk"`

	// 设备证书,采用非对称加密时返回该参数
	DeviceCert *string `json:"DeviceCert,omitempty" name:"DeviceCert"`

	// 设备私钥,采用非对称加密时返回该参数,腾讯云为用户缓存起来,其生命周期与任务生命周期一致
	DevicePrivateKey *string `json:"DevicePrivateKey,omitempty" name:"DevicePrivateKey"`

	// 错误码
	Result *uint64 `json:"Result,omitempty" name:"Result"`

	// 错误信息
	ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"`
}

type ProductInfo

type ProductInfo struct {

	// 产品ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 产品名
	ProductName *string `json:"ProductName,omitempty" name:"ProductName"`

	// 产品元数据
	ProductMetadata *ProductMetadata `json:"ProductMetadata,omitempty" name:"ProductMetadata"`

	// 产品属性
	ProductProperties *ProductProperties `json:"ProductProperties,omitempty" name:"ProductProperties"`
}

type ProductMetadata

type ProductMetadata struct {

	// 产品创建时间
	CreationDate *uint64 `json:"CreationDate,omitempty" name:"CreationDate"`
}

type ProductProperties

type ProductProperties struct {

	// 产品描述
	ProductDescription *string `json:"ProductDescription,omitempty" name:"ProductDescription"`

	// 加密类型,1表示证书认证,2表示签名认证。如不填写,默认值是1
	EncryptionType *string `json:"EncryptionType,omitempty" name:"EncryptionType"`

	// 产品所属区域,目前只支持广州(gz)
	Region *string `json:"Region,omitempty" name:"Region"`

	// 产品类型,各个类型值代表的节点-类型如下:
	// 0 普通产品,2 NB-IoT产品,4 LoRa产品,3 LoRa网关产品,5 普通网关产品   默认值是0
	ProductType *uint64 `json:"ProductType,omitempty" name:"ProductType"`

	// 数据格式,取值为json或者custom,默认值是json
	Format *string `json:"Format,omitempty" name:"Format"`

	// 产品所属平台,默认值是0
	Platform *string `json:"Platform,omitempty" name:"Platform"`

	// LoRa产品运营侧APPEUI,只有LoRa产品需要填写
	Appeui *string `json:"Appeui,omitempty" name:"Appeui"`

	// 产品绑定的物模型ID,-1表示不绑定
	ModelId *string `json:"ModelId,omitempty" name:"ModelId"`

	// 产品绑定的物模型名称
	ModelName *string `json:"ModelName,omitempty" name:"ModelName"`

	// 产品密钥,suite产品才会有
	ProductKey *string `json:"ProductKey,omitempty" name:"ProductKey"`

	// 动态注册类型 0-关闭, 1-预定义设备名 2-动态定义设备名
	RegisterType *uint64 `json:"RegisterType,omitempty" name:"RegisterType"`

	// 动态注册产品秘钥
	ProductSecret *string `json:"ProductSecret,omitempty" name:"ProductSecret"`

	// RegisterType为2时,设备动态创建的限制数量
	RegisterLimit *uint64 `json:"RegisterLimit,omitempty" name:"RegisterLimit"`
}

type ProductTaskInfo

type ProductTaskInfo struct {

	// 任务ID
	Id *uint64 `json:"Id,omitempty" name:"Id"`

	// 任务类型 0-批量创建设备类型
	Type *uint64 `json:"Type,omitempty" name:"Type"`

	// 任务状态 0-创建中 1-待执行 2-执行中 3-执行失败 4-子任务部分失败 5-执行成功
	State *uint64 `json:"State,omitempty" name:"State"`

	// 任务参数类型 cosfile-文件输入 random-随机生成
	ParametersType *string `json:"ParametersType,omitempty" name:"ParametersType"`

	// 任务参数
	Parameters *string `json:"Parameters,omitempty" name:"Parameters"`

	// 任务执行结果类型 cosfile-文件输出 errmsg-错误信息
	// 注意:此字段可能返回 null,表示取不到有效值。
	ResultType *string `json:"ResultType,omitempty" name:"ResultType"`

	// 任务执行结果
	// 注意:此字段可能返回 null,表示取不到有效值。
	Result *string `json:"Result,omitempty" name:"Result"`

	// 子任务总个数
	// 注意:此字段可能返回 null,表示取不到有效值。
	BatchCount *uint64 `json:"BatchCount,omitempty" name:"BatchCount"`

	// 子任务已执行个数
	// 注意:此字段可能返回 null,表示取不到有效值。
	BatchOffset *uint64 `json:"BatchOffset,omitempty" name:"BatchOffset"`

	// 任务创建时间
	CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"`

	// 任务更新时间
	UpdateTime *uint64 `json:"UpdateTime,omitempty" name:"UpdateTime"`

	// 任务完成时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	CompleteTime *uint64 `json:"CompleteTime,omitempty" name:"CompleteTime"`
}

type PublishAsDeviceRequest

type PublishAsDeviceRequest struct {
	*tchttp.BaseRequest

	// 产品ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 设备名称
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

	// LoRa 设备端口
	Port *uint64 `json:"Port,omitempty" name:"Port"`

	// 消息内容
	Payload *string `json:"Payload,omitempty" name:"Payload"`
}

func NewPublishAsDeviceRequest

func NewPublishAsDeviceRequest() (request *PublishAsDeviceRequest)

func (*PublishAsDeviceRequest) FromJsonString

func (r *PublishAsDeviceRequest) FromJsonString(s string) error

func (*PublishAsDeviceRequest) ToJsonString

func (r *PublishAsDeviceRequest) ToJsonString() string

type PublishAsDeviceResponse

type PublishAsDeviceResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewPublishAsDeviceResponse

func NewPublishAsDeviceResponse() (response *PublishAsDeviceResponse)

func (*PublishAsDeviceResponse) FromJsonString

func (r *PublishAsDeviceResponse) FromJsonString(s string) error

func (*PublishAsDeviceResponse) ToJsonString

func (r *PublishAsDeviceResponse) ToJsonString() string

type PublishBroadcastMessageRequest

type PublishBroadcastMessageRequest struct {
	*tchttp.BaseRequest

	// 产品ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 消息内容
	Payload *string `json:"Payload,omitempty" name:"Payload"`

	// 消息质量等级
	Qos *int64 `json:"Qos,omitempty" name:"Qos"`
}

func NewPublishBroadcastMessageRequest

func NewPublishBroadcastMessageRequest() (request *PublishBroadcastMessageRequest)

func (*PublishBroadcastMessageRequest) FromJsonString

func (r *PublishBroadcastMessageRequest) FromJsonString(s string) error

func (*PublishBroadcastMessageRequest) ToJsonString

func (r *PublishBroadcastMessageRequest) ToJsonString() string

type PublishBroadcastMessageResponse

type PublishBroadcastMessageResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 广播消息任务ID
		TaskId *int64 `json:"TaskId,omitempty" name:"TaskId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewPublishBroadcastMessageResponse

func NewPublishBroadcastMessageResponse() (response *PublishBroadcastMessageResponse)

func (*PublishBroadcastMessageResponse) FromJsonString

func (r *PublishBroadcastMessageResponse) FromJsonString(s string) error

func (*PublishBroadcastMessageResponse) ToJsonString

func (r *PublishBroadcastMessageResponse) ToJsonString() string

type PublishMessageRequest

type PublishMessageRequest struct {
	*tchttp.BaseRequest

	// 消息发往的主题。命名规则:${ProductId}/${DeviceName}/[a-zA-Z0-9:_-]{1,128}
	Topic *string `json:"Topic,omitempty" name:"Topic"`

	// 消息内容
	Payload *string `json:"Payload,omitempty" name:"Payload"`

	// 产品ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 设备名称
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

	// 服务质量等级,取值为0或1
	Qos *uint64 `json:"Qos,omitempty" name:"Qos"`
}

func NewPublishMessageRequest

func NewPublishMessageRequest() (request *PublishMessageRequest)

func (*PublishMessageRequest) FromJsonString

func (r *PublishMessageRequest) FromJsonString(s string) error

func (*PublishMessageRequest) ToJsonString

func (r *PublishMessageRequest) ToJsonString() string

type PublishMessageResponse

type PublishMessageResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewPublishMessageResponse

func NewPublishMessageResponse() (response *PublishMessageResponse)

func (*PublishMessageResponse) FromJsonString

func (r *PublishMessageResponse) FromJsonString(s string) error

func (*PublishMessageResponse) ToJsonString

func (r *PublishMessageResponse) ToJsonString() string

type PublishRRPCMessageRequest

type PublishRRPCMessageRequest struct {
	*tchttp.BaseRequest

	// 产品ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 设备名称
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

	// 消息内容,utf8编码
	Payload *string `json:"Payload,omitempty" name:"Payload"`
}

func NewPublishRRPCMessageRequest

func NewPublishRRPCMessageRequest() (request *PublishRRPCMessageRequest)

func (*PublishRRPCMessageRequest) FromJsonString

func (r *PublishRRPCMessageRequest) FromJsonString(s string) error

func (*PublishRRPCMessageRequest) ToJsonString

func (r *PublishRRPCMessageRequest) ToJsonString() string

type PublishRRPCMessageResponse

type PublishRRPCMessageResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// RRPC消息ID
		MessageId *int64 `json:"MessageId,omitempty" name:"MessageId"`

		// 设备回复的消息内容,采用base64编码
		PayloadBase64 *string `json:"PayloadBase64,omitempty" name:"PayloadBase64"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewPublishRRPCMessageResponse

func NewPublishRRPCMessageResponse() (response *PublishRRPCMessageResponse)

func (*PublishRRPCMessageResponse) FromJsonString

func (r *PublishRRPCMessageResponse) FromJsonString(s string) error

func (*PublishRRPCMessageResponse) ToJsonString

func (r *PublishRRPCMessageResponse) ToJsonString() string

type PublishToDeviceRequest

type PublishToDeviceRequest struct {
	*tchttp.BaseRequest

	// 产品id
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 设备名称
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

	// LoRa 端口
	Port *uint64 `json:"Port,omitempty" name:"Port"`

	// 消息内容
	Payload *string `json:"Payload,omitempty" name:"Payload"`
}

func NewPublishToDeviceRequest

func NewPublishToDeviceRequest() (request *PublishToDeviceRequest)

func (*PublishToDeviceRequest) FromJsonString

func (r *PublishToDeviceRequest) FromJsonString(s string) error

func (*PublishToDeviceRequest) ToJsonString

func (r *PublishToDeviceRequest) ToJsonString() string

type PublishToDeviceResponse

type PublishToDeviceResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewPublishToDeviceResponse

func NewPublishToDeviceResponse() (response *PublishToDeviceResponse)

func (*PublishToDeviceResponse) FromJsonString

func (r *PublishToDeviceResponse) FromJsonString(s string) error

func (*PublishToDeviceResponse) ToJsonString

func (r *PublishToDeviceResponse) ToJsonString() string

type ReplaceTopicRuleRequest

type ReplaceTopicRuleRequest struct {
	*tchttp.BaseRequest

	// 规则名称
	RuleName *string `json:"RuleName,omitempty" name:"RuleName"`

	// 替换的规则包体
	TopicRulePayload *TopicRulePayload `json:"TopicRulePayload,omitempty" name:"TopicRulePayload"`

	// 修改类型,0:其他,1:创建行为,2:更新行为,3:删除行为
	ModifyType *uint64 `json:"ModifyType,omitempty" name:"ModifyType"`

	// action增删改变更填对应topicRulePayload里面第几个action
	ActionIndex *uint64 `json:"ActionIndex,omitempty" name:"ActionIndex"`
}

func NewReplaceTopicRuleRequest

func NewReplaceTopicRuleRequest() (request *ReplaceTopicRuleRequest)

func (*ReplaceTopicRuleRequest) FromJsonString

func (r *ReplaceTopicRuleRequest) FromJsonString(s string) error

func (*ReplaceTopicRuleRequest) ToJsonString

func (r *ReplaceTopicRuleRequest) ToJsonString() string

type ReplaceTopicRuleResponse

type ReplaceTopicRuleResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewReplaceTopicRuleResponse

func NewReplaceTopicRuleResponse() (response *ReplaceTopicRuleResponse)

func (*ReplaceTopicRuleResponse) FromJsonString

func (r *ReplaceTopicRuleResponse) FromJsonString(s string) error

func (*ReplaceTopicRuleResponse) ToJsonString

func (r *ReplaceTopicRuleResponse) ToJsonString() string

type ResetDeviceResult

type ResetDeviceResult struct {

	// 设备名
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

	// 是否成功
	Success *bool `json:"Success,omitempty" name:"Success"`

	// 失败原因
	// 注意:此字段可能返回 null,表示取不到有效值。
	Reason *string `json:"Reason,omitempty" name:"Reason"`
}

type ResetDeviceStateRequest

type ResetDeviceStateRequest struct {
	*tchttp.BaseRequest

	// 产品ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 设备名称
	DeviceNames []*string `json:"DeviceNames,omitempty" name:"DeviceNames" list`
}

func NewResetDeviceStateRequest

func NewResetDeviceStateRequest() (request *ResetDeviceStateRequest)

func (*ResetDeviceStateRequest) FromJsonString

func (r *ResetDeviceStateRequest) FromJsonString(s string) error

func (*ResetDeviceStateRequest) ToJsonString

func (r *ResetDeviceStateRequest) ToJsonString() string

type ResetDeviceStateResponse

type ResetDeviceStateResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 批量重置设备成功数
		SuccessCount *uint64 `json:"SuccessCount,omitempty" name:"SuccessCount"`

		// 批量重置设备结果
		ResetDeviceResults []*ResetDeviceResult `json:"ResetDeviceResults,omitempty" name:"ResetDeviceResults" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewResetDeviceStateResponse

func NewResetDeviceStateResponse() (response *ResetDeviceStateResponse)

func (*ResetDeviceStateResponse) FromJsonString

func (r *ResetDeviceStateResponse) FromJsonString(s string) error

func (*ResetDeviceStateResponse) ToJsonString

func (r *ResetDeviceStateResponse) ToJsonString() string

type Task

type Task struct {

	// 批量更新影子任务的描述细节,当 taskType 取值为 “UpdateShadow” 时,此字段必填。描述见下 BatchUpdateShadow
	UpdateShadowTask *BatchUpdateShadow `json:"UpdateShadowTask,omitempty" name:"UpdateShadowTask"`

	// 批量下发消息任务的描述细节,当 taskType 取值为 “PublishMessage” 时,此字段必填。描述见下 BatchPublishMessage
	PublishMessageTask *BatchPublishMessage `json:"PublishMessageTask,omitempty" name:"PublishMessageTask"`
}

type TaskInfo

type TaskInfo struct {

	// 任务类型,目前取值为 “UpdateShadow” 或者 “PublishMessage”
	Type *string `json:"Type,omitempty" name:"Type"`

	// 任务 ID
	Id *string `json:"Id,omitempty" name:"Id"`

	// 产品 ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 状态。1表示等待处理,2表示调度处理中,3表示已完成,4表示失败,5表示已取消
	Status *uint64 `json:"Status,omitempty" name:"Status"`

	// 任务创建时间,Unix 时间戳
	CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"`

	// 最后任务更新时间,Unix 时间戳
	UpdateTime *uint64 `json:"UpdateTime,omitempty" name:"UpdateTime"`

	// 返回的错误码
	RetCode *uint64 `json:"RetCode,omitempty" name:"RetCode"`

	// 返回的错误信息
	ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"`
}

type TopicRulePayload

type TopicRulePayload struct {

	// 规则的SQL语句,如: SELECT * FROM 'pid/dname/event',然后对其进行base64编码,得:U0VMRUNUICogRlJPTSAncGlkL2RuYW1lL2V2ZW50Jw==
	Sql *string `json:"Sql,omitempty" name:"Sql"`

	// 行为的JSON字符串,大部分种类举例如下:
	// [
	//     {
	//         "republish": {
	//             "topic": "TEST/test"
	//         }
	//     },
	//     {
	//         "forward": {
	//             "api": "http://127.0.0.1:8080"
	//         }
	//     },
	//     {
	//         "ckafka": {
	//             "instance": {
	//                 "id": "ckafka-test",
	//                 "name": ""
	//             },
	//             "topic": {
	//                 "id": "topic-test",
	//                 "name": "test"
	//             },
	//             "region": "gz"
	//         }
	//     },
	//     {
	//         "cmqqueue": {
	//             "queuename": "queue-test-TEST",
	//             "region": "gz"
	//         }
	//     },
	//     {
	//         "mysql": {
	//             "instanceid": "cdb-test",
	//             "region": "gz",
	//             "username": "test",
	//             "userpwd": "*****",
	//             "dbname": "d_mqtt",
	//             "tablename": "t_test",
	//             "fieldpairs": [
	//                 {
	//                     "field": "test",
	//                     "value": "test"
	//                 }
	//             ],
	//             "devicetype": "CUSTOM"
	//         }
	//     }
	// ]
	Actions *string `json:"Actions,omitempty" name:"Actions"`

	// 规则描述
	Description *string `json:"Description,omitempty" name:"Description"`

	// 是否禁用规则
	RuleDisabled *bool `json:"RuleDisabled,omitempty" name:"RuleDisabled"`
}

type UnbindDevicesRequest

type UnbindDevicesRequest struct {
	*tchttp.BaseRequest

	// 网关设备的产品ID
	GatewayProductId *string `json:"GatewayProductId,omitempty" name:"GatewayProductId"`

	// 网关设备的设备名
	GatewayDeviceName *string `json:"GatewayDeviceName,omitempty" name:"GatewayDeviceName"`

	// 产品ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 多个设备名
	DeviceNames []*string `json:"DeviceNames,omitempty" name:"DeviceNames" list`

	// 中兴CLAA设备的解绑需要Skey,普通设备不需要
	Skey *string `json:"Skey,omitempty" name:"Skey"`
}

func NewUnbindDevicesRequest

func NewUnbindDevicesRequest() (request *UnbindDevicesRequest)

func (*UnbindDevicesRequest) FromJsonString

func (r *UnbindDevicesRequest) FromJsonString(s string) error

func (*UnbindDevicesRequest) ToJsonString

func (r *UnbindDevicesRequest) ToJsonString() string

type UnbindDevicesResponse

type UnbindDevicesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewUnbindDevicesResponse

func NewUnbindDevicesResponse() (response *UnbindDevicesResponse)

func (*UnbindDevicesResponse) FromJsonString

func (r *UnbindDevicesResponse) FromJsonString(s string) error

func (*UnbindDevicesResponse) ToJsonString

func (r *UnbindDevicesResponse) ToJsonString() string

type UpdateDeviceAvailableStateRequest

type UpdateDeviceAvailableStateRequest struct {
	*tchttp.BaseRequest

	// 设备所属产品id
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 设备名称
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

	// 要设置的设备状态,1为启用,0为禁用
	EnableState *uint64 `json:"EnableState,omitempty" name:"EnableState"`
}

func NewUpdateDeviceAvailableStateRequest

func NewUpdateDeviceAvailableStateRequest() (request *UpdateDeviceAvailableStateRequest)

func (*UpdateDeviceAvailableStateRequest) FromJsonString

func (r *UpdateDeviceAvailableStateRequest) FromJsonString(s string) error

func (*UpdateDeviceAvailableStateRequest) ToJsonString

func (r *UpdateDeviceAvailableStateRequest) ToJsonString() string

type UpdateDeviceAvailableStateResponse

type UpdateDeviceAvailableStateResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewUpdateDeviceAvailableStateResponse

func NewUpdateDeviceAvailableStateResponse() (response *UpdateDeviceAvailableStateResponse)

func (*UpdateDeviceAvailableStateResponse) FromJsonString

func (r *UpdateDeviceAvailableStateResponse) FromJsonString(s string) error

func (*UpdateDeviceAvailableStateResponse) ToJsonString

func (r *UpdateDeviceAvailableStateResponse) ToJsonString() string

type UpdateDeviceShadowRequest

type UpdateDeviceShadowRequest struct {
	*tchttp.BaseRequest

	// 产品ID
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// 设备名称
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

	// 虚拟设备的状态,JSON字符串格式,由desired结构组成
	State *string `json:"State,omitempty" name:"State"`

	// 当前版本号,需要和后台的version保持一致,才能更新成功
	ShadowVersion *uint64 `json:"ShadowVersion,omitempty" name:"ShadowVersion"`

	// 下发delta消息的topic前缀,可选类型: "$shadow","$template"。不填写默认"$shadow"。
	Prefix *string `json:"Prefix,omitempty" name:"Prefix"`
}

func NewUpdateDeviceShadowRequest

func NewUpdateDeviceShadowRequest() (request *UpdateDeviceShadowRequest)

func (*UpdateDeviceShadowRequest) FromJsonString

func (r *UpdateDeviceShadowRequest) FromJsonString(s string) error

func (*UpdateDeviceShadowRequest) ToJsonString

func (r *UpdateDeviceShadowRequest) ToJsonString() string

type UpdateDeviceShadowResponse

type UpdateDeviceShadowResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 设备影子数据,JSON字符串格式
		Data *string `json:"Data,omitempty" name:"Data"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewUpdateDeviceShadowResponse

func NewUpdateDeviceShadowResponse() (response *UpdateDeviceShadowResponse)

func (*UpdateDeviceShadowResponse) FromJsonString

func (r *UpdateDeviceShadowResponse) FromJsonString(s string) error

func (*UpdateDeviceShadowResponse) ToJsonString

func (r *UpdateDeviceShadowResponse) ToJsonString() string

type UpdateTopicPolicyRequest

type UpdateTopicPolicyRequest struct {
	*tchttp.BaseRequest

	// 产品ID
	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`

	// 更新前Topic名
	TopicName *string `json:"TopicName,omitempty" name:"TopicName"`

	// 更新后Topic名
	NewTopicName *string `json:"NewTopicName,omitempty" name:"NewTopicName"`

	// Topic权限
	Privilege *uint64 `json:"Privilege,omitempty" name:"Privilege"`

	// 代理订阅信息
	BrokerSubscribe *BrokerSubscribe `json:"BrokerSubscribe,omitempty" name:"BrokerSubscribe"`
}

func NewUpdateTopicPolicyRequest

func NewUpdateTopicPolicyRequest() (request *UpdateTopicPolicyRequest)

func (*UpdateTopicPolicyRequest) FromJsonString

func (r *UpdateTopicPolicyRequest) FromJsonString(s string) error

func (*UpdateTopicPolicyRequest) ToJsonString

func (r *UpdateTopicPolicyRequest) ToJsonString() string

type UpdateTopicPolicyResponse

type UpdateTopicPolicyResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewUpdateTopicPolicyResponse

func NewUpdateTopicPolicyResponse() (response *UpdateTopicPolicyResponse)

func (*UpdateTopicPolicyResponse) FromJsonString

func (r *UpdateTopicPolicyResponse) FromJsonString(s string) error

func (*UpdateTopicPolicyResponse) ToJsonString

func (r *UpdateTopicPolicyResponse) ToJsonString() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL