v20210408

package
v1.0.421 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

	// 操作失败。
	FAILEDOPERATION = "FailedOperation"

	// 操作失败,账号已欠费隔离。
	FAILEDOPERATION_ACCOUNTISOLATED = "FailedOperation.AccountIsolated"

	// 已分发设备,不能再次创建。
	FAILEDOPERATION_ALREADYDISTRIBUTIONDEVICE = "FailedOperation.AlreadyDistributionDevice"

	// 绑定设备超过限制。
	FAILEDOPERATION_BINDDEVICEOVERLIMIT = "FailedOperation.BindDeviceOverLimit"

	// 设备已经被禁用。
	FAILEDOPERATION_DEVICEALREADYDISABLED = "FailedOperation.DeviceAlreadyDisabled"

	// 设备固件升级任务已经完成。
	FAILEDOPERATION_DEVICEFIRMWARETASKALREADDONE = "FailedOperation.DeviceFirmwareTaskAlreadDone"

	// 设备正在升级中。
	FAILEDOPERATION_DEVICEISUPDATING = "FailedOperation.DeviceIsUpdating"

	// 设备没有订阅相应的topic。
	FAILEDOPERATION_DEVICENOSUBSCRIPTION = "FailedOperation.DeviceNoSubscription"

	// 设备离线。
	FAILEDOPERATION_DEVICEOFFLINE = "FailedOperation.DeviceOffline"

	// 设备已经运行其他ota升级任务。
	FAILEDOPERATION_DEVICERUNNINGOTHEROTATASK = "FailedOperation.DeviceRunningOtherOtaTask"

	// 不能创建重复的函数。
	FAILEDOPERATION_DUPLICATIONOFFUNCTIONITEM = "FailedOperation.DuplicationOfFunctionItem"

	// 函数文件不存在。
	FAILEDOPERATION_FUNCTIONFILENOTEXIST = "FailedOperation.FunctionFileNotExist"

	// 消息长度非法。
	FAILEDOPERATION_INVALIDMSGLEN = "FailedOperation.InvalidMsgLen"

	// 消息topic非法。
	FAILEDOPERATION_INVALIDTOPICNAME = "FailedOperation.InvalidTopicName"

	// 产品未绑定,无法代理订阅。
	FAILEDOPERATION_PRODUCTNOTBIND = "FailedOperation.ProductNotBind"

	// 同名产品资源已存在。
	FAILEDOPERATION_PRODUCTRESOURCEDUPLICATE = "FailedOperation.ProductResourceDuplicate"

	// 代理ip或端口资源不足。
	FAILEDOPERATION_PROXYIPISNOTENOUGH = "FailedOperation.ProxyIPIsNotEnough"

	// RRPC接口未收到设备端响应。
	FAILEDOPERATION_RRPCTIMEOUT = "FailedOperation.RRPCTimeout"

	// 该规则引擎已经是禁用状态,不需要再被禁用。
	FAILEDOPERATION_RULEALREADYDISABLED = "FailedOperation.RuleAlreadyDisabled"

	// 规则已经是启用状态。
	FAILEDOPERATION_RULEALREADYENABLED = "FailedOperation.RuleAlreadyEnabled"

	// 白名单校验未开启,用户不可创建设备,平台会根据设备认证时携带的设备名称自动创建设备。
	FAILEDOPERATION_TIDWHITELISTNOTOPEN = "FailedOperation.TidWhiteListNotOpen"

	// 更新版本不匹配。
	FAILEDOPERATION_UPDATEVERSIONNOTMATCH = "FailedOperation.UpdateVersionNotMatch"

	// 内部错误。
	INTERNALERROR = "InternalError"

	// 数据库内部错误。
	INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError"

	// 参数错误。
	INVALIDPARAMETER = "InvalidParameter"

	// 参数取值错误。
	INVALIDPARAMETERVALUE = "InvalidParameterValue"

	// 规则行为未配置。
	INVALIDPARAMETERVALUE_ACTIONNIL = "InvalidParameterValue.ActionNil"

	// CA证书内容错误。
	INVALIDPARAMETERVALUE_CACERTINVALID = "InvalidParameterValue.CACertInvalid"

	// CA验证证书不匹配。
	INVALIDPARAMETERVALUE_CACERTNOTMATCH = "InvalidParameterValue.CACertNotMatch"

	// 检查第三方URL超时或失败。
	INVALIDPARAMETERVALUE_CHECKFORWARDURLFAIL = "InvalidParameterValue.CheckForwardURLFail"

	// 保存失败,行为操作和转发错误行为数据目标不可一致。
	INVALIDPARAMETERVALUE_CLOUDCOMPONENTALREADYEXIST = "InvalidParameterValue.CloudComponentAlreadyExist"

	// 格式错误,DefinedPsk需为Base64格式的字符串。
	INVALIDPARAMETERVALUE_DEFINEDPSKNOTBASE64 = "InvalidParameterValue.DefinedPskNotBase64"

	// 创建的设备名已存在。
	INVALIDPARAMETERVALUE_DEVICEALREADYEXIST = "InvalidParameterValue.DeviceAlreadyExist"

	// 设备不是网关类型。
	INVALIDPARAMETERVALUE_DEVICEISNOTGATEWAY = "InvalidParameterValue.DeviceIsNotGateway"

	// 存失败,行为操作和转发错误行为数据目标不可为同一设备。
	INVALIDPARAMETERVALUE_FAILACTIONHASSAMEDEVICE = "InvalidParameterValue.FailActionHasSameDevice"

	// 固件已存在。
	INVALIDPARAMETERVALUE_FIRMWAREALREADYEXIST = "InvalidParameterValue.FirmwareAlreadyExist"

	// 不允许转发重定向。
	INVALIDPARAMETERVALUE_FORWARDREDIRECTDENIED = "InvalidParameterValue.ForwardRedirectDenied"

	// JSON参数非法。
	INVALIDPARAMETERVALUE_INVALIDJSON = "InvalidParameterValue.InvalidJSON"

	// SQL语句含有非法字符。
	INVALIDPARAMETERVALUE_INVALIDSQL = "InvalidParameterValue.InvalidSQL"

	// State JSON对象中包含非法节点。
	INVALIDPARAMETERVALUE_JSONHASINVALIDNODE = "InvalidParameterValue.JSONHasInvalidNode"

	// State JSON对象超过大小限制,最大为 8k。
	INVALIDPARAMETERVALUE_JSONSIZEEXCEEDLIMIT = "InvalidParameterValue.JSONSizeExceedLimit"

	// 不可合并。
	INVALIDPARAMETERVALUE_NOTMERGEABLE = "InvalidParameterValue.NotMergeAble"

	// 修改规则的操作被禁止。
	INVALIDPARAMETERVALUE_OPERATIONDENIED = "InvalidParameterValue.OperationDenied"

	// 请求中缺少关键字段信息。
	INVALIDPARAMETERVALUE_PARAMINCOMPLETE = "InvalidParameterValue.ParamIncomplete"

	// 消息Payload超出限制。
	INVALIDPARAMETERVALUE_PAYLOADOVERLIMIT = "InvalidParameterValue.PayloadOverLimit"

	// prefix不合法。
	INVALIDPARAMETERVALUE_PREFIXINVALID = "InvalidParameterValue.PrefixInvalid"

	// 创建的产品名已存在。
	INVALIDPARAMETERVALUE_PRODUCTALREADYEXIST = "InvalidParameterValue.ProductAlreadyExist"

	// 产品类型不支持。
	INVALIDPARAMETERVALUE_PRODUCTTYPENOTSUPPORT = "InvalidParameterValue.ProductTypeNotSupport"

	// 转发的topic格式错误。
	INVALIDPARAMETERVALUE_REPUBLISHTOPICFORMATERROR = "InvalidParameterValue.RepublishTopicFormatError"

	// 规则数量超过限制。
	INVALIDPARAMETERVALUE_RULENUMBERBEYONDLIMIT = "InvalidParameterValue.RuleNumberBeyondLimit"

	// 该TID产品已存在。
	INVALIDPARAMETERVALUE_TIDPRODUCTALREADYEXIST = "InvalidParameterValue.TidProductAlreadyExist"

	// Topic已存在。
	INVALIDPARAMETERVALUE_TOPICPOLICYALREADYEXIST = "InvalidParameterValue.TopicPolicyAlreadyExist"

	// 规则已存在。
	INVALIDPARAMETERVALUE_TOPICRULEALREADYEXIST = "InvalidParameterValue.TopicRuleAlreadyExist"

	// 规则sql未编辑。
	INVALIDPARAMETERVALUE_TOPICRULESQLNOTEDITED = "InvalidParameterValue.TopicRuleSqlNotEdited"

	// 请确认规则相关数据是否有更新。
	INVALIDPARAMETERVALUE_UPDATETOPICRULEDBFAIL = "InvalidParameterValue.UpdateTopicRuleDBFail"

	// CA证书已经绑定了产品,无法操作。
	LIMITEXCEEDED_CAALREADYBINDPRODUCT = "LimitExceeded.CAAlreadyBindProduct"

	// CA证书名称重复。
	LIMITEXCEEDED_CACERTNAMEREPEAT = "LimitExceeded.CACertNameRepeat"

	// 不支持私有证书操作。
	LIMITEXCEEDED_CACERTNOTSUPPORT = "LimitExceeded.CACertNotSupport"

	// CA证书重复。
	LIMITEXCEEDED_CAREPEAT = "LimitExceeded.CARepeat"

	// 设备数量超过限制。
	LIMITEXCEEDED_DEVICEEXCEEDLIMIT = "LimitExceeded.DeviceExceedLimit"

	// 固件数量超出限制。
	LIMITEXCEEDED_FIRMWAREEXCEEDLIMIT = "LimitExceeded.FirmwareExceedLimit"

	// 消息已经保存到离线队列。
	LIMITEXCEEDED_MESSAGESAVED = "LimitExceeded.MessageSaved"

	// qos为1的离线消息超过数量限制。
	LIMITEXCEEDED_OFFLINEMESSAGEEXCEEDLIMIT = "LimitExceeded.OfflineMessageExceedLimit"

	// 超过产品数量限制。
	LIMITEXCEEDED_PRODUCTEXCEEDLIMIT = "LimitExceeded.ProductExceedLimit"

	// Topic数量超出限制。
	LIMITEXCEEDED_TOPICPOLICYEXCEEDLIMIT = "LimitExceeded.TopicPolicyExceedLimit"

	// CA证书不存在。
	RESOURCENOTFOUND_CACERTNOTEXIST = "ResourceNotFound.CACertNotExist"

	// 批量创建设备任务不存在。
	RESOURCENOTFOUND_CREATEMULTIDEVICETASKNOTEXIST = "ResourceNotFound.CreateMultiDeviceTaskNotExist"

	// 设备固件升级任务不存在。
	RESOURCENOTFOUND_DEVICEFIRMWARETASKNOTEXIST = "ResourceNotFound.DeviceFirmwareTaskNotExist"

	// 设备无固件版本。
	RESOURCENOTFOUND_DEVICEHASNOFIRMWARE = "ResourceNotFound.DeviceHasNoFirmware"

	// 设备不存在。
	RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"

	// 设备资源不存在。
	RESOURCENOTFOUND_DEVICERESOURCENOTEXIST = "ResourceNotFound.DeviceResourceNotExist"

	// 设备影子不存在。
	RESOURCENOTFOUND_DEVICESHADOWNOTEXIST = "ResourceNotFound.DeviceShadowNotExist"

	// 固件不存在。
	RESOURCENOTFOUND_FIRMWARENOTEXIST = "ResourceNotFound.FirmwareNotExist"

	// 固件升级任务不存在。
	RESOURCENOTFOUND_FIRMWARETASKNOTEXIST = "ResourceNotFound.FirmwareTaskNotExist"

	// 产品不存在。
	RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

	// 用户不存在此产品或设备。
	RESOURCENOTFOUND_PRODUCTORDEVICENOTEXIST = "ResourceNotFound.ProductOrDeviceNotExist"

	// 产品资源不存在。
	RESOURCENOTFOUND_PRODUCTRESOURCENOTEXIST = "ResourceNotFound.ProductResourceNotExist"

	// 资源文件不存在。
	RESOURCENOTFOUND_RESOURCEFILENOTEXIST = "ResourceNotFound.ResourceFileNotExist"

	// 任务不存在。
	RESOURCENOTFOUND_TASKNOTEXIST = "ResourceNotFound.TaskNotExist"

	// 物模型不存在。
	RESOURCENOTFOUND_THINGMODELNOTEXIST = "ResourceNotFound.ThingModelNotExist"

	// Topic不存在。
	RESOURCENOTFOUND_TOPICPOLICYNOTEXIST = "ResourceNotFound.TopicPolicyNotExist"

	// 规则不存在。
	RESOURCENOTFOUND_TOPICRULENOTEXIST = "ResourceNotFound.TopicRuleNotExist"

	// 该设备绑定了网关设备,无法删除。
	UNAUTHORIZEDOPERATION_DEVICEHASALREADYBINDGATEWAY = "UnauthorizedOperation.DeviceHasAlreadyBindGateway"

	// 设备未启用。
	UNAUTHORIZEDOPERATION_DEVICEISNOTENABLED = "UnauthorizedOperation.DeviceIsNotEnabled"

	// 删除的产品下还包括未删除的设备。
	UNAUTHORIZEDOPERATION_DEVICESEXISTUNDERPRODUCT = "UnauthorizedOperation.DevicesExistUnderProduct"

	// 该设备下仍有绑定的设备。
	UNAUTHORIZEDOPERATION_GATEWAYHASBINDEDDEVICES = "UnauthorizedOperation.GatewayHasBindedDevices"

	// 没有权限。
	UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

	// 该产品类型不能创建LoRa设备。
	UNAUTHORIZEDOPERATION_PRODUCTCANTHAVELORADEVICE = "UnauthorizedOperation.ProductCantHaveLoRaDevice"

	// NB-IoT产品不允许创建普通设备。
	UNAUTHORIZEDOPERATION_PRODUCTCANTHAVENORMALDEVICE = "UnauthorizedOperation.ProductCantHaveNormalDevice"

	// 该产品类型只能创建LoRa设备。
	UNAUTHORIZEDOPERATION_PRODUCTCANTHAVENOTLORADEVICE = "UnauthorizedOperation.ProductCantHaveNotLoRaDevice"

	// 产品禁用了该功能。
	UNAUTHORIZEDOPERATION_PRODUCTISFORBIDDEN = "UnauthorizedOperation.ProductIsForbidden"

	// 产品不支持密钥认证。
	UNAUTHORIZEDOPERATION_PRODUCTNOTSUPPORTPSK = "UnauthorizedOperation.ProductNotSupportPSK"

	// 用户未通过实名认证。
	UNAUTHORIZEDOPERATION_USERNOTAUTHENTICAED = "UnauthorizedOperation.UserNotAuthenticaed"

	// 设备ota升级中。
	UNSUPPORTEDOPERATION_DEVICEOTATASKINPROGRESS = "UnsupportedOperation.DeviceOtaTaskInProgress"

	// 网关产品下存在绑定的子产品,无法删除。
	UNSUPPORTEDOPERATION_GATEWAYPRODUCTHASBINDEDPRODUCT = "UnsupportedOperation.GatewayProductHasBindedProduct"

	// 存在网关设备绑定当前产品,无法删除。
	UNSUPPORTEDOPERATION_PRODUCTHASBINDGATEWAY = "UnsupportedOperation.ProductHasBindGateway"

	// 产品存在绑定的网关产品,无法删除。
	UNSUPPORTEDOPERATION_PRODUCTHASBINDEDGATEWAYPRODUCT = "UnsupportedOperation.ProductHasBindedGatewayProduct"

	// 产品为Suite token类型,无法创建新设备。
	UNSUPPORTEDOPERATION_SUITETOKENNOCREATE = "UnsupportedOperation.SuiteTokenNoCreate"

	// 不支持的认证类型。
	UNSUPPORTEDOPERATION_WRONGPRODUCTAUTHTYPE = "UnsupportedOperation.WrongProductAuthType"
)
View Source
const APIVersion = "2021-04-08"

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {

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

type BatchUpdateFirmwareRequest added in v1.0.397

type BatchUpdateFirmwareRequest struct {
	*tchttp.BaseRequest

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

	// 固件新版本号
	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`

	// 固件原版本号,根据文件列表升级固件不需要填写此参数
	FirmwareOriVersion *string `json:"FirmwareOriVersion,omitempty" name:"FirmwareOriVersion"`

	// 升级方式,0 静默升级  1 用户确认升级。 不填默认为静默升级方式
	UpgradeMethod *uint64 `json:"UpgradeMethod,omitempty" name:"UpgradeMethod"`

	// 设备列表文件名称,根据文件列表升级固件需要填写此参数
	FileName *string `json:"FileName,omitempty" name:"FileName"`

	// 设备列表的文件md5值
	FileMd5 *string `json:"FileMd5,omitempty" name:"FileMd5"`

	// 设备列表的文件大小值
	FileSize *uint64 `json:"FileSize,omitempty" name:"FileSize"`

	// 需要升级的设备名称列表
	DeviceNames []*string `json:"DeviceNames,omitempty" name:"DeviceNames"`

	// 固件升级任务,默认超时时间。 最小取值60秒,最大为3600秒
	TimeoutInterval *uint64 `json:"TimeoutInterval,omitempty" name:"TimeoutInterval"`
}

func NewBatchUpdateFirmwareRequest added in v1.0.397

func NewBatchUpdateFirmwareRequest() (request *BatchUpdateFirmwareRequest)

func (*BatchUpdateFirmwareRequest) FromJsonString added in v1.0.397

func (r *BatchUpdateFirmwareRequest) 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 (*BatchUpdateFirmwareRequest) ToJsonString added in v1.0.397

func (r *BatchUpdateFirmwareRequest) ToJsonString() string

type BatchUpdateFirmwareResponse added in v1.0.397

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

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

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

func NewBatchUpdateFirmwareResponse added in v1.0.397

func NewBatchUpdateFirmwareResponse() (response *BatchUpdateFirmwareResponse)

func (*BatchUpdateFirmwareResponse) FromJsonString added in v1.0.397

func (r *BatchUpdateFirmwareResponse) 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 (*BatchUpdateFirmwareResponse) ToJsonString added in v1.0.397

func (r *BatchUpdateFirmwareResponse) ToJsonString() string

type BindDeviceInfo added in v1.0.397

type BindDeviceInfo struct {

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

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

	// 设备Tag
	Tags []*DeviceTag `json:"Tags,omitempty" name:"Tags"`

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

type BindDevicesRequest added in v1.0.397

type BindDevicesRequest struct {
	*tchttp.BaseRequest

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

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

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

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

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

func NewBindDevicesRequest added in v1.0.397

func NewBindDevicesRequest() (request *BindDevicesRequest)

func (*BindDevicesRequest) FromJsonString added in v1.0.397

func (r *BindDevicesRequest) 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 (*BindDevicesRequest) ToJsonString added in v1.0.397

func (r *BindDevicesRequest) ToJsonString() string

type BindDevicesResponse added in v1.0.397

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

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

func NewBindDevicesResponse added in v1.0.397

func NewBindDevicesResponse() (response *BindDevicesResponse)

func (*BindDevicesResponse) FromJsonString added in v1.0.397

func (r *BindDevicesResponse) 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 (*BindDevicesResponse) ToJsonString added in v1.0.397

func (r *BindDevicesResponse) ToJsonString() string

type BindProductInfo

type BindProductInfo struct {

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

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

type BrokerSubscribe added in v1.0.397

type BrokerSubscribe struct {

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

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

type CLSLogItem added in v1.0.378

type CLSLogItem struct {

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

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

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

	// 请求ID
	RequestId *string `json:"RequestId,omitempty" name:"RequestId"`

	// 结果
	Result *string `json:"Result,omitempty" name:"Result"`

	// 模块
	Scene *string `json:"Scene,omitempty" name:"Scene"`

	// 日志时间
	Time *string `json:"Time,omitempty" name:"Time"`

	// 腾讯云账号
	Userid *string `json:"Userid,omitempty" name:"Userid"`
}

type CancelDeviceFirmwareTaskRequest added in v1.0.397

type CancelDeviceFirmwareTaskRequest struct {
	*tchttp.BaseRequest

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

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

	// 固件版本号
	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`

	// 固件升级任务ID
	TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"`
}

func NewCancelDeviceFirmwareTaskRequest added in v1.0.397

func NewCancelDeviceFirmwareTaskRequest() (request *CancelDeviceFirmwareTaskRequest)

func (*CancelDeviceFirmwareTaskRequest) FromJsonString added in v1.0.397

func (r *CancelDeviceFirmwareTaskRequest) 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 (*CancelDeviceFirmwareTaskRequest) ToJsonString added in v1.0.397

func (r *CancelDeviceFirmwareTaskRequest) ToJsonString() string

type CancelDeviceFirmwareTaskResponse added in v1.0.397

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

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

func NewCancelDeviceFirmwareTaskResponse added in v1.0.397

func NewCancelDeviceFirmwareTaskResponse() (response *CancelDeviceFirmwareTaskResponse)

func (*CancelDeviceFirmwareTaskResponse) FromJsonString added in v1.0.397

func (r *CancelDeviceFirmwareTaskResponse) 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 (*CancelDeviceFirmwareTaskResponse) ToJsonString added in v1.0.397

func (r *CancelDeviceFirmwareTaskResponse) ToJsonString() string

type CertInfo

type CertInfo struct {

	// 证书名称
	CertName *string `json:"CertName,omitempty" name:"CertName"`

	// 证书的序列号,16进制编码
	CertSN *string `json:"CertSN,omitempty" name:"CertSN"`

	// 证书颁发着名称
	IssuerName *string `json:"IssuerName,omitempty" name:"IssuerName"`

	// 证书主题
	Subject *string `json:"Subject,omitempty" name:"Subject"`

	// 证书创建时间,秒级时间戳
	CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"`

	// 证书生效时间,秒级时间戳
	EffectiveTime *uint64 `json:"EffectiveTime,omitempty" name:"EffectiveTime"`

	// 证书失效时间,秒级时间戳
	ExpireTime *uint64 `json:"ExpireTime,omitempty" name:"ExpireTime"`

	// X509证书内容
	CertText *string `json:"CertText,omitempty" name:"CertText"`
}

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) BatchUpdateFirmware added in v1.0.397

func (c *Client) BatchUpdateFirmware(request *BatchUpdateFirmwareRequest) (response *BatchUpdateFirmwareResponse, err error)

BatchUpdateFirmware 本接口(BatchUpdateFirmware)用于批量更新设备固件

可能返回的错误码:

FAILEDOPERATION_DEVICEISUPDATING = "FailedOperation.DeviceIsUpdating"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_FIRMWARENOTEXIST = "ResourceNotFound.FirmwareNotExist"

func (*Client) BatchUpdateFirmwareWithContext added in v1.0.397

func (c *Client) BatchUpdateFirmwareWithContext(ctx context.Context, request *BatchUpdateFirmwareRequest) (response *BatchUpdateFirmwareResponse, err error)

BatchUpdateFirmware 本接口(BatchUpdateFirmware)用于批量更新设备固件

可能返回的错误码:

FAILEDOPERATION_DEVICEISUPDATING = "FailedOperation.DeviceIsUpdating"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_FIRMWARENOTEXIST = "ResourceNotFound.FirmwareNotExist"

func (*Client) BindDevices added in v1.0.397

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

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

可能返回的错误码:

FAILEDOPERATION_BINDDEVICEOVERLIMIT = "FailedOperation.BindDeviceOverLimit"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_DEVICEISNOTGATEWAY = "InvalidParameterValue.DeviceIsNotGateway"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
UNAUTHORIZEDOPERATION_DEVICEHASALREADYBINDGATEWAY = "UnauthorizedOperation.DeviceHasAlreadyBindGateway"
UNAUTHORIZEDOPERATION_DEVICEISNOTENABLED = "UnauthorizedOperation.DeviceIsNotEnabled"

func (*Client) BindDevicesWithContext added in v1.0.397

func (c *Client) BindDevicesWithContext(ctx context.Context, request *BindDevicesRequest) (response *BindDevicesResponse, err error)

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

可能返回的错误码:

FAILEDOPERATION_BINDDEVICEOVERLIMIT = "FailedOperation.BindDeviceOverLimit"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_DEVICEISNOTGATEWAY = "InvalidParameterValue.DeviceIsNotGateway"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
UNAUTHORIZEDOPERATION_DEVICEHASALREADYBINDGATEWAY = "UnauthorizedOperation.DeviceHasAlreadyBindGateway"
UNAUTHORIZEDOPERATION_DEVICEISNOTENABLED = "UnauthorizedOperation.DeviceIsNotEnabled"

func (*Client) CancelDeviceFirmwareTask added in v1.0.397

func (c *Client) CancelDeviceFirmwareTask(request *CancelDeviceFirmwareTaskRequest) (response *CancelDeviceFirmwareTaskResponse, err error)

CancelDeviceFirmwareTask 取消设备升级任务

可能返回的错误码:

FAILEDOPERATION_DEVICEFIRMWARETASKALREADDONE = "FailedOperation.DeviceFirmwareTaskAlreadDone"
FAILEDOPERATION_DEVICERUNNINGOTHEROTATASK = "FailedOperation.DeviceRunningOtherOtaTask"
RESOURCENOTFOUND_DEVICEFIRMWARETASKNOTEXIST = "ResourceNotFound.DeviceFirmwareTaskNotExist"

func (*Client) CancelDeviceFirmwareTaskWithContext added in v1.0.397

func (c *Client) CancelDeviceFirmwareTaskWithContext(ctx context.Context, request *CancelDeviceFirmwareTaskRequest) (response *CancelDeviceFirmwareTaskResponse, err error)

CancelDeviceFirmwareTask 取消设备升级任务

可能返回的错误码:

FAILEDOPERATION_DEVICEFIRMWARETASKALREADDONE = "FailedOperation.DeviceFirmwareTaskAlreadDone"
FAILEDOPERATION_DEVICERUNNINGOTHEROTATASK = "FailedOperation.DeviceRunningOtherOtaTask"
RESOURCENOTFOUND_DEVICEFIRMWARETASKNOTEXIST = "ResourceNotFound.DeviceFirmwareTaskNotExist"

func (*Client) CreateDevice

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

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

可能返回的错误码:

FAILEDOPERATION_ALREADYDISTRIBUTIONDEVICE = "FailedOperation.AlreadyDistributionDevice"
FAILEDOPERATION_TIDWHITELISTNOTOPEN = "FailedOperation.TidWhiteListNotOpen"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_DEFINEDPSKNOTBASE64 = "InvalidParameterValue.DefinedPskNotBase64"
INVALIDPARAMETERVALUE_DEVICEALREADYEXIST = "InvalidParameterValue.DeviceAlreadyExist"
INVALIDPARAMETERVALUE_PRODUCTTYPENOTSUPPORT = "InvalidParameterValue.ProductTypeNotSupport"
LIMITEXCEEDED_DEVICEEXCEEDLIMIT = "LimitExceeded.DeviceExceedLimit"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
UNAUTHORIZEDOPERATION_PRODUCTCANTHAVELORADEVICE = "UnauthorizedOperation.ProductCantHaveLoRaDevice"
UNAUTHORIZEDOPERATION_PRODUCTCANTHAVENORMALDEVICE = "UnauthorizedOperation.ProductCantHaveNormalDevice"
UNAUTHORIZEDOPERATION_PRODUCTCANTHAVENOTLORADEVICE = "UnauthorizedOperation.ProductCantHaveNotLoRaDevice"
UNAUTHORIZEDOPERATION_PRODUCTISFORBIDDEN = "UnauthorizedOperation.ProductIsForbidden"
UNAUTHORIZEDOPERATION_PRODUCTNOTSUPPORTPSK = "UnauthorizedOperation.ProductNotSupportPSK"
UNSUPPORTEDOPERATION_SUITETOKENNOCREATE = "UnsupportedOperation.SuiteTokenNoCreate"

func (*Client) CreateDeviceWithContext added in v1.0.324

func (c *Client) CreateDeviceWithContext(ctx context.Context, request *CreateDeviceRequest) (response *CreateDeviceResponse, err error)

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

可能返回的错误码:

FAILEDOPERATION_ALREADYDISTRIBUTIONDEVICE = "FailedOperation.AlreadyDistributionDevice"
FAILEDOPERATION_TIDWHITELISTNOTOPEN = "FailedOperation.TidWhiteListNotOpen"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_DEFINEDPSKNOTBASE64 = "InvalidParameterValue.DefinedPskNotBase64"
INVALIDPARAMETERVALUE_DEVICEALREADYEXIST = "InvalidParameterValue.DeviceAlreadyExist"
INVALIDPARAMETERVALUE_PRODUCTTYPENOTSUPPORT = "InvalidParameterValue.ProductTypeNotSupport"
LIMITEXCEEDED_DEVICEEXCEEDLIMIT = "LimitExceeded.DeviceExceedLimit"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
UNAUTHORIZEDOPERATION_PRODUCTCANTHAVELORADEVICE = "UnauthorizedOperation.ProductCantHaveLoRaDevice"
UNAUTHORIZEDOPERATION_PRODUCTCANTHAVENORMALDEVICE = "UnauthorizedOperation.ProductCantHaveNormalDevice"
UNAUTHORIZEDOPERATION_PRODUCTCANTHAVENOTLORADEVICE = "UnauthorizedOperation.ProductCantHaveNotLoRaDevice"
UNAUTHORIZEDOPERATION_PRODUCTISFORBIDDEN = "UnauthorizedOperation.ProductIsForbidden"
UNAUTHORIZEDOPERATION_PRODUCTNOTSUPPORTPSK = "UnauthorizedOperation.ProductNotSupportPSK"
UNSUPPORTEDOPERATION_SUITETOKENNOCREATE = "UnsupportedOperation.SuiteTokenNoCreate"

func (*Client) CreateMultiDevicesTask added in v1.0.397

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

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE_PRODUCTTYPENOTSUPPORT = "InvalidParameterValue.ProductTypeNotSupport"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) CreateMultiDevicesTaskWithContext added in v1.0.397

func (c *Client) CreateMultiDevicesTaskWithContext(ctx context.Context, request *CreateMultiDevicesTaskRequest) (response *CreateMultiDevicesTaskResponse, err error)

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE_PRODUCTTYPENOTSUPPORT = "InvalidParameterValue.ProductTypeNotSupport"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) CreatePrivateCA

func (c *Client) CreatePrivateCA(request *CreatePrivateCARequest) (response *CreatePrivateCAResponse, err error)

CreatePrivateCA 创建私有CA证书

可能返回的错误码:

INVALIDPARAMETERVALUE_CACERTINVALID = "InvalidParameterValue.CACertInvalid"
INVALIDPARAMETERVALUE_CACERTNOTMATCH = "InvalidParameterValue.CACertNotMatch"
LIMITEXCEEDED_CACERTNAMEREPEAT = "LimitExceeded.CACertNameRepeat"
LIMITEXCEEDED_CAREPEAT = "LimitExceeded.CARepeat"

func (*Client) CreatePrivateCAWithContext added in v1.0.324

func (c *Client) CreatePrivateCAWithContext(ctx context.Context, request *CreatePrivateCARequest) (response *CreatePrivateCAResponse, err error)

CreatePrivateCA 创建私有CA证书

可能返回的错误码:

INVALIDPARAMETERVALUE_CACERTINVALID = "InvalidParameterValue.CACertInvalid"
INVALIDPARAMETERVALUE_CACERTNOTMATCH = "InvalidParameterValue.CACertNotMatch"
LIMITEXCEEDED_CACERTNAMEREPEAT = "LimitExceeded.CACertNameRepeat"
LIMITEXCEEDED_CAREPEAT = "LimitExceeded.CARepeat"

func (*Client) CreateProduct added in v1.0.397

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

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

可能返回的错误码:

FAILEDOPERATION_ACCOUNTISOLATED = "FailedOperation.AccountIsolated"
INTERNALERROR = "InternalError"
INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_PRODUCTALREADYEXIST = "InvalidParameterValue.ProductAlreadyExist"
INVALIDPARAMETERVALUE_PRODUCTTYPENOTSUPPORT = "InvalidParameterValue.ProductTypeNotSupport"
INVALIDPARAMETERVALUE_TIDPRODUCTALREADYEXIST = "InvalidParameterValue.TidProductAlreadyExist"
LIMITEXCEEDED_PRODUCTEXCEEDLIMIT = "LimitExceeded.ProductExceedLimit"
RESOURCENOTFOUND_THINGMODELNOTEXIST = "ResourceNotFound.ThingModelNotExist"
UNAUTHORIZEDOPERATION_USERNOTAUTHENTICAED = "UnauthorizedOperation.UserNotAuthenticaed"

func (*Client) CreateProductWithContext added in v1.0.397

func (c *Client) CreateProductWithContext(ctx context.Context, request *CreateProductRequest) (response *CreateProductResponse, err error)

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

可能返回的错误码:

FAILEDOPERATION_ACCOUNTISOLATED = "FailedOperation.AccountIsolated"
INTERNALERROR = "InternalError"
INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_PRODUCTALREADYEXIST = "InvalidParameterValue.ProductAlreadyExist"
INVALIDPARAMETERVALUE_PRODUCTTYPENOTSUPPORT = "InvalidParameterValue.ProductTypeNotSupport"
INVALIDPARAMETERVALUE_TIDPRODUCTALREADYEXIST = "InvalidParameterValue.TidProductAlreadyExist"
LIMITEXCEEDED_PRODUCTEXCEEDLIMIT = "LimitExceeded.ProductExceedLimit"
RESOURCENOTFOUND_THINGMODELNOTEXIST = "ResourceNotFound.ThingModelNotExist"
UNAUTHORIZEDOPERATION_USERNOTAUTHENTICAED = "UnauthorizedOperation.UserNotAuthenticaed"

func (*Client) CreateTaskFileUrl added in v1.0.397

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

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateTaskFileUrlWithContext added in v1.0.397

func (c *Client) CreateTaskFileUrlWithContext(ctx context.Context, request *CreateTaskFileUrlRequest) (response *CreateTaskFileUrlResponse, err error)

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) CreateTopicPolicy added in v1.0.397

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

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

可能返回的错误码:

FAILEDOPERATION_PRODUCTNOTBIND = "FailedOperation.ProductNotBind"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_TOPICPOLICYALREADYEXIST = "InvalidParameterValue.TopicPolicyAlreadyExist"
LIMITEXCEEDED_TOPICPOLICYEXCEEDLIMIT = "LimitExceeded.TopicPolicyExceedLimit"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) CreateTopicPolicyWithContext added in v1.0.397

func (c *Client) CreateTopicPolicyWithContext(ctx context.Context, request *CreateTopicPolicyRequest) (response *CreateTopicPolicyResponse, err error)

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

可能返回的错误码:

FAILEDOPERATION_PRODUCTNOTBIND = "FailedOperation.ProductNotBind"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_TOPICPOLICYALREADYEXIST = "InvalidParameterValue.TopicPolicyAlreadyExist"
LIMITEXCEEDED_TOPICPOLICYEXCEEDLIMIT = "LimitExceeded.TopicPolicyExceedLimit"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) CreateTopicRule added in v1.0.397

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

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CHECKFORWARDURLFAIL = "InvalidParameterValue.CheckForwardURLFail"
INVALIDPARAMETERVALUE_CLOUDCOMPONENTALREADYEXIST = "InvalidParameterValue.CloudComponentAlreadyExist"
INVALIDPARAMETERVALUE_FAILACTIONHASSAMEDEVICE = "InvalidParameterValue.FailActionHasSameDevice"
INVALIDPARAMETERVALUE_INVALIDSQL = "InvalidParameterValue.InvalidSQL"
INVALIDPARAMETERVALUE_RULENUMBERBEYONDLIMIT = "InvalidParameterValue.RuleNumberBeyondLimit"
INVALIDPARAMETERVALUE_TOPICRULEALREADYEXIST = "InvalidParameterValue.TopicRuleAlreadyExist"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) CreateTopicRuleWithContext added in v1.0.397

func (c *Client) CreateTopicRuleWithContext(ctx context.Context, request *CreateTopicRuleRequest) (response *CreateTopicRuleResponse, err error)

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_CHECKFORWARDURLFAIL = "InvalidParameterValue.CheckForwardURLFail"
INVALIDPARAMETERVALUE_CLOUDCOMPONENTALREADYEXIST = "InvalidParameterValue.CloudComponentAlreadyExist"
INVALIDPARAMETERVALUE_FAILACTIONHASSAMEDEVICE = "InvalidParameterValue.FailActionHasSameDevice"
INVALIDPARAMETERVALUE_INVALIDSQL = "InvalidParameterValue.InvalidSQL"
INVALIDPARAMETERVALUE_RULENUMBERBEYONDLIMIT = "InvalidParameterValue.RuleNumberBeyondLimit"
INVALIDPARAMETERVALUE_TOPICRULEALREADYEXIST = "InvalidParameterValue.TopicRuleAlreadyExist"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) DeleteDevice

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

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
UNAUTHORIZEDOPERATION_DEVICEHASALREADYBINDGATEWAY = "UnauthorizedOperation.DeviceHasAlreadyBindGateway"
UNAUTHORIZEDOPERATION_GATEWAYHASBINDEDDEVICES = "UnauthorizedOperation.GatewayHasBindedDevices"
UNSUPPORTEDOPERATION_DEVICEOTATASKINPROGRESS = "UnsupportedOperation.DeviceOtaTaskInProgress"

func (*Client) DeleteDeviceResource added in v1.0.397

func (c *Client) DeleteDeviceResource(request *DeleteDeviceResourceRequest) (response *DeleteDeviceResourceResponse, err error)

DeleteDeviceResource 本接口(DeleteDeviceResource)用于删除设备资源

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
LIMITEXCEEDED_PRODUCTEXCEEDLIMIT = "LimitExceeded.ProductExceedLimit"
RESOURCENOTFOUND_DEVICERESOURCENOTEXIST = "ResourceNotFound.DeviceResourceNotExist"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
UNAUTHORIZEDOPERATION_USERNOTAUTHENTICAED = "UnauthorizedOperation.UserNotAuthenticaed"

func (*Client) DeleteDeviceResourceWithContext added in v1.0.397

func (c *Client) DeleteDeviceResourceWithContext(ctx context.Context, request *DeleteDeviceResourceRequest) (response *DeleteDeviceResourceResponse, err error)

DeleteDeviceResource 本接口(DeleteDeviceResource)用于删除设备资源

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
LIMITEXCEEDED_PRODUCTEXCEEDLIMIT = "LimitExceeded.ProductExceedLimit"
RESOURCENOTFOUND_DEVICERESOURCENOTEXIST = "ResourceNotFound.DeviceResourceNotExist"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
UNAUTHORIZEDOPERATION_USERNOTAUTHENTICAED = "UnauthorizedOperation.UserNotAuthenticaed"

func (*Client) DeleteDeviceWithContext added in v1.0.324

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

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
UNAUTHORIZEDOPERATION_DEVICEHASALREADYBINDGATEWAY = "UnauthorizedOperation.DeviceHasAlreadyBindGateway"
UNAUTHORIZEDOPERATION_GATEWAYHASBINDEDDEVICES = "UnauthorizedOperation.GatewayHasBindedDevices"
UNSUPPORTEDOPERATION_DEVICEOTATASKINPROGRESS = "UnsupportedOperation.DeviceOtaTaskInProgress"

func (*Client) DeletePrivateCA

func (c *Client) DeletePrivateCA(request *DeletePrivateCARequest) (response *DeletePrivateCAResponse, err error)

DeletePrivateCA 删除私有CA证书

可能返回的错误码:

LIMITEXCEEDED_CAALREADYBINDPRODUCT = "LimitExceeded.CAAlreadyBindProduct"
RESOURCENOTFOUND_CACERTNOTEXIST = "ResourceNotFound.CACertNotExist"

func (*Client) DeletePrivateCAWithContext added in v1.0.324

func (c *Client) DeletePrivateCAWithContext(ctx context.Context, request *DeletePrivateCARequest) (response *DeletePrivateCAResponse, err error)

DeletePrivateCA 删除私有CA证书

可能返回的错误码:

LIMITEXCEEDED_CAALREADYBINDPRODUCT = "LimitExceeded.CAAlreadyBindProduct"
RESOURCENOTFOUND_CACERTNOTEXIST = "ResourceNotFound.CACertNotExist"

func (*Client) DeleteProduct

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

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
UNAUTHORIZEDOPERATION_DEVICESEXISTUNDERPRODUCT = "UnauthorizedOperation.DevicesExistUnderProduct"
UNSUPPORTEDOPERATION_GATEWAYPRODUCTHASBINDEDPRODUCT = "UnsupportedOperation.GatewayProductHasBindedProduct"
UNSUPPORTEDOPERATION_PRODUCTHASBINDGATEWAY = "UnsupportedOperation.ProductHasBindGateway"
UNSUPPORTEDOPERATION_PRODUCTHASBINDEDGATEWAYPRODUCT = "UnsupportedOperation.ProductHasBindedGatewayProduct"

func (*Client) DeleteProductPrivateCA added in v1.0.378

func (c *Client) DeleteProductPrivateCA(request *DeleteProductPrivateCARequest) (response *DeleteProductPrivateCAResponse, err error)

DeleteProductPrivateCA 删除产品的私有CA证书

可能返回的错误码:

INVALIDPARAMETERVALUE_CACERTINVALID = "InvalidParameterValue.CACertInvalid"

func (*Client) DeleteProductPrivateCAWithContext added in v1.0.378

func (c *Client) DeleteProductPrivateCAWithContext(ctx context.Context, request *DeleteProductPrivateCARequest) (response *DeleteProductPrivateCAResponse, err error)

DeleteProductPrivateCA 删除产品的私有CA证书

可能返回的错误码:

INVALIDPARAMETERVALUE_CACERTINVALID = "InvalidParameterValue.CACertInvalid"

func (*Client) DeleteProductWithContext added in v1.0.324

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

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
UNAUTHORIZEDOPERATION_DEVICESEXISTUNDERPRODUCT = "UnauthorizedOperation.DevicesExistUnderProduct"
UNSUPPORTEDOPERATION_GATEWAYPRODUCTHASBINDEDPRODUCT = "UnsupportedOperation.GatewayProductHasBindedProduct"
UNSUPPORTEDOPERATION_PRODUCTHASBINDGATEWAY = "UnsupportedOperation.ProductHasBindGateway"
UNSUPPORTEDOPERATION_PRODUCTHASBINDEDGATEWAYPRODUCT = "UnsupportedOperation.ProductHasBindedGatewayProduct"

func (*Client) DeleteTopicRule added in v1.0.397

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

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_TOPICRULENOTEXIST = "ResourceNotFound.TopicRuleNotExist"

func (*Client) DeleteTopicRuleWithContext added in v1.0.397

func (c *Client) DeleteTopicRuleWithContext(ctx context.Context, request *DeleteTopicRuleRequest) (response *DeleteTopicRuleResponse, err error)

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_TOPICRULENOTEXIST = "ResourceNotFound.TopicRuleNotExist"

func (*Client) DescribeDevice

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

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) DescribeDeviceClientKey added in v1.0.397

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

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE_PRODUCTTYPENOTSUPPORT = "InvalidParameterValue.ProductTypeNotSupport"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
UNSUPPORTEDOPERATION_WRONGPRODUCTAUTHTYPE = "UnsupportedOperation.WrongProductAuthType"

func (*Client) DescribeDeviceClientKeyWithContext added in v1.0.397

func (c *Client) DescribeDeviceClientKeyWithContext(ctx context.Context, request *DescribeDeviceClientKeyRequest) (response *DescribeDeviceClientKeyResponse, err error)

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE_PRODUCTTYPENOTSUPPORT = "InvalidParameterValue.ProductTypeNotSupport"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
UNSUPPORTEDOPERATION_WRONGPRODUCTAUTHTYPE = "UnsupportedOperation.WrongProductAuthType"

func (*Client) DescribeDeviceResource added in v1.0.397

func (c *Client) DescribeDeviceResource(request *DescribeDeviceResourceRequest) (response *DescribeDeviceResourceResponse, err error)

DescribeDeviceResource 本接口(DescribeDeviceResource)用于查询设备资源详情。

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_DEVICERESOURCENOTEXIST = "ResourceNotFound.DeviceResourceNotExist"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) DescribeDeviceResourceWithContext added in v1.0.397

func (c *Client) DescribeDeviceResourceWithContext(ctx context.Context, request *DescribeDeviceResourceRequest) (response *DescribeDeviceResourceResponse, err error)

DescribeDeviceResource 本接口(DescribeDeviceResource)用于查询设备资源详情。

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_DEVICERESOURCENOTEXIST = "ResourceNotFound.DeviceResourceNotExist"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) DescribeDeviceResources added in v1.0.397

func (c *Client) DescribeDeviceResources(request *DescribeDeviceResourcesRequest) (response *DescribeDeviceResourcesResponse, err error)

DescribeDeviceResources 本接口(DescribeDeviceResources)用于查询设备资源列表。

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) DescribeDeviceResourcesWithContext added in v1.0.397

func (c *Client) DescribeDeviceResourcesWithContext(ctx context.Context, request *DescribeDeviceResourcesRequest) (response *DescribeDeviceResourcesResponse, err error)

DescribeDeviceResources 本接口(DescribeDeviceResources)用于查询设备资源列表。

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) DescribeDeviceShadow added in v1.0.397

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

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_PARAMINCOMPLETE = "InvalidParameterValue.ParamIncomplete"
RESOURCENOTFOUND_DEVICESHADOWNOTEXIST = "ResourceNotFound.DeviceShadowNotExist"
RESOURCENOTFOUND_PRODUCTORDEVICENOTEXIST = "ResourceNotFound.ProductOrDeviceNotExist"

func (*Client) DescribeDeviceShadowWithContext added in v1.0.397

func (c *Client) DescribeDeviceShadowWithContext(ctx context.Context, request *DescribeDeviceShadowRequest) (response *DescribeDeviceShadowResponse, err error)

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_PARAMINCOMPLETE = "InvalidParameterValue.ParamIncomplete"
RESOURCENOTFOUND_DEVICESHADOWNOTEXIST = "ResourceNotFound.DeviceShadowNotExist"
RESOURCENOTFOUND_PRODUCTORDEVICENOTEXIST = "ResourceNotFound.ProductOrDeviceNotExist"

func (*Client) DescribeDeviceWithContext added in v1.0.324

func (c *Client) DescribeDeviceWithContext(ctx context.Context, request *DescribeDeviceRequest) (response *DescribeDeviceResponse, err error)

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) DescribeDevices

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

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) DescribeDevicesWithContext added in v1.0.324

func (c *Client) DescribeDevicesWithContext(ctx context.Context, request *DescribeDevicesRequest) (response *DescribeDevicesResponse, err error)

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) DescribeFirmware added in v1.0.397

func (c *Client) DescribeFirmware(request *DescribeFirmwareRequest) (response *DescribeFirmwareResponse, err error)

DescribeFirmware 查询固件信息

可能返回的错误码:

RESOURCENOTFOUND_FIRMWARENOTEXIST = "ResourceNotFound.FirmwareNotExist"

func (*Client) DescribeFirmwareTask added in v1.0.397

func (c *Client) DescribeFirmwareTask(request *DescribeFirmwareTaskRequest) (response *DescribeFirmwareTaskResponse, err error)

DescribeFirmwareTask 查询固件升级任务详情

可能返回的错误码:

RESOURCENOTFOUND_FIRMWARETASKNOTEXIST = "ResourceNotFound.FirmwareTaskNotExist"

func (*Client) DescribeFirmwareTaskDevices added in v1.0.397

func (c *Client) DescribeFirmwareTaskDevices(request *DescribeFirmwareTaskDevicesRequest) (response *DescribeFirmwareTaskDevicesResponse, err error)

DescribeFirmwareTaskDevices 查询固件升级任务的设备列表

可能返回的错误码:

RESOURCENOTFOUND_FIRMWARETASKNOTEXIST = "ResourceNotFound.FirmwareTaskNotExist"

func (*Client) DescribeFirmwareTaskDevicesWithContext added in v1.0.397

func (c *Client) DescribeFirmwareTaskDevicesWithContext(ctx context.Context, request *DescribeFirmwareTaskDevicesRequest) (response *DescribeFirmwareTaskDevicesResponse, err error)

DescribeFirmwareTaskDevices 查询固件升级任务的设备列表

可能返回的错误码:

RESOURCENOTFOUND_FIRMWARETASKNOTEXIST = "ResourceNotFound.FirmwareTaskNotExist"

func (*Client) DescribeFirmwareTaskDistribution added in v1.0.397

func (c *Client) DescribeFirmwareTaskDistribution(request *DescribeFirmwareTaskDistributionRequest) (response *DescribeFirmwareTaskDistributionResponse, err error)

DescribeFirmwareTaskDistribution 查询固件升级任务状态分布

可能返回的错误码:

RESOURCENOTFOUND_FIRMWARETASKNOTEXIST = "ResourceNotFound.FirmwareTaskNotExist"

func (*Client) DescribeFirmwareTaskDistributionWithContext added in v1.0.397

func (c *Client) DescribeFirmwareTaskDistributionWithContext(ctx context.Context, request *DescribeFirmwareTaskDistributionRequest) (response *DescribeFirmwareTaskDistributionResponse, err error)

DescribeFirmwareTaskDistribution 查询固件升级任务状态分布

可能返回的错误码:

RESOURCENOTFOUND_FIRMWARETASKNOTEXIST = "ResourceNotFound.FirmwareTaskNotExist"

func (*Client) DescribeFirmwareTaskStatistics added in v1.0.397

func (c *Client) DescribeFirmwareTaskStatistics(request *DescribeFirmwareTaskStatisticsRequest) (response *DescribeFirmwareTaskStatisticsResponse, err error)

DescribeFirmwareTaskStatistics 查询固件升级任务统计信息

可能返回的错误码:

RESOURCENOTFOUND_FIRMWARETASKNOTEXIST = "ResourceNotFound.FirmwareTaskNotExist"

func (*Client) DescribeFirmwareTaskStatisticsWithContext added in v1.0.397

func (c *Client) DescribeFirmwareTaskStatisticsWithContext(ctx context.Context, request *DescribeFirmwareTaskStatisticsRequest) (response *DescribeFirmwareTaskStatisticsResponse, err error)

DescribeFirmwareTaskStatistics 查询固件升级任务统计信息

可能返回的错误码:

RESOURCENOTFOUND_FIRMWARETASKNOTEXIST = "ResourceNotFound.FirmwareTaskNotExist"

func (*Client) DescribeFirmwareTaskWithContext added in v1.0.397

func (c *Client) DescribeFirmwareTaskWithContext(ctx context.Context, request *DescribeFirmwareTaskRequest) (response *DescribeFirmwareTaskResponse, err error)

DescribeFirmwareTask 查询固件升级任务详情

可能返回的错误码:

RESOURCENOTFOUND_FIRMWARETASKNOTEXIST = "ResourceNotFound.FirmwareTaskNotExist"

func (*Client) DescribeFirmwareTasks added in v1.0.397

func (c *Client) DescribeFirmwareTasks(request *DescribeFirmwareTasksRequest) (response *DescribeFirmwareTasksResponse, err error)

DescribeFirmwareTasks 查询固件升级任务列表

可能返回的错误码:

RESOURCENOTFOUND_FIRMWARETASKNOTEXIST = "ResourceNotFound.FirmwareTaskNotExist"

func (*Client) DescribeFirmwareTasksWithContext added in v1.0.397

func (c *Client) DescribeFirmwareTasksWithContext(ctx context.Context, request *DescribeFirmwareTasksRequest) (response *DescribeFirmwareTasksResponse, err error)

DescribeFirmwareTasks 查询固件升级任务列表

可能返回的错误码:

RESOURCENOTFOUND_FIRMWARETASKNOTEXIST = "ResourceNotFound.FirmwareTaskNotExist"

func (*Client) DescribeFirmwareWithContext added in v1.0.397

func (c *Client) DescribeFirmwareWithContext(ctx context.Context, request *DescribeFirmwareRequest) (response *DescribeFirmwareResponse, err error)

DescribeFirmware 查询固件信息

可能返回的错误码:

RESOURCENOTFOUND_FIRMWARENOTEXIST = "ResourceNotFound.FirmwareNotExist"

func (*Client) DescribeGatewayBindDevices added in v1.0.397

func (c *Client) DescribeGatewayBindDevices(request *DescribeGatewayBindDevicesRequest) (response *DescribeGatewayBindDevicesResponse, err error)

DescribeGatewayBindDevices 本接口(DescribeGatewayBindDevices)用于获取网关绑定的子设备列表

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) DescribeGatewayBindDevicesWithContext added in v1.0.397

func (c *Client) DescribeGatewayBindDevicesWithContext(ctx context.Context, request *DescribeGatewayBindDevicesRequest) (response *DescribeGatewayBindDevicesResponse, err error)

DescribeGatewayBindDevices 本接口(DescribeGatewayBindDevices)用于获取网关绑定的子设备列表

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) DescribePrivateCA

func (c *Client) DescribePrivateCA(request *DescribePrivateCARequest) (response *DescribePrivateCAResponse, err error)

DescribePrivateCA 查询私有化CA信息

可能返回的错误码:

RESOURCENOTFOUND_CACERTNOTEXIST = "ResourceNotFound.CACertNotExist"

func (*Client) DescribePrivateCABindedProducts

func (c *Client) DescribePrivateCABindedProducts(request *DescribePrivateCABindedProductsRequest) (response *DescribePrivateCABindedProductsResponse, err error)

DescribePrivateCABindedProducts 查询私有CA绑定的产品列表

可能返回的错误码:

RESOURCENOTFOUND_CACERTNOTEXIST = "ResourceNotFound.CACertNotExist"

func (*Client) DescribePrivateCABindedProductsWithContext added in v1.0.324

func (c *Client) DescribePrivateCABindedProductsWithContext(ctx context.Context, request *DescribePrivateCABindedProductsRequest) (response *DescribePrivateCABindedProductsResponse, err error)

DescribePrivateCABindedProducts 查询私有CA绑定的产品列表

可能返回的错误码:

RESOURCENOTFOUND_CACERTNOTEXIST = "ResourceNotFound.CACertNotExist"

func (*Client) DescribePrivateCAWithContext added in v1.0.324

func (c *Client) DescribePrivateCAWithContext(ctx context.Context, request *DescribePrivateCARequest) (response *DescribePrivateCAResponse, err error)

DescribePrivateCA 查询私有化CA信息

可能返回的错误码:

RESOURCENOTFOUND_CACERTNOTEXIST = "ResourceNotFound.CACertNotExist"

func (*Client) DescribePrivateCAs

func (c *Client) DescribePrivateCAs(request *DescribePrivateCAsRequest) (response *DescribePrivateCAsResponse, err error)

DescribePrivateCAs 查询私有CA证书列表

可能返回的错误码:

RESOURCENOTFOUND_CACERTNOTEXIST = "ResourceNotFound.CACertNotExist"

func (*Client) DescribePrivateCAsWithContext added in v1.0.324

func (c *Client) DescribePrivateCAsWithContext(ctx context.Context, request *DescribePrivateCAsRequest) (response *DescribePrivateCAsResponse, err error)

DescribePrivateCAs 查询私有CA证书列表

可能返回的错误码:

RESOURCENOTFOUND_CACERTNOTEXIST = "ResourceNotFound.CACertNotExist"

func (*Client) DescribeProduct

func (c *Client) DescribeProduct(request *DescribeProductRequest) (response *DescribeProductResponse, err error)

DescribeProduct 本接口(DescribeProduct)用于查看产品详情

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) DescribeProductCA

func (c *Client) DescribeProductCA(request *DescribeProductCARequest) (response *DescribeProductCAResponse, err error)

DescribeProductCA 查询产品绑定的CA证书

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) DescribeProductCAWithContext added in v1.0.324

func (c *Client) DescribeProductCAWithContext(ctx context.Context, request *DescribeProductCARequest) (response *DescribeProductCAResponse, err error)

DescribeProductCA 查询产品绑定的CA证书

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) DescribeProductResource added in v1.0.397

func (c *Client) DescribeProductResource(request *DescribeProductResourceRequest) (response *DescribeProductResourceResponse, err error)

DescribeProductResource 本接口(DescribeProductResource)用于查询产品资源详情。

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) DescribeProductResourceWithContext added in v1.0.397

func (c *Client) DescribeProductResourceWithContext(ctx context.Context, request *DescribeProductResourceRequest) (response *DescribeProductResourceResponse, err error)

DescribeProductResource 本接口(DescribeProductResource)用于查询产品资源详情。

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) DescribeProductResources added in v1.0.397

func (c *Client) DescribeProductResources(request *DescribeProductResourcesRequest) (response *DescribeProductResourcesResponse, err error)

DescribeProductResources 本接口(DescribeProductResources)用于查询产品资源列表。

可能返回的错误码:

FAILEDOPERATION_PRODUCTRESOURCEDUPLICATE = "FailedOperation.ProductResourceDuplicate"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
RESOURCENOTFOUND_PRODUCTRESOURCENOTEXIST = "ResourceNotFound.ProductResourceNotExist"

func (*Client) DescribeProductResourcesWithContext added in v1.0.397

func (c *Client) DescribeProductResourcesWithContext(ctx context.Context, request *DescribeProductResourcesRequest) (response *DescribeProductResourcesResponse, err error)

DescribeProductResources 本接口(DescribeProductResources)用于查询产品资源列表。

可能返回的错误码:

FAILEDOPERATION_PRODUCTRESOURCEDUPLICATE = "FailedOperation.ProductResourceDuplicate"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
RESOURCENOTFOUND_PRODUCTRESOURCENOTEXIST = "ResourceNotFound.ProductResourceNotExist"

func (*Client) DescribeProductTask added in v1.0.397

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

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
RESOURCENOTFOUND_CREATEMULTIDEVICETASKNOTEXIST = "ResourceNotFound.CreateMultiDeviceTaskNotExist"
RESOURCENOTFOUND_TASKNOTEXIST = "ResourceNotFound.TaskNotExist"

func (*Client) DescribeProductTaskWithContext added in v1.0.397

func (c *Client) DescribeProductTaskWithContext(ctx context.Context, request *DescribeProductTaskRequest) (response *DescribeProductTaskResponse, err error)

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
RESOURCENOTFOUND_CREATEMULTIDEVICETASKNOTEXIST = "ResourceNotFound.CreateMultiDeviceTaskNotExist"
RESOURCENOTFOUND_TASKNOTEXIST = "ResourceNotFound.TaskNotExist"

func (*Client) DescribeProductTasks added in v1.0.397

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

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeProductTasksWithContext added in v1.0.397

func (c *Client) DescribeProductTasksWithContext(ctx context.Context, request *DescribeProductTasksRequest) (response *DescribeProductTasksResponse, err error)

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) DescribeProductWithContext added in v1.0.324

func (c *Client) DescribeProductWithContext(ctx context.Context, request *DescribeProductRequest) (response *DescribeProductResponse, err error)

DescribeProduct 本接口(DescribeProduct)用于查看产品详情

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) DescribeProducts added in v1.0.397

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

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) DescribeProductsWithContext added in v1.0.397

func (c *Client) DescribeProductsWithContext(ctx context.Context, request *DescribeProductsRequest) (response *DescribeProductsResponse, err error)

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) DescribePushResourceTaskStatistics added in v1.0.397

func (c *Client) DescribePushResourceTaskStatistics(request *DescribePushResourceTaskStatisticsRequest) (response *DescribePushResourceTaskStatisticsResponse, err error)

DescribePushResourceTaskStatistics 查询推送资源任务统计信息

可能返回的错误码:

RESOURCENOTFOUND_PRODUCTRESOURCENOTEXIST = "ResourceNotFound.ProductResourceNotExist"

func (*Client) DescribePushResourceTaskStatisticsWithContext added in v1.0.397

func (c *Client) DescribePushResourceTaskStatisticsWithContext(ctx context.Context, request *DescribePushResourceTaskStatisticsRequest) (response *DescribePushResourceTaskStatisticsResponse, err error)

DescribePushResourceTaskStatistics 查询推送资源任务统计信息

可能返回的错误码:

RESOURCENOTFOUND_PRODUCTRESOURCENOTEXIST = "ResourceNotFound.ProductResourceNotExist"

func (*Client) DescribeResourceTasks added in v1.0.397

func (c *Client) DescribeResourceTasks(request *DescribeResourceTasksRequest) (response *DescribeResourceTasksResponse, err error)

DescribeResourceTasks 查询资源推送任务列表

可能返回的错误码:

RESOURCENOTFOUND_PRODUCTRESOURCENOTEXIST = "ResourceNotFound.ProductResourceNotExist"

func (*Client) DescribeResourceTasksWithContext added in v1.0.397

func (c *Client) DescribeResourceTasksWithContext(ctx context.Context, request *DescribeResourceTasksRequest) (response *DescribeResourceTasksResponse, err error)

DescribeResourceTasks 查询资源推送任务列表

可能返回的错误码:

RESOURCENOTFOUND_PRODUCTRESOURCENOTEXIST = "ResourceNotFound.ProductResourceNotExist"

func (*Client) DisableTopicRule added in v1.0.397

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

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

可能返回的错误码:

FAILEDOPERATION_RULEALREADYDISABLED = "FailedOperation.RuleAlreadyDisabled"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ACTIONNIL = "InvalidParameterValue.ActionNil"
INVALIDPARAMETERVALUE_RULENUMBERBEYONDLIMIT = "InvalidParameterValue.RuleNumberBeyondLimit"
INVALIDPARAMETERVALUE_TOPICRULESQLNOTEDITED = "InvalidParameterValue.TopicRuleSqlNotEdited"
RESOURCENOTFOUND_TOPICRULENOTEXIST = "ResourceNotFound.TopicRuleNotExist"

func (*Client) DisableTopicRuleWithContext added in v1.0.397

func (c *Client) DisableTopicRuleWithContext(ctx context.Context, request *DisableTopicRuleRequest) (response *DisableTopicRuleResponse, err error)

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

可能返回的错误码:

FAILEDOPERATION_RULEALREADYDISABLED = "FailedOperation.RuleAlreadyDisabled"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ACTIONNIL = "InvalidParameterValue.ActionNil"
INVALIDPARAMETERVALUE_RULENUMBERBEYONDLIMIT = "InvalidParameterValue.RuleNumberBeyondLimit"
INVALIDPARAMETERVALUE_TOPICRULESQLNOTEDITED = "InvalidParameterValue.TopicRuleSqlNotEdited"
RESOURCENOTFOUND_TOPICRULENOTEXIST = "ResourceNotFound.TopicRuleNotExist"

func (*Client) DownloadDeviceResource added in v1.0.397

func (c *Client) DownloadDeviceResource(request *DownloadDeviceResourceRequest) (response *DownloadDeviceResourceResponse, err error)

DownloadDeviceResource 本接口(DownloadDeviceResource)用于下载设备资源

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
LIMITEXCEEDED_PRODUCTEXCEEDLIMIT = "LimitExceeded.ProductExceedLimit"
RESOURCENOTFOUND_DEVICERESOURCENOTEXIST = "ResourceNotFound.DeviceResourceNotExist"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
RESOURCENOTFOUND_RESOURCEFILENOTEXIST = "ResourceNotFound.ResourceFileNotExist"
UNAUTHORIZEDOPERATION_USERNOTAUTHENTICAED = "UnauthorizedOperation.UserNotAuthenticaed"

func (*Client) DownloadDeviceResourceWithContext added in v1.0.397

func (c *Client) DownloadDeviceResourceWithContext(ctx context.Context, request *DownloadDeviceResourceRequest) (response *DownloadDeviceResourceResponse, err error)

DownloadDeviceResource 本接口(DownloadDeviceResource)用于下载设备资源

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
LIMITEXCEEDED_PRODUCTEXCEEDLIMIT = "LimitExceeded.ProductExceedLimit"
RESOURCENOTFOUND_DEVICERESOURCENOTEXIST = "ResourceNotFound.DeviceResourceNotExist"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
RESOURCENOTFOUND_RESOURCEFILENOTEXIST = "ResourceNotFound.ResourceFileNotExist"
UNAUTHORIZEDOPERATION_USERNOTAUTHENTICAED = "UnauthorizedOperation.UserNotAuthenticaed"

func (*Client) EditFirmware added in v1.0.397

func (c *Client) EditFirmware(request *EditFirmwareRequest) (response *EditFirmwareResponse, err error)

EditFirmware 编辑固件信息

可能返回的错误码:

RESOURCENOTFOUND_DEVICEHASNOFIRMWARE = "ResourceNotFound.DeviceHasNoFirmware"

func (*Client) EditFirmwareWithContext added in v1.0.397

func (c *Client) EditFirmwareWithContext(ctx context.Context, request *EditFirmwareRequest) (response *EditFirmwareResponse, err error)

EditFirmware 编辑固件信息

可能返回的错误码:

RESOURCENOTFOUND_DEVICEHASNOFIRMWARE = "ResourceNotFound.DeviceHasNoFirmware"

func (*Client) EnableTopicRule added in v1.0.397

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

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

可能返回的错误码:

FAILEDOPERATION_DUPLICATIONOFFUNCTIONITEM = "FailedOperation.DuplicationOfFunctionItem"
FAILEDOPERATION_FUNCTIONFILENOTEXIST = "FailedOperation.FunctionFileNotExist"
FAILEDOPERATION_PROXYIPISNOTENOUGH = "FailedOperation.ProxyIPIsNotEnough"
FAILEDOPERATION_RULEALREADYENABLED = "FailedOperation.RuleAlreadyEnabled"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ACTIONNIL = "InvalidParameterValue.ActionNil"
INVALIDPARAMETERVALUE_CHECKFORWARDURLFAIL = "InvalidParameterValue.CheckForwardURLFail"
INVALIDPARAMETERVALUE_CLOUDCOMPONENTALREADYEXIST = "InvalidParameterValue.CloudComponentAlreadyExist"
INVALIDPARAMETERVALUE_FAILACTIONHASSAMEDEVICE = "InvalidParameterValue.FailActionHasSameDevice"
INVALIDPARAMETERVALUE_FORWARDREDIRECTDENIED = "InvalidParameterValue.ForwardRedirectDenied"
INVALIDPARAMETERVALUE_INVALIDSQL = "InvalidParameterValue.InvalidSQL"
INVALIDPARAMETERVALUE_RULENUMBERBEYONDLIMIT = "InvalidParameterValue.RuleNumberBeyondLimit"
INVALIDPARAMETERVALUE_TOPICRULESQLNOTEDITED = "InvalidParameterValue.TopicRuleSqlNotEdited"
RESOURCENOTFOUND_TOPICRULENOTEXIST = "ResourceNotFound.TopicRuleNotExist"

func (*Client) EnableTopicRuleWithContext added in v1.0.397

func (c *Client) EnableTopicRuleWithContext(ctx context.Context, request *EnableTopicRuleRequest) (response *EnableTopicRuleResponse, err error)

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

可能返回的错误码:

FAILEDOPERATION_DUPLICATIONOFFUNCTIONITEM = "FailedOperation.DuplicationOfFunctionItem"
FAILEDOPERATION_FUNCTIONFILENOTEXIST = "FailedOperation.FunctionFileNotExist"
FAILEDOPERATION_PROXYIPISNOTENOUGH = "FailedOperation.ProxyIPIsNotEnough"
FAILEDOPERATION_RULEALREADYENABLED = "FailedOperation.RuleAlreadyEnabled"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ACTIONNIL = "InvalidParameterValue.ActionNil"
INVALIDPARAMETERVALUE_CHECKFORWARDURLFAIL = "InvalidParameterValue.CheckForwardURLFail"
INVALIDPARAMETERVALUE_CLOUDCOMPONENTALREADYEXIST = "InvalidParameterValue.CloudComponentAlreadyExist"
INVALIDPARAMETERVALUE_FAILACTIONHASSAMEDEVICE = "InvalidParameterValue.FailActionHasSameDevice"
INVALIDPARAMETERVALUE_FORWARDREDIRECTDENIED = "InvalidParameterValue.ForwardRedirectDenied"
INVALIDPARAMETERVALUE_INVALIDSQL = "InvalidParameterValue.InvalidSQL"
INVALIDPARAMETERVALUE_RULENUMBERBEYONDLIMIT = "InvalidParameterValue.RuleNumberBeyondLimit"
INVALIDPARAMETERVALUE_TOPICRULESQLNOTEDITED = "InvalidParameterValue.TopicRuleSqlNotEdited"
RESOURCENOTFOUND_TOPICRULENOTEXIST = "ResourceNotFound.TopicRuleNotExist"

func (*Client) GetAllVersion added in v1.0.403

func (c *Client) GetAllVersion(request *GetAllVersionRequest) (response *GetAllVersionResponse, err error)

GetAllVersion 本接口(GetAllVersion)用于获取所有的版本列表

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) GetAllVersionWithContext added in v1.0.403

func (c *Client) GetAllVersionWithContext(ctx context.Context, request *GetAllVersionRequest) (response *GetAllVersionResponse, err error)

GetAllVersion 本接口(GetAllVersion)用于获取所有的版本列表

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) GetCOSURL added in v1.0.397

func (c *Client) GetCOSURL(request *GetCOSURLRequest) (response *GetCOSURLResponse, err error)

GetCOSURL 本接口(GetCOSURL)用于获取固件存储在COS的URL

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) GetCOSURLWithContext added in v1.0.397

func (c *Client) GetCOSURLWithContext(ctx context.Context, request *GetCOSURLRequest) (response *GetCOSURLResponse, err error)

GetCOSURL 本接口(GetCOSURL)用于获取固件存储在COS的URL

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) GetUserResourceInfo added in v1.0.397

func (c *Client) GetUserResourceInfo(request *GetUserResourceInfoRequest) (response *GetUserResourceInfoResponse, err error)

GetUserResourceInfo 本接口(GetUserResourceInfo)用于查询用户资源使用信息。

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) GetUserResourceInfoWithContext added in v1.0.397

func (c *Client) GetUserResourceInfoWithContext(ctx context.Context, request *GetUserResourceInfoRequest) (response *GetUserResourceInfoResponse, err error)

GetUserResourceInfo 本接口(GetUserResourceInfo)用于查询用户资源使用信息。

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) ListFirmwares added in v1.0.403

func (c *Client) ListFirmwares(request *ListFirmwaresRequest) (response *ListFirmwaresResponse, err error)

ListFirmwares 本接口(ListFirmwares)用于获取固件列表

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) ListFirmwaresWithContext added in v1.0.403

func (c *Client) ListFirmwaresWithContext(ctx context.Context, request *ListFirmwaresRequest) (response *ListFirmwaresResponse, err error)

ListFirmwares 本接口(ListFirmwares)用于获取固件列表

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) ListLog added in v1.0.378

func (c *Client) ListLog(request *ListLogRequest) (response *ListLogResponse, err error)

ListLog 本接口(ListLog)用于查看日志信息

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) ListLogPayload added in v1.0.378

func (c *Client) ListLogPayload(request *ListLogPayloadRequest) (response *ListLogPayloadResponse, err error)

ListLogPayload 获取日志内容列表

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) ListLogPayloadWithContext added in v1.0.378

func (c *Client) ListLogPayloadWithContext(ctx context.Context, request *ListLogPayloadRequest) (response *ListLogPayloadResponse, err error)

ListLogPayload 获取日志内容列表

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) ListLogWithContext added in v1.0.378

func (c *Client) ListLogWithContext(ctx context.Context, request *ListLogRequest) (response *ListLogResponse, err error)

ListLog 本接口(ListLog)用于查看日志信息

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) ListSDKLog added in v1.0.378

func (c *Client) ListSDKLog(request *ListSDKLogRequest) (response *ListSDKLogResponse, err error)

ListSDKLog 获取设备上报的日志

可能返回的错误码:

INTERNALERROR = "InternalError"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) ListSDKLogWithContext added in v1.0.378

func (c *Client) ListSDKLogWithContext(ctx context.Context, request *ListSDKLogRequest) (response *ListSDKLogResponse, err error)

ListSDKLog 获取设备上报的日志

可能返回的错误码:

INTERNALERROR = "InternalError"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) ListTopicRules added in v1.0.408

func (c *Client) ListTopicRules(request *ListTopicRulesRequest) (response *ListTopicRulesResponse, err error)

ListTopicRules 本接口(ListTopicRules)用于分页获取规则列表

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ACTIONNIL = "InvalidParameterValue.ActionNil"
INVALIDPARAMETERVALUE_RULENUMBERBEYONDLIMIT = "InvalidParameterValue.RuleNumberBeyondLimit"
INVALIDPARAMETERVALUE_TOPICRULESQLNOTEDITED = "InvalidParameterValue.TopicRuleSqlNotEdited"
RESOURCENOTFOUND_TOPICRULENOTEXIST = "ResourceNotFound.TopicRuleNotExist"

func (*Client) ListTopicRulesWithContext added in v1.0.408

func (c *Client) ListTopicRulesWithContext(ctx context.Context, request *ListTopicRulesRequest) (response *ListTopicRulesResponse, err error)

ListTopicRules 本接口(ListTopicRules)用于分页获取规则列表

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ACTIONNIL = "InvalidParameterValue.ActionNil"
INVALIDPARAMETERVALUE_RULENUMBERBEYONDLIMIT = "InvalidParameterValue.RuleNumberBeyondLimit"
INVALIDPARAMETERVALUE_TOPICRULESQLNOTEDITED = "InvalidParameterValue.TopicRuleSqlNotEdited"
RESOURCENOTFOUND_TOPICRULENOTEXIST = "ResourceNotFound.TopicRuleNotExist"

func (*Client) PublishBroadcastMessage added in v1.0.378

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

PublishBroadcastMessage 发布广播消息

可能返回的错误码:

INVALIDPARAMETERVALUE_PAYLOADOVERLIMIT = "InvalidParameterValue.PayloadOverLimit"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) PublishBroadcastMessageWithContext added in v1.0.378

func (c *Client) PublishBroadcastMessageWithContext(ctx context.Context, request *PublishBroadcastMessageRequest) (response *PublishBroadcastMessageResponse, err error)

PublishBroadcastMessage 发布广播消息

可能返回的错误码:

INVALIDPARAMETERVALUE_PAYLOADOVERLIMIT = "InvalidParameterValue.PayloadOverLimit"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) PublishMessage added in v1.0.397

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

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

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DEVICEALREADYDISABLED = "FailedOperation.DeviceAlreadyDisabled"
FAILEDOPERATION_DEVICENOSUBSCRIPTION = "FailedOperation.DeviceNoSubscription"
FAILEDOPERATION_DEVICEOFFLINE = "FailedOperation.DeviceOffline"
FAILEDOPERATION_INVALIDMSGLEN = "FailedOperation.InvalidMsgLen"
FAILEDOPERATION_INVALIDTOPICNAME = "FailedOperation.InvalidTopicName"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_PAYLOADOVERLIMIT = "InvalidParameterValue.PayloadOverLimit"
LIMITEXCEEDED_MESSAGESAVED = "LimitExceeded.MessageSaved"
LIMITEXCEEDED_OFFLINEMESSAGEEXCEEDLIMIT = "LimitExceeded.OfflineMessageExceedLimit"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"
RESOURCENOTFOUND_PRODUCTORDEVICENOTEXIST = "ResourceNotFound.ProductOrDeviceNotExist"
UNAUTHORIZEDOPERATION_DEVICEISNOTENABLED = "UnauthorizedOperation.DeviceIsNotEnabled"

func (*Client) PublishMessageWithContext added in v1.0.397

func (c *Client) PublishMessageWithContext(ctx context.Context, request *PublishMessageRequest) (response *PublishMessageResponse, err error)

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

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DEVICEALREADYDISABLED = "FailedOperation.DeviceAlreadyDisabled"
FAILEDOPERATION_DEVICENOSUBSCRIPTION = "FailedOperation.DeviceNoSubscription"
FAILEDOPERATION_DEVICEOFFLINE = "FailedOperation.DeviceOffline"
FAILEDOPERATION_INVALIDMSGLEN = "FailedOperation.InvalidMsgLen"
FAILEDOPERATION_INVALIDTOPICNAME = "FailedOperation.InvalidTopicName"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_PAYLOADOVERLIMIT = "InvalidParameterValue.PayloadOverLimit"
LIMITEXCEEDED_MESSAGESAVED = "LimitExceeded.MessageSaved"
LIMITEXCEEDED_OFFLINEMESSAGEEXCEEDLIMIT = "LimitExceeded.OfflineMessageExceedLimit"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"
RESOURCENOTFOUND_PRODUCTORDEVICENOTEXIST = "ResourceNotFound.ProductOrDeviceNotExist"
UNAUTHORIZEDOPERATION_DEVICEISNOTENABLED = "UnauthorizedOperation.DeviceIsNotEnabled"

func (*Client) PublishRRPCMessage added in v1.0.397

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

PublishRRPCMessage 发布RRPC消息

可能返回的错误码:

FAILEDOPERATION_DEVICEALREADYDISABLED = "FailedOperation.DeviceAlreadyDisabled"
FAILEDOPERATION_DEVICENOSUBSCRIPTION = "FailedOperation.DeviceNoSubscription"
FAILEDOPERATION_DEVICEOFFLINE = "FailedOperation.DeviceOffline"
FAILEDOPERATION_RRPCTIMEOUT = "FailedOperation.RRPCTimeout"
INVALIDPARAMETERVALUE_PAYLOADOVERLIMIT = "InvalidParameterValue.PayloadOverLimit"
LIMITEXCEEDED_OFFLINEMESSAGEEXCEEDLIMIT = "LimitExceeded.OfflineMessageExceedLimit"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"

func (*Client) PublishRRPCMessageWithContext added in v1.0.397

func (c *Client) PublishRRPCMessageWithContext(ctx context.Context, request *PublishRRPCMessageRequest) (response *PublishRRPCMessageResponse, err error)

PublishRRPCMessage 发布RRPC消息

可能返回的错误码:

FAILEDOPERATION_DEVICEALREADYDISABLED = "FailedOperation.DeviceAlreadyDisabled"
FAILEDOPERATION_DEVICENOSUBSCRIPTION = "FailedOperation.DeviceNoSubscription"
FAILEDOPERATION_DEVICEOFFLINE = "FailedOperation.DeviceOffline"
FAILEDOPERATION_RRPCTIMEOUT = "FailedOperation.RRPCTimeout"
INVALIDPARAMETERVALUE_PAYLOADOVERLIMIT = "InvalidParameterValue.PayloadOverLimit"
LIMITEXCEEDED_OFFLINEMESSAGEEXCEEDLIMIT = "LimitExceeded.OfflineMessageExceedLimit"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"

func (*Client) ReplaceTopicRule added in v1.0.397

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

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ACTIONNIL = "InvalidParameterValue.ActionNil"
INVALIDPARAMETERVALUE_CHECKFORWARDURLFAIL = "InvalidParameterValue.CheckForwardURLFail"
INVALIDPARAMETERVALUE_CLOUDCOMPONENTALREADYEXIST = "InvalidParameterValue.CloudComponentAlreadyExist"
INVALIDPARAMETERVALUE_FAILACTIONHASSAMEDEVICE = "InvalidParameterValue.FailActionHasSameDevice"
INVALIDPARAMETERVALUE_FORWARDREDIRECTDENIED = "InvalidParameterValue.ForwardRedirectDenied"
INVALIDPARAMETERVALUE_INVALIDSQL = "InvalidParameterValue.InvalidSQL"
INVALIDPARAMETERVALUE_OPERATIONDENIED = "InvalidParameterValue.OperationDenied"
INVALIDPARAMETERVALUE_REPUBLISHTOPICFORMATERROR = "InvalidParameterValue.RepublishTopicFormatError"
INVALIDPARAMETERVALUE_RULENUMBERBEYONDLIMIT = "InvalidParameterValue.RuleNumberBeyondLimit"
INVALIDPARAMETERVALUE_TOPICRULEALREADYEXIST = "InvalidParameterValue.TopicRuleAlreadyExist"
INVALIDPARAMETERVALUE_TOPICRULESQLNOTEDITED = "InvalidParameterValue.TopicRuleSqlNotEdited"
INVALIDPARAMETERVALUE_UPDATETOPICRULEDBFAIL = "InvalidParameterValue.UpdateTopicRuleDBFail"
RESOURCENOTFOUND_TOPICRULENOTEXIST = "ResourceNotFound.TopicRuleNotExist"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ReplaceTopicRuleWithContext added in v1.0.397

func (c *Client) ReplaceTopicRuleWithContext(ctx context.Context, request *ReplaceTopicRuleRequest) (response *ReplaceTopicRuleResponse, err error)

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_ACTIONNIL = "InvalidParameterValue.ActionNil"
INVALIDPARAMETERVALUE_CHECKFORWARDURLFAIL = "InvalidParameterValue.CheckForwardURLFail"
INVALIDPARAMETERVALUE_CLOUDCOMPONENTALREADYEXIST = "InvalidParameterValue.CloudComponentAlreadyExist"
INVALIDPARAMETERVALUE_FAILACTIONHASSAMEDEVICE = "InvalidParameterValue.FailActionHasSameDevice"
INVALIDPARAMETERVALUE_FORWARDREDIRECTDENIED = "InvalidParameterValue.ForwardRedirectDenied"
INVALIDPARAMETERVALUE_INVALIDSQL = "InvalidParameterValue.InvalidSQL"
INVALIDPARAMETERVALUE_OPERATIONDENIED = "InvalidParameterValue.OperationDenied"
INVALIDPARAMETERVALUE_REPUBLISHTOPICFORMATERROR = "InvalidParameterValue.RepublishTopicFormatError"
INVALIDPARAMETERVALUE_RULENUMBERBEYONDLIMIT = "InvalidParameterValue.RuleNumberBeyondLimit"
INVALIDPARAMETERVALUE_TOPICRULEALREADYEXIST = "InvalidParameterValue.TopicRuleAlreadyExist"
INVALIDPARAMETERVALUE_TOPICRULESQLNOTEDITED = "InvalidParameterValue.TopicRuleSqlNotEdited"
INVALIDPARAMETERVALUE_UPDATETOPICRULEDBFAIL = "InvalidParameterValue.UpdateTopicRuleDBFail"
RESOURCENOTFOUND_TOPICRULENOTEXIST = "ResourceNotFound.TopicRuleNotExist"
UNAUTHORIZEDOPERATION_PERMISSIONDENIED = "UnauthorizedOperation.PermissionDenied"

func (*Client) ResetDeviceState added in v1.0.397

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

ResetDeviceState 重置设备的连接状态

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE_PRODUCTTYPENOTSUPPORT = "InvalidParameterValue.ProductTypeNotSupport"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
UNAUTHORIZEDOPERATION_DEVICEISNOTENABLED = "UnauthorizedOperation.DeviceIsNotEnabled"

func (*Client) ResetDeviceStateWithContext added in v1.0.397

func (c *Client) ResetDeviceStateWithContext(ctx context.Context, request *ResetDeviceStateRequest) (response *ResetDeviceStateResponse, err error)

ResetDeviceState 重置设备的连接状态

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE_PRODUCTTYPENOTSUPPORT = "InvalidParameterValue.ProductTypeNotSupport"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
UNAUTHORIZEDOPERATION_DEVICEISNOTENABLED = "UnauthorizedOperation.DeviceIsNotEnabled"

func (*Client) RetryDeviceFirmwareTask added in v1.0.397

func (c *Client) RetryDeviceFirmwareTask(request *RetryDeviceFirmwareTaskRequest) (response *RetryDeviceFirmwareTaskResponse, err error)

RetryDeviceFirmwareTask 重试设备升级任务

可能返回的错误码:

FAILEDOPERATION_DEVICEFIRMWARETASKALREADDONE = "FailedOperation.DeviceFirmwareTaskAlreadDone"
FAILEDOPERATION_DEVICERUNNINGOTHEROTATASK = "FailedOperation.DeviceRunningOtherOtaTask"
RESOURCENOTFOUND_DEVICEFIRMWARETASKNOTEXIST = "ResourceNotFound.DeviceFirmwareTaskNotExist"

func (*Client) RetryDeviceFirmwareTaskWithContext added in v1.0.397

func (c *Client) RetryDeviceFirmwareTaskWithContext(ctx context.Context, request *RetryDeviceFirmwareTaskRequest) (response *RetryDeviceFirmwareTaskResponse, err error)

RetryDeviceFirmwareTask 重试设备升级任务

可能返回的错误码:

FAILEDOPERATION_DEVICEFIRMWARETASKALREADDONE = "FailedOperation.DeviceFirmwareTaskAlreadDone"
FAILEDOPERATION_DEVICERUNNINGOTHEROTATASK = "FailedOperation.DeviceRunningOtherOtaTask"
RESOURCENOTFOUND_DEVICEFIRMWARETASKNOTEXIST = "ResourceNotFound.DeviceFirmwareTaskNotExist"

func (*Client) SetProductsForbiddenStatus added in v1.0.378

func (c *Client) SetProductsForbiddenStatus(request *SetProductsForbiddenStatusRequest) (response *SetProductsForbiddenStatusResponse, err error)

SetProductsForbiddenStatus 批量设置产品禁用状态

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) SetProductsForbiddenStatusWithContext added in v1.0.378

func (c *Client) SetProductsForbiddenStatusWithContext(ctx context.Context, request *SetProductsForbiddenStatusRequest) (response *SetProductsForbiddenStatusResponse, err error)

SetProductsForbiddenStatus 批量设置产品禁用状态

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) UnbindDevices added in v1.0.397

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

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"

func (*Client) UnbindDevicesWithContext added in v1.0.397

func (c *Client) UnbindDevicesWithContext(ctx context.Context, request *UnbindDevicesRequest) (response *UnbindDevicesResponse, err error)

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"

func (*Client) UpdateDeviceAvailableState added in v1.0.397

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

UpdateDeviceAvailableState 启用或者禁用设备

可能返回的错误码:

INTERNALERROR = "InternalError"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
UNAUTHORIZEDOPERATION_DEVICEHASALREADYBINDGATEWAY = "UnauthorizedOperation.DeviceHasAlreadyBindGateway"
UNAUTHORIZEDOPERATION_PRODUCTISFORBIDDEN = "UnauthorizedOperation.ProductIsForbidden"

func (*Client) UpdateDeviceAvailableStateWithContext added in v1.0.397

func (c *Client) UpdateDeviceAvailableStateWithContext(ctx context.Context, request *UpdateDeviceAvailableStateRequest) (response *UpdateDeviceAvailableStateResponse, err error)

UpdateDeviceAvailableState 启用或者禁用设备

可能返回的错误码:

INTERNALERROR = "InternalError"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
UNAUTHORIZEDOPERATION_DEVICEHASALREADYBINDGATEWAY = "UnauthorizedOperation.DeviceHasAlreadyBindGateway"
UNAUTHORIZEDOPERATION_PRODUCTISFORBIDDEN = "UnauthorizedOperation.ProductIsForbidden"

func (*Client) UpdateDeviceLogLevel

func (c *Client) UpdateDeviceLogLevel(request *UpdateDeviceLogLevelRequest) (response *UpdateDeviceLogLevelResponse, err error)

UpdateDeviceLogLevel 设置设备上报的日志级别

可能返回的错误码:

INTERNALERROR = "InternalError"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"
UNAUTHORIZEDOPERATION_DEVICEISNOTENABLED = "UnauthorizedOperation.DeviceIsNotEnabled"

func (*Client) UpdateDeviceLogLevelWithContext added in v1.0.324

func (c *Client) UpdateDeviceLogLevelWithContext(ctx context.Context, request *UpdateDeviceLogLevelRequest) (response *UpdateDeviceLogLevelResponse, err error)

UpdateDeviceLogLevel 设置设备上报的日志级别

可能返回的错误码:

INTERNALERROR = "InternalError"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"
UNAUTHORIZEDOPERATION_DEVICEISNOTENABLED = "UnauthorizedOperation.DeviceIsNotEnabled"

func (*Client) UpdateDevicePSK added in v1.0.378

func (c *Client) UpdateDevicePSK(request *UpdateDevicePSKRequest) (response *UpdateDevicePSKResponse, err error)

UpdateDevicePSK 本接口(UpdateDevicePSK)用于更新设备的PSK

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"
UNAUTHORIZEDOPERATION_PRODUCTNOTSUPPORTPSK = "UnauthorizedOperation.ProductNotSupportPSK"

func (*Client) UpdateDevicePSKWithContext added in v1.0.378

func (c *Client) UpdateDevicePSKWithContext(ctx context.Context, request *UpdateDevicePSKRequest) (response *UpdateDevicePSKResponse, err error)

UpdateDevicePSK 本接口(UpdateDevicePSK)用于更新设备的PSK

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"
UNAUTHORIZEDOPERATION_PRODUCTNOTSUPPORTPSK = "UnauthorizedOperation.ProductNotSupportPSK"

func (*Client) UpdateDeviceShadow added in v1.0.397

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

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

可能返回的错误码:

FAILEDOPERATION_UPDATEVERSIONNOTMATCH = "FailedOperation.UpdateVersionNotMatch"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_INVALIDJSON = "InvalidParameterValue.InvalidJSON"
INVALIDPARAMETERVALUE_JSONHASINVALIDNODE = "InvalidParameterValue.JSONHasInvalidNode"
INVALIDPARAMETERVALUE_JSONSIZEEXCEEDLIMIT = "InvalidParameterValue.JSONSizeExceedLimit"
INVALIDPARAMETERVALUE_NOTMERGEABLE = "InvalidParameterValue.NotMergeAble"
INVALIDPARAMETERVALUE_PREFIXINVALID = "InvalidParameterValue.PrefixInvalid"
RESOURCENOTFOUND_DEVICESHADOWNOTEXIST = "ResourceNotFound.DeviceShadowNotExist"
RESOURCENOTFOUND_PRODUCTORDEVICENOTEXIST = "ResourceNotFound.ProductOrDeviceNotExist"

func (*Client) UpdateDeviceShadowWithContext added in v1.0.397

func (c *Client) UpdateDeviceShadowWithContext(ctx context.Context, request *UpdateDeviceShadowRequest) (response *UpdateDeviceShadowResponse, err error)

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

可能返回的错误码:

FAILEDOPERATION_UPDATEVERSIONNOTMATCH = "FailedOperation.UpdateVersionNotMatch"
INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_INVALIDJSON = "InvalidParameterValue.InvalidJSON"
INVALIDPARAMETERVALUE_JSONHASINVALIDNODE = "InvalidParameterValue.JSONHasInvalidNode"
INVALIDPARAMETERVALUE_JSONSIZEEXCEEDLIMIT = "InvalidParameterValue.JSONSizeExceedLimit"
INVALIDPARAMETERVALUE_NOTMERGEABLE = "InvalidParameterValue.NotMergeAble"
INVALIDPARAMETERVALUE_PREFIXINVALID = "InvalidParameterValue.PrefixInvalid"
RESOURCENOTFOUND_DEVICESHADOWNOTEXIST = "ResourceNotFound.DeviceShadowNotExist"
RESOURCENOTFOUND_PRODUCTORDEVICENOTEXIST = "ResourceNotFound.ProductOrDeviceNotExist"

func (*Client) UpdateDevicesEnableState

func (c *Client) UpdateDevicesEnableState(request *UpdateDevicesEnableStateRequest) (response *UpdateDevicesEnableStateResponse, err error)

UpdateDevicesEnableState 批量启用或者禁用设备

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE_PRODUCTTYPENOTSUPPORT = "InvalidParameterValue.ProductTypeNotSupport"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
UNAUTHORIZEDOPERATION_DEVICEHASALREADYBINDGATEWAY = "UnauthorizedOperation.DeviceHasAlreadyBindGateway"

func (*Client) UpdateDevicesEnableStateWithContext added in v1.0.324

func (c *Client) UpdateDevicesEnableStateWithContext(ctx context.Context, request *UpdateDevicesEnableStateRequest) (response *UpdateDevicesEnableStateResponse, err error)

UpdateDevicesEnableState 批量启用或者禁用设备

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE_PRODUCTTYPENOTSUPPORT = "InvalidParameterValue.ProductTypeNotSupport"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
UNAUTHORIZEDOPERATION_DEVICEHASALREADYBINDGATEWAY = "UnauthorizedOperation.DeviceHasAlreadyBindGateway"

func (*Client) UpdatePrivateCA

func (c *Client) UpdatePrivateCA(request *UpdatePrivateCARequest) (response *UpdatePrivateCAResponse, err error)

UpdatePrivateCA 更新私有CA证书

可能返回的错误码:

INVALIDPARAMETERVALUE_CACERTINVALID = "InvalidParameterValue.CACertInvalid"
INVALIDPARAMETERVALUE_CACERTNOTMATCH = "InvalidParameterValue.CACertNotMatch"
LIMITEXCEEDED_CAREPEAT = "LimitExceeded.CARepeat"
RESOURCENOTFOUND_CACERTNOTEXIST = "ResourceNotFound.CACertNotExist"

func (*Client) UpdatePrivateCAWithContext added in v1.0.324

func (c *Client) UpdatePrivateCAWithContext(ctx context.Context, request *UpdatePrivateCARequest) (response *UpdatePrivateCAResponse, err error)

UpdatePrivateCA 更新私有CA证书

可能返回的错误码:

INVALIDPARAMETERVALUE_CACERTINVALID = "InvalidParameterValue.CACertInvalid"
INVALIDPARAMETERVALUE_CACERTNOTMATCH = "InvalidParameterValue.CACertNotMatch"
LIMITEXCEEDED_CAREPEAT = "LimitExceeded.CARepeat"
RESOURCENOTFOUND_CACERTNOTEXIST = "ResourceNotFound.CACertNotExist"

func (*Client) UpdateProductDynamicRegister added in v1.0.378

func (c *Client) UpdateProductDynamicRegister(request *UpdateProductDynamicRegisterRequest) (response *UpdateProductDynamicRegisterResponse, err error)

UpdateProductDynamicRegister 更新产品动态注册的配置

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE_PRODUCTTYPENOTSUPPORT = "InvalidParameterValue.ProductTypeNotSupport"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
UNAUTHORIZEDOPERATION_PRODUCTISFORBIDDEN = "UnauthorizedOperation.ProductIsForbidden"

func (*Client) UpdateProductDynamicRegisterWithContext added in v1.0.378

func (c *Client) UpdateProductDynamicRegisterWithContext(ctx context.Context, request *UpdateProductDynamicRegisterRequest) (response *UpdateProductDynamicRegisterResponse, err error)

UpdateProductDynamicRegister 更新产品动态注册的配置

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE_PRODUCTTYPENOTSUPPORT = "InvalidParameterValue.ProductTypeNotSupport"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
UNAUTHORIZEDOPERATION_PRODUCTISFORBIDDEN = "UnauthorizedOperation.ProductIsForbidden"

func (*Client) UpdateProductPrivateCA added in v1.0.378

func (c *Client) UpdateProductPrivateCA(request *UpdateProductPrivateCARequest) (response *UpdateProductPrivateCAResponse, err error)

UpdateProductPrivateCA 更新产品的私有CA

可能返回的错误码:

LIMITEXCEEDED_CACERTNOTSUPPORT = "LimitExceeded.CACertNotSupport"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) UpdateProductPrivateCAWithContext added in v1.0.378

func (c *Client) UpdateProductPrivateCAWithContext(ctx context.Context, request *UpdateProductPrivateCARequest) (response *UpdateProductPrivateCAResponse, err error)

UpdateProductPrivateCA 更新产品的私有CA

可能返回的错误码:

LIMITEXCEEDED_CACERTNOTSUPPORT = "LimitExceeded.CACertNotSupport"
RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

func (*Client) UpdateTopicPolicy added in v1.0.397

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

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_TOPICPOLICYALREADYEXIST = "InvalidParameterValue.TopicPolicyAlreadyExist"
RESOURCENOTFOUND_TOPICPOLICYNOTEXIST = "ResourceNotFound.TopicPolicyNotExist"

func (*Client) UpdateTopicPolicyWithContext added in v1.0.397

func (c *Client) UpdateTopicPolicyWithContext(ctx context.Context, request *UpdateTopicPolicyRequest) (response *UpdateTopicPolicyResponse, err error)

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

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_TOPICPOLICYALREADYEXIST = "InvalidParameterValue.TopicPolicyAlreadyExist"
RESOURCENOTFOUND_TOPICPOLICYNOTEXIST = "ResourceNotFound.TopicPolicyNotExist"

func (*Client) UploadFirmware added in v1.0.397

func (c *Client) UploadFirmware(request *UploadFirmwareRequest) (response *UploadFirmwareResponse, err error)

UploadFirmware 本接口(UploadFirmware)用于上传设备固件信息

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_FIRMWAREALREADYEXIST = "InvalidParameterValue.FirmwareAlreadyExist"
LIMITEXCEEDED_FIRMWAREEXCEEDLIMIT = "LimitExceeded.FirmwareExceedLimit"

func (*Client) UploadFirmwareWithContext added in v1.0.397

func (c *Client) UploadFirmwareWithContext(ctx context.Context, request *UploadFirmwareRequest) (response *UploadFirmwareResponse, err error)

UploadFirmware 本接口(UploadFirmware)用于上传设备固件信息

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_FIRMWAREALREADYEXIST = "InvalidParameterValue.FirmwareAlreadyExist"
LIMITEXCEEDED_FIRMWAREEXCEEDLIMIT = "LimitExceeded.FirmwareExceedLimit"

type CreateDeviceRequest

type CreateDeviceRequest struct {
	*tchttp.BaseRequest

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

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

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

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

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

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

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

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

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

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

	// 私有CA创建的设备证书
	TlsCrt *string `json:"TlsCrt,omitempty" name:"TlsCrt"`
}

func NewCreateDeviceRequest

func NewCreateDeviceRequest() (request *CreateDeviceRequest)

func (*CreateDeviceRequest) FromJsonString

func (r *CreateDeviceRequest) 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 (*CreateDeviceRequest) ToJsonString

func (r *CreateDeviceRequest) ToJsonString() string

type CreateDeviceResponse

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

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

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

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

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

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

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

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

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

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

func NewCreateDeviceResponse

func NewCreateDeviceResponse() (response *CreateDeviceResponse)

func (*CreateDeviceResponse) FromJsonString

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

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

func (*CreateDeviceResponse) ToJsonString

func (r *CreateDeviceResponse) ToJsonString() string

type CreateMultiDevicesTaskRequest added in v1.0.397

type CreateMultiDevicesTaskRequest struct {
	*tchttp.BaseRequest

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

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

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

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

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

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

func NewCreateMultiDevicesTaskRequest added in v1.0.397

func NewCreateMultiDevicesTaskRequest() (request *CreateMultiDevicesTaskRequest)

func (*CreateMultiDevicesTaskRequest) FromJsonString added in v1.0.397

func (r *CreateMultiDevicesTaskRequest) 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 (*CreateMultiDevicesTaskRequest) ToJsonString added in v1.0.397

func (r *CreateMultiDevicesTaskRequest) ToJsonString() string

type CreateMultiDevicesTaskResponse added in v1.0.397

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

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

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

func NewCreateMultiDevicesTaskResponse added in v1.0.397

func NewCreateMultiDevicesTaskResponse() (response *CreateMultiDevicesTaskResponse)

func (*CreateMultiDevicesTaskResponse) FromJsonString added in v1.0.397

func (r *CreateMultiDevicesTaskResponse) 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 (*CreateMultiDevicesTaskResponse) ToJsonString added in v1.0.397

func (r *CreateMultiDevicesTaskResponse) ToJsonString() string

type CreatePrivateCARequest

type CreatePrivateCARequest struct {
	*tchttp.BaseRequest

	// CA证书名称
	CertName *string `json:"CertName,omitempty" name:"CertName"`

	// CA证书内容
	CertText *string `json:"CertText,omitempty" name:"CertText"`

	// 校验CA证书的证书内容
	VerifyCertText *string `json:"VerifyCertText,omitempty" name:"VerifyCertText"`
}

func NewCreatePrivateCARequest

func NewCreatePrivateCARequest() (request *CreatePrivateCARequest)

func (*CreatePrivateCARequest) FromJsonString

func (r *CreatePrivateCARequest) 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 (*CreatePrivateCARequest) ToJsonString

func (r *CreatePrivateCARequest) ToJsonString() string

type CreatePrivateCAResponse

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

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

func NewCreatePrivateCAResponse

func NewCreatePrivateCAResponse() (response *CreatePrivateCAResponse)

func (*CreatePrivateCAResponse) FromJsonString

func (r *CreatePrivateCAResponse) 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 (*CreatePrivateCAResponse) ToJsonString

func (r *CreatePrivateCAResponse) ToJsonString() string

type CreateProductRequest added in v1.0.397

type CreateProductRequest struct {
	*tchttp.BaseRequest

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

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

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

func NewCreateProductRequest added in v1.0.397

func NewCreateProductRequest() (request *CreateProductRequest)

func (*CreateProductRequest) FromJsonString added in v1.0.397

func (r *CreateProductRequest) 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 (*CreateProductRequest) ToJsonString added in v1.0.397

func (r *CreateProductRequest) ToJsonString() string

type CreateProductResponse added in v1.0.397

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

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

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

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

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

func NewCreateProductResponse added in v1.0.397

func NewCreateProductResponse() (response *CreateProductResponse)

func (*CreateProductResponse) FromJsonString added in v1.0.397

func (r *CreateProductResponse) 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 (*CreateProductResponse) ToJsonString added in v1.0.397

func (r *CreateProductResponse) ToJsonString() string

type CreateTaskFileUrlRequest added in v1.0.397

type CreateTaskFileUrlRequest struct {
	*tchttp.BaseRequest

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

func NewCreateTaskFileUrlRequest added in v1.0.397

func NewCreateTaskFileUrlRequest() (request *CreateTaskFileUrlRequest)

func (*CreateTaskFileUrlRequest) FromJsonString added in v1.0.397

func (r *CreateTaskFileUrlRequest) 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 (*CreateTaskFileUrlRequest) ToJsonString added in v1.0.397

func (r *CreateTaskFileUrlRequest) ToJsonString() string

type CreateTaskFileUrlResponse added in v1.0.397

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

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

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

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

func NewCreateTaskFileUrlResponse added in v1.0.397

func NewCreateTaskFileUrlResponse() (response *CreateTaskFileUrlResponse)

func (*CreateTaskFileUrlResponse) FromJsonString added in v1.0.397

func (r *CreateTaskFileUrlResponse) 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 (*CreateTaskFileUrlResponse) ToJsonString added in v1.0.397

func (r *CreateTaskFileUrlResponse) ToJsonString() string

type CreateTopicPolicyRequest added in v1.0.397

type CreateTopicPolicyRequest struct {
	*tchttp.BaseRequest

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

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

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

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

func NewCreateTopicPolicyRequest added in v1.0.397

func NewCreateTopicPolicyRequest() (request *CreateTopicPolicyRequest)

func (*CreateTopicPolicyRequest) FromJsonString added in v1.0.397

func (r *CreateTopicPolicyRequest) 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 (*CreateTopicPolicyRequest) ToJsonString added in v1.0.397

func (r *CreateTopicPolicyRequest) ToJsonString() string

type CreateTopicPolicyResponse added in v1.0.397

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

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

func NewCreateTopicPolicyResponse added in v1.0.397

func NewCreateTopicPolicyResponse() (response *CreateTopicPolicyResponse)

func (*CreateTopicPolicyResponse) FromJsonString added in v1.0.397

func (r *CreateTopicPolicyResponse) 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 (*CreateTopicPolicyResponse) ToJsonString added in v1.0.397

func (r *CreateTopicPolicyResponse) ToJsonString() string

type CreateTopicRuleRequest added in v1.0.397

type CreateTopicRuleRequest struct {
	*tchttp.BaseRequest

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

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

func NewCreateTopicRuleRequest added in v1.0.397

func NewCreateTopicRuleRequest() (request *CreateTopicRuleRequest)

func (*CreateTopicRuleRequest) FromJsonString added in v1.0.397

func (r *CreateTopicRuleRequest) 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 (*CreateTopicRuleRequest) ToJsonString added in v1.0.397

func (r *CreateTopicRuleRequest) ToJsonString() string

type CreateTopicRuleResponse added in v1.0.397

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

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

func NewCreateTopicRuleResponse added in v1.0.397

func NewCreateTopicRuleResponse() (response *CreateTopicRuleResponse)

func (*CreateTopicRuleResponse) FromJsonString added in v1.0.397

func (r *CreateTopicRuleResponse) 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 (*CreateTopicRuleResponse) ToJsonString added in v1.0.397

func (r *CreateTopicRuleResponse) ToJsonString() string

type DeleteDeviceRequest

type DeleteDeviceRequest struct {
	*tchttp.BaseRequest

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

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

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

func NewDeleteDeviceRequest

func NewDeleteDeviceRequest() (request *DeleteDeviceRequest)

func (*DeleteDeviceRequest) FromJsonString

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

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 DeleteDeviceResourceRequest added in v1.0.397

type DeleteDeviceResourceRequest struct {
	*tchttp.BaseRequest

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

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

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

func NewDeleteDeviceResourceRequest added in v1.0.397

func NewDeleteDeviceResourceRequest() (request *DeleteDeviceResourceRequest)

func (*DeleteDeviceResourceRequest) FromJsonString added in v1.0.397

func (r *DeleteDeviceResourceRequest) 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 (*DeleteDeviceResourceRequest) ToJsonString added in v1.0.397

func (r *DeleteDeviceResourceRequest) ToJsonString() string

type DeleteDeviceResourceResponse added in v1.0.397

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

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

func NewDeleteDeviceResourceResponse added in v1.0.397

func NewDeleteDeviceResourceResponse() (response *DeleteDeviceResourceResponse)

func (*DeleteDeviceResourceResponse) FromJsonString added in v1.0.397

func (r *DeleteDeviceResourceResponse) 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 (*DeleteDeviceResourceResponse) ToJsonString added in v1.0.397

func (r *DeleteDeviceResourceResponse) ToJsonString() string

type DeleteDeviceResponse

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

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

func NewDeleteDeviceResponse

func NewDeleteDeviceResponse() (response *DeleteDeviceResponse)

func (*DeleteDeviceResponse) FromJsonString

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

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 DeletePrivateCARequest

type DeletePrivateCARequest struct {
	*tchttp.BaseRequest

	// 私有CA证书名称
	CertName *string `json:"CertName,omitempty" name:"CertName"`
}

func NewDeletePrivateCARequest

func NewDeletePrivateCARequest() (request *DeletePrivateCARequest)

func (*DeletePrivateCARequest) FromJsonString

func (r *DeletePrivateCARequest) 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 (*DeletePrivateCARequest) ToJsonString

func (r *DeletePrivateCARequest) ToJsonString() string

type DeletePrivateCAResponse

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

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

func NewDeletePrivateCAResponse

func NewDeletePrivateCAResponse() (response *DeletePrivateCAResponse)

func (*DeletePrivateCAResponse) FromJsonString

func (r *DeletePrivateCAResponse) 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 (*DeletePrivateCAResponse) ToJsonString

func (r *DeletePrivateCAResponse) ToJsonString() string

type DeleteProductPrivateCARequest added in v1.0.378

type DeleteProductPrivateCARequest struct {
	*tchttp.BaseRequest

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

func NewDeleteProductPrivateCARequest added in v1.0.378

func NewDeleteProductPrivateCARequest() (request *DeleteProductPrivateCARequest)

func (*DeleteProductPrivateCARequest) FromJsonString added in v1.0.378

func (r *DeleteProductPrivateCARequest) 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 (*DeleteProductPrivateCARequest) ToJsonString added in v1.0.378

func (r *DeleteProductPrivateCARequest) ToJsonString() string

type DeleteProductPrivateCAResponse added in v1.0.378

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

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

func NewDeleteProductPrivateCAResponse added in v1.0.378

func NewDeleteProductPrivateCAResponse() (response *DeleteProductPrivateCAResponse)

func (*DeleteProductPrivateCAResponse) FromJsonString added in v1.0.378

func (r *DeleteProductPrivateCAResponse) 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 (*DeleteProductPrivateCAResponse) ToJsonString added in v1.0.378

func (r *DeleteProductPrivateCAResponse) ToJsonString() string

type DeleteProductRequest

type DeleteProductRequest struct {
	*tchttp.BaseRequest

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

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

func NewDeleteProductRequest

func NewDeleteProductRequest() (request *DeleteProductRequest)

func (*DeleteProductRequest) FromJsonString

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

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 DeleteProductResponse

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

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

func NewDeleteProductResponse

func NewDeleteProductResponse() (response *DeleteProductResponse)

func (*DeleteProductResponse) FromJsonString

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

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 DeleteTopicRuleRequest added in v1.0.397

type DeleteTopicRuleRequest struct {
	*tchttp.BaseRequest

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

func NewDeleteTopicRuleRequest added in v1.0.397

func NewDeleteTopicRuleRequest() (request *DeleteTopicRuleRequest)

func (*DeleteTopicRuleRequest) FromJsonString added in v1.0.397

func (r *DeleteTopicRuleRequest) 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 (*DeleteTopicRuleRequest) ToJsonString added in v1.0.397

func (r *DeleteTopicRuleRequest) ToJsonString() string

type DeleteTopicRuleResponse added in v1.0.397

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

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

func NewDeleteTopicRuleResponse added in v1.0.397

func NewDeleteTopicRuleResponse() (response *DeleteTopicRuleResponse)

func (*DeleteTopicRuleResponse) FromJsonString added in v1.0.397

func (r *DeleteTopicRuleResponse) 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 (*DeleteTopicRuleResponse) ToJsonString added in v1.0.397

func (r *DeleteTopicRuleResponse) ToJsonString() string

type DescribeDeviceClientKeyRequest added in v1.0.397

type DescribeDeviceClientKeyRequest struct {
	*tchttp.BaseRequest

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

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

func NewDescribeDeviceClientKeyRequest added in v1.0.397

func NewDescribeDeviceClientKeyRequest() (request *DescribeDeviceClientKeyRequest)

func (*DescribeDeviceClientKeyRequest) FromJsonString added in v1.0.397

func (r *DescribeDeviceClientKeyRequest) 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 (*DescribeDeviceClientKeyRequest) ToJsonString added in v1.0.397

func (r *DescribeDeviceClientKeyRequest) ToJsonString() string

type DescribeDeviceClientKeyResponse added in v1.0.397

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

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

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

func NewDescribeDeviceClientKeyResponse added in v1.0.397

func NewDescribeDeviceClientKeyResponse() (response *DescribeDeviceClientKeyResponse)

func (*DescribeDeviceClientKeyResponse) FromJsonString added in v1.0.397

func (r *DescribeDeviceClientKeyResponse) 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 (*DescribeDeviceClientKeyResponse) ToJsonString added in v1.0.397

func (r *DescribeDeviceClientKeyResponse) ToJsonString() string

type DescribeDeviceRequest

type DescribeDeviceRequest struct {
	*tchttp.BaseRequest

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

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

func NewDescribeDeviceRequest

func NewDescribeDeviceRequest() (request *DescribeDeviceRequest)

func (*DescribeDeviceRequest) FromJsonString

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

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

func (*DescribeDeviceRequest) ToJsonString

func (r *DescribeDeviceRequest) ToJsonString() string

type DescribeDeviceResourceRequest added in v1.0.397

type DescribeDeviceResourceRequest struct {
	*tchttp.BaseRequest

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

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

	// 具体的设备资源名称
	Name *string `json:"Name,omitempty" name:"Name"`
}

func NewDescribeDeviceResourceRequest added in v1.0.397

func NewDescribeDeviceResourceRequest() (request *DescribeDeviceResourceRequest)

func (*DescribeDeviceResourceRequest) FromJsonString added in v1.0.397

func (r *DescribeDeviceResourceRequest) 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 (*DescribeDeviceResourceRequest) ToJsonString added in v1.0.397

func (r *DescribeDeviceResourceRequest) ToJsonString() string

type DescribeDeviceResourceResponse added in v1.0.397

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

		// 设备资源详情
		Result *DeviceResourceInfo `json:"Result,omitempty" name:"Result"`

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

func NewDescribeDeviceResourceResponse added in v1.0.397

func NewDescribeDeviceResourceResponse() (response *DescribeDeviceResourceResponse)

func (*DescribeDeviceResourceResponse) FromJsonString added in v1.0.397

func (r *DescribeDeviceResourceResponse) 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 (*DescribeDeviceResourceResponse) ToJsonString added in v1.0.397

func (r *DescribeDeviceResourceResponse) ToJsonString() string

type DescribeDeviceResourcesRequest added in v1.0.397

type DescribeDeviceResourcesRequest struct {
	*tchttp.BaseRequest

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

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

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

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

	// 资源搜索开始时间
	StartTime *string `json:"StartTime,omitempty" name:"StartTime"`

	// 资源搜索结束时间
	EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
}

func NewDescribeDeviceResourcesRequest added in v1.0.397

func NewDescribeDeviceResourcesRequest() (request *DescribeDeviceResourcesRequest)

func (*DescribeDeviceResourcesRequest) FromJsonString added in v1.0.397

func (r *DescribeDeviceResourcesRequest) 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 (*DescribeDeviceResourcesRequest) ToJsonString added in v1.0.397

func (r *DescribeDeviceResourcesRequest) ToJsonString() string

type DescribeDeviceResourcesResponse added in v1.0.397

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

		// 资源总数
		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 资源列表
		// 注意:此字段可能返回 null,表示取不到有效值。
		Result []*DeviceResourceInfo `json:"Result,omitempty" name:"Result"`

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

func NewDescribeDeviceResourcesResponse added in v1.0.397

func NewDescribeDeviceResourcesResponse() (response *DescribeDeviceResourcesResponse)

func (*DescribeDeviceResourcesResponse) FromJsonString added in v1.0.397

func (r *DescribeDeviceResourcesResponse) 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 (*DescribeDeviceResourcesResponse) ToJsonString added in v1.0.397

func (r *DescribeDeviceResourcesResponse) ToJsonString() string

type DescribeDeviceResponse

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

		// 创建者账号ID
		// 注意:此字段可能返回 null,表示取不到有效值。
		CreateUserId *uint64 `json:"CreateUserId,omitempty" name:"CreateUserId"`

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

func NewDescribeDeviceResponse

func NewDescribeDeviceResponse() (response *DescribeDeviceResponse)

func (*DescribeDeviceResponse) FromJsonString

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

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

func (*DescribeDeviceResponse) ToJsonString

func (r *DescribeDeviceResponse) ToJsonString() string

type DescribeDeviceShadowRequest added in v1.0.397

type DescribeDeviceShadowRequest struct {
	*tchttp.BaseRequest

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

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

func NewDescribeDeviceShadowRequest added in v1.0.397

func NewDescribeDeviceShadowRequest() (request *DescribeDeviceShadowRequest)

func (*DescribeDeviceShadowRequest) FromJsonString added in v1.0.397

func (r *DescribeDeviceShadowRequest) 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 (*DescribeDeviceShadowRequest) ToJsonString added in v1.0.397

func (r *DescribeDeviceShadowRequest) ToJsonString() string

type DescribeDeviceShadowResponse added in v1.0.397

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

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

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

func NewDescribeDeviceShadowResponse added in v1.0.397

func NewDescribeDeviceShadowResponse() (response *DescribeDeviceShadowResponse)

func (*DescribeDeviceShadowResponse) FromJsonString added in v1.0.397

func (r *DescribeDeviceShadowResponse) 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 (*DescribeDeviceShadowResponse) ToJsonString added in v1.0.397

func (r *DescribeDeviceShadowResponse) ToJsonString() string

type DescribeDevicesRequest

type DescribeDevicesRequest struct {
	*tchttp.BaseRequest

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

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

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

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

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

	// 设备是否启用,0禁用状态1启用状态,默认不区分
	EnableState *uint64 `json:"EnableState,omitempty" name:"EnableState"`
}

func NewDescribeDevicesRequest

func NewDescribeDevicesRequest() (request *DescribeDevicesRequest)

func (*DescribeDevicesRequest) FromJsonString

func (r *DescribeDevicesRequest) 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 (*DescribeDevicesRequest) ToJsonString

func (r *DescribeDevicesRequest) ToJsonString() string

type DescribeDevicesResponse

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

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

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

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

func NewDescribeDevicesResponse

func NewDescribeDevicesResponse() (response *DescribeDevicesResponse)

func (*DescribeDevicesResponse) FromJsonString

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

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

func (*DescribeDevicesResponse) ToJsonString

func (r *DescribeDevicesResponse) ToJsonString() string

type DescribeFirmwareRequest added in v1.0.397

type DescribeFirmwareRequest struct {
	*tchttp.BaseRequest

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

	// 固件版本号
	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`
}

func NewDescribeFirmwareRequest added in v1.0.397

func NewDescribeFirmwareRequest() (request *DescribeFirmwareRequest)

func (*DescribeFirmwareRequest) FromJsonString added in v1.0.397

func (r *DescribeFirmwareRequest) 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 (*DescribeFirmwareRequest) ToJsonString added in v1.0.397

func (r *DescribeFirmwareRequest) ToJsonString() string

type DescribeFirmwareResponse added in v1.0.397

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

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

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

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

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

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

		// 固件上传的秒级时间戳
		// 注意:此字段可能返回 null,表示取不到有效值。
		Createtime *uint64 `json:"Createtime,omitempty" name:"Createtime"`

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

		// 固件类型。选项:mcu、module
		FwType *string `json:"FwType,omitempty" name:"FwType"`

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

func NewDescribeFirmwareResponse added in v1.0.397

func NewDescribeFirmwareResponse() (response *DescribeFirmwareResponse)

func (*DescribeFirmwareResponse) FromJsonString added in v1.0.397

func (r *DescribeFirmwareResponse) 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 (*DescribeFirmwareResponse) ToJsonString added in v1.0.397

func (r *DescribeFirmwareResponse) ToJsonString() string

type DescribeFirmwareTaskDevicesRequest added in v1.0.397

type DescribeFirmwareTaskDevicesRequest struct {
	*tchttp.BaseRequest

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

	// 固件版本
	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`

	// 筛选条件
	Filters []*SearchKeyword `json:"Filters,omitempty" name:"Filters"`

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

	// 查询的数量
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeFirmwareTaskDevicesRequest added in v1.0.397

func NewDescribeFirmwareTaskDevicesRequest() (request *DescribeFirmwareTaskDevicesRequest)

func (*DescribeFirmwareTaskDevicesRequest) FromJsonString added in v1.0.397

func (r *DescribeFirmwareTaskDevicesRequest) 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 (*DescribeFirmwareTaskDevicesRequest) ToJsonString added in v1.0.397

func (r *DescribeFirmwareTaskDevicesRequest) ToJsonString() string

type DescribeFirmwareTaskDevicesResponse added in v1.0.397

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

		// 固件升级任务的设备总数
		// 注意:此字段可能返回 null,表示取不到有效值。
		Total *uint64 `json:"Total,omitempty" name:"Total"`

		// 固件升级任务的设备列表
		// 注意:此字段可能返回 null,表示取不到有效值。
		Devices []*DeviceUpdateStatus `json:"Devices,omitempty" name:"Devices"`

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

func NewDescribeFirmwareTaskDevicesResponse added in v1.0.397

func NewDescribeFirmwareTaskDevicesResponse() (response *DescribeFirmwareTaskDevicesResponse)

func (*DescribeFirmwareTaskDevicesResponse) FromJsonString added in v1.0.397

func (r *DescribeFirmwareTaskDevicesResponse) 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 (*DescribeFirmwareTaskDevicesResponse) ToJsonString added in v1.0.397

func (r *DescribeFirmwareTaskDevicesResponse) ToJsonString() string

type DescribeFirmwareTaskDistributionRequest added in v1.0.397

type DescribeFirmwareTaskDistributionRequest struct {
	*tchttp.BaseRequest

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

	// 固件版本号
	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`

	// 固件升级任务ID
	TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"`
}

func NewDescribeFirmwareTaskDistributionRequest added in v1.0.397

func NewDescribeFirmwareTaskDistributionRequest() (request *DescribeFirmwareTaskDistributionRequest)

func (*DescribeFirmwareTaskDistributionRequest) FromJsonString added in v1.0.397

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

func (*DescribeFirmwareTaskDistributionRequest) ToJsonString added in v1.0.397

type DescribeFirmwareTaskDistributionResponse added in v1.0.397

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

		// 固件升级任务状态分布信息
		StatusInfos []*StatusStatistic `json:"StatusInfos,omitempty" name:"StatusInfos"`

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

func NewDescribeFirmwareTaskDistributionResponse added in v1.0.397

func NewDescribeFirmwareTaskDistributionResponse() (response *DescribeFirmwareTaskDistributionResponse)

func (*DescribeFirmwareTaskDistributionResponse) FromJsonString added in v1.0.397

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

func (*DescribeFirmwareTaskDistributionResponse) ToJsonString added in v1.0.397

type DescribeFirmwareTaskRequest added in v1.0.397

type DescribeFirmwareTaskRequest struct {
	*tchttp.BaseRequest

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

	// 固件版本号
	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`

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

func NewDescribeFirmwareTaskRequest added in v1.0.397

func NewDescribeFirmwareTaskRequest() (request *DescribeFirmwareTaskRequest)

func (*DescribeFirmwareTaskRequest) FromJsonString added in v1.0.397

func (r *DescribeFirmwareTaskRequest) 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 (*DescribeFirmwareTaskRequest) ToJsonString added in v1.0.397

func (r *DescribeFirmwareTaskRequest) ToJsonString() string

type DescribeFirmwareTaskResponse added in v1.0.397

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

		// 固件任务ID
		// 注意:此字段可能返回 null,表示取不到有效值。
		TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"`

		// 固件任务状态
		// 注意:此字段可能返回 null,表示取不到有效值。
		Status *int64 `json:"Status,omitempty" name:"Status"`

		// 固件任务创建时间,单位:秒
		// 注意:此字段可能返回 null,表示取不到有效值。
		CreateTime *int64 `json:"CreateTime,omitempty" name:"CreateTime"`

		// 固件任务升级类型
		// 注意:此字段可能返回 null,表示取不到有效值。
		Type *int64 `json:"Type,omitempty" name:"Type"`

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

		// 固件任务升级模式。originalVersion(按版本号升级)、filename(提交文件升级)、devicenames(按设备名称升级)
		// 注意:此字段可能返回 null,表示取不到有效值。
		UpgradeMode *string `json:"UpgradeMode,omitempty" name:"UpgradeMode"`

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

		// 升级前版本号
		// 注意:此字段可能返回 null,表示取不到有效值。
		OriginalVersion *string `json:"OriginalVersion,omitempty" name:"OriginalVersion"`

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

func NewDescribeFirmwareTaskResponse added in v1.0.397

func NewDescribeFirmwareTaskResponse() (response *DescribeFirmwareTaskResponse)

func (*DescribeFirmwareTaskResponse) FromJsonString added in v1.0.397

func (r *DescribeFirmwareTaskResponse) 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 (*DescribeFirmwareTaskResponse) ToJsonString added in v1.0.397

func (r *DescribeFirmwareTaskResponse) ToJsonString() string

type DescribeFirmwareTaskStatisticsRequest added in v1.0.397

type DescribeFirmwareTaskStatisticsRequest struct {
	*tchttp.BaseRequest

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

	// 固件版本号
	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`
}

func NewDescribeFirmwareTaskStatisticsRequest added in v1.0.397

func NewDescribeFirmwareTaskStatisticsRequest() (request *DescribeFirmwareTaskStatisticsRequest)

func (*DescribeFirmwareTaskStatisticsRequest) FromJsonString added in v1.0.397

func (r *DescribeFirmwareTaskStatisticsRequest) 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 (*DescribeFirmwareTaskStatisticsRequest) ToJsonString added in v1.0.397

type DescribeFirmwareTaskStatisticsResponse added in v1.0.397

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

		// 升级成功的设备总数
		// 注意:此字段可能返回 null,表示取不到有效值。
		SuccessTotal *uint64 `json:"SuccessTotal,omitempty" name:"SuccessTotal"`

		// 升级失败的设备总数
		// 注意:此字段可能返回 null,表示取不到有效值。
		FailureTotal *uint64 `json:"FailureTotal,omitempty" name:"FailureTotal"`

		// 正在升级的设备总数
		// 注意:此字段可能返回 null,表示取不到有效值。
		UpgradingTotal *uint64 `json:"UpgradingTotal,omitempty" name:"UpgradingTotal"`

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

func NewDescribeFirmwareTaskStatisticsResponse added in v1.0.397

func NewDescribeFirmwareTaskStatisticsResponse() (response *DescribeFirmwareTaskStatisticsResponse)

func (*DescribeFirmwareTaskStatisticsResponse) FromJsonString added in v1.0.397

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

func (*DescribeFirmwareTaskStatisticsResponse) ToJsonString added in v1.0.397

type DescribeFirmwareTasksRequest added in v1.0.397

type DescribeFirmwareTasksRequest struct {
	*tchttp.BaseRequest

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

	// 固件版本号
	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`

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

	// 返回查询结果条数
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`

	// 搜索过滤条件
	Filters []*SearchKeyword `json:"Filters,omitempty" name:"Filters"`
}

func NewDescribeFirmwareTasksRequest added in v1.0.397

func NewDescribeFirmwareTasksRequest() (request *DescribeFirmwareTasksRequest)

func (*DescribeFirmwareTasksRequest) FromJsonString added in v1.0.397

func (r *DescribeFirmwareTasksRequest) 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 (*DescribeFirmwareTasksRequest) ToJsonString added in v1.0.397

func (r *DescribeFirmwareTasksRequest) ToJsonString() string

type DescribeFirmwareTasksResponse added in v1.0.397

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

		// 固件升级任务列表
		// 注意:此字段可能返回 null,表示取不到有效值。
		TaskInfos []*FirmwareTaskInfo `json:"TaskInfos,omitempty" name:"TaskInfos"`

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

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

func NewDescribeFirmwareTasksResponse added in v1.0.397

func NewDescribeFirmwareTasksResponse() (response *DescribeFirmwareTasksResponse)

func (*DescribeFirmwareTasksResponse) FromJsonString added in v1.0.397

func (r *DescribeFirmwareTasksResponse) 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 (*DescribeFirmwareTasksResponse) ToJsonString added in v1.0.397

func (r *DescribeFirmwareTasksResponse) ToJsonString() string

type DescribeGatewayBindDevicesRequest added in v1.0.397

type DescribeGatewayBindDevicesRequest struct {
	*tchttp.BaseRequest

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

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

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

	// 分页的页大小
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`

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

func NewDescribeGatewayBindDevicesRequest added in v1.0.397

func NewDescribeGatewayBindDevicesRequest() (request *DescribeGatewayBindDevicesRequest)

func (*DescribeGatewayBindDevicesRequest) FromJsonString added in v1.0.397

func (r *DescribeGatewayBindDevicesRequest) 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 (*DescribeGatewayBindDevicesRequest) ToJsonString added in v1.0.397

func (r *DescribeGatewayBindDevicesRequest) ToJsonString() string

type DescribeGatewayBindDevicesResponse added in v1.0.397

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

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

		// 子设备信息
		Devices []*BindDeviceInfo `json:"Devices,omitempty" name:"Devices"`

		// 子设备所属的产品名
		ProductName *string `json:"ProductName,omitempty" name:"ProductName"`

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

func NewDescribeGatewayBindDevicesResponse added in v1.0.397

func NewDescribeGatewayBindDevicesResponse() (response *DescribeGatewayBindDevicesResponse)

func (*DescribeGatewayBindDevicesResponse) FromJsonString added in v1.0.397

func (r *DescribeGatewayBindDevicesResponse) 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 (*DescribeGatewayBindDevicesResponse) ToJsonString added in v1.0.397

func (r *DescribeGatewayBindDevicesResponse) ToJsonString() string

type DescribePrivateCABindedProductsRequest

type DescribePrivateCABindedProductsRequest struct {
	*tchttp.BaseRequest

	// 证书名称
	CertName *string `json:"CertName,omitempty" name:"CertName"`

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

	// 查询的数据量,默认为20, 最大为200
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribePrivateCABindedProductsRequest

func NewDescribePrivateCABindedProductsRequest() (request *DescribePrivateCABindedProductsRequest)

func (*DescribePrivateCABindedProductsRequest) FromJsonString

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

func (*DescribePrivateCABindedProductsRequest) ToJsonString

type DescribePrivateCABindedProductsResponse

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

		// 私有CA绑定的产品列表
		Products []*BindProductInfo `json:"Products,omitempty" name:"Products"`

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

func NewDescribePrivateCABindedProductsResponse

func NewDescribePrivateCABindedProductsResponse() (response *DescribePrivateCABindedProductsResponse)

func (*DescribePrivateCABindedProductsResponse) FromJsonString

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

func (*DescribePrivateCABindedProductsResponse) ToJsonString

type DescribePrivateCARequest

type DescribePrivateCARequest struct {
	*tchttp.BaseRequest

	// 私有化CA名称
	CertName *string `json:"CertName,omitempty" name:"CertName"`
}

func NewDescribePrivateCARequest

func NewDescribePrivateCARequest() (request *DescribePrivateCARequest)

func (*DescribePrivateCARequest) FromJsonString

func (r *DescribePrivateCARequest) 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 (*DescribePrivateCARequest) ToJsonString

func (r *DescribePrivateCARequest) ToJsonString() string

type DescribePrivateCAResponse

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

		// 私有化CA详情
		CA *CertInfo `json:"CA,omitempty" name:"CA"`

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

func NewDescribePrivateCAResponse

func NewDescribePrivateCAResponse() (response *DescribePrivateCAResponse)

func (*DescribePrivateCAResponse) FromJsonString

func (r *DescribePrivateCAResponse) 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 (*DescribePrivateCAResponse) ToJsonString

func (r *DescribePrivateCAResponse) ToJsonString() string

type DescribePrivateCAsRequest

type DescribePrivateCAsRequest struct {
	*tchttp.BaseRequest
}

func NewDescribePrivateCAsRequest

func NewDescribePrivateCAsRequest() (request *DescribePrivateCAsRequest)

func (*DescribePrivateCAsRequest) FromJsonString

func (r *DescribePrivateCAsRequest) 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 (*DescribePrivateCAsRequest) ToJsonString

func (r *DescribePrivateCAsRequest) ToJsonString() string

type DescribePrivateCAsResponse

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

		// 私有CA证书列表
		CAs []*CertInfo `json:"CAs,omitempty" name:"CAs"`

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

func NewDescribePrivateCAsResponse

func NewDescribePrivateCAsResponse() (response *DescribePrivateCAsResponse)

func (*DescribePrivateCAsResponse) FromJsonString

func (r *DescribePrivateCAsResponse) 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 (*DescribePrivateCAsResponse) ToJsonString

func (r *DescribePrivateCAsResponse) ToJsonString() string

type DescribeProductCARequest

type DescribeProductCARequest struct {
	*tchttp.BaseRequest

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

func NewDescribeProductCARequest

func NewDescribeProductCARequest() (request *DescribeProductCARequest)

func (*DescribeProductCARequest) FromJsonString

func (r *DescribeProductCARequest) 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 (*DescribeProductCARequest) ToJsonString

func (r *DescribeProductCARequest) ToJsonString() string

type DescribeProductCAResponse

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

		// CA证书列表
		CAs []*CertInfo `json:"CAs,omitempty" name:"CAs"`

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

func NewDescribeProductCAResponse

func NewDescribeProductCAResponse() (response *DescribeProductCAResponse)

func (*DescribeProductCAResponse) FromJsonString

func (r *DescribeProductCAResponse) 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 (*DescribeProductCAResponse) ToJsonString

func (r *DescribeProductCAResponse) ToJsonString() string

type DescribeProductRequest

type DescribeProductRequest struct {
	*tchttp.BaseRequest

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

func NewDescribeProductRequest

func NewDescribeProductRequest() (request *DescribeProductRequest)

func (*DescribeProductRequest) FromJsonString

func (r *DescribeProductRequest) 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 (*DescribeProductRequest) ToJsonString

func (r *DescribeProductRequest) ToJsonString() string

type DescribeProductResourceRequest added in v1.0.397

type DescribeProductResourceRequest struct {
	*tchttp.BaseRequest

	// 需要查看资源列表的产品 ID
	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`

	// 需要过滤的资源名称
	Name *string `json:"Name,omitempty" name:"Name"`
}

func NewDescribeProductResourceRequest added in v1.0.397

func NewDescribeProductResourceRequest() (request *DescribeProductResourceRequest)

func (*DescribeProductResourceRequest) FromJsonString added in v1.0.397

func (r *DescribeProductResourceRequest) 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 (*DescribeProductResourceRequest) ToJsonString added in v1.0.397

func (r *DescribeProductResourceRequest) ToJsonString() string

type DescribeProductResourceResponse added in v1.0.397

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

		// 资源详情
		// 注意:此字段可能返回 null,表示取不到有效值。
		Result *ProductResourceInfo `json:"Result,omitempty" name:"Result"`

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

func NewDescribeProductResourceResponse added in v1.0.397

func NewDescribeProductResourceResponse() (response *DescribeProductResourceResponse)

func (*DescribeProductResourceResponse) FromJsonString added in v1.0.397

func (r *DescribeProductResourceResponse) 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 (*DescribeProductResourceResponse) ToJsonString added in v1.0.397

func (r *DescribeProductResourceResponse) ToJsonString() string

type DescribeProductResourcesRequest added in v1.0.397

type DescribeProductResourcesRequest struct {
	*tchttp.BaseRequest

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

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

	// 需要查看资源列表的产品 ID
	ProductID *string `json:"ProductID,omitempty" name:"ProductID"`

	// 需要过滤的资源名称
	Name *string `json:"Name,omitempty" name:"Name"`
}

func NewDescribeProductResourcesRequest added in v1.0.397

func NewDescribeProductResourcesRequest() (request *DescribeProductResourcesRequest)

func (*DescribeProductResourcesRequest) FromJsonString added in v1.0.397

func (r *DescribeProductResourcesRequest) 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 (*DescribeProductResourcesRequest) ToJsonString added in v1.0.397

func (r *DescribeProductResourcesRequest) ToJsonString() string

type DescribeProductResourcesResponse added in v1.0.397

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

		// 资源总数
		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 资源详情
		// 注意:此字段可能返回 null,表示取不到有效值。
		Result []*ProductResourceInfo `json:"Result,omitempty" name:"Result"`

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

func NewDescribeProductResourcesResponse added in v1.0.397

func NewDescribeProductResourcesResponse() (response *DescribeProductResourcesResponse)

func (*DescribeProductResourcesResponse) FromJsonString added in v1.0.397

func (r *DescribeProductResourcesResponse) 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 (*DescribeProductResourcesResponse) ToJsonString added in v1.0.397

func (r *DescribeProductResourcesResponse) ToJsonString() string

type DescribeProductResponse

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

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

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

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

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

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

func NewDescribeProductResponse

func NewDescribeProductResponse() (response *DescribeProductResponse)

func (*DescribeProductResponse) FromJsonString

func (r *DescribeProductResponse) 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 (*DescribeProductResponse) ToJsonString

func (r *DescribeProductResponse) ToJsonString() string

type DescribeProductTaskRequest added in v1.0.397

type DescribeProductTaskRequest struct {
	*tchttp.BaseRequest

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

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

func NewDescribeProductTaskRequest added in v1.0.397

func NewDescribeProductTaskRequest() (request *DescribeProductTaskRequest)

func (*DescribeProductTaskRequest) FromJsonString added in v1.0.397

func (r *DescribeProductTaskRequest) 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 (*DescribeProductTaskRequest) ToJsonString added in v1.0.397

func (r *DescribeProductTaskRequest) ToJsonString() string

type DescribeProductTaskResponse added in v1.0.397

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

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

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

func NewDescribeProductTaskResponse added in v1.0.397

func NewDescribeProductTaskResponse() (response *DescribeProductTaskResponse)

func (*DescribeProductTaskResponse) FromJsonString added in v1.0.397

func (r *DescribeProductTaskResponse) 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 (*DescribeProductTaskResponse) ToJsonString added in v1.0.397

func (r *DescribeProductTaskResponse) ToJsonString() string

type DescribeProductTasksRequest added in v1.0.397

type DescribeProductTasksRequest struct {
	*tchttp.BaseRequest

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

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

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

func NewDescribeProductTasksRequest added in v1.0.397

func NewDescribeProductTasksRequest() (request *DescribeProductTasksRequest)

func (*DescribeProductTasksRequest) FromJsonString added in v1.0.397

func (r *DescribeProductTasksRequest) 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 (*DescribeProductTasksRequest) ToJsonString added in v1.0.397

func (r *DescribeProductTasksRequest) ToJsonString() string

type DescribeProductTasksResponse added in v1.0.397

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

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

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

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

func NewDescribeProductTasksResponse added in v1.0.397

func NewDescribeProductTasksResponse() (response *DescribeProductTasksResponse)

func (*DescribeProductTasksResponse) FromJsonString added in v1.0.397

func (r *DescribeProductTasksResponse) 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 (*DescribeProductTasksResponse) ToJsonString added in v1.0.397

func (r *DescribeProductTasksResponse) ToJsonString() string

type DescribeProductsRequest added in v1.0.397

type DescribeProductsRequest struct {
	*tchttp.BaseRequest

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

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

func NewDescribeProductsRequest added in v1.0.397

func NewDescribeProductsRequest() (request *DescribeProductsRequest)

func (*DescribeProductsRequest) FromJsonString added in v1.0.397

func (r *DescribeProductsRequest) 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 (*DescribeProductsRequest) ToJsonString added in v1.0.397

func (r *DescribeProductsRequest) ToJsonString() string

type DescribeProductsResponse added in v1.0.397

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

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

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

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

func NewDescribeProductsResponse added in v1.0.397

func NewDescribeProductsResponse() (response *DescribeProductsResponse)

func (*DescribeProductsResponse) FromJsonString added in v1.0.397

func (r *DescribeProductsResponse) 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 (*DescribeProductsResponse) ToJsonString added in v1.0.397

func (r *DescribeProductsResponse) ToJsonString() string

type DescribePushResourceTaskStatisticsRequest added in v1.0.397

type DescribePushResourceTaskStatisticsRequest struct {
	*tchttp.BaseRequest

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

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

func NewDescribePushResourceTaskStatisticsRequest added in v1.0.397

func NewDescribePushResourceTaskStatisticsRequest() (request *DescribePushResourceTaskStatisticsRequest)

func (*DescribePushResourceTaskStatisticsRequest) FromJsonString added in v1.0.397

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

func (*DescribePushResourceTaskStatisticsRequest) ToJsonString added in v1.0.397

type DescribePushResourceTaskStatisticsResponse added in v1.0.397

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

		// 推送成功的设备总数
		// 注意:此字段可能返回 null,表示取不到有效值。
		SuccessTotal *uint64 `json:"SuccessTotal,omitempty" name:"SuccessTotal"`

		// 推送失败的设备总数
		// 注意:此字段可能返回 null,表示取不到有效值。
		FailureTotal *uint64 `json:"FailureTotal,omitempty" name:"FailureTotal"`

		// 正在推送的设备总数
		// 注意:此字段可能返回 null,表示取不到有效值。
		UpgradingTotal *uint64 `json:"UpgradingTotal,omitempty" name:"UpgradingTotal"`

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

func NewDescribePushResourceTaskStatisticsResponse added in v1.0.397

func NewDescribePushResourceTaskStatisticsResponse() (response *DescribePushResourceTaskStatisticsResponse)

func (*DescribePushResourceTaskStatisticsResponse) FromJsonString added in v1.0.397

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

func (*DescribePushResourceTaskStatisticsResponse) ToJsonString added in v1.0.397

type DescribeResourceTasksRequest added in v1.0.397

type DescribeResourceTasksRequest struct {
	*tchttp.BaseRequest

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

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

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

	// 返回查询结果条数
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`

	// 搜索过滤条件
	Filters []*SearchKeyword `json:"Filters,omitempty" name:"Filters"`
}

func NewDescribeResourceTasksRequest added in v1.0.397

func NewDescribeResourceTasksRequest() (request *DescribeResourceTasksRequest)

func (*DescribeResourceTasksRequest) FromJsonString added in v1.0.397

func (r *DescribeResourceTasksRequest) 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 (*DescribeResourceTasksRequest) ToJsonString added in v1.0.397

func (r *DescribeResourceTasksRequest) ToJsonString() string

type DescribeResourceTasksResponse added in v1.0.397

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

		// 资源任务列表
		// 注意:此字段可能返回 null,表示取不到有效值。
		TaskInfos []*FirmwareTaskInfo `json:"TaskInfos,omitempty" name:"TaskInfos"`

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

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

func NewDescribeResourceTasksResponse added in v1.0.397

func NewDescribeResourceTasksResponse() (response *DescribeResourceTasksResponse)

func (*DescribeResourceTasksResponse) FromJsonString added in v1.0.397

func (r *DescribeResourceTasksResponse) 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 (*DescribeResourceTasksResponse) ToJsonString added in v1.0.397

func (r *DescribeResourceTasksResponse) ToJsonString() string

type DeviceInfo

type DeviceInfo struct {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

type DeviceLabel

type DeviceLabel struct {

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

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

type DeviceResourceInfo added in v1.0.397

type DeviceResourceInfo struct {

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

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

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

	// 资源文件md5
	Md5 *string `json:"Md5,omitempty" name:"Md5"`

	// 资源文件大小
	Size *uint64 `json:"Size,omitempty" name:"Size"`

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

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

	// 设备资源上传状态
	Status *uint64 `json:"Status,omitempty" name:"Status"`

	// 设备资源上传百分比
	Percent *uint64 `json:"Percent,omitempty" name:"Percent"`
}

type DeviceTag

type DeviceTag struct {

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

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

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

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

type DeviceUpdateStatus added in v1.0.397

type DeviceUpdateStatus struct {

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

	// 最后处理时间
	LastProcessTime *uint64 `json:"LastProcessTime,omitempty" name:"LastProcessTime"`

	// 状态
	Status *uint64 `json:"Status,omitempty" name:"Status"`

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

	// 返回码
	Retcode *int64 `json:"Retcode,omitempty" name:"Retcode"`

	// 目标更新版本
	DstVersion *string `json:"DstVersion,omitempty" name:"DstVersion"`

	// 下载中状态时的下载进度
	// 注意:此字段可能返回 null,表示取不到有效值。
	Percent *uint64 `json:"Percent,omitempty" name:"Percent"`

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

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

type DisableTopicRuleRequest added in v1.0.397

type DisableTopicRuleRequest struct {
	*tchttp.BaseRequest

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

func NewDisableTopicRuleRequest added in v1.0.397

func NewDisableTopicRuleRequest() (request *DisableTopicRuleRequest)

func (*DisableTopicRuleRequest) FromJsonString added in v1.0.397

func (r *DisableTopicRuleRequest) 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 (*DisableTopicRuleRequest) ToJsonString added in v1.0.397

func (r *DisableTopicRuleRequest) ToJsonString() string

type DisableTopicRuleResponse added in v1.0.397

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

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

func NewDisableTopicRuleResponse added in v1.0.397

func NewDisableTopicRuleResponse() (response *DisableTopicRuleResponse)

func (*DisableTopicRuleResponse) FromJsonString added in v1.0.397

func (r *DisableTopicRuleResponse) 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 (*DisableTopicRuleResponse) ToJsonString added in v1.0.397

func (r *DisableTopicRuleResponse) ToJsonString() string

type DownloadDeviceResourceRequest added in v1.0.397

type DownloadDeviceResourceRequest struct {
	*tchttp.BaseRequest

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

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

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

func NewDownloadDeviceResourceRequest added in v1.0.397

func NewDownloadDeviceResourceRequest() (request *DownloadDeviceResourceRequest)

func (*DownloadDeviceResourceRequest) FromJsonString added in v1.0.397

func (r *DownloadDeviceResourceRequest) 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 (*DownloadDeviceResourceRequest) ToJsonString added in v1.0.397

func (r *DownloadDeviceResourceRequest) ToJsonString() string

type DownloadDeviceResourceResponse added in v1.0.397

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

		// 设备资源的cos链接
		Url *string `json:"Url,omitempty" name:"Url"`

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

func NewDownloadDeviceResourceResponse added in v1.0.397

func NewDownloadDeviceResourceResponse() (response *DownloadDeviceResourceResponse)

func (*DownloadDeviceResourceResponse) FromJsonString added in v1.0.397

func (r *DownloadDeviceResourceResponse) 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 (*DownloadDeviceResourceResponse) ToJsonString added in v1.0.397

func (r *DownloadDeviceResourceResponse) ToJsonString() string

type EditFirmwareRequest added in v1.0.397

type EditFirmwareRequest struct {
	*tchttp.BaseRequest

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

	// 固件版本号。
	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`

	// 固件名称。
	FirmwareName *string `json:"FirmwareName,omitempty" name:"FirmwareName"`

	// 固件描述
	FirmwareDescription *string `json:"FirmwareDescription,omitempty" name:"FirmwareDescription"`
}

func NewEditFirmwareRequest added in v1.0.397

func NewEditFirmwareRequest() (request *EditFirmwareRequest)

func (*EditFirmwareRequest) FromJsonString added in v1.0.397

func (r *EditFirmwareRequest) 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 (*EditFirmwareRequest) ToJsonString added in v1.0.397

func (r *EditFirmwareRequest) ToJsonString() string

type EditFirmwareResponse added in v1.0.397

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

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

func NewEditFirmwareResponse added in v1.0.397

func NewEditFirmwareResponse() (response *EditFirmwareResponse)

func (*EditFirmwareResponse) FromJsonString added in v1.0.397

func (r *EditFirmwareResponse) 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 (*EditFirmwareResponse) ToJsonString added in v1.0.397

func (r *EditFirmwareResponse) ToJsonString() string

type EnableTopicRuleRequest added in v1.0.397

type EnableTopicRuleRequest struct {
	*tchttp.BaseRequest

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

func NewEnableTopicRuleRequest added in v1.0.397

func NewEnableTopicRuleRequest() (request *EnableTopicRuleRequest)

func (*EnableTopicRuleRequest) FromJsonString added in v1.0.397

func (r *EnableTopicRuleRequest) 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 (*EnableTopicRuleRequest) ToJsonString added in v1.0.397

func (r *EnableTopicRuleRequest) ToJsonString() string

type EnableTopicRuleResponse added in v1.0.397

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

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

func NewEnableTopicRuleResponse added in v1.0.397

func NewEnableTopicRuleResponse() (response *EnableTopicRuleResponse)

func (*EnableTopicRuleResponse) FromJsonString added in v1.0.397

func (r *EnableTopicRuleResponse) 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 (*EnableTopicRuleResponse) ToJsonString added in v1.0.397

func (r *EnableTopicRuleResponse) ToJsonString() string

type FirmwareInfo added in v1.0.403

type FirmwareInfo struct {

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

	// 固件MD5值
	Md5sum *string `json:"Md5sum,omitempty" name:"Md5sum"`

	// 固件创建时间
	CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"`

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

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

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

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

type FirmwareTaskInfo added in v1.0.397

type FirmwareTaskInfo struct {

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

	// 任务状态
	// 注意:此字段可能返回 null,表示取不到有效值。
	Status *int64 `json:"Status,omitempty" name:"Status"`

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

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

type GetAllVersionRequest added in v1.0.403

type GetAllVersionRequest struct {
	*tchttp.BaseRequest

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

func NewGetAllVersionRequest added in v1.0.403

func NewGetAllVersionRequest() (request *GetAllVersionRequest)

func (*GetAllVersionRequest) FromJsonString added in v1.0.403

func (r *GetAllVersionRequest) 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 (*GetAllVersionRequest) ToJsonString added in v1.0.403

func (r *GetAllVersionRequest) ToJsonString() string

type GetAllVersionResponse added in v1.0.403

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

		// 版本号列表
		Version []*string `json:"Version,omitempty" name:"Version"`

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

func NewGetAllVersionResponse added in v1.0.403

func NewGetAllVersionResponse() (response *GetAllVersionResponse)

func (*GetAllVersionResponse) FromJsonString added in v1.0.403

func (r *GetAllVersionResponse) 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 (*GetAllVersionResponse) ToJsonString added in v1.0.403

func (r *GetAllVersionResponse) ToJsonString() string

type GetCOSURLRequest added in v1.0.397

type GetCOSURLRequest struct {
	*tchttp.BaseRequest

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

	// 固件版本
	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`

	// 固件版本大小
	FileSize *int64 `json:"FileSize,omitempty" name:"FileSize"`
}

func NewGetCOSURLRequest added in v1.0.397

func NewGetCOSURLRequest() (request *GetCOSURLRequest)

func (*GetCOSURLRequest) FromJsonString added in v1.0.397

func (r *GetCOSURLRequest) 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 (*GetCOSURLRequest) ToJsonString added in v1.0.397

func (r *GetCOSURLRequest) ToJsonString() string

type GetCOSURLResponse added in v1.0.397

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

		// 固件URL
		Url *string `json:"Url,omitempty" name:"Url"`

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

func NewGetCOSURLResponse added in v1.0.397

func NewGetCOSURLResponse() (response *GetCOSURLResponse)

func (*GetCOSURLResponse) FromJsonString added in v1.0.397

func (r *GetCOSURLResponse) 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 (*GetCOSURLResponse) ToJsonString added in v1.0.397

func (r *GetCOSURLResponse) ToJsonString() string

type GetUserResourceInfoRequest added in v1.0.397

type GetUserResourceInfoRequest struct {
	*tchttp.BaseRequest
}

func NewGetUserResourceInfoRequest added in v1.0.397

func NewGetUserResourceInfoRequest() (request *GetUserResourceInfoRequest)

func (*GetUserResourceInfoRequest) FromJsonString added in v1.0.397

func (r *GetUserResourceInfoRequest) 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 (*GetUserResourceInfoRequest) ToJsonString added in v1.0.397

func (r *GetUserResourceInfoRequest) ToJsonString() string

type GetUserResourceInfoResponse added in v1.0.397

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

		// 已使用的资源字节数
		UsedSize *uint64 `json:"UsedSize,omitempty" name:"UsedSize"`

		// 可以使用资源的总大小
		Limit *uint64 `json:"Limit,omitempty" name:"Limit"`

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

func NewGetUserResourceInfoResponse added in v1.0.397

func NewGetUserResourceInfoResponse() (response *GetUserResourceInfoResponse)

func (*GetUserResourceInfoResponse) FromJsonString added in v1.0.397

func (r *GetUserResourceInfoResponse) 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 (*GetUserResourceInfoResponse) ToJsonString added in v1.0.397

func (r *GetUserResourceInfoResponse) ToJsonString() string

type ListFirmwaresRequest added in v1.0.403

type ListFirmwaresRequest struct {
	*tchttp.BaseRequest

	// 获取的页数
	PageNum *uint64 `json:"PageNum,omitempty" name:"PageNum"`

	// 分页的大小
	PageSize *uint64 `json:"PageSize,omitempty" name:"PageSize"`

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

	// 搜索过滤条件
	Filters []*SearchKeyword `json:"Filters,omitempty" name:"Filters"`
}

func NewListFirmwaresRequest added in v1.0.403

func NewListFirmwaresRequest() (request *ListFirmwaresRequest)

func (*ListFirmwaresRequest) FromJsonString added in v1.0.403

func (r *ListFirmwaresRequest) 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 (*ListFirmwaresRequest) ToJsonString added in v1.0.403

func (r *ListFirmwaresRequest) ToJsonString() string

type ListFirmwaresResponse added in v1.0.403

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

		// 固件总数
		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// 固件列表
		Firmwares []*FirmwareInfo `json:"Firmwares,omitempty" name:"Firmwares"`

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

func NewListFirmwaresResponse added in v1.0.403

func NewListFirmwaresResponse() (response *ListFirmwaresResponse)

func (*ListFirmwaresResponse) FromJsonString added in v1.0.403

func (r *ListFirmwaresResponse) 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 (*ListFirmwaresResponse) ToJsonString added in v1.0.403

func (r *ListFirmwaresResponse) ToJsonString() string

type ListLogPayloadRequest added in v1.0.378

type ListLogPayloadRequest struct {
	*tchttp.BaseRequest

	// 日志开始时间,毫秒级时间戳
	MinTime *uint64 `json:"MinTime,omitempty" name:"MinTime"`

	// 日志结束时间,毫秒级时间戳
	MaxTime *uint64 `json:"MaxTime,omitempty" name:"MaxTime"`

	// 查询关键字,可以同时支持键值查询和文本查询,例如,查询某key的值为value,并且包含某word的日志,该参数为:key:value word。键值或文本可以包含多个,以空格隔开。其中可以索引的key比如:RequestID、ProductID、DeviceName等。
	// 一个典型的查询示例:ProductID:ABCDE12345 DeviceName:test publish
	Keywords *string `json:"Keywords,omitempty" name:"Keywords"`

	// 日志检索上下文
	Context *string `json:"Context,omitempty" name:"Context"`

	// 日志最大条数
	MaxNum *int64 `json:"MaxNum,omitempty" name:"MaxNum"`
}

func NewListLogPayloadRequest added in v1.0.378

func NewListLogPayloadRequest() (request *ListLogPayloadRequest)

func (*ListLogPayloadRequest) FromJsonString added in v1.0.378

func (r *ListLogPayloadRequest) 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 (*ListLogPayloadRequest) ToJsonString added in v1.0.378

func (r *ListLogPayloadRequest) ToJsonString() string

type ListLogPayloadResponse added in v1.0.378

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

		// 日志上下文
		Context *string `json:"Context,omitempty" name:"Context"`

		// 是否还有日志,如有仍有日志,下次查询的请求带上当前请求返回的Context
		Listover *bool `json:"Listover,omitempty" name:"Listover"`

		// 日志列表
		Results []*PayloadLogItem `json:"Results,omitempty" name:"Results"`

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

func NewListLogPayloadResponse added in v1.0.378

func NewListLogPayloadResponse() (response *ListLogPayloadResponse)

func (*ListLogPayloadResponse) FromJsonString added in v1.0.378

func (r *ListLogPayloadResponse) 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 (*ListLogPayloadResponse) ToJsonString added in v1.0.378

func (r *ListLogPayloadResponse) ToJsonString() string

type ListLogRequest added in v1.0.378

type ListLogRequest struct {
	*tchttp.BaseRequest

	// 日志开始时间,毫秒级时间戳
	MinTime *uint64 `json:"MinTime,omitempty" name:"MinTime"`

	// 日志结束时间,毫秒级时间戳
	MaxTime *uint64 `json:"MaxTime,omitempty" name:"MaxTime"`

	// 查询关键字,可以同时支持键值查询和文本查询,例如,查询某key的值为value,并且包含某word的日志,该参数为:key:value word。键值或文本可以包含多个,以空格隔开。其中可以索引的key包括:requestid、productid、devicename、scene、content。
	// 一个典型的查询示例:productid:ABCDE12345 devicename:test scene:SHADOW content:Device%20connect publish
	Keywords *string `json:"Keywords,omitempty" name:"Keywords"`

	// 日志检索上下文
	Context *string `json:"Context,omitempty" name:"Context"`

	// 查询条数
	MaxNum *int64 `json:"MaxNum,omitempty" name:"MaxNum"`
}

func NewListLogRequest added in v1.0.378

func NewListLogRequest() (request *ListLogRequest)

func (*ListLogRequest) FromJsonString added in v1.0.378

func (r *ListLogRequest) 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 (*ListLogRequest) ToJsonString added in v1.0.378

func (r *ListLogRequest) ToJsonString() string

type ListLogResponse added in v1.0.378

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

		// 日志上下文
		Context *string `json:"Context,omitempty" name:"Context"`

		// 是否还有日志,如有仍有日志,下次查询的请求带上当前请求返回的Context
		Listover *bool `json:"Listover,omitempty" name:"Listover"`

		// 日志列表
		Results []*CLSLogItem `json:"Results,omitempty" name:"Results"`

		// 日志总条数
		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`

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

func NewListLogResponse added in v1.0.378

func NewListLogResponse() (response *ListLogResponse)

func (*ListLogResponse) FromJsonString added in v1.0.378

func (r *ListLogResponse) 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 (*ListLogResponse) ToJsonString added in v1.0.378

func (r *ListLogResponse) ToJsonString() string

type ListSDKLogRequest added in v1.0.378

type ListSDKLogRequest struct {
	*tchttp.BaseRequest

	// 日志开始时间
	MinTime *uint64 `json:"MinTime,omitempty" name:"MinTime"`

	// 日志结束时间
	MaxTime *uint64 `json:"MaxTime,omitempty" name:"MaxTime"`

	// 查询关键字,可以同时支持键值查询和文本查询,
	// 例如,查询某key的值为value,并且包含某word的日志,该参数为:key:value word。
	// 键值或文本可以包含多个,以空格隔开。
	// 其中可以索引的key包括:productid、devicename、loglevel
	// 一个典型的查询示例:productid:7JK1G72JNE devicename:name publish loglevel:WARN一个典型的查询示例:productid:ABCDE12345 devicename:test scene:SHADOW publish
	Keywords *string `json:"Keywords,omitempty" name:"Keywords"`

	// 日志检索上下文
	Context *string `json:"Context,omitempty" name:"Context"`

	// 查询条数
	MaxNum *uint64 `json:"MaxNum,omitempty" name:"MaxNum"`
}

func NewListSDKLogRequest added in v1.0.378

func NewListSDKLogRequest() (request *ListSDKLogRequest)

func (*ListSDKLogRequest) FromJsonString added in v1.0.378

func (r *ListSDKLogRequest) 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 (*ListSDKLogRequest) ToJsonString added in v1.0.378

func (r *ListSDKLogRequest) ToJsonString() string

type ListSDKLogResponse added in v1.0.378

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

		// 日志检索上下文
		Context *string `json:"Context,omitempty" name:"Context"`

		// 是否还有日志,如有仍有日志,下次查询的请求带上当前请求返回的Context
		Listover *bool `json:"Listover,omitempty" name:"Listover"`

		// 日志列表
		Results []*SDKLogItem `json:"Results,omitempty" name:"Results"`

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

func NewListSDKLogResponse added in v1.0.378

func NewListSDKLogResponse() (response *ListSDKLogResponse)

func (*ListSDKLogResponse) FromJsonString added in v1.0.378

func (r *ListSDKLogResponse) 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 (*ListSDKLogResponse) ToJsonString added in v1.0.378

func (r *ListSDKLogResponse) ToJsonString() string

type ListTopicRulesRequest added in v1.0.408

type ListTopicRulesRequest struct {
	*tchttp.BaseRequest

	// 请求的页数
	PageNum *uint64 `json:"PageNum,omitempty" name:"PageNum"`

	// 分页的大小
	PageSize *uint64 `json:"PageSize,omitempty" name:"PageSize"`
}

func NewListTopicRulesRequest added in v1.0.408

func NewListTopicRulesRequest() (request *ListTopicRulesRequest)

func (*ListTopicRulesRequest) FromJsonString added in v1.0.408

func (r *ListTopicRulesRequest) 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 (*ListTopicRulesRequest) ToJsonString added in v1.0.408

func (r *ListTopicRulesRequest) ToJsonString() string

type ListTopicRulesResponse added in v1.0.408

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

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

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

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

func NewListTopicRulesResponse added in v1.0.408

func NewListTopicRulesResponse() (response *ListTopicRulesResponse)

func (*ListTopicRulesResponse) FromJsonString added in v1.0.408

func (r *ListTopicRulesResponse) 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 (*ListTopicRulesResponse) ToJsonString added in v1.0.408

func (r *ListTopicRulesResponse) ToJsonString() string

type PayloadLogItem added in v1.0.378

type PayloadLogItem struct {

	// 账号id
	Uin *string `json:"Uin,omitempty" name:"Uin"`

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

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

	// 来源类型
	SrcType *string `json:"SrcType,omitempty" name:"SrcType"`

	// 来源名称
	SrcName *string `json:"SrcName,omitempty" name:"SrcName"`

	// 消息topic
	Topic *string `json:"Topic,omitempty" name:"Topic"`

	// 内容格式类型
	PayloadFormatType *string `json:"PayloadFormatType,omitempty" name:"PayloadFormatType"`

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

	// 请求ID
	RequestId *string `json:"RequestId,omitempty" name:"RequestId"`

	// 日期时间
	DateTime *string `json:"DateTime,omitempty" name:"DateTime"`
}

type ProductInfo added in v1.0.397

type ProductInfo struct {

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

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

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

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

type ProductMetadata

type ProductMetadata struct {

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

type ProductProperties

type ProductProperties struct {

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

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

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

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

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

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

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

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

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

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

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

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

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

	// 划归的产品,展示为源产品ID,其余为空
	OriginProductId *string `json:"OriginProductId,omitempty" name:"OriginProductId"`

	// 私有CA名称
	PrivateCAName *string `json:"PrivateCAName,omitempty" name:"PrivateCAName"`

	// 划归的产品,展示为源用户ID,其余为空
	OriginUserId *uint64 `json:"OriginUserId,omitempty" name:"OriginUserId"`
}

type ProductResourceInfo added in v1.0.397

type ProductResourceInfo struct {

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

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

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

	// 资源文件md5
	Md5 *string `json:"Md5,omitempty" name:"Md5"`

	// 资源文件大小
	Size *uint64 `json:"Size,omitempty" name:"Size"`

	// 资源文件描述
	// 注意:此字段可能返回 null,表示取不到有效值。
	Description *string `json:"Description,omitempty" name:"Description"`

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

type ProductTaskInfo added in v1.0.397

type ProductTaskInfo struct {

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

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

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

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

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

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

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

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

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

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

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

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

type PublishBroadcastMessageRequest added in v1.0.378

type PublishBroadcastMessageRequest struct {
	*tchttp.BaseRequest

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

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

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

	// Payload内容的编码格式,取值为base64或空。base64表示云端将收到的请求数据进行base64解码后下发到设备,空则直接将原始内容下发到设备
	PayloadEncoding *string `json:"PayloadEncoding,omitempty" name:"PayloadEncoding"`
}

func NewPublishBroadcastMessageRequest added in v1.0.378

func NewPublishBroadcastMessageRequest() (request *PublishBroadcastMessageRequest)

func (*PublishBroadcastMessageRequest) FromJsonString added in v1.0.378

func (r *PublishBroadcastMessageRequest) 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 (*PublishBroadcastMessageRequest) ToJsonString added in v1.0.378

func (r *PublishBroadcastMessageRequest) ToJsonString() string

type PublishBroadcastMessageResponse added in v1.0.378

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

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

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

func NewPublishBroadcastMessageResponse added in v1.0.378

func NewPublishBroadcastMessageResponse() (response *PublishBroadcastMessageResponse)

func (*PublishBroadcastMessageResponse) FromJsonString added in v1.0.378

func (r *PublishBroadcastMessageResponse) 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 (*PublishBroadcastMessageResponse) ToJsonString added in v1.0.378

func (r *PublishBroadcastMessageResponse) ToJsonString() string

type PublishMessageRequest added in v1.0.397

type PublishMessageRequest struct {
	*tchttp.BaseRequest

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

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

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

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

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

	// Payload内容的编码格式,取值为base64或空。base64表示云端将收到的请求数据进行base64解码后下发到设备,空则直接将原始内容下发到设备
	PayloadEncoding *string `json:"PayloadEncoding,omitempty" name:"PayloadEncoding"`
}

func NewPublishMessageRequest added in v1.0.397

func NewPublishMessageRequest() (request *PublishMessageRequest)

func (*PublishMessageRequest) FromJsonString added in v1.0.397

func (r *PublishMessageRequest) 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 (*PublishMessageRequest) ToJsonString added in v1.0.397

func (r *PublishMessageRequest) ToJsonString() string

type PublishMessageResponse added in v1.0.397

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

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

func NewPublishMessageResponse added in v1.0.397

func NewPublishMessageResponse() (response *PublishMessageResponse)

func (*PublishMessageResponse) FromJsonString added in v1.0.397

func (r *PublishMessageResponse) 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 (*PublishMessageResponse) ToJsonString added in v1.0.397

func (r *PublishMessageResponse) ToJsonString() string

type PublishRRPCMessageRequest added in v1.0.397

type PublishRRPCMessageRequest struct {
	*tchttp.BaseRequest

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

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

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

func NewPublishRRPCMessageRequest added in v1.0.397

func NewPublishRRPCMessageRequest() (request *PublishRRPCMessageRequest)

func (*PublishRRPCMessageRequest) FromJsonString added in v1.0.397

func (r *PublishRRPCMessageRequest) 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 (*PublishRRPCMessageRequest) ToJsonString added in v1.0.397

func (r *PublishRRPCMessageRequest) ToJsonString() string

type PublishRRPCMessageResponse added in v1.0.397

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

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

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

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

func NewPublishRRPCMessageResponse added in v1.0.397

func NewPublishRRPCMessageResponse() (response *PublishRRPCMessageResponse)

func (*PublishRRPCMessageResponse) FromJsonString added in v1.0.397

func (r *PublishRRPCMessageResponse) 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 (*PublishRRPCMessageResponse) ToJsonString added in v1.0.397

func (r *PublishRRPCMessageResponse) ToJsonString() string

type ReplaceTopicRuleRequest added in v1.0.397

type ReplaceTopicRuleRequest struct {
	*tchttp.BaseRequest

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

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

func NewReplaceTopicRuleRequest added in v1.0.397

func NewReplaceTopicRuleRequest() (request *ReplaceTopicRuleRequest)

func (*ReplaceTopicRuleRequest) FromJsonString added in v1.0.397

func (r *ReplaceTopicRuleRequest) 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 (*ReplaceTopicRuleRequest) ToJsonString added in v1.0.397

func (r *ReplaceTopicRuleRequest) ToJsonString() string

type ReplaceTopicRuleResponse added in v1.0.397

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

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

func NewReplaceTopicRuleResponse added in v1.0.397

func NewReplaceTopicRuleResponse() (response *ReplaceTopicRuleResponse)

func (*ReplaceTopicRuleResponse) FromJsonString added in v1.0.397

func (r *ReplaceTopicRuleResponse) 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 (*ReplaceTopicRuleResponse) ToJsonString added in v1.0.397

func (r *ReplaceTopicRuleResponse) ToJsonString() string

type ResetDeviceResult added in v1.0.397

type ResetDeviceResult struct {

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

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

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

type ResetDeviceStateRequest added in v1.0.397

type ResetDeviceStateRequest struct {
	*tchttp.BaseRequest

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

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

func NewResetDeviceStateRequest added in v1.0.397

func NewResetDeviceStateRequest() (request *ResetDeviceStateRequest)

func (*ResetDeviceStateRequest) FromJsonString added in v1.0.397

func (r *ResetDeviceStateRequest) 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 (*ResetDeviceStateRequest) ToJsonString added in v1.0.397

func (r *ResetDeviceStateRequest) ToJsonString() string

type ResetDeviceStateResponse added in v1.0.397

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

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

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

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

func NewResetDeviceStateResponse added in v1.0.397

func NewResetDeviceStateResponse() (response *ResetDeviceStateResponse)

func (*ResetDeviceStateResponse) FromJsonString added in v1.0.397

func (r *ResetDeviceStateResponse) 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 (*ResetDeviceStateResponse) ToJsonString added in v1.0.397

func (r *ResetDeviceStateResponse) ToJsonString() string

type RetryDeviceFirmwareTaskRequest added in v1.0.397

type RetryDeviceFirmwareTaskRequest struct {
	*tchttp.BaseRequest

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

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

	// 固件版本号
	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`

	// 固件升级任务ID
	TaskId *uint64 `json:"TaskId,omitempty" name:"TaskId"`
}

func NewRetryDeviceFirmwareTaskRequest added in v1.0.397

func NewRetryDeviceFirmwareTaskRequest() (request *RetryDeviceFirmwareTaskRequest)

func (*RetryDeviceFirmwareTaskRequest) FromJsonString added in v1.0.397

func (r *RetryDeviceFirmwareTaskRequest) 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 (*RetryDeviceFirmwareTaskRequest) ToJsonString added in v1.0.397

func (r *RetryDeviceFirmwareTaskRequest) ToJsonString() string

type RetryDeviceFirmwareTaskResponse added in v1.0.397

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

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

func NewRetryDeviceFirmwareTaskResponse added in v1.0.397

func NewRetryDeviceFirmwareTaskResponse() (response *RetryDeviceFirmwareTaskResponse)

func (*RetryDeviceFirmwareTaskResponse) FromJsonString added in v1.0.397

func (r *RetryDeviceFirmwareTaskResponse) 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 (*RetryDeviceFirmwareTaskResponse) ToJsonString added in v1.0.397

func (r *RetryDeviceFirmwareTaskResponse) ToJsonString() string

type SDKLogItem added in v1.0.378

type SDKLogItem struct {

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

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

	// 日志等级
	Level *string `json:"Level,omitempty" name:"Level"`

	// 日志时间
	DateTime *string `json:"DateTime,omitempty" name:"DateTime"`

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

type SearchKeyword added in v1.0.397

type SearchKeyword struct {

	// 搜索条件的Key
	Key *string `json:"Key,omitempty" name:"Key"`

	// 搜索条件的值
	Value *string `json:"Value,omitempty" name:"Value"`
}

type SetProductsForbiddenStatusRequest added in v1.0.378

type SetProductsForbiddenStatusRequest struct {
	*tchttp.BaseRequest

	// 要设置禁用状态的产品列表
	ProductId []*string `json:"ProductId,omitempty" name:"ProductId"`

	// 0启用,1禁用
	Status *uint64 `json:"Status,omitempty" name:"Status"`
}

func NewSetProductsForbiddenStatusRequest added in v1.0.378

func NewSetProductsForbiddenStatusRequest() (request *SetProductsForbiddenStatusRequest)

func (*SetProductsForbiddenStatusRequest) FromJsonString added in v1.0.378

func (r *SetProductsForbiddenStatusRequest) 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 (*SetProductsForbiddenStatusRequest) ToJsonString added in v1.0.378

func (r *SetProductsForbiddenStatusRequest) ToJsonString() string

type SetProductsForbiddenStatusResponse added in v1.0.378

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

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

func NewSetProductsForbiddenStatusResponse added in v1.0.378

func NewSetProductsForbiddenStatusResponse() (response *SetProductsForbiddenStatusResponse)

func (*SetProductsForbiddenStatusResponse) FromJsonString added in v1.0.378

func (r *SetProductsForbiddenStatusResponse) 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 (*SetProductsForbiddenStatusResponse) ToJsonString added in v1.0.378

func (r *SetProductsForbiddenStatusResponse) ToJsonString() string

type StatusStatistic added in v1.0.397

type StatusStatistic struct {

	// 任务状态
	// 注意:此字段可能返回 null,表示取不到有效值。
	Status *uint64 `json:"Status,omitempty" name:"Status"`

	// 统计总数
	// 注意:此字段可能返回 null,表示取不到有效值。
	Total *uint64 `json:"Total,omitempty" name:"Total"`
}

type TopicRuleInfo added in v1.0.408

type TopicRuleInfo struct {

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

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

	// 创建时间
	CreatedAt *uint64 `json:"CreatedAt,omitempty" name:"CreatedAt"`

	// 不生效
	RuleDisabled *bool `json:"RuleDisabled,omitempty" name:"RuleDisabled"`

	// 规则模式
	TopicPattern *string `json:"TopicPattern,omitempty" name:"TopicPattern"`
}

type TopicRulePayload added in v1.0.397

type TopicRulePayload struct {

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

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

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

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

type UnbindDevicesRequest added in v1.0.397

type UnbindDevicesRequest struct {
	*tchttp.BaseRequest

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

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

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

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

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

func NewUnbindDevicesRequest added in v1.0.397

func NewUnbindDevicesRequest() (request *UnbindDevicesRequest)

func (*UnbindDevicesRequest) FromJsonString added in v1.0.397

func (r *UnbindDevicesRequest) 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 (*UnbindDevicesRequest) ToJsonString added in v1.0.397

func (r *UnbindDevicesRequest) ToJsonString() string

type UnbindDevicesResponse added in v1.0.397

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

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

func NewUnbindDevicesResponse added in v1.0.397

func NewUnbindDevicesResponse() (response *UnbindDevicesResponse)

func (*UnbindDevicesResponse) FromJsonString added in v1.0.397

func (r *UnbindDevicesResponse) 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 (*UnbindDevicesResponse) ToJsonString added in v1.0.397

func (r *UnbindDevicesResponse) ToJsonString() string

type UpdateDeviceAvailableStateRequest added in v1.0.397

type UpdateDeviceAvailableStateRequest struct {
	*tchttp.BaseRequest

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

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

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

func NewUpdateDeviceAvailableStateRequest added in v1.0.397

func NewUpdateDeviceAvailableStateRequest() (request *UpdateDeviceAvailableStateRequest)

func (*UpdateDeviceAvailableStateRequest) FromJsonString added in v1.0.397

func (r *UpdateDeviceAvailableStateRequest) 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 (*UpdateDeviceAvailableStateRequest) ToJsonString added in v1.0.397

func (r *UpdateDeviceAvailableStateRequest) ToJsonString() string

type UpdateDeviceAvailableStateResponse added in v1.0.397

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

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

func NewUpdateDeviceAvailableStateResponse added in v1.0.397

func NewUpdateDeviceAvailableStateResponse() (response *UpdateDeviceAvailableStateResponse)

func (*UpdateDeviceAvailableStateResponse) FromJsonString added in v1.0.397

func (r *UpdateDeviceAvailableStateResponse) 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 (*UpdateDeviceAvailableStateResponse) ToJsonString added in v1.0.397

func (r *UpdateDeviceAvailableStateResponse) ToJsonString() string

type UpdateDeviceLogLevelRequest

type UpdateDeviceLogLevelRequest struct {
	*tchttp.BaseRequest

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

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

	// 日志级别,0:关闭,1:错误,2:告警,3:信息,4:调试
	LogLevel *uint64 `json:"LogLevel,omitempty" name:"LogLevel"`
}

func NewUpdateDeviceLogLevelRequest

func NewUpdateDeviceLogLevelRequest() (request *UpdateDeviceLogLevelRequest)

func (*UpdateDeviceLogLevelRequest) FromJsonString

func (r *UpdateDeviceLogLevelRequest) 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 (*UpdateDeviceLogLevelRequest) ToJsonString

func (r *UpdateDeviceLogLevelRequest) ToJsonString() string

type UpdateDeviceLogLevelResponse

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

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

func NewUpdateDeviceLogLevelResponse

func NewUpdateDeviceLogLevelResponse() (response *UpdateDeviceLogLevelResponse)

func (*UpdateDeviceLogLevelResponse) FromJsonString

func (r *UpdateDeviceLogLevelResponse) 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 (*UpdateDeviceLogLevelResponse) ToJsonString

func (r *UpdateDeviceLogLevelResponse) ToJsonString() string

type UpdateDevicePSKRequest added in v1.0.378

type UpdateDevicePSKRequest struct {
	*tchttp.BaseRequest

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

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

	// 设备的psk
	Psk *string `json:"Psk,omitempty" name:"Psk"`
}

func NewUpdateDevicePSKRequest added in v1.0.378

func NewUpdateDevicePSKRequest() (request *UpdateDevicePSKRequest)

func (*UpdateDevicePSKRequest) FromJsonString added in v1.0.378

func (r *UpdateDevicePSKRequest) 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 (*UpdateDevicePSKRequest) ToJsonString added in v1.0.378

func (r *UpdateDevicePSKRequest) ToJsonString() string

type UpdateDevicePSKResponse added in v1.0.378

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

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

func NewUpdateDevicePSKResponse added in v1.0.378

func NewUpdateDevicePSKResponse() (response *UpdateDevicePSKResponse)

func (*UpdateDevicePSKResponse) FromJsonString added in v1.0.378

func (r *UpdateDevicePSKResponse) 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 (*UpdateDevicePSKResponse) ToJsonString added in v1.0.378

func (r *UpdateDevicePSKResponse) ToJsonString() string

type UpdateDeviceShadowRequest added in v1.0.397

type UpdateDeviceShadowRequest struct {
	*tchttp.BaseRequest

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

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

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

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

func NewUpdateDeviceShadowRequest added in v1.0.397

func NewUpdateDeviceShadowRequest() (request *UpdateDeviceShadowRequest)

func (*UpdateDeviceShadowRequest) FromJsonString added in v1.0.397

func (r *UpdateDeviceShadowRequest) 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 (*UpdateDeviceShadowRequest) ToJsonString added in v1.0.397

func (r *UpdateDeviceShadowRequest) ToJsonString() string

type UpdateDeviceShadowResponse added in v1.0.397

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

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

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

func NewUpdateDeviceShadowResponse added in v1.0.397

func NewUpdateDeviceShadowResponse() (response *UpdateDeviceShadowResponse)

func (*UpdateDeviceShadowResponse) FromJsonString added in v1.0.397

func (r *UpdateDeviceShadowResponse) 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 (*UpdateDeviceShadowResponse) ToJsonString added in v1.0.397

func (r *UpdateDeviceShadowResponse) ToJsonString() string

type UpdateDevicesEnableStateRequest

type UpdateDevicesEnableStateRequest struct {
	*tchttp.BaseRequest

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

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

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

func NewUpdateDevicesEnableStateRequest

func NewUpdateDevicesEnableStateRequest() (request *UpdateDevicesEnableStateRequest)

func (*UpdateDevicesEnableStateRequest) FromJsonString

func (r *UpdateDevicesEnableStateRequest) 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 (*UpdateDevicesEnableStateRequest) ToJsonString

func (r *UpdateDevicesEnableStateRequest) ToJsonString() string

type UpdateDevicesEnableStateResponse

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

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

func NewUpdateDevicesEnableStateResponse

func NewUpdateDevicesEnableStateResponse() (response *UpdateDevicesEnableStateResponse)

func (*UpdateDevicesEnableStateResponse) FromJsonString

func (r *UpdateDevicesEnableStateResponse) 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 (*UpdateDevicesEnableStateResponse) ToJsonString

func (r *UpdateDevicesEnableStateResponse) ToJsonString() string

type UpdatePrivateCARequest

type UpdatePrivateCARequest struct {
	*tchttp.BaseRequest

	// CA证书名称
	CertName *string `json:"CertName,omitempty" name:"CertName"`

	// CA证书内容
	CertText *string `json:"CertText,omitempty" name:"CertText"`

	// 校验CA证书的证书内容
	VerifyCertText *string `json:"VerifyCertText,omitempty" name:"VerifyCertText"`
}

func NewUpdatePrivateCARequest

func NewUpdatePrivateCARequest() (request *UpdatePrivateCARequest)

func (*UpdatePrivateCARequest) FromJsonString

func (r *UpdatePrivateCARequest) 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 (*UpdatePrivateCARequest) ToJsonString

func (r *UpdatePrivateCARequest) ToJsonString() string

type UpdatePrivateCAResponse

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

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

func NewUpdatePrivateCAResponse

func NewUpdatePrivateCAResponse() (response *UpdatePrivateCAResponse)

func (*UpdatePrivateCAResponse) FromJsonString

func (r *UpdatePrivateCAResponse) 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 (*UpdatePrivateCAResponse) ToJsonString

func (r *UpdatePrivateCAResponse) ToJsonString() string

type UpdateProductDynamicRegisterRequest added in v1.0.378

type UpdateProductDynamicRegisterRequest struct {
	*tchttp.BaseRequest

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

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

	// 动态注册设备上限
	RegisterLimit *uint64 `json:"RegisterLimit,omitempty" name:"RegisterLimit"`
}

func NewUpdateProductDynamicRegisterRequest added in v1.0.378

func NewUpdateProductDynamicRegisterRequest() (request *UpdateProductDynamicRegisterRequest)

func (*UpdateProductDynamicRegisterRequest) FromJsonString added in v1.0.378

func (r *UpdateProductDynamicRegisterRequest) 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 (*UpdateProductDynamicRegisterRequest) ToJsonString added in v1.0.378

func (r *UpdateProductDynamicRegisterRequest) ToJsonString() string

type UpdateProductDynamicRegisterResponse added in v1.0.378

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

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

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

		// 动态注册设备上限
		RegisterLimit *uint64 `json:"RegisterLimit,omitempty" name:"RegisterLimit"`

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

func NewUpdateProductDynamicRegisterResponse added in v1.0.378

func NewUpdateProductDynamicRegisterResponse() (response *UpdateProductDynamicRegisterResponse)

func (*UpdateProductDynamicRegisterResponse) FromJsonString added in v1.0.378

func (r *UpdateProductDynamicRegisterResponse) 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 (*UpdateProductDynamicRegisterResponse) ToJsonString added in v1.0.378

func (r *UpdateProductDynamicRegisterResponse) ToJsonString() string

type UpdateProductPrivateCARequest added in v1.0.378

type UpdateProductPrivateCARequest struct {
	*tchttp.BaseRequest

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

	// 私有CA证书名称
	CertName *string `json:"CertName,omitempty" name:"CertName"`
}

func NewUpdateProductPrivateCARequest added in v1.0.378

func NewUpdateProductPrivateCARequest() (request *UpdateProductPrivateCARequest)

func (*UpdateProductPrivateCARequest) FromJsonString added in v1.0.378

func (r *UpdateProductPrivateCARequest) 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 (*UpdateProductPrivateCARequest) ToJsonString added in v1.0.378

func (r *UpdateProductPrivateCARequest) ToJsonString() string

type UpdateProductPrivateCAResponse added in v1.0.378

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

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

func NewUpdateProductPrivateCAResponse added in v1.0.378

func NewUpdateProductPrivateCAResponse() (response *UpdateProductPrivateCAResponse)

func (*UpdateProductPrivateCAResponse) FromJsonString added in v1.0.378

func (r *UpdateProductPrivateCAResponse) 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 (*UpdateProductPrivateCAResponse) ToJsonString added in v1.0.378

func (r *UpdateProductPrivateCAResponse) ToJsonString() string

type UpdateTopicPolicyRequest added in v1.0.397

type UpdateTopicPolicyRequest struct {
	*tchttp.BaseRequest

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

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

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

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

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

func NewUpdateTopicPolicyRequest added in v1.0.397

func NewUpdateTopicPolicyRequest() (request *UpdateTopicPolicyRequest)

func (*UpdateTopicPolicyRequest) FromJsonString added in v1.0.397

func (r *UpdateTopicPolicyRequest) 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 (*UpdateTopicPolicyRequest) ToJsonString added in v1.0.397

func (r *UpdateTopicPolicyRequest) ToJsonString() string

type UpdateTopicPolicyResponse added in v1.0.397

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

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

func NewUpdateTopicPolicyResponse added in v1.0.397

func NewUpdateTopicPolicyResponse() (response *UpdateTopicPolicyResponse)

func (*UpdateTopicPolicyResponse) FromJsonString added in v1.0.397

func (r *UpdateTopicPolicyResponse) 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 (*UpdateTopicPolicyResponse) ToJsonString added in v1.0.397

func (r *UpdateTopicPolicyResponse) ToJsonString() string

type UploadFirmwareRequest added in v1.0.397

type UploadFirmwareRequest struct {
	*tchttp.BaseRequest

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

	// 固件版本号
	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`

	// 固件的MD5值
	Md5sum *string `json:"Md5sum,omitempty" name:"Md5sum"`

	// 固件的大小
	FileSize *uint64 `json:"FileSize,omitempty" name:"FileSize"`

	// 固件名称
	FirmwareName *string `json:"FirmwareName,omitempty" name:"FirmwareName"`

	// 固件描述
	FirmwareDescription *string `json:"FirmwareDescription,omitempty" name:"FirmwareDescription"`
}

func NewUploadFirmwareRequest added in v1.0.397

func NewUploadFirmwareRequest() (request *UploadFirmwareRequest)

func (*UploadFirmwareRequest) FromJsonString added in v1.0.397

func (r *UploadFirmwareRequest) 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 (*UploadFirmwareRequest) ToJsonString added in v1.0.397

func (r *UploadFirmwareRequest) ToJsonString() string

type UploadFirmwareResponse added in v1.0.397

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

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

func NewUploadFirmwareResponse added in v1.0.397

func NewUploadFirmwareResponse() (response *UploadFirmwareResponse)

func (*UploadFirmwareResponse) FromJsonString added in v1.0.397

func (r *UploadFirmwareResponse) 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 (*UploadFirmwareResponse) ToJsonString added in v1.0.397

func (r *UploadFirmwareResponse) ToJsonString() string

Jump to

Keyboard shortcuts

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