@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.
- package/LICENSE +191 -0
- package/dist/index.gen.cjs +4 -0
- package/dist/index.gen.d.ts +5 -0
- package/dist/index.gen.js +4 -0
- package/dist/v1alpha1/api.gen.cjs +510 -0
- package/dist/v1alpha1/api.gen.d.ts +239 -0
- package/dist/v1alpha1/api.gen.js +510 -0
- package/dist/v1alpha1/content.gen.cjs +19 -0
- package/dist/v1alpha1/content.gen.d.ts +7 -0
- package/dist/v1alpha1/content.gen.js +19 -0
- package/dist/v1alpha1/index.gen.cjs +31 -0
- package/dist/v1alpha1/index.gen.d.ts +5 -0
- package/dist/v1alpha1/index.gen.js +31 -0
- package/dist/v1alpha1/marshalling.gen.cjs +322 -0
- package/dist/v1alpha1/marshalling.gen.d.ts +22 -0
- package/dist/v1alpha1/marshalling.gen.js +322 -0
- package/dist/v1alpha1/types.gen.d.ts +814 -0
- package/dist/v1alpha1/validation-rules.gen.cjs +14 -0
- package/dist/v1alpha1/validation-rules.gen.d.ts +10 -0
- package/dist/v1alpha1/validation-rules.gen.js +14 -0
- package/package.json +51 -0
|
@@ -0,0 +1,814 @@
|
|
|
1
|
+
import type { Money } from '@scaleway/sdk-client';
|
|
2
|
+
export type ApplicationType = 'unknown_type' | 'vqe';
|
|
3
|
+
export type JobStatus = 'unknown_status' | 'waiting' | 'error' | 'running' | 'completed' | 'cancelling' | 'cancelled';
|
|
4
|
+
export type ListApplicationsRequestOrderBy = 'name_asc' | 'name_desc' | 'type_asc' | 'type_desc';
|
|
5
|
+
export type ListJobResultsRequestOrderBy = 'created_at_desc' | 'created_at_asc';
|
|
6
|
+
export type ListJobsRequestOrderBy = 'created_at_desc' | 'created_at_asc' | 'status_asc' | 'status_desc' | 'platform_name_asc' | 'platform_name_desc' | 'name_asc' | 'name_desc' | 'session_name_asc' | 'session_name_desc';
|
|
7
|
+
export type ListPlatformsRequestOrderBy = 'name_asc' | 'name_desc' | 'provider_name_asc' | 'provider_name_desc' | 'type_asc' | 'type_desc' | 'technology_asc' | 'technology_desc' | 'backend_name_asc' | 'backend_name_desc';
|
|
8
|
+
export type ListProcessResultsRequestOrderBy = 'created_at_desc' | 'created_at_asc';
|
|
9
|
+
export type ListProcessesRequestOrderBy = 'created_at_desc' | 'created_at_asc' | 'name_asc' | 'name_desc' | 'started_at_asc' | 'started_at_desc' | 'status_asc' | 'status_desc';
|
|
10
|
+
export type ListSessionACLsRequestOrderBy = 'access_asc' | 'access_desc';
|
|
11
|
+
export type ListSessionsRequestOrderBy = 'name_asc' | 'name_desc' | 'started_at_asc' | 'started_at_desc' | 'status_asc' | 'status_desc' | 'created_at_desc' | 'created_at_asc';
|
|
12
|
+
export type PlatformAvailability = 'unknown_availability' | 'available' | 'shortage' | 'scarce' | 'maintenance';
|
|
13
|
+
export type PlatformTechnology = 'unknown_technology' | 'photonic' | 'general_purpose' | 'trapped_ion' | 'superconducting';
|
|
14
|
+
export type PlatformType = 'unknown_type' | 'simulator' | 'qpu';
|
|
15
|
+
export type ProcessStatus = 'unknown_status' | 'error' | 'starting' | 'running' | 'completed' | 'cancelling' | 'cancelled';
|
|
16
|
+
export type SessionAccess = 'unknown_access' | 'full' | 'read_session' | 'read_write_session' | 'read_job_result' | 'read_job_circuit' | 'read_job' | 'read_write_job';
|
|
17
|
+
export type SessionOriginType = 'unknown_origin_type' | 'customer' | 'process';
|
|
18
|
+
export type SessionStatus = 'unknown_status' | 'running' | 'stopped' | 'starting' | 'stopping';
|
|
19
|
+
export interface PlatformHardware {
|
|
20
|
+
/**
|
|
21
|
+
* Product name of the hardware.
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Number of vCPUs available.
|
|
26
|
+
*/
|
|
27
|
+
vcpus: number;
|
|
28
|
+
/**
|
|
29
|
+
* Number of GPUs available (0 if no GPU).
|
|
30
|
+
*/
|
|
31
|
+
gpus: number;
|
|
32
|
+
/**
|
|
33
|
+
* Network topology of GPUs (PCIe, NVLink...).
|
|
34
|
+
*/
|
|
35
|
+
gpusNetwork: string;
|
|
36
|
+
/**
|
|
37
|
+
* Amount of RAM available in byte.
|
|
38
|
+
*/
|
|
39
|
+
ram: number;
|
|
40
|
+
/**
|
|
41
|
+
* Amount of VRAM available in byte (0 if no GPU).
|
|
42
|
+
*/
|
|
43
|
+
vram: number;
|
|
44
|
+
}
|
|
45
|
+
export interface JobCircuit {
|
|
46
|
+
/**
|
|
47
|
+
* Circuit generated by Perceval that should be executed.
|
|
48
|
+
*
|
|
49
|
+
* One-of ('circuitSerialization'): at most one of 'percevalCircuit', 'qiskitCircuit' could be set.
|
|
50
|
+
*/
|
|
51
|
+
percevalCircuit?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Circuit generated by Qiskit that should be executed.
|
|
54
|
+
*
|
|
55
|
+
* One-of ('circuitSerialization'): at most one of 'percevalCircuit', 'qiskitCircuit' could be set.
|
|
56
|
+
*/
|
|
57
|
+
qiskitCircuit?: string;
|
|
58
|
+
}
|
|
59
|
+
export interface Application {
|
|
60
|
+
/**
|
|
61
|
+
* Unique ID of the application.
|
|
62
|
+
*/
|
|
63
|
+
id: string;
|
|
64
|
+
/**
|
|
65
|
+
* Name of the application.
|
|
66
|
+
*/
|
|
67
|
+
name: string;
|
|
68
|
+
/**
|
|
69
|
+
* Type of the application.
|
|
70
|
+
*/
|
|
71
|
+
type: ApplicationType;
|
|
72
|
+
/**
|
|
73
|
+
* List of compatible platform (by IDs) able to run this application.
|
|
74
|
+
*/
|
|
75
|
+
compatiblePlatformIds: string[];
|
|
76
|
+
/**
|
|
77
|
+
* JSON format describing the expected input.
|
|
78
|
+
*/
|
|
79
|
+
inputTemplate: string;
|
|
80
|
+
}
|
|
81
|
+
export interface JobResult {
|
|
82
|
+
/**
|
|
83
|
+
* ID of the parent job.
|
|
84
|
+
*/
|
|
85
|
+
jobId: string;
|
|
86
|
+
/**
|
|
87
|
+
* Result in JSON format.
|
|
88
|
+
*/
|
|
89
|
+
result?: string;
|
|
90
|
+
/**
|
|
91
|
+
* URL to download a large result (optional).
|
|
92
|
+
*/
|
|
93
|
+
url?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Creation time of the result.
|
|
96
|
+
*/
|
|
97
|
+
createdAt?: Date;
|
|
98
|
+
}
|
|
99
|
+
export interface Job {
|
|
100
|
+
/**
|
|
101
|
+
* Unique ID of the job.
|
|
102
|
+
*/
|
|
103
|
+
id: string;
|
|
104
|
+
/**
|
|
105
|
+
* Job name.
|
|
106
|
+
*/
|
|
107
|
+
name: string;
|
|
108
|
+
/**
|
|
109
|
+
* Tags of the job.
|
|
110
|
+
*/
|
|
111
|
+
tags?: string[];
|
|
112
|
+
/**
|
|
113
|
+
* Session ID in which the job is executed.
|
|
114
|
+
*/
|
|
115
|
+
sessionId: string;
|
|
116
|
+
/**
|
|
117
|
+
* Time at which the job was created.
|
|
118
|
+
*/
|
|
119
|
+
createdAt?: Date;
|
|
120
|
+
/**
|
|
121
|
+
* Time at which the job was started.
|
|
122
|
+
*/
|
|
123
|
+
startedAt?: Date;
|
|
124
|
+
/**
|
|
125
|
+
* Time at which the job was updated.
|
|
126
|
+
*/
|
|
127
|
+
updatedAt?: Date;
|
|
128
|
+
/**
|
|
129
|
+
* Job status.
|
|
130
|
+
*/
|
|
131
|
+
status: JobStatus;
|
|
132
|
+
/**
|
|
133
|
+
* Last progress message, if the job has started.
|
|
134
|
+
*/
|
|
135
|
+
progressMessage?: string;
|
|
136
|
+
/**
|
|
137
|
+
* Duration of the job, if the job is finished.
|
|
138
|
+
*/
|
|
139
|
+
jobDuration?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Result of the job, if the job is finished.
|
|
142
|
+
*/
|
|
143
|
+
resultDistribution?: string;
|
|
144
|
+
}
|
|
145
|
+
export interface Platform {
|
|
146
|
+
/**
|
|
147
|
+
* Unique ID of the platform.
|
|
148
|
+
*/
|
|
149
|
+
id: string;
|
|
150
|
+
/**
|
|
151
|
+
* Version of the platform.
|
|
152
|
+
*/
|
|
153
|
+
version: string;
|
|
154
|
+
/**
|
|
155
|
+
* Name of the platform.
|
|
156
|
+
*/
|
|
157
|
+
name: string;
|
|
158
|
+
/**
|
|
159
|
+
* Provider name of the platform.
|
|
160
|
+
*/
|
|
161
|
+
providerName: string;
|
|
162
|
+
/**
|
|
163
|
+
* Name of the running backend over the platform (ascella, qsim, aer...).
|
|
164
|
+
*/
|
|
165
|
+
backendName: string;
|
|
166
|
+
/**
|
|
167
|
+
* Type of the platform.
|
|
168
|
+
*/
|
|
169
|
+
type: PlatformType;
|
|
170
|
+
/**
|
|
171
|
+
* Technology used by the platform.
|
|
172
|
+
*/
|
|
173
|
+
technology: PlatformTechnology;
|
|
174
|
+
/**
|
|
175
|
+
* Estimated maximum number of qubits supported by the platform.
|
|
176
|
+
*/
|
|
177
|
+
maxQubitCount: number;
|
|
178
|
+
/**
|
|
179
|
+
* Maximum number of shots during a circuit execution.
|
|
180
|
+
*/
|
|
181
|
+
maxShotCount: number;
|
|
182
|
+
/**
|
|
183
|
+
* Maximum number of circuit that can be executed in one call.
|
|
184
|
+
*/
|
|
185
|
+
maxCircuitCount: number;
|
|
186
|
+
/**
|
|
187
|
+
* Availability of the platform.
|
|
188
|
+
*/
|
|
189
|
+
availability: PlatformAvailability;
|
|
190
|
+
/**
|
|
191
|
+
* Metadata provided by the platform.
|
|
192
|
+
*/
|
|
193
|
+
metadata: string;
|
|
194
|
+
/**
|
|
195
|
+
* Price to be paid per hour (excluding free tiers).
|
|
196
|
+
*/
|
|
197
|
+
pricePerHour?: Money;
|
|
198
|
+
/**
|
|
199
|
+
* Price to be paid per shot (excluding free tiers).
|
|
200
|
+
*/
|
|
201
|
+
pricePerShot?: Money;
|
|
202
|
+
/**
|
|
203
|
+
* Price to be paid per circuit setup before its execution (excluding free tiers).
|
|
204
|
+
*/
|
|
205
|
+
pricePerCircuit?: Money;
|
|
206
|
+
/**
|
|
207
|
+
* Specifications of the underlying hardware.
|
|
208
|
+
*/
|
|
209
|
+
hardware?: PlatformHardware;
|
|
210
|
+
}
|
|
211
|
+
export interface ProcessResult {
|
|
212
|
+
/**
|
|
213
|
+
* ID of the parent process.
|
|
214
|
+
*/
|
|
215
|
+
processId: string;
|
|
216
|
+
/**
|
|
217
|
+
* Result in JSON format.
|
|
218
|
+
*/
|
|
219
|
+
result: string;
|
|
220
|
+
/**
|
|
221
|
+
* Creation time of the result.
|
|
222
|
+
*/
|
|
223
|
+
createdAt?: Date;
|
|
224
|
+
}
|
|
225
|
+
export interface Process {
|
|
226
|
+
/**
|
|
227
|
+
* Unique ID of the process.
|
|
228
|
+
*/
|
|
229
|
+
id: string;
|
|
230
|
+
/**
|
|
231
|
+
* Name of the process.
|
|
232
|
+
*/
|
|
233
|
+
name: string;
|
|
234
|
+
/**
|
|
235
|
+
* Application ID for which the process has been created.
|
|
236
|
+
*/
|
|
237
|
+
applicationId?: string;
|
|
238
|
+
/**
|
|
239
|
+
* Platform ID for which the process has been created.
|
|
240
|
+
*/
|
|
241
|
+
platformId?: string;
|
|
242
|
+
/**
|
|
243
|
+
* List of sessions generated by the process.
|
|
244
|
+
*/
|
|
245
|
+
attachedSessionIds: string[];
|
|
246
|
+
/**
|
|
247
|
+
* Tme at which the process was created.
|
|
248
|
+
*/
|
|
249
|
+
createdAt?: Date;
|
|
250
|
+
/**
|
|
251
|
+
* Time at which the process started.
|
|
252
|
+
*/
|
|
253
|
+
startedAt?: Date;
|
|
254
|
+
/**
|
|
255
|
+
* Time at which the process was updated.
|
|
256
|
+
*/
|
|
257
|
+
updatedAt?: Date;
|
|
258
|
+
/**
|
|
259
|
+
* Time at which the process was finished.
|
|
260
|
+
*/
|
|
261
|
+
finishedAt?: Date;
|
|
262
|
+
/**
|
|
263
|
+
* Status of the process.
|
|
264
|
+
*/
|
|
265
|
+
status: ProcessStatus;
|
|
266
|
+
/**
|
|
267
|
+
* Project ID in which the process has been created.
|
|
268
|
+
*/
|
|
269
|
+
projectId: string;
|
|
270
|
+
/**
|
|
271
|
+
* Tags of the process.
|
|
272
|
+
*/
|
|
273
|
+
tags: string[];
|
|
274
|
+
/**
|
|
275
|
+
* Progress of the process, from 0 to 1.
|
|
276
|
+
*/
|
|
277
|
+
progress?: number;
|
|
278
|
+
/**
|
|
279
|
+
* Any progress of the process.
|
|
280
|
+
*/
|
|
281
|
+
progressMessage?: string;
|
|
282
|
+
/**
|
|
283
|
+
* Input payload of the process as JSON string.
|
|
284
|
+
*/
|
|
285
|
+
input?: string;
|
|
286
|
+
}
|
|
287
|
+
export interface Session {
|
|
288
|
+
/**
|
|
289
|
+
* Unique ID of the session.
|
|
290
|
+
*/
|
|
291
|
+
id: string;
|
|
292
|
+
/**
|
|
293
|
+
* Name of the session.
|
|
294
|
+
*/
|
|
295
|
+
name: string;
|
|
296
|
+
/**
|
|
297
|
+
* Platform ID for which the session has been created.
|
|
298
|
+
*/
|
|
299
|
+
platformId: string;
|
|
300
|
+
/**
|
|
301
|
+
* The time at which the session was created.
|
|
302
|
+
*/
|
|
303
|
+
createdAt?: Date;
|
|
304
|
+
/**
|
|
305
|
+
* The time at which the session started.
|
|
306
|
+
*/
|
|
307
|
+
startedAt?: Date;
|
|
308
|
+
/**
|
|
309
|
+
* The time at which the session was updated.
|
|
310
|
+
*/
|
|
311
|
+
updatedAt?: Date;
|
|
312
|
+
/**
|
|
313
|
+
* The time at which the session was terminated.
|
|
314
|
+
*/
|
|
315
|
+
terminatedAt?: Date;
|
|
316
|
+
/**
|
|
317
|
+
* Maximum idle time before the session ends.
|
|
318
|
+
*/
|
|
319
|
+
maxIdleDuration?: string;
|
|
320
|
+
/**
|
|
321
|
+
* Maximum duration before the session ends.
|
|
322
|
+
*/
|
|
323
|
+
maxDuration?: string;
|
|
324
|
+
/**
|
|
325
|
+
* Number of waiting jobs linked to the session.
|
|
326
|
+
*/
|
|
327
|
+
waitingJobCount: number;
|
|
328
|
+
/**
|
|
329
|
+
* Number of finished jobs linked to the session.
|
|
330
|
+
*/
|
|
331
|
+
finishedJobCount: number;
|
|
332
|
+
/**
|
|
333
|
+
* Status of the session.
|
|
334
|
+
*/
|
|
335
|
+
status: SessionStatus;
|
|
336
|
+
/**
|
|
337
|
+
* Project ID in which the session has been created.
|
|
338
|
+
*/
|
|
339
|
+
projectId: string;
|
|
340
|
+
/**
|
|
341
|
+
* Tags of the session.
|
|
342
|
+
*/
|
|
343
|
+
tags?: string[];
|
|
344
|
+
/**
|
|
345
|
+
* Deduplication ID of the session.
|
|
346
|
+
*/
|
|
347
|
+
deduplicationId: string;
|
|
348
|
+
/**
|
|
349
|
+
* Resource type that creates the session.
|
|
350
|
+
*/
|
|
351
|
+
originType: SessionOriginType;
|
|
352
|
+
/**
|
|
353
|
+
* Unique ID of the session's origin resource (if exists).
|
|
354
|
+
*/
|
|
355
|
+
originId?: string;
|
|
356
|
+
/**
|
|
357
|
+
* Any progress of the session.
|
|
358
|
+
*/
|
|
359
|
+
progressMessage?: string;
|
|
360
|
+
}
|
|
361
|
+
export type CancelJobRequest = {
|
|
362
|
+
/**
|
|
363
|
+
* Unique ID of the job.
|
|
364
|
+
*/
|
|
365
|
+
jobId: string;
|
|
366
|
+
};
|
|
367
|
+
export type CancelProcessRequest = {
|
|
368
|
+
/**
|
|
369
|
+
* Unique ID of the process.
|
|
370
|
+
*/
|
|
371
|
+
processId: string;
|
|
372
|
+
};
|
|
373
|
+
export type CreateJobRequest = {
|
|
374
|
+
/**
|
|
375
|
+
* Name of the job.
|
|
376
|
+
*/
|
|
377
|
+
name: string;
|
|
378
|
+
/**
|
|
379
|
+
* Tags of the job.
|
|
380
|
+
*/
|
|
381
|
+
tags?: string[];
|
|
382
|
+
/**
|
|
383
|
+
* Session in which the job is executed.
|
|
384
|
+
*/
|
|
385
|
+
sessionId: string;
|
|
386
|
+
/**
|
|
387
|
+
* Quantum circuit that should be executed.
|
|
388
|
+
*/
|
|
389
|
+
circuit: JobCircuit;
|
|
390
|
+
/**
|
|
391
|
+
* Maximum duration of the job.
|
|
392
|
+
*/
|
|
393
|
+
maxDuration?: string;
|
|
394
|
+
};
|
|
395
|
+
export type CreateProcessRequest = {
|
|
396
|
+
/**
|
|
397
|
+
* ID of the project in which the process was created.
|
|
398
|
+
*/
|
|
399
|
+
projectId?: string;
|
|
400
|
+
/**
|
|
401
|
+
* ID of the platform for which the process was created.
|
|
402
|
+
*/
|
|
403
|
+
platformId?: string;
|
|
404
|
+
/**
|
|
405
|
+
* ID of the application for which the process was created.
|
|
406
|
+
*/
|
|
407
|
+
applicationId?: string;
|
|
408
|
+
/**
|
|
409
|
+
* Name of the process.
|
|
410
|
+
*/
|
|
411
|
+
name: string;
|
|
412
|
+
/**
|
|
413
|
+
* Process parameters in JSON format.
|
|
414
|
+
*/
|
|
415
|
+
input?: string;
|
|
416
|
+
/**
|
|
417
|
+
* Tags of the process.
|
|
418
|
+
*/
|
|
419
|
+
tags?: string[];
|
|
420
|
+
};
|
|
421
|
+
export type CreateSessionRequest = {
|
|
422
|
+
/**
|
|
423
|
+
* ID of the Project in which the session was created.
|
|
424
|
+
*/
|
|
425
|
+
projectId?: string;
|
|
426
|
+
/**
|
|
427
|
+
* ID of the Platform for which the session was created.
|
|
428
|
+
*/
|
|
429
|
+
platformId: string;
|
|
430
|
+
/**
|
|
431
|
+
* Name of the session.
|
|
432
|
+
*/
|
|
433
|
+
name?: string;
|
|
434
|
+
/**
|
|
435
|
+
* Maximum idle duration before the session ends.
|
|
436
|
+
*/
|
|
437
|
+
maxIdleDuration?: string;
|
|
438
|
+
/**
|
|
439
|
+
* Maximum duration before the session ends.
|
|
440
|
+
*/
|
|
441
|
+
maxDuration?: string;
|
|
442
|
+
/**
|
|
443
|
+
* Tags of the session.
|
|
444
|
+
*/
|
|
445
|
+
tags?: string[];
|
|
446
|
+
/**
|
|
447
|
+
* Deduplication ID of the session.
|
|
448
|
+
*/
|
|
449
|
+
deduplicationId?: string;
|
|
450
|
+
};
|
|
451
|
+
export type DeleteJobRequest = {
|
|
452
|
+
/**
|
|
453
|
+
* Unique ID of the job.
|
|
454
|
+
*/
|
|
455
|
+
jobId: string;
|
|
456
|
+
};
|
|
457
|
+
export type DeleteProcessRequest = {
|
|
458
|
+
/**
|
|
459
|
+
* Unique ID of the process.
|
|
460
|
+
*/
|
|
461
|
+
processId: string;
|
|
462
|
+
};
|
|
463
|
+
export type DeleteSessionRequest = {
|
|
464
|
+
/**
|
|
465
|
+
* Unique ID of the session.
|
|
466
|
+
*/
|
|
467
|
+
sessionId: string;
|
|
468
|
+
};
|
|
469
|
+
export type GetApplicationRequest = {
|
|
470
|
+
/**
|
|
471
|
+
* Unique ID of the application.
|
|
472
|
+
*/
|
|
473
|
+
applicationId: string;
|
|
474
|
+
};
|
|
475
|
+
export type GetJobCircuitRequest = {
|
|
476
|
+
/**
|
|
477
|
+
* Unique ID of the job.
|
|
478
|
+
*/
|
|
479
|
+
jobId: string;
|
|
480
|
+
};
|
|
481
|
+
export type GetJobRequest = {
|
|
482
|
+
/**
|
|
483
|
+
* Unique ID of the job you want to get.
|
|
484
|
+
*/
|
|
485
|
+
jobId: string;
|
|
486
|
+
};
|
|
487
|
+
export type GetPlatformRequest = {
|
|
488
|
+
/**
|
|
489
|
+
* Unique ID of the platform.
|
|
490
|
+
*/
|
|
491
|
+
platformId: string;
|
|
492
|
+
};
|
|
493
|
+
export type GetProcessRequest = {
|
|
494
|
+
/**
|
|
495
|
+
* Unique ID of the process.
|
|
496
|
+
*/
|
|
497
|
+
processId: string;
|
|
498
|
+
};
|
|
499
|
+
export type GetSessionRequest = {
|
|
500
|
+
/**
|
|
501
|
+
* Unique ID of the session.
|
|
502
|
+
*/
|
|
503
|
+
sessionId: string;
|
|
504
|
+
};
|
|
505
|
+
export type ListApplicationsRequest = {
|
|
506
|
+
/**
|
|
507
|
+
* List applications with this name.
|
|
508
|
+
*/
|
|
509
|
+
name?: string;
|
|
510
|
+
/**
|
|
511
|
+
* List applications with this type.
|
|
512
|
+
*/
|
|
513
|
+
applicationType?: ApplicationType;
|
|
514
|
+
/**
|
|
515
|
+
* Page number.
|
|
516
|
+
*/
|
|
517
|
+
page?: number;
|
|
518
|
+
/**
|
|
519
|
+
* Maximum number of applications a to return per page.
|
|
520
|
+
*/
|
|
521
|
+
pageSize?: number;
|
|
522
|
+
/**
|
|
523
|
+
* Sort order of the returned applications.
|
|
524
|
+
*/
|
|
525
|
+
orderBy?: ListApplicationsRequestOrderBy;
|
|
526
|
+
};
|
|
527
|
+
export interface ListApplicationsResponse {
|
|
528
|
+
/**
|
|
529
|
+
* Total number of applications.
|
|
530
|
+
*/
|
|
531
|
+
totalCount: number;
|
|
532
|
+
/**
|
|
533
|
+
* List of applications.
|
|
534
|
+
*/
|
|
535
|
+
applications: Application[];
|
|
536
|
+
}
|
|
537
|
+
export type ListJobResultsRequest = {
|
|
538
|
+
/**
|
|
539
|
+
* ID of the job.
|
|
540
|
+
*/
|
|
541
|
+
jobId: string;
|
|
542
|
+
/**
|
|
543
|
+
* Page number.
|
|
544
|
+
*/
|
|
545
|
+
page?: number;
|
|
546
|
+
/**
|
|
547
|
+
* Maximum number of results to return per page.
|
|
548
|
+
*/
|
|
549
|
+
pageSize?: number;
|
|
550
|
+
/**
|
|
551
|
+
* Sort order of the returned results.
|
|
552
|
+
*/
|
|
553
|
+
orderBy?: ListJobResultsRequestOrderBy;
|
|
554
|
+
};
|
|
555
|
+
export interface ListJobResultsResponse {
|
|
556
|
+
/**
|
|
557
|
+
* Total number of results.
|
|
558
|
+
*/
|
|
559
|
+
totalCount: number;
|
|
560
|
+
/**
|
|
561
|
+
* List of results.
|
|
562
|
+
*/
|
|
563
|
+
jobResults: JobResult[];
|
|
564
|
+
}
|
|
565
|
+
export type ListJobsRequest = {
|
|
566
|
+
/**
|
|
567
|
+
* List jobs with this session ID.
|
|
568
|
+
*
|
|
569
|
+
* One-of ('resourceId'): at most one of 'sessionId', 'projectId' could be set.
|
|
570
|
+
*/
|
|
571
|
+
sessionId?: string;
|
|
572
|
+
/**
|
|
573
|
+
* List jobs with this project ID.
|
|
574
|
+
*
|
|
575
|
+
* One-of ('resourceId'): at most one of 'sessionId', 'projectId' could be set.
|
|
576
|
+
*/
|
|
577
|
+
projectId?: string;
|
|
578
|
+
/**
|
|
579
|
+
* List jobs with these tags.
|
|
580
|
+
*/
|
|
581
|
+
tags?: string[];
|
|
582
|
+
/**
|
|
583
|
+
* Page number.
|
|
584
|
+
*/
|
|
585
|
+
page?: number;
|
|
586
|
+
/**
|
|
587
|
+
* Maximum number of jobs to return per page.
|
|
588
|
+
*/
|
|
589
|
+
pageSize?: number;
|
|
590
|
+
/**
|
|
591
|
+
* Sort order of the returned jobs.
|
|
592
|
+
*/
|
|
593
|
+
orderBy?: ListJobsRequestOrderBy;
|
|
594
|
+
};
|
|
595
|
+
export interface ListJobsResponse {
|
|
596
|
+
/**
|
|
597
|
+
* Total number of jobs.
|
|
598
|
+
*/
|
|
599
|
+
totalCount: number;
|
|
600
|
+
/**
|
|
601
|
+
* List of jobs.
|
|
602
|
+
*/
|
|
603
|
+
jobs: Job[];
|
|
604
|
+
}
|
|
605
|
+
export type ListPlatformsRequest = {
|
|
606
|
+
/**
|
|
607
|
+
* List platforms with this provider name.
|
|
608
|
+
*/
|
|
609
|
+
providerName?: string;
|
|
610
|
+
/**
|
|
611
|
+
* List platforms with this backend name.
|
|
612
|
+
*/
|
|
613
|
+
backendName?: string;
|
|
614
|
+
/**
|
|
615
|
+
* List platforms with this name.
|
|
616
|
+
*/
|
|
617
|
+
name?: string;
|
|
618
|
+
/**
|
|
619
|
+
* List platforms with this type.
|
|
620
|
+
*/
|
|
621
|
+
platformType?: PlatformType;
|
|
622
|
+
/**
|
|
623
|
+
* List platforms with this technology.
|
|
624
|
+
*/
|
|
625
|
+
platformTechnology?: PlatformTechnology;
|
|
626
|
+
/**
|
|
627
|
+
* Page number.
|
|
628
|
+
*/
|
|
629
|
+
page?: number;
|
|
630
|
+
/**
|
|
631
|
+
* Maximum number of platforms to return per page.
|
|
632
|
+
*/
|
|
633
|
+
pageSize?: number;
|
|
634
|
+
/**
|
|
635
|
+
* Sort order of the returned platforms.
|
|
636
|
+
*/
|
|
637
|
+
orderBy?: ListPlatformsRequestOrderBy;
|
|
638
|
+
};
|
|
639
|
+
export interface ListPlatformsResponse {
|
|
640
|
+
/**
|
|
641
|
+
* Total number of platforms.
|
|
642
|
+
*/
|
|
643
|
+
totalCount: number;
|
|
644
|
+
/**
|
|
645
|
+
* List of platforms.
|
|
646
|
+
*/
|
|
647
|
+
platforms: Platform[];
|
|
648
|
+
}
|
|
649
|
+
export type ListProcessResultsRequest = {
|
|
650
|
+
/**
|
|
651
|
+
* ID of the process.
|
|
652
|
+
*/
|
|
653
|
+
processId: string;
|
|
654
|
+
/**
|
|
655
|
+
* Page number.
|
|
656
|
+
*/
|
|
657
|
+
page?: number;
|
|
658
|
+
/**
|
|
659
|
+
* Maximum number of results to return per page.
|
|
660
|
+
*/
|
|
661
|
+
pageSize?: number;
|
|
662
|
+
/**
|
|
663
|
+
* Sort order of the returned results.
|
|
664
|
+
*/
|
|
665
|
+
orderBy?: ListProcessResultsRequestOrderBy;
|
|
666
|
+
};
|
|
667
|
+
export interface ListProcessResultsResponse {
|
|
668
|
+
/**
|
|
669
|
+
* Total number of results.
|
|
670
|
+
*/
|
|
671
|
+
totalCount: number;
|
|
672
|
+
/**
|
|
673
|
+
* List of results.
|
|
674
|
+
*/
|
|
675
|
+
processResults: ProcessResult[];
|
|
676
|
+
}
|
|
677
|
+
export type ListProcessesRequest = {
|
|
678
|
+
/**
|
|
679
|
+
* List processes that have been created for this application.
|
|
680
|
+
*/
|
|
681
|
+
applicationId?: string;
|
|
682
|
+
/**
|
|
683
|
+
* List processes with these tags.
|
|
684
|
+
*/
|
|
685
|
+
tags?: string[];
|
|
686
|
+
/**
|
|
687
|
+
* Page number.
|
|
688
|
+
*/
|
|
689
|
+
page?: number;
|
|
690
|
+
/**
|
|
691
|
+
* Maximum number of processes to return per page.
|
|
692
|
+
*/
|
|
693
|
+
pageSize?: number;
|
|
694
|
+
/**
|
|
695
|
+
* Sort order of the returned processes.
|
|
696
|
+
*/
|
|
697
|
+
orderBy?: ListProcessesRequestOrderBy;
|
|
698
|
+
/**
|
|
699
|
+
* List processes belonging to this project ID.
|
|
700
|
+
*/
|
|
701
|
+
projectId?: string;
|
|
702
|
+
};
|
|
703
|
+
export interface ListProcessesResponse {
|
|
704
|
+
/**
|
|
705
|
+
* Total number of processes.
|
|
706
|
+
*/
|
|
707
|
+
totalCount: number;
|
|
708
|
+
/**
|
|
709
|
+
* List of processes.
|
|
710
|
+
*/
|
|
711
|
+
processes: Process[];
|
|
712
|
+
}
|
|
713
|
+
export type ListSessionACLsRequest = {
|
|
714
|
+
sessionId: string;
|
|
715
|
+
page?: number;
|
|
716
|
+
pageSize?: number;
|
|
717
|
+
orderBy?: ListSessionACLsRequestOrderBy;
|
|
718
|
+
};
|
|
719
|
+
export interface ListSessionACLsResponse {
|
|
720
|
+
totalCount: number;
|
|
721
|
+
acls: SessionAccess[];
|
|
722
|
+
}
|
|
723
|
+
export type ListSessionsRequest = {
|
|
724
|
+
/**
|
|
725
|
+
* List sessions that have been created for this platform.
|
|
726
|
+
*/
|
|
727
|
+
platformId?: string;
|
|
728
|
+
/**
|
|
729
|
+
* List sessions with these tags.
|
|
730
|
+
*/
|
|
731
|
+
tags?: string[];
|
|
732
|
+
/**
|
|
733
|
+
* Page number.
|
|
734
|
+
*/
|
|
735
|
+
page?: number;
|
|
736
|
+
/**
|
|
737
|
+
* Maximum number of sessions to return per page.
|
|
738
|
+
*/
|
|
739
|
+
pageSize?: number;
|
|
740
|
+
/**
|
|
741
|
+
* Sort order of the returned sessions.
|
|
742
|
+
*/
|
|
743
|
+
orderBy?: ListSessionsRequestOrderBy;
|
|
744
|
+
/**
|
|
745
|
+
* List sessions belonging to this project ID.
|
|
746
|
+
*/
|
|
747
|
+
projectId?: string;
|
|
748
|
+
};
|
|
749
|
+
export interface ListSessionsResponse {
|
|
750
|
+
/**
|
|
751
|
+
* Total number of sessions.
|
|
752
|
+
*/
|
|
753
|
+
totalCount: number;
|
|
754
|
+
/**
|
|
755
|
+
* List of sessions.
|
|
756
|
+
*/
|
|
757
|
+
sessions: Session[];
|
|
758
|
+
}
|
|
759
|
+
export type TerminateSessionRequest = {
|
|
760
|
+
/**
|
|
761
|
+
* Unique ID of the session.
|
|
762
|
+
*/
|
|
763
|
+
sessionId: string;
|
|
764
|
+
};
|
|
765
|
+
export type UpdateJobRequest = {
|
|
766
|
+
/**
|
|
767
|
+
* Unique ID of the job.
|
|
768
|
+
*/
|
|
769
|
+
jobId: string;
|
|
770
|
+
/**
|
|
771
|
+
* Name of the job.
|
|
772
|
+
*/
|
|
773
|
+
name?: string;
|
|
774
|
+
/**
|
|
775
|
+
* Tags of the job.
|
|
776
|
+
*/
|
|
777
|
+
tags?: string[];
|
|
778
|
+
};
|
|
779
|
+
export type UpdateProcessRequest = {
|
|
780
|
+
/**
|
|
781
|
+
* Unique ID of the process.
|
|
782
|
+
*/
|
|
783
|
+
processId: string;
|
|
784
|
+
/**
|
|
785
|
+
* Name of the process.
|
|
786
|
+
*/
|
|
787
|
+
name?: string;
|
|
788
|
+
/**
|
|
789
|
+
* Tags of the process.
|
|
790
|
+
*/
|
|
791
|
+
tags?: string[];
|
|
792
|
+
};
|
|
793
|
+
export type UpdateSessionRequest = {
|
|
794
|
+
/**
|
|
795
|
+
* Unique ID of the session.
|
|
796
|
+
*/
|
|
797
|
+
sessionId: string;
|
|
798
|
+
/**
|
|
799
|
+
* Name of the session.
|
|
800
|
+
*/
|
|
801
|
+
name?: string;
|
|
802
|
+
/**
|
|
803
|
+
* Maximum idle duration before the session ends.
|
|
804
|
+
*/
|
|
805
|
+
maxIdleDuration?: string;
|
|
806
|
+
/**
|
|
807
|
+
* Maximum time before the session ends.
|
|
808
|
+
*/
|
|
809
|
+
maxDuration?: string;
|
|
810
|
+
/**
|
|
811
|
+
* Tags of the session.
|
|
812
|
+
*/
|
|
813
|
+
tags?: string[];
|
|
814
|
+
};
|