Documentation ¶
Index ¶
- type AddDeviceLinksRequest
- func NewAddDeviceLinksRequest(instanceId string, regionId string, parentId string) *AddDeviceLinksRequest
- func NewAddDeviceLinksRequestWithAllParams(instanceId string, regionId string, parentId string, productKey *string, ...) *AddDeviceLinksRequest
- func NewAddDeviceLinksRequestWithoutParam() *AddDeviceLinksRequest
- func (r AddDeviceLinksRequest) GetRegionId() string
- func (r *AddDeviceLinksRequest) SetChildren(children []string)
- func (r *AddDeviceLinksRequest) SetInstanceId(instanceId string)
- func (r *AddDeviceLinksRequest) SetParentId(parentId string)
- func (r *AddDeviceLinksRequest) SetProductKey(productKey string)
- func (r *AddDeviceLinksRequest) SetRegionId(regionId string)
- type AddDeviceLinksResponse
- type AddDeviceLinksResult
- type AddDeviceRequest
- func (r AddDeviceRequest) GetRegionId() string
- func (r *AddDeviceRequest) SetDescription(description string)
- func (r *AddDeviceRequest) SetDeviceName(deviceName string)
- func (r *AddDeviceRequest) SetInstanceId(instanceId string)
- func (r *AddDeviceRequest) SetManufacturer(manufacturer string)
- func (r *AddDeviceRequest) SetModel(model string)
- func (r *AddDeviceRequest) SetProductKey(productKey string)
- func (r *AddDeviceRequest) SetRegionId(regionId string)
- type AddDeviceResponse
- type AddDeviceResult
- type AddLooDeviceRequest
- func NewAddLooDeviceRequest(instanceId string, regionId string, preOrderId string, userPinParam string, ...) *AddLooDeviceRequest
- func NewAddLooDeviceRequestWithAllParams(instanceId string, regionId string, preOrderId string, userPinParam string, ...) *AddLooDeviceRequest
- func NewAddLooDeviceRequestWithoutParam() *AddLooDeviceRequest
- func (r AddLooDeviceRequest) GetRegionId() string
- func (r *AddLooDeviceRequest) SetDescription(description string)
- func (r *AddLooDeviceRequest) SetDeviceName(deviceName string)
- func (r *AddLooDeviceRequest) SetDeviceType(deviceType string)
- func (r *AddLooDeviceRequest) SetIdentifier(identifier string)
- func (r *AddLooDeviceRequest) SetInstanceId(instanceId string)
- func (r *AddLooDeviceRequest) SetManufacturer(manufacturer string)
- func (r *AddLooDeviceRequest) SetModel(model string)
- func (r *AddLooDeviceRequest) SetPreOrderId(preOrderId string)
- func (r *AddLooDeviceRequest) SetProductKey(productKey string)
- func (r *AddLooDeviceRequest) SetRegionId(regionId string)
- func (r *AddLooDeviceRequest) SetUserPinParam(userPinParam string)
- type AddLooDeviceResponse
- type AddLooDeviceResult
- type CollectorReadMessageRequest
- func NewCollectorReadMessageRequest(instanceId string, regionId string, identifier string, protocol string) *CollectorReadMessageRequest
- func NewCollectorReadMessageRequestWithAllParams(instanceId string, regionId string, identifier string, protocol string) *CollectorReadMessageRequest
- func NewCollectorReadMessageRequestWithoutParam() *CollectorReadMessageRequest
- func (r CollectorReadMessageRequest) GetRegionId() string
- func (r *CollectorReadMessageRequest) SetIdentifier(identifier string)
- func (r *CollectorReadMessageRequest) SetInstanceId(instanceId string)
- func (r *CollectorReadMessageRequest) SetProtocol(protocol string)
- func (r *CollectorReadMessageRequest) SetRegionId(regionId string)
- type CollectorReadMessageResponse
- type CollectorReadMessageResult
- type CollectorWriteMessageRequest
- func NewCollectorWriteMessageRequest(instanceId string, regionId string, identifier string, data interface{}) *CollectorWriteMessageRequest
- func NewCollectorWriteMessageRequestWithAllParams(instanceId string, regionId string, identifier string, protocol *string, ...) *CollectorWriteMessageRequest
- func NewCollectorWriteMessageRequestWithoutParam() *CollectorWriteMessageRequest
- func (r CollectorWriteMessageRequest) GetRegionId() string
- func (r *CollectorWriteMessageRequest) SetData(data interface{})
- func (r *CollectorWriteMessageRequest) SetIdentifier(identifier string)
- func (r *CollectorWriteMessageRequest) SetInstanceId(instanceId string)
- func (r *CollectorWriteMessageRequest) SetProtocol(protocol string)
- func (r *CollectorWriteMessageRequest) SetRegionId(regionId string)
- type CollectorWriteMessageResponse
- type CollectorWriteMessageResult
- type CreateAdminProductRequest
- func NewCreateAdminProductRequest(regionId string, instanceId string, productName string, productType int) *CreateAdminProductRequest
- func NewCreateAdminProductRequestWithAllParams(regionId string, instanceId string, productName string, productType int, ...) *CreateAdminProductRequest
- func NewCreateAdminProductRequestWithoutParam() *CreateAdminProductRequest
- func (r CreateAdminProductRequest) GetRegionId() string
- func (r *CreateAdminProductRequest) SetInstanceId(instanceId string)
- func (r *CreateAdminProductRequest) SetInternalTags(internalTags interface{})
- func (r *CreateAdminProductRequest) SetProductDescription(productDescription string)
- func (r *CreateAdminProductRequest) SetProductName(productName string)
- func (r *CreateAdminProductRequest) SetProductType(productType int)
- func (r *CreateAdminProductRequest) SetRegionId(regionId string)
- func (r *CreateAdminProductRequest) SetTemplateId(templateId string)
- type CreateAdminProductResponse
- type CreateAdminProductResult
- type CreateProductRequest
- func NewCreateProductRequest(regionId string, instanceId string, productName string, productType int) *CreateProductRequest
- func NewCreateProductRequestWithAllParams(regionId string, instanceId string, productName string, productType int, ...) *CreateProductRequest
- func NewCreateProductRequestWithoutParam() *CreateProductRequest
- func (r CreateProductRequest) GetRegionId() string
- func (r *CreateProductRequest) SetInstanceId(instanceId string)
- func (r *CreateProductRequest) SetInternalTags(internalTags interface{})
- func (r *CreateProductRequest) SetProductDescription(productDescription string)
- func (r *CreateProductRequest) SetProductName(productName string)
- func (r *CreateProductRequest) SetProductType(productType int)
- func (r *CreateProductRequest) SetRegionId(regionId string)
- func (r *CreateProductRequest) SetTemplateId(templateId string)
- type CreateProductResponse
- type CreateProductResult
- type CreateProductTopicRequest
- func NewCreateProductTopicRequest(regionId string, instanceId string, productKey string, topicShortName string, ...) *CreateProductTopicRequest
- func NewCreateProductTopicRequestWithAllParams(regionId string, instanceId string, productKey string, topicShortName string, ...) *CreateProductTopicRequest
- func NewCreateProductTopicRequestWithoutParam() *CreateProductTopicRequest
- func (r CreateProductTopicRequest) GetRegionId() string
- func (r *CreateProductTopicRequest) SetInstanceId(instanceId string)
- func (r *CreateProductTopicRequest) SetProductKey(productKey string)
- func (r *CreateProductTopicRequest) SetRegionId(regionId string)
- func (r *CreateProductTopicRequest) SetTopicDescription(topicDescription string)
- func (r *CreateProductTopicRequest) SetTopicOperation(topicOperation string)
- func (r *CreateProductTopicRequest) SetTopicShortName(topicShortName string)
- type CreateProductTopicResponse
- type CreateProductTopicResult
- type DeleteDeviceRequest
- type DeleteDeviceResponse
- type DeleteDeviceResult
- type DeleteProductRequest
- type DeleteProductResponse
- type DeleteProductResult
- type DeleteProductWithAdminRequest
- func NewDeleteProductWithAdminRequest(regionId string, instanceId string, productKey string) *DeleteProductWithAdminRequest
- func NewDeleteProductWithAdminRequestWithAllParams(regionId string, instanceId string, productKey string) *DeleteProductWithAdminRequest
- func NewDeleteProductWithAdminRequestWithoutParam() *DeleteProductWithAdminRequest
- type DeleteProductWithAdminResponse
- type DeleteProductWithAdminResult
- type DescribeProductRequest
- func NewDescribeProductRequest(regionId string, instanceId string, productKey string) *DescribeProductRequest
- func NewDescribeProductRequestWithAllParams(regionId string, instanceId string, productKey string) *DescribeProductRequest
- func NewDescribeProductRequestWithoutParam() *DescribeProductRequest
- type DescribeProductResponse
- type DescribeProductResult
- type DescribeProductTopicRequest
- func NewDescribeProductTopicRequest(regionId string, instanceId string, productKey string, topicId string) *DescribeProductTopicRequest
- func NewDescribeProductTopicRequestWithAllParams(regionId string, instanceId string, productKey string, topicId string) *DescribeProductTopicRequest
- func NewDescribeProductTopicRequestWithoutParam() *DescribeProductTopicRequest
- func (r DescribeProductTopicRequest) GetRegionId() string
- func (r *DescribeProductTopicRequest) SetInstanceId(instanceId string)
- func (r *DescribeProductTopicRequest) SetProductKey(productKey string)
- func (r *DescribeProductTopicRequest) SetRegionId(regionId string)
- func (r *DescribeProductTopicRequest) SetTopicId(topicId string)
- type DescribeProductTopicResponse
- type DescribeProductTopicResult
- type DescribeProductTopicsRequest
- func NewDescribeProductTopicsRequest(regionId string, instanceId string, productKey string) *DescribeProductTopicsRequest
- func NewDescribeProductTopicsRequestWithAllParams(regionId string, instanceId string, productKey string, pageNumber *int, ...) *DescribeProductTopicsRequest
- func NewDescribeProductTopicsRequestWithoutParam() *DescribeProductTopicsRequest
- func (r DescribeProductTopicsRequest) GetRegionId() string
- func (r *DescribeProductTopicsRequest) SetFilters(filters []common.Filter)
- func (r *DescribeProductTopicsRequest) SetInstanceId(instanceId string)
- func (r *DescribeProductTopicsRequest) SetPageNumber(pageNumber int)
- func (r *DescribeProductTopicsRequest) SetPageSize(pageSize int)
- func (r *DescribeProductTopicsRequest) SetProductKey(productKey string)
- func (r *DescribeProductTopicsRequest) SetRegionId(regionId string)
- type DescribeProductTopicsResponse
- type DescribeProductTopicsResult
- type DescribeProductWithAdminRequest
- func NewDescribeProductWithAdminRequest(regionId string, instanceId string, productKey string) *DescribeProductWithAdminRequest
- func NewDescribeProductWithAdminRequestWithAllParams(regionId string, instanceId string, productKey string) *DescribeProductWithAdminRequest
- func NewDescribeProductWithAdminRequestWithoutParam() *DescribeProductWithAdminRequest
- type DescribeProductWithAdminResponse
- type DescribeProductWithAdminResult
- type DescribeThingModelRequest
- func NewDescribeThingModelRequest(regionId string, instanceId string, thingModelId string) *DescribeThingModelRequest
- func NewDescribeThingModelRequestWithAllParams(regionId string, instanceId string, thingModelId string, ...) *DescribeThingModelRequest
- func NewDescribeThingModelRequestWithoutParam() *DescribeThingModelRequest
- func (r DescribeThingModelRequest) GetRegionId() string
- func (r *DescribeThingModelRequest) SetInstanceId(instanceId string)
- func (r *DescribeThingModelRequest) SetRegionId(regionId string)
- func (r *DescribeThingModelRequest) SetThingModelId(thingModelId string)
- func (r *DescribeThingModelRequest) SetThingModelVersion(thingModelVersion string)
- type DescribeThingModelResponse
- type DescribeThingModelResult
- type DescribeThingShadowRequest
- func NewDescribeThingShadowRequest(instanceId string, regionId string, identifier string, productKey string) *DescribeThingShadowRequest
- func NewDescribeThingShadowRequestWithAllParams(instanceId string, regionId string, identifier string, productKey string) *DescribeThingShadowRequest
- func NewDescribeThingShadowRequestWithoutParam() *DescribeThingShadowRequest
- func (r DescribeThingShadowRequest) GetRegionId() string
- func (r *DescribeThingShadowRequest) SetIdentifier(identifier string)
- func (r *DescribeThingShadowRequest) SetInstanceId(instanceId string)
- func (r *DescribeThingShadowRequest) SetProductKey(productKey string)
- func (r *DescribeThingShadowRequest) SetRegionId(regionId string)
- type DescribeThingShadowResponse
- type DescribeThingShadowResult
- type DevicePropertySetRequest
- func NewDevicePropertySetRequest(regionId string, instanceId string, devicePropertyVO *iotcore.DevicePropertyVO) *DevicePropertySetRequest
- func NewDevicePropertySetRequestWithAllParams(regionId string, instanceId string, devicePropertyVO *iotcore.DevicePropertyVO) *DevicePropertySetRequest
- func NewDevicePropertySetRequestWithoutParam() *DevicePropertySetRequest
- type DevicePropertySetResponse
- type DevicePropertySetResult
- type DeviceQueryRequest
- type DeviceQueryResponse
- type DeviceQueryResult
- type DeviceRegisterRequest
- func NewDeviceRegisterRequest(regionId string, instanceId string, deviceInfoVO *iotcore.DeviceInfoVO) *DeviceRegisterRequest
- func NewDeviceRegisterRequestWithAllParams(regionId string, instanceId string, deviceInfoVO *iotcore.DeviceInfoVO) *DeviceRegisterRequest
- func NewDeviceRegisterRequestWithoutParam() *DeviceRegisterRequest
- type DeviceRegisterResponse
- type DeviceRegisterResult
- type DownloadCertificateRequest
- func NewDownloadCertificateRequest(regionId string, instanceId string, deviceId string) *DownloadCertificateRequest
- func NewDownloadCertificateRequestWithAllParams(regionId string, instanceId string, deviceId string) *DownloadCertificateRequest
- func NewDownloadCertificateRequestWithoutParam() *DownloadCertificateRequest
- type DownloadCertificateResponse
- type DownloadCertificateResult
- type ElevatorOperatingStatusRequest
- func NewElevatorOperatingStatusRequest(instanceId string, regionId string) *ElevatorOperatingStatusRequest
- func NewElevatorOperatingStatusRequestWithAllParams(instanceId string, regionId string, identifier *string) *ElevatorOperatingStatusRequest
- func NewElevatorOperatingStatusRequestWithoutParam() *ElevatorOperatingStatusRequest
- type ElevatorOperatingStatusResponse
- type ElevatorOperatingStatusResult
- type EventListRequest
- type EventListResponse
- type EventListResult
- type ExportThingModelRequest
- func NewExportThingModelRequest(regionId string, instanceId string, productKey string) *ExportThingModelRequest
- func NewExportThingModelRequestWithAllParams(regionId string, instanceId string, productKey string) *ExportThingModelRequest
- func NewExportThingModelRequestWithoutParam() *ExportThingModelRequest
- type ExportThingModelResponse
- type ExportThingModelResult
- type FunctionListRequest
- type FunctionListResponse
- type FunctionListResult
- type GetPropertySnapshotRequest
- func (r GetPropertySnapshotRequest) GetRegionId() string
- func (r *GetPropertySnapshotRequest) SetDeviceSnapshotRequestVO(deviceSnapshotRequestVO *iotcore.DeviceSnapshotRequestVO)
- func (r *GetPropertySnapshotRequest) SetInstanceId(instanceId string)
- func (r *GetPropertySnapshotRequest) SetRegionId(regionId string)
- type GetPropertySnapshotResponse
- type GetPropertySnapshotResult
- type ImportThingModelRequest
- func NewImportThingModelRequest(regionId string, instanceId string, productKey string, thingModel interface{}) *ImportThingModelRequest
- func NewImportThingModelRequestWithAllParams(regionId string, instanceId string, productKey string, thingModel interface{}) *ImportThingModelRequest
- func NewImportThingModelRequestWithoutParam() *ImportThingModelRequest
- func (r ImportThingModelRequest) GetRegionId() string
- func (r *ImportThingModelRequest) SetInstanceId(instanceId string)
- func (r *ImportThingModelRequest) SetProductKey(productKey string)
- func (r *ImportThingModelRequest) SetRegionId(regionId string)
- func (r *ImportThingModelRequest) SetThingModel(thingModel interface{})
- type ImportThingModelResponse
- type ImportThingModelResult
- type InvokeFunctionRequest
- func NewInvokeFunctionRequest(regionId string, instanceId string, deviceFunctionVO *iotcore.DeviceFunctionVO) *InvokeFunctionRequest
- func NewInvokeFunctionRequestWithAllParams(regionId string, instanceId string, deviceFunctionVO *iotcore.DeviceFunctionVO) *InvokeFunctionRequest
- func NewInvokeFunctionRequestWithoutParam() *InvokeFunctionRequest
- type InvokeFunctionResponse
- type InvokeFunctionResult
- type InvokeThingServiceRequest
- func NewInvokeThingServiceRequest(instanceId string, regionId string, identifier string, productKey string, ...) *InvokeThingServiceRequest
- func NewInvokeThingServiceRequestWithAllParams(instanceId string, regionId string, identifier string, productKey string, ...) *InvokeThingServiceRequest
- func NewInvokeThingServiceRequestWithoutParam() *InvokeThingServiceRequest
- func (r InvokeThingServiceRequest) GetRegionId() string
- func (r *InvokeThingServiceRequest) SetCallbackBeanName(callbackBeanName string)
- func (r *InvokeThingServiceRequest) SetIdentifier(identifier string)
- func (r *InvokeThingServiceRequest) SetInput(input interface{})
- func (r *InvokeThingServiceRequest) SetInstanceId(instanceId string)
- func (r *InvokeThingServiceRequest) SetName(name string)
- func (r *InvokeThingServiceRequest) SetProductKey(productKey string)
- func (r *InvokeThingServiceRequest) SetRegionId(regionId string)
- type InvokeThingServiceResponse
- type InvokeThingServiceResult
- type InvokeThingTopicRequest
- func NewInvokeThingTopicRequest(instanceId string, regionId string, identifier string, productKey string, ...) *InvokeThingTopicRequest
- func NewInvokeThingTopicRequestWithAllParams(instanceId string, regionId string, identifier string, productKey string, ...) *InvokeThingTopicRequest
- func NewInvokeThingTopicRequestWithoutParam() *InvokeThingTopicRequest
- func (r InvokeThingTopicRequest) GetRegionId() string
- func (r *InvokeThingTopicRequest) SetIdentifier(identifier string)
- func (r *InvokeThingTopicRequest) SetInstanceId(instanceId string)
- func (r *InvokeThingTopicRequest) SetProductKey(productKey string)
- func (r *InvokeThingTopicRequest) SetRegionId(regionId string)
- func (r *InvokeThingTopicRequest) SetTopicMessage(topicMessage string)
- func (r *InvokeThingTopicRequest) SetTopicShortName(topicShortName string)
- type InvokeThingTopicResponse
- type InvokeThingTopicResult
- type ListProductAbilitiesRequest
- func NewListProductAbilitiesRequest(regionId string, instanceId string, productKey string) *ListProductAbilitiesRequest
- func NewListProductAbilitiesRequestWithAllParams(regionId string, instanceId string, productKey string, pageNumber *int, ...) *ListProductAbilitiesRequest
- func NewListProductAbilitiesRequestWithoutParam() *ListProductAbilitiesRequest
- func (r ListProductAbilitiesRequest) GetRegionId() string
- func (r *ListProductAbilitiesRequest) SetFilters(filters []common.Filter)
- func (r *ListProductAbilitiesRequest) SetInstanceId(instanceId string)
- func (r *ListProductAbilitiesRequest) SetPageNumber(pageNumber int)
- func (r *ListProductAbilitiesRequest) SetPageSize(pageSize int)
- func (r *ListProductAbilitiesRequest) SetProductKey(productKey string)
- func (r *ListProductAbilitiesRequest) SetRegionId(regionId string)
- type ListProductAbilitiesResponse
- type ListProductAbilitiesResult
- type ListProductsRequest
- func (r ListProductsRequest) GetRegionId() string
- func (r *ListProductsRequest) SetFilters(filters []common.Filter)
- func (r *ListProductsRequest) SetInstanceId(instanceId string)
- func (r *ListProductsRequest) SetPageNumber(pageNumber int)
- func (r *ListProductsRequest) SetPageSize(pageSize int)
- func (r *ListProductsRequest) SetRegionId(regionId string)
- type ListProductsResponse
- type ListProductsResult
- type ListProductsWithAdminRequest
- func NewListProductsWithAdminRequest(regionId string, instanceId string) *ListProductsWithAdminRequest
- func NewListProductsWithAdminRequestWithAllParams(regionId string, instanceId string, pageNumber *int, pageSize *int, ...) *ListProductsWithAdminRequest
- func NewListProductsWithAdminRequestWithoutParam() *ListProductsWithAdminRequest
- func (r ListProductsWithAdminRequest) GetRegionId() string
- func (r *ListProductsWithAdminRequest) SetFilters(filters []common.Filter)
- func (r *ListProductsWithAdminRequest) SetInstanceId(instanceId string)
- func (r *ListProductsWithAdminRequest) SetPageNumber(pageNumber int)
- func (r *ListProductsWithAdminRequest) SetPageSize(pageSize int)
- func (r *ListProductsWithAdminRequest) SetRegionId(regionId string)
- type ListProductsWithAdminResponse
- type ListProductsWithAdminResult
- type LoongrayQueryPageRequest
- func NewLoongrayQueryPageRequest(instanceId string, regionId string) *LoongrayQueryPageRequest
- func NewLoongrayQueryPageRequestWithAllParams(instanceId string, regionId string, deviceName *string, status *int, ...) *LoongrayQueryPageRequest
- func NewLoongrayQueryPageRequestWithoutParam() *LoongrayQueryPageRequest
- func (r LoongrayQueryPageRequest) GetRegionId() string
- func (r *LoongrayQueryPageRequest) SetDeviceCollectorType(deviceCollectorType string)
- func (r *LoongrayQueryPageRequest) SetDeviceName(deviceName string)
- func (r *LoongrayQueryPageRequest) SetDeviceType(deviceType int)
- func (r *LoongrayQueryPageRequest) SetDirection(direction string)
- func (r *LoongrayQueryPageRequest) SetInstanceId(instanceId string)
- func (r *LoongrayQueryPageRequest) SetNowPage(nowPage int)
- func (r *LoongrayQueryPageRequest) SetOrder(order string)
- func (r *LoongrayQueryPageRequest) SetOrderId(orderId int)
- func (r *LoongrayQueryPageRequest) SetPageSize(pageSize int)
- func (r *LoongrayQueryPageRequest) SetParentId(parentId string)
- func (r *LoongrayQueryPageRequest) SetProductKey(productKey string)
- func (r *LoongrayQueryPageRequest) SetRegionId(regionId string)
- func (r *LoongrayQueryPageRequest) SetStatus(status int)
- type LoongrayQueryPageResponse
- type LoongrayQueryPageResult
- type PropertyAcquireRequest
- type PropertyAcquireResponse
- type PropertyAcquireResult
- type QueryAdminStatisticsRequest
- func NewQueryAdminStatisticsRequest(instanceId string, regionId string) *QueryAdminStatisticsRequest
- func NewQueryAdminStatisticsRequestWithAllParams(instanceId string, regionId string, productKey *string, parentId *string, ...) *QueryAdminStatisticsRequest
- func NewQueryAdminStatisticsRequestWithoutParam() *QueryAdminStatisticsRequest
- func (r QueryAdminStatisticsRequest) GetRegionId() string
- func (r *QueryAdminStatisticsRequest) SetDeviceCollectorType(deviceCollectorType string)
- func (r *QueryAdminStatisticsRequest) SetInstanceId(instanceId string)
- func (r *QueryAdminStatisticsRequest) SetParentId(parentId string)
- func (r *QueryAdminStatisticsRequest) SetProductKey(productKey string)
- func (r *QueryAdminStatisticsRequest) SetRegionId(regionId string)
- type QueryAdminStatisticsResponse
- type QueryAdminStatisticsResult
- type QueryDeviceDetailRequest
- func NewQueryDeviceDetailRequest(deviceName string, instanceId string, regionId string, productKey string) *QueryDeviceDetailRequest
- func NewQueryDeviceDetailRequestWithAllParams(deviceName string, instanceId string, regionId string, productKey string) *QueryDeviceDetailRequest
- func NewQueryDeviceDetailRequestWithoutParam() *QueryDeviceDetailRequest
- func (r QueryDeviceDetailRequest) GetRegionId() string
- func (r *QueryDeviceDetailRequest) SetDeviceName(deviceName string)
- func (r *QueryDeviceDetailRequest) SetInstanceId(instanceId string)
- func (r *QueryDeviceDetailRequest) SetProductKey(productKey string)
- func (r *QueryDeviceDetailRequest) SetRegionId(regionId string)
- type QueryDeviceDetailResponse
- type QueryDeviceDetailResult
- type QueryDevicePageRequest
- func NewQueryDevicePageRequest(instanceId string, regionId string) *QueryDevicePageRequest
- func NewQueryDevicePageRequestWithAllParams(instanceId string, regionId string, deviceName *string, status *int, ...) *QueryDevicePageRequest
- func NewQueryDevicePageRequestWithoutParam() *QueryDevicePageRequest
- func (r QueryDevicePageRequest) GetRegionId() string
- func (r *QueryDevicePageRequest) SetDeviceCollectorType(deviceCollectorType string)
- func (r *QueryDevicePageRequest) SetDeviceName(deviceName string)
- func (r *QueryDevicePageRequest) SetDeviceType(deviceType int)
- func (r *QueryDevicePageRequest) SetDirection(direction string)
- func (r *QueryDevicePageRequest) SetInstanceId(instanceId string)
- func (r *QueryDevicePageRequest) SetNowPage(nowPage int)
- func (r *QueryDevicePageRequest) SetOrder(order string)
- func (r *QueryDevicePageRequest) SetOrderId(orderId int)
- func (r *QueryDevicePageRequest) SetPageSize(pageSize int)
- func (r *QueryDevicePageRequest) SetParentId(parentId string)
- func (r *QueryDevicePageRequest) SetProductKey(productKey string)
- func (r *QueryDevicePageRequest) SetRegionId(regionId string)
- func (r *QueryDevicePageRequest) SetStatus(status int)
- type QueryDevicePageResponse
- type QueryDevicePageResult
- type ReadHoldingRegistersRequest
- func NewReadHoldingRegistersRequest(instanceId string, regionId string, identifier string, ...) *ReadHoldingRegistersRequest
- func NewReadHoldingRegistersRequestWithAllParams(instanceId string, regionId string, identifier string, ...) *ReadHoldingRegistersRequest
- func NewReadHoldingRegistersRequestWithoutParam() *ReadHoldingRegistersRequest
- func (r ReadHoldingRegistersRequest) GetRegionId() string
- func (r *ReadHoldingRegistersRequest) SetAddressOfFirstRegister(addressOfFirstRegister int)
- func (r *ReadHoldingRegistersRequest) SetIdentifier(identifier string)
- func (r *ReadHoldingRegistersRequest) SetInstanceId(instanceId string)
- func (r *ReadHoldingRegistersRequest) SetNumberOfRegisters(numberOfRegisters int)
- func (r *ReadHoldingRegistersRequest) SetRegionId(regionId string)
- type ReadHoldingRegistersResponse
- type ReadHoldingRegistersResult
- type RemoveDeviceRequest
- func NewRemoveDeviceRequest(deviceName string, instanceId string, regionId string, productKey string) *RemoveDeviceRequest
- func NewRemoveDeviceRequestWithAllParams(deviceName string, instanceId string, regionId string, productKey string) *RemoveDeviceRequest
- func NewRemoveDeviceRequestWithoutParam() *RemoveDeviceRequest
- type RemoveDeviceResponse
- type RemoveDeviceResult
- type RemoveLoongrayDeviceRequest
- func NewRemoveLoongrayDeviceRequest(deviceName string, instanceId string, regionId string, productKey string) *RemoveLoongrayDeviceRequest
- func NewRemoveLoongrayDeviceRequestWithAllParams(deviceName string, instanceId string, regionId string, productKey string) *RemoveLoongrayDeviceRequest
- func NewRemoveLoongrayDeviceRequestWithoutParam() *RemoveLoongrayDeviceRequest
- func (r RemoveLoongrayDeviceRequest) GetRegionId() string
- func (r *RemoveLoongrayDeviceRequest) SetDeviceName(deviceName string)
- func (r *RemoveLoongrayDeviceRequest) SetInstanceId(instanceId string)
- func (r *RemoveLoongrayDeviceRequest) SetProductKey(productKey string)
- func (r *RemoveLoongrayDeviceRequest) SetRegionId(regionId string)
- type RemoveLoongrayDeviceResponse
- type RemoveLoongrayDeviceResult
- type ThingTypeDescribeRequest
- type ThingTypeDescribeResponse
- type ThingTypeDescribeResult
- type ThingTypeListRequest
- func (r ThingTypeListRequest) GetRegionId() string
- func (r *ThingTypeListRequest) SetDeviceMetaId(deviceMetaId string)
- func (r *ThingTypeListRequest) SetDeviceMetaName(deviceMetaName string)
- func (r *ThingTypeListRequest) SetInstanceId(instanceId string)
- func (r *ThingTypeListRequest) SetNodeType(nodeType int)
- func (r *ThingTypeListRequest) SetPageNo(pageNo int)
- func (r *ThingTypeListRequest) SetPageSize(pageSize int)
- func (r *ThingTypeListRequest) SetRegionId(regionId string)
- type ThingTypeListResponse
- type ThingTypeListResult
- type UpdateDeviceRequest
- func (r UpdateDeviceRequest) GetRegionId() string
- func (r *UpdateDeviceRequest) SetDescription(description string)
- func (r *UpdateDeviceRequest) SetDeviceId(deviceId string)
- func (r *UpdateDeviceRequest) SetInstanceId(instanceId string)
- func (r *UpdateDeviceRequest) SetManufacturer(manufacturer string)
- func (r *UpdateDeviceRequest) SetModel(model string)
- func (r *UpdateDeviceRequest) SetRegionId(regionId string)
- func (r *UpdateDeviceRequest) SetStatus(status int)
- type UpdateDeviceResponse
- type UpdateDeviceResult
- type UpdateLooDeviceRequest
- func NewUpdateLooDeviceRequest(instanceId string, regionId string, deviceId string, deviceType string) *UpdateLooDeviceRequest
- func NewUpdateLooDeviceRequestWithAllParams(instanceId string, regionId string, deviceId string, model *string, ...) *UpdateLooDeviceRequest
- func NewUpdateLooDeviceRequestWithoutParam() *UpdateLooDeviceRequest
- func (r UpdateLooDeviceRequest) GetRegionId() string
- func (r *UpdateLooDeviceRequest) SetDescription(description string)
- func (r *UpdateLooDeviceRequest) SetDeviceId(deviceId string)
- func (r *UpdateLooDeviceRequest) SetDeviceName(deviceName string)
- func (r *UpdateLooDeviceRequest) SetDeviceType(deviceType string)
- func (r *UpdateLooDeviceRequest) SetIdentifier(identifier string)
- func (r *UpdateLooDeviceRequest) SetInstanceId(instanceId string)
- func (r *UpdateLooDeviceRequest) SetManufacturer(manufacturer string)
- func (r *UpdateLooDeviceRequest) SetModel(model string)
- func (r *UpdateLooDeviceRequest) SetRegionId(regionId string)
- func (r *UpdateLooDeviceRequest) SetStatus(status int)
- type UpdateLooDeviceResponse
- type UpdateLooDeviceResult
- type UpdateProductRequest
- func NewUpdateProductRequest(regionId string, instanceId string, productKey string) *UpdateProductRequest
- func NewUpdateProductRequestWithAllParams(regionId string, instanceId string, productKey string, productName *string, ...) *UpdateProductRequest
- func NewUpdateProductRequestWithoutParam() *UpdateProductRequest
- func (r UpdateProductRequest) GetRegionId() string
- func (r *UpdateProductRequest) SetDynamicRegister(dynamicRegister int)
- func (r *UpdateProductRequest) SetInstanceId(instanceId string)
- func (r *UpdateProductRequest) SetProductDescription(productDescription string)
- func (r *UpdateProductRequest) SetProductKey(productKey string)
- func (r *UpdateProductRequest) SetProductName(productName string)
- func (r *UpdateProductRequest) SetRegionId(regionId string)
- type UpdateProductResponse
- type UpdateProductResult
- type UpdateProductWithAdminRequest
- func NewUpdateProductWithAdminRequest(regionId string, instanceId string, productKey string) *UpdateProductWithAdminRequest
- func NewUpdateProductWithAdminRequestWithAllParams(regionId string, instanceId string, productKey string, productName *string, ...) *UpdateProductWithAdminRequest
- func NewUpdateProductWithAdminRequestWithoutParam() *UpdateProductWithAdminRequest
- func (r UpdateProductWithAdminRequest) GetRegionId() string
- func (r *UpdateProductWithAdminRequest) SetDynamicRegister(dynamicRegister int)
- func (r *UpdateProductWithAdminRequest) SetInstanceId(instanceId string)
- func (r *UpdateProductWithAdminRequest) SetProductDescription(productDescription string)
- func (r *UpdateProductWithAdminRequest) SetProductKey(productKey string)
- func (r *UpdateProductWithAdminRequest) SetProductName(productName string)
- func (r *UpdateProductWithAdminRequest) SetRegionId(regionId string)
- type UpdateProductWithAdminResponse
- type UpdateProductWithAdminResult
- type UpdateThingShadowRequest
- func NewUpdateThingShadowRequest(instanceId string, regionId string, identifier string, productKey string) *UpdateThingShadowRequest
- func NewUpdateThingShadowRequestWithAllParams(instanceId string, regionId string, identifier string, productKey string, ...) *UpdateThingShadowRequest
- func NewUpdateThingShadowRequestWithoutParam() *UpdateThingShadowRequest
- func (r UpdateThingShadowRequest) GetRegionId() string
- func (r *UpdateThingShadowRequest) SetIdentifier(identifier string)
- func (r *UpdateThingShadowRequest) SetInstanceId(instanceId string)
- func (r *UpdateThingShadowRequest) SetProductKey(productKey string)
- func (r *UpdateThingShadowRequest) SetRegionId(regionId string)
- func (r *UpdateThingShadowRequest) SetState(state interface{})
- func (r *UpdateThingShadowRequest) SetVersion(version int)
- type UpdateThingShadowResponse
- type UpdateThingShadowResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddDeviceLinksRequest ¶ added in v1.20.0
type AddDeviceLinksRequest struct { core.JDCloudRequest /* 设备归属的实例ID */ InstanceId string `json:"instanceId"` /* 设备归属的实例所在区域 */ RegionId string `json:"regionId"` /* 父级设备Id,只允许网关设备作为父级设备 */ ParentId string `json:"parentId"` /* 将此产品下所有设备都设置为parentId的子设备,只允许普通设备类型的productKey (Optional) */ ProductKey *string `json:"productKey"` /* 子设备Id集合,children和productKey二者至少填一个,二者都填写则同时生效,只允许普通设备类型的deviceId (Optional) */ Children []string `json:"children"` }
func NewAddDeviceLinksRequest ¶ added in v1.20.0
func NewAddDeviceLinksRequest( instanceId string, regionId string, parentId string, ) *AddDeviceLinksRequest
* param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param parentId: 父级设备Id,只允许网关设备作为父级设备 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewAddDeviceLinksRequestWithAllParams ¶ added in v1.20.0
func NewAddDeviceLinksRequestWithAllParams( instanceId string, regionId string, parentId string, productKey *string, children []string, ) *AddDeviceLinksRequest
* param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param parentId: 父级设备Id,只允许网关设备作为父级设备 (Required) * param productKey: 将此产品下所有设备都设置为parentId的子设备,只允许普通设备类型的productKey (Optional) * param children: 子设备Id集合,children和productKey二者至少填一个,二者都填写则同时生效,只允许普通设备类型的deviceId (Optional)
func NewAddDeviceLinksRequestWithoutParam ¶ added in v1.20.0
func NewAddDeviceLinksRequestWithoutParam() *AddDeviceLinksRequest
This constructor has better compatible ability when API parameters changed
func (AddDeviceLinksRequest) GetRegionId ¶ added in v1.20.0
func (r AddDeviceLinksRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*AddDeviceLinksRequest) SetChildren ¶ added in v1.20.0
func (r *AddDeviceLinksRequest) SetChildren(children []string)
param children: 子设备Id集合,children和productKey二者至少填一个,二者都填写则同时生效,只允许普通设备类型的deviceId(Optional)
func (*AddDeviceLinksRequest) SetInstanceId ¶ added in v1.20.0
func (r *AddDeviceLinksRequest) SetInstanceId(instanceId string)
param instanceId: 设备归属的实例ID(Required)
func (*AddDeviceLinksRequest) SetParentId ¶ added in v1.20.0
func (r *AddDeviceLinksRequest) SetParentId(parentId string)
param parentId: 父级设备Id,只允许网关设备作为父级设备(Required)
func (*AddDeviceLinksRequest) SetProductKey ¶ added in v1.20.0
func (r *AddDeviceLinksRequest) SetProductKey(productKey string)
param productKey: 将此产品下所有设备都设置为parentId的子设备,只允许普通设备类型的productKey(Optional)
func (*AddDeviceLinksRequest) SetRegionId ¶ added in v1.20.0
func (r *AddDeviceLinksRequest) SetRegionId(regionId string)
param regionId: 设备归属的实例所在区域(Required)
type AddDeviceLinksResponse ¶ added in v1.20.0
type AddDeviceLinksResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result AddDeviceLinksResult `json:"result"` }
type AddDeviceLinksResult ¶ added in v1.20.0
type AddDeviceLinksResult struct { }
type AddDeviceRequest ¶
type AddDeviceRequest struct { core.JDCloudRequest /* 设备归属的实例ID */ InstanceId string `json:"instanceId"` /* 设备归属的实例所在区域 */ RegionId string `json:"regionId"` /* 设备名称 (Optional) */ DeviceName *string `json:"deviceName"` /* 设备所归属的产品 (Optional) */ ProductKey *string `json:"productKey"` /* 设备型号 (Optional) */ Model *string `json:"model"` /* 厂商 (Optional) */ Manufacturer *string `json:"manufacturer"` /* 设备描述 (Optional) */ Description *string `json:"description"` }
func NewAddDeviceRequest ¶
func NewAddDeviceRequest( instanceId string, regionId string, ) *AddDeviceRequest
* param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewAddDeviceRequestWithAllParams ¶
func NewAddDeviceRequestWithAllParams( instanceId string, regionId string, deviceName *string, productKey *string, model *string, manufacturer *string, description *string, ) *AddDeviceRequest
* param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param deviceName: 设备名称 (Optional) * param productKey: 设备所归属的产品 (Optional) * param model: 设备型号 (Optional) * param manufacturer: 厂商 (Optional) * param description: 设备描述 (Optional)
func NewAddDeviceRequestWithoutParam ¶
func NewAddDeviceRequestWithoutParam() *AddDeviceRequest
This constructor has better compatible ability when API parameters changed
func (AddDeviceRequest) GetRegionId ¶
func (r AddDeviceRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*AddDeviceRequest) SetDescription ¶
func (r *AddDeviceRequest) SetDescription(description string)
param description: 设备描述(Optional)
func (*AddDeviceRequest) SetDeviceName ¶
func (r *AddDeviceRequest) SetDeviceName(deviceName string)
param deviceName: 设备名称(Optional)
func (*AddDeviceRequest) SetInstanceId ¶
func (r *AddDeviceRequest) SetInstanceId(instanceId string)
param instanceId: 设备归属的实例ID(Required)
func (*AddDeviceRequest) SetManufacturer ¶
func (r *AddDeviceRequest) SetManufacturer(manufacturer string)
param manufacturer: 厂商(Optional)
func (*AddDeviceRequest) SetModel ¶
func (r *AddDeviceRequest) SetModel(model string)
param model: 设备型号(Optional)
func (*AddDeviceRequest) SetProductKey ¶
func (r *AddDeviceRequest) SetProductKey(productKey string)
param productKey: 设备所归属的产品(Optional)
func (*AddDeviceRequest) SetRegionId ¶
func (r *AddDeviceRequest) SetRegionId(regionId string)
param regionId: 设备归属的实例所在区域(Required)
type AddDeviceResponse ¶
type AddDeviceResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result AddDeviceResult `json:"result"` }
type AddDeviceResult ¶
type AddLooDeviceRequest ¶ added in v1.27.0
type AddLooDeviceRequest struct { core.JDCloudRequest /* 设备归属的实例ID */ InstanceId string `json:"instanceId"` /* 设备归属的实例所在区域 */ RegionId string `json:"regionId"` /* 申请单编号 */ PreOrderId string `json:"preOrderId"` /* 用户Pin */ UserPinParam string `json:"userPinParam"` /* 心跳 (Optional) */ DeviceName *string `json:"deviceName"` /* 设备所归属的产品 (Optional) */ ProductKey *string `json:"productKey"` /* 设备型号 (Optional) */ Model *string `json:"model"` /* 厂商 (Optional) */ Manufacturer *string `json:"manufacturer"` /* 连接码 (Optional) */ Identifier *string `json:"identifier"` /* 设备名 (Optional) */ Description *string `json:"description"` /* 设备类型 */ DeviceType string `json:"deviceType"` }
func NewAddLooDeviceRequest ¶ added in v1.27.0
func NewAddLooDeviceRequest( instanceId string, regionId string, preOrderId string, userPinParam string, deviceType string, ) *AddLooDeviceRequest
* param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param preOrderId: 申请单编号 (Required) * param userPinParam: 用户Pin (Required) * param deviceType: 设备类型 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewAddLooDeviceRequestWithAllParams ¶ added in v1.27.0
func NewAddLooDeviceRequestWithAllParams( instanceId string, regionId string, preOrderId string, userPinParam string, deviceName *string, productKey *string, model *string, manufacturer *string, identifier *string, description *string, deviceType string, ) *AddLooDeviceRequest
* param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param preOrderId: 申请单编号 (Required) * param userPinParam: 用户Pin (Required) * param deviceName: 心跳 (Optional) * param productKey: 设备所归属的产品 (Optional) * param model: 设备型号 (Optional) * param manufacturer: 厂商 (Optional) * param identifier: 连接码 (Optional) * param description: 设备名 (Optional) * param deviceType: 设备类型 (Required)
func NewAddLooDeviceRequestWithoutParam ¶ added in v1.27.0
func NewAddLooDeviceRequestWithoutParam() *AddLooDeviceRequest
This constructor has better compatible ability when API parameters changed
func (AddLooDeviceRequest) GetRegionId ¶ added in v1.27.0
func (r AddLooDeviceRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*AddLooDeviceRequest) SetDescription ¶ added in v1.27.0
func (r *AddLooDeviceRequest) SetDescription(description string)
param description: 设备名(Optional)
func (*AddLooDeviceRequest) SetDeviceName ¶ added in v1.27.0
func (r *AddLooDeviceRequest) SetDeviceName(deviceName string)
param deviceName: 心跳(Optional)
func (*AddLooDeviceRequest) SetDeviceType ¶ added in v1.28.0
func (r *AddLooDeviceRequest) SetDeviceType(deviceType string)
param deviceType: 设备类型(Required)
func (*AddLooDeviceRequest) SetIdentifier ¶ added in v1.27.0
func (r *AddLooDeviceRequest) SetIdentifier(identifier string)
param identifier: 连接码(Optional)
func (*AddLooDeviceRequest) SetInstanceId ¶ added in v1.27.0
func (r *AddLooDeviceRequest) SetInstanceId(instanceId string)
param instanceId: 设备归属的实例ID(Required)
func (*AddLooDeviceRequest) SetManufacturer ¶ added in v1.27.0
func (r *AddLooDeviceRequest) SetManufacturer(manufacturer string)
param manufacturer: 厂商(Optional)
func (*AddLooDeviceRequest) SetModel ¶ added in v1.27.0
func (r *AddLooDeviceRequest) SetModel(model string)
param model: 设备型号(Optional)
func (*AddLooDeviceRequest) SetPreOrderId ¶ added in v1.27.0
func (r *AddLooDeviceRequest) SetPreOrderId(preOrderId string)
param preOrderId: 申请单编号(Required)
func (*AddLooDeviceRequest) SetProductKey ¶ added in v1.27.0
func (r *AddLooDeviceRequest) SetProductKey(productKey string)
param productKey: 设备所归属的产品(Optional)
func (*AddLooDeviceRequest) SetRegionId ¶ added in v1.27.0
func (r *AddLooDeviceRequest) SetRegionId(regionId string)
param regionId: 设备归属的实例所在区域(Required)
func (*AddLooDeviceRequest) SetUserPinParam ¶ added in v1.27.0
func (r *AddLooDeviceRequest) SetUserPinParam(userPinParam string)
param userPinParam: 用户Pin(Required)
type AddLooDeviceResponse ¶ added in v1.27.0
type AddLooDeviceResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result AddLooDeviceResult `json:"result"` }
type AddLooDeviceResult ¶ added in v1.27.0
type CollectorReadMessageRequest ¶ added in v1.28.0
type CollectorReadMessageRequest struct { core.JDCloudRequest /* Hub实例Id */ InstanceId string `json:"instanceId"` /* 区域Id */ RegionId string `json:"regionId"` /* 当前的链接码 */ Identifier string `json:"identifier"` /* 当前的协议类型: 语音播报控制器-输入端子,0X00000~X0007:inputTerminal 语音播报控制器-播放信息,0X00024~X0027:playInfo LR001-516-5B边缘数据采集器-传感器管理:sensor LR001-516-5B边缘数据采集器-采集器属性:collectorProperty LR001-516-5B边缘数据采集器-电梯属性:elevatorProperty LR001-516-5A边缘数据采集器-水质酸碱度(PH):waterQualityPh LR001-516-5A水质监测采集器-水质电导率:waterQualityElectroConductivity */ Protocol string `json:"protocol"` }
func NewCollectorReadMessageRequest ¶ added in v1.28.0
func NewCollectorReadMessageRequest( instanceId string, regionId string, identifier string, protocol string, ) *CollectorReadMessageRequest
- param instanceId: Hub实例Id (Required)
- param regionId: 区域Id (Required)
- param identifier: 当前的链接码 (Required)
- param protocol: 当前的协议类型:
语音播报控制器-输入端子,0X00000~X0007:inputTerminal 语音播报控制器-播放信息,0X00024~X0027:playInfo LR001-516-5B边缘数据采集器-传感器管理:sensor LR001-516-5B边缘数据采集器-采集器属性:collectorProperty LR001-516-5B边缘数据采集器-电梯属性:elevatorProperty LR001-516-5A边缘数据采集器-水质酸碱度(PH):waterQualityPh LR001-516-5A水质监测采集器-水质电导率:waterQualityElectroConductivity
(Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewCollectorReadMessageRequestWithAllParams ¶ added in v1.28.0
func NewCollectorReadMessageRequestWithAllParams( instanceId string, regionId string, identifier string, protocol string, ) *CollectorReadMessageRequest
- param instanceId: Hub实例Id (Required)
- param regionId: 区域Id (Required)
- param identifier: 当前的链接码 (Required)
- param protocol: 当前的协议类型:
语音播报控制器-输入端子,0X00000~X0007:inputTerminal 语音播报控制器-播放信息,0X00024~X0027:playInfo LR001-516-5B边缘数据采集器-传感器管理:sensor LR001-516-5B边缘数据采集器-采集器属性:collectorProperty LR001-516-5B边缘数据采集器-电梯属性:elevatorProperty LR001-516-5A边缘数据采集器-水质酸碱度(PH):waterQualityPh LR001-516-5A水质监测采集器-水质电导率:waterQualityElectroConductivity
(Required)
func NewCollectorReadMessageRequestWithoutParam ¶ added in v1.28.0
func NewCollectorReadMessageRequestWithoutParam() *CollectorReadMessageRequest
This constructor has better compatible ability when API parameters changed
func (CollectorReadMessageRequest) GetRegionId ¶ added in v1.28.0
func (r CollectorReadMessageRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*CollectorReadMessageRequest) SetIdentifier ¶ added in v1.28.0
func (r *CollectorReadMessageRequest) SetIdentifier(identifier string)
param identifier: 当前的链接码(Required)
func (*CollectorReadMessageRequest) SetInstanceId ¶ added in v1.28.0
func (r *CollectorReadMessageRequest) SetInstanceId(instanceId string)
param instanceId: Hub实例Id(Required)
func (*CollectorReadMessageRequest) SetProtocol ¶ added in v1.28.0
func (r *CollectorReadMessageRequest) SetProtocol(protocol string)
param protocol: 当前的协议类型:
语音播报控制器-输入端子,0X00000~X0007:inputTerminal 语音播报控制器-播放信息,0X00024~X0027:playInfo LR001-516-5B边缘数据采集器-传感器管理:sensor LR001-516-5B边缘数据采集器-采集器属性:collectorProperty LR001-516-5B边缘数据采集器-电梯属性:elevatorProperty LR001-516-5A边缘数据采集器-水质酸碱度(PH):waterQualityPh LR001-516-5A水质监测采集器-水质电导率:waterQualityElectroConductivity (Required)
func (*CollectorReadMessageRequest) SetRegionId ¶ added in v1.28.0
func (r *CollectorReadMessageRequest) SetRegionId(regionId string)
param regionId: 区域Id(Required)
type CollectorReadMessageResponse ¶ added in v1.28.0
type CollectorReadMessageResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result CollectorReadMessageResult `json:"result"` }
type CollectorReadMessageResult ¶ added in v1.28.0
type CollectorReadMessageResult struct {
ReadData interface{} `json:"readData"`
}
type CollectorWriteMessageRequest ¶ added in v1.28.0
type CollectorWriteMessageRequest struct { core.JDCloudRequest /* Hub实例Id */ InstanceId string `json:"instanceId"` /* 区域Id */ RegionId string `json:"regionId"` /* 当前的链接码 */ Identifier string `json:"identifier"` /* 当前的协议类型,非必填项 (Optional) */ Protocol *string `json:"protocol"` /* 当前待写入的数据 如语音播报控制器-指定播放设备,寄存地址:13对应16进制0x0D,寄存器值:2 { "13":2 } 如语音播报控制器-播放控制,寄存地址:14对应16进制0x0E,寄存器值:1 { "14": 1 } 如语音播报控制器-音量设置,寄存地址:15对应16进制0x0F,寄存器值:10,取值范围0~30 { "15": 10 } 如语音播报控制器-指定文件夹和文件播放,寄存地址:16对应16进制0x10,寄存器值:1 寄存器值为两字节,第一个字节为文件夹,第二个字节为文件名 如0x01文件夹,0x03文件名,0x0103换算为10进制为259 { "16": 259 } 如语音播报控制器-组合播放,寄存器地址:17、18和19,寄存器值:257、258和259,寄存器值的算法和指定文件夹和文件播放是一致的,如259可换算为0x01文件夹,0x03文件名 { "17": 257, "18": 258, "19": 259 } 如语音播报控制器-播放广告,寄存地址:32对应16进制0x20,寄存器值:259,寄存器值的算法和指定文件夹和文件播放是一致的,如259可换算为0x01文件夹,0x03文件名 { "32": 259 } 如语音播报控制器-指定文件夹循环播放,寄存地址:33对应16进制0x21,寄存器值:256,寄存器值的算法,如256可换算为0x0100文件夹 { "33": 256 } 如语音播报控制器-指定文件夹随机播放,寄存地址:34对应16进制0x22,寄存器值:256,寄存器值的算法,如256可换算为0x0100文件夹 { "34": 256 } 如语音播报控制器-指定曲目播放,寄存地址:35对应16进制0x23,寄存器值:13,歌曲选择范围为0~3000 { "35": 13 } 如电梯数据采集器-传感器管理数据更新 { "40426": 1, "40427": 1, "40428": 1, "40429": 1, "40430": 1, "40431": 1, "40432": 1, "40433": 1, "40434": 1, "40435": 1, "40436": 1, "40437": 1, "40438": 1, "40439": 1, "40440": 1 } 如电梯数据采集器-采集器属性数据更新 { "40441": 40441, "40443": 40443, "40444": 40444, "40445": 40445, "40446": 40446, "40447": 40447, "40448": 40448, "40449": 40449, "40450": 40450 } 如电梯数据采集器-电梯属性数据更新 { "40801": 1, "40802": 1, "40803": 1, "40804": 1, "40805": 1, "40806": 1, "40807": 1, "40808": 1, "40809": 1, "40810": 1 } 如电梯数据采集器-楼层数据更新 { "40797": 1, "40798": 1, "40799": 1 } */ Data interface{} `json:"data"` }
func NewCollectorWriteMessageRequest ¶ added in v1.28.0
func NewCollectorWriteMessageRequest( instanceId string, regionId string, identifier string, data interface{}, ) *CollectorWriteMessageRequest
- param instanceId: Hub实例Id (Required)
- param regionId: 区域Id (Required)
- param identifier: 当前的链接码 (Required)
- param data: 当前待写入的数据
如语音播报控制器-指定播放设备,寄存地址:13对应16进制0x0D,寄存器值:2
{ "13":2 }
如语音播报控制器-播放控制,寄存地址:14对应16进制0x0E,寄存器值:1
{ "14": 1 }
如语音播报控制器-音量设置,寄存地址:15对应16进制0x0F,寄存器值:10,取值范围0~30
{ "15": 10 }
如语音播报控制器-指定文件夹和文件播放,寄存地址:16对应16进制0x10,寄存器值:1 寄存器值为两字节,第一个字节为文件夹,第二个字节为文件名 如0x01文件夹,0x03文件名,0x0103换算为10进制为259
{ "16": 259 }
如语音播报控制器-组合播放,寄存器地址:17、18和19,寄存器值:257、258和259,寄存器值的算法和指定文件夹和文件播放是一致的,如259可换算为0x01文件夹,0x03文件名
{ "17": 257, "18": 258, "19": 259 }
如语音播报控制器-播放广告,寄存地址:32对应16进制0x20,寄存器值:259,寄存器值的算法和指定文件夹和文件播放是一致的,如259可换算为0x01文件夹,0x03文件名
{ "32": 259 }
如语音播报控制器-指定文件夹循环播放,寄存地址:33对应16进制0x21,寄存器值:256,寄存器值的算法,如256可换算为0x0100文件夹
{ "33": 256 }
如语音播报控制器-指定文件夹随机播放,寄存地址:34对应16进制0x22,寄存器值:256,寄存器值的算法,如256可换算为0x0100文件夹
{ "34": 256 }
如语音播报控制器-指定曲目播放,寄存地址:35对应16进制0x23,寄存器值:13,歌曲选择范围为0~3000
{ "35": 13 }
如电梯数据采集器-传感器管理数据更新
{ "40426": 1, "40427": 1, "40428": 1, "40429": 1, "40430": 1, "40431": 1, "40432": 1, "40433": 1, "40434": 1, "40435": 1, "40436": 1, "40437": 1, "40438": 1, "40439": 1, "40440": 1 }
如电梯数据采集器-采集器属性数据更新
{ "40441": 40441, "40443": 40443, "40444": 40444, "40445": 40445, "40446": 40446, "40447": 40447, "40448": 40448, "40449": 40449, "40450": 40450 }
如电梯数据采集器-电梯属性数据更新
{ "40801": 1, "40802": 1, "40803": 1, "40804": 1, "40805": 1, "40806": 1, "40807": 1, "40808": 1, "40809": 1, "40810": 1 }
如电梯数据采集器-楼层数据更新
{ "40797": 1, "40798": 1, "40799": 1 }
(Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewCollectorWriteMessageRequestWithAllParams ¶ added in v1.28.0
func NewCollectorWriteMessageRequestWithAllParams( instanceId string, regionId string, identifier string, protocol *string, data interface{}, ) *CollectorWriteMessageRequest
- param instanceId: Hub实例Id (Required)
- param regionId: 区域Id (Required)
- param identifier: 当前的链接码 (Required)
- param protocol: 当前的协议类型,非必填项 (Optional)
- param data: 当前待写入的数据
如语音播报控制器-指定播放设备,寄存地址:13对应16进制0x0D,寄存器值:2
{ "13":2 }
如语音播报控制器-播放控制,寄存地址:14对应16进制0x0E,寄存器值:1
{ "14": 1 }
如语音播报控制器-音量设置,寄存地址:15对应16进制0x0F,寄存器值:10,取值范围0~30
{ "15": 10 }
如语音播报控制器-指定文件夹和文件播放,寄存地址:16对应16进制0x10,寄存器值:1 寄存器值为两字节,第一个字节为文件夹,第二个字节为文件名 如0x01文件夹,0x03文件名,0x0103换算为10进制为259
{ "16": 259 }
如语音播报控制器-组合播放,寄存器地址:17、18和19,寄存器值:257、258和259,寄存器值的算法和指定文件夹和文件播放是一致的,如259可换算为0x01文件夹,0x03文件名
{ "17": 257, "18": 258, "19": 259 }
如语音播报控制器-播放广告,寄存地址:32对应16进制0x20,寄存器值:259,寄存器值的算法和指定文件夹和文件播放是一致的,如259可换算为0x01文件夹,0x03文件名
{ "32": 259 }
如语音播报控制器-指定文件夹循环播放,寄存地址:33对应16进制0x21,寄存器值:256,寄存器值的算法,如256可换算为0x0100文件夹
{ "33": 256 }
如语音播报控制器-指定文件夹随机播放,寄存地址:34对应16进制0x22,寄存器值:256,寄存器值的算法,如256可换算为0x0100文件夹
{ "34": 256 }
如语音播报控制器-指定曲目播放,寄存地址:35对应16进制0x23,寄存器值:13,歌曲选择范围为0~3000
{ "35": 13 }
如电梯数据采集器-传感器管理数据更新
{ "40426": 1, "40427": 1, "40428": 1, "40429": 1, "40430": 1, "40431": 1, "40432": 1, "40433": 1, "40434": 1, "40435": 1, "40436": 1, "40437": 1, "40438": 1, "40439": 1, "40440": 1 }
如电梯数据采集器-采集器属性数据更新
{ "40441": 40441, "40443": 40443, "40444": 40444, "40445": 40445, "40446": 40446, "40447": 40447, "40448": 40448, "40449": 40449, "40450": 40450 }
如电梯数据采集器-电梯属性数据更新
{ "40801": 1, "40802": 1, "40803": 1, "40804": 1, "40805": 1, "40806": 1, "40807": 1, "40808": 1, "40809": 1, "40810": 1 }
如电梯数据采集器-楼层数据更新
{ "40797": 1, "40798": 1, "40799": 1 }
(Required)
func NewCollectorWriteMessageRequestWithoutParam ¶ added in v1.28.0
func NewCollectorWriteMessageRequestWithoutParam() *CollectorWriteMessageRequest
This constructor has better compatible ability when API parameters changed
func (CollectorWriteMessageRequest) GetRegionId ¶ added in v1.28.0
func (r CollectorWriteMessageRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*CollectorWriteMessageRequest) SetData ¶ added in v1.28.0
func (r *CollectorWriteMessageRequest) SetData(data interface{})
param data: 当前待写入的数据
如语音播报控制器-指定播放设备,寄存地址:13对应16进制0x0D,寄存器值:2
{ "13":2 }
如语音播报控制器-播放控制,寄存地址:14对应16进制0x0E,寄存器值:1
{ "14": 1 }
如语音播报控制器-音量设置,寄存地址:15对应16进制0x0F,寄存器值:10,取值范围0~30
{ "15": 10 }
如语音播报控制器-指定文件夹和文件播放,寄存地址:16对应16进制0x10,寄存器值:1 寄存器值为两字节,第一个字节为文件夹,第二个字节为文件名 如0x01文件夹,0x03文件名,0x0103换算为10进制为259
{ "16": 259 }
如语音播报控制器-组合播放,寄存器地址:17、18和19,寄存器值:257、258和259,寄存器值的算法和指定文件夹和文件播放是一致的,如259可换算为0x01文件夹,0x03文件名
{ "17": 257, "18": 258, "19": 259 }
如语音播报控制器-播放广告,寄存地址:32对应16进制0x20,寄存器值:259,寄存器值的算法和指定文件夹和文件播放是一致的,如259可换算为0x01文件夹,0x03文件名
{ "32": 259 }
如语音播报控制器-指定文件夹循环播放,寄存地址:33对应16进制0x21,寄存器值:256,寄存器值的算法,如256可换算为0x0100文件夹
{ "33": 256 }
如语音播报控制器-指定文件夹随机播放,寄存地址:34对应16进制0x22,寄存器值:256,寄存器值的算法,如256可换算为0x0100文件夹
{ "34": 256 }
如语音播报控制器-指定曲目播放,寄存地址:35对应16进制0x23,寄存器值:13,歌曲选择范围为0~3000
{ "35": 13 }
如电梯数据采集器-传感器管理数据更新
{ "40426": 1, "40427": 1, "40428": 1, "40429": 1, "40430": 1, "40431": 1, "40432": 1, "40433": 1, "40434": 1, "40435": 1, "40436": 1, "40437": 1, "40438": 1, "40439": 1, "40440": 1 }
如电梯数据采集器-采集器属性数据更新
{ "40441": 40441, "40443": 40443, "40444": 40444, "40445": 40445, "40446": 40446, "40447": 40447, "40448": 40448, "40449": 40449, "40450": 40450 }
如电梯数据采集器-电梯属性数据更新
{ "40801": 1, "40802": 1, "40803": 1, "40804": 1, "40805": 1, "40806": 1, "40807": 1, "40808": 1, "40809": 1, "40810": 1 }
如电梯数据采集器-楼层数据更新
{ "40797": 1, "40798": 1, "40799": 1 }
(Required)
func (*CollectorWriteMessageRequest) SetIdentifier ¶ added in v1.28.0
func (r *CollectorWriteMessageRequest) SetIdentifier(identifier string)
param identifier: 当前的链接码(Required)
func (*CollectorWriteMessageRequest) SetInstanceId ¶ added in v1.28.0
func (r *CollectorWriteMessageRequest) SetInstanceId(instanceId string)
param instanceId: Hub实例Id(Required)
func (*CollectorWriteMessageRequest) SetProtocol ¶ added in v1.28.0
func (r *CollectorWriteMessageRequest) SetProtocol(protocol string)
param protocol: 当前的协议类型,非必填项
(Optional)
func (*CollectorWriteMessageRequest) SetRegionId ¶ added in v1.28.0
func (r *CollectorWriteMessageRequest) SetRegionId(regionId string)
param regionId: 区域Id(Required)
type CollectorWriteMessageResponse ¶ added in v1.28.0
type CollectorWriteMessageResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result CollectorWriteMessageResult `json:"result"` }
type CollectorWriteMessageResult ¶ added in v1.28.0
type CollectorWriteMessageResult struct {
WriteStatus string `json:"writeStatus"`
}
type CreateAdminProductRequest ¶ added in v1.28.0
type CreateAdminProductRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* IoT Engine实例ID信息 */ InstanceId string `json:"instanceId"` /* 产品名称,名称不可为空,3-30个字符,只支持汉字、英文字母、数字、下划线“_”及中划线“-”,必须以汉字、英文字母及数字开头结尾 */ ProductName string `json:"productName"` /* 节点类型,取值: 0:设备。设备不能挂载子设备。可以直连物联网平台,也可以作为网关的子设备连接物联网平台 1:网关。网关可以挂载子设备,具有子设备管理模块,维持子设备的拓扑关系,和将拓扑关系同步到物联网平台 */ ProductType int `json:"productType"` /* 产品描述,80字符以内 (Optional) */ ProductDescription *string `json:"productDescription"` /* 物模型模板ID,内部参数,用户不可见,默认为自定义 (Optional) */ TemplateId *string `json:"templateId"` /* 内部标签,内部参数,用户不可见,隐藏标签:hidden:true (Optional) */ InternalTags *interface{} `json:"internalTags"` }
func NewCreateAdminProductRequest ¶ added in v1.28.0
func NewCreateAdminProductRequest( regionId string, instanceId string, productName string, productType int, ) *CreateAdminProductRequest
- param regionId: 地域ID (Required)
- param instanceId: IoT Engine实例ID信息 (Required)
- param productName: 产品名称,名称不可为空,3-30个字符,只支持汉字、英文字母、数字、下划线“_”及中划线“-”,必须以汉字、英文字母及数字开头结尾 (Required)
- param productType: 节点类型,取值:
0:设备。设备不能挂载子设备。可以直连物联网平台,也可以作为网关的子设备连接物联网平台 1:网关。网关可以挂载子设备,具有子设备管理模块,维持子设备的拓扑关系,和将拓扑关系同步到物联网平台
(Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewCreateAdminProductRequestWithAllParams ¶ added in v1.28.0
func NewCreateAdminProductRequestWithAllParams( regionId string, instanceId string, productName string, productType int, productDescription *string, templateId *string, internalTags *interface{}, ) *CreateAdminProductRequest
- param regionId: 地域ID (Required)
- param instanceId: IoT Engine实例ID信息 (Required)
- param productName: 产品名称,名称不可为空,3-30个字符,只支持汉字、英文字母、数字、下划线“_”及中划线“-”,必须以汉字、英文字母及数字开头结尾 (Required)
- param productType: 节点类型,取值:
0:设备。设备不能挂载子设备。可以直连物联网平台,也可以作为网关的子设备连接物联网平台 1:网关。网关可以挂载子设备,具有子设备管理模块,维持子设备的拓扑关系,和将拓扑关系同步到物联网平台
(Required) * param productDescription: 产品描述,80字符以内 (Optional) * param templateId: 物模型模板ID,内部参数,用户不可见,默认为自定义 (Optional) * param internalTags: 内部标签,内部参数,用户不可见,隐藏标签:hidden:true (Optional)
func NewCreateAdminProductRequestWithoutParam ¶ added in v1.28.0
func NewCreateAdminProductRequestWithoutParam() *CreateAdminProductRequest
This constructor has better compatible ability when API parameters changed
func (CreateAdminProductRequest) GetRegionId ¶ added in v1.28.0
func (r CreateAdminProductRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*CreateAdminProductRequest) SetInstanceId ¶ added in v1.28.0
func (r *CreateAdminProductRequest) SetInstanceId(instanceId string)
param instanceId: IoT Engine实例ID信息(Required)
func (*CreateAdminProductRequest) SetInternalTags ¶ added in v1.28.0
func (r *CreateAdminProductRequest) SetInternalTags(internalTags interface{})
param internalTags: 内部标签,内部参数,用户不可见,隐藏标签:hidden:true(Optional)
func (*CreateAdminProductRequest) SetProductDescription ¶ added in v1.28.0
func (r *CreateAdminProductRequest) SetProductDescription(productDescription string)
param productDescription: 产品描述,80字符以内(Optional)
func (*CreateAdminProductRequest) SetProductName ¶ added in v1.28.0
func (r *CreateAdminProductRequest) SetProductName(productName string)
param productName: 产品名称,名称不可为空,3-30个字符,只支持汉字、英文字母、数字、下划线“_”及中划线“-”,必须以汉字、英文字母及数字开头结尾(Required)
func (*CreateAdminProductRequest) SetProductType ¶ added in v1.28.0
func (r *CreateAdminProductRequest) SetProductType(productType int)
param productType: 节点类型,取值:
0:设备。设备不能挂载子设备。可以直连物联网平台,也可以作为网关的子设备连接物联网平台 1:网关。网关可以挂载子设备,具有子设备管理模块,维持子设备的拓扑关系,和将拓扑关系同步到物联网平台 (Required)
func (*CreateAdminProductRequest) SetRegionId ¶ added in v1.28.0
func (r *CreateAdminProductRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*CreateAdminProductRequest) SetTemplateId ¶ added in v1.28.0
func (r *CreateAdminProductRequest) SetTemplateId(templateId string)
param templateId: 物模型模板ID,内部参数,用户不可见,默认为自定义(Optional)
type CreateAdminProductResponse ¶ added in v1.28.0
type CreateAdminProductResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result CreateAdminProductResult `json:"result"` }
type CreateAdminProductResult ¶ added in v1.28.0
type CreateAdminProductResult struct {
ProductKey string `json:"productKey"`
}
type CreateProductRequest ¶
type CreateProductRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* IoT Engine实例ID信息 */ InstanceId string `json:"instanceId"` /* 产品名称,名称不可为空,3-30个字符,只支持汉字、英文字母、数字、下划线“_”及中划线“-”,必须以汉字、英文字母及数字开头结尾 */ ProductName string `json:"productName"` /* 节点类型,取值: 0:设备。设备不能挂载子设备。可以直连物联网平台,也可以作为网关的子设备连接物联网平台 1:网关。网关可以挂载子设备,具有子设备管理模块,维持子设备的拓扑关系,和将拓扑关系同步到物联网平台 */ ProductType int `json:"productType"` /* 产品描述,80字符以内 (Optional) */ ProductDescription *string `json:"productDescription"` /* 物模型模板ID,内部参数,用户不可见,默认为自定义 (Optional) */ TemplateId *string `json:"templateId"` /* 内部标签,内部参数,用户不可见,隐藏标签:hidden:true (Optional) */ InternalTags *interface{} `json:"internalTags"` }
func NewCreateProductRequest ¶
func NewCreateProductRequest( regionId string, instanceId string, productName string, productType int, ) *CreateProductRequest
- param regionId: 地域ID (Required)
- param instanceId: IoT Engine实例ID信息 (Required)
- param productName: 产品名称,名称不可为空,3-30个字符,只支持汉字、英文字母、数字、下划线“_”及中划线“-”,必须以汉字、英文字母及数字开头结尾 (Required)
- param productType: 节点类型,取值:
0:设备。设备不能挂载子设备。可以直连物联网平台,也可以作为网关的子设备连接物联网平台 1:网关。网关可以挂载子设备,具有子设备管理模块,维持子设备的拓扑关系,和将拓扑关系同步到物联网平台
(Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewCreateProductRequestWithAllParams ¶
func NewCreateProductRequestWithAllParams( regionId string, instanceId string, productName string, productType int, productDescription *string, templateId *string, internalTags *interface{}, ) *CreateProductRequest
- param regionId: 地域ID (Required)
- param instanceId: IoT Engine实例ID信息 (Required)
- param productName: 产品名称,名称不可为空,3-30个字符,只支持汉字、英文字母、数字、下划线“_”及中划线“-”,必须以汉字、英文字母及数字开头结尾 (Required)
- param productType: 节点类型,取值:
0:设备。设备不能挂载子设备。可以直连物联网平台,也可以作为网关的子设备连接物联网平台 1:网关。网关可以挂载子设备,具有子设备管理模块,维持子设备的拓扑关系,和将拓扑关系同步到物联网平台
(Required) * param productDescription: 产品描述,80字符以内 (Optional) * param templateId: 物模型模板ID,内部参数,用户不可见,默认为自定义 (Optional) * param internalTags: 内部标签,内部参数,用户不可见,隐藏标签:hidden:true (Optional)
func NewCreateProductRequestWithoutParam ¶
func NewCreateProductRequestWithoutParam() *CreateProductRequest
This constructor has better compatible ability when API parameters changed
func (CreateProductRequest) GetRegionId ¶
func (r CreateProductRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*CreateProductRequest) SetInstanceId ¶
func (r *CreateProductRequest) SetInstanceId(instanceId string)
param instanceId: IoT Engine实例ID信息(Required)
func (*CreateProductRequest) SetInternalTags ¶ added in v1.13.0
func (r *CreateProductRequest) SetInternalTags(internalTags interface{})
param internalTags: 内部标签,内部参数,用户不可见,隐藏标签:hidden:true(Optional)
func (*CreateProductRequest) SetProductDescription ¶
func (r *CreateProductRequest) SetProductDescription(productDescription string)
param productDescription: 产品描述,80字符以内(Optional)
func (*CreateProductRequest) SetProductName ¶
func (r *CreateProductRequest) SetProductName(productName string)
param productName: 产品名称,名称不可为空,3-30个字符,只支持汉字、英文字母、数字、下划线“_”及中划线“-”,必须以汉字、英文字母及数字开头结尾(Required)
func (*CreateProductRequest) SetProductType ¶
func (r *CreateProductRequest) SetProductType(productType int)
param productType: 节点类型,取值:
0:设备。设备不能挂载子设备。可以直连物联网平台,也可以作为网关的子设备连接物联网平台 1:网关。网关可以挂载子设备,具有子设备管理模块,维持子设备的拓扑关系,和将拓扑关系同步到物联网平台 (Required)
func (*CreateProductRequest) SetRegionId ¶
func (r *CreateProductRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*CreateProductRequest) SetTemplateId ¶
func (r *CreateProductRequest) SetTemplateId(templateId string)
param templateId: 物模型模板ID,内部参数,用户不可见,默认为自定义(Optional)
type CreateProductResponse ¶
type CreateProductResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result CreateProductResult `json:"result"` }
type CreateProductResult ¶
type CreateProductResult struct {
ProductKey string `json:"productKey"`
}
type CreateProductTopicRequest ¶ added in v1.13.0
type CreateProductTopicRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* IoTCore实例ID信息 */ InstanceId string `json:"instanceId"` /* 产品Key */ ProductKey string `json:"productKey"` /* Topic名称为必填,同一个产品下的Topic名称不能重复 只能包含字母,数字和下划线,最多64个字符,每个层级都不能为空 不能以/结尾 */ TopicShortName string `json:"topicShortName"` /* 操作权限,设备对该Topic类的操作权限,取值 pub:发布 sub:订阅 */ TopicOperation string `json:"topicOperation"` /* 描述, 0-50个字符 (Optional) */ TopicDescription *string `json:"topicDescription"` }
func NewCreateProductTopicRequest ¶ added in v1.13.0
func NewCreateProductTopicRequest( regionId string, instanceId string, productKey string, topicShortName string, topicOperation string, ) *CreateProductTopicRequest
- param regionId: 地域ID (Required)
- param instanceId: IoTCore实例ID信息 (Required)
- param productKey: 产品Key (Required)
- param topicShortName: Topic名称为必填,同一个产品下的Topic名称不能重复
只能包含字母,数字和下划线,最多64个字符,每个层级都不能为空 不能以/结尾
(Required) * param topicOperation: 操作权限,设备对该Topic类的操作权限,取值
pub:发布 sub:订阅
(Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewCreateProductTopicRequestWithAllParams ¶ added in v1.13.0
func NewCreateProductTopicRequestWithAllParams( regionId string, instanceId string, productKey string, topicShortName string, topicOperation string, topicDescription *string, ) *CreateProductTopicRequest
- param regionId: 地域ID (Required)
- param instanceId: IoTCore实例ID信息 (Required)
- param productKey: 产品Key (Required)
- param topicShortName: Topic名称为必填,同一个产品下的Topic名称不能重复
只能包含字母,数字和下划线,最多64个字符,每个层级都不能为空 不能以/结尾
(Required) * param topicOperation: 操作权限,设备对该Topic类的操作权限,取值
pub:发布 sub:订阅
(Required) * param topicDescription: 描述, 0-50个字符 (Optional)
func NewCreateProductTopicRequestWithoutParam ¶ added in v1.13.0
func NewCreateProductTopicRequestWithoutParam() *CreateProductTopicRequest
This constructor has better compatible ability when API parameters changed
func (CreateProductTopicRequest) GetRegionId ¶ added in v1.13.0
func (r CreateProductTopicRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*CreateProductTopicRequest) SetInstanceId ¶ added in v1.13.0
func (r *CreateProductTopicRequest) SetInstanceId(instanceId string)
param instanceId: IoTCore实例ID信息(Required)
func (*CreateProductTopicRequest) SetProductKey ¶ added in v1.13.0
func (r *CreateProductTopicRequest) SetProductKey(productKey string)
param productKey: 产品Key(Required)
func (*CreateProductTopicRequest) SetRegionId ¶ added in v1.13.0
func (r *CreateProductTopicRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*CreateProductTopicRequest) SetTopicDescription ¶ added in v1.13.0
func (r *CreateProductTopicRequest) SetTopicDescription(topicDescription string)
param topicDescription: 描述, 0-50个字符(Optional)
func (*CreateProductTopicRequest) SetTopicOperation ¶ added in v1.13.0
func (r *CreateProductTopicRequest) SetTopicOperation(topicOperation string)
param topicOperation: 操作权限,设备对该Topic类的操作权限,取值
pub:发布 sub:订阅 (Required)
func (*CreateProductTopicRequest) SetTopicShortName ¶ added in v1.13.0
func (r *CreateProductTopicRequest) SetTopicShortName(topicShortName string)
param topicShortName: Topic名称为必填,同一个产品下的Topic名称不能重复
只能包含字母,数字和下划线,最多64个字符,每个层级都不能为空 不能以/结尾 (Required)
type CreateProductTopicResponse ¶ added in v1.13.0
type CreateProductTopicResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result CreateProductTopicResult `json:"result"` }
type CreateProductTopicResult ¶ added in v1.13.0
type CreateProductTopicResult struct {
TopicId string `json:"topicId"`
}
type DeleteDeviceRequest ¶ added in v1.28.0
type DeleteDeviceRequest struct { core.JDCloudRequest /* 区域id */ RegionId string `json:"regionId"` /* 实例Id */ InstanceId string `json:"instanceId"` /* 设备ID */ DeviceId string `json:"deviceId"` }
func NewDeleteDeviceRequest ¶ added in v1.28.0
func NewDeleteDeviceRequest( regionId string, instanceId string, deviceId string, ) *DeleteDeviceRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param deviceId: 设备ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDeleteDeviceRequestWithAllParams ¶ added in v1.28.0
func NewDeleteDeviceRequestWithAllParams( regionId string, instanceId string, deviceId string, ) *DeleteDeviceRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param deviceId: 设备ID (Required)
func NewDeleteDeviceRequestWithoutParam ¶ added in v1.28.0
func NewDeleteDeviceRequestWithoutParam() *DeleteDeviceRequest
This constructor has better compatible ability when API parameters changed
func (DeleteDeviceRequest) GetRegionId ¶ added in v1.28.0
func (r DeleteDeviceRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DeleteDeviceRequest) SetDeviceId ¶ added in v1.28.0
func (r *DeleteDeviceRequest) SetDeviceId(deviceId string)
param deviceId: 设备ID(Required)
func (*DeleteDeviceRequest) SetInstanceId ¶ added in v1.28.0
func (r *DeleteDeviceRequest) SetInstanceId(instanceId string)
param instanceId: 实例Id(Required)
func (*DeleteDeviceRequest) SetRegionId ¶ added in v1.28.0
func (r *DeleteDeviceRequest) SetRegionId(regionId string)
param regionId: 区域id(Required)
type DeleteDeviceResponse ¶ added in v1.28.0
type DeleteDeviceResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DeleteDeviceResult `json:"result"` }
type DeleteDeviceResult ¶ added in v1.28.0
type DeleteDeviceResult struct { }
type DeleteProductRequest ¶
type DeleteProductRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* IoT Engine实例ID信息 */ InstanceId string `json:"instanceId"` /* 产品Key */ ProductKey string `json:"productKey"` }
func NewDeleteProductRequest ¶
func NewDeleteProductRequest( regionId string, instanceId string, productKey string, ) *DeleteProductRequest
* param regionId: 地域ID (Required) * param instanceId: IoT Engine实例ID信息 (Required) * param productKey: 产品Key (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDeleteProductRequestWithAllParams ¶
func NewDeleteProductRequestWithAllParams( regionId string, instanceId string, productKey string, ) *DeleteProductRequest
* param regionId: 地域ID (Required) * param instanceId: IoT Engine实例ID信息 (Required) * param productKey: 产品Key (Required)
func NewDeleteProductRequestWithoutParam ¶
func NewDeleteProductRequestWithoutParam() *DeleteProductRequest
This constructor has better compatible ability when API parameters changed
func (DeleteProductRequest) GetRegionId ¶
func (r DeleteProductRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DeleteProductRequest) SetInstanceId ¶
func (r *DeleteProductRequest) SetInstanceId(instanceId string)
param instanceId: IoT Engine实例ID信息(Required)
func (*DeleteProductRequest) SetProductKey ¶
func (r *DeleteProductRequest) SetProductKey(productKey string)
param productKey: 产品Key(Required)
func (*DeleteProductRequest) SetRegionId ¶
func (r *DeleteProductRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DeleteProductResponse ¶
type DeleteProductResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DeleteProductResult `json:"result"` }
type DeleteProductResult ¶
type DeleteProductResult struct { }
type DeleteProductWithAdminRequest ¶ added in v1.28.0
type DeleteProductWithAdminRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* IoT Engine实例ID信息 */ InstanceId string `json:"instanceId"` /* 产品Key */ ProductKey string `json:"productKey"` }
func NewDeleteProductWithAdminRequest ¶ added in v1.28.0
func NewDeleteProductWithAdminRequest( regionId string, instanceId string, productKey string, ) *DeleteProductWithAdminRequest
* param regionId: 地域ID (Required) * param instanceId: IoT Engine实例ID信息 (Required) * param productKey: 产品Key (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDeleteProductWithAdminRequestWithAllParams ¶ added in v1.28.0
func NewDeleteProductWithAdminRequestWithAllParams( regionId string, instanceId string, productKey string, ) *DeleteProductWithAdminRequest
* param regionId: 地域ID (Required) * param instanceId: IoT Engine实例ID信息 (Required) * param productKey: 产品Key (Required)
func NewDeleteProductWithAdminRequestWithoutParam ¶ added in v1.28.0
func NewDeleteProductWithAdminRequestWithoutParam() *DeleteProductWithAdminRequest
This constructor has better compatible ability when API parameters changed
func (DeleteProductWithAdminRequest) GetRegionId ¶ added in v1.28.0
func (r DeleteProductWithAdminRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DeleteProductWithAdminRequest) SetInstanceId ¶ added in v1.28.0
func (r *DeleteProductWithAdminRequest) SetInstanceId(instanceId string)
param instanceId: IoT Engine实例ID信息(Required)
func (*DeleteProductWithAdminRequest) SetProductKey ¶ added in v1.28.0
func (r *DeleteProductWithAdminRequest) SetProductKey(productKey string)
param productKey: 产品Key(Required)
func (*DeleteProductWithAdminRequest) SetRegionId ¶ added in v1.28.0
func (r *DeleteProductWithAdminRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DeleteProductWithAdminResponse ¶ added in v1.28.0
type DeleteProductWithAdminResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DeleteProductWithAdminResult `json:"result"` }
type DeleteProductWithAdminResult ¶ added in v1.28.0
type DeleteProductWithAdminResult struct { }
type DescribeProductRequest ¶
type DescribeProductRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* IoT Engine实例ID信息 */ InstanceId string `json:"instanceId"` /* 产品Key */ ProductKey string `json:"productKey"` }
func NewDescribeProductRequest ¶
func NewDescribeProductRequest( regionId string, instanceId string, productKey string, ) *DescribeProductRequest
* param regionId: 地域ID (Required) * param instanceId: IoT Engine实例ID信息 (Required) * param productKey: 产品Key (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeProductRequestWithAllParams ¶
func NewDescribeProductRequestWithAllParams( regionId string, instanceId string, productKey string, ) *DescribeProductRequest
* param regionId: 地域ID (Required) * param instanceId: IoT Engine实例ID信息 (Required) * param productKey: 产品Key (Required)
func NewDescribeProductRequestWithoutParam ¶
func NewDescribeProductRequestWithoutParam() *DescribeProductRequest
This constructor has better compatible ability when API parameters changed
func (DescribeProductRequest) GetRegionId ¶
func (r DescribeProductRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeProductRequest) SetInstanceId ¶
func (r *DescribeProductRequest) SetInstanceId(instanceId string)
param instanceId: IoT Engine实例ID信息(Required)
func (*DescribeProductRequest) SetProductKey ¶
func (r *DescribeProductRequest) SetProductKey(productKey string)
param productKey: 产品Key(Required)
func (*DescribeProductRequest) SetRegionId ¶
func (r *DescribeProductRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DescribeProductResponse ¶
type DescribeProductResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeProductResult `json:"result"` }
type DescribeProductResult ¶
type DescribeProductResult struct { ProductName string `json:"productName"` ProductType int `json:"productType"` ProductKey string `json:"productKey"` ProductSecret string `json:"productSecret"` CreatedTime int64 `json:"createdTime"` DeviceCount int `json:"deviceCount"` DynamicRegister int `json:"dynamicRegister"` ProductDescription string `json:"productDescription"` TemplateName string `json:"templateName"` }
type DescribeProductTopicRequest ¶ added in v1.20.0
type DescribeProductTopicRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* IoTCore实例ID信息 */ InstanceId string `json:"instanceId"` /* 产品Key */ ProductKey string `json:"productKey"` /* 自定义topic唯一标识 */ TopicId string `json:"topicId"` }
func NewDescribeProductTopicRequest ¶ added in v1.20.0
func NewDescribeProductTopicRequest( regionId string, instanceId string, productKey string, topicId string, ) *DescribeProductTopicRequest
* param regionId: 地域ID (Required) * param instanceId: IoTCore实例ID信息 (Required) * param productKey: 产品Key (Required) * param topicId: 自定义topic唯一标识 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeProductTopicRequestWithAllParams ¶ added in v1.20.0
func NewDescribeProductTopicRequestWithAllParams( regionId string, instanceId string, productKey string, topicId string, ) *DescribeProductTopicRequest
* param regionId: 地域ID (Required) * param instanceId: IoTCore实例ID信息 (Required) * param productKey: 产品Key (Required) * param topicId: 自定义topic唯一标识 (Required)
func NewDescribeProductTopicRequestWithoutParam ¶ added in v1.20.0
func NewDescribeProductTopicRequestWithoutParam() *DescribeProductTopicRequest
This constructor has better compatible ability when API parameters changed
func (DescribeProductTopicRequest) GetRegionId ¶ added in v1.20.0
func (r DescribeProductTopicRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeProductTopicRequest) SetInstanceId ¶ added in v1.20.0
func (r *DescribeProductTopicRequest) SetInstanceId(instanceId string)
param instanceId: IoTCore实例ID信息(Required)
func (*DescribeProductTopicRequest) SetProductKey ¶ added in v1.20.0
func (r *DescribeProductTopicRequest) SetProductKey(productKey string)
param productKey: 产品Key(Required)
func (*DescribeProductTopicRequest) SetRegionId ¶ added in v1.20.0
func (r *DescribeProductTopicRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*DescribeProductTopicRequest) SetTopicId ¶ added in v1.20.0
func (r *DescribeProductTopicRequest) SetTopicId(topicId string)
param topicId: 自定义topic唯一标识(Required)
type DescribeProductTopicResponse ¶ added in v1.20.0
type DescribeProductTopicResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeProductTopicResult `json:"result"` }
type DescribeProductTopicResult ¶ added in v1.20.0
type DescribeProductTopicsRequest ¶ added in v1.20.0
type DescribeProductTopicsRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* IoTCore实例ID信息 */ InstanceId string `json:"instanceId"` /* 产品Key */ ProductKey string `json:"productKey"` /* 页码, 默认为1, 取值范围:[1,∞) (Optional) */ PageNumber *int `json:"pageNumber"` /* 分页大小,默认为10,取值范围:[10,100] (Optional) */ PageSize *int `json:"pageSize"` /* topicShortName-topic名称,模糊匹配,支持单个 (Optional) */ Filters []common.Filter `json:"filters"` }
func NewDescribeProductTopicsRequest ¶ added in v1.20.0
func NewDescribeProductTopicsRequest( regionId string, instanceId string, productKey string, ) *DescribeProductTopicsRequest
* param regionId: 地域ID (Required) * param instanceId: IoTCore实例ID信息 (Required) * param productKey: 产品Key (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeProductTopicsRequestWithAllParams ¶ added in v1.20.0
func NewDescribeProductTopicsRequestWithAllParams( regionId string, instanceId string, productKey string, pageNumber *int, pageSize *int, filters []common.Filter, ) *DescribeProductTopicsRequest
* param regionId: 地域ID (Required) * param instanceId: IoTCore实例ID信息 (Required) * param productKey: 产品Key (Required) * param pageNumber: 页码, 默认为1, 取值范围:[1,∞) (Optional) * param pageSize: 分页大小,默认为10,取值范围:[10,100] (Optional) * param filters: topicShortName-topic名称,模糊匹配,支持单个 (Optional)
func NewDescribeProductTopicsRequestWithoutParam ¶ added in v1.20.0
func NewDescribeProductTopicsRequestWithoutParam() *DescribeProductTopicsRequest
This constructor has better compatible ability when API parameters changed
func (DescribeProductTopicsRequest) GetRegionId ¶ added in v1.20.0
func (r DescribeProductTopicsRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeProductTopicsRequest) SetFilters ¶ added in v1.20.0
func (r *DescribeProductTopicsRequest) SetFilters(filters []common.Filter)
param filters: topicShortName-topic名称,模糊匹配,支持单个
(Optional)
func (*DescribeProductTopicsRequest) SetInstanceId ¶ added in v1.20.0
func (r *DescribeProductTopicsRequest) SetInstanceId(instanceId string)
param instanceId: IoTCore实例ID信息(Required)
func (*DescribeProductTopicsRequest) SetPageNumber ¶ added in v1.20.0
func (r *DescribeProductTopicsRequest) SetPageNumber(pageNumber int)
param pageNumber: 页码, 默认为1, 取值范围:[1,∞)(Optional)
func (*DescribeProductTopicsRequest) SetPageSize ¶ added in v1.20.0
func (r *DescribeProductTopicsRequest) SetPageSize(pageSize int)
param pageSize: 分页大小,默认为10,取值范围:[10,100](Optional)
func (*DescribeProductTopicsRequest) SetProductKey ¶ added in v1.20.0
func (r *DescribeProductTopicsRequest) SetProductKey(productKey string)
param productKey: 产品Key(Required)
func (*DescribeProductTopicsRequest) SetRegionId ¶ added in v1.20.0
func (r *DescribeProductTopicsRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DescribeProductTopicsResponse ¶ added in v1.20.0
type DescribeProductTopicsResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeProductTopicsResult `json:"result"` }
type DescribeProductTopicsResult ¶ added in v1.20.0
type DescribeProductTopicsResult struct { Page iotcore.PageinfoVO `json:"page"` ProductTopics []iotcore.ProductTopic `json:"productTopics"` }
type DescribeProductWithAdminRequest ¶ added in v1.28.0
type DescribeProductWithAdminRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* IoT Engine实例ID信息 */ InstanceId string `json:"instanceId"` /* 产品Key */ ProductKey string `json:"productKey"` }
func NewDescribeProductWithAdminRequest ¶ added in v1.28.0
func NewDescribeProductWithAdminRequest( regionId string, instanceId string, productKey string, ) *DescribeProductWithAdminRequest
* param regionId: 地域ID (Required) * param instanceId: IoT Engine实例ID信息 (Required) * param productKey: 产品Key (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeProductWithAdminRequestWithAllParams ¶ added in v1.28.0
func NewDescribeProductWithAdminRequestWithAllParams( regionId string, instanceId string, productKey string, ) *DescribeProductWithAdminRequest
* param regionId: 地域ID (Required) * param instanceId: IoT Engine实例ID信息 (Required) * param productKey: 产品Key (Required)
func NewDescribeProductWithAdminRequestWithoutParam ¶ added in v1.28.0
func NewDescribeProductWithAdminRequestWithoutParam() *DescribeProductWithAdminRequest
This constructor has better compatible ability when API parameters changed
func (DescribeProductWithAdminRequest) GetRegionId ¶ added in v1.28.0
func (r DescribeProductWithAdminRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeProductWithAdminRequest) SetInstanceId ¶ added in v1.28.0
func (r *DescribeProductWithAdminRequest) SetInstanceId(instanceId string)
param instanceId: IoT Engine实例ID信息(Required)
func (*DescribeProductWithAdminRequest) SetProductKey ¶ added in v1.28.0
func (r *DescribeProductWithAdminRequest) SetProductKey(productKey string)
param productKey: 产品Key(Required)
func (*DescribeProductWithAdminRequest) SetRegionId ¶ added in v1.28.0
func (r *DescribeProductWithAdminRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type DescribeProductWithAdminResponse ¶ added in v1.28.0
type DescribeProductWithAdminResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeProductWithAdminResult `json:"result"` }
type DescribeProductWithAdminResult ¶ added in v1.28.0
type DescribeProductWithAdminResult struct { ProductName string `json:"productName"` ProductType int `json:"productType"` ProductKey string `json:"productKey"` ProductSecret string `json:"productSecret"` CreatedTime int64 `json:"createdTime"` DeviceCount int `json:"deviceCount"` DynamicRegister int `json:"dynamicRegister"` ProductDescription string `json:"productDescription"` TemplateName string `json:"templateName"` }
type DescribeThingModelRequest ¶ added in v1.29.0
type DescribeThingModelRequest struct { core.JDCloudRequest /* 区域id */ RegionId string `json:"regionId"` /* 实例Id */ InstanceId string `json:"instanceId"` /* 物模型ID编号 */ ThingModelId string `json:"thingModelId"` /* 版本号。如果为空,则返回最新版本 (Optional) */ ThingModelVersion *string `json:"thingModelVersion"` }
func NewDescribeThingModelRequest ¶ added in v1.29.0
func NewDescribeThingModelRequest( regionId string, instanceId string, thingModelId string, ) *DescribeThingModelRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param thingModelId: 物模型ID编号 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeThingModelRequestWithAllParams ¶ added in v1.29.0
func NewDescribeThingModelRequestWithAllParams( regionId string, instanceId string, thingModelId string, thingModelVersion *string, ) *DescribeThingModelRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param thingModelId: 物模型ID编号 (Required) * param thingModelVersion: 版本号。如果为空,则返回最新版本 (Optional)
func NewDescribeThingModelRequestWithoutParam ¶ added in v1.29.0
func NewDescribeThingModelRequestWithoutParam() *DescribeThingModelRequest
This constructor has better compatible ability when API parameters changed
func (DescribeThingModelRequest) GetRegionId ¶ added in v1.29.0
func (r DescribeThingModelRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeThingModelRequest) SetInstanceId ¶ added in v1.29.0
func (r *DescribeThingModelRequest) SetInstanceId(instanceId string)
param instanceId: 实例Id(Required)
func (*DescribeThingModelRequest) SetRegionId ¶ added in v1.29.0
func (r *DescribeThingModelRequest) SetRegionId(regionId string)
param regionId: 区域id(Required)
func (*DescribeThingModelRequest) SetThingModelId ¶ added in v1.29.0
func (r *DescribeThingModelRequest) SetThingModelId(thingModelId string)
param thingModelId: 物模型ID编号(Required)
func (*DescribeThingModelRequest) SetThingModelVersion ¶ added in v1.29.0
func (r *DescribeThingModelRequest) SetThingModelVersion(thingModelVersion string)
param thingModelVersion: 版本号。如果为空,则返回最新版本(Optional)
type DescribeThingModelResponse ¶ added in v1.29.0
type DescribeThingModelResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeThingModelResult `json:"result"` }
type DescribeThingModelResult ¶ added in v1.29.0
type DescribeThingModelResult struct {
ThingModelRespTO iotcore.ThingModelRespTO `json:"thingModelRespTO"`
}
type DescribeThingShadowRequest ¶
type DescribeThingShadowRequest struct { core.JDCloudRequest /* 设备归属的实例ID */ InstanceId string `json:"instanceId"` /* 设备归属的实例所在区域 */ RegionId string `json:"regionId"` /* 设备唯一标识 */ Identifier string `json:"identifier"` /* 产品Key */ ProductKey string `json:"productKey"` }
func NewDescribeThingShadowRequest ¶
func NewDescribeThingShadowRequest( instanceId string, regionId string, identifier string, productKey string, ) *DescribeThingShadowRequest
* param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param identifier: 设备唯一标识 (Required) * param productKey: 产品Key (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDescribeThingShadowRequestWithAllParams ¶
func NewDescribeThingShadowRequestWithAllParams( instanceId string, regionId string, identifier string, productKey string, ) *DescribeThingShadowRequest
* param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param identifier: 设备唯一标识 (Required) * param productKey: 产品Key (Required)
func NewDescribeThingShadowRequestWithoutParam ¶
func NewDescribeThingShadowRequestWithoutParam() *DescribeThingShadowRequest
This constructor has better compatible ability when API parameters changed
func (DescribeThingShadowRequest) GetRegionId ¶
func (r DescribeThingShadowRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DescribeThingShadowRequest) SetIdentifier ¶
func (r *DescribeThingShadowRequest) SetIdentifier(identifier string)
param identifier: 设备唯一标识(Required)
func (*DescribeThingShadowRequest) SetInstanceId ¶
func (r *DescribeThingShadowRequest) SetInstanceId(instanceId string)
param instanceId: 设备归属的实例ID(Required)
func (*DescribeThingShadowRequest) SetProductKey ¶
func (r *DescribeThingShadowRequest) SetProductKey(productKey string)
param productKey: 产品Key(Required)
func (*DescribeThingShadowRequest) SetRegionId ¶
func (r *DescribeThingShadowRequest) SetRegionId(regionId string)
param regionId: 设备归属的实例所在区域(Required)
type DescribeThingShadowResponse ¶
type DescribeThingShadowResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DescribeThingShadowResult `json:"result"` }
type DevicePropertySetRequest ¶ added in v1.28.0
type DevicePropertySetRequest struct { core.JDCloudRequest /* 区域id */ RegionId string `json:"regionId"` /* 实例Id */ InstanceId string `json:"instanceId"` /* 设备ID */ DevicePropertyVO *iotcore.DevicePropertyVO `json:"devicePropertyVO"` }
func NewDevicePropertySetRequest ¶ added in v1.28.0
func NewDevicePropertySetRequest( regionId string, instanceId string, devicePropertyVO *iotcore.DevicePropertyVO, ) *DevicePropertySetRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param devicePropertyVO: 设备ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDevicePropertySetRequestWithAllParams ¶ added in v1.28.0
func NewDevicePropertySetRequestWithAllParams( regionId string, instanceId string, devicePropertyVO *iotcore.DevicePropertyVO, ) *DevicePropertySetRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param devicePropertyVO: 设备ID (Required)
func NewDevicePropertySetRequestWithoutParam ¶ added in v1.28.0
func NewDevicePropertySetRequestWithoutParam() *DevicePropertySetRequest
This constructor has better compatible ability when API parameters changed
func (DevicePropertySetRequest) GetRegionId ¶ added in v1.28.0
func (r DevicePropertySetRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DevicePropertySetRequest) SetDevicePropertyVO ¶ added in v1.28.0
func (r *DevicePropertySetRequest) SetDevicePropertyVO(devicePropertyVO *iotcore.DevicePropertyVO)
param devicePropertyVO: 设备ID(Required)
func (*DevicePropertySetRequest) SetInstanceId ¶ added in v1.28.0
func (r *DevicePropertySetRequest) SetInstanceId(instanceId string)
param instanceId: 实例Id(Required)
func (*DevicePropertySetRequest) SetRegionId ¶ added in v1.28.0
func (r *DevicePropertySetRequest) SetRegionId(regionId string)
param regionId: 区域id(Required)
type DevicePropertySetResponse ¶ added in v1.28.0
type DevicePropertySetResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DevicePropertySetResult `json:"result"` }
type DevicePropertySetResult ¶ added in v1.28.0
type DevicePropertySetResult struct { }
type DeviceQueryRequest ¶ added in v1.28.0
type DeviceQueryRequest struct { core.JDCloudRequest /* 区域id */ RegionId string `json:"regionId"` /* 实例Id */ InstanceId string `json:"instanceId"` /* 设备ID */ DeviceId string `json:"deviceId"` }
func NewDeviceQueryRequest ¶ added in v1.28.0
func NewDeviceQueryRequest( regionId string, instanceId string, deviceId string, ) *DeviceQueryRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param deviceId: 设备ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDeviceQueryRequestWithAllParams ¶ added in v1.28.0
func NewDeviceQueryRequestWithAllParams( regionId string, instanceId string, deviceId string, ) *DeviceQueryRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param deviceId: 设备ID (Required)
func NewDeviceQueryRequestWithoutParam ¶ added in v1.28.0
func NewDeviceQueryRequestWithoutParam() *DeviceQueryRequest
This constructor has better compatible ability when API parameters changed
func (DeviceQueryRequest) GetRegionId ¶ added in v1.28.0
func (r DeviceQueryRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DeviceQueryRequest) SetDeviceId ¶ added in v1.28.0
func (r *DeviceQueryRequest) SetDeviceId(deviceId string)
param deviceId: 设备ID(Required)
func (*DeviceQueryRequest) SetInstanceId ¶ added in v1.28.0
func (r *DeviceQueryRequest) SetInstanceId(instanceId string)
param instanceId: 实例Id(Required)
func (*DeviceQueryRequest) SetRegionId ¶ added in v1.28.0
func (r *DeviceQueryRequest) SetRegionId(regionId string)
param regionId: 区域id(Required)
type DeviceQueryResponse ¶ added in v1.28.0
type DeviceQueryResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DeviceQueryResult `json:"result"` }
type DeviceQueryResult ¶ added in v1.28.0
type DeviceQueryResult struct {
DeviceInfoVO iotcore.DeviceInfoVO `json:"deviceInfoVO"`
}
type DeviceRegisterRequest ¶ added in v1.28.0
type DeviceRegisterRequest struct { core.JDCloudRequest /* 区域id */ RegionId string `json:"regionId"` /* 实例Id */ InstanceId string `json:"instanceId"` /* 物模型ID编号 */ DeviceInfoVO *iotcore.DeviceInfoVO `json:"deviceInfoVO"` }
func NewDeviceRegisterRequest ¶ added in v1.28.0
func NewDeviceRegisterRequest( regionId string, instanceId string, deviceInfoVO *iotcore.DeviceInfoVO, ) *DeviceRegisterRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param deviceInfoVO: 物模型ID编号 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDeviceRegisterRequestWithAllParams ¶ added in v1.28.0
func NewDeviceRegisterRequestWithAllParams( regionId string, instanceId string, deviceInfoVO *iotcore.DeviceInfoVO, ) *DeviceRegisterRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param deviceInfoVO: 物模型ID编号 (Required)
func NewDeviceRegisterRequestWithoutParam ¶ added in v1.28.0
func NewDeviceRegisterRequestWithoutParam() *DeviceRegisterRequest
This constructor has better compatible ability when API parameters changed
func (DeviceRegisterRequest) GetRegionId ¶ added in v1.28.0
func (r DeviceRegisterRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DeviceRegisterRequest) SetDeviceInfoVO ¶ added in v1.28.0
func (r *DeviceRegisterRequest) SetDeviceInfoVO(deviceInfoVO *iotcore.DeviceInfoVO)
param deviceInfoVO: 物模型ID编号(Required)
func (*DeviceRegisterRequest) SetInstanceId ¶ added in v1.28.0
func (r *DeviceRegisterRequest) SetInstanceId(instanceId string)
param instanceId: 实例Id(Required)
func (*DeviceRegisterRequest) SetRegionId ¶ added in v1.28.0
func (r *DeviceRegisterRequest) SetRegionId(regionId string)
param regionId: 区域id(Required)
type DeviceRegisterResponse ¶ added in v1.28.0
type DeviceRegisterResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DeviceRegisterResult `json:"result"` }
type DeviceRegisterResult ¶ added in v1.28.0
type DeviceRegisterResult struct {
DeviceInfoVO iotcore.DeviceInfoVO `json:"deviceInfoVO"`
}
type DownloadCertificateRequest ¶ added in v1.28.0
type DownloadCertificateRequest struct { core.JDCloudRequest /* 区域id */ RegionId string `json:"regionId"` /* 实例Id */ InstanceId string `json:"instanceId"` /* 设备ID */ DeviceId string `json:"deviceId"` }
func NewDownloadCertificateRequest ¶ added in v1.28.0
func NewDownloadCertificateRequest( regionId string, instanceId string, deviceId string, ) *DownloadCertificateRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param deviceId: 设备ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewDownloadCertificateRequestWithAllParams ¶ added in v1.28.0
func NewDownloadCertificateRequestWithAllParams( regionId string, instanceId string, deviceId string, ) *DownloadCertificateRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param deviceId: 设备ID (Required)
func NewDownloadCertificateRequestWithoutParam ¶ added in v1.28.0
func NewDownloadCertificateRequestWithoutParam() *DownloadCertificateRequest
This constructor has better compatible ability when API parameters changed
func (DownloadCertificateRequest) GetRegionId ¶ added in v1.28.0
func (r DownloadCertificateRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*DownloadCertificateRequest) SetDeviceId ¶ added in v1.28.0
func (r *DownloadCertificateRequest) SetDeviceId(deviceId string)
param deviceId: 设备ID(Required)
func (*DownloadCertificateRequest) SetInstanceId ¶ added in v1.28.0
func (r *DownloadCertificateRequest) SetInstanceId(instanceId string)
param instanceId: 实例Id(Required)
func (*DownloadCertificateRequest) SetRegionId ¶ added in v1.28.0
func (r *DownloadCertificateRequest) SetRegionId(regionId string)
param regionId: 区域id(Required)
type DownloadCertificateResponse ¶ added in v1.28.0
type DownloadCertificateResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result DownloadCertificateResult `json:"result"` }
type DownloadCertificateResult ¶ added in v1.28.0
type ElevatorOperatingStatusRequest ¶ added in v1.28.0
type ElevatorOperatingStatusRequest struct { core.JDCloudRequest /* Hub实例Id */ InstanceId string `json:"instanceId"` /* 区域Id */ RegionId string `json:"regionId"` /* 电梯连接码 (Optional) */ Identifier *string `json:"identifier"` }
func NewElevatorOperatingStatusRequest ¶ added in v1.28.0
func NewElevatorOperatingStatusRequest( instanceId string, regionId string, ) *ElevatorOperatingStatusRequest
* param instanceId: Hub实例Id (Required) * param regionId: 区域Id (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewElevatorOperatingStatusRequestWithAllParams ¶ added in v1.28.0
func NewElevatorOperatingStatusRequestWithAllParams( instanceId string, regionId string, identifier *string, ) *ElevatorOperatingStatusRequest
* param instanceId: Hub实例Id (Required) * param regionId: 区域Id (Required) * param identifier: 电梯连接码 (Optional)
func NewElevatorOperatingStatusRequestWithoutParam ¶ added in v1.28.0
func NewElevatorOperatingStatusRequestWithoutParam() *ElevatorOperatingStatusRequest
This constructor has better compatible ability when API parameters changed
func (ElevatorOperatingStatusRequest) GetRegionId ¶ added in v1.28.0
func (r ElevatorOperatingStatusRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ElevatorOperatingStatusRequest) SetIdentifier ¶ added in v1.28.0
func (r *ElevatorOperatingStatusRequest) SetIdentifier(identifier string)
param identifier: 电梯连接码(Optional)
func (*ElevatorOperatingStatusRequest) SetInstanceId ¶ added in v1.28.0
func (r *ElevatorOperatingStatusRequest) SetInstanceId(instanceId string)
param instanceId: Hub实例Id(Required)
func (*ElevatorOperatingStatusRequest) SetRegionId ¶ added in v1.28.0
func (r *ElevatorOperatingStatusRequest) SetRegionId(regionId string)
param regionId: 区域Id(Required)
type ElevatorOperatingStatusResponse ¶ added in v1.28.0
type ElevatorOperatingStatusResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ElevatorOperatingStatusResult `json:"result"` }
type ElevatorOperatingStatusResult ¶ added in v1.28.0
type ElevatorOperatingStatusResult struct { Data []iotcore.RegisterValue `json:"data"` TotalCount int `json:"totalCount"` }
type EventListRequest ¶ added in v1.28.0
type EventListRequest struct { core.JDCloudRequest /* 区域id */ RegionId string `json:"regionId"` /* 实例Id */ InstanceId string `json:"instanceId"` /* 事件查询请求 */ EventReportPageBo *iotcore.EventReportPageBo `json:"eventReportPageBo"` }
func NewEventListRequest ¶ added in v1.28.0
func NewEventListRequest( regionId string, instanceId string, eventReportPageBo *iotcore.EventReportPageBo, ) *EventListRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param eventReportPageBo: 事件查询请求 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewEventListRequestWithAllParams ¶ added in v1.28.0
func NewEventListRequestWithAllParams( regionId string, instanceId string, eventReportPageBo *iotcore.EventReportPageBo, ) *EventListRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param eventReportPageBo: 事件查询请求 (Required)
func NewEventListRequestWithoutParam ¶ added in v1.28.0
func NewEventListRequestWithoutParam() *EventListRequest
This constructor has better compatible ability when API parameters changed
func (EventListRequest) GetRegionId ¶ added in v1.28.0
func (r EventListRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*EventListRequest) SetEventReportPageBo ¶ added in v1.28.0
func (r *EventListRequest) SetEventReportPageBo(eventReportPageBo *iotcore.EventReportPageBo)
param eventReportPageBo: 事件查询请求(Required)
func (*EventListRequest) SetInstanceId ¶ added in v1.28.0
func (r *EventListRequest) SetInstanceId(instanceId string)
param instanceId: 实例Id(Required)
func (*EventListRequest) SetRegionId ¶ added in v1.28.0
func (r *EventListRequest) SetRegionId(regionId string)
param regionId: 区域id(Required)
type EventListResponse ¶ added in v1.28.0
type EventListResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result EventListResult `json:"result"` }
type EventListResult ¶ added in v1.28.0
type EventListResult struct { PageSize int `json:"pageSize"` CurrentPage int `json:"currentPage"` TotalCount int `json:"totalCount"` Data []iotcore.EventReportVo `json:"data"` }
type ExportThingModelRequest ¶
type ExportThingModelRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* IoT Hub实例ID信息 */ InstanceId string `json:"instanceId"` /* 产品Key */ ProductKey string `json:"productKey"` }
func NewExportThingModelRequest ¶
func NewExportThingModelRequest( regionId string, instanceId string, productKey string, ) *ExportThingModelRequest
* param regionId: 地域ID (Required) * param instanceId: IoT Hub实例ID信息 (Required) * param productKey: 产品Key (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewExportThingModelRequestWithAllParams ¶
func NewExportThingModelRequestWithAllParams( regionId string, instanceId string, productKey string, ) *ExportThingModelRequest
* param regionId: 地域ID (Required) * param instanceId: IoT Hub实例ID信息 (Required) * param productKey: 产品Key (Required)
func NewExportThingModelRequestWithoutParam ¶
func NewExportThingModelRequestWithoutParam() *ExportThingModelRequest
This constructor has better compatible ability when API parameters changed
func (ExportThingModelRequest) GetRegionId ¶
func (r ExportThingModelRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ExportThingModelRequest) SetInstanceId ¶
func (r *ExportThingModelRequest) SetInstanceId(instanceId string)
param instanceId: IoT Hub实例ID信息(Required)
func (*ExportThingModelRequest) SetProductKey ¶
func (r *ExportThingModelRequest) SetProductKey(productKey string)
param productKey: 产品Key(Required)
func (*ExportThingModelRequest) SetRegionId ¶
func (r *ExportThingModelRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type ExportThingModelResponse ¶
type ExportThingModelResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ExportThingModelResult `json:"result"` }
type ExportThingModelResult ¶
type ExportThingModelResult struct {
ThingModel interface{} `json:"thingModel"`
}
type FunctionListRequest ¶ added in v1.28.0
type FunctionListRequest struct { core.JDCloudRequest /* 区域id */ RegionId string `json:"regionId"` /* 实例Id */ InstanceId string `json:"instanceId"` /* 方法查询请求对象 */ FunctionCallPageBo *iotcore.FunctionCallPageBo `json:"functionCallPageBo"` }
func NewFunctionListRequest ¶ added in v1.28.0
func NewFunctionListRequest( regionId string, instanceId string, functionCallPageBo *iotcore.FunctionCallPageBo, ) *FunctionListRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param functionCallPageBo: 方法查询请求对象 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewFunctionListRequestWithAllParams ¶ added in v1.28.0
func NewFunctionListRequestWithAllParams( regionId string, instanceId string, functionCallPageBo *iotcore.FunctionCallPageBo, ) *FunctionListRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param functionCallPageBo: 方法查询请求对象 (Required)
func NewFunctionListRequestWithoutParam ¶ added in v1.28.0
func NewFunctionListRequestWithoutParam() *FunctionListRequest
This constructor has better compatible ability when API parameters changed
func (FunctionListRequest) GetRegionId ¶ added in v1.28.0
func (r FunctionListRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*FunctionListRequest) SetFunctionCallPageBo ¶ added in v1.28.0
func (r *FunctionListRequest) SetFunctionCallPageBo(functionCallPageBo *iotcore.FunctionCallPageBo)
param functionCallPageBo: 方法查询请求对象(Required)
func (*FunctionListRequest) SetInstanceId ¶ added in v1.28.0
func (r *FunctionListRequest) SetInstanceId(instanceId string)
param instanceId: 实例Id(Required)
func (*FunctionListRequest) SetRegionId ¶ added in v1.28.0
func (r *FunctionListRequest) SetRegionId(regionId string)
param regionId: 区域id(Required)
type FunctionListResponse ¶ added in v1.28.0
type FunctionListResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result FunctionListResult `json:"result"` }
type FunctionListResult ¶ added in v1.28.0
type FunctionListResult struct { PageSize int `json:"pageSize"` CurrentPage int `json:"currentPage"` TotalCount int `json:"totalCount"` Data []iotcore.FunctionCallRecordVo `json:"data"` }
type GetPropertySnapshotRequest ¶ added in v1.30.0
type GetPropertySnapshotRequest struct { core.JDCloudRequest /* 区域id */ RegionId string `json:"regionId"` /* 实例Id */ InstanceId string `json:"instanceId"` /* 方法查询请求 */ DeviceSnapshotRequestVO *iotcore.DeviceSnapshotRequestVO `json:"deviceSnapshotRequestVO"` }
func NewGetPropertySnapshotRequest ¶ added in v1.30.0
func NewGetPropertySnapshotRequest( regionId string, instanceId string, deviceSnapshotRequestVO *iotcore.DeviceSnapshotRequestVO, ) *GetPropertySnapshotRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param deviceSnapshotRequestVO: 方法查询请求 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewGetPropertySnapshotRequestWithAllParams ¶ added in v1.30.0
func NewGetPropertySnapshotRequestWithAllParams( regionId string, instanceId string, deviceSnapshotRequestVO *iotcore.DeviceSnapshotRequestVO, ) *GetPropertySnapshotRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param deviceSnapshotRequestVO: 方法查询请求 (Required)
func NewGetPropertySnapshotRequestWithoutParam ¶ added in v1.30.0
func NewGetPropertySnapshotRequestWithoutParam() *GetPropertySnapshotRequest
This constructor has better compatible ability when API parameters changed
func (GetPropertySnapshotRequest) GetRegionId ¶ added in v1.30.0
func (r GetPropertySnapshotRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*GetPropertySnapshotRequest) SetDeviceSnapshotRequestVO ¶ added in v1.30.0
func (r *GetPropertySnapshotRequest) SetDeviceSnapshotRequestVO(deviceSnapshotRequestVO *iotcore.DeviceSnapshotRequestVO)
param deviceSnapshotRequestVO: 方法查询请求(Required)
func (*GetPropertySnapshotRequest) SetInstanceId ¶ added in v1.30.0
func (r *GetPropertySnapshotRequest) SetInstanceId(instanceId string)
param instanceId: 实例Id(Required)
func (*GetPropertySnapshotRequest) SetRegionId ¶ added in v1.30.0
func (r *GetPropertySnapshotRequest) SetRegionId(regionId string)
param regionId: 区域id(Required)
type GetPropertySnapshotResponse ¶ added in v1.30.0
type GetPropertySnapshotResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result GetPropertySnapshotResult `json:"result"` }
type GetPropertySnapshotResult ¶ added in v1.30.0
type GetPropertySnapshotResult struct { }
type ImportThingModelRequest ¶
type ImportThingModelRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* IoT Hub实例ID信息 */ InstanceId string `json:"instanceId"` /* 产品Key */ ProductKey string `json:"productKey"` /* 物模型JSON */ ThingModel interface{} `json:"thingModel"` }
func NewImportThingModelRequest ¶
func NewImportThingModelRequest( regionId string, instanceId string, productKey string, thingModel interface{}, ) *ImportThingModelRequest
* param regionId: 地域ID (Required) * param instanceId: IoT Hub实例ID信息 (Required) * param productKey: 产品Key (Required) * param thingModel: 物模型JSON (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewImportThingModelRequestWithAllParams ¶
func NewImportThingModelRequestWithAllParams( regionId string, instanceId string, productKey string, thingModel interface{}, ) *ImportThingModelRequest
* param regionId: 地域ID (Required) * param instanceId: IoT Hub实例ID信息 (Required) * param productKey: 产品Key (Required) * param thingModel: 物模型JSON (Required)
func NewImportThingModelRequestWithoutParam ¶
func NewImportThingModelRequestWithoutParam() *ImportThingModelRequest
This constructor has better compatible ability when API parameters changed
func (ImportThingModelRequest) GetRegionId ¶
func (r ImportThingModelRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ImportThingModelRequest) SetInstanceId ¶
func (r *ImportThingModelRequest) SetInstanceId(instanceId string)
param instanceId: IoT Hub实例ID信息(Required)
func (*ImportThingModelRequest) SetProductKey ¶
func (r *ImportThingModelRequest) SetProductKey(productKey string)
param productKey: 产品Key(Required)
func (*ImportThingModelRequest) SetRegionId ¶
func (r *ImportThingModelRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
func (*ImportThingModelRequest) SetThingModel ¶
func (r *ImportThingModelRequest) SetThingModel(thingModel interface{})
param thingModel: 物模型JSON(Required)
type ImportThingModelResponse ¶
type ImportThingModelResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ImportThingModelResult `json:"result"` }
type ImportThingModelResult ¶
type ImportThingModelResult struct { }
type InvokeFunctionRequest ¶ added in v1.28.0
type InvokeFunctionRequest struct { core.JDCloudRequest /* 区域id */ RegionId string `json:"regionId"` /* 实例Id */ InstanceId string `json:"instanceId"` /* 设备ID */ DeviceFunctionVO *iotcore.DeviceFunctionVO `json:"deviceFunctionVO"` }
func NewInvokeFunctionRequest ¶ added in v1.28.0
func NewInvokeFunctionRequest( regionId string, instanceId string, deviceFunctionVO *iotcore.DeviceFunctionVO, ) *InvokeFunctionRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param deviceFunctionVO: 设备ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewInvokeFunctionRequestWithAllParams ¶ added in v1.28.0
func NewInvokeFunctionRequestWithAllParams( regionId string, instanceId string, deviceFunctionVO *iotcore.DeviceFunctionVO, ) *InvokeFunctionRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param deviceFunctionVO: 设备ID (Required)
func NewInvokeFunctionRequestWithoutParam ¶ added in v1.28.0
func NewInvokeFunctionRequestWithoutParam() *InvokeFunctionRequest
This constructor has better compatible ability when API parameters changed
func (InvokeFunctionRequest) GetRegionId ¶ added in v1.28.0
func (r InvokeFunctionRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*InvokeFunctionRequest) SetDeviceFunctionVO ¶ added in v1.28.0
func (r *InvokeFunctionRequest) SetDeviceFunctionVO(deviceFunctionVO *iotcore.DeviceFunctionVO)
param deviceFunctionVO: 设备ID(Required)
func (*InvokeFunctionRequest) SetInstanceId ¶ added in v1.28.0
func (r *InvokeFunctionRequest) SetInstanceId(instanceId string)
param instanceId: 实例Id(Required)
func (*InvokeFunctionRequest) SetRegionId ¶ added in v1.28.0
func (r *InvokeFunctionRequest) SetRegionId(regionId string)
param regionId: 区域id(Required)
type InvokeFunctionResponse ¶ added in v1.28.0
type InvokeFunctionResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result InvokeFunctionResult `json:"result"` }
type InvokeFunctionResult ¶ added in v1.28.0
type InvokeFunctionResult struct { }
type InvokeThingServiceRequest ¶
type InvokeThingServiceRequest struct { core.JDCloudRequest /* 设备归属的实例ID */ InstanceId string `json:"instanceId"` /* 设备归属的实例所在区域 */ RegionId string `json:"regionId"` /* 设备唯一标识 */ Identifier string `json:"identifier"` /* 产品Key */ ProductKey string `json:"productKey"` /* 服务名称 */ Name string `json:"name"` /* 输入参数,object的key为参数名称,value为参数值 (Optional) */ Input *interface{} `json:"input"` /* 回调spring的bean的名称 (Optional) */ CallbackBeanName *string `json:"callbackBeanName"` }
func NewInvokeThingServiceRequest ¶
func NewInvokeThingServiceRequest( instanceId string, regionId string, identifier string, productKey string, name string, ) *InvokeThingServiceRequest
* param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param identifier: 设备唯一标识 (Required) * param productKey: 产品Key (Required) * param name: 服务名称 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewInvokeThingServiceRequestWithAllParams ¶
func NewInvokeThingServiceRequestWithAllParams( instanceId string, regionId string, identifier string, productKey string, name string, input *interface{}, callbackBeanName *string, ) *InvokeThingServiceRequest
* param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param identifier: 设备唯一标识 (Required) * param productKey: 产品Key (Required) * param name: 服务名称 (Required) * param input: 输入参数,object的key为参数名称,value为参数值 (Optional) * param callbackBeanName: 回调spring的bean的名称 (Optional)
func NewInvokeThingServiceRequestWithoutParam ¶
func NewInvokeThingServiceRequestWithoutParam() *InvokeThingServiceRequest
This constructor has better compatible ability when API parameters changed
func (InvokeThingServiceRequest) GetRegionId ¶
func (r InvokeThingServiceRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*InvokeThingServiceRequest) SetCallbackBeanName ¶ added in v1.13.0
func (r *InvokeThingServiceRequest) SetCallbackBeanName(callbackBeanName string)
param callbackBeanName: 回调spring的bean的名称(Optional)
func (*InvokeThingServiceRequest) SetIdentifier ¶
func (r *InvokeThingServiceRequest) SetIdentifier(identifier string)
param identifier: 设备唯一标识(Required)
func (*InvokeThingServiceRequest) SetInput ¶
func (r *InvokeThingServiceRequest) SetInput(input interface{})
param input: 输入参数,object的key为参数名称,value为参数值(Optional)
func (*InvokeThingServiceRequest) SetInstanceId ¶
func (r *InvokeThingServiceRequest) SetInstanceId(instanceId string)
param instanceId: 设备归属的实例ID(Required)
func (*InvokeThingServiceRequest) SetName ¶
func (r *InvokeThingServiceRequest) SetName(name string)
param name: 服务名称(Required)
func (*InvokeThingServiceRequest) SetProductKey ¶
func (r *InvokeThingServiceRequest) SetProductKey(productKey string)
param productKey: 产品Key(Required)
func (*InvokeThingServiceRequest) SetRegionId ¶
func (r *InvokeThingServiceRequest) SetRegionId(regionId string)
param regionId: 设备归属的实例所在区域(Required)
type InvokeThingServiceResponse ¶
type InvokeThingServiceResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result InvokeThingServiceResult `json:"result"` }
type InvokeThingServiceResult ¶
type InvokeThingServiceResult struct {
MsgId string `json:"msgId"`
}
type InvokeThingTopicRequest ¶ added in v1.13.0
type InvokeThingTopicRequest struct { core.JDCloudRequest /* 设备归属的实例ID */ InstanceId string `json:"instanceId"` /* 设备归属的实例所在区域 */ RegionId string `json:"regionId"` /* 设备唯一标识 */ Identifier string `json:"identifier"` /* 产品Key */ ProductKey string `json:"productKey"` /* Topic如/user/{productKey}/{identifier}/topicShortName 不支持系统Topic */ TopicShortName string `json:"topicShortName"` /* 要发送的消息主体 */ TopicMessage string `json:"topicMessage"` }
func NewInvokeThingTopicRequest ¶ added in v1.13.0
func NewInvokeThingTopicRequest( instanceId string, regionId string, identifier string, productKey string, topicShortName string, topicMessage string, ) *InvokeThingTopicRequest
- param instanceId: 设备归属的实例ID (Required)
- param regionId: 设备归属的实例所在区域 (Required)
- param identifier: 设备唯一标识 (Required)
- param productKey: 产品Key (Required)
- param topicShortName: Topic如/user/{productKey}/{identifier}/topicShortName
不支持系统Topic
(Required) * param topicMessage: 要发送的消息主体 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewInvokeThingTopicRequestWithAllParams ¶ added in v1.13.0
func NewInvokeThingTopicRequestWithAllParams( instanceId string, regionId string, identifier string, productKey string, topicShortName string, topicMessage string, ) *InvokeThingTopicRequest
- param instanceId: 设备归属的实例ID (Required)
- param regionId: 设备归属的实例所在区域 (Required)
- param identifier: 设备唯一标识 (Required)
- param productKey: 产品Key (Required)
- param topicShortName: Topic如/user/{productKey}/{identifier}/topicShortName
不支持系统Topic
(Required) * param topicMessage: 要发送的消息主体 (Required)
func NewInvokeThingTopicRequestWithoutParam ¶ added in v1.13.0
func NewInvokeThingTopicRequestWithoutParam() *InvokeThingTopicRequest
This constructor has better compatible ability when API parameters changed
func (InvokeThingTopicRequest) GetRegionId ¶ added in v1.13.0
func (r InvokeThingTopicRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*InvokeThingTopicRequest) SetIdentifier ¶ added in v1.13.0
func (r *InvokeThingTopicRequest) SetIdentifier(identifier string)
param identifier: 设备唯一标识(Required)
func (*InvokeThingTopicRequest) SetInstanceId ¶ added in v1.13.0
func (r *InvokeThingTopicRequest) SetInstanceId(instanceId string)
param instanceId: 设备归属的实例ID(Required)
func (*InvokeThingTopicRequest) SetProductKey ¶ added in v1.13.0
func (r *InvokeThingTopicRequest) SetProductKey(productKey string)
param productKey: 产品Key(Required)
func (*InvokeThingTopicRequest) SetRegionId ¶ added in v1.13.0
func (r *InvokeThingTopicRequest) SetRegionId(regionId string)
param regionId: 设备归属的实例所在区域(Required)
func (*InvokeThingTopicRequest) SetTopicMessage ¶ added in v1.13.0
func (r *InvokeThingTopicRequest) SetTopicMessage(topicMessage string)
param topicMessage: 要发送的消息主体(Required)
func (*InvokeThingTopicRequest) SetTopicShortName ¶ added in v1.13.0
func (r *InvokeThingTopicRequest) SetTopicShortName(topicShortName string)
param topicShortName: Topic如/user/{productKey}/{identifier}/topicShortName
不支持系统Topic (Required)
type InvokeThingTopicResponse ¶ added in v1.13.0
type InvokeThingTopicResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result InvokeThingTopicResult `json:"result"` }
type InvokeThingTopicResult ¶ added in v1.13.0
type InvokeThingTopicResult struct {
MsgId string `json:"msgId"`
}
type ListProductAbilitiesRequest ¶
type ListProductAbilitiesRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* IoT Hub实例ID信息 */ InstanceId string `json:"instanceId"` /* 产品Key */ ProductKey string `json:"productKey"` /* 页码, 默认为1, 取值范围:[1,∞) (Optional) */ PageNumber *int `json:"pageNumber"` /* 分页大小,默认为10,取值范围:[10,100] (Optional) */ PageSize *int `json:"pageSize"` /* abilityName-功能名称,精确匹配 abilityType-功能类型,精确匹配 (Optional) */ Filters []common.Filter `json:"filters"` }
func NewListProductAbilitiesRequest ¶
func NewListProductAbilitiesRequest( regionId string, instanceId string, productKey string, ) *ListProductAbilitiesRequest
* param regionId: 地域ID (Required) * param instanceId: IoT Hub实例ID信息 (Required) * param productKey: 产品Key (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewListProductAbilitiesRequestWithAllParams ¶
func NewListProductAbilitiesRequestWithAllParams( regionId string, instanceId string, productKey string, pageNumber *int, pageSize *int, filters []common.Filter, ) *ListProductAbilitiesRequest
- param regionId: 地域ID (Required)
- param instanceId: IoT Hub实例ID信息 (Required)
- param productKey: 产品Key (Required)
- param pageNumber: 页码, 默认为1, 取值范围:[1,∞) (Optional)
- param pageSize: 分页大小,默认为10,取值范围:[10,100] (Optional)
- param filters: abilityName-功能名称,精确匹配
abilityType-功能类型,精确匹配
(Optional)
func NewListProductAbilitiesRequestWithoutParam ¶
func NewListProductAbilitiesRequestWithoutParam() *ListProductAbilitiesRequest
This constructor has better compatible ability when API parameters changed
func (ListProductAbilitiesRequest) GetRegionId ¶
func (r ListProductAbilitiesRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ListProductAbilitiesRequest) SetFilters ¶
func (r *ListProductAbilitiesRequest) SetFilters(filters []common.Filter)
param filters: abilityName-功能名称,精确匹配
abilityType-功能类型,精确匹配 (Optional)
func (*ListProductAbilitiesRequest) SetInstanceId ¶
func (r *ListProductAbilitiesRequest) SetInstanceId(instanceId string)
param instanceId: IoT Hub实例ID信息(Required)
func (*ListProductAbilitiesRequest) SetPageNumber ¶
func (r *ListProductAbilitiesRequest) SetPageNumber(pageNumber int)
param pageNumber: 页码, 默认为1, 取值范围:[1,∞)(Optional)
func (*ListProductAbilitiesRequest) SetPageSize ¶
func (r *ListProductAbilitiesRequest) SetPageSize(pageSize int)
param pageSize: 分页大小,默认为10,取值范围:[10,100](Optional)
func (*ListProductAbilitiesRequest) SetProductKey ¶
func (r *ListProductAbilitiesRequest) SetProductKey(productKey string)
param productKey: 产品Key(Required)
func (*ListProductAbilitiesRequest) SetRegionId ¶
func (r *ListProductAbilitiesRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type ListProductAbilitiesResponse ¶
type ListProductAbilitiesResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ListProductAbilitiesResult `json:"result"` }
type ListProductAbilitiesResult ¶
type ListProductAbilitiesResult struct { Page iotcore.PageinfoVO `json:"page"` Abilities []iotcore.ProductAbility `json:"abilities"` }
type ListProductsRequest ¶
type ListProductsRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* IoT Engine实例ID信息 */ InstanceId string `json:"instanceId"` /* 页码, 默认为1, 取值范围:[1,∞) (Optional) */ PageNumber *int `json:"pageNumber"` /* 分页大小,默认为10,取值范围:[10,100] (Optional) */ PageSize *int `json:"pageSize"` /* productName-产品名称,模糊匹配,支持单个 productKey-产品key,精确匹配,支持单个 productType-产品类型,精确匹配,支持单个 templateName-模板名称,精确匹配,支持多个 (Optional) */ Filters []common.Filter `json:"filters"` }
func NewListProductsRequest ¶
func NewListProductsRequest( regionId string, instanceId string, ) *ListProductsRequest
* param regionId: 地域ID (Required) * param instanceId: IoT Engine实例ID信息 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewListProductsRequestWithAllParams ¶
func NewListProductsRequestWithAllParams( regionId string, instanceId string, pageNumber *int, pageSize *int, filters []common.Filter, ) *ListProductsRequest
- param regionId: 地域ID (Required)
- param instanceId: IoT Engine实例ID信息 (Required)
- param pageNumber: 页码, 默认为1, 取值范围:[1,∞) (Optional)
- param pageSize: 分页大小,默认为10,取值范围:[10,100] (Optional)
- param filters: productName-产品名称,模糊匹配,支持单个
productKey-产品key,精确匹配,支持单个 productType-产品类型,精确匹配,支持单个 templateName-模板名称,精确匹配,支持多个
(Optional)
func NewListProductsRequestWithoutParam ¶
func NewListProductsRequestWithoutParam() *ListProductsRequest
This constructor has better compatible ability when API parameters changed
func (ListProductsRequest) GetRegionId ¶
func (r ListProductsRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ListProductsRequest) SetFilters ¶
func (r *ListProductsRequest) SetFilters(filters []common.Filter)
param filters: productName-产品名称,模糊匹配,支持单个
productKey-产品key,精确匹配,支持单个 productType-产品类型,精确匹配,支持单个 templateName-模板名称,精确匹配,支持多个 (Optional)
func (*ListProductsRequest) SetInstanceId ¶
func (r *ListProductsRequest) SetInstanceId(instanceId string)
param instanceId: IoT Engine实例ID信息(Required)
func (*ListProductsRequest) SetPageNumber ¶
func (r *ListProductsRequest) SetPageNumber(pageNumber int)
param pageNumber: 页码, 默认为1, 取值范围:[1,∞)(Optional)
func (*ListProductsRequest) SetPageSize ¶
func (r *ListProductsRequest) SetPageSize(pageSize int)
param pageSize: 分页大小,默认为10,取值范围:[10,100](Optional)
func (*ListProductsRequest) SetRegionId ¶
func (r *ListProductsRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type ListProductsResponse ¶
type ListProductsResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ListProductsResult `json:"result"` }
type ListProductsResult ¶
type ListProductsResult struct { Page iotcore.PageinfoVO `json:"page"` Products []iotcore.Product `json:"products"` }
type ListProductsWithAdminRequest ¶ added in v1.28.0
type ListProductsWithAdminRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* IoT Engine实例ID信息 */ InstanceId string `json:"instanceId"` /* 页码, 默认为1, 取值范围:[1,∞) (Optional) */ PageNumber *int `json:"pageNumber"` /* 分页大小,默认为10,取值范围:[10,100] (Optional) */ PageSize *int `json:"pageSize"` /* productName-产品名称,模糊匹配,支持单个 productKey-产品key,精确匹配,支持单个 productType-产品类型,精确匹配,支持单个 templateName-模板名称,精确匹配,支持多个 (Optional) */ Filters []common.Filter `json:"filters"` }
func NewListProductsWithAdminRequest ¶ added in v1.28.0
func NewListProductsWithAdminRequest( regionId string, instanceId string, ) *ListProductsWithAdminRequest
* param regionId: 地域ID (Required) * param instanceId: IoT Engine实例ID信息 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewListProductsWithAdminRequestWithAllParams ¶ added in v1.28.0
func NewListProductsWithAdminRequestWithAllParams( regionId string, instanceId string, pageNumber *int, pageSize *int, filters []common.Filter, ) *ListProductsWithAdminRequest
- param regionId: 地域ID (Required)
- param instanceId: IoT Engine实例ID信息 (Required)
- param pageNumber: 页码, 默认为1, 取值范围:[1,∞) (Optional)
- param pageSize: 分页大小,默认为10,取值范围:[10,100] (Optional)
- param filters: productName-产品名称,模糊匹配,支持单个
productKey-产品key,精确匹配,支持单个 productType-产品类型,精确匹配,支持单个 templateName-模板名称,精确匹配,支持多个
(Optional)
func NewListProductsWithAdminRequestWithoutParam ¶ added in v1.28.0
func NewListProductsWithAdminRequestWithoutParam() *ListProductsWithAdminRequest
This constructor has better compatible ability when API parameters changed
func (ListProductsWithAdminRequest) GetRegionId ¶ added in v1.28.0
func (r ListProductsWithAdminRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ListProductsWithAdminRequest) SetFilters ¶ added in v1.28.0
func (r *ListProductsWithAdminRequest) SetFilters(filters []common.Filter)
param filters: productName-产品名称,模糊匹配,支持单个
productKey-产品key,精确匹配,支持单个 productType-产品类型,精确匹配,支持单个 templateName-模板名称,精确匹配,支持多个 (Optional)
func (*ListProductsWithAdminRequest) SetInstanceId ¶ added in v1.28.0
func (r *ListProductsWithAdminRequest) SetInstanceId(instanceId string)
param instanceId: IoT Engine实例ID信息(Required)
func (*ListProductsWithAdminRequest) SetPageNumber ¶ added in v1.28.0
func (r *ListProductsWithAdminRequest) SetPageNumber(pageNumber int)
param pageNumber: 页码, 默认为1, 取值范围:[1,∞)(Optional)
func (*ListProductsWithAdminRequest) SetPageSize ¶ added in v1.28.0
func (r *ListProductsWithAdminRequest) SetPageSize(pageSize int)
param pageSize: 分页大小,默认为10,取值范围:[10,100](Optional)
func (*ListProductsWithAdminRequest) SetRegionId ¶ added in v1.28.0
func (r *ListProductsWithAdminRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type ListProductsWithAdminResponse ¶ added in v1.28.0
type ListProductsWithAdminResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ListProductsWithAdminResult `json:"result"` }
type ListProductsWithAdminResult ¶ added in v1.28.0
type ListProductsWithAdminResult struct { Page iotcore.PageinfoVO `json:"page"` Products []iotcore.Product `json:"products"` }
type LoongrayQueryPageRequest ¶ added in v1.27.0
type LoongrayQueryPageRequest struct { core.JDCloudRequest /* 设备归属的实例ID */ InstanceId string `json:"instanceId"` /* 设备归属的实例所在区域 */ RegionId string `json:"regionId"` /* 设备名称,模糊匹配 (Optional) */ DeviceName *string `json:"deviceName"` /* 设备状态 0-未激活,1-激活离线,2-激活在线 (Optional) */ Status *int `json:"status"` /* 设备所归属的产品Key (Optional) */ ProductKey *string `json:"productKey"` /* 设备类型,同产品类型,0-设备,1-网关 (Optional) */ DeviceType *int `json:"deviceType"` /* 当前页数 (Optional) */ NowPage *int `json:"nowPage"` /* 每页的数据条数 (Optional) */ PageSize *int `json:"pageSize"` /* 排序关键字--name,type,productKey,status--最多支持一个字段 (Optional) */ Order *string `json:"order"` /* 顺序,升序降序--asc,desc (Optional) */ Direction *string `json:"direction"` /* 父设备Id (Optional) */ ParentId *string `json:"parentId"` /* 订单号 (Optional) */ OrderId *int `json:"orderId"` /* 设备采集器类型 (Optional) */ DeviceCollectorType *string `json:"deviceCollectorType"` }
func NewLoongrayQueryPageRequest ¶ added in v1.27.0
func NewLoongrayQueryPageRequest( instanceId string, regionId string, ) *LoongrayQueryPageRequest
* param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewLoongrayQueryPageRequestWithAllParams ¶ added in v1.27.0
func NewLoongrayQueryPageRequestWithAllParams( instanceId string, regionId string, deviceName *string, status *int, productKey *string, deviceType *int, nowPage *int, pageSize *int, order *string, direction *string, parentId *string, orderId *int, deviceCollectorType *string, ) *LoongrayQueryPageRequest
* param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param deviceName: 设备名称,模糊匹配 (Optional) * param status: 设备状态 0-未激活,1-激活离线,2-激活在线 (Optional) * param productKey: 设备所归属的产品Key (Optional) * param deviceType: 设备类型,同产品类型,0-设备,1-网关 (Optional) * param nowPage: 当前页数 (Optional) * param pageSize: 每页的数据条数 (Optional) * param order: 排序关键字--name,type,productKey,status--最多支持一个字段 (Optional) * param direction: 顺序,升序降序--asc,desc (Optional) * param parentId: 父设备Id (Optional) * param orderId: 订单号 (Optional) * param deviceCollectorType: 设备采集器类型 (Optional)
func NewLoongrayQueryPageRequestWithoutParam ¶ added in v1.27.0
func NewLoongrayQueryPageRequestWithoutParam() *LoongrayQueryPageRequest
This constructor has better compatible ability when API parameters changed
func (LoongrayQueryPageRequest) GetRegionId ¶ added in v1.27.0
func (r LoongrayQueryPageRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*LoongrayQueryPageRequest) SetDeviceCollectorType ¶ added in v1.28.0
func (r *LoongrayQueryPageRequest) SetDeviceCollectorType(deviceCollectorType string)
param deviceCollectorType: 设备采集器类型(Optional)
func (*LoongrayQueryPageRequest) SetDeviceName ¶ added in v1.27.0
func (r *LoongrayQueryPageRequest) SetDeviceName(deviceName string)
param deviceName: 设备名称,模糊匹配(Optional)
func (*LoongrayQueryPageRequest) SetDeviceType ¶ added in v1.27.0
func (r *LoongrayQueryPageRequest) SetDeviceType(deviceType int)
param deviceType: 设备类型,同产品类型,0-设备,1-网关(Optional)
func (*LoongrayQueryPageRequest) SetDirection ¶ added in v1.27.0
func (r *LoongrayQueryPageRequest) SetDirection(direction string)
param direction: 顺序,升序降序--asc,desc(Optional)
func (*LoongrayQueryPageRequest) SetInstanceId ¶ added in v1.27.0
func (r *LoongrayQueryPageRequest) SetInstanceId(instanceId string)
param instanceId: 设备归属的实例ID(Required)
func (*LoongrayQueryPageRequest) SetNowPage ¶ added in v1.27.0
func (r *LoongrayQueryPageRequest) SetNowPage(nowPage int)
param nowPage: 当前页数(Optional)
func (*LoongrayQueryPageRequest) SetOrder ¶ added in v1.27.0
func (r *LoongrayQueryPageRequest) SetOrder(order string)
param order: 排序关键字--name,type,productKey,status--最多支持一个字段(Optional)
func (*LoongrayQueryPageRequest) SetOrderId ¶ added in v1.28.0
func (r *LoongrayQueryPageRequest) SetOrderId(orderId int)
param orderId: 订单号(Optional)
func (*LoongrayQueryPageRequest) SetPageSize ¶ added in v1.27.0
func (r *LoongrayQueryPageRequest) SetPageSize(pageSize int)
param pageSize: 每页的数据条数(Optional)
func (*LoongrayQueryPageRequest) SetParentId ¶ added in v1.27.0
func (r *LoongrayQueryPageRequest) SetParentId(parentId string)
param parentId: 父设备Id(Optional)
func (*LoongrayQueryPageRequest) SetProductKey ¶ added in v1.27.0
func (r *LoongrayQueryPageRequest) SetProductKey(productKey string)
param productKey: 设备所归属的产品Key(Optional)
func (*LoongrayQueryPageRequest) SetRegionId ¶ added in v1.27.0
func (r *LoongrayQueryPageRequest) SetRegionId(regionId string)
param regionId: 设备归属的实例所在区域(Required)
func (*LoongrayQueryPageRequest) SetStatus ¶ added in v1.27.0
func (r *LoongrayQueryPageRequest) SetStatus(status int)
param status: 设备状态 0-未激活,1-激活离线,2-激活在线(Optional)
type LoongrayQueryPageResponse ¶ added in v1.27.0
type LoongrayQueryPageResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result LoongrayQueryPageResult `json:"result"` }
type LoongrayQueryPageResult ¶ added in v1.27.0
type PropertyAcquireRequest ¶ added in v1.30.0
type PropertyAcquireRequest struct { core.JDCloudRequest /* 区域id */ RegionId string `json:"regionId"` /* 实例Id */ InstanceId string `json:"instanceId"` /* 设备ID */ DeviceId string `json:"deviceId"` }
func NewPropertyAcquireRequest ¶ added in v1.30.0
func NewPropertyAcquireRequest( regionId string, instanceId string, deviceId string, ) *PropertyAcquireRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param deviceId: 设备ID (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewPropertyAcquireRequestWithAllParams ¶ added in v1.30.0
func NewPropertyAcquireRequestWithAllParams( regionId string, instanceId string, deviceId string, ) *PropertyAcquireRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param deviceId: 设备ID (Required)
func NewPropertyAcquireRequestWithoutParam ¶ added in v1.30.0
func NewPropertyAcquireRequestWithoutParam() *PropertyAcquireRequest
This constructor has better compatible ability when API parameters changed
func (PropertyAcquireRequest) GetRegionId ¶ added in v1.30.0
func (r PropertyAcquireRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*PropertyAcquireRequest) SetDeviceId ¶ added in v1.30.0
func (r *PropertyAcquireRequest) SetDeviceId(deviceId string)
param deviceId: 设备ID(Required)
func (*PropertyAcquireRequest) SetInstanceId ¶ added in v1.30.0
func (r *PropertyAcquireRequest) SetInstanceId(instanceId string)
param instanceId: 实例Id(Required)
func (*PropertyAcquireRequest) SetRegionId ¶ added in v1.30.0
func (r *PropertyAcquireRequest) SetRegionId(regionId string)
param regionId: 区域id(Required)
type PropertyAcquireResponse ¶ added in v1.30.0
type PropertyAcquireResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result PropertyAcquireResult `json:"result"` }
type PropertyAcquireResult ¶ added in v1.30.0
type PropertyAcquireResult struct {
PropertyAcquireVo iotcore.PropertyAcquireVo `json:"propertyAcquireVo"`
}
type QueryAdminStatisticsRequest ¶ added in v1.31.0
type QueryAdminStatisticsRequest struct { core.JDCloudRequest /* 设备归属的实例ID */ InstanceId string `json:"instanceId"` /* 设备归属的实例所在区域 */ RegionId string `json:"regionId"` /* 过滤条件,产品Key (Optional) */ ProductKey *string `json:"productKey"` /* 针对parentId下的子设备进行统计 (Optional) */ ParentId *string `json:"parentId"` /* 采集器类型 (Optional) */ DeviceCollectorType *string `json:"deviceCollectorType"` }
func NewQueryAdminStatisticsRequest ¶ added in v1.31.0
func NewQueryAdminStatisticsRequest( instanceId string, regionId string, ) *QueryAdminStatisticsRequest
* param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewQueryAdminStatisticsRequestWithAllParams ¶ added in v1.31.0
func NewQueryAdminStatisticsRequestWithAllParams( instanceId string, regionId string, productKey *string, parentId *string, deviceCollectorType *string, ) *QueryAdminStatisticsRequest
* param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param productKey: 过滤条件,产品Key (Optional) * param parentId: 针对parentId下的子设备进行统计 (Optional) * param deviceCollectorType: 采集器类型 (Optional)
func NewQueryAdminStatisticsRequestWithoutParam ¶ added in v1.31.0
func NewQueryAdminStatisticsRequestWithoutParam() *QueryAdminStatisticsRequest
This constructor has better compatible ability when API parameters changed
func (QueryAdminStatisticsRequest) GetRegionId ¶ added in v1.31.0
func (r QueryAdminStatisticsRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*QueryAdminStatisticsRequest) SetDeviceCollectorType ¶ added in v1.31.0
func (r *QueryAdminStatisticsRequest) SetDeviceCollectorType(deviceCollectorType string)
param deviceCollectorType: 采集器类型(Optional)
func (*QueryAdminStatisticsRequest) SetInstanceId ¶ added in v1.31.0
func (r *QueryAdminStatisticsRequest) SetInstanceId(instanceId string)
param instanceId: 设备归属的实例ID(Required)
func (*QueryAdminStatisticsRequest) SetParentId ¶ added in v1.31.0
func (r *QueryAdminStatisticsRequest) SetParentId(parentId string)
param parentId: 针对parentId下的子设备进行统计(Optional)
func (*QueryAdminStatisticsRequest) SetProductKey ¶ added in v1.31.0
func (r *QueryAdminStatisticsRequest) SetProductKey(productKey string)
param productKey: 过滤条件,产品Key(Optional)
func (*QueryAdminStatisticsRequest) SetRegionId ¶ added in v1.31.0
func (r *QueryAdminStatisticsRequest) SetRegionId(regionId string)
param regionId: 设备归属的实例所在区域(Required)
type QueryAdminStatisticsResponse ¶ added in v1.31.0
type QueryAdminStatisticsResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result QueryAdminStatisticsResult `json:"result"` }
type QueryAdminStatisticsResult ¶ added in v1.31.0
type QueryDeviceDetailRequest ¶
type QueryDeviceDetailRequest struct { core.JDCloudRequest /* 设备名称 */ DeviceName string `json:"deviceName"` /* 设备归属的实例ID */ InstanceId string `json:"instanceId"` /* 设备归属的实例所在区域 */ RegionId string `json:"regionId"` /* 产品Key */ ProductKey string `json:"productKey"` }
func NewQueryDeviceDetailRequest ¶
func NewQueryDeviceDetailRequest( deviceName string, instanceId string, regionId string, productKey string, ) *QueryDeviceDetailRequest
* param deviceName: 设备名称 (Required) * param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param productKey: 产品Key (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewQueryDeviceDetailRequestWithAllParams ¶
func NewQueryDeviceDetailRequestWithAllParams( deviceName string, instanceId string, regionId string, productKey string, ) *QueryDeviceDetailRequest
* param deviceName: 设备名称 (Required) * param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param productKey: 产品Key (Required)
func NewQueryDeviceDetailRequestWithoutParam ¶
func NewQueryDeviceDetailRequestWithoutParam() *QueryDeviceDetailRequest
This constructor has better compatible ability when API parameters changed
func (QueryDeviceDetailRequest) GetRegionId ¶
func (r QueryDeviceDetailRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*QueryDeviceDetailRequest) SetDeviceName ¶
func (r *QueryDeviceDetailRequest) SetDeviceName(deviceName string)
param deviceName: 设备名称(Required)
func (*QueryDeviceDetailRequest) SetInstanceId ¶
func (r *QueryDeviceDetailRequest) SetInstanceId(instanceId string)
param instanceId: 设备归属的实例ID(Required)
func (*QueryDeviceDetailRequest) SetProductKey ¶
func (r *QueryDeviceDetailRequest) SetProductKey(productKey string)
param productKey: 产品Key(Required)
func (*QueryDeviceDetailRequest) SetRegionId ¶
func (r *QueryDeviceDetailRequest) SetRegionId(regionId string)
param regionId: 设备归属的实例所在区域(Required)
type QueryDeviceDetailResponse ¶
type QueryDeviceDetailResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result QueryDeviceDetailResult `json:"result"` }
type QueryDeviceDetailResult ¶
type QueryDeviceDetailResult struct { DeviceId string `json:"deviceId"` DeviceName string `json:"deviceName"` ParentId string `json:"parentId"` DeviceType string `json:"deviceType"` Status int `json:"status"` ProductKey string `json:"productKey"` Identifier string `json:"identifier"` Secret string `json:"secret"` Description string `json:"description"` ActivatedTime int64 `json:"activatedTime"` LastConnectedTime int64 `json:"lastConnectedTime"` CreatedTime int64 `json:"createdTime"` UpdatedTime int64 `json:"updatedTime"` ProductName string `json:"productName"` Model string `json:"model"` Manufacturer string `json:"manufacturer"` DynamicRegister int `json:"dynamicRegister"` }
type QueryDevicePageRequest ¶
type QueryDevicePageRequest struct { core.JDCloudRequest /* 设备归属的实例ID */ InstanceId string `json:"instanceId"` /* 设备归属的实例所在区域 */ RegionId string `json:"regionId"` /* 设备名称,模糊匹配 (Optional) */ DeviceName *string `json:"deviceName"` /* 设备状态 0-未激活,1-激活离线,2-激活在线 (Optional) */ Status *int `json:"status"` /* 设备所归属的产品Key (Optional) */ ProductKey *string `json:"productKey"` /* 设备类型,同产品类型,0-设备,1-网关 (Optional) */ DeviceType *int `json:"deviceType"` /* 当前页数 (Optional) */ NowPage *int `json:"nowPage"` /* 每页的数据条数 (Optional) */ PageSize *int `json:"pageSize"` /* 排序关键字--name,type,productKey,status--最多支持一个字段 (Optional) */ Order *string `json:"order"` /* 顺序,升序降序--asc,desc (Optional) */ Direction *string `json:"direction"` /* 父设备Id (Optional) */ ParentId *string `json:"parentId"` /* 订单号 (Optional) */ OrderId *int `json:"orderId"` /* 设备采集器类型 (Optional) */ DeviceCollectorType *string `json:"deviceCollectorType"` }
func NewQueryDevicePageRequest ¶
func NewQueryDevicePageRequest( instanceId string, regionId string, ) *QueryDevicePageRequest
* param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewQueryDevicePageRequestWithAllParams ¶
func NewQueryDevicePageRequestWithAllParams( instanceId string, regionId string, deviceName *string, status *int, productKey *string, deviceType *int, nowPage *int, pageSize *int, order *string, direction *string, parentId *string, orderId *int, deviceCollectorType *string, ) *QueryDevicePageRequest
* param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param deviceName: 设备名称,模糊匹配 (Optional) * param status: 设备状态 0-未激活,1-激活离线,2-激活在线 (Optional) * param productKey: 设备所归属的产品Key (Optional) * param deviceType: 设备类型,同产品类型,0-设备,1-网关 (Optional) * param nowPage: 当前页数 (Optional) * param pageSize: 每页的数据条数 (Optional) * param order: 排序关键字--name,type,productKey,status--最多支持一个字段 (Optional) * param direction: 顺序,升序降序--asc,desc (Optional) * param parentId: 父设备Id (Optional) * param orderId: 订单号 (Optional) * param deviceCollectorType: 设备采集器类型 (Optional)
func NewQueryDevicePageRequestWithoutParam ¶
func NewQueryDevicePageRequestWithoutParam() *QueryDevicePageRequest
This constructor has better compatible ability when API parameters changed
func (QueryDevicePageRequest) GetRegionId ¶
func (r QueryDevicePageRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*QueryDevicePageRequest) SetDeviceCollectorType ¶ added in v1.28.0
func (r *QueryDevicePageRequest) SetDeviceCollectorType(deviceCollectorType string)
param deviceCollectorType: 设备采集器类型(Optional)
func (*QueryDevicePageRequest) SetDeviceName ¶
func (r *QueryDevicePageRequest) SetDeviceName(deviceName string)
param deviceName: 设备名称,模糊匹配(Optional)
func (*QueryDevicePageRequest) SetDeviceType ¶
func (r *QueryDevicePageRequest) SetDeviceType(deviceType int)
param deviceType: 设备类型,同产品类型,0-设备,1-网关(Optional)
func (*QueryDevicePageRequest) SetDirection ¶
func (r *QueryDevicePageRequest) SetDirection(direction string)
param direction: 顺序,升序降序--asc,desc(Optional)
func (*QueryDevicePageRequest) SetInstanceId ¶
func (r *QueryDevicePageRequest) SetInstanceId(instanceId string)
param instanceId: 设备归属的实例ID(Required)
func (*QueryDevicePageRequest) SetNowPage ¶
func (r *QueryDevicePageRequest) SetNowPage(nowPage int)
param nowPage: 当前页数(Optional)
func (*QueryDevicePageRequest) SetOrder ¶
func (r *QueryDevicePageRequest) SetOrder(order string)
param order: 排序关键字--name,type,productKey,status--最多支持一个字段(Optional)
func (*QueryDevicePageRequest) SetOrderId ¶ added in v1.28.0
func (r *QueryDevicePageRequest) SetOrderId(orderId int)
param orderId: 订单号(Optional)
func (*QueryDevicePageRequest) SetPageSize ¶
func (r *QueryDevicePageRequest) SetPageSize(pageSize int)
param pageSize: 每页的数据条数(Optional)
func (*QueryDevicePageRequest) SetParentId ¶
func (r *QueryDevicePageRequest) SetParentId(parentId string)
param parentId: 父设备Id(Optional)
func (*QueryDevicePageRequest) SetProductKey ¶
func (r *QueryDevicePageRequest) SetProductKey(productKey string)
param productKey: 设备所归属的产品Key(Optional)
func (*QueryDevicePageRequest) SetRegionId ¶
func (r *QueryDevicePageRequest) SetRegionId(regionId string)
param regionId: 设备归属的实例所在区域(Required)
func (*QueryDevicePageRequest) SetStatus ¶
func (r *QueryDevicePageRequest) SetStatus(status int)
param status: 设备状态 0-未激活,1-激活离线,2-激活在线(Optional)
type QueryDevicePageResponse ¶
type QueryDevicePageResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result QueryDevicePageResult `json:"result"` }
type QueryDevicePageResult ¶
type ReadHoldingRegistersRequest ¶ added in v1.29.0
type ReadHoldingRegistersRequest struct { core.JDCloudRequest /* Hub实例Id */ InstanceId string `json:"instanceId"` /* 区域Id */ RegionId string `json:"regionId"` /* 连接码 */ Identifier string `json:"identifier"` /* 起始地址,如40301 */ AddressOfFirstRegister int `json:"addressOfFirstRegister"` /* 寄存器数量 */ NumberOfRegisters int `json:"numberOfRegisters"` }
func NewReadHoldingRegistersRequest ¶ added in v1.29.0
func NewReadHoldingRegistersRequest( instanceId string, regionId string, identifier string, addressOfFirstRegister int, numberOfRegisters int, ) *ReadHoldingRegistersRequest
* param instanceId: Hub实例Id (Required) * param regionId: 区域Id (Required) * param identifier: 连接码 (Required) * param addressOfFirstRegister: 起始地址,如40301 (Required) * param numberOfRegisters: 寄存器数量 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewReadHoldingRegistersRequestWithAllParams ¶ added in v1.29.0
func NewReadHoldingRegistersRequestWithAllParams( instanceId string, regionId string, identifier string, addressOfFirstRegister int, numberOfRegisters int, ) *ReadHoldingRegistersRequest
* param instanceId: Hub实例Id (Required) * param regionId: 区域Id (Required) * param identifier: 连接码 (Required) * param addressOfFirstRegister: 起始地址,如40301 (Required) * param numberOfRegisters: 寄存器数量 (Required)
func NewReadHoldingRegistersRequestWithoutParam ¶ added in v1.29.0
func NewReadHoldingRegistersRequestWithoutParam() *ReadHoldingRegistersRequest
This constructor has better compatible ability when API parameters changed
func (ReadHoldingRegistersRequest) GetRegionId ¶ added in v1.29.0
func (r ReadHoldingRegistersRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ReadHoldingRegistersRequest) SetAddressOfFirstRegister ¶ added in v1.29.0
func (r *ReadHoldingRegistersRequest) SetAddressOfFirstRegister(addressOfFirstRegister int)
param addressOfFirstRegister: 起始地址,如40301(Required)
func (*ReadHoldingRegistersRequest) SetIdentifier ¶ added in v1.29.0
func (r *ReadHoldingRegistersRequest) SetIdentifier(identifier string)
param identifier: 连接码(Required)
func (*ReadHoldingRegistersRequest) SetInstanceId ¶ added in v1.29.0
func (r *ReadHoldingRegistersRequest) SetInstanceId(instanceId string)
param instanceId: Hub实例Id(Required)
func (*ReadHoldingRegistersRequest) SetNumberOfRegisters ¶ added in v1.29.0
func (r *ReadHoldingRegistersRequest) SetNumberOfRegisters(numberOfRegisters int)
param numberOfRegisters: 寄存器数量(Required)
func (*ReadHoldingRegistersRequest) SetRegionId ¶ added in v1.29.0
func (r *ReadHoldingRegistersRequest) SetRegionId(regionId string)
param regionId: 区域Id(Required)
type ReadHoldingRegistersResponse ¶ added in v1.29.0
type ReadHoldingRegistersResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ReadHoldingRegistersResult `json:"result"` }
type ReadHoldingRegistersResult ¶ added in v1.29.0
type ReadHoldingRegistersResult struct {
ReadData interface{} `json:"readData"`
}
type RemoveDeviceRequest ¶
type RemoveDeviceRequest struct { core.JDCloudRequest /* 设备名称 */ DeviceName string `json:"deviceName"` /* 设备归属的实例ID */ InstanceId string `json:"instanceId"` /* 设备归属的实例所在区域 */ RegionId string `json:"regionId"` /* 产品Key */ ProductKey string `json:"productKey"` }
func NewRemoveDeviceRequest ¶
func NewRemoveDeviceRequest( deviceName string, instanceId string, regionId string, productKey string, ) *RemoveDeviceRequest
* param deviceName: 设备名称 (Required) * param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param productKey: 产品Key (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewRemoveDeviceRequestWithAllParams ¶
func NewRemoveDeviceRequestWithAllParams( deviceName string, instanceId string, regionId string, productKey string, ) *RemoveDeviceRequest
* param deviceName: 设备名称 (Required) * param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param productKey: 产品Key (Required)
func NewRemoveDeviceRequestWithoutParam ¶
func NewRemoveDeviceRequestWithoutParam() *RemoveDeviceRequest
This constructor has better compatible ability when API parameters changed
func (RemoveDeviceRequest) GetRegionId ¶
func (r RemoveDeviceRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*RemoveDeviceRequest) SetDeviceName ¶
func (r *RemoveDeviceRequest) SetDeviceName(deviceName string)
param deviceName: 设备名称(Required)
func (*RemoveDeviceRequest) SetInstanceId ¶
func (r *RemoveDeviceRequest) SetInstanceId(instanceId string)
param instanceId: 设备归属的实例ID(Required)
func (*RemoveDeviceRequest) SetProductKey ¶
func (r *RemoveDeviceRequest) SetProductKey(productKey string)
param productKey: 产品Key(Required)
func (*RemoveDeviceRequest) SetRegionId ¶
func (r *RemoveDeviceRequest) SetRegionId(regionId string)
param regionId: 设备归属的实例所在区域(Required)
type RemoveDeviceResponse ¶
type RemoveDeviceResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result RemoveDeviceResult `json:"result"` }
type RemoveDeviceResult ¶
type RemoveDeviceResult struct { }
type RemoveLoongrayDeviceRequest ¶ added in v1.27.0
type RemoveLoongrayDeviceRequest struct { core.JDCloudRequest /* 设备名称 */ DeviceName string `json:"deviceName"` /* 设备归属的实例ID */ InstanceId string `json:"instanceId"` /* 设备归属的实例所在区域 */ RegionId string `json:"regionId"` /* 产品Key */ ProductKey string `json:"productKey"` }
func NewRemoveLoongrayDeviceRequest ¶ added in v1.27.0
func NewRemoveLoongrayDeviceRequest( deviceName string, instanceId string, regionId string, productKey string, ) *RemoveLoongrayDeviceRequest
* param deviceName: 设备名称 (Required) * param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param productKey: 产品Key (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewRemoveLoongrayDeviceRequestWithAllParams ¶ added in v1.27.0
func NewRemoveLoongrayDeviceRequestWithAllParams( deviceName string, instanceId string, regionId string, productKey string, ) *RemoveLoongrayDeviceRequest
* param deviceName: 设备名称 (Required) * param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param productKey: 产品Key (Required)
func NewRemoveLoongrayDeviceRequestWithoutParam ¶ added in v1.27.0
func NewRemoveLoongrayDeviceRequestWithoutParam() *RemoveLoongrayDeviceRequest
This constructor has better compatible ability when API parameters changed
func (RemoveLoongrayDeviceRequest) GetRegionId ¶ added in v1.27.0
func (r RemoveLoongrayDeviceRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*RemoveLoongrayDeviceRequest) SetDeviceName ¶ added in v1.27.0
func (r *RemoveLoongrayDeviceRequest) SetDeviceName(deviceName string)
param deviceName: 设备名称(Required)
func (*RemoveLoongrayDeviceRequest) SetInstanceId ¶ added in v1.27.0
func (r *RemoveLoongrayDeviceRequest) SetInstanceId(instanceId string)
param instanceId: 设备归属的实例ID(Required)
func (*RemoveLoongrayDeviceRequest) SetProductKey ¶ added in v1.27.0
func (r *RemoveLoongrayDeviceRequest) SetProductKey(productKey string)
param productKey: 产品Key(Required)
func (*RemoveLoongrayDeviceRequest) SetRegionId ¶ added in v1.27.0
func (r *RemoveLoongrayDeviceRequest) SetRegionId(regionId string)
param regionId: 设备归属的实例所在区域(Required)
type RemoveLoongrayDeviceResponse ¶ added in v1.27.0
type RemoveLoongrayDeviceResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result RemoveLoongrayDeviceResult `json:"result"` }
type RemoveLoongrayDeviceResult ¶ added in v1.27.0
type RemoveLoongrayDeviceResult struct { }
type ThingTypeDescribeRequest ¶ added in v1.28.0
type ThingTypeDescribeRequest struct { core.JDCloudRequest /* 区域id */ RegionId string `json:"regionId"` /* 实例Id */ InstanceId string `json:"instanceId"` /* 设备型号标识 (Optional) */ DeviceMetaId *string `json:"deviceMetaId"` }
func NewThingTypeDescribeRequest ¶ added in v1.28.0
func NewThingTypeDescribeRequest( regionId string, instanceId string, ) *ThingTypeDescribeRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewThingTypeDescribeRequestWithAllParams ¶ added in v1.28.0
func NewThingTypeDescribeRequestWithAllParams( regionId string, instanceId string, deviceMetaId *string, ) *ThingTypeDescribeRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param deviceMetaId: 设备型号标识 (Optional)
func NewThingTypeDescribeRequestWithoutParam ¶ added in v1.28.0
func NewThingTypeDescribeRequestWithoutParam() *ThingTypeDescribeRequest
This constructor has better compatible ability when API parameters changed
func (ThingTypeDescribeRequest) GetRegionId ¶ added in v1.28.0
func (r ThingTypeDescribeRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ThingTypeDescribeRequest) SetDeviceMetaId ¶ added in v1.28.0
func (r *ThingTypeDescribeRequest) SetDeviceMetaId(deviceMetaId string)
param deviceMetaId: 设备型号标识(Optional)
func (*ThingTypeDescribeRequest) SetInstanceId ¶ added in v1.28.0
func (r *ThingTypeDescribeRequest) SetInstanceId(instanceId string)
param instanceId: 实例Id(Required)
func (*ThingTypeDescribeRequest) SetRegionId ¶ added in v1.28.0
func (r *ThingTypeDescribeRequest) SetRegionId(regionId string)
param regionId: 区域id(Required)
type ThingTypeDescribeResponse ¶ added in v1.28.0
type ThingTypeDescribeResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ThingTypeDescribeResult `json:"result"` }
type ThingTypeDescribeResult ¶ added in v1.28.0
type ThingTypeDescribeResult struct {
ThingTypeInfoVO iotcore.ThingTypeInfoVO `json:"thingTypeInfoVO"`
}
type ThingTypeListRequest ¶ added in v1.28.0
type ThingTypeListRequest struct { core.JDCloudRequest /* 区域id */ RegionId string `json:"regionId"` /* 实例Id */ InstanceId string `json:"instanceId"` /* 设备型号标识 (Optional) */ DeviceMetaId *string `json:"deviceMetaId"` /* 设备型号名称 (Optional) */ DeviceMetaName *string `json:"deviceMetaName"` /* 节点类型 (Optional) */ NodeType *int `json:"nodeType"` /* 页码 (Optional) */ PageNo *int `json:"pageNo"` /* 每页显示条数 (Optional) */ PageSize *int `json:"pageSize"` }
func NewThingTypeListRequest ¶ added in v1.28.0
func NewThingTypeListRequest( regionId string, instanceId string, ) *ThingTypeListRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewThingTypeListRequestWithAllParams ¶ added in v1.28.0
func NewThingTypeListRequestWithAllParams( regionId string, instanceId string, deviceMetaId *string, deviceMetaName *string, nodeType *int, pageNo *int, pageSize *int, ) *ThingTypeListRequest
* param regionId: 区域id (Required) * param instanceId: 实例Id (Required) * param deviceMetaId: 设备型号标识 (Optional) * param deviceMetaName: 设备型号名称 (Optional) * param nodeType: 节点类型 (Optional) * param pageNo: 页码 (Optional) * param pageSize: 每页显示条数 (Optional)
func NewThingTypeListRequestWithoutParam ¶ added in v1.28.0
func NewThingTypeListRequestWithoutParam() *ThingTypeListRequest
This constructor has better compatible ability when API parameters changed
func (ThingTypeListRequest) GetRegionId ¶ added in v1.28.0
func (r ThingTypeListRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*ThingTypeListRequest) SetDeviceMetaId ¶ added in v1.28.0
func (r *ThingTypeListRequest) SetDeviceMetaId(deviceMetaId string)
param deviceMetaId: 设备型号标识(Optional)
func (*ThingTypeListRequest) SetDeviceMetaName ¶ added in v1.28.0
func (r *ThingTypeListRequest) SetDeviceMetaName(deviceMetaName string)
param deviceMetaName: 设备型号名称(Optional)
func (*ThingTypeListRequest) SetInstanceId ¶ added in v1.28.0
func (r *ThingTypeListRequest) SetInstanceId(instanceId string)
param instanceId: 实例Id(Required)
func (*ThingTypeListRequest) SetNodeType ¶ added in v1.28.0
func (r *ThingTypeListRequest) SetNodeType(nodeType int)
param nodeType: 节点类型(Optional)
func (*ThingTypeListRequest) SetPageNo ¶ added in v1.28.0
func (r *ThingTypeListRequest) SetPageNo(pageNo int)
param pageNo: 页码(Optional)
func (*ThingTypeListRequest) SetPageSize ¶ added in v1.28.0
func (r *ThingTypeListRequest) SetPageSize(pageSize int)
param pageSize: 每页显示条数(Optional)
func (*ThingTypeListRequest) SetRegionId ¶ added in v1.28.0
func (r *ThingTypeListRequest) SetRegionId(regionId string)
param regionId: 区域id(Required)
type ThingTypeListResponse ¶ added in v1.28.0
type ThingTypeListResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result ThingTypeListResult `json:"result"` }
type ThingTypeListResult ¶ added in v1.28.0
type ThingTypeListResult struct { PageSize int `json:"pageSize"` CurrentPage int `json:"currentPage"` TotalCount int `json:"totalCount"` Data []iotcore.ThingTypeInfoVO `json:"data"` }
type UpdateDeviceRequest ¶
type UpdateDeviceRequest struct { core.JDCloudRequest /* 设备归属的实例ID */ InstanceId string `json:"instanceId"` /* 设备归属的实例所在区域 */ RegionId string `json:"regionId"` /* 设备Id */ DeviceId string `json:"deviceId"` /* 设备型号 (Optional) */ Model *string `json:"model"` /* 设备厂商 (Optional) */ Manufacturer *string `json:"manufacturer"` /* 设备描述 (Optional) */ Description *string `json:"description"` /* 设备状态 (Optional) */ Status *int `json:"status"` }
func NewUpdateDeviceRequest ¶
func NewUpdateDeviceRequest( instanceId string, regionId string, deviceId string, ) *UpdateDeviceRequest
* param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param deviceId: 设备Id (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewUpdateDeviceRequestWithAllParams ¶
func NewUpdateDeviceRequestWithAllParams( instanceId string, regionId string, deviceId string, model *string, manufacturer *string, description *string, status *int, ) *UpdateDeviceRequest
* param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param deviceId: 设备Id (Required) * param model: 设备型号 (Optional) * param manufacturer: 设备厂商 (Optional) * param description: 设备描述 (Optional) * param status: 设备状态 (Optional)
func NewUpdateDeviceRequestWithoutParam ¶
func NewUpdateDeviceRequestWithoutParam() *UpdateDeviceRequest
This constructor has better compatible ability when API parameters changed
func (UpdateDeviceRequest) GetRegionId ¶
func (r UpdateDeviceRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*UpdateDeviceRequest) SetDescription ¶
func (r *UpdateDeviceRequest) SetDescription(description string)
param description: 设备描述(Optional)
func (*UpdateDeviceRequest) SetDeviceId ¶
func (r *UpdateDeviceRequest) SetDeviceId(deviceId string)
param deviceId: 设备Id(Required)
func (*UpdateDeviceRequest) SetInstanceId ¶
func (r *UpdateDeviceRequest) SetInstanceId(instanceId string)
param instanceId: 设备归属的实例ID(Required)
func (*UpdateDeviceRequest) SetManufacturer ¶
func (r *UpdateDeviceRequest) SetManufacturer(manufacturer string)
param manufacturer: 设备厂商(Optional)
func (*UpdateDeviceRequest) SetModel ¶
func (r *UpdateDeviceRequest) SetModel(model string)
param model: 设备型号(Optional)
func (*UpdateDeviceRequest) SetRegionId ¶
func (r *UpdateDeviceRequest) SetRegionId(regionId string)
param regionId: 设备归属的实例所在区域(Required)
func (*UpdateDeviceRequest) SetStatus ¶ added in v1.13.0
func (r *UpdateDeviceRequest) SetStatus(status int)
param status: 设备状态(Optional)
type UpdateDeviceResponse ¶
type UpdateDeviceResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result UpdateDeviceResult `json:"result"` }
type UpdateDeviceResult ¶
type UpdateLooDeviceRequest ¶ added in v1.27.0
type UpdateLooDeviceRequest struct { core.JDCloudRequest /* 设备归属的实例ID */ InstanceId string `json:"instanceId"` /* 设备归属的实例所在区域 */ RegionId string `json:"regionId"` /* 设备Id */ DeviceId string `json:"deviceId"` /* 设备型号 (Optional) */ Model *string `json:"model"` /* 设备厂商 (Optional) */ Manufacturer *string `json:"manufacturer"` /* 设备名 (Optional) */ Description *string `json:"description"` /* 设备状态 (Optional) */ Status *int `json:"status"` /* 连接码 (Optional) */ Identifier *string `json:"identifier"` /* 心跳 (Optional) */ DeviceName *string `json:"deviceName"` /* 设备类型 */ DeviceType string `json:"deviceType"` }
func NewUpdateLooDeviceRequest ¶ added in v1.27.0
func NewUpdateLooDeviceRequest( instanceId string, regionId string, deviceId string, deviceType string, ) *UpdateLooDeviceRequest
* param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param deviceId: 设备Id (Required) * param deviceType: 设备类型 (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewUpdateLooDeviceRequestWithAllParams ¶ added in v1.27.0
func NewUpdateLooDeviceRequestWithAllParams( instanceId string, regionId string, deviceId string, model *string, manufacturer *string, description *string, status *int, identifier *string, deviceName *string, deviceType string, ) *UpdateLooDeviceRequest
* param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param deviceId: 设备Id (Required) * param model: 设备型号 (Optional) * param manufacturer: 设备厂商 (Optional) * param description: 设备名 (Optional) * param status: 设备状态 (Optional) * param identifier: 连接码 (Optional) * param deviceName: 心跳 (Optional) * param deviceType: 设备类型 (Required)
func NewUpdateLooDeviceRequestWithoutParam ¶ added in v1.27.0
func NewUpdateLooDeviceRequestWithoutParam() *UpdateLooDeviceRequest
This constructor has better compatible ability when API parameters changed
func (UpdateLooDeviceRequest) GetRegionId ¶ added in v1.27.0
func (r UpdateLooDeviceRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*UpdateLooDeviceRequest) SetDescription ¶ added in v1.27.0
func (r *UpdateLooDeviceRequest) SetDescription(description string)
param description: 设备名(Optional)
func (*UpdateLooDeviceRequest) SetDeviceId ¶ added in v1.27.0
func (r *UpdateLooDeviceRequest) SetDeviceId(deviceId string)
param deviceId: 设备Id(Required)
func (*UpdateLooDeviceRequest) SetDeviceName ¶ added in v1.27.0
func (r *UpdateLooDeviceRequest) SetDeviceName(deviceName string)
param deviceName: 心跳(Optional)
func (*UpdateLooDeviceRequest) SetDeviceType ¶ added in v1.28.0
func (r *UpdateLooDeviceRequest) SetDeviceType(deviceType string)
param deviceType: 设备类型(Required)
func (*UpdateLooDeviceRequest) SetIdentifier ¶ added in v1.27.0
func (r *UpdateLooDeviceRequest) SetIdentifier(identifier string)
param identifier: 连接码(Optional)
func (*UpdateLooDeviceRequest) SetInstanceId ¶ added in v1.27.0
func (r *UpdateLooDeviceRequest) SetInstanceId(instanceId string)
param instanceId: 设备归属的实例ID(Required)
func (*UpdateLooDeviceRequest) SetManufacturer ¶ added in v1.27.0
func (r *UpdateLooDeviceRequest) SetManufacturer(manufacturer string)
param manufacturer: 设备厂商(Optional)
func (*UpdateLooDeviceRequest) SetModel ¶ added in v1.27.0
func (r *UpdateLooDeviceRequest) SetModel(model string)
param model: 设备型号(Optional)
func (*UpdateLooDeviceRequest) SetRegionId ¶ added in v1.27.0
func (r *UpdateLooDeviceRequest) SetRegionId(regionId string)
param regionId: 设备归属的实例所在区域(Required)
func (*UpdateLooDeviceRequest) SetStatus ¶ added in v1.27.0
func (r *UpdateLooDeviceRequest) SetStatus(status int)
param status: 设备状态(Optional)
type UpdateLooDeviceResponse ¶ added in v1.27.0
type UpdateLooDeviceResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result UpdateLooDeviceResult `json:"result"` }
type UpdateLooDeviceResult ¶ added in v1.27.0
type UpdateProductRequest ¶
type UpdateProductRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* IoT Engine实例ID信息 */ InstanceId string `json:"instanceId"` /* 产品Key */ ProductKey string `json:"productKey"` /* 产品名称,名称不可为空,3-30个字符,只支持汉字、英文字母、数字、下划线“_”及中划线“-”,必须以汉字、英文字母及数字开头结尾 (Optional) */ ProductName *string `json:"productName"` /* 产品描述,80字符以内 (Optional) */ ProductDescription *string `json:"productDescription"` /* 动态注册,0:关闭,1:开启 (Optional) */ DynamicRegister *int `json:"dynamicRegister"` }
func NewUpdateProductRequest ¶
func NewUpdateProductRequest( regionId string, instanceId string, productKey string, ) *UpdateProductRequest
* param regionId: 地域ID (Required) * param instanceId: IoT Engine实例ID信息 (Required) * param productKey: 产品Key (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewUpdateProductRequestWithAllParams ¶
func NewUpdateProductRequestWithAllParams( regionId string, instanceId string, productKey string, productName *string, productDescription *string, dynamicRegister *int, ) *UpdateProductRequest
* param regionId: 地域ID (Required) * param instanceId: IoT Engine实例ID信息 (Required) * param productKey: 产品Key (Required) * param productName: 产品名称,名称不可为空,3-30个字符,只支持汉字、英文字母、数字、下划线“_”及中划线“-”,必须以汉字、英文字母及数字开头结尾 (Optional) * param productDescription: 产品描述,80字符以内 (Optional) * param dynamicRegister: 动态注册,0:关闭,1:开启 (Optional)
func NewUpdateProductRequestWithoutParam ¶
func NewUpdateProductRequestWithoutParam() *UpdateProductRequest
This constructor has better compatible ability when API parameters changed
func (UpdateProductRequest) GetRegionId ¶
func (r UpdateProductRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*UpdateProductRequest) SetDynamicRegister ¶
func (r *UpdateProductRequest) SetDynamicRegister(dynamicRegister int)
param dynamicRegister: 动态注册,0:关闭,1:开启(Optional)
func (*UpdateProductRequest) SetInstanceId ¶
func (r *UpdateProductRequest) SetInstanceId(instanceId string)
param instanceId: IoT Engine实例ID信息(Required)
func (*UpdateProductRequest) SetProductDescription ¶
func (r *UpdateProductRequest) SetProductDescription(productDescription string)
param productDescription: 产品描述,80字符以内(Optional)
func (*UpdateProductRequest) SetProductKey ¶
func (r *UpdateProductRequest) SetProductKey(productKey string)
param productKey: 产品Key(Required)
func (*UpdateProductRequest) SetProductName ¶
func (r *UpdateProductRequest) SetProductName(productName string)
param productName: 产品名称,名称不可为空,3-30个字符,只支持汉字、英文字母、数字、下划线“_”及中划线“-”,必须以汉字、英文字母及数字开头结尾(Optional)
func (*UpdateProductRequest) SetRegionId ¶
func (r *UpdateProductRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type UpdateProductResponse ¶
type UpdateProductResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result UpdateProductResult `json:"result"` }
type UpdateProductResult ¶
type UpdateProductResult struct { }
type UpdateProductWithAdminRequest ¶ added in v1.28.0
type UpdateProductWithAdminRequest struct { core.JDCloudRequest /* 地域ID */ RegionId string `json:"regionId"` /* IoT Engine实例ID信息 */ InstanceId string `json:"instanceId"` /* 产品Key */ ProductKey string `json:"productKey"` /* 产品名称,名称不可为空,3-30个字符,只支持汉字、英文字母、数字、下划线“_”及中划线“-”,必须以汉字、英文字母及数字开头结尾 (Optional) */ ProductName *string `json:"productName"` /* 产品描述,80字符以内 (Optional) */ ProductDescription *string `json:"productDescription"` /* 动态注册,0:关闭,1:开启 (Optional) */ DynamicRegister *int `json:"dynamicRegister"` }
func NewUpdateProductWithAdminRequest ¶ added in v1.28.0
func NewUpdateProductWithAdminRequest( regionId string, instanceId string, productKey string, ) *UpdateProductWithAdminRequest
* param regionId: 地域ID (Required) * param instanceId: IoT Engine实例ID信息 (Required) * param productKey: 产品Key (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewUpdateProductWithAdminRequestWithAllParams ¶ added in v1.28.0
func NewUpdateProductWithAdminRequestWithAllParams( regionId string, instanceId string, productKey string, productName *string, productDescription *string, dynamicRegister *int, ) *UpdateProductWithAdminRequest
* param regionId: 地域ID (Required) * param instanceId: IoT Engine实例ID信息 (Required) * param productKey: 产品Key (Required) * param productName: 产品名称,名称不可为空,3-30个字符,只支持汉字、英文字母、数字、下划线“_”及中划线“-”,必须以汉字、英文字母及数字开头结尾 (Optional) * param productDescription: 产品描述,80字符以内 (Optional) * param dynamicRegister: 动态注册,0:关闭,1:开启 (Optional)
func NewUpdateProductWithAdminRequestWithoutParam ¶ added in v1.28.0
func NewUpdateProductWithAdminRequestWithoutParam() *UpdateProductWithAdminRequest
This constructor has better compatible ability when API parameters changed
func (UpdateProductWithAdminRequest) GetRegionId ¶ added in v1.28.0
func (r UpdateProductWithAdminRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*UpdateProductWithAdminRequest) SetDynamicRegister ¶ added in v1.28.0
func (r *UpdateProductWithAdminRequest) SetDynamicRegister(dynamicRegister int)
param dynamicRegister: 动态注册,0:关闭,1:开启(Optional)
func (*UpdateProductWithAdminRequest) SetInstanceId ¶ added in v1.28.0
func (r *UpdateProductWithAdminRequest) SetInstanceId(instanceId string)
param instanceId: IoT Engine实例ID信息(Required)
func (*UpdateProductWithAdminRequest) SetProductDescription ¶ added in v1.28.0
func (r *UpdateProductWithAdminRequest) SetProductDescription(productDescription string)
param productDescription: 产品描述,80字符以内(Optional)
func (*UpdateProductWithAdminRequest) SetProductKey ¶ added in v1.28.0
func (r *UpdateProductWithAdminRequest) SetProductKey(productKey string)
param productKey: 产品Key(Required)
func (*UpdateProductWithAdminRequest) SetProductName ¶ added in v1.28.0
func (r *UpdateProductWithAdminRequest) SetProductName(productName string)
param productName: 产品名称,名称不可为空,3-30个字符,只支持汉字、英文字母、数字、下划线“_”及中划线“-”,必须以汉字、英文字母及数字开头结尾(Optional)
func (*UpdateProductWithAdminRequest) SetRegionId ¶ added in v1.28.0
func (r *UpdateProductWithAdminRequest) SetRegionId(regionId string)
param regionId: 地域ID(Required)
type UpdateProductWithAdminResponse ¶ added in v1.28.0
type UpdateProductWithAdminResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result UpdateProductWithAdminResult `json:"result"` }
type UpdateProductWithAdminResult ¶ added in v1.28.0
type UpdateProductWithAdminResult struct { }
type UpdateThingShadowRequest ¶
type UpdateThingShadowRequest struct { core.JDCloudRequest /* 设备归属的实例ID */ InstanceId string `json:"instanceId"` /* 设备归属的实例所在区域 */ RegionId string `json:"regionId"` /* 设备唯一标识 */ Identifier string `json:"identifier"` /* 产品Key */ ProductKey string `json:"productKey"` /* 运行状态 (Optional) */ State *interface{} `json:"state"` /* 设备影子版本,当前版本加1,当前版本默认其实版本为-1 用户主动更新版本号时,设备影子会检查请求中的主动更新版本号是否大于当前版本号。 如果大于当前版本号,则更新设备影子,并将影子版本值更新到请求的版本中,反之则会拒绝更新设备影子。 影子版本参数为Integer型 取值范围:0到2147483647(2的31次方-1) 当取值达到最大值2147483647(2的31次方-1)时,请求中的主动更新版本号应为-1 (Optional) */ Version *int `json:"version"` }
func NewUpdateThingShadowRequest ¶
func NewUpdateThingShadowRequest( instanceId string, regionId string, identifier string, productKey string, ) *UpdateThingShadowRequest
* param instanceId: 设备归属的实例ID (Required) * param regionId: 设备归属的实例所在区域 (Required) * param identifier: 设备唯一标识 (Required) * param productKey: 产品Key (Required) * * @Deprecated, not compatible when mandatory parameters changed
func NewUpdateThingShadowRequestWithAllParams ¶
func NewUpdateThingShadowRequestWithAllParams( instanceId string, regionId string, identifier string, productKey string, state *interface{}, version *int, ) *UpdateThingShadowRequest
- param instanceId: 设备归属的实例ID (Required)
- param regionId: 设备归属的实例所在区域 (Required)
- param identifier: 设备唯一标识 (Required)
- param productKey: 产品Key (Required)
- param state: 运行状态 (Optional)
- param version: 设备影子版本,当前版本加1,当前版本默认其实版本为-1
用户主动更新版本号时,设备影子会检查请求中的主动更新版本号是否大于当前版本号。 如果大于当前版本号,则更新设备影子,并将影子版本值更新到请求的版本中,反之则会拒绝更新设备影子。 影子版本参数为Integer型 取值范围:0到2147483647(2的31次方-1) 当取值达到最大值2147483647(2的31次方-1)时,请求中的主动更新版本号应为-1
(Optional)
func NewUpdateThingShadowRequestWithoutParam ¶
func NewUpdateThingShadowRequestWithoutParam() *UpdateThingShadowRequest
This constructor has better compatible ability when API parameters changed
func (UpdateThingShadowRequest) GetRegionId ¶
func (r UpdateThingShadowRequest) GetRegionId() string
GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string
func (*UpdateThingShadowRequest) SetIdentifier ¶
func (r *UpdateThingShadowRequest) SetIdentifier(identifier string)
param identifier: 设备唯一标识(Required)
func (*UpdateThingShadowRequest) SetInstanceId ¶
func (r *UpdateThingShadowRequest) SetInstanceId(instanceId string)
param instanceId: 设备归属的实例ID(Required)
func (*UpdateThingShadowRequest) SetProductKey ¶
func (r *UpdateThingShadowRequest) SetProductKey(productKey string)
param productKey: 产品Key(Required)
func (*UpdateThingShadowRequest) SetRegionId ¶
func (r *UpdateThingShadowRequest) SetRegionId(regionId string)
param regionId: 设备归属的实例所在区域(Required)
func (*UpdateThingShadowRequest) SetState ¶
func (r *UpdateThingShadowRequest) SetState(state interface{})
param state: 运行状态(Optional)
func (*UpdateThingShadowRequest) SetVersion ¶
func (r *UpdateThingShadowRequest) SetVersion(version int)
param version: 设备影子版本,当前版本加1,当前版本默认其实版本为-1
用户主动更新版本号时,设备影子会检查请求中的主动更新版本号是否大于当前版本号。 如果大于当前版本号,则更新设备影子,并将影子版本值更新到请求的版本中,反之则会拒绝更新设备影子。 影子版本参数为Integer型 取值范围:0到2147483647(2的31次方-1) 当取值达到最大值2147483647(2的31次方-1)时,请求中的主动更新版本号应为-1 (Optional)
type UpdateThingShadowResponse ¶
type UpdateThingShadowResponse struct { RequestID string `json:"requestId"` Error core.ErrorResponse `json:"error"` Result UpdateThingShadowResult `json:"result"` }
type UpdateThingShadowResult ¶
type UpdateThingShadowResult struct { }
Source Files ¶
- AddDevice.go
- AddDeviceLinks.go
- AddLooDevice.go
- CollectorReadMessage.go
- CollectorWriteMessage.go
- CreateAdminProduct.go
- CreateProduct.go
- CreateProductTopic.go
- DeleteDevice.go
- DeleteProduct.go
- DeleteProductWithAdmin.go
- DescribeProduct.go
- DescribeProductTopic.go
- DescribeProductTopics.go
- DescribeProductWithAdmin.go
- DescribeThingModel.go
- DescribeThingShadow.go
- DevicePropertySet.go
- DeviceQuery.go
- DeviceRegister.go
- DownloadCertificate.go
- ElevatorOperatingStatus.go
- EventList.go
- ExportThingModel.go
- FunctionList.go
- GetPropertySnapshot.go
- ImportThingModel.go
- InvokeFunction.go
- InvokeThingService.go
- InvokeThingTopic.go
- ListProductAbilities.go
- ListProducts.go
- ListProductsWithAdmin.go
- LoongrayQueryPage.go
- PropertyAcquire.go
- QueryAdminStatistics.go
- QueryDeviceDetail.go
- QueryDevicePage.go
- ReadHoldingRegisters.go
- RemoveDevice.go
- RemoveLoongrayDevice.go
- ThingTypeDescribe.go
- ThingTypeList.go
- UpdateDevice.go
- UpdateLooDevice.go
- UpdateProduct.go
- UpdateProductWithAdmin.go
- UpdateThingShadow.go