@scaleway/sdk-qaas 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,239 @@
1
+ import { API as ParentAPI } from '@scaleway/sdk-client';
2
+ import type { WaitForOptions } from '@scaleway/sdk-client';
3
+ import type { Application, CancelJobRequest, CancelProcessRequest, CreateJobRequest, CreateProcessRequest, CreateSessionRequest, DeleteJobRequest, DeleteProcessRequest, DeleteSessionRequest, GetApplicationRequest, GetJobCircuitRequest, GetJobRequest, GetPlatformRequest, GetProcessRequest, GetSessionRequest, Job, JobCircuit, ListApplicationsRequest, ListApplicationsResponse, ListJobResultsRequest, ListJobResultsResponse, ListJobsRequest, ListJobsResponse, ListPlatformsRequest, ListPlatformsResponse, ListProcessResultsRequest, ListProcessResultsResponse, ListProcessesRequest, ListProcessesResponse, ListSessionACLsRequest, ListSessionACLsResponse, ListSessionsRequest, ListSessionsResponse, Platform, Process, Session, TerminateSessionRequest, UpdateJobRequest, UpdateProcessRequest, UpdateSessionRequest } from './types.gen';
4
+ /**
5
+ * Quantum as a Service API.
6
+
7
+ This API allows you to manage Scaleway Quantum as a Service.
8
+ */
9
+ export declare class API extends ParentAPI {
10
+ /**
11
+ * Get job information. Retrieve information about the provided **job ID**, such as status, payload, and result.
12
+ *
13
+ * @param request - The request {@link GetJobRequest}
14
+ * @returns A Promise of Job
15
+ */
16
+ getJob: (request: Readonly<GetJobRequest>) => Promise<Job>;
17
+ /**
18
+ * Waits for {@link Job} to be in a final state.
19
+ *
20
+ * @param request - The request {@link GetJobRequest}
21
+ * @param options - The waiting options
22
+ * @returns A Promise of Job
23
+ */
24
+ waitForJob: (request: Readonly<GetJobRequest>, options?: Readonly<WaitForOptions<Job>>) => Promise<Job>;
25
+ protected pageOfListJobs: (request?: Readonly<ListJobsRequest>) => Promise<ListJobsResponse>;
26
+ /**
27
+ * List all jobs within a project or session. Retrieve information about all jobs within a given project or session.
28
+ *
29
+ * @param request - The request {@link ListJobsRequest}
30
+ * @returns A Promise of ListJobsResponse
31
+ */
32
+ listJobs: (request?: Readonly<ListJobsRequest>) => Promise<ListJobsResponse> & {
33
+ all: () => Promise<Job[]>;
34
+ [Symbol.asyncIterator]: () => AsyncGenerator<Job[], void, void>;
35
+ };
36
+ protected pageOfListJobResults: (request: Readonly<ListJobResultsRequest>) => Promise<ListJobResultsResponse>;
37
+ /**
38
+ * List all results of a job. Retrieve all intermediate and final results of a job.
39
+ *
40
+ * @param request - The request {@link ListJobResultsRequest}
41
+ * @returns A Promise of ListJobResultsResponse
42
+ */
43
+ listJobResults: (request: Readonly<ListJobResultsRequest>) => Promise<ListJobResultsResponse> & {
44
+ all: () => Promise<import("./types.gen").JobResult[]>;
45
+ [Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").JobResult[], void, void>;
46
+ };
47
+ /**
48
+ * Create a job. Create a job to be executed inside a session.
49
+ *
50
+ * @param request - The request {@link CreateJobRequest}
51
+ * @returns A Promise of Job
52
+ */
53
+ createJob: (request: Readonly<CreateJobRequest>) => Promise<Job>;
54
+ /**
55
+ * Update job information. Update job information about the provided **job ID**.
56
+ *
57
+ * @param request - The request {@link UpdateJobRequest}
58
+ * @returns A Promise of Job
59
+ */
60
+ updateJob: (request: Readonly<UpdateJobRequest>) => Promise<Job>;
61
+ /**
62
+ * Cancel a job. Cancel the job corresponding to the provided **job ID**.
63
+ *
64
+ * @param request - The request {@link CancelJobRequest}
65
+ * @returns A Promise of Job
66
+ */
67
+ cancelJob: (request: Readonly<CancelJobRequest>) => Promise<Job>;
68
+ /**
69
+ * Delete a job. Delete the job corresponding to the provided **job ID**.
70
+ *
71
+ * @param request - The request {@link DeleteJobRequest}
72
+ */
73
+ deleteJob: (request: Readonly<DeleteJobRequest>) => Promise<void>;
74
+ /**
75
+ * Get a job circuit. Retrieve the circuit of the provided **job ID**.
76
+ *
77
+ * @param request - The request {@link GetJobCircuitRequest}
78
+ * @returns A Promise of JobCircuit
79
+ */
80
+ getJobCircuit: (request: Readonly<GetJobCircuitRequest>) => Promise<JobCircuit>;
81
+ /**
82
+ * Get platform information. Retrieve information about the provided **platform ID**, such as provider name, technology, and type.
83
+ *
84
+ * @param request - The request {@link GetPlatformRequest}
85
+ * @returns A Promise of Platform
86
+ */
87
+ getPlatform: (request: Readonly<GetPlatformRequest>) => Promise<Platform>;
88
+ protected pageOfListPlatforms: (request?: Readonly<ListPlatformsRequest>) => Promise<ListPlatformsResponse>;
89
+ /**
90
+ * List all available platforms. Retrieve information about all platforms.
91
+ *
92
+ * @param request - The request {@link ListPlatformsRequest}
93
+ * @returns A Promise of ListPlatformsResponse
94
+ */
95
+ listPlatforms: (request?: Readonly<ListPlatformsRequest>) => Promise<ListPlatformsResponse> & {
96
+ all: () => Promise<Platform[]>;
97
+ [Symbol.asyncIterator]: () => AsyncGenerator<Platform[], void, void>;
98
+ };
99
+ /**
100
+ * Get session infrormation. Retrieve information about the provided **session ID**, such as name, status, and number of executed jobs.
101
+ *
102
+ * @param request - The request {@link GetSessionRequest}
103
+ * @returns A Promise of Session
104
+ */
105
+ getSession: (request: Readonly<GetSessionRequest>) => Promise<Session>;
106
+ /**
107
+ * Waits for {@link Session} to be in a final state.
108
+ *
109
+ * @param request - The request {@link GetSessionRequest}
110
+ * @param options - The waiting options
111
+ * @returns A Promise of Session
112
+ */
113
+ waitForSession: (request: Readonly<GetSessionRequest>, options?: Readonly<WaitForOptions<Session>>) => Promise<Session>;
114
+ protected pageOfListSessions: (request?: Readonly<ListSessionsRequest>) => Promise<ListSessionsResponse>;
115
+ /**
116
+ * List all sessions. Retrieve information about all sessions.
117
+ *
118
+ * @param request - The request {@link ListSessionsRequest}
119
+ * @returns A Promise of ListSessionsResponse
120
+ */
121
+ listSessions: (request?: Readonly<ListSessionsRequest>) => Promise<ListSessionsResponse> & {
122
+ all: () => Promise<Session[]>;
123
+ [Symbol.asyncIterator]: () => AsyncGenerator<Session[], void, void>;
124
+ };
125
+ /**
126
+ * Create a session. Create a dedicated session for the specified platform.
127
+ *
128
+ * @param request - The request {@link CreateSessionRequest}
129
+ * @returns A Promise of Session
130
+ */
131
+ createSession: (request: Readonly<CreateSessionRequest>) => Promise<Session>;
132
+ /**
133
+ * Update session information. Update session information of the provided **session ID**.
134
+ *
135
+ * @param request - The request {@link UpdateSessionRequest}
136
+ * @returns A Promise of Session
137
+ */
138
+ updateSession: (request: Readonly<UpdateSessionRequest>) => Promise<Session>;
139
+ /**
140
+ * Terminate an existing session. Terminate a session by its unique ID and cancel all its attached jobs.
141
+ *
142
+ * @param request - The request {@link TerminateSessionRequest}
143
+ * @returns A Promise of Session
144
+ */
145
+ terminateSession: (request: Readonly<TerminateSessionRequest>) => Promise<Session>;
146
+ /**
147
+ * Delete an existing session. Delete a session by its unique ID and delete all its attached jobs.
148
+ *
149
+ * @param request - The request {@link DeleteSessionRequest}
150
+ */
151
+ deleteSession: (request: Readonly<DeleteSessionRequest>) => Promise<void>;
152
+ protected pageOfListSessionACLs: (request: Readonly<ListSessionACLsRequest>) => Promise<ListSessionACLsResponse>;
153
+ listSessionACLs: (request: Readonly<ListSessionACLsRequest>) => Promise<ListSessionACLsResponse> & {
154
+ all: () => Promise<import("./types.gen").SessionAccess[]>;
155
+ [Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").SessionAccess[], void, void>;
156
+ };
157
+ /**
158
+ * Create a process. Create a new process for the specified application on a specified platform.
159
+ *
160
+ * @param request - The request {@link CreateProcessRequest}
161
+ * @returns A Promise of Process
162
+ */
163
+ createProcess: (request: Readonly<CreateProcessRequest>) => Promise<Process>;
164
+ /**
165
+ * Get process infrormation. Retrieve information about the provided **process ID**, such as name, status and progress.
166
+ *
167
+ * @param request - The request {@link GetProcessRequest}
168
+ * @returns A Promise of Process
169
+ */
170
+ getProcess: (request: Readonly<GetProcessRequest>) => Promise<Process>;
171
+ /**
172
+ * Waits for {@link Process} to be in a final state.
173
+ *
174
+ * @param request - The request {@link GetProcessRequest}
175
+ * @param options - The waiting options
176
+ * @returns A Promise of Process
177
+ */
178
+ waitForProcess: (request: Readonly<GetProcessRequest>, options?: Readonly<WaitForOptions<Process>>) => Promise<Process>;
179
+ protected pageOfListProcesses: (request?: Readonly<ListProcessesRequest>) => Promise<ListProcessesResponse>;
180
+ /**
181
+ * List all processes. Retrieve information about all processes.
182
+ *
183
+ * @param request - The request {@link ListProcessesRequest}
184
+ * @returns A Promise of ListProcessesResponse
185
+ */
186
+ listProcesses: (request?: Readonly<ListProcessesRequest>) => Promise<ListProcessesResponse> & {
187
+ all: () => Promise<Process[]>;
188
+ [Symbol.asyncIterator]: () => AsyncGenerator<Process[], void, void>;
189
+ };
190
+ /**
191
+ * Update process information. Update process information of the provided **process ID**.
192
+ *
193
+ * @param request - The request {@link UpdateProcessRequest}
194
+ * @returns A Promise of Process
195
+ */
196
+ updateProcess: (request: Readonly<UpdateProcessRequest>) => Promise<Process>;
197
+ /**
198
+ * Cancel a running process. Cancel a process by its unique ID. Intermediate results are still available.
199
+ *
200
+ * @param request - The request {@link CancelProcessRequest}
201
+ * @returns A Promise of Process
202
+ */
203
+ cancelProcess: (request: Readonly<CancelProcessRequest>) => Promise<Process>;
204
+ /**
205
+ * Delete an existing process. Delete a process by its unique ID and delete all its data.
206
+ *
207
+ * @param request - The request {@link DeleteProcessRequest}
208
+ */
209
+ deleteProcess: (request: Readonly<DeleteProcessRequest>) => Promise<void>;
210
+ protected pageOfListProcessResults: (request: Readonly<ListProcessResultsRequest>) => Promise<ListProcessResultsResponse>;
211
+ /**
212
+ * List all results of a process. Retrieve all intermediate and final result of a process.
213
+ *
214
+ * @param request - The request {@link ListProcessResultsRequest}
215
+ * @returns A Promise of ListProcessResultsResponse
216
+ */
217
+ listProcessResults: (request: Readonly<ListProcessResultsRequest>) => Promise<ListProcessResultsResponse> & {
218
+ all: () => Promise<import("./types.gen").ProcessResult[]>;
219
+ [Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").ProcessResult[], void, void>;
220
+ };
221
+ /**
222
+ * Get application information. Retrieve information about the provided **applcation ID**, such as name, type and compatible platforms.
223
+ *
224
+ * @param request - The request {@link GetApplicationRequest}
225
+ * @returns A Promise of Application
226
+ */
227
+ getApplication: (request: Readonly<GetApplicationRequest>) => Promise<Application>;
228
+ protected pageOfListApplications: (request?: Readonly<ListApplicationsRequest>) => Promise<ListApplicationsResponse>;
229
+ /**
230
+ * List all available applications. Retrieve information about all applications.
231
+ *
232
+ * @param request - The request {@link ListApplicationsRequest}
233
+ * @returns A Promise of ListApplicationsResponse
234
+ */
235
+ listApplications: (request?: Readonly<ListApplicationsRequest>) => Promise<ListApplicationsResponse> & {
236
+ all: () => Promise<Application[]>;
237
+ [Symbol.asyncIterator]: () => AsyncGenerator<Application[], void, void>;
238
+ };
239
+ }