@scaleway/sdk-qaas 1.1.5 → 1.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.
@@ -200,7 +200,7 @@ class API extends sdkClient.API {
200
200
  */
201
201
  listPlatforms = (request = {}) => sdkClient.enrichForPagination("platforms", this.pageOfListPlatforms, request);
202
202
  /**
203
- * Get session infrormation. Retrieve information about the provided **session ID**, such as name, status, and number of executed jobs.
203
+ * Get session information. Retrieve information about the provided **session ID**, such as name, status, and number of executed jobs.
204
204
  *
205
205
  * @param request - The request {@link GetSessionRequest}
206
206
  * @returns A Promise of Session
@@ -290,7 +290,7 @@ class API extends sdkClient.API {
290
290
  marshalling_gen.unmarshalSession
291
291
  );
292
292
  /**
293
- * Terminate an existing session. Terminate a session by its unique ID and cancel all its attached jobs.
293
+ * Terminate an existing session. Terminate a session by its unique ID and cancel all its attached jobs and booking.
294
294
  *
295
295
  * @param request - The request {@link TerminateSessionRequest}
296
296
  * @returns A Promise of Session
@@ -305,7 +305,7 @@ class API extends sdkClient.API {
305
305
  marshalling_gen.unmarshalSession
306
306
  );
307
307
  /**
308
- * Delete an existing session. Delete a session by its unique ID and delete all its attached jobs.
308
+ * Delete an existing session. Delete a session by its unique ID and delete all its attached job and booking.
309
309
  *
310
310
  * @param request - The request {@link DeleteSessionRequest}
311
311
  */
@@ -347,7 +347,7 @@ class API extends sdkClient.API {
347
347
  marshalling_gen.unmarshalProcess
348
348
  );
349
349
  /**
350
- * Get process infrormation. Retrieve information about the provided **process ID**, such as name, status and progress.
350
+ * Get process information. Retrieve information about the provided **process ID**, such as name, status and progress.
351
351
  *
352
352
  * @param request - The request {@link GetProcessRequest}
353
353
  * @returns A Promise of Process
@@ -506,5 +506,130 @@ class API extends sdkClient.API {
506
506
  * @returns A Promise of ListApplicationsResponse
507
507
  */
508
508
  listApplications = (request = {}) => sdkClient.enrichForPagination("applications", this.pageOfListApplications, request);
509
+ /**
510
+ * Get booking information. Retrieve information about the provided **booking ID**, such as description, status and progress message.
511
+ *
512
+ * @param request - The request {@link GetBookingRequest}
513
+ * @returns A Promise of Booking
514
+ */
515
+ getBooking = (request) => this.client.fetch(
516
+ {
517
+ method: "GET",
518
+ path: `/qaas/v1alpha1/bookings/${sdkClient.validatePathParam("bookingId", request.bookingId)}`
519
+ },
520
+ marshalling_gen.unmarshalBooking
521
+ );
522
+ /**
523
+ * Waits for {@link Booking} to be in a final state.
524
+ *
525
+ * @param request - The request {@link GetBookingRequest}
526
+ * @param options - The waiting options
527
+ * @returns A Promise of Booking
528
+ */
529
+ waitForBooking = (request, options) => sdkClient.waitForResource(
530
+ options?.stop ?? ((res) => Promise.resolve(
531
+ !content_gen.BOOKING_TRANSIENT_STATUSES.includes(res.status)
532
+ )),
533
+ this.getBooking,
534
+ request,
535
+ options
536
+ );
537
+ pageOfListBookings = (request = {}) => this.client.fetch(
538
+ {
539
+ method: "GET",
540
+ path: `/qaas/v1alpha1/bookings`,
541
+ urlParams: sdkClient.urlParams(
542
+ ["order_by", request.orderBy],
543
+ ["page", request.page],
544
+ [
545
+ "page_size",
546
+ request.pageSize ?? this.client.settings.defaultPageSize
547
+ ],
548
+ ["platform_id", request.platformId],
549
+ ["project_id", request.projectId]
550
+ )
551
+ },
552
+ marshalling_gen.unmarshalListBookingsResponse
553
+ );
554
+ /**
555
+ * List all bookings according the filter. Retrieve information about all bookings of the provided **project ID** or ** platform ID**.
556
+ *
557
+ * @param request - The request {@link ListBookingsRequest}
558
+ * @returns A Promise of ListBookingsResponse
559
+ */
560
+ listBookings = (request = {}) => sdkClient.enrichForPagination("bookings", this.pageOfListBookings, request);
561
+ /**
562
+ * Update booking information. Update booking information of the provided **booking ID**.
563
+ *
564
+ * @param request - The request {@link UpdateBookingRequest}
565
+ * @returns A Promise of Booking
566
+ */
567
+ updateBooking = (request) => this.client.fetch(
568
+ {
569
+ body: JSON.stringify(
570
+ marshalling_gen.marshalUpdateBookingRequest(request, this.client.settings)
571
+ ),
572
+ headers: jsonContentHeaders,
573
+ method: "PATCH",
574
+ path: `/qaas/v1alpha1/bookings/${sdkClient.validatePathParam("bookingId", request.bookingId)}`
575
+ },
576
+ marshalling_gen.unmarshalBooking
577
+ );
578
+ /**
579
+ * Create a new model. Create and register a new model that can be executed through next jobs. A model can also be assigned to a Session.
580
+ *
581
+ * @param request - The request {@link CreateModelRequest}
582
+ * @returns A Promise of Model
583
+ */
584
+ createModel = (request = {}) => this.client.fetch(
585
+ {
586
+ body: JSON.stringify(
587
+ marshalling_gen.marshalCreateModelRequest(request, this.client.settings)
588
+ ),
589
+ headers: jsonContentHeaders,
590
+ method: "POST",
591
+ path: `/qaas/v1alpha1/models`
592
+ },
593
+ marshalling_gen.unmarshalModel
594
+ );
595
+ /**
596
+ * Get model information. Retrieve information about of the provided **model ID**.
597
+ *
598
+ * @param request - The request {@link GetModelRequest}
599
+ * @returns A Promise of Model
600
+ */
601
+ getModel = (request) => this.client.fetch(
602
+ {
603
+ method: "GET",
604
+ path: `/qaas/v1alpha1/models/${sdkClient.validatePathParam("modelId", request.modelId)}`
605
+ },
606
+ marshalling_gen.unmarshalModel
607
+ );
608
+ pageOfListModels = (request = {}) => this.client.fetch(
609
+ {
610
+ method: "GET",
611
+ path: `/qaas/v1alpha1/models`,
612
+ urlParams: sdkClient.urlParams(
613
+ ["order_by", request.orderBy],
614
+ ["page", request.page],
615
+ [
616
+ "page_size",
617
+ request.pageSize ?? this.client.settings.defaultPageSize
618
+ ],
619
+ [
620
+ "project_id",
621
+ request.projectId ?? this.client.settings.defaultProjectId
622
+ ]
623
+ )
624
+ },
625
+ marshalling_gen.unmarshalListModelsResponse
626
+ );
627
+ /**
628
+ * List all models attached to the **project ID**. Retrieve information about all models of the provided **project ID**.
629
+ *
630
+ * @param request - The request {@link ListModelsRequest}
631
+ * @returns A Promise of ListModelsResponse
632
+ */
633
+ listModels = (request = {}) => sdkClient.enrichForPagination("models", this.pageOfListModels, request);
509
634
  }
510
635
  exports.API = API;
@@ -1,6 +1,6 @@
1
- import { API as ParentAPI } from '@scaleway/sdk-client';
2
1
  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';
2
+ import { API as ParentAPI } from '@scaleway/sdk-client';
3
+ import type { Application, Booking, CancelJobRequest, CancelProcessRequest, CreateJobRequest, CreateModelRequest, CreateProcessRequest, CreateSessionRequest, DeleteJobRequest, DeleteProcessRequest, DeleteSessionRequest, GetApplicationRequest, GetBookingRequest, GetJobCircuitRequest, GetJobRequest, GetModelRequest, GetPlatformRequest, GetProcessRequest, GetSessionRequest, Job, JobCircuit, ListApplicationsRequest, ListApplicationsResponse, ListBookingsRequest, ListBookingsResponse, ListJobResultsRequest, ListJobResultsResponse, ListJobsRequest, ListJobsResponse, ListModelsRequest, ListModelsResponse, ListPlatformsRequest, ListPlatformsResponse, ListProcessesRequest, ListProcessesResponse, ListProcessResultsRequest, ListProcessResultsResponse, ListSessionACLsRequest, ListSessionACLsResponse, ListSessionsRequest, ListSessionsResponse, Model, Platform, Process, Session, TerminateSessionRequest, UpdateBookingRequest, UpdateJobRequest, UpdateProcessRequest, UpdateSessionRequest } from './types.gen';
4
4
  /**
5
5
  * Quantum as a Service API.
6
6
 
@@ -97,7 +97,7 @@ export declare class API extends ParentAPI {
97
97
  [Symbol.asyncIterator]: () => AsyncGenerator<Platform[], void, void>;
98
98
  };
99
99
  /**
100
- * Get session infrormation. Retrieve information about the provided **session ID**, such as name, status, and number of executed jobs.
100
+ * Get session information. Retrieve information about the provided **session ID**, such as name, status, and number of executed jobs.
101
101
  *
102
102
  * @param request - The request {@link GetSessionRequest}
103
103
  * @returns A Promise of Session
@@ -137,14 +137,14 @@ export declare class API extends ParentAPI {
137
137
  */
138
138
  updateSession: (request: Readonly<UpdateSessionRequest>) => Promise<Session>;
139
139
  /**
140
- * Terminate an existing session. Terminate a session by its unique ID and cancel all its attached jobs.
140
+ * Terminate an existing session. Terminate a session by its unique ID and cancel all its attached jobs and booking.
141
141
  *
142
142
  * @param request - The request {@link TerminateSessionRequest}
143
143
  * @returns A Promise of Session
144
144
  */
145
145
  terminateSession: (request: Readonly<TerminateSessionRequest>) => Promise<Session>;
146
146
  /**
147
- * Delete an existing session. Delete a session by its unique ID and delete all its attached jobs.
147
+ * Delete an existing session. Delete a session by its unique ID and delete all its attached job and booking.
148
148
  *
149
149
  * @param request - The request {@link DeleteSessionRequest}
150
150
  */
@@ -162,7 +162,7 @@ export declare class API extends ParentAPI {
162
162
  */
163
163
  createProcess: (request: Readonly<CreateProcessRequest>) => Promise<Process>;
164
164
  /**
165
- * Get process infrormation. Retrieve information about the provided **process ID**, such as name, status and progress.
165
+ * Get process information. Retrieve information about the provided **process ID**, such as name, status and progress.
166
166
  *
167
167
  * @param request - The request {@link GetProcessRequest}
168
168
  * @returns A Promise of Process
@@ -236,4 +236,62 @@ export declare class API extends ParentAPI {
236
236
  all: () => Promise<Application[]>;
237
237
  [Symbol.asyncIterator]: () => AsyncGenerator<Application[], void, void>;
238
238
  };
239
+ /**
240
+ * Get booking information. Retrieve information about the provided **booking ID**, such as description, status and progress message.
241
+ *
242
+ * @param request - The request {@link GetBookingRequest}
243
+ * @returns A Promise of Booking
244
+ */
245
+ getBooking: (request: Readonly<GetBookingRequest>) => Promise<Booking>;
246
+ /**
247
+ * Waits for {@link Booking} to be in a final state.
248
+ *
249
+ * @param request - The request {@link GetBookingRequest}
250
+ * @param options - The waiting options
251
+ * @returns A Promise of Booking
252
+ */
253
+ waitForBooking: (request: Readonly<GetBookingRequest>, options?: Readonly<WaitForOptions<Booking>>) => Promise<Booking>;
254
+ protected pageOfListBookings: (request?: Readonly<ListBookingsRequest>) => Promise<ListBookingsResponse>;
255
+ /**
256
+ * List all bookings according the filter. Retrieve information about all bookings of the provided **project ID** or ** platform ID**.
257
+ *
258
+ * @param request - The request {@link ListBookingsRequest}
259
+ * @returns A Promise of ListBookingsResponse
260
+ */
261
+ listBookings: (request?: Readonly<ListBookingsRequest>) => Promise<ListBookingsResponse> & {
262
+ all: () => Promise<Booking[]>;
263
+ [Symbol.asyncIterator]: () => AsyncGenerator<Booking[], void, void>;
264
+ };
265
+ /**
266
+ * Update booking information. Update booking information of the provided **booking ID**.
267
+ *
268
+ * @param request - The request {@link UpdateBookingRequest}
269
+ * @returns A Promise of Booking
270
+ */
271
+ updateBooking: (request: Readonly<UpdateBookingRequest>) => Promise<Booking>;
272
+ /**
273
+ * Create a new model. Create and register a new model that can be executed through next jobs. A model can also be assigned to a Session.
274
+ *
275
+ * @param request - The request {@link CreateModelRequest}
276
+ * @returns A Promise of Model
277
+ */
278
+ createModel: (request?: Readonly<CreateModelRequest>) => Promise<Model>;
279
+ /**
280
+ * Get model information. Retrieve information about of the provided **model ID**.
281
+ *
282
+ * @param request - The request {@link GetModelRequest}
283
+ * @returns A Promise of Model
284
+ */
285
+ getModel: (request: Readonly<GetModelRequest>) => Promise<Model>;
286
+ protected pageOfListModels: (request?: Readonly<ListModelsRequest>) => Promise<ListModelsResponse>;
287
+ /**
288
+ * List all models attached to the **project ID**. Retrieve information about all models of the provided **project ID**.
289
+ *
290
+ * @param request - The request {@link ListModelsRequest}
291
+ * @returns A Promise of ListModelsResponse
292
+ */
293
+ listModels: (request?: Readonly<ListModelsRequest>) => Promise<ListModelsResponse> & {
294
+ all: () => Promise<Model[]>;
295
+ [Symbol.asyncIterator]: () => AsyncGenerator<Model[], void, void>;
296
+ };
239
297
  }
@@ -1,6 +1,6 @@
1
1
  import { API as API$1, validatePathParam, waitForResource, urlParams, resolveOneOf, enrichForPagination } from "@scaleway/sdk-client";
2
- import { JOB_TRANSIENT_STATUSES, SESSION_TRANSIENT_STATUSES, PROCESS_TRANSIENT_STATUSES } from "./content.gen.js";
3
- import { unmarshalJob, unmarshalListJobsResponse, unmarshalListJobResultsResponse, marshalCreateJobRequest, marshalUpdateJobRequest, unmarshalJobCircuit, unmarshalPlatform, unmarshalListPlatformsResponse, unmarshalSession, unmarshalListSessionsResponse, marshalCreateSessionRequest, marshalUpdateSessionRequest, unmarshalListSessionACLsResponse, marshalCreateProcessRequest, unmarshalProcess, unmarshalListProcessesResponse, marshalUpdateProcessRequest, unmarshalListProcessResultsResponse, unmarshalApplication, unmarshalListApplicationsResponse } from "./marshalling.gen.js";
2
+ import { JOB_TRANSIENT_STATUSES, SESSION_TRANSIENT_STATUSES, PROCESS_TRANSIENT_STATUSES, BOOKING_TRANSIENT_STATUSES } from "./content.gen.js";
3
+ import { unmarshalJob, unmarshalListJobsResponse, unmarshalListJobResultsResponse, marshalCreateJobRequest, marshalUpdateJobRequest, unmarshalJobCircuit, unmarshalPlatform, unmarshalListPlatformsResponse, unmarshalSession, unmarshalListSessionsResponse, marshalCreateSessionRequest, marshalUpdateSessionRequest, unmarshalListSessionACLsResponse, marshalCreateProcessRequest, unmarshalProcess, unmarshalListProcessesResponse, marshalUpdateProcessRequest, unmarshalListProcessResultsResponse, unmarshalApplication, unmarshalListApplicationsResponse, unmarshalBooking, unmarshalListBookingsResponse, marshalUpdateBookingRequest, marshalCreateModelRequest, unmarshalModel, unmarshalListModelsResponse } from "./marshalling.gen.js";
4
4
  const jsonContentHeaders = {
5
5
  "Content-Type": "application/json; charset=utf-8"
6
6
  };
@@ -198,7 +198,7 @@ class API extends API$1 {
198
198
  */
199
199
  listPlatforms = (request = {}) => enrichForPagination("platforms", this.pageOfListPlatforms, request);
200
200
  /**
201
- * Get session infrormation. Retrieve information about the provided **session ID**, such as name, status, and number of executed jobs.
201
+ * Get session information. Retrieve information about the provided **session ID**, such as name, status, and number of executed jobs.
202
202
  *
203
203
  * @param request - The request {@link GetSessionRequest}
204
204
  * @returns A Promise of Session
@@ -288,7 +288,7 @@ class API extends API$1 {
288
288
  unmarshalSession
289
289
  );
290
290
  /**
291
- * Terminate an existing session. Terminate a session by its unique ID and cancel all its attached jobs.
291
+ * Terminate an existing session. Terminate a session by its unique ID and cancel all its attached jobs and booking.
292
292
  *
293
293
  * @param request - The request {@link TerminateSessionRequest}
294
294
  * @returns A Promise of Session
@@ -303,7 +303,7 @@ class API extends API$1 {
303
303
  unmarshalSession
304
304
  );
305
305
  /**
306
- * Delete an existing session. Delete a session by its unique ID and delete all its attached jobs.
306
+ * Delete an existing session. Delete a session by its unique ID and delete all its attached job and booking.
307
307
  *
308
308
  * @param request - The request {@link DeleteSessionRequest}
309
309
  */
@@ -345,7 +345,7 @@ class API extends API$1 {
345
345
  unmarshalProcess
346
346
  );
347
347
  /**
348
- * Get process infrormation. Retrieve information about the provided **process ID**, such as name, status and progress.
348
+ * Get process information. Retrieve information about the provided **process ID**, such as name, status and progress.
349
349
  *
350
350
  * @param request - The request {@link GetProcessRequest}
351
351
  * @returns A Promise of Process
@@ -504,6 +504,131 @@ class API extends API$1 {
504
504
  * @returns A Promise of ListApplicationsResponse
505
505
  */
506
506
  listApplications = (request = {}) => enrichForPagination("applications", this.pageOfListApplications, request);
507
+ /**
508
+ * Get booking information. Retrieve information about the provided **booking ID**, such as description, status and progress message.
509
+ *
510
+ * @param request - The request {@link GetBookingRequest}
511
+ * @returns A Promise of Booking
512
+ */
513
+ getBooking = (request) => this.client.fetch(
514
+ {
515
+ method: "GET",
516
+ path: `/qaas/v1alpha1/bookings/${validatePathParam("bookingId", request.bookingId)}`
517
+ },
518
+ unmarshalBooking
519
+ );
520
+ /**
521
+ * Waits for {@link Booking} to be in a final state.
522
+ *
523
+ * @param request - The request {@link GetBookingRequest}
524
+ * @param options - The waiting options
525
+ * @returns A Promise of Booking
526
+ */
527
+ waitForBooking = (request, options) => waitForResource(
528
+ options?.stop ?? ((res) => Promise.resolve(
529
+ !BOOKING_TRANSIENT_STATUSES.includes(res.status)
530
+ )),
531
+ this.getBooking,
532
+ request,
533
+ options
534
+ );
535
+ pageOfListBookings = (request = {}) => this.client.fetch(
536
+ {
537
+ method: "GET",
538
+ path: `/qaas/v1alpha1/bookings`,
539
+ urlParams: urlParams(
540
+ ["order_by", request.orderBy],
541
+ ["page", request.page],
542
+ [
543
+ "page_size",
544
+ request.pageSize ?? this.client.settings.defaultPageSize
545
+ ],
546
+ ["platform_id", request.platformId],
547
+ ["project_id", request.projectId]
548
+ )
549
+ },
550
+ unmarshalListBookingsResponse
551
+ );
552
+ /**
553
+ * List all bookings according the filter. Retrieve information about all bookings of the provided **project ID** or ** platform ID**.
554
+ *
555
+ * @param request - The request {@link ListBookingsRequest}
556
+ * @returns A Promise of ListBookingsResponse
557
+ */
558
+ listBookings = (request = {}) => enrichForPagination("bookings", this.pageOfListBookings, request);
559
+ /**
560
+ * Update booking information. Update booking information of the provided **booking ID**.
561
+ *
562
+ * @param request - The request {@link UpdateBookingRequest}
563
+ * @returns A Promise of Booking
564
+ */
565
+ updateBooking = (request) => this.client.fetch(
566
+ {
567
+ body: JSON.stringify(
568
+ marshalUpdateBookingRequest(request, this.client.settings)
569
+ ),
570
+ headers: jsonContentHeaders,
571
+ method: "PATCH",
572
+ path: `/qaas/v1alpha1/bookings/${validatePathParam("bookingId", request.bookingId)}`
573
+ },
574
+ unmarshalBooking
575
+ );
576
+ /**
577
+ * Create a new model. Create and register a new model that can be executed through next jobs. A model can also be assigned to a Session.
578
+ *
579
+ * @param request - The request {@link CreateModelRequest}
580
+ * @returns A Promise of Model
581
+ */
582
+ createModel = (request = {}) => this.client.fetch(
583
+ {
584
+ body: JSON.stringify(
585
+ marshalCreateModelRequest(request, this.client.settings)
586
+ ),
587
+ headers: jsonContentHeaders,
588
+ method: "POST",
589
+ path: `/qaas/v1alpha1/models`
590
+ },
591
+ unmarshalModel
592
+ );
593
+ /**
594
+ * Get model information. Retrieve information about of the provided **model ID**.
595
+ *
596
+ * @param request - The request {@link GetModelRequest}
597
+ * @returns A Promise of Model
598
+ */
599
+ getModel = (request) => this.client.fetch(
600
+ {
601
+ method: "GET",
602
+ path: `/qaas/v1alpha1/models/${validatePathParam("modelId", request.modelId)}`
603
+ },
604
+ unmarshalModel
605
+ );
606
+ pageOfListModels = (request = {}) => this.client.fetch(
607
+ {
608
+ method: "GET",
609
+ path: `/qaas/v1alpha1/models`,
610
+ urlParams: urlParams(
611
+ ["order_by", request.orderBy],
612
+ ["page", request.page],
613
+ [
614
+ "page_size",
615
+ request.pageSize ?? this.client.settings.defaultPageSize
616
+ ],
617
+ [
618
+ "project_id",
619
+ request.projectId ?? this.client.settings.defaultProjectId
620
+ ]
621
+ )
622
+ },
623
+ unmarshalListModelsResponse
624
+ );
625
+ /**
626
+ * List all models attached to the **project ID**. Retrieve information about all models of the provided **project ID**.
627
+ *
628
+ * @param request - The request {@link ListModelsRequest}
629
+ * @returns A Promise of ListModelsResponse
630
+ */
631
+ listModels = (request = {}) => enrichForPagination("models", this.pageOfListModels, request);
507
632
  }
508
633
  export {
509
634
  API
@@ -1,5 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const BOOKING_TRANSIENT_STATUSES = [
4
+ "waiting",
5
+ "validating",
6
+ "cancelling"
7
+ ];
3
8
  const JOB_TRANSIENT_STATUSES = [
4
9
  "waiting",
5
10
  "running",
@@ -14,6 +19,7 @@ const SESSION_TRANSIENT_STATUSES = [
14
19
  "starting",
15
20
  "stopping"
16
21
  ];
22
+ exports.BOOKING_TRANSIENT_STATUSES = BOOKING_TRANSIENT_STATUSES;
17
23
  exports.JOB_TRANSIENT_STATUSES = JOB_TRANSIENT_STATUSES;
18
24
  exports.PROCESS_TRANSIENT_STATUSES = PROCESS_TRANSIENT_STATUSES;
19
25
  exports.SESSION_TRANSIENT_STATUSES = SESSION_TRANSIENT_STATUSES;
@@ -1,4 +1,6 @@
1
- import type { JobStatus, ProcessStatus, SessionStatus } from './types.gen';
1
+ import type { BookingStatus, JobStatus, ProcessStatus, SessionStatus } from './types.gen';
2
+ /** Lists transient statutes of the enum {@link BookingStatus}. */
3
+ export declare const BOOKING_TRANSIENT_STATUSES: BookingStatus[];
2
4
  /** Lists transient statutes of the enum {@link JobStatus}. */
3
5
  export declare const JOB_TRANSIENT_STATUSES: JobStatus[];
4
6
  /** Lists transient statutes of the enum {@link ProcessStatus}. */
@@ -1,3 +1,8 @@
1
+ const BOOKING_TRANSIENT_STATUSES = [
2
+ "waiting",
3
+ "validating",
4
+ "cancelling"
5
+ ];
1
6
  const JOB_TRANSIENT_STATUSES = [
2
7
  "waiting",
3
8
  "running",
@@ -13,6 +18,7 @@ const SESSION_TRANSIENT_STATUSES = [
13
18
  "stopping"
14
19
  ];
15
20
  export {
21
+ BOOKING_TRANSIENT_STATUSES,
16
22
  JOB_TRANSIENT_STATUSES,
17
23
  PROCESS_TRANSIENT_STATUSES,
18
24
  SESSION_TRANSIENT_STATUSES
@@ -5,26 +5,33 @@ const content_gen = require("./content.gen.cjs");
5
5
  const marshalling_gen = require("./marshalling.gen.cjs");
6
6
  const validationRules_gen = require("./validation-rules.gen.cjs");
7
7
  exports.API = api_gen.API;
8
+ exports.BOOKING_TRANSIENT_STATUSES = content_gen.BOOKING_TRANSIENT_STATUSES;
8
9
  exports.JOB_TRANSIENT_STATUSES = content_gen.JOB_TRANSIENT_STATUSES;
9
10
  exports.PROCESS_TRANSIENT_STATUSES = content_gen.PROCESS_TRANSIENT_STATUSES;
10
11
  exports.SESSION_TRANSIENT_STATUSES = content_gen.SESSION_TRANSIENT_STATUSES;
11
12
  exports.marshalCreateJobRequest = marshalling_gen.marshalCreateJobRequest;
13
+ exports.marshalCreateModelRequest = marshalling_gen.marshalCreateModelRequest;
12
14
  exports.marshalCreateProcessRequest = marshalling_gen.marshalCreateProcessRequest;
13
15
  exports.marshalCreateSessionRequest = marshalling_gen.marshalCreateSessionRequest;
16
+ exports.marshalUpdateBookingRequest = marshalling_gen.marshalUpdateBookingRequest;
14
17
  exports.marshalUpdateJobRequest = marshalling_gen.marshalUpdateJobRequest;
15
18
  exports.marshalUpdateProcessRequest = marshalling_gen.marshalUpdateProcessRequest;
16
19
  exports.marshalUpdateSessionRequest = marshalling_gen.marshalUpdateSessionRequest;
17
20
  exports.unmarshalApplication = marshalling_gen.unmarshalApplication;
21
+ exports.unmarshalBooking = marshalling_gen.unmarshalBooking;
18
22
  exports.unmarshalJob = marshalling_gen.unmarshalJob;
19
23
  exports.unmarshalJobCircuit = marshalling_gen.unmarshalJobCircuit;
20
24
  exports.unmarshalListApplicationsResponse = marshalling_gen.unmarshalListApplicationsResponse;
25
+ exports.unmarshalListBookingsResponse = marshalling_gen.unmarshalListBookingsResponse;
21
26
  exports.unmarshalListJobResultsResponse = marshalling_gen.unmarshalListJobResultsResponse;
22
27
  exports.unmarshalListJobsResponse = marshalling_gen.unmarshalListJobsResponse;
28
+ exports.unmarshalListModelsResponse = marshalling_gen.unmarshalListModelsResponse;
23
29
  exports.unmarshalListPlatformsResponse = marshalling_gen.unmarshalListPlatformsResponse;
24
30
  exports.unmarshalListProcessResultsResponse = marshalling_gen.unmarshalListProcessResultsResponse;
25
31
  exports.unmarshalListProcessesResponse = marshalling_gen.unmarshalListProcessesResponse;
26
32
  exports.unmarshalListSessionACLsResponse = marshalling_gen.unmarshalListSessionACLsResponse;
27
33
  exports.unmarshalListSessionsResponse = marshalling_gen.unmarshalListSessionsResponse;
34
+ exports.unmarshalModel = marshalling_gen.unmarshalModel;
28
35
  exports.unmarshalPlatform = marshalling_gen.unmarshalPlatform;
29
36
  exports.unmarshalProcess = marshalling_gen.unmarshalProcess;
30
37
  exports.unmarshalSession = marshalling_gen.unmarshalSession;
@@ -1,5 +1,5 @@
1
1
  export { API } from './api.gen';
2
2
  export * from './content.gen';
3
3
  export * from './marshalling.gen';
4
- export type { Application, ApplicationType, CancelJobRequest, CancelProcessRequest, CreateJobRequest, CreateProcessRequest, CreateSessionRequest, DeleteJobRequest, DeleteProcessRequest, DeleteSessionRequest, GetApplicationRequest, GetJobCircuitRequest, GetJobRequest, GetPlatformRequest, GetProcessRequest, GetSessionRequest, Job, JobCircuit, JobResult, JobStatus, ListApplicationsRequest, ListApplicationsRequestOrderBy, ListApplicationsResponse, ListJobResultsRequest, ListJobResultsRequestOrderBy, ListJobResultsResponse, ListJobsRequest, ListJobsRequestOrderBy, ListJobsResponse, ListPlatformsRequest, ListPlatformsRequestOrderBy, ListPlatformsResponse, ListProcessResultsRequest, ListProcessResultsRequestOrderBy, ListProcessResultsResponse, ListProcessesRequest, ListProcessesRequestOrderBy, ListProcessesResponse, ListSessionACLsRequest, ListSessionACLsRequestOrderBy, ListSessionACLsResponse, ListSessionsRequest, ListSessionsRequestOrderBy, ListSessionsResponse, Platform, PlatformAvailability, PlatformHardware, PlatformTechnology, PlatformType, Process, ProcessResult, ProcessStatus, Session, SessionAccess, SessionOriginType, SessionStatus, TerminateSessionRequest, UpdateJobRequest, UpdateProcessRequest, UpdateSessionRequest, } from './types.gen';
4
+ export type { Application, ApplicationType, Booking, BookingStatus, CancelJobRequest, CancelProcessRequest, CreateJobRequest, CreateModelRequest, CreateProcessRequest, CreateSessionRequest, CreateSessionRequestBookingDemand, DeleteJobRequest, DeleteProcessRequest, DeleteSessionRequest, GetApplicationRequest, GetBookingRequest, GetJobCircuitRequest, GetJobRequest, GetModelRequest, GetPlatformRequest, GetProcessRequest, GetSessionRequest, Job, JobCircuit, JobResult, JobStatus, ListApplicationsRequest, ListApplicationsRequestOrderBy, ListApplicationsResponse, ListBookingsRequest, ListBookingsRequestOrderBy, ListBookingsResponse, ListJobResultsRequest, ListJobResultsRequestOrderBy, ListJobResultsResponse, ListJobsRequest, ListJobsRequestOrderBy, ListJobsResponse, ListModelsRequest, ListModelsRequestOrderBy, ListModelsResponse, ListPlatformsRequest, ListPlatformsRequestOrderBy, ListPlatformsResponse, ListProcessesRequest, ListProcessesRequestOrderBy, ListProcessesResponse, ListProcessResultsRequest, ListProcessResultsRequestOrderBy, ListProcessResultsResponse, ListSessionACLsRequest, ListSessionACLsRequestOrderBy, ListSessionACLsResponse, ListSessionsRequest, ListSessionsRequestOrderBy, ListSessionsResponse, Model, Platform, PlatformAvailability, PlatformBookingRequirement, PlatformHardware, PlatformTechnology, PlatformType, Process, ProcessResult, ProcessStatus, Session, SessionAccess, SessionOriginType, SessionStatus, TerminateSessionRequest, UpdateBookingRequest, UpdateJobRequest, UpdateProcessRequest, UpdateSessionRequest, } from './types.gen';
5
5
  export * as ValidationRules from './validation-rules.gen';
@@ -1,30 +1,37 @@
1
1
  import { API } from "./api.gen.js";
2
- import { JOB_TRANSIENT_STATUSES, PROCESS_TRANSIENT_STATUSES, SESSION_TRANSIENT_STATUSES } from "./content.gen.js";
3
- import { marshalCreateJobRequest, marshalCreateProcessRequest, marshalCreateSessionRequest, marshalUpdateJobRequest, marshalUpdateProcessRequest, marshalUpdateSessionRequest, unmarshalApplication, unmarshalJob, unmarshalJobCircuit, unmarshalListApplicationsResponse, unmarshalListJobResultsResponse, unmarshalListJobsResponse, unmarshalListPlatformsResponse, unmarshalListProcessResultsResponse, unmarshalListProcessesResponse, unmarshalListSessionACLsResponse, unmarshalListSessionsResponse, unmarshalPlatform, unmarshalProcess, unmarshalSession } from "./marshalling.gen.js";
2
+ import { BOOKING_TRANSIENT_STATUSES, JOB_TRANSIENT_STATUSES, PROCESS_TRANSIENT_STATUSES, SESSION_TRANSIENT_STATUSES } from "./content.gen.js";
3
+ import { 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 } from "./marshalling.gen.js";
4
4
  import * as validationRules_gen from "./validation-rules.gen.js";
5
5
  export {
6
6
  API,
7
+ BOOKING_TRANSIENT_STATUSES,
7
8
  JOB_TRANSIENT_STATUSES,
8
9
  PROCESS_TRANSIENT_STATUSES,
9
10
  SESSION_TRANSIENT_STATUSES,
10
11
  validationRules_gen as ValidationRules,
11
12
  marshalCreateJobRequest,
13
+ marshalCreateModelRequest,
12
14
  marshalCreateProcessRequest,
13
15
  marshalCreateSessionRequest,
16
+ marshalUpdateBookingRequest,
14
17
  marshalUpdateJobRequest,
15
18
  marshalUpdateProcessRequest,
16
19
  marshalUpdateSessionRequest,
17
20
  unmarshalApplication,
21
+ unmarshalBooking,
18
22
  unmarshalJob,
19
23
  unmarshalJobCircuit,
20
24
  unmarshalListApplicationsResponse,
25
+ unmarshalListBookingsResponse,
21
26
  unmarshalListJobResultsResponse,
22
27
  unmarshalListJobsResponse,
28
+ unmarshalListModelsResponse,
23
29
  unmarshalListPlatformsResponse,
24
30
  unmarshalListProcessResultsResponse,
25
31
  unmarshalListProcessesResponse,
26
32
  unmarshalListSessionACLsResponse,
27
33
  unmarshalListSessionsResponse,
34
+ unmarshalModel,
28
35
  unmarshalPlatform,
29
36
  unmarshalProcess,
30
37
  unmarshalSession