@scaleway/sdk-qaas 2.2.0 → 2.3.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.
@@ -1,426 +1,302 @@
1
- import { resolveOneOf, isJSONObject, unmarshalDate, unmarshalMoney, unmarshalArrayOfObject } from "@scaleway/sdk-client";
1
+ import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate, unmarshalMoney } from "@scaleway/sdk-client";
2
2
  const unmarshalJobCircuit = (data) => {
3
- if (!isJSONObject(data)) {
4
- throw new TypeError(
5
- `Unmarshalling the type 'JobCircuit' failed as data isn't a dictionary.`
6
- );
7
- }
8
- return {
9
- percevalCircuit: data.perceval_circuit,
10
- qiskitCircuit: data.qiskit_circuit
11
- };
3
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'JobCircuit' failed as data isn't a dictionary.`);
4
+ return {
5
+ percevalCircuit: data.perceval_circuit,
6
+ qiskitCircuit: data.qiskit_circuit
7
+ };
12
8
  };
13
9
  const unmarshalApplication = (data) => {
14
- if (!isJSONObject(data)) {
15
- throw new TypeError(
16
- `Unmarshalling the type 'Application' failed as data isn't a dictionary.`
17
- );
18
- }
19
- return {
20
- compatiblePlatformIds: data.compatible_platform_ids,
21
- id: data.id,
22
- inputTemplate: data.input_template,
23
- name: data.name,
24
- type: data.type
25
- };
10
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Application' failed as data isn't a dictionary.`);
11
+ return {
12
+ compatiblePlatformIds: data.compatible_platform_ids,
13
+ id: data.id,
14
+ inputTemplate: data.input_template,
15
+ name: data.name,
16
+ type: data.type
17
+ };
26
18
  };
27
19
  const unmarshalBooking = (data) => {
28
- if (!isJSONObject(data)) {
29
- throw new TypeError(
30
- `Unmarshalling the type 'Booking' failed as data isn't a dictionary.`
31
- );
32
- }
33
- return {
34
- createdAt: unmarshalDate(data.created_at),
35
- description: data.description,
36
- finishedAt: unmarshalDate(data.finished_at),
37
- id: data.id,
38
- progressMessage: data.progress_message,
39
- startedAt: unmarshalDate(data.started_at),
40
- status: data.status,
41
- timeZone: data.time_zone,
42
- updatedAt: unmarshalDate(data.updated_at)
43
- };
20
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Booking' failed as data isn't a dictionary.`);
21
+ return {
22
+ createdAt: unmarshalDate(data.created_at),
23
+ description: data.description,
24
+ finishedAt: unmarshalDate(data.finished_at),
25
+ id: data.id,
26
+ progressMessage: data.progress_message,
27
+ startedAt: unmarshalDate(data.started_at),
28
+ status: data.status,
29
+ timeZone: data.time_zone,
30
+ updatedAt: unmarshalDate(data.updated_at)
31
+ };
44
32
  };
45
33
  const unmarshalJob = (data) => {
46
- if (!isJSONObject(data)) {
47
- throw new TypeError(
48
- `Unmarshalling the type 'Job' failed as data isn't a dictionary.`
49
- );
50
- }
51
- return {
52
- createdAt: unmarshalDate(data.created_at),
53
- id: data.id,
54
- jobDuration: data.job_duration,
55
- modelId: data.model_id,
56
- name: data.name,
57
- parameters: data.parameters,
58
- progressMessage: data.progress_message,
59
- resultDistribution: data.result_distribution,
60
- sessionId: data.session_id,
61
- startedAt: unmarshalDate(data.started_at),
62
- status: data.status,
63
- tags: data.tags,
64
- updatedAt: unmarshalDate(data.updated_at)
65
- };
34
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Job' failed as data isn't a dictionary.`);
35
+ return {
36
+ createdAt: unmarshalDate(data.created_at),
37
+ id: data.id,
38
+ jobDuration: data.job_duration,
39
+ modelId: data.model_id,
40
+ name: data.name,
41
+ parameters: data.parameters,
42
+ progressMessage: data.progress_message,
43
+ resultDistribution: data.result_distribution,
44
+ sessionId: data.session_id,
45
+ startedAt: unmarshalDate(data.started_at),
46
+ status: data.status,
47
+ tags: data.tags,
48
+ updatedAt: unmarshalDate(data.updated_at)
49
+ };
66
50
  };
67
51
  const unmarshalModel = (data) => {
68
- if (!isJSONObject(data)) {
69
- throw new TypeError(
70
- `Unmarshalling the type 'Model' failed as data isn't a dictionary.`
71
- );
72
- }
73
- return {
74
- createdAt: unmarshalDate(data.created_at),
75
- id: data.id,
76
- projectId: data.project_id,
77
- url: data.url
78
- };
52
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Model' failed as data isn't a dictionary.`);
53
+ return {
54
+ createdAt: unmarshalDate(data.created_at),
55
+ id: data.id,
56
+ projectId: data.project_id,
57
+ url: data.url
58
+ };
79
59
  };
80
- const unmarshalPlatformBookingRequirement = (data) => {
81
- if (!isJSONObject(data)) {
82
- throw new TypeError(
83
- `Unmarshalling the type 'PlatformBookingRequirement' failed as data isn't a dictionary.`
84
- );
85
- }
86
- return {
87
- maxBookingPerDay: data.max_booking_per_day,
88
- maxBookingPerWeek: data.max_booking_per_week,
89
- maxCancellationDuration: data.max_cancellation_duration,
90
- maxDuration: data.max_duration,
91
- maxPlanificationDuration: data.max_planification_duration,
92
- minDuration: data.min_duration,
93
- minPlanificationDuration: data.min_planification_duration
94
- };
60
+ var unmarshalPlatformBookingRequirement = (data) => {
61
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PlatformBookingRequirement' failed as data isn't a dictionary.`);
62
+ return {
63
+ maxBookingPerDay: data.max_booking_per_day,
64
+ maxBookingPerWeek: data.max_booking_per_week,
65
+ maxCancellationDuration: data.max_cancellation_duration,
66
+ maxDuration: data.max_duration,
67
+ maxPlanificationDuration: data.max_planification_duration,
68
+ minDuration: data.min_duration,
69
+ minPlanificationDuration: data.min_planification_duration
70
+ };
95
71
  };
96
- const unmarshalPlatformHardware = (data) => {
97
- if (!isJSONObject(data)) {
98
- throw new TypeError(
99
- `Unmarshalling the type 'PlatformHardware' failed as data isn't a dictionary.`
100
- );
101
- }
102
- return {
103
- gpus: data.gpus,
104
- gpusNetwork: data.gpus_network,
105
- name: data.name,
106
- ram: data.ram,
107
- vcpus: data.vcpus,
108
- vram: data.vram
109
- };
72
+ var unmarshalPlatformHardware = (data) => {
73
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PlatformHardware' failed as data isn't a dictionary.`);
74
+ return {
75
+ gpus: data.gpus,
76
+ gpusNetwork: data.gpus_network,
77
+ name: data.name,
78
+ ram: data.ram,
79
+ vcpus: data.vcpus,
80
+ vram: data.vram
81
+ };
110
82
  };
111
83
  const unmarshalPlatform = (data) => {
112
- if (!isJSONObject(data)) {
113
- throw new TypeError(
114
- `Unmarshalling the type 'Platform' failed as data isn't a dictionary.`
115
- );
116
- }
117
- return {
118
- availability: data.availability,
119
- backendName: data.backend_name,
120
- bookingRequirement: data.booking_requirement ? unmarshalPlatformBookingRequirement(data.booking_requirement) : void 0,
121
- description: data.description,
122
- documentationUrl: data.documentation_url,
123
- hardware: data.hardware ? unmarshalPlatformHardware(data.hardware) : void 0,
124
- id: data.id,
125
- isBookable: data.is_bookable,
126
- maxCircuitCount: data.max_circuit_count,
127
- maxQubitCount: data.max_qubit_count,
128
- maxShotCount: data.max_shot_count,
129
- metadata: data.metadata,
130
- name: data.name,
131
- pricePerCircuit: data.price_per_circuit ? unmarshalMoney(data.price_per_circuit) : void 0,
132
- pricePerHour: data.price_per_hour ? unmarshalMoney(data.price_per_hour) : void 0,
133
- pricePerShot: data.price_per_shot ? unmarshalMoney(data.price_per_shot) : void 0,
134
- providerName: data.provider_name,
135
- technology: data.technology,
136
- type: data.type,
137
- version: data.version
138
- };
84
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Platform' failed as data isn't a dictionary.`);
85
+ return {
86
+ availability: data.availability,
87
+ backendName: data.backend_name,
88
+ bookingRequirement: data.booking_requirement ? unmarshalPlatformBookingRequirement(data.booking_requirement) : void 0,
89
+ description: data.description,
90
+ documentationUrl: data.documentation_url,
91
+ hardware: data.hardware ? unmarshalPlatformHardware(data.hardware) : void 0,
92
+ id: data.id,
93
+ isBookable: data.is_bookable,
94
+ maxCircuitCount: data.max_circuit_count,
95
+ maxQubitCount: data.max_qubit_count,
96
+ maxShotCount: data.max_shot_count,
97
+ metadata: data.metadata,
98
+ name: data.name,
99
+ pricePerCircuit: data.price_per_circuit ? unmarshalMoney(data.price_per_circuit) : void 0,
100
+ pricePerHour: data.price_per_hour ? unmarshalMoney(data.price_per_hour) : void 0,
101
+ pricePerShot: data.price_per_shot ? unmarshalMoney(data.price_per_shot) : void 0,
102
+ providerName: data.provider_name,
103
+ technology: data.technology,
104
+ type: data.type,
105
+ version: data.version
106
+ };
139
107
  };
140
108
  const unmarshalProcess = (data) => {
141
- if (!isJSONObject(data)) {
142
- throw new TypeError(
143
- `Unmarshalling the type 'Process' failed as data isn't a dictionary.`
144
- );
145
- }
146
- return {
147
- applicationId: data.application_id,
148
- attachedSessionIds: data.attached_session_ids,
149
- createdAt: unmarshalDate(data.created_at),
150
- finishedAt: unmarshalDate(data.finished_at),
151
- id: data.id,
152
- input: data.input,
153
- name: data.name,
154
- platformId: data.platform_id,
155
- progress: data.progress,
156
- progressMessage: data.progress_message,
157
- projectId: data.project_id,
158
- startedAt: unmarshalDate(data.started_at),
159
- status: data.status,
160
- tags: data.tags,
161
- updatedAt: unmarshalDate(data.updated_at)
162
- };
109
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Process' failed as data isn't a dictionary.`);
110
+ return {
111
+ applicationId: data.application_id,
112
+ attachedSessionIds: data.attached_session_ids,
113
+ createdAt: unmarshalDate(data.created_at),
114
+ finishedAt: unmarshalDate(data.finished_at),
115
+ id: data.id,
116
+ input: data.input,
117
+ name: data.name,
118
+ platformId: data.platform_id,
119
+ progress: data.progress,
120
+ progressMessage: data.progress_message,
121
+ projectId: data.project_id,
122
+ startedAt: unmarshalDate(data.started_at),
123
+ status: data.status,
124
+ tags: data.tags,
125
+ updatedAt: unmarshalDate(data.updated_at)
126
+ };
163
127
  };
164
128
  const unmarshalSession = (data) => {
165
- if (!isJSONObject(data)) {
166
- throw new TypeError(
167
- `Unmarshalling the type 'Session' failed as data isn't a dictionary.`
168
- );
169
- }
170
- return {
171
- bookingId: data.booking_id,
172
- createdAt: unmarshalDate(data.created_at),
173
- deduplicationId: data.deduplication_id,
174
- finishedJobCount: data.finished_job_count,
175
- id: data.id,
176
- maxDuration: data.max_duration,
177
- maxIdleDuration: data.max_idle_duration,
178
- modelId: data.model_id,
179
- name: data.name,
180
- originId: data.origin_id,
181
- originType: data.origin_type,
182
- parameters: data.parameters,
183
- platformId: data.platform_id,
184
- progressMessage: data.progress_message,
185
- projectId: data.project_id,
186
- startedAt: unmarshalDate(data.started_at),
187
- status: data.status,
188
- tags: data.tags,
189
- terminatedAt: unmarshalDate(data.terminated_at),
190
- updatedAt: unmarshalDate(data.updated_at),
191
- waitingJobCount: data.waiting_job_count
192
- };
129
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Session' failed as data isn't a dictionary.`);
130
+ return {
131
+ bookingId: data.booking_id,
132
+ createdAt: unmarshalDate(data.created_at),
133
+ deduplicationId: data.deduplication_id,
134
+ finishedJobCount: data.finished_job_count,
135
+ id: data.id,
136
+ maxDuration: data.max_duration,
137
+ maxIdleDuration: data.max_idle_duration,
138
+ modelId: data.model_id,
139
+ name: data.name,
140
+ originId: data.origin_id,
141
+ originType: data.origin_type,
142
+ parameters: data.parameters,
143
+ platformId: data.platform_id,
144
+ progressMessage: data.progress_message,
145
+ projectId: data.project_id,
146
+ startedAt: unmarshalDate(data.started_at),
147
+ status: data.status,
148
+ tags: data.tags,
149
+ terminatedAt: unmarshalDate(data.terminated_at),
150
+ updatedAt: unmarshalDate(data.updated_at),
151
+ waitingJobCount: data.waiting_job_count
152
+ };
193
153
  };
194
154
  const unmarshalListApplicationsResponse = (data) => {
195
- if (!isJSONObject(data)) {
196
- throw new TypeError(
197
- `Unmarshalling the type 'ListApplicationsResponse' failed as data isn't a dictionary.`
198
- );
199
- }
200
- return {
201
- applications: unmarshalArrayOfObject(
202
- data.applications,
203
- unmarshalApplication
204
- ),
205
- totalCount: data.total_count
206
- };
155
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListApplicationsResponse' failed as data isn't a dictionary.`);
156
+ return {
157
+ applications: unmarshalArrayOfObject(data.applications, unmarshalApplication),
158
+ totalCount: data.total_count
159
+ };
207
160
  };
208
161
  const unmarshalListBookingsResponse = (data) => {
209
- if (!isJSONObject(data)) {
210
- throw new TypeError(
211
- `Unmarshalling the type 'ListBookingsResponse' failed as data isn't a dictionary.`
212
- );
213
- }
214
- return {
215
- bookings: unmarshalArrayOfObject(data.bookings, unmarshalBooking),
216
- totalCount: data.total_count
217
- };
162
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListBookingsResponse' failed as data isn't a dictionary.`);
163
+ return {
164
+ bookings: unmarshalArrayOfObject(data.bookings, unmarshalBooking),
165
+ totalCount: data.total_count
166
+ };
218
167
  };
219
- const unmarshalJobResult = (data) => {
220
- if (!isJSONObject(data)) {
221
- throw new TypeError(
222
- `Unmarshalling the type 'JobResult' failed as data isn't a dictionary.`
223
- );
224
- }
225
- return {
226
- createdAt: unmarshalDate(data.created_at),
227
- jobId: data.job_id,
228
- result: data.result,
229
- url: data.url
230
- };
168
+ var unmarshalJobResult = (data) => {
169
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'JobResult' failed as data isn't a dictionary.`);
170
+ return {
171
+ createdAt: unmarshalDate(data.created_at),
172
+ jobId: data.job_id,
173
+ result: data.result,
174
+ url: data.url
175
+ };
231
176
  };
232
177
  const unmarshalListJobResultsResponse = (data) => {
233
- if (!isJSONObject(data)) {
234
- throw new TypeError(
235
- `Unmarshalling the type 'ListJobResultsResponse' failed as data isn't a dictionary.`
236
- );
237
- }
238
- return {
239
- jobResults: unmarshalArrayOfObject(data.job_results, unmarshalJobResult),
240
- totalCount: data.total_count
241
- };
178
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListJobResultsResponse' failed as data isn't a dictionary.`);
179
+ return {
180
+ jobResults: unmarshalArrayOfObject(data.job_results, unmarshalJobResult),
181
+ totalCount: data.total_count
182
+ };
242
183
  };
243
184
  const unmarshalListJobsResponse = (data) => {
244
- if (!isJSONObject(data)) {
245
- throw new TypeError(
246
- `Unmarshalling the type 'ListJobsResponse' failed as data isn't a dictionary.`
247
- );
248
- }
249
- return {
250
- jobs: unmarshalArrayOfObject(data.jobs, unmarshalJob),
251
- totalCount: data.total_count
252
- };
185
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListJobsResponse' failed as data isn't a dictionary.`);
186
+ return {
187
+ jobs: unmarshalArrayOfObject(data.jobs, unmarshalJob),
188
+ totalCount: data.total_count
189
+ };
253
190
  };
254
191
  const unmarshalListModelsResponse = (data) => {
255
- if (!isJSONObject(data)) {
256
- throw new TypeError(
257
- `Unmarshalling the type 'ListModelsResponse' failed as data isn't a dictionary.`
258
- );
259
- }
260
- return {
261
- models: unmarshalArrayOfObject(data.models, unmarshalModel),
262
- totalCount: data.total_count
263
- };
192
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListModelsResponse' failed as data isn't a dictionary.`);
193
+ return {
194
+ models: unmarshalArrayOfObject(data.models, unmarshalModel),
195
+ totalCount: data.total_count
196
+ };
264
197
  };
265
198
  const unmarshalListPlatformsResponse = (data) => {
266
- if (!isJSONObject(data)) {
267
- throw new TypeError(
268
- `Unmarshalling the type 'ListPlatformsResponse' failed as data isn't a dictionary.`
269
- );
270
- }
271
- return {
272
- platforms: unmarshalArrayOfObject(data.platforms, unmarshalPlatform),
273
- totalCount: data.total_count
274
- };
199
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPlatformsResponse' failed as data isn't a dictionary.`);
200
+ return {
201
+ platforms: unmarshalArrayOfObject(data.platforms, unmarshalPlatform),
202
+ totalCount: data.total_count
203
+ };
275
204
  };
276
- const unmarshalProcessResult = (data) => {
277
- if (!isJSONObject(data)) {
278
- throw new TypeError(
279
- `Unmarshalling the type 'ProcessResult' failed as data isn't a dictionary.`
280
- );
281
- }
282
- return {
283
- createdAt: unmarshalDate(data.created_at),
284
- processId: data.process_id,
285
- result: data.result
286
- };
205
+ var unmarshalProcessResult = (data) => {
206
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ProcessResult' failed as data isn't a dictionary.`);
207
+ return {
208
+ createdAt: unmarshalDate(data.created_at),
209
+ processId: data.process_id,
210
+ result: data.result
211
+ };
287
212
  };
288
213
  const unmarshalListProcessResultsResponse = (data) => {
289
- if (!isJSONObject(data)) {
290
- throw new TypeError(
291
- `Unmarshalling the type 'ListProcessResultsResponse' failed as data isn't a dictionary.`
292
- );
293
- }
294
- return {
295
- processResults: unmarshalArrayOfObject(
296
- data.process_results,
297
- unmarshalProcessResult
298
- ),
299
- totalCount: data.total_count
300
- };
214
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListProcessResultsResponse' failed as data isn't a dictionary.`);
215
+ return {
216
+ processResults: unmarshalArrayOfObject(data.process_results, unmarshalProcessResult),
217
+ totalCount: data.total_count
218
+ };
301
219
  };
302
220
  const unmarshalListProcessesResponse = (data) => {
303
- if (!isJSONObject(data)) {
304
- throw new TypeError(
305
- `Unmarshalling the type 'ListProcessesResponse' failed as data isn't a dictionary.`
306
- );
307
- }
308
- return {
309
- processes: unmarshalArrayOfObject(data.processes, unmarshalProcess),
310
- totalCount: data.total_count
311
- };
221
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListProcessesResponse' failed as data isn't a dictionary.`);
222
+ return {
223
+ processes: unmarshalArrayOfObject(data.processes, unmarshalProcess),
224
+ totalCount: data.total_count
225
+ };
312
226
  };
313
227
  const unmarshalListSessionACLsResponse = (data) => {
314
- if (!isJSONObject(data)) {
315
- throw new TypeError(
316
- `Unmarshalling the type 'ListSessionACLsResponse' failed as data isn't a dictionary.`
317
- );
318
- }
319
- return {
320
- acls: data.acls,
321
- totalCount: data.total_count
322
- };
228
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSessionACLsResponse' failed as data isn't a dictionary.`);
229
+ return {
230
+ acls: data.acls,
231
+ totalCount: data.total_count
232
+ };
323
233
  };
324
234
  const unmarshalListSessionsResponse = (data) => {
325
- if (!isJSONObject(data)) {
326
- throw new TypeError(
327
- `Unmarshalling the type 'ListSessionsResponse' failed as data isn't a dictionary.`
328
- );
329
- }
330
- return {
331
- sessions: unmarshalArrayOfObject(data.sessions, unmarshalSession),
332
- totalCount: data.total_count
333
- };
235
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSessionsResponse' failed as data isn't a dictionary.`);
236
+ return {
237
+ sessions: unmarshalArrayOfObject(data.sessions, unmarshalSession),
238
+ totalCount: data.total_count
239
+ };
334
240
  };
335
- const marshalJobCircuit = (request, defaults) => ({
336
- ...resolveOneOf([
337
- { param: "perceval_circuit", value: request.percevalCircuit },
338
- { param: "qiskit_circuit", value: request.qiskitCircuit }
339
- ])
340
- });
241
+ var marshalJobCircuit = (request, defaults) => ({ ...resolveOneOf([{
242
+ param: "perceval_circuit",
243
+ value: request.percevalCircuit
244
+ }, {
245
+ param: "qiskit_circuit",
246
+ value: request.qiskitCircuit
247
+ }]) });
341
248
  const marshalCreateJobRequest = (request, defaults) => ({
342
- circuit: marshalJobCircuit(request.circuit),
343
- max_duration: request.maxDuration,
344
- model_id: request.modelId,
345
- name: request.name,
346
- parameters: request.parameters,
347
- session_id: request.sessionId,
348
- tags: request.tags
249
+ circuit: marshalJobCircuit(request.circuit, defaults),
250
+ max_duration: request.maxDuration,
251
+ model_id: request.modelId,
252
+ name: request.name,
253
+ parameters: request.parameters,
254
+ session_id: request.sessionId,
255
+ tags: request.tags
349
256
  });
350
257
  const marshalCreateModelRequest = (request, defaults) => ({
351
- payload: request.payload,
352
- project_id: request.projectId ?? defaults.defaultProjectId
258
+ payload: request.payload,
259
+ project_id: request.projectId ?? defaults.defaultProjectId
353
260
  });
354
261
  const marshalCreateProcessRequest = (request, defaults) => ({
355
- application_id: request.applicationId,
356
- input: request.input,
357
- name: request.name,
358
- platform_id: request.platformId,
359
- project_id: request.projectId ?? defaults.defaultProjectId,
360
- tags: request.tags
262
+ application_id: request.applicationId,
263
+ input: request.input,
264
+ name: request.name,
265
+ platform_id: request.platformId,
266
+ project_id: request.projectId ?? defaults.defaultProjectId,
267
+ tags: request.tags
361
268
  });
362
- const marshalCreateSessionRequestBookingDemand = (request, defaults) => ({
363
- description: request.description,
364
- finished_at: request.finishedAt,
365
- started_at: request.startedAt,
366
- time_zone: request.timeZone
269
+ var marshalCreateSessionRequestBookingDemand = (request, defaults) => ({
270
+ description: request.description,
271
+ finished_at: request.finishedAt,
272
+ started_at: request.startedAt,
273
+ time_zone: request.timeZone
367
274
  });
368
275
  const marshalCreateSessionRequest = (request, defaults) => ({
369
- booking_demand: request.bookingDemand !== void 0 ? marshalCreateSessionRequestBookingDemand(
370
- request.bookingDemand
371
- ) : void 0,
372
- deduplication_id: request.deduplicationId,
373
- max_duration: request.maxDuration,
374
- max_idle_duration: request.maxIdleDuration,
375
- model_id: request.modelId,
376
- name: request.name,
377
- parameters: request.parameters,
378
- platform_id: request.platformId,
379
- project_id: request.projectId ?? defaults.defaultProjectId,
380
- tags: request.tags
381
- });
382
- const marshalUpdateBookingRequest = (request, defaults) => ({
383
- description: request.description
276
+ booking_demand: request.bookingDemand !== void 0 ? marshalCreateSessionRequestBookingDemand(request.bookingDemand, defaults) : void 0,
277
+ deduplication_id: request.deduplicationId,
278
+ max_duration: request.maxDuration,
279
+ max_idle_duration: request.maxIdleDuration,
280
+ model_id: request.modelId,
281
+ name: request.name,
282
+ parameters: request.parameters,
283
+ platform_id: request.platformId,
284
+ project_id: request.projectId ?? defaults.defaultProjectId,
285
+ tags: request.tags
384
286
  });
287
+ const marshalUpdateBookingRequest = (request, defaults) => ({ description: request.description });
385
288
  const marshalUpdateJobRequest = (request, defaults) => ({
386
- name: request.name,
387
- tags: request.tags
289
+ name: request.name,
290
+ tags: request.tags
388
291
  });
389
292
  const marshalUpdateProcessRequest = (request, defaults) => ({
390
- name: request.name,
391
- tags: request.tags
293
+ name: request.name,
294
+ tags: request.tags
392
295
  });
393
296
  const marshalUpdateSessionRequest = (request, defaults) => ({
394
- max_duration: request.maxDuration,
395
- max_idle_duration: request.maxIdleDuration,
396
- name: request.name,
397
- tags: request.tags
297
+ max_duration: request.maxDuration,
298
+ max_idle_duration: request.maxIdleDuration,
299
+ name: request.name,
300
+ tags: request.tags
398
301
  });
399
- export {
400
- marshalCreateJobRequest,
401
- marshalCreateModelRequest,
402
- marshalCreateProcessRequest,
403
- marshalCreateSessionRequest,
404
- marshalUpdateBookingRequest,
405
- marshalUpdateJobRequest,
406
- marshalUpdateProcessRequest,
407
- marshalUpdateSessionRequest,
408
- unmarshalApplication,
409
- unmarshalBooking,
410
- unmarshalJob,
411
- unmarshalJobCircuit,
412
- unmarshalListApplicationsResponse,
413
- unmarshalListBookingsResponse,
414
- unmarshalListJobResultsResponse,
415
- unmarshalListJobsResponse,
416
- unmarshalListModelsResponse,
417
- unmarshalListPlatformsResponse,
418
- unmarshalListProcessResultsResponse,
419
- unmarshalListProcessesResponse,
420
- unmarshalListSessionACLsResponse,
421
- unmarshalListSessionsResponse,
422
- unmarshalModel,
423
- unmarshalPlatform,
424
- unmarshalProcess,
425
- unmarshalSession
426
- };
302
+ 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 };