UNPKG

@aneoconsultingfr/armonik.api

Version:

gRPC API to interact with ArmoniK built for the web

60 lines (57 loc) 3.52 kB
import { ListSessionsRequest, ListSessionsResponse, GetSessionRequest, GetSessionResponse, CancelSessionRequest, CancelSessionResponse, CreateSessionRequest, CreateSessionReply, PauseSessionRequest, PauseSessionResponse, ResumeSessionRequest, ResumeSessionResponse, CloseSessionRequest, CloseSessionResponse, PurgeSessionRequest, PurgeSessionResponse, DeleteSessionRequest, DeleteSessionResponse, StopSubmissionRequest, StopSubmissionResponse } from './sessions_common.js'; import './sessions_filters.js'; import './google/protobuf/duration.js'; import 'protobufjs/minimal.js'; import './filters_common.js'; import './sessions_fields.js'; import './session_status.js'; import './objects.js'; import './task_status.js'; import './sort_direction.js'; declare const protobufPackage = "armonik.api.grpc.v1.sessions"; /** Tasks related methods within a service. */ /** Service for handling sessions. */ interface Sessions { /** Get a sessions list using pagination, filters and sorting. */ ListSessions(request: ListSessionsRequest): Promise<ListSessionsResponse>; /** Get a session by its id. */ GetSession(request: GetSessionRequest): Promise<GetSessionResponse>; /** Cancel a session by its id. */ CancelSession(request: CancelSessionRequest): Promise<CancelSessionResponse>; /** Create a session */ CreateSession(request: CreateSessionRequest): Promise<CreateSessionReply>; /** Pause a session by its id. */ PauseSession(request: PauseSessionRequest): Promise<PauseSessionResponse>; /** Resume a paused session by its id. */ ResumeSession(request: ResumeSessionRequest): Promise<ResumeSessionResponse>; /** Close a session by its id.. */ CloseSession(request: CloseSessionRequest): Promise<CloseSessionResponse>; /** Purge a session by its id. Removes Results data. */ PurgeSession(request: PurgeSessionRequest): Promise<PurgeSessionResponse>; /** Delete a session by its id. Removes metadata from Results, Sessions and Tasks associated to the session. */ DeleteSession(request: DeleteSessionRequest): Promise<DeleteSessionResponse>; /** Stops clients and/or workers from submitting new tasks in the given session. */ StopSubmission(request: StopSubmissionRequest): Promise<StopSubmissionResponse>; } declare const SessionsServiceName = "armonik.api.grpc.v1.sessions.Sessions"; declare class SessionsClientImpl implements Sessions { private readonly rpc; private readonly service; constructor(rpc: Rpc, opts?: { service?: string; }); ListSessions(request: ListSessionsRequest): Promise<ListSessionsResponse>; GetSession(request: GetSessionRequest): Promise<GetSessionResponse>; CancelSession(request: CancelSessionRequest): Promise<CancelSessionResponse>; CreateSession(request: CreateSessionRequest): Promise<CreateSessionReply>; PauseSession(request: PauseSessionRequest): Promise<PauseSessionResponse>; ResumeSession(request: ResumeSessionRequest): Promise<ResumeSessionResponse>; CloseSession(request: CloseSessionRequest): Promise<CloseSessionResponse>; PurgeSession(request: PurgeSessionRequest): Promise<PurgeSessionResponse>; DeleteSession(request: DeleteSessionRequest): Promise<DeleteSessionResponse>; StopSubmission(request: StopSubmissionRequest): Promise<StopSubmissionResponse>; } interface Rpc { request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>; } export { Sessions, SessionsClientImpl, SessionsServiceName, protobufPackage };