Documentation ¶
Index ¶
- Constants
- type Attribute
- type BindProductInfo
- type CertInfo
- type Client
- func (c *Client) CreateDevice(request *CreateDeviceRequest) (response *CreateDeviceResponse, err error)
- func (c *Client) CreateDeviceWithContext(ctx context.Context, request *CreateDeviceRequest) (response *CreateDeviceResponse, err error)
- func (c *Client) CreatePrivateCA(request *CreatePrivateCARequest) (response *CreatePrivateCAResponse, err error)
- func (c *Client) CreatePrivateCAWithContext(ctx context.Context, request *CreatePrivateCARequest) (response *CreatePrivateCAResponse, err error)
- func (c *Client) CreateProduct(request *CreateProductRequest) (response *CreateProductResponse, err error)
- func (c *Client) CreateProductWithContext(ctx context.Context, request *CreateProductRequest) (response *CreateProductResponse, err error)
- func (c *Client) DeleteDevice(request *DeleteDeviceRequest) (response *DeleteDeviceResponse, err error)
- func (c *Client) DeleteDeviceShadow(request *DeleteDeviceShadowRequest) (response *DeleteDeviceShadowResponse, err error)
- func (c *Client) DeleteDeviceShadowWithContext(ctx context.Context, request *DeleteDeviceShadowRequest) (response *DeleteDeviceShadowResponse, err error)
- func (c *Client) DeleteDeviceWithContext(ctx context.Context, request *DeleteDeviceRequest) (response *DeleteDeviceResponse, err error)
- func (c *Client) DeletePrivateCA(request *DeletePrivateCARequest) (response *DeletePrivateCAResponse, err error)
- func (c *Client) DeletePrivateCAWithContext(ctx context.Context, request *DeletePrivateCARequest) (response *DeletePrivateCAResponse, err error)
- func (c *Client) DeleteProduct(request *DeleteProductRequest) (response *DeleteProductResponse, err error)
- func (c *Client) DeleteProductWithContext(ctx context.Context, request *DeleteProductRequest) (response *DeleteProductResponse, err error)
- func (c *Client) DescribeDevice(request *DescribeDeviceRequest) (response *DescribeDeviceResponse, err error)
- func (c *Client) DescribeDeviceWithContext(ctx context.Context, request *DescribeDeviceRequest) (response *DescribeDeviceResponse, err error)
- func (c *Client) DescribeDevices(request *DescribeDevicesRequest) (response *DescribeDevicesResponse, err error)
- func (c *Client) DescribeDevicesWithContext(ctx context.Context, request *DescribeDevicesRequest) (response *DescribeDevicesResponse, err error)
- func (c *Client) DescribePrivateCA(request *DescribePrivateCARequest) (response *DescribePrivateCAResponse, err error)
- func (c *Client) DescribePrivateCABindedProducts(request *DescribePrivateCABindedProductsRequest) (response *DescribePrivateCABindedProductsResponse, err error)
- func (c *Client) DescribePrivateCABindedProductsWithContext(ctx context.Context, request *DescribePrivateCABindedProductsRequest) (response *DescribePrivateCABindedProductsResponse, err error)
- func (c *Client) DescribePrivateCAWithContext(ctx context.Context, request *DescribePrivateCARequest) (response *DescribePrivateCAResponse, err error)
- func (c *Client) DescribePrivateCAs(request *DescribePrivateCAsRequest) (response *DescribePrivateCAsResponse, err error)
- func (c *Client) DescribePrivateCAsWithContext(ctx context.Context, request *DescribePrivateCAsRequest) (response *DescribePrivateCAsResponse, err error)
- func (c *Client) DescribeProduct(request *DescribeProductRequest) (response *DescribeProductResponse, err error)
- func (c *Client) DescribeProductCA(request *DescribeProductCARequest) (response *DescribeProductCAResponse, err error)
- func (c *Client) DescribeProductCAWithContext(ctx context.Context, request *DescribeProductCARequest) (response *DescribeProductCAResponse, err error)
- func (c *Client) DescribeProductWithContext(ctx context.Context, request *DescribeProductRequest) (response *DescribeProductResponse, err error)
- func (c *Client) DescribeProducts(request *DescribeProductsRequest) (response *DescribeProductsResponse, err error)
- func (c *Client) DescribeProductsWithContext(ctx context.Context, request *DescribeProductsRequest) (response *DescribeProductsResponse, err error)
- func (c *Client) SetProductsForbiddenStatus(request *SetProductsForbiddenStatusRequest) (response *SetProductsForbiddenStatusResponse, err error)
- func (c *Client) SetProductsForbiddenStatusWithContext(ctx context.Context, request *SetProductsForbiddenStatusRequest) (response *SetProductsForbiddenStatusResponse, err error)
- func (c *Client) UpdateDeviceLogLevel(request *UpdateDeviceLogLevelRequest) (response *UpdateDeviceLogLevelResponse, err error)
- func (c *Client) UpdateDeviceLogLevelWithContext(ctx context.Context, request *UpdateDeviceLogLevelRequest) (response *UpdateDeviceLogLevelResponse, err error)
- func (c *Client) UpdateDevicesEnableState(request *UpdateDevicesEnableStateRequest) (response *UpdateDevicesEnableStateResponse, err error)
- func (c *Client) UpdateDevicesEnableStateWithContext(ctx context.Context, request *UpdateDevicesEnableStateRequest) (response *UpdateDevicesEnableStateResponse, err error)
- func (c *Client) UpdatePrivateCA(request *UpdatePrivateCARequest) (response *UpdatePrivateCAResponse, err error)
- func (c *Client) UpdatePrivateCAWithContext(ctx context.Context, request *UpdatePrivateCARequest) (response *UpdatePrivateCAResponse, err error)
- func (c *Client) UpdateProductDynamicRegister(request *UpdateProductDynamicRegisterRequest) (response *UpdateProductDynamicRegisterResponse, err error)
- func (c *Client) UpdateProductDynamicRegisterWithContext(ctx context.Context, request *UpdateProductDynamicRegisterRequest) (response *UpdateProductDynamicRegisterResponse, err error)
- type CreateDeviceRequest
- type CreateDeviceRequestParams
- type CreateDeviceResponse
- type CreateDeviceResponseParams
- type CreatePrivateCARequest
- type CreatePrivateCARequestParams
- type CreatePrivateCAResponse
- type CreatePrivateCAResponseParams
- type CreateProductRequest
- type CreateProductRequestParams
- type CreateProductResponse
- type CreateProductResponseParams
- type DeleteDeviceRequest
- type DeleteDeviceRequestParams
- type DeleteDeviceResponse
- type DeleteDeviceResponseParams
- type DeleteDeviceShadowRequest
- type DeleteDeviceShadowRequestParams
- type DeleteDeviceShadowResponse
- type DeleteDeviceShadowResponseParams
- type DeletePrivateCARequest
- type DeletePrivateCARequestParams
- type DeletePrivateCAResponse
- type DeletePrivateCAResponseParams
- type DeleteProductRequest
- type DeleteProductRequestParams
- type DeleteProductResponse
- type DeleteProductResponseParams
- type DescribeDeviceRequest
- type DescribeDeviceRequestParams
- type DescribeDeviceResponse
- type DescribeDeviceResponseParams
- type DescribeDevicesRequest
- type DescribeDevicesRequestParams
- type DescribeDevicesResponse
- type DescribeDevicesResponseParams
- type DescribePrivateCABindedProductsRequest
- type DescribePrivateCABindedProductsRequestParams
- type DescribePrivateCABindedProductsResponse
- type DescribePrivateCABindedProductsResponseParams
- type DescribePrivateCARequest
- type DescribePrivateCARequestParams
- type DescribePrivateCAResponse
- type DescribePrivateCAResponseParams
- type DescribePrivateCAsRequest
- type DescribePrivateCAsRequestParams
- type DescribePrivateCAsResponse
- type DescribePrivateCAsResponseParams
- type DescribeProductCARequest
- type DescribeProductCARequestParams
- type DescribeProductCAResponse
- type DescribeProductCAResponseParams
- type DescribeProductRequest
- type DescribeProductRequestParams
- type DescribeProductResponse
- type DescribeProductResponseParams
- type DescribeProductsRequest
- type DescribeProductsRequestParams
- type DescribeProductsResponse
- type DescribeProductsResponseParams
- type DeviceInfo
- type DeviceLabel
- type DeviceTag
- type ProductInfo
- type ProductMetadata
- type ProductProperties
- type SetProductsForbiddenStatusRequest
- type SetProductsForbiddenStatusRequestParams
- type SetProductsForbiddenStatusResponse
- type SetProductsForbiddenStatusResponseParams
- type UpdateDeviceLogLevelRequest
- type UpdateDeviceLogLevelRequestParams
- type UpdateDeviceLogLevelResponse
- type UpdateDeviceLogLevelResponseParams
- type UpdateDevicesEnableStateRequest
- type UpdateDevicesEnableStateRequestParams
- type UpdateDevicesEnableStateResponse
- type UpdateDevicesEnableStateResponseParams
- type UpdatePrivateCARequest
- type UpdatePrivateCARequestParams
- type UpdatePrivateCAResponse
- type UpdatePrivateCAResponseParams
- type UpdateProductDynamicRegisterRequest
- type UpdateProductDynamicRegisterRequestParams
- type UpdateProductDynamicRegisterResponse
- type UpdateProductDynamicRegisterResponseParams
Constants ¶
const ( // The operation failed as the account has been suspended due to overdue payments. FAILEDOPERATION_ACCOUNTISOLATED = "FailedOperation.AccountIsolated" // This device has been transferred and cannot be created again. FAILEDOPERATION_ALREADYDISTRIBUTIONDEVICE = "FailedOperation.AlreadyDistributionDevice" // 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" // An internal database error occurred. INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" // Parameter error. INVALIDPARAMETER = "InvalidParameter" // Invalid parameter value. INVALIDPARAMETERVALUE = "InvalidParameterValue" // Incorrect CA certificate content. 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" // This product name already exists. INVALIDPARAMETERVALUE_PRODUCTALREADYEXIST = "InvalidParameterValue.ProductAlreadyExist" // Unsupported product type. INVALIDPARAMETERVALUE_PRODUCTTYPENOTSUPPORT = "InvalidParameterValue.ProductTypeNotSupport" // This TID product already exists. INVALIDPARAMETERVALUE_TIDPRODUCTALREADYEXIST = "InvalidParameterValue.TidProductAlreadyExist" // Unable to operate because the CA certificate is already bound to a product. LIMITEXCEEDED_CAALREADYBINDPRODUCT = "LimitExceeded.CAAlreadyBindProduct" // The certificate name already exists. LIMITEXCEEDED_CACERTNAMEREPEAT = "LimitExceeded.CACertNameRepeat" // The CA certificate already exists. LIMITEXCEEDED_CAREPEAT = "LimitExceeded.CARepeat" // Device quantity exceeded the limit. LIMITEXCEEDED_DEVICEEXCEEDLIMIT = "LimitExceeded.DeviceExceedLimit" // The number of products exceeds the limit. LIMITEXCEEDED_PRODUCTEXCEEDLIMIT = "LimitExceeded.ProductExceedLimit" // The CA certificate does not exist. RESOURCENOTFOUND_CACERTNOTEXIST = "ResourceNotFound.CACertNotExist" // The device does not exist. RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist" // The device shadow does not exist. RESOURCENOTFOUND_DEVICESHADOWNOTEXIST = "ResourceNotFound.DeviceShadowNotExist" // The product does not exist. RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist" // The TSL model does not exist. RESOURCENOTFOUND_THINGMODELNOTEXIST = "ResourceNotFound.ThingModelNotExist" // There is already a TID application for this product, so it cannot be deleted. UNAUTHORIZEDOPERATION_DELETETIDFAIL = "UnauthorizedOperation.DeleteTidFail" // 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" // This feature has been disabled for the product. UNAUTHORIZEDOPERATION_PRODUCTISFORBIDDEN = "UnauthorizedOperation.ProductIsForbidden" // The product does not support key authentication. UNAUTHORIZEDOPERATION_PRODUCTNOTSUPPORTPSK = "UnauthorizedOperation.ProductNotSupportPSK" // The user identity is not verified. UNAUTHORIZEDOPERATION_USERNOTAUTHENTICAED = "UnauthorizedOperation.UserNotAuthenticaed" // 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" )
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,omitnil" name:"Tags"` }
type BindProductInfo ¶
type CertInfo ¶
type CertInfo struct { // Certificate name CertName *string `json:"CertName,omitnil" name:"CertName"` // Hex sequence number of a certificate CertSN *string `json:"CertSN,omitnil" name:"CertSN"` // Certificate issuer IssuerName *string `json:"IssuerName,omitnil" name:"IssuerName"` // Certificate subject Subject *string `json:"Subject,omitnil" name:"Subject"` // Certificate creation time (timestamp in milliseconds) CreateTime *uint64 `json:"CreateTime,omitnil" name:"CreateTime"` // Certificate effective time (timestamp in milliseconds) EffectiveTime *uint64 `json:"EffectiveTime,omitnil" name:"EffectiveTime"` // Certificate expiration time (timestamp in milliseconds) ExpireTime *uint64 `json:"ExpireTime,omitnil" name:"ExpireTime"` // X.509 certificate content CertText *string `json:"CertText,omitnil" name:"CertText"` }
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
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_ALREADYDISTRIBUTIONDEVICE = "FailedOperation.AlreadyDistributionDevice" FAILEDOPERATION_TIDWHITELISTNOTOPEN = "FailedOperation.TidWhiteListNotOpen" INTERNALERROR = "InternalError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" 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 ¶
func (c *Client) CreateDeviceWithContext(ctx context.Context, request *CreateDeviceRequest) (response *CreateDeviceResponse, err error)
CreateDevice This API is used to create an IoT Hub device.
error code that may be returned:
FAILEDOPERATION_ALREADYDISTRIBUTIONDEVICE = "FailedOperation.AlreadyDistributionDevice" FAILEDOPERATION_TIDWHITELISTNOTOPEN = "FailedOperation.TidWhiteListNotOpen" INTERNALERROR = "InternalError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" 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) 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:
INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INVALIDPARAMETERVALUE_CACERTINVALID = "InvalidParameterValue.CACertInvalid" INVALIDPARAMETERVALUE_CACERTNOTMATCH = "InvalidParameterValue.CACertNotMatch" LIMITEXCEEDED_CACERTNAMEREPEAT = "LimitExceeded.CACertNameRepeat" LIMITEXCEEDED_CAREPEAT = "LimitExceeded.CARepeat"
func (*Client) CreatePrivateCAWithContext ¶
func (c *Client) CreatePrivateCAWithContext(ctx context.Context, request *CreatePrivateCARequest) (response *CreatePrivateCAResponse, err error)
CreatePrivateCA This API is used to create a private CA certificate.
error code that may be returned:
INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INVALIDPARAMETERVALUE_CACERTINVALID = "InvalidParameterValue.CACertInvalid" INVALIDPARAMETERVALUE_CACERTNOTMATCH = "InvalidParameterValue.CACertNotMatch" LIMITEXCEEDED_CACERTNAMEREPEAT = "LimitExceeded.CACertNameRepeat" LIMITEXCEEDED_CAREPEAT = "LimitExceeded.CARepeat"
func (*Client) CreateProduct ¶
func (c *Client) CreateProduct(request *CreateProductRequest) (response *CreateProductResponse, err error)
CreateProduct This API is used to create a new IoT communication product.
error code that may be returned:
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 ¶
func (c *Client) CreateProductWithContext(ctx context.Context, request *CreateProductRequest) (response *CreateProductResponse, err error)
CreateProduct This API is used to create a new IoT communication product.
error code that may be returned:
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) 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" 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) DeleteDeviceShadow ¶
func (c *Client) DeleteDeviceShadow(request *DeleteDeviceShadowRequest) (response *DeleteDeviceShadowResponse, err error)
DeleteDeviceShadow This API is used to delete a device shadow.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND_DEVICESHADOWNOTEXIST = "ResourceNotFound.DeviceShadowNotExist"
func (*Client) DeleteDeviceShadowWithContext ¶
func (c *Client) DeleteDeviceShadowWithContext(ctx context.Context, request *DeleteDeviceShadowRequest) (response *DeleteDeviceShadowResponse, err error)
DeleteDeviceShadow This API is used to delete a device shadow.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND_DEVICESHADOWNOTEXIST = "ResourceNotFound.DeviceShadowNotExist"
func (*Client) DeleteDeviceWithContext ¶
func (c *Client) DeleteDeviceWithContext(ctx context.Context, 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" 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 This API is used to delete a private CA certificate.
error code that may be returned:
INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" LIMITEXCEEDED_CAALREADYBINDPRODUCT = "LimitExceeded.CAAlreadyBindProduct" RESOURCENOTFOUND_CACERTNOTEXIST = "ResourceNotFound.CACertNotExist"
func (*Client) DeletePrivateCAWithContext ¶
func (c *Client) DeletePrivateCAWithContext(ctx context.Context, request *DeletePrivateCARequest) (response *DeletePrivateCAResponse, err error)
DeletePrivateCA This API is used to delete a private CA certificate.
error code that may be returned:
INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" 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" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist" UNAUTHORIZEDOPERATION_DELETETIDFAIL = "UnauthorizedOperation.DeleteTidFail" UNAUTHORIZEDOPERATION_DEVICESEXISTUNDERPRODUCT = "UnauthorizedOperation.DevicesExistUnderProduct" UNSUPPORTEDOPERATION_GATEWAYPRODUCTHASBINDEDPRODUCT = "UnsupportedOperation.GatewayProductHasBindedProduct" UNSUPPORTEDOPERATION_PRODUCTHASBINDGATEWAY = "UnsupportedOperation.ProductHasBindGateway" UNSUPPORTEDOPERATION_PRODUCTHASBINDEDGATEWAYPRODUCT = "UnsupportedOperation.ProductHasBindedGatewayProduct"
func (*Client) DeleteProductWithContext ¶
func (c *Client) DeleteProductWithContext(ctx context.Context, 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" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist" UNAUTHORIZEDOPERATION_DELETETIDFAIL = "UnauthorizedOperation.DeleteTidFail" 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" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist" RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
func (*Client) DescribeDeviceWithContext ¶
func (c *Client) DescribeDeviceWithContext(ctx context.Context, request *DescribeDeviceRequest) (response *DescribeDeviceResponse, err error)
DescribeDevice This API is used to query device details.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" 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" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
func (*Client) DescribeDevicesWithContext ¶
func (c *Client) DescribeDevicesWithContext(ctx context.Context, 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" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" 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:
INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" 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:
INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError"
func (*Client) DescribePrivateCABindedProductsWithContext ¶
func (c *Client) DescribePrivateCABindedProductsWithContext(ctx context.Context, 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:
INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError"
func (*Client) DescribePrivateCAWithContext ¶
func (c *Client) DescribePrivateCAWithContext(ctx context.Context, request *DescribePrivateCARequest) (response *DescribePrivateCAResponse, err error)
DescribePrivateCA This API is used to query private CA certificate details.
error code that may be returned:
INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" 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:
INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError"
func (*Client) DescribePrivateCAsWithContext ¶
func (c *Client) DescribePrivateCAsWithContext(ctx context.Context, 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:
INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError"
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" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" 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" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
func (*Client) DescribeProductCAWithContext ¶
func (c *Client) DescribeProductCAWithContext(ctx context.Context, 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" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
func (*Client) DescribeProductWithContext ¶
func (c *Client) DescribeProductWithContext(ctx context.Context, request *DescribeProductRequest) (response *DescribeProductResponse, err error)
DescribeProduct This API is used to query product details.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INVALIDPARAMETERVALUE = "InvalidParameterValue" RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
func (*Client) DescribeProducts ¶
func (c *Client) DescribeProducts(request *DescribeProductsRequest) (response *DescribeProductsResponse, err error)
DescribeProducts This API is used to obtain the product list.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) DescribeProductsWithContext ¶
func (c *Client) DescribeProductsWithContext(ctx context.Context, request *DescribeProductsRequest) (response *DescribeProductsResponse, err error)
DescribeProducts This API is used to obtain the product list.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) SetProductsForbiddenStatus ¶
func (c *Client) SetProductsForbiddenStatus(request *SetProductsForbiddenStatusRequest) (response *SetProductsForbiddenStatusResponse, err error)
SetProductsForbiddenStatus This API is used to enable or disable multiple products at a time.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist"
func (*Client) SetProductsForbiddenStatusWithContext ¶
func (c *Client) SetProductsForbiddenStatusWithContext(ctx context.Context, request *SetProductsForbiddenStatusRequest) (response *SetProductsForbiddenStatusResponse, err error)
SetProductsForbiddenStatus This API is used to enable or disable multiple products at a time.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" 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" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist" UNAUTHORIZEDOPERATION_DEVICEISNOTENABLED = "UnauthorizedOperation.DeviceIsNotEnabled"
func (*Client) UpdateDeviceLogLevelWithContext ¶
func (c *Client) UpdateDeviceLogLevelWithContext(ctx context.Context, 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" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" 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" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INVALIDPARAMETERVALUE_PRODUCTTYPENOTSUPPORT = "InvalidParameterValue.ProductTypeNotSupport" RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist" RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist" UNAUTHORIZEDOPERATION_DEVICEHASALREADYBINDGATEWAY = "UnauthorizedOperation.DeviceHasAlreadyBindGateway" UNAUTHORIZEDOPERATION_PRODUCTISFORBIDDEN = "UnauthorizedOperation.ProductIsForbidden"
func (*Client) UpdateDevicesEnableStateWithContext ¶
func (c *Client) UpdateDevicesEnableStateWithContext(ctx context.Context, 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" INTERNALERROR_DBOPERATIONERROR = "InternalError.DBOperationError" INVALIDPARAMETERVALUE_PRODUCTTYPENOTSUPPORT = "InvalidParameterValue.ProductTypeNotSupport" RESOURCENOTFOUND_DEVICENOTEXIST = "ResourceNotFound.DeviceNotExist" RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist" UNAUTHORIZEDOPERATION_DEVICEHASALREADYBINDGATEWAY = "UnauthorizedOperation.DeviceHasAlreadyBindGateway" UNAUTHORIZEDOPERATION_PRODUCTISFORBIDDEN = "UnauthorizedOperation.ProductIsForbidden"
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:
INVALIDPARAMETERVALUE_CACERTINVALID = "InvalidParameterValue.CACertInvalid" INVALIDPARAMETERVALUE_CACERTNOTMATCH = "InvalidParameterValue.CACertNotMatch" LIMITEXCEEDED_CAREPEAT = "LimitExceeded.CARepeat" RESOURCENOTFOUND_CACERTNOTEXIST = "ResourceNotFound.CACertNotExist"
func (*Client) UpdatePrivateCAWithContext ¶
func (c *Client) UpdatePrivateCAWithContext(ctx context.Context, request *UpdatePrivateCARequest) (response *UpdatePrivateCAResponse, err error)
UpdatePrivateCA This API is used to update a private CA certificate.
error code that may be returned:
INVALIDPARAMETERVALUE_CACERTINVALID = "InvalidParameterValue.CACertInvalid" INVALIDPARAMETERVALUE_CACERTNOTMATCH = "InvalidParameterValue.CACertNotMatch" LIMITEXCEEDED_CAREPEAT = "LimitExceeded.CARepeat" RESOURCENOTFOUND_CACERTNOTEXIST = "ResourceNotFound.CACertNotExist"
func (*Client) UpdateProductDynamicRegister ¶
func (c *Client) UpdateProductDynamicRegister(request *UpdateProductDynamicRegisterRequest) (response *UpdateProductDynamicRegisterResponse, err error)
UpdateProductDynamicRegister This API is used to update the configuration of product dynamic registration.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_PRODUCTTYPENOTSUPPORT = "InvalidParameterValue.ProductTypeNotSupport" RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist" UNAUTHORIZEDOPERATION_PRODUCTISFORBIDDEN = "UnauthorizedOperation.ProductIsForbidden"
func (*Client) UpdateProductDynamicRegisterWithContext ¶
func (c *Client) UpdateProductDynamicRegisterWithContext(ctx context.Context, request *UpdateProductDynamicRegisterRequest) (response *UpdateProductDynamicRegisterResponse, err error)
UpdateProductDynamicRegister This API is used to update the configuration of product dynamic registration.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_PRODUCTTYPENOTSUPPORT = "InvalidParameterValue.ProductTypeNotSupport" RESOURCENOTFOUND_PRODUCTNOTEXIST = "ResourceNotFound.ProductNotExist" UNAUTHORIZEDOPERATION_PRODUCTISFORBIDDEN = "UnauthorizedOperation.ProductIsForbidden"
type CreateDeviceRequest ¶
type CreateDeviceRequest struct { *tchttp.BaseRequest // Product ID, globally unique ID assigned by Tencent Cloud during product creation ProductId *string `json:"ProductId,omitnil" name:"ProductId"` // Device name. It is a string of 1 to 48 characters. Letters, digits, and :_- are allowed. DeviceName *string `json:"DeviceName,omitnil" name:"DeviceName"` // Device attribute Attribute *Attribute `json:"Attribute,omitnil" name:"Attribute"` // Whether to use custom PSK, no by default DefinedPsk *string `json:"DefinedPsk,omitnil" name:"DefinedPsk"` // ISP, required for a NB-IoT product. `1`: China Telecom; `2`: China Mobile; `3`: China Unicom Isp *uint64 `json:"Isp,omitnil" name:"Isp"` // IMEI, required for a NB-IoT product Imei *string `json:"Imei,omitnil" name:"Imei"` // DevEUI of a LoRa device, required when you create a LoRa device LoraDevEui *string `json:"LoraDevEui,omitnil" name:"LoraDevEui"` // MoteType of a LoRa device LoraMoteType *uint64 `json:"LoraMoteType,omitnil" name:"LoraMoteType"` // Skey, required when you create a LoRa device Skey *string `json:"Skey,omitnil" name:"Skey"` // AppKey of a LoRa device LoraAppKey *string `json:"LoraAppKey,omitnil" name:"LoraAppKey"` // Private CA certificate TlsCrt *string `json:"TlsCrt,omitnil" 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 CreateDeviceRequestParams ¶
type CreateDeviceRequestParams struct { // Product ID, globally unique ID assigned by Tencent Cloud during product creation ProductId *string `json:"ProductId,omitnil" name:"ProductId"` // Device name. It is a string of 1 to 48 characters. Letters, digits, and :_- are allowed. DeviceName *string `json:"DeviceName,omitnil" name:"DeviceName"` // Device attribute Attribute *Attribute `json:"Attribute,omitnil" name:"Attribute"` // Whether to use custom PSK, no by default DefinedPsk *string `json:"DefinedPsk,omitnil" name:"DefinedPsk"` // ISP, required for a NB-IoT product. `1`: China Telecom; `2`: China Mobile; `3`: China Unicom Isp *uint64 `json:"Isp,omitnil" name:"Isp"` // IMEI, required for a NB-IoT product Imei *string `json:"Imei,omitnil" name:"Imei"` // DevEUI of a LoRa device, required when you create a LoRa device LoraDevEui *string `json:"LoraDevEui,omitnil" name:"LoraDevEui"` // MoteType of a LoRa device LoraMoteType *uint64 `json:"LoraMoteType,omitnil" name:"LoraMoteType"` // Skey, required when you create a LoRa device Skey *string `json:"Skey,omitnil" name:"Skey"` // AppKey of a LoRa device LoraAppKey *string `json:"LoraAppKey,omitnil" name:"LoraAppKey"` // Private CA certificate TlsCrt *string `json:"TlsCrt,omitnil" name:"TlsCrt"` }
Predefined struct for user
type CreateDeviceResponse ¶
type CreateDeviceResponse struct { *tchttp.BaseResponse Response *CreateDeviceResponseParams `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 CreateDeviceResponseParams ¶
type CreateDeviceResponseParams struct { // Device name DeviceName *string `json:"DeviceName,omitnil" name:"DeviceName"` // Base64-encoded symmetric encryption key, which is returned if symmetric encryption is used DevicePsk *string `json:"DevicePsk,omitnil" name:"DevicePsk"` // Device certificate, which authenticates client identity during TLS connection establishment and is returned if asymmetric encryption is used DeviceCert *string `json:"DeviceCert,omitnil" 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,omitnil" name:"DevicePrivateKey"` // DevEUI of a LoRa device, which is returned for a LoRa device LoraDevEui *string `json:"LoraDevEui,omitnil" name:"LoraDevEui"` // MoteType of a LoRa device, which is returned for a LoRa device LoraMoteType *uint64 `json:"LoraMoteType,omitnil" name:"LoraMoteType"` // AppKey of a LoRa device, which is returned for a LoRa device LoraAppKey *string `json:"LoraAppKey,omitnil" name:"LoraAppKey"` // NwkKey of a LoRa device, which is returned for a LoRa device LoraNwkKey *string `json:"LoraNwkKey,omitnil" name:"LoraNwkKey"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type CreatePrivateCARequest ¶
type CreatePrivateCARequest struct { *tchttp.BaseRequest // CA certificate name CertName *string `json:"CertName,omitnil" name:"CertName"` // CA certificate content CertText *string `json:"CertText,omitnil" name:"CertText"` // Content verifying the CA certificate VerifyCertText *string `json:"VerifyCertText,omitnil" 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 CreatePrivateCARequestParams ¶
type CreatePrivateCARequestParams struct { // CA certificate name CertName *string `json:"CertName,omitnil" name:"CertName"` // CA certificate content CertText *string `json:"CertText,omitnil" name:"CertText"` // Content verifying the CA certificate VerifyCertText *string `json:"VerifyCertText,omitnil" name:"VerifyCertText"` }
Predefined struct for user
type CreatePrivateCAResponse ¶
type CreatePrivateCAResponse struct { *tchttp.BaseResponse Response *CreatePrivateCAResponseParams `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 CreatePrivateCAResponseParams ¶
type CreatePrivateCAResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type CreateProductRequest ¶
type CreateProductRequest struct { *tchttp.BaseRequest // Product name, which cannot be same as that of an existing product. Naming rule: [a-zA-Z0-9:_-]{1,32}. ProductName *string `json:"ProductName,omitnil" name:"ProductName"` // Product properties ProductProperties *ProductProperties `json:"ProductProperties,omitnil" name:"ProductProperties"` // Skey, which is required to create a CLAA product. Skey *string `json:"Skey,omitnil" name:"Skey"` }
func NewCreateProductRequest ¶
func NewCreateProductRequest() (request *CreateProductRequest)
func (*CreateProductRequest) FromJsonString ¶
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 ¶
func (r *CreateProductRequest) ToJsonString() string
type CreateProductRequestParams ¶
type CreateProductRequestParams struct { // Product name, which cannot be same as that of an existing product. Naming rule: [a-zA-Z0-9:_-]{1,32}. ProductName *string `json:"ProductName,omitnil" name:"ProductName"` // Product properties ProductProperties *ProductProperties `json:"ProductProperties,omitnil" name:"ProductProperties"` // Skey, which is required to create a CLAA product. Skey *string `json:"Skey,omitnil" name:"Skey"` }
Predefined struct for user
type CreateProductResponse ¶
type CreateProductResponse struct { *tchttp.BaseResponse Response *CreateProductResponseParams `json:"Response"` }
func NewCreateProductResponse ¶
func NewCreateProductResponse() (response *CreateProductResponse)
func (*CreateProductResponse) FromJsonString ¶
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 ¶
func (r *CreateProductResponse) ToJsonString() string
type CreateProductResponseParams ¶
type CreateProductResponseParams struct { // Product name ProductName *string `json:"ProductName,omitnil" name:"ProductName"` // Product ID, the globally unique ID assigned by Tencent Cloud. ProductId *string `json:"ProductId,omitnil" name:"ProductId"` // Product properties ProductProperties *ProductProperties `json:"ProductProperties,omitnil" name:"ProductProperties"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DeleteDeviceRequest ¶
type DeleteDeviceRequest struct { *tchttp.BaseRequest // ID of the product to which the device belongs ProductId *string `json:"ProductId,omitnil" name:"ProductId"` // Name of the device to delete DeviceName *string `json:"DeviceName,omitnil" name:"DeviceName"` // Skey, which is required to delete a LoRa device or LoRa gateway device Skey *string `json:"Skey,omitnil" 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 DeleteDeviceRequestParams ¶
type DeleteDeviceRequestParams struct { // ID of the product to which the device belongs ProductId *string `json:"ProductId,omitnil" name:"ProductId"` // Name of the device to delete DeviceName *string `json:"DeviceName,omitnil" name:"DeviceName"` // Skey, which is required to delete a LoRa device or LoRa gateway device Skey *string `json:"Skey,omitnil" name:"Skey"` }
Predefined struct for user
type DeleteDeviceResponse ¶
type DeleteDeviceResponse struct { *tchttp.BaseResponse Response *DeleteDeviceResponseParams `json:"Response"` }
func NewDeleteDeviceResponse ¶
func NewDeleteDeviceResponse() (response *DeleteDeviceResponse)
func (*DeleteDeviceResponse) FromJsonString ¶
func (r *DeleteDeviceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteDeviceResponse) ToJsonString ¶
func (r *DeleteDeviceResponse) ToJsonString() string
type DeleteDeviceResponseParams ¶
type DeleteDeviceResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DeleteDeviceShadowRequest ¶
type DeleteDeviceShadowRequest struct { *tchttp.BaseRequest // Product ID ProductId *string `json:"ProductId,omitnil" name:"ProductId"` // Device name DeviceName *string `json:"DeviceName,omitnil" name:"DeviceName"` }
func NewDeleteDeviceShadowRequest ¶
func NewDeleteDeviceShadowRequest() (request *DeleteDeviceShadowRequest)
func (*DeleteDeviceShadowRequest) FromJsonString ¶
func (r *DeleteDeviceShadowRequest) 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 (*DeleteDeviceShadowRequest) ToJsonString ¶
func (r *DeleteDeviceShadowRequest) ToJsonString() string
type DeleteDeviceShadowRequestParams ¶
type DeleteDeviceShadowRequestParams struct { // Product ID ProductId *string `json:"ProductId,omitnil" name:"ProductId"` // Device name DeviceName *string `json:"DeviceName,omitnil" name:"DeviceName"` }
Predefined struct for user
type DeleteDeviceShadowResponse ¶
type DeleteDeviceShadowResponse struct { *tchttp.BaseResponse Response *DeleteDeviceShadowResponseParams `json:"Response"` }
func NewDeleteDeviceShadowResponse ¶
func NewDeleteDeviceShadowResponse() (response *DeleteDeviceShadowResponse)
func (*DeleteDeviceShadowResponse) FromJsonString ¶
func (r *DeleteDeviceShadowResponse) 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 (*DeleteDeviceShadowResponse) ToJsonString ¶
func (r *DeleteDeviceShadowResponse) ToJsonString() string
type DeleteDeviceShadowResponseParams ¶
type DeleteDeviceShadowResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DeletePrivateCARequest ¶
type DeletePrivateCARequest struct { *tchttp.BaseRequest // Private CA certificate name CertName *string `json:"CertName,omitnil" 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 DeletePrivateCARequestParams ¶
type DeletePrivateCARequestParams struct { // Private CA certificate name CertName *string `json:"CertName,omitnil" name:"CertName"` }
Predefined struct for user
type DeletePrivateCAResponse ¶
type DeletePrivateCAResponse struct { *tchttp.BaseResponse Response *DeletePrivateCAResponseParams `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 DeletePrivateCAResponseParams ¶
type DeletePrivateCAResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DeleteProductRequest ¶
type DeleteProductRequest struct { *tchttp.BaseRequest // ID of the product to delete ProductId *string `json:"ProductId,omitnil" name:"ProductId"` // Skey, which is required to delete a LoRa product Skey *string `json:"Skey,omitnil" 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 DeleteProductRequestParams ¶
type DeleteProductRequestParams struct { // ID of the product to delete ProductId *string `json:"ProductId,omitnil" name:"ProductId"` // Skey, which is required to delete a LoRa product Skey *string `json:"Skey,omitnil" name:"Skey"` }
Predefined struct for user
type DeleteProductResponse ¶
type DeleteProductResponse struct { *tchttp.BaseResponse Response *DeleteProductResponseParams `json:"Response"` }
func NewDeleteProductResponse ¶
func NewDeleteProductResponse() (response *DeleteProductResponse)
func (*DeleteProductResponse) FromJsonString ¶
func (r *DeleteProductResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteProductResponse) ToJsonString ¶
func (r *DeleteProductResponse) ToJsonString() string
type DeleteProductResponseParams ¶
type DeleteProductResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeDeviceRequest ¶
type DescribeDeviceRequest struct { *tchttp.BaseRequest // Product ID ProductId *string `json:"ProductId,omitnil" name:"ProductId"` // Device name DeviceName *string `json:"DeviceName,omitnil" 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 DescribeDeviceRequestParams ¶
type DescribeDeviceRequestParams struct { // Product ID ProductId *string `json:"ProductId,omitnil" name:"ProductId"` // Device name DeviceName *string `json:"DeviceName,omitnil" name:"DeviceName"` }
Predefined struct for user
type DescribeDeviceResponse ¶
type DescribeDeviceResponse struct { *tchttp.BaseResponse Response *DescribeDeviceResponseParams `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 DescribeDeviceResponseParams ¶
type DescribeDeviceResponseParams struct { // Device name DeviceName *string `json:"DeviceName,omitnil" name:"DeviceName"` // Whether the device is online. `0`: offline; `1`: online Online *uint64 `json:"Online,omitnil" name:"Online"` // Device login time LoginTime *uint64 `json:"LoginTime,omitnil" name:"LoginTime"` // Device firmware version Version *string `json:"Version,omitnil" name:"Version"` // Last updated time of the device LastUpdateTime *uint64 `json:"LastUpdateTime,omitnil" name:"LastUpdateTime"` // Device certificate DeviceCert *string `json:"DeviceCert,omitnil" name:"DeviceCert"` // Device key DevicePsk *string `json:"DevicePsk,omitnil" name:"DevicePsk"` // Device attribute Tags []*DeviceTag `json:"Tags,omitnil" name:"Tags"` // Device type DeviceType *uint64 `json:"DeviceType,omitnil" name:"DeviceType"` // International Mobile Equipment Identity (IMEI) Imei *string `json:"Imei,omitnil" name:"Imei"` // ISP Isp *uint64 `json:"Isp,omitnil" name:"Isp"` // IP address ConnIP *uint64 `json:"ConnIP,omitnil" name:"ConnIP"` // Device ID at the NB-IoT ISP NbiotDeviceID *string `json:"NbiotDeviceID,omitnil" name:"NbiotDeviceID"` // DevEUI of a LoRa device LoraDevEui *string `json:"LoraDevEui,omitnil" name:"LoraDevEui"` // MoteType of a LoRa device LoraMoteType *uint64 `json:"LoraMoteType,omitnil" 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,omitnil" 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,omitnil" 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,omitnil" name:"LastOfflineTime"` // Device creation time // Note: this field may return `null`, indicating that no valid value is obtained. CreateTime *uint64 `json:"CreateTime,omitnil" 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,omitnil" name:"CertState"` // Whether the device is enabled // Note: this field may return `null`, indicating that no valid value is obtained. EnableState *uint64 `json:"EnableState,omitnil" name:"EnableState"` // Device tags // Note: this field may return `null`, indicating that no valid value is obtained. Labels []*DeviceLabel `json:"Labels,omitnil" 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,omitnil" 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,omitnil" name:"FirmwareUpdateTime"` // Account ID of the creator // Note: this field may return `null`, indicating that no valid values can be obtained. CreateUserId *uint64 `json:"CreateUserId,omitnil" name:"CreateUserId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeDevicesRequest ¶
type DescribeDevicesRequest struct { *tchttp.BaseRequest // ID of the product whose devices are queried ProductId *string `json:"ProductId,omitnil" name:"ProductId"` // Offset, which starts from 0 Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Page size. Value range: 10-250 Limit *uint64 `json:"Limit,omitnil" 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,omitnil" name:"FirmwareVersion"` // Device name to query DeviceName *string `json:"DeviceName,omitnil" 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,omitnil" 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 DescribeDevicesRequestParams ¶
type DescribeDevicesRequestParams struct { // ID of the product whose devices are queried ProductId *string `json:"ProductId,omitnil" name:"ProductId"` // Offset, which starts from 0 Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Page size. Value range: 10-250 Limit *uint64 `json:"Limit,omitnil" 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,omitnil" name:"FirmwareVersion"` // Device name to query DeviceName *string `json:"DeviceName,omitnil" 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,omitnil" name:"EnableState"` }
Predefined struct for user
type DescribeDevicesResponse ¶
type DescribeDevicesResponse struct { *tchttp.BaseResponse Response *DescribeDevicesResponseParams `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 DescribeDevicesResponseParams ¶
type DescribeDevicesResponseParams struct { // Total number of the devices returned TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // List of device details Devices []*DeviceInfo `json:"Devices,omitnil" name:"Devices"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribePrivateCABindedProductsRequest ¶
type DescribePrivateCABindedProductsRequest struct { *tchttp.BaseRequest // Certificate name CertName *string `json:"CertName,omitnil" name:"CertName"` // Offset for query Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Maximum number of records to return, which is 20 by default and cannot exceed 200 Limit *uint64 `json:"Limit,omitnil" name:"Limit"` }
func NewDescribePrivateCABindedProductsRequest ¶
func NewDescribePrivateCABindedProductsRequest() (request *DescribePrivateCABindedProductsRequest)
func (*DescribePrivateCABindedProductsRequest) FromJsonString ¶
func (r *DescribePrivateCABindedProductsRequest) 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 (*DescribePrivateCABindedProductsRequest) ToJsonString ¶
func (r *DescribePrivateCABindedProductsRequest) ToJsonString() string
type DescribePrivateCABindedProductsRequestParams ¶
type DescribePrivateCABindedProductsRequestParams struct { // Certificate name CertName *string `json:"CertName,omitnil" name:"CertName"` // Offset for query Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Maximum number of records to return, which is 20 by default and cannot exceed 200 Limit *uint64 `json:"Limit,omitnil" name:"Limit"` }
Predefined struct for user
type DescribePrivateCABindedProductsResponse ¶
type DescribePrivateCABindedProductsResponse struct { *tchttp.BaseResponse Response *DescribePrivateCABindedProductsResponseParams `json:"Response"` }
func NewDescribePrivateCABindedProductsResponse ¶
func NewDescribePrivateCABindedProductsResponse() (response *DescribePrivateCABindedProductsResponse)
func (*DescribePrivateCABindedProductsResponse) FromJsonString ¶
func (r *DescribePrivateCABindedProductsResponse) 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 (*DescribePrivateCABindedProductsResponse) ToJsonString ¶
func (r *DescribePrivateCABindedProductsResponse) ToJsonString() string
type DescribePrivateCABindedProductsResponseParams ¶
type DescribePrivateCABindedProductsResponseParams struct { // List of the products bound to the private CA certificate Products []*BindProductInfo `json:"Products,omitnil" name:"Products"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribePrivateCARequest ¶
type DescribePrivateCARequest struct { *tchttp.BaseRequest // Name of the private CA certificate to query CertName *string `json:"CertName,omitnil" 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 DescribePrivateCARequestParams ¶
type DescribePrivateCARequestParams struct { // Name of the private CA certificate to query CertName *string `json:"CertName,omitnil" name:"CertName"` }
Predefined struct for user
type DescribePrivateCAResponse ¶
type DescribePrivateCAResponse struct { *tchttp.BaseResponse Response *DescribePrivateCAResponseParams `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 DescribePrivateCAResponseParams ¶
type DescribePrivateCAResponseParams struct { // Details of the private CA certificate CA *CertInfo `json:"CA,omitnil" name:"CA"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
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 DescribePrivateCAsRequestParams ¶
type DescribePrivateCAsRequestParams struct { }
Predefined struct for user
type DescribePrivateCAsResponse ¶
type DescribePrivateCAsResponse struct { *tchttp.BaseResponse Response *DescribePrivateCAsResponseParams `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 DescribePrivateCAsResponseParams ¶
type DescribePrivateCAsResponseParams struct { // List of private CA certificates CAs []*CertInfo `json:"CAs,omitnil" name:"CAs"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeProductCARequest ¶
type DescribeProductCARequest struct { *tchttp.BaseRequest // Product ID ProductId *string `json:"ProductId,omitnil" 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 DescribeProductCARequestParams ¶
type DescribeProductCARequestParams struct { // Product ID ProductId *string `json:"ProductId,omitnil" name:"ProductId"` }
Predefined struct for user
type DescribeProductCAResponse ¶
type DescribeProductCAResponse struct { *tchttp.BaseResponse Response *DescribeProductCAResponseParams `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 DescribeProductCAResponseParams ¶
type DescribeProductCAResponseParams struct { // List of CA certificates bound to the product CAs []*CertInfo `json:"CAs,omitnil" name:"CAs"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeProductRequest ¶
type DescribeProductRequest struct { *tchttp.BaseRequest // Product ID ProductId *string `json:"ProductId,omitnil" 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 DescribeProductRequestParams ¶
type DescribeProductRequestParams struct { // Product ID ProductId *string `json:"ProductId,omitnil" name:"ProductId"` }
Predefined struct for user
type DescribeProductResponse ¶
type DescribeProductResponse struct { *tchttp.BaseResponse Response *DescribeProductResponseParams `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 DescribeProductResponseParams ¶
type DescribeProductResponseParams struct { // Product ID ProductId *string `json:"ProductId,omitnil" name:"ProductId"` // Product name ProductName *string `json:"ProductName,omitnil" name:"ProductName"` // Product metadata ProductMetadata *ProductMetadata `json:"ProductMetadata,omitnil" name:"ProductMetadata"` // Product properties ProductProperties *ProductProperties `json:"ProductProperties,omitnil" name:"ProductProperties"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeProductsRequest ¶
type DescribeProductsRequest struct { *tchttp.BaseRequest // Offset, starting from 0 Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Number of entries returned per page. Valid range: 10–250. Limit *uint64 `json:"Limit,omitnil" name:"Limit"` }
func NewDescribeProductsRequest ¶
func NewDescribeProductsRequest() (request *DescribeProductsRequest)
func (*DescribeProductsRequest) FromJsonString ¶
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 ¶
func (r *DescribeProductsRequest) ToJsonString() string
type DescribeProductsRequestParams ¶
type DescribeProductsRequestParams struct { // Offset, starting from 0 Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Number of entries returned per page. Valid range: 10–250. Limit *uint64 `json:"Limit,omitnil" name:"Limit"` }
Predefined struct for user
type DescribeProductsResponse ¶
type DescribeProductsResponse struct { *tchttp.BaseResponse Response *DescribeProductsResponseParams `json:"Response"` }
func NewDescribeProductsResponse ¶
func NewDescribeProductsResponse() (response *DescribeProductsResponse)
func (*DescribeProductsResponse) FromJsonString ¶
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 ¶
func (r *DescribeProductsResponse) ToJsonString() string
type DescribeProductsResponseParams ¶
type DescribeProductsResponseParams struct { // Total number of products TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // List of product details Products []*ProductInfo `json:"Products,omitnil" name:"Products"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DeviceInfo ¶
type DeviceInfo struct { // Device name DeviceName *string `json:"DeviceName,omitnil" name:"DeviceName"` // Whether the device is online. `0`: offline; `1`: online Online *uint64 `json:"Online,omitnil" name:"Online"` // Device login time LoginTime *uint64 `json:"LoginTime,omitnil" name:"LoginTime"` // Device version Version *string `json:"Version,omitnil" name:"Version"` // Device certificate, which is returned for devices that use certificates for authentication DeviceCert *string `json:"DeviceCert,omitnil" name:"DeviceCert"` // Device key, which is returned for devices that use keys for authentication DevicePsk *string `json:"DevicePsk,omitnil" name:"DevicePsk"` // Device attribute Tags []*DeviceTag `json:"Tags,omitnil" name:"Tags"` // Device type DeviceType *uint64 `json:"DeviceType,omitnil" name:"DeviceType"` // International Mobile Equipment Identity (IMEI) Imei *string `json:"Imei,omitnil" name:"Imei"` // ISP Isp *uint64 `json:"Isp,omitnil" name:"Isp"` // Device ID at the NB-IoT ISP NbiotDeviceID *string `json:"NbiotDeviceID,omitnil" name:"NbiotDeviceID"` // IP address ConnIP *uint64 `json:"ConnIP,omitnil" name:"ConnIP"` // Last updated time of the device LastUpdateTime *uint64 `json:"LastUpdateTime,omitnil" name:"LastUpdateTime"` // DevEUI of a LoRa device LoraDevEui *string `json:"LoraDevEui,omitnil" name:"LoraDevEui"` // MoteType of a LoRa device LoraMoteType *uint64 `json:"LoraMoteType,omitnil" 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,omitnil" 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,omitnil" name:"LastOfflineTime"` // Device creation time // Note: this field may return `null`, indicating that no valid value is obtained. CreateTime *uint64 `json:"CreateTime,omitnil" name:"CreateTime"` // Device log level // Note: this field may return `null`, indicating that no valid value is obtained. LogLevel *uint64 `json:"LogLevel,omitnil" 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,omitnil" 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,omitnil" name:"EnableState"` // Device tags // Note: this field may return `null`, indicating that no valid value is obtained. Labels []*DeviceLabel `json:"Labels,omitnil" 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,omitnil" name:"ClientIP"` // Time of last OTA update // Note: this field may return `null`, indicating that no valid value is obtained. FirmwareUpdateTime *uint64 `json:"FirmwareUpdateTime,omitnil" name:"FirmwareUpdateTime"` }
type DeviceLabel ¶
type DeviceTag ¶
type DeviceTag struct { // Attribute name Tag *string `json:"Tag,omitnil" name:"Tag"` // Attribute value type. `1`: integer; `2`: string Type *uint64 `json:"Type,omitnil" name:"Type"` // Attribute value Value *string `json:"Value,omitnil" name:"Value"` // Attribute description // Note: this field may return `null`, indicating that no valid value is obtained. Name *string `json:"Name,omitnil" name:"Name"` }
type ProductInfo ¶
type ProductInfo struct { // Product ID ProductId *string `json:"ProductId,omitnil" name:"ProductId"` // Product name ProductName *string `json:"ProductName,omitnil" name:"ProductName"` // Product metadata ProductMetadata *ProductMetadata `json:"ProductMetadata,omitnil" name:"ProductMetadata"` // Product properties ProductProperties *ProductProperties `json:"ProductProperties,omitnil" name:"ProductProperties"` }
type ProductMetadata ¶
type ProductMetadata struct { // Product creation time CreationDate *uint64 `json:"CreationDate,omitnil" name:"CreationDate"` }
type ProductProperties ¶
type ProductProperties struct { // Product description ProductDescription *string `json:"ProductDescription,omitnil" name:"ProductDescription"` // Authentication type. `1` (default): certificate; `2`: signature EncryptionType *string `json:"EncryptionType,omitnil" name:"EncryptionType"` // Product region. Valid value: `gz` (Guangzhou) Region *string `json:"Region,omitnil" name:"Region"` // Product type. Valid values: // `0` (default): general; `2`: NB-IoT; `3`: LoRa gateway; `4`: LoRa; `5`: general gateway ProductType *uint64 `json:"ProductType,omitnil" name:"ProductType"` // Data format. Valid values: `json` (default), `custom` Format *string `json:"Format,omitnil" name:"Format"` // Platform of the product. Default value: `0` Platform *string `json:"Platform,omitnil" name:"Platform"` // AppEUI at the LoRa product operator, required only for LoRa products Appeui *string `json:"Appeui,omitnil" name:"Appeui"` // ID of the Thing Specification Language (TSL) model bound to the product. `-1` means no models are bound. ModelId *string `json:"ModelId,omitnil" name:"ModelId"` // Name of the TSL model bound to the product ModelName *string `json:"ModelName,omitnil" name:"ModelName"` // Product key, which is specific to suite products ProductKey *string `json:"ProductKey,omitnil" name:"ProductKey"` // Dynamic registration type. `0`: disable; `1`: preset device names; `2`: generate device names dynamically RegisterType *uint64 `json:"RegisterType,omitnil" name:"RegisterType"` // Dynamic registration product key ProductSecret *string `json:"ProductSecret,omitnil" name:"ProductSecret"` // The maximum number of devices that can be dynamically created when `RegisterType` is set to `2` RegisterLimit *uint64 `json:"RegisterLimit,omitnil" name:"RegisterLimit"` // Original product ID of a transferred product. This parameter is empty for products that are not transferred. OriginProductId *string `json:"OriginProductId,omitnil" name:"OriginProductId"` // Private CA certificate name PrivateCAName *string `json:"PrivateCAName,omitnil" name:"PrivateCAName"` // Original user ID of a transferred product. This parameter is empty for products that are not transferred. OriginUserId *uint64 `json:"OriginUserId,omitnil" name:"OriginUserId"` }
type SetProductsForbiddenStatusRequest ¶
type SetProductsForbiddenStatusRequest struct { *tchttp.BaseRequest // List of products to enable or disable ProductId []*string `json:"ProductId,omitnil" name:"ProductId"` // `0`: enable; `1`: disable Status *uint64 `json:"Status,omitnil" name:"Status"` }
func NewSetProductsForbiddenStatusRequest ¶
func NewSetProductsForbiddenStatusRequest() (request *SetProductsForbiddenStatusRequest)
func (*SetProductsForbiddenStatusRequest) FromJsonString ¶
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 ¶
func (r *SetProductsForbiddenStatusRequest) ToJsonString() string
type SetProductsForbiddenStatusRequestParams ¶
type SetProductsForbiddenStatusRequestParams struct { // List of products to enable or disable ProductId []*string `json:"ProductId,omitnil" name:"ProductId"` // `0`: enable; `1`: disable Status *uint64 `json:"Status,omitnil" name:"Status"` }
Predefined struct for user
type SetProductsForbiddenStatusResponse ¶
type SetProductsForbiddenStatusResponse struct { *tchttp.BaseResponse Response *SetProductsForbiddenStatusResponseParams `json:"Response"` }
func NewSetProductsForbiddenStatusResponse ¶
func NewSetProductsForbiddenStatusResponse() (response *SetProductsForbiddenStatusResponse)
func (*SetProductsForbiddenStatusResponse) FromJsonString ¶
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 ¶
func (r *SetProductsForbiddenStatusResponse) ToJsonString() string
type SetProductsForbiddenStatusResponseParams ¶
type SetProductsForbiddenStatusResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type UpdateDeviceLogLevelRequest ¶
type UpdateDeviceLogLevelRequest struct { *tchttp.BaseRequest // Product ID ProductId *string `json:"ProductId,omitnil" name:"ProductId"` // Device name DeviceName *string `json:"DeviceName,omitnil" name:"DeviceName"` // Log level. `0`: disable; `1`: error; `2`: warning; `3`: information; `4`: debugging LogLevel *uint64 `json:"LogLevel,omitnil" 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 UpdateDeviceLogLevelRequestParams ¶
type UpdateDeviceLogLevelRequestParams struct { // Product ID ProductId *string `json:"ProductId,omitnil" name:"ProductId"` // Device name DeviceName *string `json:"DeviceName,omitnil" name:"DeviceName"` // Log level. `0`: disable; `1`: error; `2`: warning; `3`: information; `4`: debugging LogLevel *uint64 `json:"LogLevel,omitnil" name:"LogLevel"` }
Predefined struct for user
type UpdateDeviceLogLevelResponse ¶
type UpdateDeviceLogLevelResponse struct { *tchttp.BaseResponse Response *UpdateDeviceLogLevelResponseParams `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 UpdateDeviceLogLevelResponseParams ¶
type UpdateDeviceLogLevelResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type UpdateDevicesEnableStateRequest ¶
type UpdateDevicesEnableStateRequest struct { *tchttp.BaseRequest // ID of the product to which the device belongs ProductId *string `json:"ProductId,omitnil" name:"ProductId"` // Device names DeviceNames []*string `json:"DeviceNames,omitnil" name:"DeviceNames"` // New status of the devices. `0`: disabled; `1`: enabled Status *uint64 `json:"Status,omitnil" 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 UpdateDevicesEnableStateRequestParams ¶
type UpdateDevicesEnableStateRequestParams struct { // ID of the product to which the device belongs ProductId *string `json:"ProductId,omitnil" name:"ProductId"` // Device names DeviceNames []*string `json:"DeviceNames,omitnil" name:"DeviceNames"` // New status of the devices. `0`: disabled; `1`: enabled Status *uint64 `json:"Status,omitnil" name:"Status"` }
Predefined struct for user
type UpdateDevicesEnableStateResponse ¶
type UpdateDevicesEnableStateResponse struct { *tchttp.BaseResponse Response *UpdateDevicesEnableStateResponseParams `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 UpdateDevicesEnableStateResponseParams ¶
type UpdateDevicesEnableStateResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type UpdatePrivateCARequest ¶
type UpdatePrivateCARequest struct { *tchttp.BaseRequest // CA certificate name CertName *string `json:"CertName,omitnil" name:"CertName"` // CA certificate content CertText *string `json:"CertText,omitnil" name:"CertText"` // Content verifying the CA certificate VerifyCertText *string `json:"VerifyCertText,omitnil" 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 UpdatePrivateCARequestParams ¶
type UpdatePrivateCARequestParams struct { // CA certificate name CertName *string `json:"CertName,omitnil" name:"CertName"` // CA certificate content CertText *string `json:"CertText,omitnil" name:"CertText"` // Content verifying the CA certificate VerifyCertText *string `json:"VerifyCertText,omitnil" name:"VerifyCertText"` }
Predefined struct for user
type UpdatePrivateCAResponse ¶
type UpdatePrivateCAResponse struct { *tchttp.BaseResponse Response *UpdatePrivateCAResponseParams `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 UpdatePrivateCAResponseParams ¶
type UpdatePrivateCAResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type UpdateProductDynamicRegisterRequest ¶
type UpdateProductDynamicRegisterRequest struct { *tchttp.BaseRequest // Product ID ProductId *string `json:"ProductId,omitnil" name:"ProductId"` // Dynamic registration type. Valid values: 0 - disabled; 1 - pre-create device; 2 - auto-create device. RegisterType *uint64 `json:"RegisterType,omitnil" name:"RegisterType"` // Maximum dynamically registered devices RegisterLimit *uint64 `json:"RegisterLimit,omitnil" name:"RegisterLimit"` }
func NewUpdateProductDynamicRegisterRequest ¶
func NewUpdateProductDynamicRegisterRequest() (request *UpdateProductDynamicRegisterRequest)
func (*UpdateProductDynamicRegisterRequest) FromJsonString ¶
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 ¶
func (r *UpdateProductDynamicRegisterRequest) ToJsonString() string
type UpdateProductDynamicRegisterRequestParams ¶
type UpdateProductDynamicRegisterRequestParams struct { // Product ID ProductId *string `json:"ProductId,omitnil" name:"ProductId"` // Dynamic registration type. Valid values: 0 - disabled; 1 - pre-create device; 2 - auto-create device. RegisterType *uint64 `json:"RegisterType,omitnil" name:"RegisterType"` // Maximum dynamically registered devices RegisterLimit *uint64 `json:"RegisterLimit,omitnil" name:"RegisterLimit"` }
Predefined struct for user
type UpdateProductDynamicRegisterResponse ¶
type UpdateProductDynamicRegisterResponse struct { *tchttp.BaseResponse Response *UpdateProductDynamicRegisterResponseParams `json:"Response"` }
func NewUpdateProductDynamicRegisterResponse ¶
func NewUpdateProductDynamicRegisterResponse() (response *UpdateProductDynamicRegisterResponse)
func (*UpdateProductDynamicRegisterResponse) FromJsonString ¶
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 ¶
func (r *UpdateProductDynamicRegisterResponse) ToJsonString() string
type UpdateProductDynamicRegisterResponseParams ¶
type UpdateProductDynamicRegisterResponseParams struct { // Dynamic registration type. Valid values: 0 - disabled; 1 - pre-create device; 2 - auto-create device. RegisterType *uint64 `json:"RegisterType,omitnil" name:"RegisterType"` // Product key for dynamic registration ProductSecret *string `json:"ProductSecret,omitnil" name:"ProductSecret"` // Maximum dynamically registered devices RegisterLimit *uint64 `json:"RegisterLimit,omitnil" name:"RegisterLimit"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user