@scaleway/sdk-qaas 2.7.0 → 2.9.0
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/dist/.vite/license.md +3 -0
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/index.gen.d.ts +5 -0
- package/dist/index.gen.js +2 -0
- package/dist/metadata.gen.d.ts +12 -0
- package/dist/metadata.gen.js +13 -0
- package/dist/v1alpha1/api.gen.d.ts +297 -0
- package/dist/v1alpha1/api.gen.js +198 -0
- package/dist/v1alpha1/content.gen.d.ts +9 -0
- package/dist/v1alpha1/content.gen.js +23 -0
- package/dist/v1alpha1/index.gen.d.ts +5 -0
- package/dist/v1alpha1/index.gen.js +42 -0
- package/dist/v1alpha1/marshalling.gen.d.ts +28 -0
- package/dist/v1alpha1/marshalling.gen.js +304 -0
- package/dist/v1alpha1/metadata.gen.d.ts +224 -0
- package/dist/v1alpha1/metadata.gen.js +245 -0
- package/dist/v1alpha1/types.gen.d.ts +1057 -0
- package/dist/v1alpha1/types.gen.js +0 -0
- package/dist/v1alpha1/validation-rules.gen.d.ts +10 -0
- package/dist/v1alpha1/validation-rules.gen.js +10 -0
- package/package.json +4 -4
- package/LICENSE +0 -191
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
|
+
import type { JobCircuit, Application, Booking, Job, Model, Platform, Process, Session, ListApplicationsResponse, ListBookingsResponse, ListJobResultsResponse, ListJobsResponse, ListModelsResponse, ListPlatformsResponse, ListProcessResultsResponse, ListProcessesResponse, ListSessionACLsResponse, ListSessionsResponse, CreateJobRequest, CreateModelRequest, CreateProcessRequest, CreateSessionRequest, UpdateBookingRequest, UpdateJobRequest, UpdateProcessRequest, UpdateSessionRequest } from './types.gen.js';
|
|
3
|
+
export declare const unmarshalJobCircuit: (data: unknown) => JobCircuit;
|
|
4
|
+
export declare const unmarshalApplication: (data: unknown) => Application;
|
|
5
|
+
export declare const unmarshalBooking: (data: unknown) => Booking;
|
|
6
|
+
export declare const unmarshalJob: (data: unknown) => Job;
|
|
7
|
+
export declare const unmarshalModel: (data: unknown) => Model;
|
|
8
|
+
export declare const unmarshalPlatform: (data: unknown) => Platform;
|
|
9
|
+
export declare const unmarshalProcess: (data: unknown) => Process;
|
|
10
|
+
export declare const unmarshalSession: (data: unknown) => Session;
|
|
11
|
+
export declare const unmarshalListApplicationsResponse: (data: unknown) => ListApplicationsResponse;
|
|
12
|
+
export declare const unmarshalListBookingsResponse: (data: unknown) => ListBookingsResponse;
|
|
13
|
+
export declare const unmarshalListJobResultsResponse: (data: unknown) => ListJobResultsResponse;
|
|
14
|
+
export declare const unmarshalListJobsResponse: (data: unknown) => ListJobsResponse;
|
|
15
|
+
export declare const unmarshalListModelsResponse: (data: unknown) => ListModelsResponse;
|
|
16
|
+
export declare const unmarshalListPlatformsResponse: (data: unknown) => ListPlatformsResponse;
|
|
17
|
+
export declare const unmarshalListProcessResultsResponse: (data: unknown) => ListProcessResultsResponse;
|
|
18
|
+
export declare const unmarshalListProcessesResponse: (data: unknown) => ListProcessesResponse;
|
|
19
|
+
export declare const unmarshalListSessionACLsResponse: (data: unknown) => ListSessionACLsResponse;
|
|
20
|
+
export declare const unmarshalListSessionsResponse: (data: unknown) => ListSessionsResponse;
|
|
21
|
+
export declare const marshalCreateJobRequest: (request: CreateJobRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
22
|
+
export declare const marshalCreateModelRequest: (request: CreateModelRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
23
|
+
export declare const marshalCreateProcessRequest: (request: CreateProcessRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
24
|
+
export declare const marshalCreateSessionRequest: (request: CreateSessionRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
25
|
+
export declare const marshalUpdateBookingRequest: (request: UpdateBookingRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
26
|
+
export declare const marshalUpdateJobRequest: (request: UpdateJobRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
27
|
+
export declare const marshalUpdateProcessRequest: (request: UpdateProcessRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
28
|
+
export declare const marshalUpdateSessionRequest: (request: UpdateSessionRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate, unmarshalMoney } from "@scaleway/sdk-client";
|
|
2
|
+
//#region src/v1alpha1/marshalling.gen.ts
|
|
3
|
+
const unmarshalJobCircuit = (data) => {
|
|
4
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'JobCircuit' failed as data isn't a dictionary.`);
|
|
5
|
+
return {
|
|
6
|
+
percevalCircuit: data.perceval_circuit,
|
|
7
|
+
qiskitCircuit: data.qiskit_circuit
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
const unmarshalApplication = (data) => {
|
|
11
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Application' failed as data isn't a dictionary.`);
|
|
12
|
+
return {
|
|
13
|
+
compatiblePlatformIds: data.compatible_platform_ids,
|
|
14
|
+
id: data.id,
|
|
15
|
+
inputTemplate: data.input_template,
|
|
16
|
+
name: data.name,
|
|
17
|
+
type: data.type
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
const unmarshalBooking = (data) => {
|
|
21
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Booking' failed as data isn't a dictionary.`);
|
|
22
|
+
return {
|
|
23
|
+
createdAt: unmarshalDate(data.created_at),
|
|
24
|
+
description: data.description,
|
|
25
|
+
finishedAt: unmarshalDate(data.finished_at),
|
|
26
|
+
id: data.id,
|
|
27
|
+
progressMessage: data.progress_message,
|
|
28
|
+
startedAt: unmarshalDate(data.started_at),
|
|
29
|
+
status: data.status,
|
|
30
|
+
timeZone: data.time_zone,
|
|
31
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
const unmarshalJob = (data) => {
|
|
35
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Job' failed as data isn't a dictionary.`);
|
|
36
|
+
return {
|
|
37
|
+
createdAt: unmarshalDate(data.created_at),
|
|
38
|
+
id: data.id,
|
|
39
|
+
jobDuration: data.job_duration,
|
|
40
|
+
modelId: data.model_id,
|
|
41
|
+
name: data.name,
|
|
42
|
+
parameters: data.parameters,
|
|
43
|
+
progressMessage: data.progress_message,
|
|
44
|
+
resultDistribution: data.result_distribution,
|
|
45
|
+
sessionId: data.session_id,
|
|
46
|
+
startedAt: unmarshalDate(data.started_at),
|
|
47
|
+
status: data.status,
|
|
48
|
+
tags: data.tags,
|
|
49
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
const unmarshalModel = (data) => {
|
|
53
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Model' failed as data isn't a dictionary.`);
|
|
54
|
+
return {
|
|
55
|
+
createdAt: unmarshalDate(data.created_at),
|
|
56
|
+
id: data.id,
|
|
57
|
+
projectId: data.project_id,
|
|
58
|
+
url: data.url
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
const unmarshalPlatformBookingRequirement = (data) => {
|
|
62
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PlatformBookingRequirement' failed as data isn't a dictionary.`);
|
|
63
|
+
return {
|
|
64
|
+
maxBookingPerDay: data.max_booking_per_day,
|
|
65
|
+
maxBookingPerWeek: data.max_booking_per_week,
|
|
66
|
+
maxCancellationDuration: data.max_cancellation_duration,
|
|
67
|
+
maxDuration: data.max_duration,
|
|
68
|
+
maxPlanificationDuration: data.max_planification_duration,
|
|
69
|
+
minDuration: data.min_duration,
|
|
70
|
+
minPlanificationDuration: data.min_planification_duration
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
const unmarshalPlatformHardware = (data) => {
|
|
74
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PlatformHardware' failed as data isn't a dictionary.`);
|
|
75
|
+
return {
|
|
76
|
+
gpus: data.gpus,
|
|
77
|
+
gpusNetwork: data.gpus_network,
|
|
78
|
+
name: data.name,
|
|
79
|
+
ram: data.ram,
|
|
80
|
+
vcpus: data.vcpus,
|
|
81
|
+
vram: data.vram
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
const unmarshalPlatform = (data) => {
|
|
85
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Platform' failed as data isn't a dictionary.`);
|
|
86
|
+
return {
|
|
87
|
+
availability: data.availability,
|
|
88
|
+
backendName: data.backend_name,
|
|
89
|
+
bookingRequirement: data.booking_requirement ? unmarshalPlatformBookingRequirement(data.booking_requirement) : void 0,
|
|
90
|
+
description: data.description,
|
|
91
|
+
documentationUrl: data.documentation_url,
|
|
92
|
+
hardware: data.hardware ? unmarshalPlatformHardware(data.hardware) : void 0,
|
|
93
|
+
id: data.id,
|
|
94
|
+
isBookable: data.is_bookable,
|
|
95
|
+
maxCircuitCount: data.max_circuit_count,
|
|
96
|
+
maxQubitCount: data.max_qubit_count,
|
|
97
|
+
maxShotCount: data.max_shot_count,
|
|
98
|
+
metadata: data.metadata,
|
|
99
|
+
name: data.name,
|
|
100
|
+
pricePerCircuit: data.price_per_circuit ? unmarshalMoney(data.price_per_circuit) : void 0,
|
|
101
|
+
pricePerHour: data.price_per_hour ? unmarshalMoney(data.price_per_hour) : void 0,
|
|
102
|
+
pricePerShot: data.price_per_shot ? unmarshalMoney(data.price_per_shot) : void 0,
|
|
103
|
+
providerName: data.provider_name,
|
|
104
|
+
technology: data.technology,
|
|
105
|
+
type: data.type,
|
|
106
|
+
version: data.version
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
const unmarshalProcess = (data) => {
|
|
110
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Process' failed as data isn't a dictionary.`);
|
|
111
|
+
return {
|
|
112
|
+
applicationId: data.application_id,
|
|
113
|
+
attachedSessionIds: data.attached_session_ids,
|
|
114
|
+
createdAt: unmarshalDate(data.created_at),
|
|
115
|
+
finishedAt: unmarshalDate(data.finished_at),
|
|
116
|
+
id: data.id,
|
|
117
|
+
input: data.input,
|
|
118
|
+
name: data.name,
|
|
119
|
+
platformId: data.platform_id,
|
|
120
|
+
progress: data.progress,
|
|
121
|
+
progressMessage: data.progress_message,
|
|
122
|
+
projectId: data.project_id,
|
|
123
|
+
startedAt: unmarshalDate(data.started_at),
|
|
124
|
+
status: data.status,
|
|
125
|
+
tags: data.tags,
|
|
126
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
const unmarshalSession = (data) => {
|
|
130
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Session' failed as data isn't a dictionary.`);
|
|
131
|
+
return {
|
|
132
|
+
bookingId: data.booking_id,
|
|
133
|
+
createdAt: unmarshalDate(data.created_at),
|
|
134
|
+
deduplicationId: data.deduplication_id,
|
|
135
|
+
finishedJobCount: data.finished_job_count,
|
|
136
|
+
id: data.id,
|
|
137
|
+
maxDuration: data.max_duration,
|
|
138
|
+
maxIdleDuration: data.max_idle_duration,
|
|
139
|
+
modelId: data.model_id,
|
|
140
|
+
name: data.name,
|
|
141
|
+
originId: data.origin_id,
|
|
142
|
+
originType: data.origin_type,
|
|
143
|
+
parameters: data.parameters,
|
|
144
|
+
platformId: data.platform_id,
|
|
145
|
+
progressMessage: data.progress_message,
|
|
146
|
+
projectId: data.project_id,
|
|
147
|
+
startedAt: unmarshalDate(data.started_at),
|
|
148
|
+
status: data.status,
|
|
149
|
+
tags: data.tags,
|
|
150
|
+
terminatedAt: unmarshalDate(data.terminated_at),
|
|
151
|
+
updatedAt: unmarshalDate(data.updated_at),
|
|
152
|
+
waitingJobCount: data.waiting_job_count
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
const unmarshalListApplicationsResponse = (data) => {
|
|
156
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListApplicationsResponse' failed as data isn't a dictionary.`);
|
|
157
|
+
return {
|
|
158
|
+
applications: unmarshalArrayOfObject(data.applications, unmarshalApplication),
|
|
159
|
+
totalCount: data.total_count
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
const unmarshalListBookingsResponse = (data) => {
|
|
163
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListBookingsResponse' failed as data isn't a dictionary.`);
|
|
164
|
+
return {
|
|
165
|
+
bookings: unmarshalArrayOfObject(data.bookings, unmarshalBooking),
|
|
166
|
+
totalCount: data.total_count
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
const unmarshalJobResult = (data) => {
|
|
170
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'JobResult' failed as data isn't a dictionary.`);
|
|
171
|
+
return {
|
|
172
|
+
createdAt: unmarshalDate(data.created_at),
|
|
173
|
+
jobId: data.job_id,
|
|
174
|
+
result: data.result,
|
|
175
|
+
url: data.url
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
const unmarshalListJobResultsResponse = (data) => {
|
|
179
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListJobResultsResponse' failed as data isn't a dictionary.`);
|
|
180
|
+
return {
|
|
181
|
+
jobResults: unmarshalArrayOfObject(data.job_results, unmarshalJobResult),
|
|
182
|
+
totalCount: data.total_count
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
const unmarshalListJobsResponse = (data) => {
|
|
186
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListJobsResponse' failed as data isn't a dictionary.`);
|
|
187
|
+
return {
|
|
188
|
+
jobs: unmarshalArrayOfObject(data.jobs, unmarshalJob),
|
|
189
|
+
totalCount: data.total_count
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
const unmarshalListModelsResponse = (data) => {
|
|
193
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListModelsResponse' failed as data isn't a dictionary.`);
|
|
194
|
+
return {
|
|
195
|
+
models: unmarshalArrayOfObject(data.models, unmarshalModel),
|
|
196
|
+
totalCount: data.total_count
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
const unmarshalListPlatformsResponse = (data) => {
|
|
200
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPlatformsResponse' failed as data isn't a dictionary.`);
|
|
201
|
+
return {
|
|
202
|
+
platforms: unmarshalArrayOfObject(data.platforms, unmarshalPlatform),
|
|
203
|
+
totalCount: data.total_count
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
const unmarshalProcessResult = (data) => {
|
|
207
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ProcessResult' failed as data isn't a dictionary.`);
|
|
208
|
+
return {
|
|
209
|
+
createdAt: unmarshalDate(data.created_at),
|
|
210
|
+
processId: data.process_id,
|
|
211
|
+
result: data.result
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
const unmarshalListProcessResultsResponse = (data) => {
|
|
215
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListProcessResultsResponse' failed as data isn't a dictionary.`);
|
|
216
|
+
return {
|
|
217
|
+
processResults: unmarshalArrayOfObject(data.process_results, unmarshalProcessResult),
|
|
218
|
+
totalCount: data.total_count
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
const unmarshalListProcessesResponse = (data) => {
|
|
222
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListProcessesResponse' failed as data isn't a dictionary.`);
|
|
223
|
+
return {
|
|
224
|
+
processes: unmarshalArrayOfObject(data.processes, unmarshalProcess),
|
|
225
|
+
totalCount: data.total_count
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
const unmarshalListSessionACLsResponse = (data) => {
|
|
229
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSessionACLsResponse' failed as data isn't a dictionary.`);
|
|
230
|
+
return {
|
|
231
|
+
acls: data.acls,
|
|
232
|
+
totalCount: data.total_count
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
const unmarshalListSessionsResponse = (data) => {
|
|
236
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSessionsResponse' failed as data isn't a dictionary.`);
|
|
237
|
+
return {
|
|
238
|
+
sessions: unmarshalArrayOfObject(data.sessions, unmarshalSession),
|
|
239
|
+
totalCount: data.total_count
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
const marshalJobCircuit = (request, defaults) => ({ ...resolveOneOf([{
|
|
243
|
+
param: "perceval_circuit",
|
|
244
|
+
value: request.percevalCircuit
|
|
245
|
+
}, {
|
|
246
|
+
param: "qiskit_circuit",
|
|
247
|
+
value: request.qiskitCircuit
|
|
248
|
+
}]) });
|
|
249
|
+
const marshalCreateJobRequest = (request, defaults) => ({
|
|
250
|
+
circuit: marshalJobCircuit(request.circuit, defaults),
|
|
251
|
+
max_duration: request.maxDuration,
|
|
252
|
+
model_id: request.modelId,
|
|
253
|
+
name: request.name,
|
|
254
|
+
parameters: request.parameters,
|
|
255
|
+
session_id: request.sessionId,
|
|
256
|
+
tags: request.tags
|
|
257
|
+
});
|
|
258
|
+
const marshalCreateModelRequest = (request, defaults) => ({
|
|
259
|
+
payload: request.payload,
|
|
260
|
+
project_id: request.projectId ?? defaults.defaultProjectId
|
|
261
|
+
});
|
|
262
|
+
const marshalCreateProcessRequest = (request, defaults) => ({
|
|
263
|
+
application_id: request.applicationId,
|
|
264
|
+
input: request.input,
|
|
265
|
+
name: request.name,
|
|
266
|
+
platform_id: request.platformId,
|
|
267
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
268
|
+
tags: request.tags
|
|
269
|
+
});
|
|
270
|
+
const marshalCreateSessionRequestBookingDemand = (request, defaults) => ({
|
|
271
|
+
description: request.description,
|
|
272
|
+
finished_at: request.finishedAt,
|
|
273
|
+
started_at: request.startedAt,
|
|
274
|
+
time_zone: request.timeZone
|
|
275
|
+
});
|
|
276
|
+
const marshalCreateSessionRequest = (request, defaults) => ({
|
|
277
|
+
booking_demand: request.bookingDemand !== void 0 ? marshalCreateSessionRequestBookingDemand(request.bookingDemand, defaults) : void 0,
|
|
278
|
+
deduplication_id: request.deduplicationId,
|
|
279
|
+
max_duration: request.maxDuration,
|
|
280
|
+
max_idle_duration: request.maxIdleDuration,
|
|
281
|
+
model_id: request.modelId,
|
|
282
|
+
name: request.name,
|
|
283
|
+
parameters: request.parameters,
|
|
284
|
+
platform_id: request.platformId,
|
|
285
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
286
|
+
tags: request.tags
|
|
287
|
+
});
|
|
288
|
+
const marshalUpdateBookingRequest = (request, defaults) => ({ description: request.description });
|
|
289
|
+
const marshalUpdateJobRequest = (request, defaults) => ({
|
|
290
|
+
name: request.name,
|
|
291
|
+
tags: request.tags
|
|
292
|
+
});
|
|
293
|
+
const marshalUpdateProcessRequest = (request, defaults) => ({
|
|
294
|
+
name: request.name,
|
|
295
|
+
tags: request.tags
|
|
296
|
+
});
|
|
297
|
+
const marshalUpdateSessionRequest = (request, defaults) => ({
|
|
298
|
+
max_duration: request.maxDuration,
|
|
299
|
+
max_idle_duration: request.maxIdleDuration,
|
|
300
|
+
name: request.name,
|
|
301
|
+
tags: request.tags
|
|
302
|
+
});
|
|
303
|
+
//#endregion
|
|
304
|
+
export { marshalCreateJobRequest, marshalCreateModelRequest, marshalCreateProcessRequest, marshalCreateSessionRequest, marshalUpdateBookingRequest, marshalUpdateJobRequest, marshalUpdateProcessRequest, marshalUpdateSessionRequest, unmarshalApplication, unmarshalBooking, unmarshalJob, unmarshalJobCircuit, unmarshalListApplicationsResponse, unmarshalListBookingsResponse, unmarshalListJobResultsResponse, unmarshalListJobsResponse, unmarshalListModelsResponse, unmarshalListPlatformsResponse, unmarshalListProcessResultsResponse, unmarshalListProcessesResponse, unmarshalListSessionACLsResponse, unmarshalListSessionsResponse, unmarshalModel, unmarshalPlatform, unmarshalProcess, unmarshalSession };
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
export declare const queriesMetadata: {
|
|
2
|
+
readonly namespace: 'qaas';
|
|
3
|
+
readonly version: 'v1alpha1';
|
|
4
|
+
readonly folderName: 'qaasv1alpha1';
|
|
5
|
+
readonly services: readonly [{
|
|
6
|
+
readonly apiClass: 'API';
|
|
7
|
+
readonly methods: readonly [{
|
|
8
|
+
readonly methodName: 'getJob';
|
|
9
|
+
readonly protoName: 'GetJob';
|
|
10
|
+
readonly paramsType: 'GetJobRequest';
|
|
11
|
+
readonly returnType: 'Job';
|
|
12
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
13
|
+
readonly isList: false;
|
|
14
|
+
readonly paginationType: 'none';
|
|
15
|
+
readonly isPrivate: false;
|
|
16
|
+
readonly description: '"';
|
|
17
|
+
readonly hasWaiter: true;
|
|
18
|
+
}, {
|
|
19
|
+
readonly methodName: 'listJobs';
|
|
20
|
+
readonly protoName: 'ListJobs';
|
|
21
|
+
readonly paramsType: 'ListJobsRequest';
|
|
22
|
+
readonly returnType: 'ListJobsResponse';
|
|
23
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
24
|
+
readonly isList: true;
|
|
25
|
+
readonly paginationType: 'offset';
|
|
26
|
+
readonly pageParamKey: 'page';
|
|
27
|
+
readonly listItemType: 'Job';
|
|
28
|
+
readonly listItemTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
29
|
+
readonly isPrivate: false;
|
|
30
|
+
readonly description: '"';
|
|
31
|
+
}, {
|
|
32
|
+
readonly methodName: 'listJobResults';
|
|
33
|
+
readonly protoName: 'ListJobResults';
|
|
34
|
+
readonly paramsType: 'ListJobResultsRequest';
|
|
35
|
+
readonly returnType: 'ListJobResultsResponse';
|
|
36
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
37
|
+
readonly isList: true;
|
|
38
|
+
readonly paginationType: 'offset';
|
|
39
|
+
readonly pageParamKey: 'page';
|
|
40
|
+
readonly listItemType: 'JobResult';
|
|
41
|
+
readonly listItemTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
42
|
+
readonly isPrivate: false;
|
|
43
|
+
readonly description: '"';
|
|
44
|
+
}, {
|
|
45
|
+
readonly methodName: 'getJobCircuit';
|
|
46
|
+
readonly protoName: 'GetJobCircuit';
|
|
47
|
+
readonly paramsType: 'GetJobCircuitRequest';
|
|
48
|
+
readonly returnType: 'JobCircuit';
|
|
49
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
50
|
+
readonly isList: false;
|
|
51
|
+
readonly paginationType: 'none';
|
|
52
|
+
readonly isPrivate: false;
|
|
53
|
+
readonly description: '"';
|
|
54
|
+
}, {
|
|
55
|
+
readonly methodName: 'getPlatform';
|
|
56
|
+
readonly protoName: 'GetPlatform';
|
|
57
|
+
readonly paramsType: 'GetPlatformRequest';
|
|
58
|
+
readonly returnType: 'Platform';
|
|
59
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
60
|
+
readonly isList: false;
|
|
61
|
+
readonly paginationType: 'none';
|
|
62
|
+
readonly isPrivate: false;
|
|
63
|
+
readonly description: '"';
|
|
64
|
+
}, {
|
|
65
|
+
readonly methodName: 'listPlatforms';
|
|
66
|
+
readonly protoName: 'ListPlatforms';
|
|
67
|
+
readonly paramsType: 'ListPlatformsRequest';
|
|
68
|
+
readonly returnType: 'ListPlatformsResponse';
|
|
69
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
70
|
+
readonly isList: true;
|
|
71
|
+
readonly paginationType: 'offset';
|
|
72
|
+
readonly pageParamKey: 'page';
|
|
73
|
+
readonly listItemType: 'Platform';
|
|
74
|
+
readonly listItemTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
75
|
+
readonly isPrivate: false;
|
|
76
|
+
readonly description: '"';
|
|
77
|
+
}, {
|
|
78
|
+
readonly methodName: 'getSession';
|
|
79
|
+
readonly protoName: 'GetSession';
|
|
80
|
+
readonly paramsType: 'GetSessionRequest';
|
|
81
|
+
readonly returnType: 'Session';
|
|
82
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
83
|
+
readonly isList: false;
|
|
84
|
+
readonly paginationType: 'none';
|
|
85
|
+
readonly isPrivate: false;
|
|
86
|
+
readonly description: '"';
|
|
87
|
+
readonly hasWaiter: true;
|
|
88
|
+
}, {
|
|
89
|
+
readonly methodName: 'listSessions';
|
|
90
|
+
readonly protoName: 'ListSessions';
|
|
91
|
+
readonly paramsType: 'ListSessionsRequest';
|
|
92
|
+
readonly returnType: 'ListSessionsResponse';
|
|
93
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
94
|
+
readonly isList: true;
|
|
95
|
+
readonly paginationType: 'offset';
|
|
96
|
+
readonly pageParamKey: 'page';
|
|
97
|
+
readonly listItemType: 'Session';
|
|
98
|
+
readonly listItemTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
99
|
+
readonly isPrivate: false;
|
|
100
|
+
readonly description: '"';
|
|
101
|
+
}, {
|
|
102
|
+
readonly methodName: 'listSessionACLs';
|
|
103
|
+
readonly protoName: 'ListSessionACLs';
|
|
104
|
+
readonly paramsType: 'ListSessionACLsRequest';
|
|
105
|
+
readonly returnType: 'ListSessionACLsResponse';
|
|
106
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
107
|
+
readonly isList: true;
|
|
108
|
+
readonly paginationType: 'offset';
|
|
109
|
+
readonly pageParamKey: 'page';
|
|
110
|
+
readonly listItemType: 'SessionAccess';
|
|
111
|
+
readonly listItemTypeNamespace: 'SessionAccess';
|
|
112
|
+
readonly isPrivate: false;
|
|
113
|
+
readonly description: '"';
|
|
114
|
+
}, {
|
|
115
|
+
readonly methodName: 'getProcess';
|
|
116
|
+
readonly protoName: 'GetProcess';
|
|
117
|
+
readonly paramsType: 'GetProcessRequest';
|
|
118
|
+
readonly returnType: 'Process';
|
|
119
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
120
|
+
readonly isList: false;
|
|
121
|
+
readonly paginationType: 'none';
|
|
122
|
+
readonly isPrivate: false;
|
|
123
|
+
readonly description: '"';
|
|
124
|
+
readonly hasWaiter: true;
|
|
125
|
+
}, {
|
|
126
|
+
readonly methodName: 'listProcesses';
|
|
127
|
+
readonly protoName: 'ListProcesses';
|
|
128
|
+
readonly paramsType: 'ListProcessesRequest';
|
|
129
|
+
readonly returnType: 'ListProcessesResponse';
|
|
130
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
131
|
+
readonly isList: true;
|
|
132
|
+
readonly paginationType: 'offset';
|
|
133
|
+
readonly pageParamKey: 'page';
|
|
134
|
+
readonly listItemType: 'Process';
|
|
135
|
+
readonly listItemTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
136
|
+
readonly isPrivate: false;
|
|
137
|
+
readonly description: '"';
|
|
138
|
+
}, {
|
|
139
|
+
readonly methodName: 'listProcessResults';
|
|
140
|
+
readonly protoName: 'ListProcessResults';
|
|
141
|
+
readonly paramsType: 'ListProcessResultsRequest';
|
|
142
|
+
readonly returnType: 'ListProcessResultsResponse';
|
|
143
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
144
|
+
readonly isList: true;
|
|
145
|
+
readonly paginationType: 'offset';
|
|
146
|
+
readonly pageParamKey: 'page';
|
|
147
|
+
readonly listItemType: 'ProcessResult';
|
|
148
|
+
readonly listItemTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
149
|
+
readonly isPrivate: false;
|
|
150
|
+
readonly description: '"';
|
|
151
|
+
}, {
|
|
152
|
+
readonly methodName: 'getApplication';
|
|
153
|
+
readonly protoName: 'GetApplication';
|
|
154
|
+
readonly paramsType: 'GetApplicationRequest';
|
|
155
|
+
readonly returnType: 'Application';
|
|
156
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
157
|
+
readonly isList: false;
|
|
158
|
+
readonly paginationType: 'none';
|
|
159
|
+
readonly isPrivate: false;
|
|
160
|
+
readonly description: '"';
|
|
161
|
+
}, {
|
|
162
|
+
readonly methodName: 'listApplications';
|
|
163
|
+
readonly protoName: 'ListApplications';
|
|
164
|
+
readonly paramsType: 'ListApplicationsRequest';
|
|
165
|
+
readonly returnType: 'ListApplicationsResponse';
|
|
166
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
167
|
+
readonly isList: true;
|
|
168
|
+
readonly paginationType: 'offset';
|
|
169
|
+
readonly pageParamKey: 'page';
|
|
170
|
+
readonly listItemType: 'Application';
|
|
171
|
+
readonly listItemTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
172
|
+
readonly isPrivate: false;
|
|
173
|
+
readonly description: '"';
|
|
174
|
+
}, {
|
|
175
|
+
readonly methodName: 'getBooking';
|
|
176
|
+
readonly protoName: 'GetBooking';
|
|
177
|
+
readonly paramsType: 'GetBookingRequest';
|
|
178
|
+
readonly returnType: 'Booking';
|
|
179
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
180
|
+
readonly isList: false;
|
|
181
|
+
readonly paginationType: 'none';
|
|
182
|
+
readonly isPrivate: false;
|
|
183
|
+
readonly description: '"';
|
|
184
|
+
readonly hasWaiter: true;
|
|
185
|
+
}, {
|
|
186
|
+
readonly methodName: 'listBookings';
|
|
187
|
+
readonly protoName: 'ListBookings';
|
|
188
|
+
readonly paramsType: 'ListBookingsRequest';
|
|
189
|
+
readonly returnType: 'ListBookingsResponse';
|
|
190
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
191
|
+
readonly isList: true;
|
|
192
|
+
readonly paginationType: 'offset';
|
|
193
|
+
readonly pageParamKey: 'page';
|
|
194
|
+
readonly listItemType: 'Booking';
|
|
195
|
+
readonly listItemTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
196
|
+
readonly isPrivate: false;
|
|
197
|
+
readonly description: '"';
|
|
198
|
+
}, {
|
|
199
|
+
readonly methodName: 'getModel';
|
|
200
|
+
readonly protoName: 'GetModel';
|
|
201
|
+
readonly paramsType: 'GetModelRequest';
|
|
202
|
+
readonly returnType: 'Model';
|
|
203
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
204
|
+
readonly isList: false;
|
|
205
|
+
readonly paginationType: 'none';
|
|
206
|
+
readonly isPrivate: false;
|
|
207
|
+
readonly description: '"';
|
|
208
|
+
}, {
|
|
209
|
+
readonly methodName: 'listModels';
|
|
210
|
+
readonly protoName: 'ListModels';
|
|
211
|
+
readonly paramsType: 'ListModelsRequest';
|
|
212
|
+
readonly returnType: 'ListModelsResponse';
|
|
213
|
+
readonly returnTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
214
|
+
readonly isList: true;
|
|
215
|
+
readonly paginationType: 'offset';
|
|
216
|
+
readonly pageParamKey: 'page';
|
|
217
|
+
readonly listItemType: 'Model';
|
|
218
|
+
readonly listItemTypeNamespace: '@scaleway-internal/sdk-qaas/v1alpha1';
|
|
219
|
+
readonly isPrivate: false;
|
|
220
|
+
readonly description: '"';
|
|
221
|
+
}];
|
|
222
|
+
}];
|
|
223
|
+
};
|
|
224
|
+
export type QueriesMetadata = typeof queriesMetadata;
|