UNPKG

@iotize/tap

Version:

IoTize Device client for Javascript

249 lines (248 loc) 5.79 kB
/** * Generated file. Do not edit */ import { TapResponse } from '@iotize/tap'; import { AbstractService, ServiceCallType } from '@iotize/tap'; export declare class JvmService extends AbstractService { resources: { getCodeSize: ServiceCallType<void, number>; putCodeSize: ServiceCallType<number, void>; appendCode: ServiceCallType<Uint8Array, void>; clearCode: ServiceCallType<void, void>; getProfileId: ServiceCallType<void, number>; putProfileId: ServiceCallType<number, void>; getLogAndClear: ServiceCallType<void, string>; clearLog: ServiceCallType<void, void>; getLog: ServiceCallType<void, string>; putLog: ServiceCallType<string, void>; getErrorCode: ServiceCallType<void, number>; postErrorCode: ServiceCallType<number, void>; }; /** * Get JVM reserved code size * * LWM2M path: /1024//73 * * @tapVersion(">=1.90") * @return */ getCodeSize(): Promise<TapResponse<number>>; /** * * * LWM2M path: /1024//73 * * @tapVersion(">=1.90") * @return call options */ getCodeSizeCall(): ServiceCallType; /** * Write JVM reserved code size * * LWM2M path: /1024//73 * * @tapVersion(">=1.90") * @param value input * @return */ putCodeSize(value: number): Promise<TapResponse<void>>; /** * * * LWM2M path: /1024//73 * * @tapVersion(">=1.90") * @param value input * @return call options */ putCodeSizeCall(value: number): ServiceCallType; /** * Append JVM code. If body length is 0, it will clear code stored in Tap. * * LWM2M path: /1024//74 * * @tapVersion(">=1.90") * @param value input * @return */ appendCode(value: Uint8Array): Promise<TapResponse<void>>; appendCodeAppendCalls(value: Uint8Array, chunkSize?: number): ServiceCallType<Uint8Array, void>[]; /** * * * LWM2M path: /1024//74 * * @tapVersion(">=1.90") * @param value input * @return call options */ appendCodeCall(value: Uint8Array): ServiceCallType; /** * Clear code stored in Tap. * * LWM2M path: /1024//74 * * @tapVersion(">=1.90") * @return */ clearCode(): Promise<TapResponse<void>>; /** * * * LWM2M path: /1024//74 * * @tapVersion(">=1.90") * @return call options */ clearCodeCall(): ServiceCallType; /** * Get user id that gives rights to the JVM code * * LWM2M path: /1024//66 * * @tapVersion(">=1.0") * @return */ getProfileId(): Promise<TapResponse<number>>; /** * * * LWM2M path: /1024//66 * * @tapVersion(">=1.0") * @return call options */ getProfileIdCall(): ServiceCallType; /** * Write user id that gives right to the JVM code * * LWM2M path: /1024//66 * * @tapVersion(">=1.0") * @param key input * @return */ putProfileId(key: number): Promise<TapResponse<void>>; /** * * * LWM2M path: /1024//66 * * @tapVersion(">=1.0") * @param key input * @return call options */ putProfileIdCall(key: number): ServiceCallType; /** * Read and then clear JVM log * * LWM2M path: /1024//120 * * @tapVersion(">=2.11") * @return */ getLogAndClear(): Promise<TapResponse<string>>; /** * * * LWM2M path: /1024//120 * * @tapVersion(">=2.11") * @return call options */ getLogAndClearCall(): ServiceCallType; /** * Clear JVM log * * LWM2M path: /1024//120 * * @tapVersion(">=2.11") * @return */ clearLog(): Promise<TapResponse<void>>; /** * * * LWM2M path: /1024//120 * * @tapVersion(">=2.11") * @return call options */ clearLogCall(): ServiceCallType; /** * Read JVM log * * LWM2M path: /1024//121 * * @tapVersion(">=2.11") * @return */ getLog(): Promise<TapResponse<string>>; /** * * * LWM2M path: /1024//121 * * @tapVersion(">=2.11") * @return call options */ getLogCall(): ServiceCallType; /** * Write JVM log * * LWM2M path: /1024//121 * * @tapVersion(">=2.11") * @param value input * @return */ putLog(value: string): Promise<TapResponse<void>>; /** * * * LWM2M path: /1024//121 * * @tapVersion(">=2.11") * @param value input * @return call options */ putLogCall(value: string): ServiceCallType; /** * Get jvm last error code * * LWM2M path: /3//14 * * @tapVersion(">=2.11") * @return */ getErrorCode(): Promise<TapResponse<number>>; /** * * * LWM2M path: /3//14 * * @tapVersion(">=2.11") * @return call options */ getErrorCodeCall(): ServiceCallType; /** * Set jvm last error code * * LWM2M path: /3//14 * * @tapVersion(">=2.11") * @param errorCode input * @return */ postErrorCode(errorCode: number): Promise<TapResponse<void>>; /** * * * LWM2M path: /3//14 * * @tapVersion(">=2.11") * @param errorCode input * @return call options */ postErrorCodeCall(errorCode: number): ServiceCallType; }