discontinuedPackage thingsboard_pe_client has been discontinued and replaced by thingsboard_client.
OtaPackageControllerApi class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
deleteOtaPackage({required String otaPackageId, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<void>>
-
Delete OTA Package (deleteOtaPackage)
Deletes the OTA Package. Referencing non-existing OTA Package Id will cause an error. Can't delete the OTA Package if it is referenced by existing devices or device profile. Available for users with 'TENANT_ADMIN' authority.
-
downloadOtaPackage({required String otaPackageId, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<Uint8List>>
-
Download OTA Package (downloadOtaPackage)
Download OTA Package based on the provided OTA Package Id. Available for users with 'TENANT_ADMIN' authority.
-
getGroupOtaPackages({required String groupId, required String type, required int pageSize, required int page, String? textSearch, String? sortProperty, String? sortOrder, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<PageDataOtaPackageInfo>>
-
Get group OTA Package Infos (getGroupOtaPackages)
Returns a page of OTA Package Info objects owned by tenant, and by entity group. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. OTA Package Info is a lightweight object that includes main information about the OTA Package excluding the heavyweight data. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
-
getOtaPackageById({required String otaPackageId, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<OtaPackage>>
-
Get OTA Package (getOtaPackageById)
Fetch the OTA Package object based on the provided OTA Package Id. The server checks that the OTA Package is owned by the same tenant. OTA Package is a heavyweight object that includes main information about the OTA Package and also data. Available for users with 'TENANT_ADMIN' authority.
-
getOtaPackageInfoById({required String otaPackageId, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<OtaPackageInfo>>
-
Get OTA Package Info (getOtaPackageInfoById)
Fetch the OTA Package Info object based on the provided OTA Package Id. OTA Package Info is a lightweight object that includes main information about the OTA Package excluding the heavyweight data. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
-
getOtaPackages({required int pageSize, required int page, String? textSearch, String? sortProperty, String? sortOrder, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<PageDataOtaPackageInfo>>
-
Get OTA Package Infos (getOtaPackages)
Returns a page of OTA Package Info objects owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. OTA Package Info is a lightweight object that includes main information about the OTA Package excluding the heavyweight data. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
-
getOtaPackagesByDeviceProfileAndType({required String deviceProfileId, required String type, required int pageSize, required int page, String? textSearch, String? sortProperty, String? sortOrder, CancelToken? cancelToken, Map<String, dynamic>? headers, Map<String, dynamic>? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<PageDataOtaPackageInfo>>
-
Get OTA Package Infos by Device Profile and Type (getOtaPackagesByDeviceProfileAndType)
Returns a page of OTA Package Info objects owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. OTA Package Info is a lightweight object that includes main information about the OTA Package excluding the heavyweight data. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
saveOtaPackageData({required String otaPackageId, required String checksumAlgorithm, required MultipartFile file, String? checksum, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<OtaPackageInfo>>
-
Save OTA Package data (saveOtaPackageData)
Update the OTA Package. Adds the date to the existing OTA Package Info Available for users with 'TENANT_ADMIN' authority.
-
saveOtaPackageInfo({required SaveOtaPackageInfoRequest saveOtaPackageInfoRequest, CancelToken? cancelToken, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress})
→ Future<Response<OtaPackageInfo>>
-
Create Or Update OTA Package Info (saveOtaPackageInfo)
Create or update the OTA Package Info. When creating OTA Package Info, platform generates OTA Package id as time-based UUID. The newly created OTA Package id will be present in the response. Specify existing OTA Package id to update the OTA Package Info. Referencing non-existing OTA Package Id will cause 'Not Found' error. OTA Package combination of the title with the version is unique in the scope of tenant. Available for users with 'TENANT_ADMIN' authority.
-
toString()
→ String
-
A string representation of this object.
inherited