v20180614

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 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" name:"Tags" list`
}

type BatchPublishMessage

type BatchPublishMessage struct {

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

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

type BatchUpdateShadow

type BatchUpdateShadow struct {

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

type BrokerSubscribe

type BrokerSubscribe struct {

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

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

type CancelTaskRequest

type CancelTaskRequest struct {
	*tchttp.BaseRequest

	// 任务 ID
	Id *string `json:"Id" 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" 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) 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) CreateMultiDevice

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

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

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) 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) 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) 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) 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) 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) PublishMessage

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

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

func (*Client) ReplaceTopicRule

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

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

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" name:"ProductId"`

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

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

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

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

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

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

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

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

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" name:"DeviceName"`

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

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

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

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

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

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

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId" 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 CreateMultiDeviceRequest

type CreateMultiDeviceRequest struct {
	*tchttp.BaseRequest

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

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId" 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 CreateProductRequest

type CreateProductRequest struct {
	*tchttp.BaseRequest

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

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

	// 创建LoRa产品需要的Skey
	Skey *string `json:"Skey" 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" name:"ProductName"`

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

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId" 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 CreateTaskRequest

type CreateTaskRequest struct {
	*tchttp.BaseRequest

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

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

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

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

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

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId" 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" name:"ProductID"`

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

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

	// 代理订阅信息
	BrokerSubscribe *BrokerSubscribe `json:"BrokerSubscribe" 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" 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" name:"RuleName"`

	// 规则内容
	TopicRulePayload *TopicRulePayload `json:"TopicRulePayload" 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" 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" name:"ProductId"`

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

	// 删除LoRa设备以及LoRa网关设备需要skey
	Skey *string `json:"Skey" 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" 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"`

	// 删除LoRa产品需要skey
	Skey *string `json:"Skey" 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" 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" 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" 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 DescribeDeviceRequest

type DescribeDeviceRequest struct {
	*tchttp.BaseRequest

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

	// 产品名
	DeviceName *string `json:"DeviceName" 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" name:"DeviceName"`

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

		// 设备登陆时间
		LoginTime *uint64 `json:"LoginTime" name:"LoginTime"`

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

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

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

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

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

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

		// IMEI
		Imei *string `json:"Imei" name:"Imei"`

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

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

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

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

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId" 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" name:"ProductId"`

	// 设备名称。命名规则:[a-zA-Z0-9:_-]{1,48}
	DeviceName *string `json:"DeviceName" 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" name:"Data"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId" 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" name:"ProductId"`

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

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

	// 设备固件版本号,若不带此参数会返回所有固件版本的设备
	FirmwareVersion *string `json:"FirmwareVersion" name:"FirmwareVersion"`
}

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" name:"TotalCount"`

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId" 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 DescribeMultiDevTaskRequest

type DescribeMultiDevTaskRequest struct {
	*tchttp.BaseRequest

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

	// 产品 ID,创建产品时腾讯云为用户分配全局唯一的 ID
	ProductId *string `json:"ProductId" 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" name:"TaskId"`

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId" 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" name:"ProductId"`

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

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

	// 分页大小,每页返回的设备个数
	Limit *uint64 `json:"Limit" 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" name:"TaskId"`

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

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId" 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 DescribeProductsRequest

type DescribeProductsRequest struct {
	*tchttp.BaseRequest

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

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

	// 过滤条件
	Filters []*Filter `json:"Filters" name:"Filters" list`
}

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" name:"TotalCount"`

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId" 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" 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" name:"Type"`

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

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

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

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

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

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

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

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

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

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

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

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId" 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" name:"Offset"`

	// 分页的大小,数值范围 1-250
	Limit *uint64 `json:"Limit" 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" name:"TotalCount"`

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

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId" 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" name:"DeviceName"`

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

	// 设备登陆时间
	LoginTime *uint64 `json:"LoginTime" name:"LoginTime"`

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

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

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

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

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

	// IMEI
	Imei *string `json:"Imei" name:"Imei"`

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

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

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

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

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

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

type DeviceTag

type DeviceTag struct {

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

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

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

type DisableTopicRuleRequest

type DisableTopicRuleRequest struct {
	*tchttp.BaseRequest

	// 规则名称
	RuleName *string `json:"RuleName" 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" 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" 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" 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 Filter

type Filter struct {

	// 过滤键的名称
	Name *string `json:"Name" name:"Name"`

	// 一个或者多个过滤值
	Values []*string `json:"Values" name:"Values" list`
}

type MultiDevicesInfo

type MultiDevicesInfo struct {

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

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

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

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

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

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

type ProductInfo

type ProductInfo struct {

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

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

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

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

type ProductMetadata

type ProductMetadata struct {

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

type ProductProperties

type ProductProperties struct {

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

	// 加密类型,1表示非对称加密,2表示对称加密。如不填写,默认值是1
	EncryptionType *string `json:"EncryptionType" name:"EncryptionType"`

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

	// 产品类型,0表示正常设备,2表示NB-IoT设备,默认值是0
	ProductType *uint64 `json:"ProductType" name:"ProductType"`

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

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

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

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

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

type PublishMessageRequest

type PublishMessageRequest struct {
	*tchttp.BaseRequest

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

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

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

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

	// 服务质量等级,取值为0, 1
	Qos *uint64 `json:"Qos" 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" 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 ReplaceTopicRuleRequest

type ReplaceTopicRuleRequest struct {
	*tchttp.BaseRequest

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

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

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

	// action增删改变更填对应topicRulePayload里面第几个action
	ActionIndex *uint64 `json:"ActionIndex" 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" 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 Task

type Task struct {

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

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

type TaskInfo

type TaskInfo struct {

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

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

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

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

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

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

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

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

type TopicRulePayload

type TopicRulePayload struct {

	// 规则的SQL语句,base64编码
	Sql *string `json:"Sql" 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" name:"Actions"`

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

	// 规则不生效
	RuleDisabled *bool `json:"RuleDisabled" name:"RuleDisabled"`
}

type UpdateDeviceShadowRequest

type UpdateDeviceShadowRequest struct {
	*tchttp.BaseRequest

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

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

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

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

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" name:"Data"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId" 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" name:"ProductID"`

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

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

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

	// 代理订阅信息
	BrokerSubscribe *BrokerSubscribe `json:"BrokerSubscribe" 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" 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