v20180123

package
v1.0.935 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// action系统错误。
	INTERNALERROR_IOTACTIONSYSTEMERROR = "InternalError.IotActionSystemError"

	// DB错误。
	INTERNALERROR_IOTDBERROR = "InternalError.IotDbError"

	// 日志系统错误。
	INTERNALERROR_IOTLOGSYSTEMERROR = "InternalError.IotLogSystemError"

	// shadow系统错误。
	INTERNALERROR_IOTSHADOWSYSTEMERROR = "InternalError.IotShadowSystemError"

	// 系统错误。
	INTERNALERROR_IOTSYSTEMERROR = "InternalError.IotSystemError"

	// Mqiot系统错误。
	INTERNALERROR_MQIOTSYSTEMERROR = "InternalError.MqiotSystemError"

	// rule系统错误。
	INTERNALERROR_MQRULESYSTEMERROR = "InternalError.MqruleSystemError"

	// 非法密码。
	INVALIDPARAMETER_IOTAPPLICATIONINVALIDPASSWORD = "InvalidParameter.IotApplicationInvalidPassword"

	// 用户名或密码错误。
	INVALIDPARAMETER_IOTAPPLICATIONINVALIDUSERPASSWORD = "InvalidParameter.IotApplicationInvalidUserPassword"

	// 过期访问Token。
	INVALIDPARAMETER_IOTEXPIREDACCESSTOKEN = "InvalidParameter.IotExpiredAccessToken"

	// 过期签名。
	INVALIDPARAMETER_IOTEXPIREDSIGNATURE = "InvalidParameter.IotExpiredSignature"

	// 非法访问Token。
	INVALIDPARAMETER_IOTINVALIDACCESSTOKEN = "InvalidParameter.IotInvalidAccessToken"

	// 非法签名。
	INVALIDPARAMETER_IOTINVALIDSIGNATURE = "InvalidParameter.IotInvalidSignature"

	// 非法参数。
	INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"

	// 空数据模版。
	INVALIDPARAMETER_IOTPRODUCTEMPTYDATATEMPLATE = "InvalidParameter.IotProductEmptyDataTemplate"

	// 非法产品鉴权类型。
	INVALIDPARAMETER_IOTPRODUCTINVALIDAUTHTYPE = "InvalidParameter.IotProductInvalidAuthType"

	// 产品数据协议错误。
	INVALIDPARAMETER_IOTPRODUCTINVALIDDATAPROTOCOL = "InvalidParameter.IotProductInvalidDataProtocol"

	// 非法数据模版。
	INVALIDPARAMETER_IOTPRODUCTINVALIDDATATEMPLATE = "InvalidParameter.IotProductInvalidDataTemplate"

	// 非法数据模版取值范围。
	INVALIDPARAMETER_IOTPRODUCTINVALIDDATATEMPLATERANGE = "InvalidParameter.IotProductInvalidDataTemplateRange"

	// 网关设备产品Id错误。
	INVALIDPARAMETER_IOTPRODUCTINVALIDGATEWAYPRODUCTID = "InvalidParameter.IotProductInvalidGatewayProductId"

	// 子设备产品Id错误。
	INVALIDPARAMETER_IOTPRODUCTINVALIDSUBDEVICEPRODUCTID = "InvalidParameter.IotProductInvalidSubDeviceProductId"

	// 查询日期错误。
	INVALIDPARAMETER_IOTSTATINVALIDDATE = "InvalidParameter.IotStatInvalidDate"

	// 批量操作超限。
	LIMITEXCEEDED_IOTBATCHTOOMANY = "LimitExceeded.IotBatchTooMany"

	// 设备操作太频繁。
	LIMITEXCEEDED_IOTDEVICEOPTOOOFTEN = "LimitExceeded.IotDeviceOpTooOften"

	// 产品操作太频繁。
	LIMITEXCEEDED_IOTPRODUCTOPTOOOFTEN = "LimitExceeded.IotProductOpTooOften"

	// 产品的Topics数量超限。
	LIMITEXCEEDED_IOTPRODUCTTOOMANYTOPICS = "LimitExceeded.IotProductTooManyTopics"

	// 规则批量操作超限。
	LIMITEXCEEDED_IOTRULEOPTOOMANY = "LimitExceeded.IotRuleOpTooMany"

	// 规则操作太频繁。
	LIMITEXCEEDED_IOTRULEOPTOOOFTEN = "LimitExceeded.IotRuleOpTooOften"

	// Topic操作太频繁。
	LIMITEXCEEDED_IOTTOPICOPTOOOFTEN = "LimitExceeded.IotTopicOpTooOften"

	// 用户的产品数超限。
	LIMITEXCEEDED_IOTUSERTOOMANYPRODUCTS = "LimitExceeded.IotUserTooManyProducts"

	// 设备已绑定。
	RESOURCEINUSE_IOTAPPLICATIONDEVICEEXISTS = "ResourceInUse.IotApplicationDeviceExists"

	// 应用用户已存在。
	RESOURCEINUSE_IOTAPPLICATIONUSEREXISTS = "ResourceInUse.IotApplicationUserExists"

	// 设备已存在。
	RESOURCEINUSE_IOTDEVICEEXISTS = "ResourceInUse.IotDeviceExists"

	// 正在处理上一个操作。
	RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"

	// 产品已存在。
	RESOURCEINUSE_IOTPRODUCTEXISTS = "ResourceInUse.IotProductExists"

	// 规则已存在。
	RESOURCEINUSE_IOTRULEEXISTS = "ResourceInUse.IotRuleExists"

	// Topic已存在。
	RESOURCEINUSE_IOTTOPICEXISTS = "ResourceInUse.IotTopicExists"

	// 资源已存在。
	RESOURCEINUSE_MQIOTRESOURCEEXISTS = "ResourceInUse.MqiotResourceExists"

	// 设备未绑定。
	RESOURCENOTFOUND_IOTAPPLICATIONDEVICENOTEXISTS = "ResourceNotFound.IotApplicationDeviceNotExists"

	// 应用不存在。
	RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"

	// 应用用户不存在。
	RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"

	// 设备不存在。
	RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"

	// 产品不存在。
	RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"

	// 规则不存在。
	RESOURCENOTFOUND_IOTRULENOTEXISTS = "ResourceNotFound.IotRuleNotExists"

	// 授权子账号不存在。
	RESOURCENOTFOUND_IOTSUBACCOUNTNOTEXISTS = "ResourceNotFound.IotSubAccountNotExists"

	// Topic不存在。
	RESOURCENOTFOUND_IOTTOPICNOTEXISTS = "ResourceNotFound.IotTopicNotExists"

	// 用户不存在。
	RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

	// 规则config id不存在。
	RESOURCENOTFOUND_MQRULERULEIDNOTEXISTS = "ResourceNotFound.MqruleRuleIdNotExists"

	// 规则已启用。
	RESOURCEUNAVAILABLE_IOTRULEISACTIVE = "ResourceUnavailable.IotRuleIsActive"

	// 规则缺少动作。
	RESOURCEUNAVAILABLE_IOTRULENOACTION = "ResourceUnavailable.IotRuleNoAction"

	// 规则缺少查询。
	RESOURCEUNAVAILABLE_IOTRULENOQUERY = "ResourceUnavailable.IotRuleNoQuery"

	// 资源不存在。
	RESOURCEUNAVAILABLE_MQIOTRESOURCENOTEXISTS = "ResourceUnavailable.MqiotResourceNotExists"

	// 用户被封禁。
	UNAUTHORIZEDOPERATION_IOTUSERISSUSPENDED = "UnauthorizedOperation.IotUserIsSuspended"
)
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,omitnil,omitempty" name:"Topic"`

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

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

type ActivateRuleRequest

type ActivateRuleRequest struct {
	*tchttp.BaseRequest

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

func NewActivateRuleRequest

func NewActivateRuleRequest() (request *ActivateRuleRequest)

func (*ActivateRuleRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ActivateRuleRequest) ToJsonString

func (r *ActivateRuleRequest) ToJsonString() string

type ActivateRuleRequestParams added in v1.0.426

type ActivateRuleRequestParams struct {
	// 规则Id
	RuleId *string `json:"RuleId,omitnil,omitempty" name:"RuleId"`
}

Predefined struct for user

type ActivateRuleResponse

type ActivateRuleResponse struct {
	*tchttp.BaseResponse
	Response *ActivateRuleResponseParams `json:"Response"`
}

func NewActivateRuleResponse

func NewActivateRuleResponse() (response *ActivateRuleResponse)

func (*ActivateRuleResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ActivateRuleResponse) ToJsonString

func (r *ActivateRuleResponse) ToJsonString() string

type ActivateRuleResponseParams added in v1.0.426

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

Predefined struct for user

type AddDeviceRequest

type AddDeviceRequest struct {
	*tchttp.BaseRequest

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

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

func NewAddDeviceRequest

func NewAddDeviceRequest() (request *AddDeviceRequest)

func (*AddDeviceRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AddDeviceRequest) ToJsonString

func (r *AddDeviceRequest) ToJsonString() string

type AddDeviceRequestParams added in v1.0.426

type AddDeviceRequestParams struct {
	// 产品Id
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

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

Predefined struct for user

type AddDeviceResponse

type AddDeviceResponse struct {
	*tchttp.BaseResponse
	Response *AddDeviceResponseParams `json:"Response"`
}

func NewAddDeviceResponse

func NewAddDeviceResponse() (response *AddDeviceResponse)

func (*AddDeviceResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AddDeviceResponse) ToJsonString

func (r *AddDeviceResponse) ToJsonString() string

type AddDeviceResponseParams added in v1.0.426

type AddDeviceResponseParams struct {
	// 设备信息
	Device *Device `json:"Device,omitnil,omitempty" name:"Device"`

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

Predefined struct for user

type AddProductRequest

type AddProductRequest struct {
	*tchttp.BaseRequest

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

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

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

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

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

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

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

func NewAddProductRequest

func NewAddProductRequest() (request *AddProductRequest)

func (*AddProductRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AddProductRequest) ToJsonString

func (r *AddProductRequest) ToJsonString() string

type AddProductRequestParams added in v1.0.426

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

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

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

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

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

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

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

Predefined struct for user

type AddProductResponse

type AddProductResponse struct {
	*tchttp.BaseResponse
	Response *AddProductResponseParams `json:"Response"`
}

func NewAddProductResponse

func NewAddProductResponse() (response *AddProductResponse)

func (*AddProductResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AddProductResponse) ToJsonString

func (r *AddProductResponse) ToJsonString() string

type AddProductResponseParams added in v1.0.426

type AddProductResponseParams struct {
	// 产品信息
	Product *Product `json:"Product,omitnil,omitempty" name:"Product"`

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

Predefined struct for user

type AddRuleRequest

type AddRuleRequest struct {
	*tchttp.BaseRequest

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

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

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

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

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

func NewAddRuleRequest

func NewAddRuleRequest() (request *AddRuleRequest)

func (*AddRuleRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AddRuleRequest) ToJsonString

func (r *AddRuleRequest) ToJsonString() string

type AddRuleRequestParams added in v1.0.426

type AddRuleRequestParams struct {
	// 名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

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

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

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

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

Predefined struct for user

type AddRuleResponse

type AddRuleResponse struct {
	*tchttp.BaseResponse
	Response *AddRuleResponseParams `json:"Response"`
}

func NewAddRuleResponse

func NewAddRuleResponse() (response *AddRuleResponse)

func (*AddRuleResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AddRuleResponse) ToJsonString

func (r *AddRuleResponse) ToJsonString() string

type AddRuleResponseParams added in v1.0.426

type AddRuleResponseParams struct {
	// 规则
	Rule *Rule `json:"Rule,omitnil,omitempty" name:"Rule"`

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

Predefined struct for user

type AddTopicRequest

type AddTopicRequest struct {
	*tchttp.BaseRequest

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

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

func NewAddTopicRequest

func NewAddTopicRequest() (request *AddTopicRequest)

func (*AddTopicRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AddTopicRequest) ToJsonString

func (r *AddTopicRequest) ToJsonString() string

type AddTopicRequestParams added in v1.0.426

type AddTopicRequestParams struct {
	// 产品Id
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

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

Predefined struct for user

type AddTopicResponse

type AddTopicResponse struct {
	*tchttp.BaseResponse
	Response *AddTopicResponseParams `json:"Response"`
}

func NewAddTopicResponse

func NewAddTopicResponse() (response *AddTopicResponse)

func (*AddTopicResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AddTopicResponse) ToJsonString

func (r *AddTopicResponse) ToJsonString() string

type AddTopicResponseParams added in v1.0.426

type AddTopicResponseParams struct {
	// Topic信息
	Topic *Topic `json:"Topic,omitnil,omitempty" name:"Topic"`

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

Predefined struct for user

type AppAddUserRequest

type AppAddUserRequest struct {
	*tchttp.BaseRequest

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

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

func NewAppAddUserRequest

func NewAppAddUserRequest() (request *AppAddUserRequest)

func (*AppAddUserRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppAddUserRequest) ToJsonString

func (r *AppAddUserRequest) ToJsonString() string

type AppAddUserRequestParams added in v1.0.426

type AppAddUserRequestParams struct {
	// 用户名
	UserName *string `json:"UserName,omitnil,omitempty" name:"UserName"`

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

Predefined struct for user

type AppAddUserResponse

type AppAddUserResponse struct {
	*tchttp.BaseResponse
	Response *AppAddUserResponseParams `json:"Response"`
}

func NewAppAddUserResponse

func NewAppAddUserResponse() (response *AppAddUserResponse)

func (*AppAddUserResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppAddUserResponse) ToJsonString

func (r *AppAddUserResponse) ToJsonString() string

type AppAddUserResponseParams added in v1.0.426

type AppAddUserResponseParams struct {
	// 应用用户
	AppUser *AppUser `json:"AppUser,omitnil,omitempty" name:"AppUser"`

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

Predefined struct for user

type AppDeleteDeviceRequest

type AppDeleteDeviceRequest struct {
	*tchttp.BaseRequest

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

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

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

func NewAppDeleteDeviceRequest

func NewAppDeleteDeviceRequest() (request *AppDeleteDeviceRequest)

func (*AppDeleteDeviceRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppDeleteDeviceRequest) ToJsonString

func (r *AppDeleteDeviceRequest) ToJsonString() string

type AppDeleteDeviceRequestParams added in v1.0.426

type AppDeleteDeviceRequestParams struct {
	// 访问Token
	AccessToken *string `json:"AccessToken,omitnil,omitempty" name:"AccessToken"`

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

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

Predefined struct for user

type AppDeleteDeviceResponse

type AppDeleteDeviceResponse struct {
	*tchttp.BaseResponse
	Response *AppDeleteDeviceResponseParams `json:"Response"`
}

func NewAppDeleteDeviceResponse

func NewAppDeleteDeviceResponse() (response *AppDeleteDeviceResponse)

func (*AppDeleteDeviceResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppDeleteDeviceResponse) ToJsonString

func (r *AppDeleteDeviceResponse) ToJsonString() string

type AppDeleteDeviceResponseParams added in v1.0.426

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

Predefined struct for user

type AppDevice

type AppDevice struct {
	// 设备Id
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

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

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

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

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

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

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

type AppDeviceDetail

type AppDeviceDetail struct {
	// 设备Id
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

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

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

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

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

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

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

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

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

type AppGetDeviceDataRequest

type AppGetDeviceDataRequest struct {
	*tchttp.BaseRequest

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

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

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

func NewAppGetDeviceDataRequest

func NewAppGetDeviceDataRequest() (request *AppGetDeviceDataRequest)

func (*AppGetDeviceDataRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppGetDeviceDataRequest) ToJsonString

func (r *AppGetDeviceDataRequest) ToJsonString() string

type AppGetDeviceDataRequestParams added in v1.0.426

type AppGetDeviceDataRequestParams struct {
	// 访问Token
	AccessToken *string `json:"AccessToken,omitnil,omitempty" name:"AccessToken"`

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

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

Predefined struct for user

type AppGetDeviceDataResponse

type AppGetDeviceDataResponse struct {
	*tchttp.BaseResponse
	Response *AppGetDeviceDataResponseParams `json:"Response"`
}

func NewAppGetDeviceDataResponse

func NewAppGetDeviceDataResponse() (response *AppGetDeviceDataResponse)

func (*AppGetDeviceDataResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppGetDeviceDataResponse) ToJsonString

func (r *AppGetDeviceDataResponse) ToJsonString() string

type AppGetDeviceDataResponseParams added in v1.0.426

type AppGetDeviceDataResponseParams struct {
	// 设备数据。
	DeviceData *string `json:"DeviceData,omitnil,omitempty" name:"DeviceData"`

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

Predefined struct for user

type AppGetDeviceRequest

type AppGetDeviceRequest struct {
	*tchttp.BaseRequest

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

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

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

func NewAppGetDeviceRequest

func NewAppGetDeviceRequest() (request *AppGetDeviceRequest)

func (*AppGetDeviceRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppGetDeviceRequest) ToJsonString

func (r *AppGetDeviceRequest) ToJsonString() string

type AppGetDeviceRequestParams added in v1.0.426

type AppGetDeviceRequestParams struct {
	// 访问Token
	AccessToken *string `json:"AccessToken,omitnil,omitempty" name:"AccessToken"`

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

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

Predefined struct for user

type AppGetDeviceResponse

type AppGetDeviceResponse struct {
	*tchttp.BaseResponse
	Response *AppGetDeviceResponseParams `json:"Response"`
}

func NewAppGetDeviceResponse

func NewAppGetDeviceResponse() (response *AppGetDeviceResponse)

func (*AppGetDeviceResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppGetDeviceResponse) ToJsonString

func (r *AppGetDeviceResponse) ToJsonString() string

type AppGetDeviceResponseParams added in v1.0.426

type AppGetDeviceResponseParams struct {
	// 绑定设备详情
	AppDevice *AppDeviceDetail `json:"AppDevice,omitnil,omitempty" name:"AppDevice"`

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

Predefined struct for user

type AppGetDeviceStatusesRequest

type AppGetDeviceStatusesRequest struct {
	*tchttp.BaseRequest

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

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

func NewAppGetDeviceStatusesRequest

func NewAppGetDeviceStatusesRequest() (request *AppGetDeviceStatusesRequest)

func (*AppGetDeviceStatusesRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppGetDeviceStatusesRequest) ToJsonString

func (r *AppGetDeviceStatusesRequest) ToJsonString() string

type AppGetDeviceStatusesRequestParams added in v1.0.426

type AppGetDeviceStatusesRequestParams struct {
	// 访问Token
	AccessToken *string `json:"AccessToken,omitnil,omitempty" name:"AccessToken"`

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

Predefined struct for user

type AppGetDeviceStatusesResponse

type AppGetDeviceStatusesResponse struct {
	*tchttp.BaseResponse
	Response *AppGetDeviceStatusesResponseParams `json:"Response"`
}

func NewAppGetDeviceStatusesResponse

func NewAppGetDeviceStatusesResponse() (response *AppGetDeviceStatusesResponse)

func (*AppGetDeviceStatusesResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppGetDeviceStatusesResponse) ToJsonString

func (r *AppGetDeviceStatusesResponse) ToJsonString() string

type AppGetDeviceStatusesResponseParams added in v1.0.426

type AppGetDeviceStatusesResponseParams struct {
	// 设备状态
	DeviceStatuses []*DeviceStatus `json:"DeviceStatuses,omitnil,omitempty" name:"DeviceStatuses"`

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

Predefined struct for user

type AppGetDevicesRequest

type AppGetDevicesRequest struct {
	*tchttp.BaseRequest

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

func NewAppGetDevicesRequest

func NewAppGetDevicesRequest() (request *AppGetDevicesRequest)

func (*AppGetDevicesRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppGetDevicesRequest) ToJsonString

func (r *AppGetDevicesRequest) ToJsonString() string

type AppGetDevicesRequestParams added in v1.0.426

type AppGetDevicesRequestParams struct {
	// 访问Token
	AccessToken *string `json:"AccessToken,omitnil,omitempty" name:"AccessToken"`
}

Predefined struct for user

type AppGetDevicesResponse

type AppGetDevicesResponse struct {
	*tchttp.BaseResponse
	Response *AppGetDevicesResponseParams `json:"Response"`
}

func NewAppGetDevicesResponse

func NewAppGetDevicesResponse() (response *AppGetDevicesResponse)

func (*AppGetDevicesResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppGetDevicesResponse) ToJsonString

func (r *AppGetDevicesResponse) ToJsonString() string

type AppGetDevicesResponseParams added in v1.0.426

type AppGetDevicesResponseParams struct {
	// 绑定设备列表
	Devices []*AppDevice `json:"Devices,omitnil,omitempty" name:"Devices"`

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

Predefined struct for user

type AppGetTokenRequest

type AppGetTokenRequest struct {
	*tchttp.BaseRequest

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

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

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

func NewAppGetTokenRequest

func NewAppGetTokenRequest() (request *AppGetTokenRequest)

func (*AppGetTokenRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppGetTokenRequest) ToJsonString

func (r *AppGetTokenRequest) ToJsonString() string

type AppGetTokenRequestParams added in v1.0.426

type AppGetTokenRequestParams struct {
	// 用户名
	UserName *string `json:"UserName,omitnil,omitempty" name:"UserName"`

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

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

Predefined struct for user

type AppGetTokenResponse

type AppGetTokenResponse struct {
	*tchttp.BaseResponse
	Response *AppGetTokenResponseParams `json:"Response"`
}

func NewAppGetTokenResponse

func NewAppGetTokenResponse() (response *AppGetTokenResponse)

func (*AppGetTokenResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppGetTokenResponse) ToJsonString

func (r *AppGetTokenResponse) ToJsonString() string

type AppGetTokenResponseParams added in v1.0.426

type AppGetTokenResponseParams struct {
	// 访问Token
	AccessToken *string `json:"AccessToken,omitnil,omitempty" name:"AccessToken"`

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

Predefined struct for user

type AppGetUserRequest

type AppGetUserRequest struct {
	*tchttp.BaseRequest

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

func NewAppGetUserRequest

func NewAppGetUserRequest() (request *AppGetUserRequest)

func (*AppGetUserRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppGetUserRequest) ToJsonString

func (r *AppGetUserRequest) ToJsonString() string

type AppGetUserRequestParams added in v1.0.426

type AppGetUserRequestParams struct {
	// 访问Token
	AccessToken *string `json:"AccessToken,omitnil,omitempty" name:"AccessToken"`
}

Predefined struct for user

type AppGetUserResponse

type AppGetUserResponse struct {
	*tchttp.BaseResponse
	Response *AppGetUserResponseParams `json:"Response"`
}

func NewAppGetUserResponse

func NewAppGetUserResponse() (response *AppGetUserResponse)

func (*AppGetUserResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppGetUserResponse) ToJsonString

func (r *AppGetUserResponse) ToJsonString() string

type AppGetUserResponseParams added in v1.0.426

type AppGetUserResponseParams struct {
	// 用户信息
	AppUser *AppUser `json:"AppUser,omitnil,omitempty" name:"AppUser"`

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

Predefined struct for user

type AppIssueDeviceControlRequest

type AppIssueDeviceControlRequest struct {
	*tchttp.BaseRequest

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

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

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

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

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

func NewAppIssueDeviceControlRequest

func NewAppIssueDeviceControlRequest() (request *AppIssueDeviceControlRequest)

func (*AppIssueDeviceControlRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppIssueDeviceControlRequest) ToJsonString

func (r *AppIssueDeviceControlRequest) ToJsonString() string

type AppIssueDeviceControlRequestParams added in v1.0.426

type AppIssueDeviceControlRequestParams struct {
	// 访问Token
	AccessToken *string `json:"AccessToken,omitnil,omitempty" name:"AccessToken"`

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

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

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

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

Predefined struct for user

type AppIssueDeviceControlResponse

type AppIssueDeviceControlResponse struct {
	*tchttp.BaseResponse
	Response *AppIssueDeviceControlResponseParams `json:"Response"`
}

func NewAppIssueDeviceControlResponse

func NewAppIssueDeviceControlResponse() (response *AppIssueDeviceControlResponse)

func (*AppIssueDeviceControlResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppIssueDeviceControlResponse) ToJsonString

func (r *AppIssueDeviceControlResponse) ToJsonString() string

type AppIssueDeviceControlResponseParams added in v1.0.426

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

Predefined struct for user

type AppResetPasswordRequest

type AppResetPasswordRequest struct {
	*tchttp.BaseRequest

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

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

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

func NewAppResetPasswordRequest

func NewAppResetPasswordRequest() (request *AppResetPasswordRequest)

func (*AppResetPasswordRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppResetPasswordRequest) ToJsonString

func (r *AppResetPasswordRequest) ToJsonString() string

type AppResetPasswordRequestParams added in v1.0.426

type AppResetPasswordRequestParams struct {
	// 访问Token
	AccessToken *string `json:"AccessToken,omitnil,omitempty" name:"AccessToken"`

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

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

Predefined struct for user

type AppResetPasswordResponse

type AppResetPasswordResponse struct {
	*tchttp.BaseResponse
	Response *AppResetPasswordResponseParams `json:"Response"`
}

func NewAppResetPasswordResponse

func NewAppResetPasswordResponse() (response *AppResetPasswordResponse)

func (*AppResetPasswordResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppResetPasswordResponse) ToJsonString

func (r *AppResetPasswordResponse) ToJsonString() string

type AppResetPasswordResponseParams added in v1.0.426

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

Predefined struct for user

type AppSecureAddDeviceRequest

type AppSecureAddDeviceRequest struct {
	*tchttp.BaseRequest

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

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

func NewAppSecureAddDeviceRequest

func NewAppSecureAddDeviceRequest() (request *AppSecureAddDeviceRequest)

func (*AppSecureAddDeviceRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppSecureAddDeviceRequest) ToJsonString

func (r *AppSecureAddDeviceRequest) ToJsonString() string

type AppSecureAddDeviceRequestParams added in v1.0.426

type AppSecureAddDeviceRequestParams struct {
	// 访问Token
	AccessToken *string `json:"AccessToken,omitnil,omitempty" name:"AccessToken"`

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

Predefined struct for user

type AppSecureAddDeviceResponse

type AppSecureAddDeviceResponse struct {
	*tchttp.BaseResponse
	Response *AppSecureAddDeviceResponseParams `json:"Response"`
}

func NewAppSecureAddDeviceResponse

func NewAppSecureAddDeviceResponse() (response *AppSecureAddDeviceResponse)

func (*AppSecureAddDeviceResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppSecureAddDeviceResponse) ToJsonString

func (r *AppSecureAddDeviceResponse) ToJsonString() string

type AppSecureAddDeviceResponseParams added in v1.0.426

type AppSecureAddDeviceResponseParams struct {
	// 绑定设备信息
	AppDevice *AppDevice `json:"AppDevice,omitnil,omitempty" name:"AppDevice"`

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

Predefined struct for user

type AppUpdateDeviceRequest

type AppUpdateDeviceRequest struct {
	*tchttp.BaseRequest

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

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

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

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

func NewAppUpdateDeviceRequest

func NewAppUpdateDeviceRequest() (request *AppUpdateDeviceRequest)

func (*AppUpdateDeviceRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppUpdateDeviceRequest) ToJsonString

func (r *AppUpdateDeviceRequest) ToJsonString() string

type AppUpdateDeviceRequestParams added in v1.0.426

type AppUpdateDeviceRequestParams struct {
	// 访问Token
	AccessToken *string `json:"AccessToken,omitnil,omitempty" name:"AccessToken"`

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

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

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

Predefined struct for user

type AppUpdateDeviceResponse

type AppUpdateDeviceResponse struct {
	*tchttp.BaseResponse
	Response *AppUpdateDeviceResponseParams `json:"Response"`
}

func NewAppUpdateDeviceResponse

func NewAppUpdateDeviceResponse() (response *AppUpdateDeviceResponse)

func (*AppUpdateDeviceResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppUpdateDeviceResponse) ToJsonString

func (r *AppUpdateDeviceResponse) ToJsonString() string

type AppUpdateDeviceResponseParams added in v1.0.426

type AppUpdateDeviceResponseParams struct {
	// 设备信息
	AppDevice *AppDevice `json:"AppDevice,omitnil,omitempty" name:"AppDevice"`

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

Predefined struct for user

type AppUpdateUserRequest

type AppUpdateUserRequest struct {
	*tchttp.BaseRequest

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

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

func NewAppUpdateUserRequest

func NewAppUpdateUserRequest() (request *AppUpdateUserRequest)

func (*AppUpdateUserRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppUpdateUserRequest) ToJsonString

func (r *AppUpdateUserRequest) ToJsonString() string

type AppUpdateUserRequestParams added in v1.0.426

type AppUpdateUserRequestParams struct {
	// 访问Token
	AccessToken *string `json:"AccessToken,omitnil,omitempty" name:"AccessToken"`

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

Predefined struct for user

type AppUpdateUserResponse

type AppUpdateUserResponse struct {
	*tchttp.BaseResponse
	Response *AppUpdateUserResponseParams `json:"Response"`
}

func NewAppUpdateUserResponse

func NewAppUpdateUserResponse() (response *AppUpdateUserResponse)

func (*AppUpdateUserResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AppUpdateUserResponse) ToJsonString

func (r *AppUpdateUserResponse) ToJsonString() string

type AppUpdateUserResponseParams added in v1.0.426

type AppUpdateUserResponseParams struct {
	// 应用用户
	AppUser *AppUser `json:"AppUser,omitnil,omitempty" name:"AppUser"`

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

Predefined struct for user

type AppUser

type AppUser struct {
	// 应用Id
	ApplicationId *string `json:"ApplicationId,omitnil,omitempty" name:"ApplicationId"`

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

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

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

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

type AssociateSubDeviceToGatewayProductRequest

type AssociateSubDeviceToGatewayProductRequest struct {
	*tchttp.BaseRequest

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

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

func NewAssociateSubDeviceToGatewayProductRequest

func NewAssociateSubDeviceToGatewayProductRequest() (request *AssociateSubDeviceToGatewayProductRequest)

func (*AssociateSubDeviceToGatewayProductRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AssociateSubDeviceToGatewayProductRequest) ToJsonString

type AssociateSubDeviceToGatewayProductRequestParams added in v1.0.426

type AssociateSubDeviceToGatewayProductRequestParams struct {
	// 子设备产品Id
	SubDeviceProductId *string `json:"SubDeviceProductId,omitnil,omitempty" name:"SubDeviceProductId"`

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

Predefined struct for user

type AssociateSubDeviceToGatewayProductResponse

type AssociateSubDeviceToGatewayProductResponse struct {
	*tchttp.BaseResponse
	Response *AssociateSubDeviceToGatewayProductResponseParams `json:"Response"`
}

func NewAssociateSubDeviceToGatewayProductResponse

func NewAssociateSubDeviceToGatewayProductResponse() (response *AssociateSubDeviceToGatewayProductResponse)

func (*AssociateSubDeviceToGatewayProductResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AssociateSubDeviceToGatewayProductResponse) ToJsonString

type AssociateSubDeviceToGatewayProductResponseParams added in v1.0.426

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

Predefined struct for user

type BoolData

type BoolData struct {
	// 名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

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

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

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

type CkafkaAction

type CkafkaAction struct {
	// 实例Id
	InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

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

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

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential common.CredentialIface, 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)

ActivateRule 启用规则

可能返回的错误码:

INTERNALERROR_IOTACTIONSYSTEMERROR = "InternalError.IotActionSystemError"
INTERNALERROR_MQRULESYSTEMERROR = "InternalError.MqruleSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTRULEOPTOOOFTEN = "LimitExceeded.IotRuleOpTooOften"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTRULENOTEXISTS = "ResourceNotFound.IotRuleNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
RESOURCEUNAVAILABLE_IOTRULEISACTIVE = "ResourceUnavailable.IotRuleIsActive"
RESOURCEUNAVAILABLE_IOTRULENOACTION = "ResourceUnavailable.IotRuleNoAction"
RESOURCEUNAVAILABLE_IOTRULENOQUERY = "ResourceUnavailable.IotRuleNoQuery"
UNAUTHORIZEDOPERATION_IOTUSERISSUSPENDED = "UnauthorizedOperation.IotUserIsSuspended"

func (*Client) ActivateRuleWithContext added in v1.0.324

func (c *Client) ActivateRuleWithContext(ctx context.Context, request *ActivateRuleRequest) (response *ActivateRuleResponse, err error)

ActivateRule 启用规则

可能返回的错误码:

INTERNALERROR_IOTACTIONSYSTEMERROR = "InternalError.IotActionSystemError"
INTERNALERROR_MQRULESYSTEMERROR = "InternalError.MqruleSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTRULEOPTOOOFTEN = "LimitExceeded.IotRuleOpTooOften"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTRULENOTEXISTS = "ResourceNotFound.IotRuleNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
RESOURCEUNAVAILABLE_IOTRULEISACTIVE = "ResourceUnavailable.IotRuleIsActive"
RESOURCEUNAVAILABLE_IOTRULENOACTION = "ResourceUnavailable.IotRuleNoAction"
RESOURCEUNAVAILABLE_IOTRULENOQUERY = "ResourceUnavailable.IotRuleNoQuery"
UNAUTHORIZEDOPERATION_IOTUSERISSUSPENDED = "UnauthorizedOperation.IotUserIsSuspended"

func (*Client) AddDevice

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

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

可能返回的错误码:

INTERNALERROR_IOTDBERROR = "InternalError.IotDbError"
INTERNALERROR_IOTSHADOWSYSTEMERROR = "InternalError.IotShadowSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTDEVICEOPTOOOFTEN = "LimitExceeded.IotDeviceOpTooOften"
RESOURCEINUSE_IOTDEVICEEXISTS = "ResourceInUse.IotDeviceExists"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCEINUSE_MQIOTRESOURCEEXISTS = "ResourceInUse.MqiotResourceExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
UNAUTHORIZEDOPERATION_IOTUSERISSUSPENDED = "UnauthorizedOperation.IotUserIsSuspended"

func (*Client) AddDeviceWithContext added in v1.0.324

func (c *Client) AddDeviceWithContext(ctx context.Context, request *AddDeviceRequest) (response *AddDeviceResponse, err error)

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

可能返回的错误码:

INTERNALERROR_IOTDBERROR = "InternalError.IotDbError"
INTERNALERROR_IOTSHADOWSYSTEMERROR = "InternalError.IotShadowSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTDEVICEOPTOOOFTEN = "LimitExceeded.IotDeviceOpTooOften"
RESOURCEINUSE_IOTDEVICEEXISTS = "ResourceInUse.IotDeviceExists"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCEINUSE_MQIOTRESOURCEEXISTS = "ResourceInUse.MqiotResourceExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
UNAUTHORIZEDOPERATION_IOTUSERISSUSPENDED = "UnauthorizedOperation.IotUserIsSuspended"

func (*Client) AddProduct

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

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

可能返回的错误码:

INTERNALERROR_IOTSHADOWSYSTEMERROR = "InternalError.IotShadowSystemError"
INTERNALERROR_MQIOTSYSTEMERROR = "InternalError.MqiotSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
INVALIDPARAMETER_IOTPRODUCTINVALIDDATATEMPLATE = "InvalidParameter.IotProductInvalidDataTemplate"
INVALIDPARAMETER_IOTPRODUCTINVALIDDATATEMPLATERANGE = "InvalidParameter.IotProductInvalidDataTemplateRange"
LIMITEXCEEDED_IOTPRODUCTOPTOOOFTEN = "LimitExceeded.IotProductOpTooOften"
LIMITEXCEEDED_IOTUSERTOOMANYPRODUCTS = "LimitExceeded.IotUserTooManyProducts"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCEINUSE_IOTPRODUCTEXISTS = "ResourceInUse.IotProductExists"
RESOURCEINUSE_MQIOTRESOURCEEXISTS = "ResourceInUse.MqiotResourceExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
UNAUTHORIZEDOPERATION_IOTUSERISSUSPENDED = "UnauthorizedOperation.IotUserIsSuspended"

func (*Client) AddProductWithContext added in v1.0.324

func (c *Client) AddProductWithContext(ctx context.Context, request *AddProductRequest) (response *AddProductResponse, err error)

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

可能返回的错误码:

INTERNALERROR_IOTSHADOWSYSTEMERROR = "InternalError.IotShadowSystemError"
INTERNALERROR_MQIOTSYSTEMERROR = "InternalError.MqiotSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
INVALIDPARAMETER_IOTPRODUCTINVALIDDATATEMPLATE = "InvalidParameter.IotProductInvalidDataTemplate"
INVALIDPARAMETER_IOTPRODUCTINVALIDDATATEMPLATERANGE = "InvalidParameter.IotProductInvalidDataTemplateRange"
LIMITEXCEEDED_IOTPRODUCTOPTOOOFTEN = "LimitExceeded.IotProductOpTooOften"
LIMITEXCEEDED_IOTUSERTOOMANYPRODUCTS = "LimitExceeded.IotUserTooManyProducts"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCEINUSE_IOTPRODUCTEXISTS = "ResourceInUse.IotProductExists"
RESOURCEINUSE_MQIOTRESOURCEEXISTS = "ResourceInUse.MqiotResourceExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
UNAUTHORIZEDOPERATION_IOTUSERISSUSPENDED = "UnauthorizedOperation.IotUserIsSuspended"

func (*Client) AddRule

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

AddRule 新增规则

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
INVALIDPARAMETER_IOTPRODUCTEMPTYDATATEMPLATE = "InvalidParameter.IotProductEmptyDataTemplate"
INVALIDPARAMETER_IOTPRODUCTINVALIDDATAPROTOCOL = "InvalidParameter.IotProductInvalidDataProtocol"
LIMITEXCEEDED_IOTRULEOPTOOMANY = "LimitExceeded.IotRuleOpTooMany"
LIMITEXCEEDED_IOTRULEOPTOOOFTEN = "LimitExceeded.IotRuleOpTooOften"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCEINUSE_IOTRULEEXISTS = "ResourceInUse.IotRuleExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
UNAUTHORIZEDOPERATION_IOTUSERISSUSPENDED = "UnauthorizedOperation.IotUserIsSuspended"

func (*Client) AddRuleWithContext added in v1.0.324

func (c *Client) AddRuleWithContext(ctx context.Context, request *AddRuleRequest) (response *AddRuleResponse, err error)

AddRule 新增规则

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
INVALIDPARAMETER_IOTPRODUCTEMPTYDATATEMPLATE = "InvalidParameter.IotProductEmptyDataTemplate"
INVALIDPARAMETER_IOTPRODUCTINVALIDDATAPROTOCOL = "InvalidParameter.IotProductInvalidDataProtocol"
LIMITEXCEEDED_IOTRULEOPTOOMANY = "LimitExceeded.IotRuleOpTooMany"
LIMITEXCEEDED_IOTRULEOPTOOOFTEN = "LimitExceeded.IotRuleOpTooOften"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCEINUSE_IOTRULEEXISTS = "ResourceInUse.IotRuleExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
UNAUTHORIZEDOPERATION_IOTUSERISSUSPENDED = "UnauthorizedOperation.IotUserIsSuspended"

func (*Client) AddTopic

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

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

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTPRODUCTTOOMANYTOPICS = "LimitExceeded.IotProductTooManyTopics"
LIMITEXCEEDED_IOTTOPICOPTOOOFTEN = "LimitExceeded.IotTopicOpTooOften"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCEINUSE_IOTTOPICEXISTS = "ResourceInUse.IotTopicExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
UNAUTHORIZEDOPERATION_IOTUSERISSUSPENDED = "UnauthorizedOperation.IotUserIsSuspended"

func (*Client) AddTopicWithContext added in v1.0.324

func (c *Client) AddTopicWithContext(ctx context.Context, request *AddTopicRequest) (response *AddTopicResponse, err error)

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

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTPRODUCTTOOMANYTOPICS = "LimitExceeded.IotProductTooManyTopics"
LIMITEXCEEDED_IOTTOPICOPTOOOFTEN = "LimitExceeded.IotTopicOpTooOften"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCEINUSE_IOTTOPICEXISTS = "ResourceInUse.IotTopicExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
UNAUTHORIZEDOPERATION_IOTUSERISSUSPENDED = "UnauthorizedOperation.IotUserIsSuspended"

func (*Client) AppAddUser

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

AppAddUser 为APP提供用户注册功能

可能返回的错误码:

INTERNALERROR_IOTSYSTEMERROR = "InternalError.IotSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCEINUSE_IOTAPPLICATIONUSEREXISTS = "ResourceInUse.IotApplicationUserExists"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"

func (*Client) AppAddUserWithContext added in v1.0.324

func (c *Client) AppAddUserWithContext(ctx context.Context, request *AppAddUserRequest) (response *AppAddUserResponse, err error)

AppAddUser 为APP提供用户注册功能

可能返回的错误码:

INTERNALERROR_IOTSYSTEMERROR = "InternalError.IotSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCEINUSE_IOTAPPLICATIONUSEREXISTS = "ResourceInUse.IotApplicationUserExists"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"

func (*Client) AppDeleteDevice

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

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

可能返回的错误码:

INVALIDPARAMETER_IOTEXPIREDACCESSTOKEN = "InvalidParameter.IotExpiredAccessToken"
INVALIDPARAMETER_IOTINVALIDACCESSTOKEN = "InvalidParameter.IotInvalidAccessToken"
RESOURCENOTFOUND_IOTAPPLICATIONDEVICENOTEXISTS = "ResourceNotFound.IotApplicationDeviceNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"

func (*Client) AppDeleteDeviceWithContext added in v1.0.324

func (c *Client) AppDeleteDeviceWithContext(ctx context.Context, request *AppDeleteDeviceRequest) (response *AppDeleteDeviceResponse, err error)

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

可能返回的错误码:

INVALIDPARAMETER_IOTEXPIREDACCESSTOKEN = "InvalidParameter.IotExpiredAccessToken"
INVALIDPARAMETER_IOTINVALIDACCESSTOKEN = "InvalidParameter.IotInvalidAccessToken"
RESOURCENOTFOUND_IOTAPPLICATIONDEVICENOTEXISTS = "ResourceNotFound.IotApplicationDeviceNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"

func (*Client) AppGetDevice

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

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

可能返回的错误码:

INVALIDPARAMETER_IOTEXPIREDACCESSTOKEN = "InvalidParameter.IotExpiredAccessToken"
INVALIDPARAMETER_IOTINVALIDACCESSTOKEN = "InvalidParameter.IotInvalidAccessToken"
RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"

func (*Client) AppGetDeviceData

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

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

可能返回的错误码:

INVALIDPARAMETER_IOTEXPIREDACCESSTOKEN = "InvalidParameter.IotExpiredAccessToken"
INVALIDPARAMETER_IOTINVALIDACCESSTOKEN = "InvalidParameter.IotInvalidAccessToken"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTAPPLICATIONDEVICENOTEXISTS = "ResourceNotFound.IotApplicationDeviceNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"

func (*Client) AppGetDeviceDataWithContext added in v1.0.324

func (c *Client) AppGetDeviceDataWithContext(ctx context.Context, request *AppGetDeviceDataRequest) (response *AppGetDeviceDataResponse, err error)

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

可能返回的错误码:

INVALIDPARAMETER_IOTEXPIREDACCESSTOKEN = "InvalidParameter.IotExpiredAccessToken"
INVALIDPARAMETER_IOTINVALIDACCESSTOKEN = "InvalidParameter.IotInvalidAccessToken"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTAPPLICATIONDEVICENOTEXISTS = "ResourceNotFound.IotApplicationDeviceNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"

func (*Client) AppGetDeviceStatuses

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

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

可能返回的错误码:

INVALIDPARAMETER_IOTEXPIREDACCESSTOKEN = "InvalidParameter.IotExpiredAccessToken"
INVALIDPARAMETER_IOTINVALIDACCESSTOKEN = "InvalidParameter.IotInvalidAccessToken"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTBATCHTOOMANY = "LimitExceeded.IotBatchTooMany"
RESOURCENOTFOUND_IOTAPPLICATIONDEVICENOTEXISTS = "ResourceNotFound.IotApplicationDeviceNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"

func (*Client) AppGetDeviceStatusesWithContext added in v1.0.324

func (c *Client) AppGetDeviceStatusesWithContext(ctx context.Context, request *AppGetDeviceStatusesRequest) (response *AppGetDeviceStatusesResponse, err error)

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

可能返回的错误码:

INVALIDPARAMETER_IOTEXPIREDACCESSTOKEN = "InvalidParameter.IotExpiredAccessToken"
INVALIDPARAMETER_IOTINVALIDACCESSTOKEN = "InvalidParameter.IotInvalidAccessToken"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTBATCHTOOMANY = "LimitExceeded.IotBatchTooMany"
RESOURCENOTFOUND_IOTAPPLICATIONDEVICENOTEXISTS = "ResourceNotFound.IotApplicationDeviceNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"

func (*Client) AppGetDeviceWithContext added in v1.0.324

func (c *Client) AppGetDeviceWithContext(ctx context.Context, request *AppGetDeviceRequest) (response *AppGetDeviceResponse, err error)

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

可能返回的错误码:

INVALIDPARAMETER_IOTEXPIREDACCESSTOKEN = "InvalidParameter.IotExpiredAccessToken"
INVALIDPARAMETER_IOTINVALIDACCESSTOKEN = "InvalidParameter.IotInvalidAccessToken"
RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"

func (*Client) AppGetDevices

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

AppGetDevices 获取用户的绑定设备列表

可能返回的错误码:

RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"

func (*Client) AppGetDevicesWithContext added in v1.0.324

func (c *Client) AppGetDevicesWithContext(ctx context.Context, request *AppGetDevicesRequest) (response *AppGetDevicesResponse, err error)

AppGetDevices 获取用户的绑定设备列表

可能返回的错误码:

RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"

func (*Client) AppGetToken

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

AppGetToken 获取用户token

可能返回的错误码:

INTERNALERROR_IOTSYSTEMERROR = "InternalError.IotSystemError"
INVALIDPARAMETER_IOTAPPLICATIONINVALIDUSERPASSWORD = "InvalidParameter.IotApplicationInvalidUserPassword"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"

func (*Client) AppGetTokenWithContext added in v1.0.324

func (c *Client) AppGetTokenWithContext(ctx context.Context, request *AppGetTokenRequest) (response *AppGetTokenResponse, err error)

AppGetToken 获取用户token

可能返回的错误码:

INTERNALERROR_IOTSYSTEMERROR = "InternalError.IotSystemError"
INVALIDPARAMETER_IOTAPPLICATIONINVALIDUSERPASSWORD = "InvalidParameter.IotApplicationInvalidUserPassword"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"

func (*Client) AppGetUser

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

AppGetUser 获取用户信息

可能返回的错误码:

INTERNALERROR_IOTSYSTEMERROR = "InternalError.IotSystemError"
INVALIDPARAMETER_IOTEXPIREDACCESSTOKEN = "InvalidParameter.IotExpiredAccessToken"
INVALIDPARAMETER_IOTINVALIDACCESSTOKEN = "InvalidParameter.IotInvalidAccessToken"
RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"

func (*Client) AppGetUserWithContext added in v1.0.324

func (c *Client) AppGetUserWithContext(ctx context.Context, request *AppGetUserRequest) (response *AppGetUserResponse, err error)

AppGetUser 获取用户信息

可能返回的错误码:

INTERNALERROR_IOTSYSTEMERROR = "InternalError.IotSystemError"
INVALIDPARAMETER_IOTEXPIREDACCESSTOKEN = "InvalidParameter.IotExpiredAccessToken"
INVALIDPARAMETER_IOTINVALIDACCESSTOKEN = "InvalidParameter.IotInvalidAccessToken"
RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"

func (*Client) AppIssueDeviceControl

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

AppIssueDeviceControl 用户通过APP控制设备

可能返回的错误码:

RESOURCENOTFOUND_IOTAPPLICATIONDEVICENOTEXISTS = "ResourceNotFound.IotApplicationDeviceNotExists"

func (*Client) AppIssueDeviceControlWithContext added in v1.0.324

func (c *Client) AppIssueDeviceControlWithContext(ctx context.Context, request *AppIssueDeviceControlRequest) (response *AppIssueDeviceControlResponse, err error)

AppIssueDeviceControl 用户通过APP控制设备

可能返回的错误码:

RESOURCENOTFOUND_IOTAPPLICATIONDEVICENOTEXISTS = "ResourceNotFound.IotApplicationDeviceNotExists"

func (*Client) AppResetPassword

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

AppResetPassword 重置APP用户密码

可能返回的错误码:

INVALIDPARAMETER_IOTAPPLICATIONINVALIDPASSWORD = "InvalidParameter.IotApplicationInvalidPassword"
RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"

func (*Client) AppResetPasswordWithContext added in v1.0.324

func (c *Client) AppResetPasswordWithContext(ctx context.Context, request *AppResetPasswordRequest) (response *AppResetPasswordResponse, err error)

AppResetPassword 重置APP用户密码

可能返回的错误码:

INVALIDPARAMETER_IOTAPPLICATIONINVALIDPASSWORD = "InvalidParameter.IotApplicationInvalidPassword"
RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"

func (*Client) AppSecureAddDevice

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

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

可能返回的错误码:

INVALIDPARAMETER_IOTEXPIREDACCESSTOKEN = "InvalidParameter.IotExpiredAccessToken"
INVALIDPARAMETER_IOTEXPIREDSIGNATURE = "InvalidParameter.IotExpiredSignature"
INVALIDPARAMETER_IOTINVALIDACCESSTOKEN = "InvalidParameter.IotInvalidAccessToken"
INVALIDPARAMETER_IOTINVALIDSIGNATURE = "InvalidParameter.IotInvalidSignature"
RESOURCEINUSE_IOTAPPLICATIONDEVICEEXISTS = "ResourceInUse.IotApplicationDeviceExists"
RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"

func (*Client) AppSecureAddDeviceWithContext added in v1.0.324

func (c *Client) AppSecureAddDeviceWithContext(ctx context.Context, request *AppSecureAddDeviceRequest) (response *AppSecureAddDeviceResponse, err error)

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

可能返回的错误码:

INVALIDPARAMETER_IOTEXPIREDACCESSTOKEN = "InvalidParameter.IotExpiredAccessToken"
INVALIDPARAMETER_IOTEXPIREDSIGNATURE = "InvalidParameter.IotExpiredSignature"
INVALIDPARAMETER_IOTINVALIDACCESSTOKEN = "InvalidParameter.IotInvalidAccessToken"
INVALIDPARAMETER_IOTINVALIDSIGNATURE = "InvalidParameter.IotInvalidSignature"
RESOURCEINUSE_IOTAPPLICATIONDEVICEEXISTS = "ResourceInUse.IotApplicationDeviceExists"
RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"

func (*Client) AppUpdateDevice

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

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

可能返回的错误码:

INVALIDPARAMETER_IOTEXPIREDACCESSTOKEN = "InvalidParameter.IotExpiredAccessToken"
INVALIDPARAMETER_IOTINVALIDACCESSTOKEN = "InvalidParameter.IotInvalidAccessToken"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTAPPLICATIONDEVICENOTEXISTS = "ResourceNotFound.IotApplicationDeviceNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"

func (*Client) AppUpdateDeviceWithContext added in v1.0.324

func (c *Client) AppUpdateDeviceWithContext(ctx context.Context, request *AppUpdateDeviceRequest) (response *AppUpdateDeviceResponse, err error)

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

可能返回的错误码:

INVALIDPARAMETER_IOTEXPIREDACCESSTOKEN = "InvalidParameter.IotExpiredAccessToken"
INVALIDPARAMETER_IOTINVALIDACCESSTOKEN = "InvalidParameter.IotInvalidAccessToken"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTAPPLICATIONDEVICENOTEXISTS = "ResourceNotFound.IotApplicationDeviceNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"

func (*Client) AppUpdateUser

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

AppUpdateUser 修改用户信息

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"

func (*Client) AppUpdateUserWithContext added in v1.0.324

func (c *Client) AppUpdateUserWithContext(ctx context.Context, request *AppUpdateUserRequest) (response *AppUpdateUserResponse, err error)

AppUpdateUser 修改用户信息

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTAPPLICATIONNOTEXISTS = "ResourceNotFound.IotApplicationNotExists"
RESOURCENOTFOUND_IOTAPPLICATIONUSERNOTEXISTS = "ResourceNotFound.IotApplicationUserNotExists"

func (*Client) AssociateSubDeviceToGatewayProduct

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

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

可能返回的错误码:

INVALIDPARAMETER_IOTPRODUCTINVALIDGATEWAYPRODUCTID = "InvalidParameter.IotProductInvalidGatewayProductId"
INVALIDPARAMETER_IOTPRODUCTINVALIDSUBDEVICEPRODUCTID = "InvalidParameter.IotProductInvalidSubDeviceProductId"

func (*Client) AssociateSubDeviceToGatewayProductWithContext added in v1.0.324

func (c *Client) AssociateSubDeviceToGatewayProductWithContext(ctx context.Context, request *AssociateSubDeviceToGatewayProductRequest) (response *AssociateSubDeviceToGatewayProductResponse, err error)

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

可能返回的错误码:

INVALIDPARAMETER_IOTPRODUCTINVALIDGATEWAYPRODUCTID = "InvalidParameter.IotProductInvalidGatewayProductId"
INVALIDPARAMETER_IOTPRODUCTINVALIDSUBDEVICEPRODUCTID = "InvalidParameter.IotProductInvalidSubDeviceProductId"

func (*Client) DeactivateRule

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

DeactivateRule 禁用规则

可能返回的错误码:

INTERNALERROR_IOTACTIONSYSTEMERROR = "InternalError.IotActionSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTRULEOPTOOOFTEN = "LimitExceeded.IotRuleOpTooOften"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTRULENOTEXISTS = "ResourceNotFound.IotRuleNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
RESOURCENOTFOUND_MQRULERULEIDNOTEXISTS = "ResourceNotFound.MqruleRuleIdNotExists"

func (*Client) DeactivateRuleWithContext added in v1.0.324

func (c *Client) DeactivateRuleWithContext(ctx context.Context, request *DeactivateRuleRequest) (response *DeactivateRuleResponse, err error)

DeactivateRule 禁用规则

可能返回的错误码:

INTERNALERROR_IOTACTIONSYSTEMERROR = "InternalError.IotActionSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTRULEOPTOOOFTEN = "LimitExceeded.IotRuleOpTooOften"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTRULENOTEXISTS = "ResourceNotFound.IotRuleNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
RESOURCENOTFOUND_MQRULERULEIDNOTEXISTS = "ResourceNotFound.MqruleRuleIdNotExists"

func (*Client) DeleteDevice

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

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

可能返回的错误码:

INTERNALERROR_IOTSHADOWSYSTEMERROR = "InternalError.IotShadowSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTDEVICEOPTOOOFTEN = "LimitExceeded.IotDeviceOpTooOften"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
RESOURCEUNAVAILABLE_MQIOTRESOURCENOTEXISTS = "ResourceUnavailable.MqiotResourceNotExists"

func (*Client) DeleteDeviceWithContext added in v1.0.324

func (c *Client) DeleteDeviceWithContext(ctx context.Context, request *DeleteDeviceRequest) (response *DeleteDeviceResponse, err error)

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

可能返回的错误码:

INTERNALERROR_IOTSHADOWSYSTEMERROR = "InternalError.IotShadowSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTDEVICEOPTOOOFTEN = "LimitExceeded.IotDeviceOpTooOften"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
RESOURCEUNAVAILABLE_MQIOTRESOURCENOTEXISTS = "ResourceUnavailable.MqiotResourceNotExists"

func (*Client) DeleteProduct

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

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

可能返回的错误码:

INTERNALERROR_IOTSHADOWSYSTEMERROR = "InternalError.IotShadowSystemError"
INTERNALERROR_MQIOTSYSTEMERROR = "InternalError.MqiotSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTPRODUCTOPTOOOFTEN = "LimitExceeded.IotProductOpTooOften"
RESOURCEINUSE_IOTDEVICEEXISTS = "ResourceInUse.IotDeviceExists"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCEINUSE_IOTRULEEXISTS = "ResourceInUse.IotRuleExists"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) DeleteProductWithContext added in v1.0.324

func (c *Client) DeleteProductWithContext(ctx context.Context, request *DeleteProductRequest) (response *DeleteProductResponse, err error)

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

可能返回的错误码:

INTERNALERROR_IOTSHADOWSYSTEMERROR = "InternalError.IotShadowSystemError"
INTERNALERROR_MQIOTSYSTEMERROR = "InternalError.MqiotSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTPRODUCTOPTOOOFTEN = "LimitExceeded.IotProductOpTooOften"
RESOURCEINUSE_IOTDEVICEEXISTS = "ResourceInUse.IotDeviceExists"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCEINUSE_IOTRULEEXISTS = "ResourceInUse.IotRuleExists"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) DeleteRule

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

DeleteRule 删除规则

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTRULEOPTOOOFTEN = "LimitExceeded.IotRuleOpTooOften"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCENOTFOUND_IOTRULENOTEXISTS = "ResourceNotFound.IotRuleNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
RESOURCEUNAVAILABLE_IOTRULEISACTIVE = "ResourceUnavailable.IotRuleIsActive"

func (*Client) DeleteRuleWithContext added in v1.0.324

func (c *Client) DeleteRuleWithContext(ctx context.Context, request *DeleteRuleRequest) (response *DeleteRuleResponse, err error)

DeleteRule 删除规则

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTRULEOPTOOOFTEN = "LimitExceeded.IotRuleOpTooOften"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCENOTFOUND_IOTRULENOTEXISTS = "ResourceNotFound.IotRuleNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
RESOURCEUNAVAILABLE_IOTRULEISACTIVE = "ResourceUnavailable.IotRuleIsActive"

func (*Client) DeleteTopic

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

DeleteTopic 删除Topic

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTTOPICOPTOOOFTEN = "LimitExceeded.IotTopicOpTooOften"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCENOTFOUND_IOTTOPICNOTEXISTS = "ResourceNotFound.IotTopicNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) DeleteTopicWithContext added in v1.0.324

func (c *Client) DeleteTopicWithContext(ctx context.Context, request *DeleteTopicRequest) (response *DeleteTopicResponse, err error)

DeleteTopic 删除Topic

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTTOPICOPTOOOFTEN = "LimitExceeded.IotTopicOpTooOften"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCENOTFOUND_IOTTOPICNOTEXISTS = "ResourceNotFound.IotTopicNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetDataHistory

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

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

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTBATCHTOOMANY = "LimitExceeded.IotBatchTooMany"
RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetDataHistoryWithContext added in v1.0.324

func (c *Client) GetDataHistoryWithContext(ctx context.Context, request *GetDataHistoryRequest) (response *GetDataHistoryResponse, err error)

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

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTBATCHTOOMANY = "LimitExceeded.IotBatchTooMany"
RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetDebugLog

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

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

可能返回的错误码:

INTERNALERROR_IOTLOGSYSTEMERROR = "InternalError.IotLogSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTBATCHTOOMANY = "LimitExceeded.IotBatchTooMany"
RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetDebugLogWithContext added in v1.0.324

func (c *Client) GetDebugLogWithContext(ctx context.Context, request *GetDebugLogRequest) (response *GetDebugLogResponse, err error)

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

可能返回的错误码:

INTERNALERROR_IOTLOGSYSTEMERROR = "InternalError.IotLogSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTBATCHTOOMANY = "LimitExceeded.IotBatchTooMany"
RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetDevice

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

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

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetDeviceData

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

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

可能返回的错误码:

INTERNALERROR_IOTSHADOWSYSTEMERROR = "InternalError.IotShadowSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetDeviceDataWithContext added in v1.0.324

func (c *Client) GetDeviceDataWithContext(ctx context.Context, request *GetDeviceDataRequest) (response *GetDeviceDataResponse, err error)

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

可能返回的错误码:

INTERNALERROR_IOTSHADOWSYSTEMERROR = "InternalError.IotShadowSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetDeviceLog

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

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

可能返回的错误码:

INTERNALERROR_IOTLOGSYSTEMERROR = "InternalError.IotLogSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTBATCHTOOMANY = "LimitExceeded.IotBatchTooMany"
RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetDeviceLogWithContext added in v1.0.324

func (c *Client) GetDeviceLogWithContext(ctx context.Context, request *GetDeviceLogRequest) (response *GetDeviceLogResponse, err error)

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

可能返回的错误码:

INTERNALERROR_IOTLOGSYSTEMERROR = "InternalError.IotLogSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTBATCHTOOMANY = "LimitExceeded.IotBatchTooMany"
RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetDeviceSignatures

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

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

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTBATCHTOOMANY = "LimitExceeded.IotBatchTooMany"
RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetDeviceSignaturesWithContext added in v1.0.324

func (c *Client) GetDeviceSignaturesWithContext(ctx context.Context, request *GetDeviceSignaturesRequest) (response *GetDeviceSignaturesResponse, err error)

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

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTBATCHTOOMANY = "LimitExceeded.IotBatchTooMany"
RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetDeviceStatistics

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

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

可能返回的错误码:

INTERNALERROR_IOTDBERROR = "InternalError.IotDbError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
INVALIDPARAMETER_IOTSTATINVALIDDATE = "InvalidParameter.IotStatInvalidDate"
LIMITEXCEEDED_IOTBATCHTOOMANY = "LimitExceeded.IotBatchTooMany"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetDeviceStatisticsWithContext added in v1.0.324

func (c *Client) GetDeviceStatisticsWithContext(ctx context.Context, request *GetDeviceStatisticsRequest) (response *GetDeviceStatisticsResponse, err error)

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

可能返回的错误码:

INTERNALERROR_IOTDBERROR = "InternalError.IotDbError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
INVALIDPARAMETER_IOTSTATINVALIDDATE = "InvalidParameter.IotStatInvalidDate"
LIMITEXCEEDED_IOTBATCHTOOMANY = "LimitExceeded.IotBatchTooMany"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetDeviceStatuses

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

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

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTBATCHTOOMANY = "LimitExceeded.IotBatchTooMany"
RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"

func (*Client) GetDeviceStatusesWithContext added in v1.0.324

func (c *Client) GetDeviceStatusesWithContext(ctx context.Context, request *GetDeviceStatusesRequest) (response *GetDeviceStatusesResponse, err error)

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

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
LIMITEXCEEDED_IOTBATCHTOOMANY = "LimitExceeded.IotBatchTooMany"
RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"

func (*Client) GetDeviceWithContext added in v1.0.324

func (c *Client) GetDeviceWithContext(ctx context.Context, request *GetDeviceRequest) (response *GetDeviceResponse, err error)

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

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetDevices

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

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

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetDevicesWithContext added in v1.0.324

func (c *Client) GetDevicesWithContext(ctx context.Context, request *GetDevicesRequest) (response *GetDevicesResponse, err error)

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

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetProduct

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

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

可能返回的错误码:

INTERNALERROR_IOTSYSTEMERROR = "InternalError.IotSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetProductWithContext added in v1.0.324

func (c *Client) GetProductWithContext(ctx context.Context, request *GetProductRequest) (response *GetProductResponse, err error)

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

可能返回的错误码:

INTERNALERROR_IOTSYSTEMERROR = "InternalError.IotSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetProducts

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

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

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetProductsWithContext added in v1.0.324

func (c *Client) GetProductsWithContext(ctx context.Context, request *GetProductsRequest) (response *GetProductsResponse, err error)

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

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetRule

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

GetRule 获取转发规则信息

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTRULENOTEXISTS = "ResourceNotFound.IotRuleNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetRuleWithContext added in v1.0.324

func (c *Client) GetRuleWithContext(ctx context.Context, request *GetRuleRequest) (response *GetRuleResponse, err error)

GetRule 获取转发规则信息

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTRULENOTEXISTS = "ResourceNotFound.IotRuleNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetRules

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

GetRules 获取转发规则列表

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetRulesWithContext added in v1.0.324

func (c *Client) GetRulesWithContext(ctx context.Context, request *GetRulesRequest) (response *GetRulesResponse, err error)

GetRules 获取转发规则列表

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetTopic

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

GetTopic 获取Topic信息

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTTOPICNOTEXISTS = "ResourceNotFound.IotTopicNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetTopicWithContext added in v1.0.324

func (c *Client) GetTopicWithContext(ctx context.Context, request *GetTopicRequest) (response *GetTopicResponse, err error)

GetTopic 获取Topic信息

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTTOPICNOTEXISTS = "ResourceNotFound.IotTopicNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetTopics

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

GetTopics 获取Topic列表

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) GetTopicsWithContext added in v1.0.324

func (c *Client) GetTopicsWithContext(ctx context.Context, request *GetTopicsRequest) (response *GetTopicsResponse, err error)

GetTopics 获取Topic列表

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"

func (*Client) IssueDeviceControl

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

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

可能返回的错误码:

INTERNALERROR_IOTSHADOWSYSTEMERROR = "InternalError.IotShadowSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
UNAUTHORIZEDOPERATION_IOTUSERISSUSPENDED = "UnauthorizedOperation.IotUserIsSuspended"

func (*Client) IssueDeviceControlWithContext added in v1.0.324

func (c *Client) IssueDeviceControlWithContext(ctx context.Context, request *IssueDeviceControlRequest) (response *IssueDeviceControlResponse, err error)

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

可能返回的错误码:

INTERNALERROR_IOTSHADOWSYSTEMERROR = "InternalError.IotShadowSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
UNAUTHORIZEDOPERATION_IOTUSERISSUSPENDED = "UnauthorizedOperation.IotUserIsSuspended"

func (*Client) PublishMsg

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

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

可能返回的错误码:

INTERNALERROR_MQIOTSYSTEMERROR = "InternalError.MqiotSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
INVALIDPARAMETER_IOTPRODUCTINVALIDAUTHTYPE = "InvalidParameter.IotProductInvalidAuthType"
RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTTOPICNOTEXISTS = "ResourceNotFound.IotTopicNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
RESOURCEUNAVAILABLE_MQIOTRESOURCENOTEXISTS = "ResourceUnavailable.MqiotResourceNotExists"

func (*Client) PublishMsgWithContext added in v1.0.324

func (c *Client) PublishMsgWithContext(ctx context.Context, request *PublishMsgRequest) (response *PublishMsgResponse, err error)

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

可能返回的错误码:

INTERNALERROR_MQIOTSYSTEMERROR = "InternalError.MqiotSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
INVALIDPARAMETER_IOTPRODUCTINVALIDAUTHTYPE = "InvalidParameter.IotProductInvalidAuthType"
RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTTOPICNOTEXISTS = "ResourceNotFound.IotTopicNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
RESOURCEUNAVAILABLE_MQIOTRESOURCENOTEXISTS = "ResourceUnavailable.MqiotResourceNotExists"

func (*Client) ResetDevice

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

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

可能返回的错误码:

INTERNALERROR_MQIOTSYSTEMERROR = "InternalError.MqiotSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
INVALIDPARAMETER_IOTPRODUCTINVALIDAUTHTYPE = "InvalidParameter.IotProductInvalidAuthType"
RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTTOPICNOTEXISTS = "ResourceNotFound.IotTopicNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
RESOURCEUNAVAILABLE_MQIOTRESOURCENOTEXISTS = "ResourceUnavailable.MqiotResourceNotExists"

func (*Client) ResetDeviceWithContext added in v1.0.324

func (c *Client) ResetDeviceWithContext(ctx context.Context, request *ResetDeviceRequest) (response *ResetDeviceResponse, err error)

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

可能返回的错误码:

INTERNALERROR_MQIOTSYSTEMERROR = "InternalError.MqiotSystemError"
INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
INVALIDPARAMETER_IOTPRODUCTINVALIDAUTHTYPE = "InvalidParameter.IotProductInvalidAuthType"
RESOURCENOTFOUND_IOTDEVICENOTEXISTS = "ResourceNotFound.IotDeviceNotExists"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTTOPICNOTEXISTS = "ResourceNotFound.IotTopicNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
RESOURCEUNAVAILABLE_MQIOTRESOURCENOTEXISTS = "ResourceUnavailable.MqiotResourceNotExists"

func (*Client) UnassociateSubDeviceFromGatewayProduct

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

UnassociateSubDeviceFromGatewayProduct 业务无客户使用,下线接口。

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

可能返回的错误码:

INVALIDPARAMETER_IOTPRODUCTINVALIDGATEWAYPRODUCTID = "InvalidParameter.IotProductInvalidGatewayProductId"
INVALIDPARAMETER_IOTPRODUCTINVALIDSUBDEVICEPRODUCTID = "InvalidParameter.IotProductInvalidSubDeviceProductId"

func (*Client) UnassociateSubDeviceFromGatewayProductWithContext added in v1.0.324

func (c *Client) UnassociateSubDeviceFromGatewayProductWithContext(ctx context.Context, request *UnassociateSubDeviceFromGatewayProductRequest) (response *UnassociateSubDeviceFromGatewayProductResponse, err error)

UnassociateSubDeviceFromGatewayProduct 业务无客户使用,下线接口。

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

可能返回的错误码:

INVALIDPARAMETER_IOTPRODUCTINVALIDGATEWAYPRODUCTID = "InvalidParameter.IotProductInvalidGatewayProductId"
INVALIDPARAMETER_IOTPRODUCTINVALIDSUBDEVICEPRODUCTID = "InvalidParameter.IotProductInvalidSubDeviceProductId"

func (*Client) UpdateProduct

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

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

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
INVALIDPARAMETER_IOTPRODUCTINVALIDDATATEMPLATE = "InvalidParameter.IotProductInvalidDataTemplate"
INVALIDPARAMETER_IOTPRODUCTINVALIDDATATEMPLATERANGE = "InvalidParameter.IotProductInvalidDataTemplateRange"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
UNAUTHORIZEDOPERATION_IOTUSERISSUSPENDED = "UnauthorizedOperation.IotUserIsSuspended"

func (*Client) UpdateProductWithContext added in v1.0.324

func (c *Client) UpdateProductWithContext(ctx context.Context, request *UpdateProductRequest) (response *UpdateProductResponse, err error)

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

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
INVALIDPARAMETER_IOTPRODUCTINVALIDDATATEMPLATE = "InvalidParameter.IotProductInvalidDataTemplate"
INVALIDPARAMETER_IOTPRODUCTINVALIDDATATEMPLATERANGE = "InvalidParameter.IotProductInvalidDataTemplateRange"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCENOTFOUND_IOTPRODUCTNOTEXISTS = "ResourceNotFound.IotProductNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
UNAUTHORIZEDOPERATION_IOTUSERISSUSPENDED = "UnauthorizedOperation.IotUserIsSuspended"

func (*Client) UpdateRule

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

UpdateRule 更新规则

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
INVALIDPARAMETER_IOTPRODUCTEMPTYDATATEMPLATE = "InvalidParameter.IotProductEmptyDataTemplate"
INVALIDPARAMETER_IOTPRODUCTINVALIDDATAPROTOCOL = "InvalidParameter.IotProductInvalidDataProtocol"
LIMITEXCEEDED_IOTRULEOPTOOOFTEN = "LimitExceeded.IotRuleOpTooOften"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCENOTFOUND_IOTRULENOTEXISTS = "ResourceNotFound.IotRuleNotExists"
RESOURCENOTFOUND_IOTSUBACCOUNTNOTEXISTS = "ResourceNotFound.IotSubAccountNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
RESOURCEUNAVAILABLE_IOTRULEISACTIVE = "ResourceUnavailable.IotRuleIsActive"
UNAUTHORIZEDOPERATION_IOTUSERISSUSPENDED = "UnauthorizedOperation.IotUserIsSuspended"

func (*Client) UpdateRuleWithContext added in v1.0.324

func (c *Client) UpdateRuleWithContext(ctx context.Context, request *UpdateRuleRequest) (response *UpdateRuleResponse, err error)

UpdateRule 更新规则

可能返回的错误码:

INVALIDPARAMETER_IOTPARAMERROR = "InvalidParameter.IotParamError"
INVALIDPARAMETER_IOTPRODUCTEMPTYDATATEMPLATE = "InvalidParameter.IotProductEmptyDataTemplate"
INVALIDPARAMETER_IOTPRODUCTINVALIDDATAPROTOCOL = "InvalidParameter.IotProductInvalidDataProtocol"
LIMITEXCEEDED_IOTRULEOPTOOOFTEN = "LimitExceeded.IotRuleOpTooOften"
RESOURCEINUSE_IOTOPINPROGRESS = "ResourceInUse.IotOpInProgress"
RESOURCENOTFOUND_IOTRULENOTEXISTS = "ResourceNotFound.IotRuleNotExists"
RESOURCENOTFOUND_IOTSUBACCOUNTNOTEXISTS = "ResourceNotFound.IotSubAccountNotExists"
RESOURCENOTFOUND_IOTUSERNOTEXISTS = "ResourceNotFound.IotUserNotExists"
RESOURCEUNAVAILABLE_IOTRULEISACTIVE = "ResourceUnavailable.IotRuleIsActive"
UNAUTHORIZEDOPERATION_IOTUSERISSUSPENDED = "UnauthorizedOperation.IotUserIsSuspended"

type DataHistoryEntry

type DataHistoryEntry struct {
	// 日志id
	Id *string `json:"Id,omitnil,omitempty" name:"Id"`

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

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

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

type DataTemplate

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

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

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

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

type DeactivateRuleRequest

type DeactivateRuleRequest struct {
	*tchttp.BaseRequest

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

func NewDeactivateRuleRequest

func NewDeactivateRuleRequest() (request *DeactivateRuleRequest)

func (*DeactivateRuleRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeactivateRuleRequest) ToJsonString

func (r *DeactivateRuleRequest) ToJsonString() string

type DeactivateRuleRequestParams added in v1.0.426

type DeactivateRuleRequestParams struct {
	// 规则Id
	RuleId *string `json:"RuleId,omitnil,omitempty" name:"RuleId"`
}

Predefined struct for user

type DeactivateRuleResponse

type DeactivateRuleResponse struct {
	*tchttp.BaseResponse
	Response *DeactivateRuleResponseParams `json:"Response"`
}

func NewDeactivateRuleResponse

func NewDeactivateRuleResponse() (response *DeactivateRuleResponse)

func (*DeactivateRuleResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeactivateRuleResponse) ToJsonString

func (r *DeactivateRuleResponse) ToJsonString() string

type DeactivateRuleResponseParams added in v1.0.426

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

Predefined struct for user

type DebugLogEntry

type DebugLogEntry struct {
	// 日志id
	Id *string `json:"Id,omitnil,omitempty" name:"Id"`

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

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

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

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

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

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

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

type DeleteDeviceRequest

type DeleteDeviceRequest struct {
	*tchttp.BaseRequest

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

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

func NewDeleteDeviceRequest

func NewDeleteDeviceRequest() (request *DeleteDeviceRequest)

func (*DeleteDeviceRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteDeviceRequest) ToJsonString

func (r *DeleteDeviceRequest) ToJsonString() string

type DeleteDeviceRequestParams added in v1.0.426

type DeleteDeviceRequestParams struct {
	// 产品Id
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

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

Predefined struct for user

type DeleteDeviceResponse

type DeleteDeviceResponse struct {
	*tchttp.BaseResponse
	Response *DeleteDeviceResponseParams `json:"Response"`
}

func NewDeleteDeviceResponse

func NewDeleteDeviceResponse() (response *DeleteDeviceResponse)

func (*DeleteDeviceResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteDeviceResponse) ToJsonString

func (r *DeleteDeviceResponse) ToJsonString() string

type DeleteDeviceResponseParams added in v1.0.426

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

Predefined struct for user

type DeleteProductRequest

type DeleteProductRequest struct {
	*tchttp.BaseRequest

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

func NewDeleteProductRequest

func NewDeleteProductRequest() (request *DeleteProductRequest)

func (*DeleteProductRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteProductRequest) ToJsonString

func (r *DeleteProductRequest) ToJsonString() string

type DeleteProductRequestParams added in v1.0.426

type DeleteProductRequestParams struct {
	// 产品Id
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`
}

Predefined struct for user

type DeleteProductResponse

type DeleteProductResponse struct {
	*tchttp.BaseResponse
	Response *DeleteProductResponseParams `json:"Response"`
}

func NewDeleteProductResponse

func NewDeleteProductResponse() (response *DeleteProductResponse)

func (*DeleteProductResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteProductResponse) ToJsonString

func (r *DeleteProductResponse) ToJsonString() string

type DeleteProductResponseParams added in v1.0.426

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

Predefined struct for user

type DeleteRuleRequest

type DeleteRuleRequest struct {
	*tchttp.BaseRequest

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

func NewDeleteRuleRequest

func NewDeleteRuleRequest() (request *DeleteRuleRequest)

func (*DeleteRuleRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteRuleRequest) ToJsonString

func (r *DeleteRuleRequest) ToJsonString() string

type DeleteRuleRequestParams added in v1.0.426

type DeleteRuleRequestParams struct {
	// 规则Id
	RuleId *string `json:"RuleId,omitnil,omitempty" name:"RuleId"`
}

Predefined struct for user

type DeleteRuleResponse

type DeleteRuleResponse struct {
	*tchttp.BaseResponse
	Response *DeleteRuleResponseParams `json:"Response"`
}

func NewDeleteRuleResponse

func NewDeleteRuleResponse() (response *DeleteRuleResponse)

func (*DeleteRuleResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteRuleResponse) ToJsonString

func (r *DeleteRuleResponse) ToJsonString() string

type DeleteRuleResponseParams added in v1.0.426

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

Predefined struct for user

type DeleteTopicRequest

type DeleteTopicRequest struct {
	*tchttp.BaseRequest

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

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

func NewDeleteTopicRequest

func NewDeleteTopicRequest() (request *DeleteTopicRequest)

func (*DeleteTopicRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteTopicRequest) ToJsonString

func (r *DeleteTopicRequest) ToJsonString() string

type DeleteTopicRequestParams added in v1.0.426

type DeleteTopicRequestParams struct {
	// TopicId
	TopicId *string `json:"TopicId,omitnil,omitempty" name:"TopicId"`

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

Predefined struct for user

type DeleteTopicResponse

type DeleteTopicResponse struct {
	*tchttp.BaseResponse
	Response *DeleteTopicResponseParams `json:"Response"`
}

func NewDeleteTopicResponse

func NewDeleteTopicResponse() (response *DeleteTopicResponse)

func (*DeleteTopicResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteTopicResponse) ToJsonString

func (r *DeleteTopicResponse) ToJsonString() string

type DeleteTopicResponseParams added in v1.0.426

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

Predefined struct for user

type Device

type Device struct {
	// 产品Id
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

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

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

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

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

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

type DeviceEntry

type DeviceEntry struct {
	// 产品Id
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

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

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

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

type DeviceLogEntry

type DeviceLogEntry struct {
	// 日志id
	Id *string `json:"Id,omitnil,omitempty" name:"Id"`

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

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

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

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

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

type DeviceSignature

type DeviceSignature struct {
	// 设备名称
	DeviceName *string `json:"DeviceName,omitnil,omitempty" name:"DeviceName"`

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

type DeviceStatData

type DeviceStatData struct {
	// 时间点
	Datetime *string `json:"Datetime,omitnil,omitempty" name:"Datetime"`

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

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

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

type DeviceStatus

type DeviceStatus struct {
	// 设备名称
	DeviceName *string `json:"DeviceName,omitnil,omitempty" name:"DeviceName"`

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

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

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

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

type EnumData

type EnumData struct {
	// 名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

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

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

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

type GetDataHistoryRequest

type GetDataHistoryRequest struct {
	*tchttp.BaseRequest

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

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

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

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

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

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

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

func NewGetDataHistoryRequest

func NewGetDataHistoryRequest() (request *GetDataHistoryRequest)

func (*GetDataHistoryRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDataHistoryRequest) ToJsonString

func (r *GetDataHistoryRequest) ToJsonString() string

type GetDataHistoryRequestParams added in v1.0.426

type GetDataHistoryRequestParams struct {
	// 产品Id
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

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

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

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

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

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

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

Predefined struct for user

type GetDataHistoryResponse

type GetDataHistoryResponse struct {
	*tchttp.BaseResponse
	Response *GetDataHistoryResponseParams `json:"Response"`
}

func NewGetDataHistoryResponse

func NewGetDataHistoryResponse() (response *GetDataHistoryResponse)

func (*GetDataHistoryResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDataHistoryResponse) ToJsonString

func (r *GetDataHistoryResponse) ToJsonString() string

type GetDataHistoryResponseParams added in v1.0.426

type GetDataHistoryResponseParams struct {
	// 数据历史
	DataHistory []*DataHistoryEntry `json:"DataHistory,omitnil,omitempty" name:"DataHistory"`

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

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

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

Predefined struct for user

type GetDebugLogRequest

type GetDebugLogRequest struct {
	*tchttp.BaseRequest

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

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

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

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

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

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

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

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

func NewGetDebugLogRequest

func NewGetDebugLogRequest() (request *GetDebugLogRequest)

func (*GetDebugLogRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDebugLogRequest) ToJsonString

func (r *GetDebugLogRequest) ToJsonString() string

type GetDebugLogRequestParams added in v1.0.426

type GetDebugLogRequestParams struct {
	// 产品Id
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

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

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

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

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

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

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

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

Predefined struct for user

type GetDebugLogResponse

type GetDebugLogResponse struct {
	*tchttp.BaseResponse
	Response *GetDebugLogResponseParams `json:"Response"`
}

func NewGetDebugLogResponse

func NewGetDebugLogResponse() (response *GetDebugLogResponse)

func (*GetDebugLogResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDebugLogResponse) ToJsonString

func (r *GetDebugLogResponse) ToJsonString() string

type GetDebugLogResponseParams added in v1.0.426

type GetDebugLogResponseParams struct {
	// 调试日志
	DebugLog []*DebugLogEntry `json:"DebugLog,omitnil,omitempty" name:"DebugLog"`

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

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

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

Predefined struct for user

type GetDeviceDataRequest

type GetDeviceDataRequest struct {
	*tchttp.BaseRequest

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

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

func NewGetDeviceDataRequest

func NewGetDeviceDataRequest() (request *GetDeviceDataRequest)

func (*GetDeviceDataRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDeviceDataRequest) ToJsonString

func (r *GetDeviceDataRequest) ToJsonString() string

type GetDeviceDataRequestParams added in v1.0.426

type GetDeviceDataRequestParams struct {
	// 产品Id
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

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

Predefined struct for user

type GetDeviceDataResponse

type GetDeviceDataResponse struct {
	*tchttp.BaseResponse
	Response *GetDeviceDataResponseParams `json:"Response"`
}

func NewGetDeviceDataResponse

func NewGetDeviceDataResponse() (response *GetDeviceDataResponse)

func (*GetDeviceDataResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDeviceDataResponse) ToJsonString

func (r *GetDeviceDataResponse) ToJsonString() string

type GetDeviceDataResponseParams added in v1.0.426

type GetDeviceDataResponseParams struct {
	// 设备数据
	DeviceData *string `json:"DeviceData,omitnil,omitempty" name:"DeviceData"`

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

Predefined struct for user

type GetDeviceLogRequest

type GetDeviceLogRequest struct {
	*tchttp.BaseRequest

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

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

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

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

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

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

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

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

func NewGetDeviceLogRequest

func NewGetDeviceLogRequest() (request *GetDeviceLogRequest)

func (*GetDeviceLogRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDeviceLogRequest) ToJsonString

func (r *GetDeviceLogRequest) ToJsonString() string

type GetDeviceLogRequestParams added in v1.0.426

type GetDeviceLogRequestParams struct {
	// 产品Id
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

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

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

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

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

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

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

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

Predefined struct for user

type GetDeviceLogResponse

type GetDeviceLogResponse struct {
	*tchttp.BaseResponse
	Response *GetDeviceLogResponseParams `json:"Response"`
}

func NewGetDeviceLogResponse

func NewGetDeviceLogResponse() (response *GetDeviceLogResponse)

func (*GetDeviceLogResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDeviceLogResponse) ToJsonString

func (r *GetDeviceLogResponse) ToJsonString() string

type GetDeviceLogResponseParams added in v1.0.426

type GetDeviceLogResponseParams struct {
	// 设备日志
	DeviceLog []*DeviceLogEntry `json:"DeviceLog,omitnil,omitempty" name:"DeviceLog"`

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

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

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

Predefined struct for user

type GetDeviceRequest

type GetDeviceRequest struct {
	*tchttp.BaseRequest

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

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

func NewGetDeviceRequest

func NewGetDeviceRequest() (request *GetDeviceRequest)

func (*GetDeviceRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDeviceRequest) ToJsonString

func (r *GetDeviceRequest) ToJsonString() string

type GetDeviceRequestParams added in v1.0.426

type GetDeviceRequestParams struct {
	// 产品Id
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

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

Predefined struct for user

type GetDeviceResponse

type GetDeviceResponse struct {
	*tchttp.BaseResponse
	Response *GetDeviceResponseParams `json:"Response"`
}

func NewGetDeviceResponse

func NewGetDeviceResponse() (response *GetDeviceResponse)

func (*GetDeviceResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDeviceResponse) ToJsonString

func (r *GetDeviceResponse) ToJsonString() string

type GetDeviceResponseParams added in v1.0.426

type GetDeviceResponseParams struct {
	// 设备信息
	Device *Device `json:"Device,omitnil,omitempty" name:"Device"`

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

Predefined struct for user

type GetDeviceSignaturesRequest

type GetDeviceSignaturesRequest struct {
	*tchttp.BaseRequest

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

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

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

func NewGetDeviceSignaturesRequest

func NewGetDeviceSignaturesRequest() (request *GetDeviceSignaturesRequest)

func (*GetDeviceSignaturesRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDeviceSignaturesRequest) ToJsonString

func (r *GetDeviceSignaturesRequest) ToJsonString() string

type GetDeviceSignaturesRequestParams added in v1.0.426

type GetDeviceSignaturesRequestParams struct {
	// 产品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

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

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

Predefined struct for user

type GetDeviceSignaturesResponse

type GetDeviceSignaturesResponse struct {
	*tchttp.BaseResponse
	Response *GetDeviceSignaturesResponseParams `json:"Response"`
}

func NewGetDeviceSignaturesResponse

func NewGetDeviceSignaturesResponse() (response *GetDeviceSignaturesResponse)

func (*GetDeviceSignaturesResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDeviceSignaturesResponse) ToJsonString

func (r *GetDeviceSignaturesResponse) ToJsonString() string

type GetDeviceSignaturesResponseParams added in v1.0.426

type GetDeviceSignaturesResponseParams struct {
	// 设备绑定签名列表
	DeviceSignatures []*DeviceSignature `json:"DeviceSignatures,omitnil,omitempty" name:"DeviceSignatures"`

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

Predefined struct for user

type GetDeviceStatisticsRequest

type GetDeviceStatisticsRequest struct {
	*tchttp.BaseRequest

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

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

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

func NewGetDeviceStatisticsRequest

func NewGetDeviceStatisticsRequest() (request *GetDeviceStatisticsRequest)

func (*GetDeviceStatisticsRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDeviceStatisticsRequest) ToJsonString

func (r *GetDeviceStatisticsRequest) ToJsonString() string

type GetDeviceStatisticsRequestParams added in v1.0.426

type GetDeviceStatisticsRequestParams struct {
	// 产品Id列表
	Products []*string `json:"Products,omitnil,omitempty" name:"Products"`

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

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

Predefined struct for user

type GetDeviceStatisticsResponse

type GetDeviceStatisticsResponse struct {
	*tchttp.BaseResponse
	Response *GetDeviceStatisticsResponseParams `json:"Response"`
}

func NewGetDeviceStatisticsResponse

func NewGetDeviceStatisticsResponse() (response *GetDeviceStatisticsResponse)

func (*GetDeviceStatisticsResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDeviceStatisticsResponse) ToJsonString

func (r *GetDeviceStatisticsResponse) ToJsonString() string

type GetDeviceStatisticsResponseParams added in v1.0.426

type GetDeviceStatisticsResponseParams struct {
	// 统计数据
	DeviceStatistics []*DeviceStatData `json:"DeviceStatistics,omitnil,omitempty" name:"DeviceStatistics"`

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

Predefined struct for user

type GetDeviceStatusesRequest

type GetDeviceStatusesRequest struct {
	*tchttp.BaseRequest

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

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

func NewGetDeviceStatusesRequest

func NewGetDeviceStatusesRequest() (request *GetDeviceStatusesRequest)

func (*GetDeviceStatusesRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDeviceStatusesRequest) ToJsonString

func (r *GetDeviceStatusesRequest) ToJsonString() string

type GetDeviceStatusesRequestParams added in v1.0.426

type GetDeviceStatusesRequestParams struct {
	// 产品ID
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

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

Predefined struct for user

type GetDeviceStatusesResponse

type GetDeviceStatusesResponse struct {
	*tchttp.BaseResponse
	Response *GetDeviceStatusesResponseParams `json:"Response"`
}

func NewGetDeviceStatusesResponse

func NewGetDeviceStatusesResponse() (response *GetDeviceStatusesResponse)

func (*GetDeviceStatusesResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDeviceStatusesResponse) ToJsonString

func (r *GetDeviceStatusesResponse) ToJsonString() string

type GetDeviceStatusesResponseParams added in v1.0.426

type GetDeviceStatusesResponseParams struct {
	// 设备状态列表
	DeviceStatuses []*DeviceStatus `json:"DeviceStatuses,omitnil,omitempty" name:"DeviceStatuses"`

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

Predefined struct for user

type GetDevicesRequest

type GetDevicesRequest struct {
	*tchttp.BaseRequest

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

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

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

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

func NewGetDevicesRequest

func NewGetDevicesRequest() (request *GetDevicesRequest)

func (*GetDevicesRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDevicesRequest) ToJsonString

func (r *GetDevicesRequest) ToJsonString() string

type GetDevicesRequestParams added in v1.0.426

type GetDevicesRequestParams struct {
	// 产品Id
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

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

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

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

Predefined struct for user

type GetDevicesResponse

type GetDevicesResponse struct {
	*tchttp.BaseResponse
	Response *GetDevicesResponseParams `json:"Response"`
}

func NewGetDevicesResponse

func NewGetDevicesResponse() (response *GetDevicesResponse)

func (*GetDevicesResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDevicesResponse) ToJsonString

func (r *GetDevicesResponse) ToJsonString() string

type GetDevicesResponseParams added in v1.0.426

type GetDevicesResponseParams struct {
	// 设备列表
	Devices []*DeviceEntry `json:"Devices,omitnil,omitempty" name:"Devices"`

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

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

Predefined struct for user

type GetProductRequest

type GetProductRequest struct {
	*tchttp.BaseRequest

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

func NewGetProductRequest

func NewGetProductRequest() (request *GetProductRequest)

func (*GetProductRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetProductRequest) ToJsonString

func (r *GetProductRequest) ToJsonString() string

type GetProductRequestParams added in v1.0.426

type GetProductRequestParams struct {
	// 产品Id
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`
}

Predefined struct for user

type GetProductResponse

type GetProductResponse struct {
	*tchttp.BaseResponse
	Response *GetProductResponseParams `json:"Response"`
}

func NewGetProductResponse

func NewGetProductResponse() (response *GetProductResponse)

func (*GetProductResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetProductResponse) ToJsonString

func (r *GetProductResponse) ToJsonString() string

type GetProductResponseParams added in v1.0.426

type GetProductResponseParams struct {
	// 产品信息
	Product *Product `json:"Product,omitnil,omitempty" name:"Product"`

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

Predefined struct for user

type GetProductsRequest

type GetProductsRequest struct {
	*tchttp.BaseRequest

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

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

func NewGetProductsRequest

func NewGetProductsRequest() (request *GetProductsRequest)

func (*GetProductsRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetProductsRequest) ToJsonString

func (r *GetProductsRequest) ToJsonString() string

type GetProductsRequestParams added in v1.0.426

type GetProductsRequestParams struct {
	// 偏移
	Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`

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

Predefined struct for user

type GetProductsResponse

type GetProductsResponse struct {
	*tchttp.BaseResponse
	Response *GetProductsResponseParams `json:"Response"`
}

func NewGetProductsResponse

func NewGetProductsResponse() (response *GetProductsResponse)

func (*GetProductsResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetProductsResponse) ToJsonString

func (r *GetProductsResponse) ToJsonString() string

type GetProductsResponseParams added in v1.0.426

type GetProductsResponseParams struct {
	// Product列表
	Products []*ProductEntry `json:"Products,omitnil,omitempty" name:"Products"`

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

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

Predefined struct for user

type GetRuleRequest

type GetRuleRequest struct {
	*tchttp.BaseRequest

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

func NewGetRuleRequest

func NewGetRuleRequest() (request *GetRuleRequest)

func (*GetRuleRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetRuleRequest) ToJsonString

func (r *GetRuleRequest) ToJsonString() string

type GetRuleRequestParams added in v1.0.426

type GetRuleRequestParams struct {
	// 规则Id
	RuleId *string `json:"RuleId,omitnil,omitempty" name:"RuleId"`
}

Predefined struct for user

type GetRuleResponse

type GetRuleResponse struct {
	*tchttp.BaseResponse
	Response *GetRuleResponseParams `json:"Response"`
}

func NewGetRuleResponse

func NewGetRuleResponse() (response *GetRuleResponse)

func (*GetRuleResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetRuleResponse) ToJsonString

func (r *GetRuleResponse) ToJsonString() string

type GetRuleResponseParams added in v1.0.426

type GetRuleResponseParams struct {
	// 规则
	Rule *Rule `json:"Rule,omitnil,omitempty" name:"Rule"`

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

Predefined struct for user

type GetRulesRequest

type GetRulesRequest struct {
	*tchttp.BaseRequest

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

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

func NewGetRulesRequest

func NewGetRulesRequest() (request *GetRulesRequest)

func (*GetRulesRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetRulesRequest) ToJsonString

func (r *GetRulesRequest) ToJsonString() string

type GetRulesRequestParams added in v1.0.426

type GetRulesRequestParams struct {
	// 偏移
	Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"`

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

Predefined struct for user

type GetRulesResponse

type GetRulesResponse struct {
	*tchttp.BaseResponse
	Response *GetRulesResponseParams `json:"Response"`
}

func NewGetRulesResponse

func NewGetRulesResponse() (response *GetRulesResponse)

func (*GetRulesResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetRulesResponse) ToJsonString

func (r *GetRulesResponse) ToJsonString() string

type GetRulesResponseParams added in v1.0.426

type GetRulesResponseParams struct {
	// 规则列表
	Rules []*Rule `json:"Rules,omitnil,omitempty" name:"Rules"`

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

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

Predefined struct for user

type GetTopicRequest

type GetTopicRequest struct {
	*tchttp.BaseRequest

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

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

func NewGetTopicRequest

func NewGetTopicRequest() (request *GetTopicRequest)

func (*GetTopicRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetTopicRequest) ToJsonString

func (r *GetTopicRequest) ToJsonString() string

type GetTopicRequestParams added in v1.0.426

type GetTopicRequestParams struct {
	// TopicId
	TopicId *string `json:"TopicId,omitnil,omitempty" name:"TopicId"`

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

Predefined struct for user

type GetTopicResponse

type GetTopicResponse struct {
	*tchttp.BaseResponse
	Response *GetTopicResponseParams `json:"Response"`
}

func NewGetTopicResponse

func NewGetTopicResponse() (response *GetTopicResponse)

func (*GetTopicResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetTopicResponse) ToJsonString

func (r *GetTopicResponse) ToJsonString() string

type GetTopicResponseParams added in v1.0.426

type GetTopicResponseParams struct {
	// Topic信息
	Topic *Topic `json:"Topic,omitnil,omitempty" name:"Topic"`

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

Predefined struct for user

type GetTopicsRequest

type GetTopicsRequest struct {
	*tchttp.BaseRequest

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

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

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

func NewGetTopicsRequest

func NewGetTopicsRequest() (request *GetTopicsRequest)

func (*GetTopicsRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetTopicsRequest) ToJsonString

func (r *GetTopicsRequest) ToJsonString() string

type GetTopicsRequestParams added in v1.0.426

type GetTopicsRequestParams struct {
	// 产品Id
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

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

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

Predefined struct for user

type GetTopicsResponse

type GetTopicsResponse struct {
	*tchttp.BaseResponse
	Response *GetTopicsResponseParams `json:"Response"`
}

func NewGetTopicsResponse

func NewGetTopicsResponse() (response *GetTopicsResponse)

func (*GetTopicsResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetTopicsResponse) ToJsonString

func (r *GetTopicsResponse) ToJsonString() string

type GetTopicsResponseParams added in v1.0.426

type GetTopicsResponseParams struct {
	// Topic列表
	Topics []*Topic `json:"Topics,omitnil,omitempty" name:"Topics"`

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

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

Predefined struct for user

type IssueDeviceControlRequest

type IssueDeviceControlRequest struct {
	*tchttp.BaseRequest

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

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

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

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

func NewIssueDeviceControlRequest

func NewIssueDeviceControlRequest() (request *IssueDeviceControlRequest)

func (*IssueDeviceControlRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*IssueDeviceControlRequest) ToJsonString

func (r *IssueDeviceControlRequest) ToJsonString() string

type IssueDeviceControlRequestParams added in v1.0.426

type IssueDeviceControlRequestParams struct {
	// 产品Id
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

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

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

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

Predefined struct for user

type IssueDeviceControlResponse

type IssueDeviceControlResponse struct {
	*tchttp.BaseResponse
	Response *IssueDeviceControlResponseParams `json:"Response"`
}

func NewIssueDeviceControlResponse

func NewIssueDeviceControlResponse() (response *IssueDeviceControlResponse)

func (*IssueDeviceControlResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*IssueDeviceControlResponse) ToJsonString

func (r *IssueDeviceControlResponse) ToJsonString() string

type IssueDeviceControlResponseParams added in v1.0.426

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

Predefined struct for user

type NumberData

type NumberData struct {
	// 名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

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

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

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

type Product

type Product struct {
	// 产品Id
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

type ProductEntry

type ProductEntry struct {
	// 产品Id
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

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

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

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

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

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

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

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

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

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

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

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

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

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

type PublishMsgRequest

type PublishMsgRequest struct {
	*tchttp.BaseRequest

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

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

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

func NewPublishMsgRequest

func NewPublishMsgRequest() (request *PublishMsgRequest)

func (*PublishMsgRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*PublishMsgRequest) ToJsonString

func (r *PublishMsgRequest) ToJsonString() string

type PublishMsgRequestParams added in v1.0.426

type PublishMsgRequestParams struct {
	// Topic
	Topic *string `json:"Topic,omitnil,omitempty" name:"Topic"`

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

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

Predefined struct for user

type PublishMsgResponse

type PublishMsgResponse struct {
	*tchttp.BaseResponse
	Response *PublishMsgResponseParams `json:"Response"`
}

func NewPublishMsgResponse

func NewPublishMsgResponse() (response *PublishMsgResponse)

func (*PublishMsgResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*PublishMsgResponse) ToJsonString

func (r *PublishMsgResponse) ToJsonString() string

type PublishMsgResponseParams added in v1.0.426

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

Predefined struct for user

type ResetDeviceRequest

type ResetDeviceRequest struct {
	*tchttp.BaseRequest

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

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

func NewResetDeviceRequest

func NewResetDeviceRequest() (request *ResetDeviceRequest)

func (*ResetDeviceRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ResetDeviceRequest) ToJsonString

func (r *ResetDeviceRequest) ToJsonString() string

type ResetDeviceRequestParams added in v1.0.426

type ResetDeviceRequestParams struct {
	// 产品Id
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

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

Predefined struct for user

type ResetDeviceResponse

type ResetDeviceResponse struct {
	*tchttp.BaseResponse
	Response *ResetDeviceResponseParams `json:"Response"`
}

func NewResetDeviceResponse

func NewResetDeviceResponse() (response *ResetDeviceResponse)

func (*ResetDeviceResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ResetDeviceResponse) ToJsonString

func (r *ResetDeviceResponse) ToJsonString() string

type ResetDeviceResponseParams added in v1.0.426

type ResetDeviceResponseParams struct {
	// 设备信息
	Device *Device `json:"Device,omitnil,omitempty" name:"Device"`

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

Predefined struct for user

type Rule

type Rule struct {
	// 规则Id
	RuleId *string `json:"RuleId,omitnil,omitempty" name:"RuleId"`

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

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

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

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

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

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

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

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

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

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

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

type RuleQuery

type RuleQuery struct {
	// 字段
	Field *string `json:"Field,omitnil,omitempty" name:"Field"`

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

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

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

type ServiceAction

type ServiceAction struct {
	// 服务url地址
	Url *string `json:"Url,omitnil,omitempty" name:"Url"`
}

type StringData

type StringData struct {
	// 名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

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

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

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

type Topic

type Topic struct {
	// TopicId
	TopicId *string `json:"TopicId,omitnil,omitempty" name:"TopicId"`

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

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

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

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

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

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

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

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

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

type TopicAction

type TopicAction struct {
	// 目标topic
	Topic *string `json:"Topic,omitnil,omitempty" name:"Topic"`
}

type UnassociateSubDeviceFromGatewayProductRequest

type UnassociateSubDeviceFromGatewayProductRequest struct {
	*tchttp.BaseRequest

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

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

func NewUnassociateSubDeviceFromGatewayProductRequest

func NewUnassociateSubDeviceFromGatewayProductRequest() (request *UnassociateSubDeviceFromGatewayProductRequest)

func (*UnassociateSubDeviceFromGatewayProductRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UnassociateSubDeviceFromGatewayProductRequest) ToJsonString

type UnassociateSubDeviceFromGatewayProductRequestParams added in v1.0.426

type UnassociateSubDeviceFromGatewayProductRequestParams struct {
	// 子设备产品Id
	SubDeviceProductId *string `json:"SubDeviceProductId,omitnil,omitempty" name:"SubDeviceProductId"`

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

Predefined struct for user

type UnassociateSubDeviceFromGatewayProductResponse

type UnassociateSubDeviceFromGatewayProductResponse struct {
	*tchttp.BaseResponse
	Response *UnassociateSubDeviceFromGatewayProductResponseParams `json:"Response"`
}

func NewUnassociateSubDeviceFromGatewayProductResponse

func NewUnassociateSubDeviceFromGatewayProductResponse() (response *UnassociateSubDeviceFromGatewayProductResponse)

func (*UnassociateSubDeviceFromGatewayProductResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UnassociateSubDeviceFromGatewayProductResponse) ToJsonString

type UnassociateSubDeviceFromGatewayProductResponseParams added in v1.0.426

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

Predefined struct for user

type UpdateProductRequest

type UpdateProductRequest struct {
	*tchttp.BaseRequest

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

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

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

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

func NewUpdateProductRequest

func NewUpdateProductRequest() (request *UpdateProductRequest)

func (*UpdateProductRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UpdateProductRequest) ToJsonString

func (r *UpdateProductRequest) ToJsonString() string

type UpdateProductRequestParams added in v1.0.426

type UpdateProductRequestParams struct {
	// 产品Id
	ProductId *string `json:"ProductId,omitnil,omitempty" name:"ProductId"`

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

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

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

Predefined struct for user

type UpdateProductResponse

type UpdateProductResponse struct {
	*tchttp.BaseResponse
	Response *UpdateProductResponseParams `json:"Response"`
}

func NewUpdateProductResponse

func NewUpdateProductResponse() (response *UpdateProductResponse)

func (*UpdateProductResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UpdateProductResponse) ToJsonString

func (r *UpdateProductResponse) ToJsonString() string

type UpdateProductResponseParams added in v1.0.426

type UpdateProductResponseParams struct {
	// 更新后的产品信息
	Product *Product `json:"Product,omitnil,omitempty" name:"Product"`

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

Predefined struct for user

type UpdateRuleRequest

type UpdateRuleRequest struct {
	*tchttp.BaseRequest

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

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

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

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

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

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

func NewUpdateRuleRequest

func NewUpdateRuleRequest() (request *UpdateRuleRequest)

func (*UpdateRuleRequest) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UpdateRuleRequest) ToJsonString

func (r *UpdateRuleRequest) ToJsonString() string

type UpdateRuleRequestParams added in v1.0.426

type UpdateRuleRequestParams struct {
	// 规则Id
	RuleId *string `json:"RuleId,omitnil,omitempty" name:"RuleId"`

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

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

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

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

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

Predefined struct for user

type UpdateRuleResponse

type UpdateRuleResponse struct {
	*tchttp.BaseResponse
	Response *UpdateRuleResponseParams `json:"Response"`
}

func NewUpdateRuleResponse

func NewUpdateRuleResponse() (response *UpdateRuleResponse)

func (*UpdateRuleResponse) FromJsonString

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

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UpdateRuleResponse) ToJsonString

func (r *UpdateRuleResponse) ToJsonString() string

type UpdateRuleResponseParams added in v1.0.426

type UpdateRuleResponseParams struct {
	// 规则
	Rule *Rule `json:"Rule,omitnil,omitempty" name:"Rule"`

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

Predefined struct for user

Jump to

Keyboard shortcuts

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