v20210408

package
v3.0.307+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// You cannot create devices as allowlist authentication is not enabled. IoT Hub will create devices automatically by the names carried during authentication.
	FAILEDOPERATION_TIDWHITELISTNOTOPEN = "FailedOperation.TidWhiteListNotOpen"

	// Internal error.
	INTERNALERROR = "InternalError"

	// Invalid parameter value.
	INVALIDPARAMETERVALUE = "InvalidParameterValue"

	//
	INVALIDPARAMETERVALUE_CACERTINVALID = "InvalidParameterValue.CACertInvalid"

	// CA certificate mismatch.
	INVALIDPARAMETERVALUE_CACERTNOTMATCH = "InvalidParameterValue.CACertNotMatch"

	// Invalid format. `DefinedPsk` must be a Base64 string.
	INVALIDPARAMETERVALUE_DEFINEDPSKNOTBASE64 = "InvalidParameterValue.DefinedPskNotBase64"

	// The device already exists.
	INVALIDPARAMETERVALUE_DEVICEALREADYEXIST = "InvalidParameterValue.DeviceAlreadyExist"

	// Unsupported product type.
	INVALIDPARAMETERVALUE_PRODUCTTYPENOTSUPPORT = "InvalidParameterValue.ProductTypeNotSupport"

	//
	LIMITEXCEEDED_CAALREADYBINDPRODUCT = "LimitExceeded.CAAlreadyBindProduct"

	//
	LIMITEXCEEDED_CAREPEAT = "LimitExceeded.CARepeat"

	// Device quantity exceeded the limit.
	LIMITEXCEEDED_DEVICEEXCEEDLIMIT = "LimitExceeded.DeviceExceedLimit"

	//
	RESOURCENOTFOUND_CACERTNOTEXIST = "ResourceNotFound.CACertNotExist"

	// The device does not exist.
	RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"

	// The product does not exist.
	RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"

	// Unable to delete this device as gateway devices have been bound to it.
	UNAUTHORIZEDOPERATION_DEVICEHASALREADYBINDGATEWAY = "UnauthorizedOperation.DeviceHasAlreadyBindGateway"

	// The device is not enabled.
	UNAUTHORIZEDOPERATION_DEVICEISNOTENABLED = "UnauthorizedOperation.DeviceIsNotEnabled"

	// There are still devices under this product.
	UNAUTHORIZEDOPERATION_DEVICESEXISTUNDERPRODUCT = "UnauthorizedOperation.DevicesExistUnderProduct"

	// There are still devices bound to this device.
	UNAUTHORIZEDOPERATION_GATEWAYHASBINDEDDEVICES = "UnauthorizedOperation.GatewayHasBindedDevices"

	// You cannot create a LoRa device under this product type.
	UNAUTHORIZEDOPERATION_PRODUCTCANTHAVELORADEVICE = "UnauthorizedOperation.ProductCantHaveLoRaDevice"

	// You cannot create a general device under a NB-IoT product.
	UNAUTHORIZEDOPERATION_PRODUCTCANTHAVENORMALDEVICE = "UnauthorizedOperation.ProductCantHaveNormalDevice"

	// You can create only LoRa devices under this product type.
	UNAUTHORIZEDOPERATION_PRODUCTCANTHAVENOTLORADEVICE = "UnauthorizedOperation.ProductCantHaveNotLoRaDevice"

	// The product does not support key authentication.
	UNAUTHORIZEDOPERATION_PRODUCTNOTSUPPORTPSK = "UnauthorizedOperation.ProductNotSupportPSK"

	// Device OTA update is in progress.
	UNSUPPORTEDOPERATION_DEVICEOTATASKINPROGRESS = "UnsupportedOperation.DeviceOtaTaskInProgress"

	// Unable to delete this gateway product as sub-products have been bound to it.
	UNSUPPORTEDOPERATION_GATEWAYPRODUCTHASBINDEDPRODUCT = "UnsupportedOperation.GatewayProductHasBindedProduct"

	// Unable to delete this product as gateway devices have been bound to it.
	UNSUPPORTEDOPERATION_PRODUCTHASBINDGATEWAY = "UnsupportedOperation.ProductHasBindGateway"

	// Unable to delete this product as gateway products have been bound to it.
	UNSUPPORTEDOPERATION_PRODUCTHASBINDEDGATEWAYPRODUCT = "UnsupportedOperation.ProductHasBindedGatewayProduct"

	// You cannot create devices under a suite token product.
	UNSUPPORTEDOPERATION_SUITETOKENNOCREATE = "UnsupportedOperation.SuiteTokenNoCreate"
)
View Source
const APIVersion = "2021-04-08"

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {

	// Attribute list
	Tags []*DeviceTag `json:"Tags,omitempty" name:"Tags"`
}

type BindProductInfo

type BindProductInfo struct {

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

	// Product name
	ProductName *string `json:"ProductName,omitempty" name:"ProductName"`
}

type CertInfo

type CertInfo struct {

	// Certificate name
	CertName *string `json:"CertName,omitempty" name:"CertName"`

	// Hex sequence number of a certificate
	CertSN *string `json:"CertSN,omitempty" name:"CertSN"`

	// Certificate issuer
	IssuerName *string `json:"IssuerName,omitempty" name:"IssuerName"`

	// Certificate subject
	Subject *string `json:"Subject,omitempty" name:"Subject"`

	// Certificate creation time (timestamp in milliseconds)
	CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"`

	// Certificate effective time (timestamp in milliseconds)
	EffectiveTime *uint64 `json:"EffectiveTime,omitempty" name:"EffectiveTime"`

	// Certificate expiration time (timestamp in milliseconds)
	ExpireTime *uint64 `json:"ExpireTime,omitempty" name:"ExpireTime"`

	// X.509 certificate content
	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) CreateDevice

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

CreateDevice This API is used to create an IoT Hub device.

error code that may be returned:

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

func (*Client) CreatePrivateCA

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

CreatePrivateCA This API is used to create a private CA certificate.

error code that may be returned:

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

func (*Client) DeleteDevice

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

DeleteDevice This API is used to delete an IoT Hub device.

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist"
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 This API is used to delete a private CA certificate.

error code that may be returned:

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

func (*Client) DeleteProduct

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

DeleteProduct This API is used to delete an IoT Hub product.

error code that may be returned:

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

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

DescribeDevice This API is used to query device details.

error code that may be returned:

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 This API is used to get the list of IoT Hub devices.

error code that may be returned:

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

func (*Client) DescribePrivateCA

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

DescribePrivateCA This API is used to query private CA certificate details.

error code that may be returned:

RESOURCENOTFOUND_CACERTNOTEXIST = "ResourceNotFound.CACertNotExist"

func (*Client) DescribePrivateCABindedProducts

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

DescribePrivateCABindedProducts This API is used to query the products bound to a private CA certificate.

error code that may be returned:

RESOURCENOTFOUND_CACERTNOTEXIST = "ResourceNotFound.CACertNotExist"

func (*Client) DescribePrivateCAs

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

DescribePrivateCAs This API is used to get the list of private CA certificates.

error code that may be returned:

RESOURCENOTFOUND_CACERTNOTEXIST = "ResourceNotFound.CACertNotExist"

func (*Client) DescribeProduct

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

DescribeProduct This API is used to query product details.

error code that may be returned:

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

func (*Client) DescribeProductCA

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

DescribeProductCA This API is used to query the CA certificates bound to a product.

error code that may be returned:

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

func (*Client) UpdateDeviceLogLevel

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

UpdateDeviceLogLevel This API is used to set the device log level.

error code that may be returned:

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

func (*Client) UpdateDevicesEnableState

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

UpdateDevicesEnableState This API is used to enable or disable multiple devices.

error code that may be returned:

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 This API is used to update a private CA certificate.

error code that may be returned:

LIMITEXCEEDED_CAREPEAT = "LimitExceeded.CARepeat"

type CreateDeviceRequest

type CreateDeviceRequest struct {
	*tchttp.BaseRequest

	// Product ID, globally unique ID assigned by Tencent Cloud during product creation
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// Device name. It is a string of 1 to 48 characters. Letters, digits, and :_- are allowed.
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

	// Device attribute
	Attribute *Attribute `json:"Attribute,omitempty" name:"Attribute"`

	// Whether to use custom PSK, no by default
	DefinedPsk *string `json:"DefinedPsk,omitempty" name:"DefinedPsk"`

	// ISP, required for a NB-IoT product. `1`: China Telecom; `2`: China Mobile; `3`: China Unicom
	Isp *uint64 `json:"Isp,omitempty" name:"Isp"`

	// IMEI, required for a NB-IoT product
	Imei *string `json:"Imei,omitempty" name:"Imei"`

	// DevEUI of a LoRa device, required when you create a LoRa device
	LoraDevEui *string `json:"LoraDevEui,omitempty" name:"LoraDevEui"`

	// MoteType of a LoRa device
	LoraMoteType *uint64 `json:"LoraMoteType,omitempty" name:"LoraMoteType"`

	// Skey, required when you create a LoRa device
	Skey *string `json:"Skey,omitempty" name:"Skey"`

	// AppKey of a LoRa device
	LoraAppKey *string `json:"LoraAppKey,omitempty" name:"LoraAppKey"`

	// Private CA certificate
	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 {

		// Device name
		DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

		// Base64-encoded symmetric encryption key, which is returned if symmetric encryption is used
		DevicePsk *string `json:"DevicePsk,omitempty" name:"DevicePsk"`

		// Device certificate, which authenticates client identity during TLS connection establishment and is returned if asymmetric encryption is used
		DeviceCert *string `json:"DeviceCert,omitempty" name:"DeviceCert"`

		// Device private key, which authenticates client identity during TLS connection establishment and is returned if asymmetric encryption is used. Tencent Cloud does not store the key. Please store it by yourself properly.
		DevicePrivateKey *string `json:"DevicePrivateKey,omitempty" name:"DevicePrivateKey"`

		// DevEUI of a LoRa device, which is returned for a LoRa device
		LoraDevEui *string `json:"LoraDevEui,omitempty" name:"LoraDevEui"`

		// MoteType of a LoRa device, which is returned for a LoRa device
		LoraMoteType *uint64 `json:"LoraMoteType,omitempty" name:"LoraMoteType"`

		// AppKey of a LoRa device, which is returned for a LoRa device
		LoraAppKey *string `json:"LoraAppKey,omitempty" name:"LoraAppKey"`

		// NwkKey of a LoRa device, which is returned for a LoRa device
		LoraNwkKey *string `json:"LoraNwkKey,omitempty" name:"LoraNwkKey"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		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 CreatePrivateCARequest

type CreatePrivateCARequest struct {
	*tchttp.BaseRequest

	// CA certificate name
	CertName *string `json:"CertName,omitempty" name:"CertName"`

	// CA certificate content
	CertText *string `json:"CertText,omitempty" name:"CertText"`

	// Content verifying the CA certificate
	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 {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		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 DeleteDeviceRequest

type DeleteDeviceRequest struct {
	*tchttp.BaseRequest

	// ID of the product to which the device belongs
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// Name of the device to delete
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

	// Skey, which is required to delete a LoRa device or LoRa gateway device
	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 DeleteDeviceResponse

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

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		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

	// Private CA certificate name
	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 {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		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 DeleteProductRequest

type DeleteProductRequest struct {
	*tchttp.BaseRequest

	// ID of the product to delete
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// Skey, which is required to delete a LoRa product
	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 {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		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 DescribeDeviceRequest

type DescribeDeviceRequest struct {
	*tchttp.BaseRequest

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

	// Device name
	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 DescribeDeviceResponse

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

		// Device name
		DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

		// Whether the device is online. `0`: offline; `1`: online
		Online *uint64 `json:"Online,omitempty" name:"Online"`

		// Device login time
		LoginTime *uint64 `json:"LoginTime,omitempty" name:"LoginTime"`

		// Device firmware version
		Version *string `json:"Version,omitempty" name:"Version"`

		// Last updated time of the device
		LastUpdateTime *uint64 `json:"LastUpdateTime,omitempty" name:"LastUpdateTime"`

		// Device certificate
		DeviceCert *string `json:"DeviceCert,omitempty" name:"DeviceCert"`

		// Device key
		DevicePsk *string `json:"DevicePsk,omitempty" name:"DevicePsk"`

		// Device attribute
		Tags []*DeviceTag `json:"Tags,omitempty" name:"Tags"`

		// Device type
		DeviceType *uint64 `json:"DeviceType,omitempty" name:"DeviceType"`

		// International Mobile Equipment Identity (IMEI)
		Imei *string `json:"Imei,omitempty" name:"Imei"`

		// ISP
		Isp *uint64 `json:"Isp,omitempty" name:"Isp"`

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

		// Device ID at the NB-IoT ISP
		NbiotDeviceID *string `json:"NbiotDeviceID,omitempty" name:"NbiotDeviceID"`

		// DevEUI of a LoRa device
		LoraDevEui *string `json:"LoraDevEui,omitempty" name:"LoraDevEui"`

		// MoteType of a LoRa device
		LoraMoteType *uint64 `json:"LoraMoteType,omitempty" name:"LoraMoteType"`

		// SDK log level of the device
		// Note: this field may return `null`, indicating that no valid value is obtained.
		LogLevel *uint64 `json:"LogLevel,omitempty" name:"LogLevel"`

		// The first time when the device went online
		// Note: this field may return `null`, indicating that no valid value is obtained.
		FirstOnlineTime *uint64 `json:"FirstOnlineTime,omitempty" name:"FirstOnlineTime"`

		// The last time when the device went offline
		// Note: this field may return `null`, indicating that no valid value is obtained.
		LastOfflineTime *uint64 `json:"LastOfflineTime,omitempty" name:"LastOfflineTime"`

		// Device creation time
		// Note: this field may return `null`, indicating that no valid value is obtained.
		CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"`

		// Whether the device certificate has been obtained. `0`: no; `1`: yes
		// Note: this field may return `null`, indicating that no valid value is obtained.
		CertState *uint64 `json:"CertState,omitempty" name:"CertState"`

		// Whether the device is enabled
		// Note: this field may return `null`, indicating that no valid value is obtained.
		EnableState *uint64 `json:"EnableState,omitempty" name:"EnableState"`

		// Device tags
		// Note: this field may return `null`, indicating that no valid value is obtained.
		Labels []*DeviceLabel `json:"Labels,omitempty" name:"Labels"`

		// IP address of the MQTT client
		// Note: this field may return `null`, indicating that no valid value is obtained.
		ClientIP *string `json:"ClientIP,omitempty" name:"ClientIP"`

		// Firmware update time of the device
		// Note: this field may return `null`, indicating that no valid value is obtained.
		FirmwareUpdateTime *uint64 `json:"FirmwareUpdateTime,omitempty" name:"FirmwareUpdateTime"`

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

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		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 DescribeDevicesRequest

type DescribeDevicesRequest struct {
	*tchttp.BaseRequest

	// ID of the product whose devices are queried
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// Offset, which starts from 0
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`

	// Page size. Value range: 10-250
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`

	// Device firmware version. If no value is passed in, devices of all firmware versions are returned. If `None-FirmwareVersion` is passed in, devices without version numbers are returned.
	FirmwareVersion *string `json:"FirmwareVersion,omitempty" name:"FirmwareVersion"`

	// Device name to query
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

	// Whether to query enabled or disabled devices. `0`: disabled devices; `1`: enabled devices. By default, both enabled and disabled devices are queried.
	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 {

		// Total number of the devices returned
		TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// List of device details
		Devices []*DeviceInfo `json:"Devices,omitempty" name:"Devices"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		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 DescribePrivateCABindedProductsRequest

type DescribePrivateCABindedProductsRequest struct {
	*tchttp.BaseRequest

	// Certificate name
	CertName *string `json:"CertName,omitempty" name:"CertName"`

	// Offset for query
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`

	// Maximum number of records to return, which is 20 by default and cannot exceed 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 {

		// List of the products bound to the private CA certificate
		Products []*BindProductInfo `json:"Products,omitempty" name:"Products"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		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

	// Name of the private CA certificate to query
	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 {

		// Details of the private CA certificate
		CA *CertInfo `json:"CA,omitempty" name:"CA"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		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 {

		// List of private CA certificates
		CAs []*CertInfo `json:"CAs,omitempty" name:"CAs"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		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

	// Product 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 {

		// List of CA certificates bound to the product
		CAs []*CertInfo `json:"CAs,omitempty" name:"CAs"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		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

	// Product 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 DescribeProductResponse

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

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

		// Product name
		ProductName *string `json:"ProductName,omitempty" name:"ProductName"`

		// Product metadata
		ProductMetadata *ProductMetadata `json:"ProductMetadata,omitempty" name:"ProductMetadata"`

		// Product properties
		ProductProperties *ProductProperties `json:"ProductProperties,omitempty" name:"ProductProperties"`

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		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 DeviceInfo

type DeviceInfo struct {

	// Device name
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

	// Whether the device is online. `0`: offline; `1`: online
	Online *uint64 `json:"Online,omitempty" name:"Online"`

	// Device login time
	LoginTime *uint64 `json:"LoginTime,omitempty" name:"LoginTime"`

	// Device version
	Version *string `json:"Version,omitempty" name:"Version"`

	// Device certificate, which is returned for devices that use certificates for authentication
	DeviceCert *string `json:"DeviceCert,omitempty" name:"DeviceCert"`

	// Device key, which is returned for devices that use keys for authentication
	DevicePsk *string `json:"DevicePsk,omitempty" name:"DevicePsk"`

	// Device attribute
	Tags []*DeviceTag `json:"Tags,omitempty" name:"Tags"`

	// Device type
	DeviceType *uint64 `json:"DeviceType,omitempty" name:"DeviceType"`

	// International Mobile Equipment Identity (IMEI)
	Imei *string `json:"Imei,omitempty" name:"Imei"`

	// ISP
	Isp *uint64 `json:"Isp,omitempty" name:"Isp"`

	// Device ID at the NB-IoT ISP
	NbiotDeviceID *string `json:"NbiotDeviceID,omitempty" name:"NbiotDeviceID"`

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

	// Last updated time of the device
	LastUpdateTime *uint64 `json:"LastUpdateTime,omitempty" name:"LastUpdateTime"`

	// DevEUI of a LoRa device
	LoraDevEui *string `json:"LoraDevEui,omitempty" name:"LoraDevEui"`

	// MoteType of a LoRa device
	LoraMoteType *uint64 `json:"LoraMoteType,omitempty" name:"LoraMoteType"`

	// The first time when the device went online
	// Note: this field may return `null`, indicating that no valid value is obtained.
	FirstOnlineTime *uint64 `json:"FirstOnlineTime,omitempty" name:"FirstOnlineTime"`

	// The last time when the device went offline
	// Note: this field may return `null`, indicating that no valid value is obtained.
	LastOfflineTime *uint64 `json:"LastOfflineTime,omitempty" name:"LastOfflineTime"`

	// Device creation time
	// Note: this field may return `null`, indicating that no valid value is obtained.
	CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"`

	// Device log level
	// Note: this field may return `null`, indicating that no valid value is obtained.
	LogLevel *uint64 `json:"LogLevel,omitempty" name:"LogLevel"`

	// Whether the device certificate has been obtained. `0`: no; `1`: yes
	// Note: this field may return `null`, indicating that no valid value is obtained.
	CertState *uint64 `json:"CertState,omitempty" name:"CertState"`

	// Whether the device is enabled. `0`: disabled; `1`: enabled
	// Note: this field may return `null`, indicating that no valid value is obtained.
	EnableState *uint64 `json:"EnableState,omitempty" name:"EnableState"`

	// Device tags
	// Note: this field may return `null`, indicating that no valid value is obtained.
	Labels []*DeviceLabel `json:"Labels,omitempty" name:"Labels"`

	// IP address of the MQTT client
	// Note: this field may return `null`, indicating that no valid value is obtained.
	ClientIP *string `json:"ClientIP,omitempty" name:"ClientIP"`

	// Time of last OTA update
	// Note: this field may return `null`, indicating that no valid value is obtained.
	FirmwareUpdateTime *uint64 `json:"FirmwareUpdateTime,omitempty" name:"FirmwareUpdateTime"`
}

type DeviceLabel

type DeviceLabel struct {

	// Tag key
	Key *string `json:"Key,omitempty" name:"Key"`

	// Tag value
	Value *string `json:"Value,omitempty" name:"Value"`
}

type DeviceTag

type DeviceTag struct {

	// Attribute name
	Tag *string `json:"Tag,omitempty" name:"Tag"`

	// Attribute value type. `1`: integer; `2`: string
	Type *uint64 `json:"Type,omitempty" name:"Type"`

	// Attribute value
	Value *string `json:"Value,omitempty" name:"Value"`

	// Attribute description
	// Note: this field may return `null`, indicating that no valid value is obtained.
	Name *string `json:"Name,omitempty" name:"Name"`
}

type ProductMetadata

type ProductMetadata struct {

	// Product creation time
	CreationDate *uint64 `json:"CreationDate,omitempty" name:"CreationDate"`
}

type ProductProperties

type ProductProperties struct {

	// Product description
	ProductDescription *string `json:"ProductDescription,omitempty" name:"ProductDescription"`

	// Authentication type. `1` (default): certificate; `2`: signature
	EncryptionType *string `json:"EncryptionType,omitempty" name:"EncryptionType"`

	// Product region. Valid value: `gz` (Guangzhou)
	Region *string `json:"Region,omitempty" name:"Region"`

	// Product type. Valid values:
	// `0` (default): general; `2`: NB-IoT; `3`: LoRa gateway; `4`: LoRa; `5`: general gateway
	ProductType *uint64 `json:"ProductType,omitempty" name:"ProductType"`

	// Data format. Valid values: `json` (default), `custom`
	Format *string `json:"Format,omitempty" name:"Format"`

	// Platform of the product. Default value: `0`
	Platform *string `json:"Platform,omitempty" name:"Platform"`

	// AppEUI at the LoRa product operator, required only for LoRa products
	Appeui *string `json:"Appeui,omitempty" name:"Appeui"`

	// ID of the Thing Specification Language (TSL) model bound to the product. `-1` means no models are bound.
	ModelId *string `json:"ModelId,omitempty" name:"ModelId"`

	// Name of the TSL model bound to the product
	ModelName *string `json:"ModelName,omitempty" name:"ModelName"`

	// Product key, which is specific to suite products
	ProductKey *string `json:"ProductKey,omitempty" name:"ProductKey"`

	// Dynamic registration type. `0`: disable; `1`: preset device names; `2`: generate device names dynamically
	RegisterType *uint64 `json:"RegisterType,omitempty" name:"RegisterType"`

	// Dynamic registration product key
	ProductSecret *string `json:"ProductSecret,omitempty" name:"ProductSecret"`

	// The maximum number of devices that can be dynamically created when `RegisterType` is set to `2`
	RegisterLimit *uint64 `json:"RegisterLimit,omitempty" name:"RegisterLimit"`

	// Original product ID of a transferred product. This parameter is empty for products that are not transferred.
	OriginProductId *string `json:"OriginProductId,omitempty" name:"OriginProductId"`

	// Private CA certificate name
	PrivateCAName *string `json:"PrivateCAName,omitempty" name:"PrivateCAName"`

	// Original user ID of a transferred product. This parameter is empty for products that are not transferred.
	OriginUserId *uint64 `json:"OriginUserId,omitempty" name:"OriginUserId"`
}

type UpdateDeviceLogLevelRequest

type UpdateDeviceLogLevelRequest struct {
	*tchttp.BaseRequest

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

	// Device name
	DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"`

	// Log level. `0`: disable; `1`: error; `2`: warning; `3`: information; `4`: debugging
	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 {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		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 UpdateDevicesEnableStateRequest

type UpdateDevicesEnableStateRequest struct {
	*tchttp.BaseRequest

	// ID of the product to which the device belongs
	ProductId *string `json:"ProductId,omitempty" name:"ProductId"`

	// Device names
	DeviceNames []*string `json:"DeviceNames,omitempty" name:"DeviceNames"`

	// New status of the devices. `0`: disabled; `1`: enabled
	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 {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		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 certificate name
	CertName *string `json:"CertName,omitempty" name:"CertName"`

	// CA certificate content
	CertText *string `json:"CertText,omitempty" name:"CertText"`

	// Content verifying the CA certificate
	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 {

		// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
		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

Jump to

Keyboard shortcuts

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