v20180123

package
v3.0.203+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const APIVersion = "2018-01-23"

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {

	// 转发至topic
	// 注意:此字段可能返回 null,表示取不到有效值。
	Topic *TopicAction `json:"Topic,omitempty" name:"Topic"`

	// 转发至第三发
	// 注意:此字段可能返回 null,表示取不到有效值。
	Service *ServiceAction `json:"Service,omitempty" name:"Service"`

	// 转发至第三发Ckafka
	// 注意:此字段可能返回 null,表示取不到有效值。
	Ckafka *CkafkaAction `json:"Ckafka,omitempty" name:"Ckafka"`
}

type ActivateRuleRequest

type ActivateRuleRequest struct {
	*tchttp.BaseRequest

	// 规则Id
	RuleId *string `json:"RuleId,omitempty" name:"RuleId"`
}

func NewActivateRuleRequest

func NewActivateRuleRequest() (request *ActivateRuleRequest)

func (*ActivateRuleRequest) FromJsonString

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

func (*ActivateRuleRequest) ToJsonString

func (r *ActivateRuleRequest) ToJsonString() string

type ActivateRuleResponse

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

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

func NewActivateRuleResponse

func NewActivateRuleResponse() (response *ActivateRuleResponse)

func (*ActivateRuleResponse) FromJsonString

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

func (*ActivateRuleResponse) ToJsonString

func (r *ActivateRuleResponse) ToJsonString() string

type AddDeviceRequest

type AddDeviceRequest struct {
	*tchttp.BaseRequest

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

	// 设备名称,唯一标识某产品下的一个设备
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`
}

func NewAddDeviceRequest

func NewAddDeviceRequest() (request *AddDeviceRequest)

func (*AddDeviceRequest) FromJsonString

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

func (*AddDeviceRequest) ToJsonString

func (r *AddDeviceRequest) ToJsonString() string

type AddDeviceResponse

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

		// 设备信息
		Device *Device `json:"Device,omitempty" name:"Device"`

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

func NewAddDeviceResponse

func NewAddDeviceResponse() (response *AddDeviceResponse)

func (*AddDeviceResponse) FromJsonString

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

func (*AddDeviceResponse) ToJsonString

func (r *AddDeviceResponse) ToJsonString() string

type AddProductRequest

type AddProductRequest struct {
	*tchttp.BaseRequest

	// 产品名称,同一区域产品名称需唯一,支持中文、英文字母、中划线和下划线,长度不超过31个字符,中文占两个字符
	Name *string `json:"Name,omitempty" name:"Name"`

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

	// 数据模版
	DataTemplate []*DataTemplate `json:"DataTemplate,omitempty" name:"DataTemplate" list`

	// 产品版本(native表示基础版,template表示高级版,默认值为template)
	DataProtocol *string `json:"DataProtocol,omitempty" name:"DataProtocol"`

	// 设备认证方式(1:动态令牌,2:签名直连鉴权)
	AuthType *uint64 `json:"AuthType,omitempty" name:"AuthType"`

	// 通信方式(other/wifi/cellular/nb-iot)
	CommProtocol *string `json:"CommProtocol,omitempty" name:"CommProtocol"`

	// 产品的设备类型(device: 直连设备;sub_device:子设备;gateway:网关设备)
	DeviceType *string `json:"DeviceType,omitempty" name:"DeviceType"`
}

func NewAddProductRequest

func NewAddProductRequest() (request *AddProductRequest)

func (*AddProductRequest) FromJsonString

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

func (*AddProductRequest) ToJsonString

func (r *AddProductRequest) ToJsonString() string

type AddProductResponse

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

		// 产品信息
		Product *Product `json:"Product,omitempty" name:"Product"`

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

func NewAddProductResponse

func NewAddProductResponse() (response *AddProductResponse)

func (*AddProductResponse) FromJsonString

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

func (*AddProductResponse) ToJsonString

func (r *AddProductResponse) ToJsonString() string

type AddRuleRequest

type AddRuleRequest struct {
	*tchttp.BaseRequest

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

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

	// 查询
	Query *RuleQuery `json:"Query,omitempty" name:"Query"`

	// 转发动作列表
	Actions []*Action `json:"Actions,omitempty" name:"Actions" list`

	// 数据类型(0:文本,1:二进制)
	DataType *uint64 `json:"DataType,omitempty" name:"DataType"`
}

func NewAddRuleRequest

func NewAddRuleRequest() (request *AddRuleRequest)

func (*AddRuleRequest) FromJsonString

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

func (*AddRuleRequest) ToJsonString

func (r *AddRuleRequest) ToJsonString() string

type AddRuleResponse

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

		// 规则
		Rule *Rule `json:"Rule,omitempty" name:"Rule"`

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

func NewAddRuleResponse

func NewAddRuleResponse() (response *AddRuleResponse)

func (*AddRuleResponse) FromJsonString

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

func (*AddRuleResponse) ToJsonString

func (r *AddRuleResponse) ToJsonString() string

type AddTopicRequest

type AddTopicRequest struct {
	*tchttp.BaseRequest

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

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

func NewAddTopicRequest

func NewAddTopicRequest() (request *AddTopicRequest)

func (*AddTopicRequest) FromJsonString

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

func (*AddTopicRequest) ToJsonString

func (r *AddTopicRequest) ToJsonString() string

type AddTopicResponse

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

		// Topic信息
		Topic *Topic `json:"Topic,omitempty" name:"Topic"`

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

func NewAddTopicResponse

func NewAddTopicResponse() (response *AddTopicResponse)

func (*AddTopicResponse) FromJsonString

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

func (*AddTopicResponse) ToJsonString

func (r *AddTopicResponse) ToJsonString() string

type AppAddUserRequest

type AppAddUserRequest struct {
	*tchttp.BaseRequest

	// 用户名
	UserName *string `json:"UserName,omitempty" name:"UserName"`

	// 密码
	Password *string `json:"Password,omitempty" name:"Password"`
}

func NewAppAddUserRequest

func NewAppAddUserRequest() (request *AppAddUserRequest)

func (*AppAddUserRequest) FromJsonString

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

func (*AppAddUserRequest) ToJsonString

func (r *AppAddUserRequest) ToJsonString() string

type AppAddUserResponse

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

		// 应用用户
		AppUser *AppUser `json:"AppUser,omitempty" name:"AppUser"`

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

func NewAppAddUserResponse

func NewAppAddUserResponse() (response *AppAddUserResponse)

func (*AppAddUserResponse) FromJsonString

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

func (*AppAddUserResponse) ToJsonString

func (r *AppAddUserResponse) ToJsonString() string

type AppDeleteDeviceRequest

type AppDeleteDeviceRequest struct {
	*tchttp.BaseRequest

	// 访问Token
	AccessToken *string `json:"AccessToken,omitempty" name:"AccessToken"`

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

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

func NewAppDeleteDeviceRequest

func NewAppDeleteDeviceRequest() (request *AppDeleteDeviceRequest)

func (*AppDeleteDeviceRequest) FromJsonString

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

func (*AppDeleteDeviceRequest) ToJsonString

func (r *AppDeleteDeviceRequest) ToJsonString() string

type AppDeleteDeviceResponse

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

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

func NewAppDeleteDeviceResponse

func NewAppDeleteDeviceResponse() (response *AppDeleteDeviceResponse)

func (*AppDeleteDeviceResponse) FromJsonString

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

func (*AppDeleteDeviceResponse) ToJsonString

func (r *AppDeleteDeviceResponse) ToJsonString() string

type AppDevice

type AppDevice struct {

	// 设备Id
	DeviceId *string `json:"DeviceId,omitempty" name:"DeviceId"`

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

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

	// 别名
	AliasName *string `json:"AliasName,omitempty" name:"AliasName"`

	// 地区
	Region *string `json:"Region,omitempty" name:"Region"`

	// 创建时间
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

	// 更新时间
	UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
}

type AppDeviceDetail

type AppDeviceDetail struct {

	// 设备Id
	DeviceId *string `json:"DeviceId,omitempty" name:"DeviceId"`

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

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

	// 别名
	AliasName *string `json:"AliasName,omitempty" name:"AliasName"`

	// 地区
	Region *string `json:"Region,omitempty" name:"Region"`

	// 创建时间
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

	// 更新时间
	UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`

	// 设备信息(json)
	DeviceInfo *string `json:"DeviceInfo,omitempty" name:"DeviceInfo"`

	// 数据模板
	DataTemplate []*DataTemplate `json:"DataTemplate,omitempty" name:"DataTemplate" list`
}

type AppGetDeviceDataRequest

type AppGetDeviceDataRequest struct {
	*tchttp.BaseRequest

	// 访问Token
	AccessToken *string `json:"AccessToken,omitempty" name:"AccessToken"`

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

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

func NewAppGetDeviceDataRequest

func NewAppGetDeviceDataRequest() (request *AppGetDeviceDataRequest)

func (*AppGetDeviceDataRequest) FromJsonString

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

func (*AppGetDeviceDataRequest) ToJsonString

func (r *AppGetDeviceDataRequest) ToJsonString() string

type AppGetDeviceDataResponse

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

		// 设备数据。
		DeviceData *string `json:"DeviceData,omitempty" name:"DeviceData"`

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

func NewAppGetDeviceDataResponse

func NewAppGetDeviceDataResponse() (response *AppGetDeviceDataResponse)

func (*AppGetDeviceDataResponse) FromJsonString

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

func (*AppGetDeviceDataResponse) ToJsonString

func (r *AppGetDeviceDataResponse) ToJsonString() string

type AppGetDeviceRequest

type AppGetDeviceRequest struct {
	*tchttp.BaseRequest

	// 访问Token
	AccessToken *string `json:"AccessToken,omitempty" name:"AccessToken"`

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

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

func NewAppGetDeviceRequest

func NewAppGetDeviceRequest() (request *AppGetDeviceRequest)

func (*AppGetDeviceRequest) FromJsonString

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

func (*AppGetDeviceRequest) ToJsonString

func (r *AppGetDeviceRequest) ToJsonString() string

type AppGetDeviceResponse

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

		// 绑定设备详情
		AppDevice *AppDeviceDetail `json:"AppDevice,omitempty" name:"AppDevice"`

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

func NewAppGetDeviceResponse

func NewAppGetDeviceResponse() (response *AppGetDeviceResponse)

func (*AppGetDeviceResponse) FromJsonString

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

func (*AppGetDeviceResponse) ToJsonString

func (r *AppGetDeviceResponse) ToJsonString() string

type AppGetDeviceStatusesRequest

type AppGetDeviceStatusesRequest struct {
	*tchttp.BaseRequest

	// 访问Token
	AccessToken *string `json:"AccessToken,omitempty" name:"AccessToken"`

	// 设备Id列表(单次限制1000个设备)
	DeviceIds []*string `json:"DeviceIds,omitempty" name:"DeviceIds" list`
}

func NewAppGetDeviceStatusesRequest

func NewAppGetDeviceStatusesRequest() (request *AppGetDeviceStatusesRequest)

func (*AppGetDeviceStatusesRequest) FromJsonString

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

func (*AppGetDeviceStatusesRequest) ToJsonString

func (r *AppGetDeviceStatusesRequest) ToJsonString() string

type AppGetDeviceStatusesResponse

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

		// 设备状态
		DeviceStatuses []*DeviceStatus `json:"DeviceStatuses,omitempty" name:"DeviceStatuses" list`

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

func NewAppGetDeviceStatusesResponse

func NewAppGetDeviceStatusesResponse() (response *AppGetDeviceStatusesResponse)

func (*AppGetDeviceStatusesResponse) FromJsonString

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

func (*AppGetDeviceStatusesResponse) ToJsonString

func (r *AppGetDeviceStatusesResponse) ToJsonString() string

type AppGetDevicesRequest

type AppGetDevicesRequest struct {
	*tchttp.BaseRequest

	// 访问Token
	AccessToken *string `json:"AccessToken,omitempty" name:"AccessToken"`
}

func NewAppGetDevicesRequest

func NewAppGetDevicesRequest() (request *AppGetDevicesRequest)

func (*AppGetDevicesRequest) FromJsonString

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

func (*AppGetDevicesRequest) ToJsonString

func (r *AppGetDevicesRequest) ToJsonString() string

type AppGetDevicesResponse

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

		// 绑定设备列表
		Devices []*AppDevice `json:"Devices,omitempty" name:"Devices" list`

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

func NewAppGetDevicesResponse

func NewAppGetDevicesResponse() (response *AppGetDevicesResponse)

func (*AppGetDevicesResponse) FromJsonString

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

func (*AppGetDevicesResponse) ToJsonString

func (r *AppGetDevicesResponse) ToJsonString() string

type AppGetTokenRequest

type AppGetTokenRequest struct {
	*tchttp.BaseRequest

	// 用户名
	UserName *string `json:"UserName,omitempty" name:"UserName"`

	// 密码
	Password *string `json:"Password,omitempty" name:"Password"`

	// TTL
	Expire *uint64 `json:"Expire,omitempty" name:"Expire"`
}

func NewAppGetTokenRequest

func NewAppGetTokenRequest() (request *AppGetTokenRequest)

func (*AppGetTokenRequest) FromJsonString

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

func (*AppGetTokenRequest) ToJsonString

func (r *AppGetTokenRequest) ToJsonString() string

type AppGetTokenResponse

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

		// 访问Token
		AccessToken *string `json:"AccessToken,omitempty" name:"AccessToken"`

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

func NewAppGetTokenResponse

func NewAppGetTokenResponse() (response *AppGetTokenResponse)

func (*AppGetTokenResponse) FromJsonString

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

func (*AppGetTokenResponse) ToJsonString

func (r *AppGetTokenResponse) ToJsonString() string

type AppGetUserRequest

type AppGetUserRequest struct {
	*tchttp.BaseRequest

	// 访问Token
	AccessToken *string `json:"AccessToken,omitempty" name:"AccessToken"`
}

func NewAppGetUserRequest

func NewAppGetUserRequest() (request *AppGetUserRequest)

func (*AppGetUserRequest) FromJsonString

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

func (*AppGetUserRequest) ToJsonString

func (r *AppGetUserRequest) ToJsonString() string

type AppGetUserResponse

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

		// 用户信息
		AppUser *AppUser `json:"AppUser,omitempty" name:"AppUser"`

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

func NewAppGetUserResponse

func NewAppGetUserResponse() (response *AppGetUserResponse)

func (*AppGetUserResponse) FromJsonString

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

func (*AppGetUserResponse) ToJsonString

func (r *AppGetUserResponse) ToJsonString() string

type AppIssueDeviceControlRequest

type AppIssueDeviceControlRequest struct {
	*tchttp.BaseRequest

	// 访问Token
	AccessToken *string `json:"AccessToken,omitempty" name:"AccessToken"`

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

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

	// 控制数据(json)
	ControlData *string `json:"ControlData,omitempty" name:"ControlData"`

	// 是否发送metadata字段
	Metadata *bool `json:"Metadata,omitempty" name:"Metadata"`
}

func NewAppIssueDeviceControlRequest

func NewAppIssueDeviceControlRequest() (request *AppIssueDeviceControlRequest)

func (*AppIssueDeviceControlRequest) FromJsonString

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

func (*AppIssueDeviceControlRequest) ToJsonString

func (r *AppIssueDeviceControlRequest) ToJsonString() string

type AppIssueDeviceControlResponse

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

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

func NewAppIssueDeviceControlResponse

func NewAppIssueDeviceControlResponse() (response *AppIssueDeviceControlResponse)

func (*AppIssueDeviceControlResponse) FromJsonString

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

func (*AppIssueDeviceControlResponse) ToJsonString

func (r *AppIssueDeviceControlResponse) ToJsonString() string

type AppResetPasswordRequest

type AppResetPasswordRequest struct {
	*tchttp.BaseRequest

	// 访问Token
	AccessToken *string `json:"AccessToken,omitempty" name:"AccessToken"`

	// 旧密码
	OldPassword *string `json:"OldPassword,omitempty" name:"OldPassword"`

	// 新密码
	NewPassword *string `json:"NewPassword,omitempty" name:"NewPassword"`
}

func NewAppResetPasswordRequest

func NewAppResetPasswordRequest() (request *AppResetPasswordRequest)

func (*AppResetPasswordRequest) FromJsonString

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

func (*AppResetPasswordRequest) ToJsonString

func (r *AppResetPasswordRequest) ToJsonString() string

type AppResetPasswordResponse

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

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

func NewAppResetPasswordResponse

func NewAppResetPasswordResponse() (response *AppResetPasswordResponse)

func (*AppResetPasswordResponse) FromJsonString

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

func (*AppResetPasswordResponse) ToJsonString

func (r *AppResetPasswordResponse) ToJsonString() string

type AppSecureAddDeviceRequest

type AppSecureAddDeviceRequest struct {
	*tchttp.BaseRequest

	// 访问Token
	AccessToken *string `json:"AccessToken,omitempty" name:"AccessToken"`

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

func NewAppSecureAddDeviceRequest

func NewAppSecureAddDeviceRequest() (request *AppSecureAddDeviceRequest)

func (*AppSecureAddDeviceRequest) FromJsonString

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

func (*AppSecureAddDeviceRequest) ToJsonString

func (r *AppSecureAddDeviceRequest) ToJsonString() string

type AppSecureAddDeviceResponse

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

		// 绑定设备信息
		AppDevice *AppDevice `json:"AppDevice,omitempty" name:"AppDevice"`

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

func NewAppSecureAddDeviceResponse

func NewAppSecureAddDeviceResponse() (response *AppSecureAddDeviceResponse)

func (*AppSecureAddDeviceResponse) FromJsonString

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

func (*AppSecureAddDeviceResponse) ToJsonString

func (r *AppSecureAddDeviceResponse) ToJsonString() string

type AppUpdateDeviceRequest

type AppUpdateDeviceRequest struct {
	*tchttp.BaseRequest

	// 访问Token
	AccessToken *string `json:"AccessToken,omitempty" name:"AccessToken"`

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

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

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

func NewAppUpdateDeviceRequest

func NewAppUpdateDeviceRequest() (request *AppUpdateDeviceRequest)

func (*AppUpdateDeviceRequest) FromJsonString

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

func (*AppUpdateDeviceRequest) ToJsonString

func (r *AppUpdateDeviceRequest) ToJsonString() string

type AppUpdateDeviceResponse

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

		// 设备信息
		AppDevice *AppDevice `json:"AppDevice,omitempty" name:"AppDevice"`

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

func NewAppUpdateDeviceResponse

func NewAppUpdateDeviceResponse() (response *AppUpdateDeviceResponse)

func (*AppUpdateDeviceResponse) FromJsonString

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

func (*AppUpdateDeviceResponse) ToJsonString

func (r *AppUpdateDeviceResponse) ToJsonString() string

type AppUpdateUserRequest

type AppUpdateUserRequest struct {
	*tchttp.BaseRequest

	// 访问Token
	AccessToken *string `json:"AccessToken,omitempty" name:"AccessToken"`

	// 昵称
	NickName *string `json:"NickName,omitempty" name:"NickName"`
}

func NewAppUpdateUserRequest

func NewAppUpdateUserRequest() (request *AppUpdateUserRequest)

func (*AppUpdateUserRequest) FromJsonString

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

func (*AppUpdateUserRequest) ToJsonString

func (r *AppUpdateUserRequest) ToJsonString() string

type AppUpdateUserResponse

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

		// 应用用户
		AppUser *AppUser `json:"AppUser,omitempty" name:"AppUser"`

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

func NewAppUpdateUserResponse

func NewAppUpdateUserResponse() (response *AppUpdateUserResponse)

func (*AppUpdateUserResponse) FromJsonString

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

func (*AppUpdateUserResponse) ToJsonString

func (r *AppUpdateUserResponse) ToJsonString() string

type AppUser

type AppUser struct {

	// 应用Id
	ApplicationId *string `json:"ApplicationId,omitempty" name:"ApplicationId"`

	// 用户名
	UserName *string `json:"UserName,omitempty" name:"UserName"`

	// 昵称
	NickName *string `json:"NickName,omitempty" name:"NickName"`

	// 创建时间
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

	// 修改时间
	UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
}

type AssociateSubDeviceToGatewayProductRequest

type AssociateSubDeviceToGatewayProductRequest struct {
	*tchttp.BaseRequest

	// 子设备产品Id
	SubDeviceProductId *string `json:"SubDeviceProductId,omitempty" name:"SubDeviceProductId"`

	// 网关产品Id
	GatewayProductId *string `json:"GatewayProductId,omitempty" name:"GatewayProductId"`
}

func NewAssociateSubDeviceToGatewayProductRequest

func NewAssociateSubDeviceToGatewayProductRequest() (request *AssociateSubDeviceToGatewayProductRequest)

func (*AssociateSubDeviceToGatewayProductRequest) FromJsonString

func (*AssociateSubDeviceToGatewayProductRequest) ToJsonString

type AssociateSubDeviceToGatewayProductResponse

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

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

func NewAssociateSubDeviceToGatewayProductResponse

func NewAssociateSubDeviceToGatewayProductResponse() (response *AssociateSubDeviceToGatewayProductResponse)

func (*AssociateSubDeviceToGatewayProductResponse) FromJsonString

func (*AssociateSubDeviceToGatewayProductResponse) ToJsonString

type BoolData

type BoolData struct {

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

	// 描述
	Desc *string `json:"Desc,omitempty" name:"Desc"`

	// 读写模式
	Mode *string `json:"Mode,omitempty" name:"Mode"`

	// 取值列表
	Range []*bool `json:"Range,omitempty" name:"Range" list`
}

type CkafkaAction

type CkafkaAction struct {

	// 实例Id
	InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`

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

	// 地域
	Region *string `json:"Region,omitempty" name:"Region"`
}

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

func (c *Client) ActivateRule(request *ActivateRuleRequest) (response *ActivateRuleResponse, err error)

启用规则

func (*Client) AddDevice

func (c *Client) AddDevice(request *AddDeviceRequest) (response *AddDeviceResponse, err error)

提供在指定的产品Id下创建一个设备的能力,生成设备名称与设备秘钥。

func (*Client) AddProduct

func (c *Client) AddProduct(request *AddProductRequest) (response *AddProductResponse, err error)

本接口(AddProduct)用于创建、定义某款硬件产品。

func (*Client) AddRule

func (c *Client) AddRule(request *AddRuleRequest) (response *AddRuleResponse, err error)

新增规则

func (*Client) AddTopic

func (c *Client) AddTopic(request *AddTopicRequest) (response *AddTopicResponse, err error)

新增Topic,用于设备或应用发布消息至该Topic或订阅该Topic的消息。

func (*Client) AppAddUser

func (c *Client) AppAddUser(request *AppAddUserRequest) (response *AppAddUserResponse, err error)

为APP提供用户注册功能

func (*Client) AppDeleteDevice

func (c *Client) AppDeleteDevice(request *AppDeleteDeviceRequest) (response *AppDeleteDeviceResponse, err error)

用户解除与设备的关联关系,解除后APP用户无法控制设备,获取设备数据

func (*Client) AppGetDevice

func (c *Client) AppGetDevice(request *AppGetDeviceRequest) (response *AppGetDeviceResponse, err error)

获取绑定设备的基本信息与数据模板定义

func (*Client) AppGetDeviceData

func (c *Client) AppGetDeviceData(request *AppGetDeviceDataRequest) (response *AppGetDeviceDataResponse, err error)

获取绑定设备数据,用于实时展示设备的最新数据

func (*Client) AppGetDeviceStatuses

func (c *Client) AppGetDeviceStatuses(request *AppGetDeviceStatusesRequest) (response *AppGetDeviceStatusesResponse, err error)

获取绑定设备的上下线状态

func (*Client) AppGetDevices

func (c *Client) AppGetDevices(request *AppGetDevicesRequest) (response *AppGetDevicesResponse, err error)

获取用户的绑定设备列表

func (*Client) AppGetToken

func (c *Client) AppGetToken(request *AppGetTokenRequest) (response *AppGetTokenResponse, err error)

获取用户token

func (*Client) AppGetUser

func (c *Client) AppGetUser(request *AppGetUserRequest) (response *AppGetUserResponse, err error)

获取用户信息

func (*Client) AppIssueDeviceControl

func (c *Client) AppIssueDeviceControl(request *AppIssueDeviceControlRequest) (response *AppIssueDeviceControlResponse, err error)

用户通过APP控制设备

func (*Client) AppResetPassword

func (c *Client) AppResetPassword(request *AppResetPasswordRequest) (response *AppResetPasswordResponse, err error)

重置APP用户密码

func (*Client) AppSecureAddDevice

func (c *Client) AppSecureAddDevice(request *AppSecureAddDeviceRequest) (response *AppSecureAddDeviceResponse, err error)

用户绑定设备,绑定后可以在APP端进行控制。绑定设备前需调用“获取设备绑定签名”接口

func (*Client) AppUpdateDevice

func (c *Client) AppUpdateDevice(request *AppUpdateDeviceRequest) (response *AppUpdateDeviceResponse, err error)

修改设备别名,便于用户个性化定义设备的名称

func (*Client) AppUpdateUser

func (c *Client) AppUpdateUser(request *AppUpdateUserRequest) (response *AppUpdateUserResponse, err error)

修改用户信息

func (*Client) AssociateSubDeviceToGatewayProduct

func (c *Client) AssociateSubDeviceToGatewayProduct(request *AssociateSubDeviceToGatewayProductRequest) (response *AssociateSubDeviceToGatewayProductResponse, err error)

关联子设备产品和网关产品

func (*Client) DeactivateRule

func (c *Client) DeactivateRule(request *DeactivateRuleRequest) (response *DeactivateRuleResponse, err error)

禁用规则

func (*Client) DeleteDevice

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

提供在指定的产品Id下删除一个设备的能力。

func (*Client) DeleteProduct

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

删除用户指定的产品Id对应的信息。

func (*Client) DeleteRule

func (c *Client) DeleteRule(request *DeleteRuleRequest) (response *DeleteRuleResponse, err error)

删除规则

func (*Client) DeleteTopic

func (c *Client) DeleteTopic(request *DeleteTopicRequest) (response *DeleteTopicResponse, err error)

删除Topic

func (*Client) GetDataHistory

func (c *Client) GetDataHistory(request *GetDataHistoryRequest) (response *GetDataHistoryResponse, err error)

批量获取设备某一段时间范围的设备上报数据。该接口适用于使用高级版类型的产品

func (*Client) GetDebugLog

func (c *Client) GetDebugLog(request *GetDebugLogRequest) (response *GetDebugLogResponse, err error)

获取设备的调试日志,用于定位问题

func (*Client) GetDevice

func (c *Client) GetDevice(request *GetDeviceRequest) (response *GetDeviceResponse, err error)

提供查询某个设备详细信息的能力。

func (*Client) GetDeviceData

func (c *Client) GetDeviceData(request *GetDeviceDataRequest) (response *GetDeviceDataResponse, err error)

获取某个设备当前上报到云端的数据,该接口适用于使用数据模板协议的产品。

func (*Client) GetDeviceLog

func (c *Client) GetDeviceLog(request *GetDeviceLogRequest) (response *GetDeviceLogResponse, err error)

批量获取设备与云端的详细通信日志,该接口适用于使用高级版类型的产品。

func (*Client) GetDeviceSignatures

func (c *Client) GetDeviceSignatures(request *GetDeviceSignaturesRequest) (response *GetDeviceSignaturesResponse, err error)

获取设备绑定签名,用于用户绑定某个设备的应用场景

func (*Client) GetDeviceStatistics

func (c *Client) GetDeviceStatistics(request *GetDeviceStatisticsRequest) (response *GetDeviceStatisticsResponse, err error)

查询某段时间范围内产品的在线、激活设备数

func (*Client) GetDeviceStatuses

func (c *Client) GetDeviceStatuses(request *GetDeviceStatusesRequest) (response *GetDeviceStatusesResponse, err error)

批量获取设备的当前状态,状态包括在线、离线或未激活状态。

func (*Client) GetDevices

func (c *Client) GetDevices(request *GetDevicesRequest) (response *GetDevicesResponse, err error)

提供分页查询某个产品Id下设备信息的能力。

func (*Client) GetProduct

func (c *Client) GetProduct(request *GetProductRequest) (response *GetProductResponse, err error)

获取产品定义的详细信息,包括产品名称、产品描述,鉴权模式等信息。

func (*Client) GetProducts

func (c *Client) GetProducts(request *GetProductsRequest) (response *GetProductsResponse, err error)

获取用户在物联网套件所创建的所有产品信息。

func (*Client) GetRule

func (c *Client) GetRule(request *GetRuleRequest) (response *GetRuleResponse, err error)

获取转发规则信息

func (*Client) GetRules

func (c *Client) GetRules(request *GetRulesRequest) (response *GetRulesResponse, err error)

获取转发规则列表

func (*Client) GetTopic

func (c *Client) GetTopic(request *GetTopicRequest) (response *GetTopicResponse, err error)

获取Topic信息

func (*Client) GetTopics

func (c *Client) GetTopics(request *GetTopicsRequest) (response *GetTopicsResponse, err error)

获取Topic列表

func (*Client) IssueDeviceControl

func (c *Client) IssueDeviceControl(request *IssueDeviceControlRequest) (response *IssueDeviceControlResponse, err error)

提供下发控制指令到指定设备的能力,该接口适用于使用高级版类型的产品。

func (*Client) PublishMsg

func (c *Client) PublishMsg(request *PublishMsgRequest) (response *PublishMsgResponse, err error)

提供向指定的Topic发布消息的能力,常用于向设备下发控制指令。该接口只适用于产品版本为“基础版”类型的产品,使用高级版的产品需使用“下发设备控制指令”接口

func (*Client) ResetDevice

func (c *Client) ResetDevice(request *ResetDeviceRequest) (response *ResetDeviceResponse, err error)

重置设备操作,将会为设备生成新的证书及清空最新数据,需谨慎操作。

func (*Client) UnassociateSubDeviceFromGatewayProduct

func (c *Client) UnassociateSubDeviceFromGatewayProduct(request *UnassociateSubDeviceFromGatewayProductRequest) (response *UnassociateSubDeviceFromGatewayProductResponse, err error)

取消子设备产品与网关设备产品的关联

func (*Client) UpdateProduct

func (c *Client) UpdateProduct(request *UpdateProductRequest) (response *UpdateProductResponse, err error)

提供修改产品信息及数据模板的能力。

func (*Client) UpdateRule

func (c *Client) UpdateRule(request *UpdateRuleRequest) (response *UpdateRuleResponse, err error)

更新规则

type DataHistoryEntry

type DataHistoryEntry struct {

	// 日志id
	Id *string `json:"Id,omitempty" name:"Id"`

	// 时间戳
	Timestamp *uint64 `json:"Timestamp,omitempty" name:"Timestamp"`

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

	// 数据
	Data *string `json:"Data,omitempty" name:"Data"`
}

type DataTemplate

type DataTemplate struct {

	// 数字类型
	// 注意:此字段可能返回 null,表示取不到有效值。
	Number *NumberData `json:"Number,omitempty" name:"Number"`

	// 字符串类型
	// 注意:此字段可能返回 null,表示取不到有效值。
	String *StringData `json:"String,omitempty" name:"String"`

	// 枚举类型
	// 注意:此字段可能返回 null,表示取不到有效值。
	Enum *EnumData `json:"Enum,omitempty" name:"Enum"`

	// 布尔类型
	// 注意:此字段可能返回 null,表示取不到有效值。
	Bool *BoolData `json:"Bool,omitempty" name:"Bool"`
}

type DeactivateRuleRequest

type DeactivateRuleRequest struct {
	*tchttp.BaseRequest

	// 规则Id
	RuleId *string `json:"RuleId,omitempty" name:"RuleId"`
}

func NewDeactivateRuleRequest

func NewDeactivateRuleRequest() (request *DeactivateRuleRequest)

func (*DeactivateRuleRequest) FromJsonString

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

func (*DeactivateRuleRequest) ToJsonString

func (r *DeactivateRuleRequest) ToJsonString() string

type DeactivateRuleResponse

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

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

func NewDeactivateRuleResponse

func NewDeactivateRuleResponse() (response *DeactivateRuleResponse)

func (*DeactivateRuleResponse) FromJsonString

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

func (*DeactivateRuleResponse) ToJsonString

func (r *DeactivateRuleResponse) ToJsonString() string

type DebugLogEntry

type DebugLogEntry struct {

	// 日志id
	Id *string `json:"Id,omitempty" name:"Id"`

	// 行为(事件)
	Event *string `json:"Event,omitempty" name:"Event"`

	// shadow/action/mqtt, 分别表示:影子/规则引擎/上下线日志
	LogType *string `json:"LogType,omitempty" name:"LogType"`

	// 时间戳
	Timestamp *uint64 `json:"Timestamp,omitempty" name:"Timestamp"`

	// success/fail
	Result *string `json:"Result,omitempty" name:"Result"`

	// 日志详细内容
	Data *string `json:"Data,omitempty" name:"Data"`

	// 数据来源topic
	Topic *string `json:"Topic,omitempty" name:"Topic"`

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

type DeleteDeviceRequest

type DeleteDeviceRequest struct {
	*tchttp.BaseRequest

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

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

func NewDeleteDeviceRequest

func NewDeleteDeviceRequest() (request *DeleteDeviceRequest)

func (*DeleteDeviceRequest) FromJsonString

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

func (*DeleteDeviceRequest) ToJsonString

func (r *DeleteDeviceRequest) ToJsonString() string

type DeleteDeviceResponse

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

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

type DeleteProductRequest struct {
	*tchttp.BaseRequest

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

func NewDeleteProductRequest

func NewDeleteProductRequest() (request *DeleteProductRequest)

func (*DeleteProductRequest) FromJsonString

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

func (*DeleteProductRequest) ToJsonString

func (r *DeleteProductRequest) ToJsonString() string

type DeleteProductResponse

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

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

func NewDeleteProductResponse

func NewDeleteProductResponse() (response *DeleteProductResponse)

func (*DeleteProductResponse) FromJsonString

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

func (*DeleteProductResponse) ToJsonString

func (r *DeleteProductResponse) ToJsonString() string

type DeleteRuleRequest

type DeleteRuleRequest struct {
	*tchttp.BaseRequest

	// 规则Id
	RuleId *string `json:"RuleId,omitempty" name:"RuleId"`
}

func NewDeleteRuleRequest

func NewDeleteRuleRequest() (request *DeleteRuleRequest)

func (*DeleteRuleRequest) FromJsonString

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

func (*DeleteRuleRequest) ToJsonString

func (r *DeleteRuleRequest) ToJsonString() string

type DeleteRuleResponse

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

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

func NewDeleteRuleResponse

func NewDeleteRuleResponse() (response *DeleteRuleResponse)

func (*DeleteRuleResponse) FromJsonString

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

func (*DeleteRuleResponse) ToJsonString

func (r *DeleteRuleResponse) ToJsonString() string

type DeleteTopicRequest

type DeleteTopicRequest struct {
	*tchttp.BaseRequest

	// TopicId
	TopicId *string `json:"TopicId,omitempty" name:"TopicId"`

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

func NewDeleteTopicRequest

func NewDeleteTopicRequest() (request *DeleteTopicRequest)

func (*DeleteTopicRequest) FromJsonString

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

func (*DeleteTopicRequest) ToJsonString

func (r *DeleteTopicRequest) ToJsonString() string

type DeleteTopicResponse

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

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

func NewDeleteTopicResponse

func NewDeleteTopicResponse() (response *DeleteTopicResponse)

func (*DeleteTopicResponse) FromJsonString

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

func (*DeleteTopicResponse) ToJsonString

func (r *DeleteTopicResponse) ToJsonString() string

type Device

type Device struct {

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

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

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

	// 更新时间
	UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`

	// 创建时间
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

	// 设备信息(json)
	DeviceInfo *string `json:"DeviceInfo,omitempty" name:"DeviceInfo"`
}

type DeviceEntry

type DeviceEntry struct {

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

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

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

	// 创建时间
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
}

type DeviceLogEntry

type DeviceLogEntry struct {

	// 日志id
	Id *string `json:"Id,omitempty" name:"Id"`

	// 日志内容
	Msg *string `json:"Msg,omitempty" name:"Msg"`

	// 状态码
	Code *string `json:"Code,omitempty" name:"Code"`

	// 时间戳
	Timestamp *uint64 `json:"Timestamp,omitempty" name:"Timestamp"`

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

	// 设备动作
	Method *string `json:"Method,omitempty" name:"Method"`
}

type DeviceSignature

type DeviceSignature struct {

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

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

type DeviceStatData

type DeviceStatData struct {

	// 时间点
	Datetime *string `json:"Datetime,omitempty" name:"Datetime"`

	// 在线设备数
	DeviceOnline *uint64 `json:"DeviceOnline,omitempty" name:"DeviceOnline"`

	// 激活设备数
	DeviceActive *uint64 `json:"DeviceActive,omitempty" name:"DeviceActive"`

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

type DeviceStatus

type DeviceStatus struct {

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

	// 设备状态(inactive, online, offline)
	Status *string `json:"Status,omitempty" name:"Status"`

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

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

	// 上线次数
	OnlineTimes *uint64 `json:"OnlineTimes,omitempty" name:"OnlineTimes"`
}

type EnumData

type EnumData struct {

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

	// 描述
	Desc *string `json:"Desc,omitempty" name:"Desc"`

	// 读写模式
	Mode *string `json:"Mode,omitempty" name:"Mode"`

	// 取值列表
	Range []*string `json:"Range,omitempty" name:"Range" list`
}

type GetDataHistoryRequest

type GetDataHistoryRequest struct {
	*tchttp.BaseRequest

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

	// 设备名称列表,允许最多一次100台
	DeviceNames []*string `json:"DeviceNames,omitempty" name:"DeviceNames" list`

	// 查询开始时间
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// 查询结束时间
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

	// 查询数据量
	Size *uint64 `json:"Size,omitempty" name:"Size"`

	// 时间排序(desc/asc)
	Order *string `json:"Order,omitempty" name:"Order"`

	// 查询游标
	ScrollId *string `json:"ScrollId,omitempty" name:"ScrollId"`
}

func NewGetDataHistoryRequest

func NewGetDataHistoryRequest() (request *GetDataHistoryRequest)

func (*GetDataHistoryRequest) FromJsonString

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

func (*GetDataHistoryRequest) ToJsonString

func (r *GetDataHistoryRequest) ToJsonString() string

type GetDataHistoryResponse

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

		// 数据历史
		DataHistory []*DataHistoryEntry `json:"DataHistory,omitempty" name:"DataHistory" list`

		// 查询游标
		ScrollId *string `json:"ScrollId,omitempty" name:"ScrollId"`

		// 查询游标超时
		ScrollTimeout *uint64 `json:"ScrollTimeout,omitempty" name:"ScrollTimeout"`

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

func NewGetDataHistoryResponse

func NewGetDataHistoryResponse() (response *GetDataHistoryResponse)

func (*GetDataHistoryResponse) FromJsonString

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

func (*GetDataHistoryResponse) ToJsonString

func (r *GetDataHistoryResponse) ToJsonString() string

type GetDebugLogRequest

type GetDebugLogRequest struct {
	*tchttp.BaseRequest

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

	// 设备名称列表,最大支持100台
	DeviceNames []*string `json:"DeviceNames,omitempty" name:"DeviceNames" list`

	// 查询开始时间
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// 查询结束时间
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

	// 查询数据量
	Size *uint64 `json:"Size,omitempty" name:"Size"`

	// 时间排序(desc/asc)
	Order *string `json:"Order,omitempty" name:"Order"`

	// 查询游标
	ScrollId *string `json:"ScrollId,omitempty" name:"ScrollId"`

	// 日志类型(shadow/action/mqtt)
	Type *string `json:"Type,omitempty" name:"Type"`
}

func NewGetDebugLogRequest

func NewGetDebugLogRequest() (request *GetDebugLogRequest)

func (*GetDebugLogRequest) FromJsonString

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

func (*GetDebugLogRequest) ToJsonString

func (r *GetDebugLogRequest) ToJsonString() string

type GetDebugLogResponse

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

		// 调试日志
		DebugLog []*DebugLogEntry `json:"DebugLog,omitempty" name:"DebugLog" list`

		// 查询游标
		ScrollId *string `json:"ScrollId,omitempty" name:"ScrollId"`

		// 游标超时
		ScrollTimeout *uint64 `json:"ScrollTimeout,omitempty" name:"ScrollTimeout"`

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

func NewGetDebugLogResponse

func NewGetDebugLogResponse() (response *GetDebugLogResponse)

func (*GetDebugLogResponse) FromJsonString

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

func (*GetDebugLogResponse) ToJsonString

func (r *GetDebugLogResponse) ToJsonString() string

type GetDeviceDataRequest

type GetDeviceDataRequest struct {
	*tchttp.BaseRequest

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

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

func NewGetDeviceDataRequest

func NewGetDeviceDataRequest() (request *GetDeviceDataRequest)

func (*GetDeviceDataRequest) FromJsonString

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

func (*GetDeviceDataRequest) ToJsonString

func (r *GetDeviceDataRequest) ToJsonString() string

type GetDeviceDataResponse

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

		// 设备数据
		DeviceData *string `json:"DeviceData,omitempty" name:"DeviceData"`

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

func NewGetDeviceDataResponse

func NewGetDeviceDataResponse() (response *GetDeviceDataResponse)

func (*GetDeviceDataResponse) FromJsonString

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

func (*GetDeviceDataResponse) ToJsonString

func (r *GetDeviceDataResponse) ToJsonString() string

type GetDeviceLogRequest

type GetDeviceLogRequest struct {
	*tchttp.BaseRequest

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

	// 设备名称列表,最大支持100台
	DeviceNames []*string `json:"DeviceNames,omitempty" name:"DeviceNames" list`

	// 查询开始时间
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// 查询结束时间
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`

	// 查询数据量
	Size *uint64 `json:"Size,omitempty" name:"Size"`

	// 时间排序(desc/asc)
	Order *string `json:"Order,omitempty" name:"Order"`

	// 查询游标
	ScrollId *string `json:"ScrollId,omitempty" name:"ScrollId"`

	// 日志类型(comm/status)
	Type *string `json:"Type,omitempty" name:"Type"`
}

func NewGetDeviceLogRequest

func NewGetDeviceLogRequest() (request *GetDeviceLogRequest)

func (*GetDeviceLogRequest) FromJsonString

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

func (*GetDeviceLogRequest) ToJsonString

func (r *GetDeviceLogRequest) ToJsonString() string

type GetDeviceLogResponse

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

		// 设备日志
		DeviceLog []*DeviceLogEntry `json:"DeviceLog,omitempty" name:"DeviceLog" list`

		// 查询游标
		ScrollId *string `json:"ScrollId,omitempty" name:"ScrollId"`

		// 游标超时
		ScrollTimeout *uint64 `json:"ScrollTimeout,omitempty" name:"ScrollTimeout"`

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

func NewGetDeviceLogResponse

func NewGetDeviceLogResponse() (response *GetDeviceLogResponse)

func (*GetDeviceLogResponse) FromJsonString

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

func (*GetDeviceLogResponse) ToJsonString

func (r *GetDeviceLogResponse) ToJsonString() string

type GetDeviceRequest

type GetDeviceRequest struct {
	*tchttp.BaseRequest

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

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

func NewGetDeviceRequest

func NewGetDeviceRequest() (request *GetDeviceRequest)

func (*GetDeviceRequest) FromJsonString

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

func (*GetDeviceRequest) ToJsonString

func (r *GetDeviceRequest) ToJsonString() string

type GetDeviceResponse

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

		// 设备信息
		Device *Device `json:"Device,omitempty" name:"Device"`

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

func NewGetDeviceResponse

func NewGetDeviceResponse() (response *GetDeviceResponse)

func (*GetDeviceResponse) FromJsonString

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

func (*GetDeviceResponse) ToJsonString

func (r *GetDeviceResponse) ToJsonString() string

type GetDeviceSignaturesRequest

type GetDeviceSignaturesRequest struct {
	*tchttp.BaseRequest

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

	// 设备名称列表(单次限制1000个设备)
	DeviceNames []*string `json:"DeviceNames,omitempty" name:"DeviceNames" list`

	// 过期时间
	Expire *uint64 `json:"Expire,omitempty" name:"Expire"`
}

func NewGetDeviceSignaturesRequest

func NewGetDeviceSignaturesRequest() (request *GetDeviceSignaturesRequest)

func (*GetDeviceSignaturesRequest) FromJsonString

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

func (*GetDeviceSignaturesRequest) ToJsonString

func (r *GetDeviceSignaturesRequest) ToJsonString() string

type GetDeviceSignaturesResponse

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

		// 设备绑定签名列表
		DeviceSignatures []*DeviceSignature `json:"DeviceSignatures,omitempty" name:"DeviceSignatures" list`

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

func NewGetDeviceSignaturesResponse

func NewGetDeviceSignaturesResponse() (response *GetDeviceSignaturesResponse)

func (*GetDeviceSignaturesResponse) FromJsonString

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

func (*GetDeviceSignaturesResponse) ToJsonString

func (r *GetDeviceSignaturesResponse) ToJsonString() string

type GetDeviceStatisticsRequest

type GetDeviceStatisticsRequest struct {
	*tchttp.BaseRequest

	// 产品Id列表
	Products []*string `json:"Products,omitempty" name:"Products" list`

	// 开始日期
	StartDate *string `json:"StartDate,omitempty" name:"StartDate"`

	// 结束日期
	EndDate *string `json:"EndDate,omitempty" name:"EndDate"`
}

func NewGetDeviceStatisticsRequest

func NewGetDeviceStatisticsRequest() (request *GetDeviceStatisticsRequest)

func (*GetDeviceStatisticsRequest) FromJsonString

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

func (*GetDeviceStatisticsRequest) ToJsonString

func (r *GetDeviceStatisticsRequest) ToJsonString() string

type GetDeviceStatisticsResponse

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

		// 统计数据
		DeviceStatistics []*DeviceStatData `json:"DeviceStatistics,omitempty" name:"DeviceStatistics" list`

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

func NewGetDeviceStatisticsResponse

func NewGetDeviceStatisticsResponse() (response *GetDeviceStatisticsResponse)

func (*GetDeviceStatisticsResponse) FromJsonString

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

func (*GetDeviceStatisticsResponse) ToJsonString

func (r *GetDeviceStatisticsResponse) ToJsonString() string

type GetDeviceStatusesRequest

type GetDeviceStatusesRequest struct {
	*tchttp.BaseRequest

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

	// 设备名称列表(单次限制1000个设备)
	DeviceNames []*string `json:"DeviceNames,omitempty" name:"DeviceNames" list`
}

func NewGetDeviceStatusesRequest

func NewGetDeviceStatusesRequest() (request *GetDeviceStatusesRequest)

func (*GetDeviceStatusesRequest) FromJsonString

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

func (*GetDeviceStatusesRequest) ToJsonString

func (r *GetDeviceStatusesRequest) ToJsonString() string

type GetDeviceStatusesResponse

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

		// 设备状态列表
		DeviceStatuses []*DeviceStatus `json:"DeviceStatuses,omitempty" name:"DeviceStatuses" list`

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

func NewGetDeviceStatusesResponse

func NewGetDeviceStatusesResponse() (response *GetDeviceStatusesResponse)

func (*GetDeviceStatusesResponse) FromJsonString

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

func (*GetDeviceStatusesResponse) ToJsonString

func (r *GetDeviceStatusesResponse) ToJsonString() string

type GetDevicesRequest

type GetDevicesRequest struct {
	*tchttp.BaseRequest

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

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

	// 长度
	Length *uint64 `json:"Length,omitempty" name:"Length"`

	// 关键字查询
	Keyword *string `json:"Keyword,omitempty" name:"Keyword"`
}

func NewGetDevicesRequest

func NewGetDevicesRequest() (request *GetDevicesRequest)

func (*GetDevicesRequest) FromJsonString

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

func (*GetDevicesRequest) ToJsonString

func (r *GetDevicesRequest) ToJsonString() string

type GetDevicesResponse

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

		// 设备列表
		Devices []*DeviceEntry `json:"Devices,omitempty" name:"Devices" list`

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

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

func NewGetDevicesResponse

func NewGetDevicesResponse() (response *GetDevicesResponse)

func (*GetDevicesResponse) FromJsonString

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

func (*GetDevicesResponse) ToJsonString

func (r *GetDevicesResponse) ToJsonString() string

type GetProductRequest

type GetProductRequest struct {
	*tchttp.BaseRequest

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

func NewGetProductRequest

func NewGetProductRequest() (request *GetProductRequest)

func (*GetProductRequest) FromJsonString

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

func (*GetProductRequest) ToJsonString

func (r *GetProductRequest) ToJsonString() string

type GetProductResponse

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

		// 产品信息
		Product *Product `json:"Product,omitempty" name:"Product"`

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

func NewGetProductResponse

func NewGetProductResponse() (response *GetProductResponse)

func (*GetProductResponse) FromJsonString

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

func (*GetProductResponse) ToJsonString

func (r *GetProductResponse) ToJsonString() string

type GetProductsRequest

type GetProductsRequest struct {
	*tchttp.BaseRequest

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

	// 长度
	Length *uint64 `json:"Length,omitempty" name:"Length"`
}

func NewGetProductsRequest

func NewGetProductsRequest() (request *GetProductsRequest)

func (*GetProductsRequest) FromJsonString

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

func (*GetProductsRequest) ToJsonString

func (r *GetProductsRequest) ToJsonString() string

type GetProductsResponse

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

		// Product列表
		Products []*ProductEntry `json:"Products,omitempty" name:"Products" list`

		// Product总数
		Total *uint64 `json:"Total,omitempty" name:"Total"`

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

func NewGetProductsResponse

func NewGetProductsResponse() (response *GetProductsResponse)

func (*GetProductsResponse) FromJsonString

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

func (*GetProductsResponse) ToJsonString

func (r *GetProductsResponse) ToJsonString() string

type GetRuleRequest

type GetRuleRequest struct {
	*tchttp.BaseRequest

	// 规则Id
	RuleId *string `json:"RuleId,omitempty" name:"RuleId"`
}

func NewGetRuleRequest

func NewGetRuleRequest() (request *GetRuleRequest)

func (*GetRuleRequest) FromJsonString

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

func (*GetRuleRequest) ToJsonString

func (r *GetRuleRequest) ToJsonString() string

type GetRuleResponse

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

		// 规则
		Rule *Rule `json:"Rule,omitempty" name:"Rule"`

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

func NewGetRuleResponse

func NewGetRuleResponse() (response *GetRuleResponse)

func (*GetRuleResponse) FromJsonString

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

func (*GetRuleResponse) ToJsonString

func (r *GetRuleResponse) ToJsonString() string

type GetRulesRequest

type GetRulesRequest struct {
	*tchttp.BaseRequest

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

	// 长度
	Length *uint64 `json:"Length,omitempty" name:"Length"`
}

func NewGetRulesRequest

func NewGetRulesRequest() (request *GetRulesRequest)

func (*GetRulesRequest) FromJsonString

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

func (*GetRulesRequest) ToJsonString

func (r *GetRulesRequest) ToJsonString() string

type GetRulesResponse

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

		// 规则列表
		Rules []*Rule `json:"Rules,omitempty" name:"Rules" list`

		// 规则总数
		Total *uint64 `json:"Total,omitempty" name:"Total"`

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

func NewGetRulesResponse

func NewGetRulesResponse() (response *GetRulesResponse)

func (*GetRulesResponse) FromJsonString

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

func (*GetRulesResponse) ToJsonString

func (r *GetRulesResponse) ToJsonString() string

type GetTopicRequest

type GetTopicRequest struct {
	*tchttp.BaseRequest

	// TopicId
	TopicId *string `json:"TopicId,omitempty" name:"TopicId"`

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

func NewGetTopicRequest

func NewGetTopicRequest() (request *GetTopicRequest)

func (*GetTopicRequest) FromJsonString

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

func (*GetTopicRequest) ToJsonString

func (r *GetTopicRequest) ToJsonString() string

type GetTopicResponse

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

		// Topic信息
		Topic *Topic `json:"Topic,omitempty" name:"Topic"`

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

func NewGetTopicResponse

func NewGetTopicResponse() (response *GetTopicResponse)

func (*GetTopicResponse) FromJsonString

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

func (*GetTopicResponse) ToJsonString

func (r *GetTopicResponse) ToJsonString() string

type GetTopicsRequest

type GetTopicsRequest struct {
	*tchttp.BaseRequest

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

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

	// 长度
	Length *uint64 `json:"Length,omitempty" name:"Length"`
}

func NewGetTopicsRequest

func NewGetTopicsRequest() (request *GetTopicsRequest)

func (*GetTopicsRequest) FromJsonString

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

func (*GetTopicsRequest) ToJsonString

func (r *GetTopicsRequest) ToJsonString() string

type GetTopicsResponse

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

		// Topic列表
		Topics []*Topic `json:"Topics,omitempty" name:"Topics" list`

		// Topic总数
		Total *uint64 `json:"Total,omitempty" name:"Total"`

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

func NewGetTopicsResponse

func NewGetTopicsResponse() (response *GetTopicsResponse)

func (*GetTopicsResponse) FromJsonString

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

func (*GetTopicsResponse) ToJsonString

func (r *GetTopicsResponse) ToJsonString() string

type IssueDeviceControlRequest

type IssueDeviceControlRequest struct {
	*tchttp.BaseRequest

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

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

	// 控制数据(json)
	ControlData *string `json:"ControlData,omitempty" name:"ControlData"`

	// 是否发送metadata字段
	Metadata *bool `json:"Metadata,omitempty" name:"Metadata"`
}

func NewIssueDeviceControlRequest

func NewIssueDeviceControlRequest() (request *IssueDeviceControlRequest)

func (*IssueDeviceControlRequest) FromJsonString

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

func (*IssueDeviceControlRequest) ToJsonString

func (r *IssueDeviceControlRequest) ToJsonString() string

type IssueDeviceControlResponse

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

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

func NewIssueDeviceControlResponse

func NewIssueDeviceControlResponse() (response *IssueDeviceControlResponse)

func (*IssueDeviceControlResponse) FromJsonString

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

func (*IssueDeviceControlResponse) ToJsonString

func (r *IssueDeviceControlResponse) ToJsonString() string

type NumberData

type NumberData struct {

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

	// 描述
	Desc *string `json:"Desc,omitempty" name:"Desc"`

	// 读写模式
	Mode *string `json:"Mode,omitempty" name:"Mode"`

	// 取值范围
	Range []*float64 `json:"Range,omitempty" name:"Range" list`
}

type Product

type Product struct {

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

	// 产品Key
	ProductKey *string `json:"ProductKey,omitempty" name:"ProductKey"`

	// AppId
	AppId *uint64 `json:"AppId,omitempty" name:"AppId"`

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

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

	// 连接域名
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// 产品规格
	Standard *uint64 `json:"Standard,omitempty" name:"Standard"`

	// 鉴权类型(0:直连,1:Token)
	AuthType *uint64 `json:"AuthType,omitempty" name:"AuthType"`

	// 删除(0未删除)
	Deleted *uint64 `json:"Deleted,omitempty" name:"Deleted"`

	// 备注
	Message *string `json:"Message,omitempty" name:"Message"`

	// 创建时间
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

	// 更新时间
	UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`

	// 数据模版
	DataTemplate []*DataTemplate `json:"DataTemplate,omitempty" name:"DataTemplate" list`

	// 数据协议(native/template)
	DataProtocol *string `json:"DataProtocol,omitempty" name:"DataProtocol"`

	// 直连用户名
	Username *string `json:"Username,omitempty" name:"Username"`

	// 直连密码
	Password *string `json:"Password,omitempty" name:"Password"`

	// 通信方式
	CommProtocol *string `json:"CommProtocol,omitempty" name:"CommProtocol"`

	// qps
	Qps *uint64 `json:"Qps,omitempty" name:"Qps"`

	// 地域
	Region *string `json:"Region,omitempty" name:"Region"`

	// 产品的设备类型
	DeviceType *string `json:"DeviceType,omitempty" name:"DeviceType"`

	// 关联的产品列表
	AssociatedProducts []*string `json:"AssociatedProducts,omitempty" name:"AssociatedProducts" list`
}

type ProductEntry

type ProductEntry struct {

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

	// 产品Key
	ProductKey *string `json:"ProductKey,omitempty" name:"ProductKey"`

	// AppId
	AppId *uint64 `json:"AppId,omitempty" name:"AppId"`

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

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

	// 连接域名
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// 鉴权类型(0:直连,1:Token)
	AuthType *uint64 `json:"AuthType,omitempty" name:"AuthType"`

	// 数据协议(native/template)
	DataProtocol *string `json:"DataProtocol,omitempty" name:"DataProtocol"`

	// 删除(0未删除)
	Deleted *uint64 `json:"Deleted,omitempty" name:"Deleted"`

	// 备注
	Message *string `json:"Message,omitempty" name:"Message"`

	// 创建时间
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

	// 通信方式
	CommProtocol *string `json:"CommProtocol,omitempty" name:"CommProtocol"`

	// 地域
	Region *string `json:"Region,omitempty" name:"Region"`

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

type PublishMsgRequest

type PublishMsgRequest struct {
	*tchttp.BaseRequest

	// Topic
	Topic *string `json:"Topic,omitempty" name:"Topic"`

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

	// Qos(目前QoS支持0与1)
	Qos *int64 `json:"Qos,omitempty" name:"Qos"`
}

func NewPublishMsgRequest

func NewPublishMsgRequest() (request *PublishMsgRequest)

func (*PublishMsgRequest) FromJsonString

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

func (*PublishMsgRequest) ToJsonString

func (r *PublishMsgRequest) ToJsonString() string

type PublishMsgResponse

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

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

func NewPublishMsgResponse

func NewPublishMsgResponse() (response *PublishMsgResponse)

func (*PublishMsgResponse) FromJsonString

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

func (*PublishMsgResponse) ToJsonString

func (r *PublishMsgResponse) ToJsonString() string

type ResetDeviceRequest

type ResetDeviceRequest struct {
	*tchttp.BaseRequest

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

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

func NewResetDeviceRequest

func NewResetDeviceRequest() (request *ResetDeviceRequest)

func (*ResetDeviceRequest) FromJsonString

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

func (*ResetDeviceRequest) ToJsonString

func (r *ResetDeviceRequest) ToJsonString() string

type ResetDeviceResponse

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

		// 设备信息
		Device *Device `json:"Device,omitempty" name:"Device"`

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

func NewResetDeviceResponse

func NewResetDeviceResponse() (response *ResetDeviceResponse)

func (*ResetDeviceResponse) FromJsonString

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

func (*ResetDeviceResponse) ToJsonString

func (r *ResetDeviceResponse) ToJsonString() string

type Rule

type Rule struct {

	// 规则Id
	RuleId *string `json:"RuleId,omitempty" name:"RuleId"`

	// AppId
	AppId *uint64 `json:"AppId,omitempty" name:"AppId"`

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

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

	// 查询
	Query *RuleQuery `json:"Query,omitempty" name:"Query"`

	// 转发
	Actions []*Action `json:"Actions,omitempty" name:"Actions" list`

	// 已启动
	Active *uint64 `json:"Active,omitempty" name:"Active"`

	// 已删除
	Deleted *uint64 `json:"Deleted,omitempty" name:"Deleted"`

	// 创建时间
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

	// 更新时间
	UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`

	// 消息顺序
	MsgOrder *uint64 `json:"MsgOrder,omitempty" name:"MsgOrder"`

	// 数据类型(0:文本,1:二进制)
	DataType *uint64 `json:"DataType,omitempty" name:"DataType"`
}

type RuleQuery

type RuleQuery struct {

	// 字段
	Field *string `json:"Field,omitempty" name:"Field"`

	// 过滤规则
	Condition *string `json:"Condition,omitempty" name:"Condition"`

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

	// 产品Id
	// 注意:此字段可能返回 null,表示取不到有效值。
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`
}

type ServiceAction

type ServiceAction struct {

	// 服务url地址
	Url *string `json:"Url,omitempty" name:"Url"`
}

type StringData

type StringData struct {

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

	// 描述
	Desc *string `json:"Desc,omitempty" name:"Desc"`

	// 读写模式
	Mode *string `json:"Mode,omitempty" name:"Mode"`

	// 长度范围
	Range []*uint64 `json:"Range,omitempty" name:"Range" list`
}

type Topic

type Topic struct {

	// TopicId
	TopicId *string `json:"TopicId,omitempty" name:"TopicId"`

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

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

	// 消息最大生命周期
	MsgLife *uint64 `json:"MsgLife,omitempty" name:"MsgLife"`

	// 消息最大大小
	MsgSize *uint64 `json:"MsgSize,omitempty" name:"MsgSize"`

	// 消息最大数量
	MsgCount *uint64 `json:"MsgCount,omitempty" name:"MsgCount"`

	// 已删除
	Deleted *uint64 `json:"Deleted,omitempty" name:"Deleted"`

	// Topic完整路径
	Path *string `json:"Path,omitempty" name:"Path"`

	// 创建时间
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

	// 更新时间
	UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
}

type TopicAction

type TopicAction struct {

	// 目标topic
	Topic *string `json:"Topic,omitempty" name:"Topic"`
}

type UnassociateSubDeviceFromGatewayProductRequest

type UnassociateSubDeviceFromGatewayProductRequest struct {
	*tchttp.BaseRequest

	// 子设备产品Id
	SubDeviceProductId *string `json:"SubDeviceProductId,omitempty" name:"SubDeviceProductId"`

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

func NewUnassociateSubDeviceFromGatewayProductRequest

func NewUnassociateSubDeviceFromGatewayProductRequest() (request *UnassociateSubDeviceFromGatewayProductRequest)

func (*UnassociateSubDeviceFromGatewayProductRequest) FromJsonString

func (*UnassociateSubDeviceFromGatewayProductRequest) ToJsonString

type UnassociateSubDeviceFromGatewayProductResponse

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

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

func NewUnassociateSubDeviceFromGatewayProductResponse

func NewUnassociateSubDeviceFromGatewayProductResponse() (response *UnassociateSubDeviceFromGatewayProductResponse)

func (*UnassociateSubDeviceFromGatewayProductResponse) FromJsonString

func (*UnassociateSubDeviceFromGatewayProductResponse) ToJsonString

type UpdateProductRequest

type UpdateProductRequest struct {
	*tchttp.BaseRequest

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

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

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

	// 数据模版
	DataTemplate []*DataTemplate `json:"DataTemplate,omitempty" name:"DataTemplate" list`
}

func NewUpdateProductRequest

func NewUpdateProductRequest() (request *UpdateProductRequest)

func (*UpdateProductRequest) FromJsonString

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

func (*UpdateProductRequest) ToJsonString

func (r *UpdateProductRequest) ToJsonString() string

type UpdateProductResponse

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

		// 更新后的产品信息
		Product *Product `json:"Product,omitempty" name:"Product"`

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

func NewUpdateProductResponse

func NewUpdateProductResponse() (response *UpdateProductResponse)

func (*UpdateProductResponse) FromJsonString

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

func (*UpdateProductResponse) ToJsonString

func (r *UpdateProductResponse) ToJsonString() string

type UpdateRuleRequest

type UpdateRuleRequest struct {
	*tchttp.BaseRequest

	// 规则Id
	RuleId *string `json:"RuleId,omitempty" name:"RuleId"`

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

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

	// 查询
	Query *RuleQuery `json:"Query,omitempty" name:"Query"`

	// 转发动作列表
	Actions []*Action `json:"Actions,omitempty" name:"Actions" list`

	// 数据类型(0:文本,1:二进制)
	DataType *uint64 `json:"DataType,omitempty" name:"DataType"`
}

func NewUpdateRuleRequest

func NewUpdateRuleRequest() (request *UpdateRuleRequest)

func (*UpdateRuleRequest) FromJsonString

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

func (*UpdateRuleRequest) ToJsonString

func (r *UpdateRuleRequest) ToJsonString() string

type UpdateRuleResponse

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

		// 规则
		Rule *Rule `json:"Rule,omitempty" name:"Rule"`

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

func NewUpdateRuleResponse

func NewUpdateRuleResponse() (response *UpdateRuleResponse)

func (*UpdateRuleResponse) FromJsonString

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

func (*UpdateRuleResponse) ToJsonString

func (r *UpdateRuleResponse) ToJsonString() string

Jump to

Keyboard shortcuts

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